mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 10:28:23 +03:00
1026 lines
1.5 MiB
1026 lines
1.5 MiB
var zH=Object.defineProperty;var VH=(e,t,n)=>t in e?zH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xl=(e,t,n)=>(VH(e,typeof t!="symbol"?t+"":t,n),n);function HH(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GI={exports:{}},C0={},qI={exports:{}},ot={};/**
|
||
* @license React
|
||
* react.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 wp=Symbol.for("react.element"),WH=Symbol.for("react.portal"),GH=Symbol.for("react.fragment"),qH=Symbol.for("react.strict_mode"),ZH=Symbol.for("react.profiler"),YH=Symbol.for("react.provider"),KH=Symbol.for("react.context"),XH=Symbol.for("react.forward_ref"),QH=Symbol.for("react.suspense"),JH=Symbol.for("react.memo"),eW=Symbol.for("react.lazy"),LA=Symbol.iterator;function tW(e){return e===null||typeof e!="object"?null:(e=LA&&e[LA]||e["@@iterator"],typeof e=="function"?e:null)}var ZI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YI=Object.assign,KI={};function Vc(e,t,n){this.props=e,this.context=t,this.refs=KI,this.updater=n||ZI}Vc.prototype.isReactComponent={};Vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function XI(){}XI.prototype=Vc.prototype;function qE(e,t,n){this.props=e,this.context=t,this.refs=KI,this.updater=n||ZI}var ZE=qE.prototype=new XI;ZE.constructor=qE;YI(ZE,Vc.prototype);ZE.isPureReactComponent=!0;var RA=Array.isArray,QI=Object.prototype.hasOwnProperty,YE={current:null},JI={key:!0,ref:!0,__self:!0,__source:!0};function e5(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)QI.call(t,r)&&!JI.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:wp,type:e,key:o,ref:a,props:i,_owner:YE.current}}function nW(e,t){return{$$typeof:wp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function KE(e){return typeof e=="object"&&e!==null&&e.$$typeof===wp}function rW(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var MA=/\/+/g;function T_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rW(""+e.key):t.toString(36)}function Lv(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case wp:case WH:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+T_(a,0):r,RA(i)?(n="",e!=null&&(n=e.replace(MA,"$&/")+"/"),Lv(i,t,n,"",function(u){return u})):i!=null&&(KE(i)&&(i=nW(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(MA,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",RA(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+T_(o,s);a+=Lv(o,t,n,l,i)}else if(l=tW(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+T_(o,s++),a+=Lv(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Cm(e,t,n){if(e==null)return e;var r=[],i=0;return Lv(e,r,"","",function(o){return t.call(n,o,i++)}),r}function iW(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dr={current:null},Rv={transition:null},oW={ReactCurrentDispatcher:dr,ReactCurrentBatchConfig:Rv,ReactCurrentOwner:YE};ot.Children={map:Cm,forEach:function(e,t,n){Cm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cm(e,function(){t++}),t},toArray:function(e){return Cm(e,function(t){return t})||[]},only:function(e){if(!KE(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ot.Component=Vc;ot.Fragment=GH;ot.Profiler=ZH;ot.PureComponent=qE;ot.StrictMode=qH;ot.Suspense=QH;ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oW;ot.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=YI({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=YE.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)QI.call(t,l)&&!JI.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:wp,type:e.type,key:i,ref:o,props:r,_owner:a}};ot.createContext=function(e){return e={$$typeof:KH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:YH,_context:e},e.Consumer=e};ot.createElement=e5;ot.createFactory=function(e){var t=e5.bind(null,e);return t.type=e,t};ot.createRef=function(){return{current:null}};ot.forwardRef=function(e){return{$$typeof:XH,render:e}};ot.isValidElement=KE;ot.lazy=function(e){return{$$typeof:eW,_payload:{_status:-1,_result:e},_init:iW}};ot.memo=function(e,t){return{$$typeof:JH,type:e,compare:t===void 0?null:t}};ot.startTransition=function(e){var t=Rv.transition;Rv.transition={};try{e()}finally{Rv.transition=t}};ot.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ot.useCallback=function(e,t){return dr.current.useCallback(e,t)};ot.useContext=function(e){return dr.current.useContext(e)};ot.useDebugValue=function(){};ot.useDeferredValue=function(e){return dr.current.useDeferredValue(e)};ot.useEffect=function(e,t){return dr.current.useEffect(e,t)};ot.useId=function(){return dr.current.useId()};ot.useImperativeHandle=function(e,t,n){return dr.current.useImperativeHandle(e,t,n)};ot.useInsertionEffect=function(e,t){return dr.current.useInsertionEffect(e,t)};ot.useLayoutEffect=function(e,t){return dr.current.useLayoutEffect(e,t)};ot.useMemo=function(e,t){return dr.current.useMemo(e,t)};ot.useReducer=function(e,t,n){return dr.current.useReducer(e,t,n)};ot.useRef=function(e){return dr.current.useRef(e)};ot.useState=function(e){return dr.current.useState(e)};ot.useSyncExternalStore=function(e,t,n){return dr.current.useSyncExternalStore(e,t,n)};ot.useTransition=function(){return dr.current.useTransition()};ot.version="18.2.0";qI.exports=ot;var R=qI.exports;const V=Nl(R),vw=HH({__proto__:null,default:V},[R]);/**
|
||
* @license React
|
||
* react-jsx-runtime.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 aW=R,sW=Symbol.for("react.element"),lW=Symbol.for("react.fragment"),uW=Object.prototype.hasOwnProperty,cW=aW.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fW={key:!0,ref:!0,__self:!0,__source:!0};function t5(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)uW.call(t,r)&&!fW.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:sW,type:e,key:o,ref:a,props:i,_owner:cW.current}}C0.Fragment=lW;C0.jsx=t5;C0.jsxs=t5;GI.exports=C0;var m=GI.exports,n5={exports:{}},Vr={},r5={exports:{}},i5={};/**
|
||
* @license React
|
||
* scheduler.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.
|
||
*/(function(e){function t(K,B){var F=K.length;K.push(B);e:for(;0<F;){var H=F-1>>>1,ne=K[H];if(0<i(ne,B))K[H]=B,K[F]=ne,F=H;else break e}}function n(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var B=K[0],F=K.pop();if(F!==B){K[0]=F;e:for(var H=0,ne=K.length,Y=ne>>>1;H<Y;){var ee=2*(H+1)-1,ae=K[ee],oe=ee+1,fe=K[oe];if(0>i(ae,F))oe<ne&&0>i(fe,ae)?(K[H]=fe,K[oe]=F,H=oe):(K[H]=ae,K[ee]=F,H=ee);else if(oe<ne&&0>i(fe,F))K[H]=fe,K[oe]=F,H=oe;else break e}}return B}function i(K,B){var F=K.sortIndex-B.sortIndex;return F!==0?F:K.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,d=null,p=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(K){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=K)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function S(K){if(y=!1,_(K),!g)if(n(l)!==null)g=!0,J(j);else{var B=n(u);B!==null&&te(S,B.startTime-K)}}function j(K,B){g=!1,y&&(y=!1,b(N),N=-1),v=!0;var F=p;try{for(_(B),d=n(l);d!==null&&(!(d.expirationTime>B)||K&&!D());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var ne=H(d.expirationTime<=B);B=e.unstable_now(),typeof ne=="function"?d.callback=ne:d===n(l)&&r(l),_(B)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var ee=n(u);ee!==null&&te(S,ee.startTime-B),Y=!1}return Y}finally{d=null,p=F,v=!1}}var E=!1,P=null,N=-1,I=5,M=-1;function D(){return!(e.unstable_now()-M<I)}function z(){if(P!==null){var K=e.unstable_now();M=K;var B=!0;try{B=P(!0,K)}finally{B?q():(E=!1,P=null)}}else E=!1}var q;if(typeof x=="function")q=function(){x(z)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,X=W.port2;W.port1.onmessage=z,q=function(){X.postMessage(null)}}else q=function(){w(z,0)};function J(K){P=K,E||(E=!0,q())}function te(K,B){N=w(function(){K(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(K){K.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,J(j))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(K){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var F=p;p=B;try{return K()}finally{p=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,B){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var F=p;p=K;try{return B()}finally{p=F}},e.unstable_scheduleCallback=function(K,B,F){var H=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?H+F:H):F=H,K){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=F+ne,K={id:f++,callback:B,priorityLevel:K,startTime:F,expirationTime:ne,sortIndex:-1},F>H?(K.sortIndex=F,t(u,K),n(l)===null&&K===n(u)&&(y?(b(N),N=-1):y=!0,te(S,F-H))):(K.sortIndex=ne,t(l,K),g||v||(g=!0,J(j))),K},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(K){var B=p;return function(){var F=p;p=B;try{return K.apply(this,arguments)}finally{p=F}}}})(i5);r5.exports=i5;var dW=r5.exports;/**
|
||
* @license React
|
||
* react-dom.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 o5=R,Fr=dW;function Oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a5=new Set,Qd={};function Ll(e,t){Qu(e,t),Qu(e+"Capture",t)}function Qu(e,t){for(Qd[e]=t,e=0;e<t.length;e++)a5.add(t[e])}var Wo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gw=Object.prototype.hasOwnProperty,hW=/^[: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]*$/,IA={},DA={};function pW(e){return gw.call(DA,e)?!0:gw.call(IA,e)?!1:hW.test(e)?DA[e]=!0:(IA[e]=!0,!1)}function mW(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vW(e,t,n,r){if(t===null||typeof t>"u"||mW(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zn[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zn[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zn[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zn[e]=new hr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){zn[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zn[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zn[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zn[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zn[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var XE=/[\-:]([a-z])/g;function QE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(XE,QE);zn[t]=new hr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(XE,QE);zn[t]=new hr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(XE,QE);zn[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zn[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});zn.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zn[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function JE(e,t,n,r){var i=zn.hasOwnProperty(t)?zn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vW(t,n,i,r)&&(n=null),r||i===null?pW(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ia=o5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pm=Symbol.for("react.element"),yu=Symbol.for("react.portal"),bu=Symbol.for("react.fragment"),ej=Symbol.for("react.strict_mode"),yw=Symbol.for("react.profiler"),s5=Symbol.for("react.provider"),l5=Symbol.for("react.context"),tj=Symbol.for("react.forward_ref"),bw=Symbol.for("react.suspense"),_w=Symbol.for("react.suspense_list"),nj=Symbol.for("react.memo"),Sa=Symbol.for("react.lazy"),u5=Symbol.for("react.offscreen"),$A=Symbol.iterator;function $f(e){return e===null||typeof e!="object"?null:(e=$A&&e[$A]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,C_;function ud(e){if(C_===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);C_=t&&t[1]||""}return`
|
||
`+C_+e}var P_=!1;function A_(e,t){if(!e||P_)return"";P_=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{P_=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ud(e):""}function gW(e){switch(e.tag){case 5:return ud(e.type);case 16:return ud("Lazy");case 13:return ud("Suspense");case 19:return ud("SuspenseList");case 0:case 2:case 15:return e=A_(e.type,!1),e;case 11:return e=A_(e.type.render,!1),e;case 1:return e=A_(e.type,!0),e;default:return""}}function xw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bu:return"Fragment";case yu:return"Portal";case yw:return"Profiler";case ej:return"StrictMode";case bw:return"Suspense";case _w:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l5:return(e.displayName||"Context")+".Consumer";case s5:return(e._context.displayName||"Context")+".Provider";case tj:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nj:return t=e.displayName||null,t!==null?t:xw(e.type)||"Memo";case Sa:t=e._payload,e=e._init;try{return xw(e(t))}catch{}}return null}function yW(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xw(t);case 8:return t===ej?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ja(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bW(e){var t=c5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Am(e){e._valueTracker||(e._valueTracker=bW(e))}function f5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ww(e,t){var n=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function FA(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ja(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function d5(e,t){t=t.checked,t!=null&&JE(e,"checked",t,!1)}function Ow(e,t){d5(e,t);var n=Ja(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Sw(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sw(e,t.type,Ja(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function UA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Sw(e,t,n){(t!=="number"||lg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var cd=Array.isArray;function Uu(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ja(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ew(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Oe(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function BA(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Oe(92));if(cd(n)){if(1<n.length)throw Error(Oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ja(n)}}function h5(e,t){var n=Ja(t.value),r=Ja(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function zA(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p5(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var km,m5=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(km=km||document.createElement("div"),km.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_W=["Webkit","ms","Moz","O"];Object.keys(wd).forEach(function(e){_W.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wd[t]=wd[e]})});function v5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wd.hasOwnProperty(e)&&wd[e]?(""+t).trim():t+"px"}function g5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=v5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var xW=Wt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tw(e,t){if(t){if(xW[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function Cw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Pw=null;function rj(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Aw=null,Bu=null,zu=null;function VA(e){if(e=Ep(e)){if(typeof Aw!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=L0(t),Aw(e.stateNode,e.type,t))}}function y5(e){Bu?zu?zu.push(e):zu=[e]:Bu=e}function b5(){if(Bu){var e=Bu,t=zu;if(zu=Bu=null,VA(e),t)for(e=0;e<t.length;e++)VA(t[e])}}function _5(e,t){return e(t)}function x5(){}var k_=!1;function w5(e,t,n){if(k_)return e(t,n);k_=!0;try{return _5(e,t,n)}finally{k_=!1,(Bu!==null||zu!==null)&&(x5(),b5())}}function eh(e,t){var n=e.stateNode;if(n===null)return null;var r=L0(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Oe(231,t,typeof n));return n}var kw=!1;if(Wo)try{var Ff={};Object.defineProperty(Ff,"passive",{get:function(){kw=!0}}),window.addEventListener("test",Ff,Ff),window.removeEventListener("test",Ff,Ff)}catch{kw=!1}function wW(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Od=!1,ug=null,cg=!1,Nw=null,OW={onError:function(e){Od=!0,ug=e}};function SW(e,t,n,r,i,o,a,s,l){Od=!1,ug=null,wW.apply(OW,arguments)}function EW(e,t,n,r,i,o,a,s,l){if(SW.apply(this,arguments),Od){if(Od){var u=ug;Od=!1,ug=null}else throw Error(Oe(198));cg||(cg=!0,Nw=u)}}function Rl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function O5(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function HA(e){if(Rl(e)!==e)throw Error(Oe(188))}function jW(e){var t=e.alternate;if(!t){if(t=Rl(e),t===null)throw Error(Oe(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return HA(i),e;if(o===r)return HA(i),t;o=o.sibling}throw Error(Oe(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Oe(189))}}if(n.alternate!==r)throw Error(Oe(190))}if(n.tag!==3)throw Error(Oe(188));return n.stateNode.current===n?e:t}function S5(e){return e=jW(e),e!==null?E5(e):null}function E5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=E5(e);if(t!==null)return t;e=e.sibling}return null}var j5=Fr.unstable_scheduleCallback,WA=Fr.unstable_cancelCallback,TW=Fr.unstable_shouldYield,CW=Fr.unstable_requestPaint,tn=Fr.unstable_now,PW=Fr.unstable_getCurrentPriorityLevel,ij=Fr.unstable_ImmediatePriority,T5=Fr.unstable_UserBlockingPriority,fg=Fr.unstable_NormalPriority,AW=Fr.unstable_LowPriority,C5=Fr.unstable_IdlePriority,P0=null,fo=null;function kW(e){if(fo&&typeof fo.onCommitFiberRoot=="function")try{fo.onCommitFiberRoot(P0,e,void 0,(e.current.flags&128)===128)}catch{}}var Di=Math.clz32?Math.clz32:RW,NW=Math.log,LW=Math.LN2;function RW(e){return e>>>=0,e===0?32:31-(NW(e)/LW|0)|0}var Nm=64,Lm=4194304;function fd(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=fd(s):(o&=a,o!==0&&(r=fd(o)))}else a=n&~i,a!==0?r=fd(a):o!==0&&(r=fd(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Di(t),i=1<<n,r|=e[n],t&=~i;return r}function MW(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function IW(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Di(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=MW(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Lw(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function P5(){var e=Nm;return Nm<<=1,!(Nm&4194240)&&(Nm=64),e}function N_(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Op(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Di(t),e[t]=n}function DW(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Di(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function oj(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Di(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var vt=0;function A5(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var k5,aj,N5,L5,R5,Rw=!1,Rm=[],Ua=null,Ba=null,za=null,th=new Map,nh=new Map,Ca=[],$W="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 submit".split(" ");function GA(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ba=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":th.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nh.delete(t.pointerId)}}function Uf(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ep(t),t!==null&&aj(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function FW(e,t,n,r,i){switch(t){case"focusin":return Ua=Uf(Ua,e,t,n,r,i),!0;case"dragenter":return Ba=Uf(Ba,e,t,n,r,i),!0;case"mouseover":return za=Uf(za,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return th.set(o,Uf(th.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,nh.set(o,Uf(nh.get(o)||null,e,t,n,r,i)),!0}return!1}function M5(e){var t=Ys(e.target);if(t!==null){var n=Rl(t);if(n!==null){if(t=n.tag,t===13){if(t=O5(n),t!==null){e.blockedOn=t,R5(e.priority,function(){N5(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Pw=r,n.target.dispatchEvent(r),Pw=null}else return t=Ep(n),t!==null&&aj(t),e.blockedOn=n,!1;t.shift()}return!0}function qA(e,t,n){Mv(e)&&n.delete(t)}function UW(){Rw=!1,Ua!==null&&Mv(Ua)&&(Ua=null),Ba!==null&&Mv(Ba)&&(Ba=null),za!==null&&Mv(za)&&(za=null),th.forEach(qA),nh.forEach(qA)}function Bf(e,t){e.blockedOn===t&&(e.blockedOn=null,Rw||(Rw=!0,Fr.unstable_scheduleCallback(Fr.unstable_NormalPriority,UW)))}function rh(e){function t(i){return Bf(i,e)}if(0<Rm.length){Bf(Rm[0],e);for(var n=1;n<Rm.length;n++){var r=Rm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ua!==null&&Bf(Ua,e),Ba!==null&&Bf(Ba,e),za!==null&&Bf(za,e),th.forEach(t),nh.forEach(t),n=0;n<Ca.length;n++)r=Ca[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ca.length&&(n=Ca[0],n.blockedOn===null);)M5(n),n.blockedOn===null&&Ca.shift()}var Vu=ia.ReactCurrentBatchConfig,hg=!0;function BW(e,t,n,r){var i=vt,o=Vu.transition;Vu.transition=null;try{vt=1,sj(e,t,n,r)}finally{vt=i,Vu.transition=o}}function zW(e,t,n,r){var i=vt,o=Vu.transition;Vu.transition=null;try{vt=4,sj(e,t,n,r)}finally{vt=i,Vu.transition=o}}function sj(e,t,n,r){if(hg){var i=Mw(e,t,n,r);if(i===null)z_(e,t,r,pg,n),GA(e,r);else if(FW(i,e,t,n,r))r.stopPropagation();else if(GA(e,r),t&4&&-1<$W.indexOf(e)){for(;i!==null;){var o=Ep(i);if(o!==null&&k5(o),o=Mw(e,t,n,r),o===null&&z_(e,t,r,pg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else z_(e,t,r,null,n)}}var pg=null;function Mw(e,t,n,r){if(pg=null,e=rj(r),e=Ys(e),e!==null)if(t=Rl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=O5(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pg=e,null}function I5(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(PW()){case ij:return 1;case T5:return 4;case fg:case AW:return 16;case C5:return 536870912;default:return 16}default:return 16}}var ka=null,lj=null,Iv=null;function D5(){if(Iv)return Iv;var e,t=lj,n=t.length,r,i="value"in ka?ka.value:ka.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return Iv=i.slice(e,1<r?1-r:void 0)}function Dv(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mm(){return!0}function ZA(){return!1}function Hr(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Mm:ZA,this.isPropagationStopped=ZA,this}return Wt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Mm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mm)},persist:function(){},isPersistent:Mm}),t}var Hc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uj=Hr(Hc),Sp=Wt({},Hc,{view:0,detail:0}),VW=Hr(Sp),L_,R_,zf,A0=Wt({},Sp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cj,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zf&&(zf&&e.type==="mousemove"?(L_=e.screenX-zf.screenX,R_=e.screenY-zf.screenY):R_=L_=0,zf=e),L_)},movementY:function(e){return"movementY"in e?e.movementY:R_}}),YA=Hr(A0),HW=Wt({},A0,{dataTransfer:0}),WW=Hr(HW),GW=Wt({},Sp,{relatedTarget:0}),M_=Hr(GW),qW=Wt({},Hc,{animationName:0,elapsedTime:0,pseudoElement:0}),ZW=Hr(qW),YW=Wt({},Hc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),KW=Hr(YW),XW=Wt({},Hc,{data:0}),KA=Hr(XW),QW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JW={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"},eG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eG[e])?!!t[e]:!1}function cj(){return tG}var nG=Wt({},Sp,{key:function(e){if(e.key){var t=QW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cj,charCode:function(e){return e.type==="keypress"?Dv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rG=Hr(nG),iG=Wt({},A0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XA=Hr(iG),oG=Wt({},Sp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cj}),aG=Hr(oG),sG=Wt({},Hc,{propertyName:0,elapsedTime:0,pseudoElement:0}),lG=Hr(sG),uG=Wt({},A0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cG=Hr(uG),fG=[9,13,27,32],fj=Wo&&"CompositionEvent"in window,Sd=null;Wo&&"documentMode"in document&&(Sd=document.documentMode);var dG=Wo&&"TextEvent"in window&&!Sd,$5=Wo&&(!fj||Sd&&8<Sd&&11>=Sd),QA=" ",JA=!1;function F5(e,t){switch(e){case"keyup":return fG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _u=!1;function hG(e,t){switch(e){case"compositionend":return U5(t);case"keypress":return t.which!==32?null:(JA=!0,QA);case"textInput":return e=t.data,e===QA&&JA?null:e;default:return null}}function pG(e,t){if(_u)return e==="compositionend"||!fj&&F5(e,t)?(e=D5(),Iv=lj=ka=null,_u=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $5&&t.locale!=="ko"?null:t.data;default:return null}}var mG={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 ek(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mG[e.type]:t==="textarea"}function B5(e,t,n,r){y5(r),t=mg(t,"onChange"),0<t.length&&(n=new uj("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ed=null,ih=null;function vG(e){Q5(e,0)}function k0(e){var t=Ou(e);if(f5(t))return e}function gG(e,t){if(e==="change")return t}var z5=!1;if(Wo){var I_;if(Wo){var D_="oninput"in document;if(!D_){var tk=document.createElement("div");tk.setAttribute("oninput","return;"),D_=typeof tk.oninput=="function"}I_=D_}else I_=!1;z5=I_&&(!document.documentMode||9<document.documentMode)}function nk(){Ed&&(Ed.detachEvent("onpropertychange",V5),ih=Ed=null)}function V5(e){if(e.propertyName==="value"&&k0(ih)){var t=[];B5(t,ih,e,rj(e)),w5(vG,t)}}function yG(e,t,n){e==="focusin"?(nk(),Ed=t,ih=n,Ed.attachEvent("onpropertychange",V5)):e==="focusout"&&nk()}function bG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return k0(ih)}function _G(e,t){if(e==="click")return k0(t)}function xG(e,t){if(e==="input"||e==="change")return k0(t)}function wG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bi=typeof Object.is=="function"?Object.is:wG;function oh(e,t){if(Bi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!gw.call(t,i)||!Bi(e[i],t[i]))return!1}return!0}function rk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ik(e,t){var n=rk(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rk(n)}}function H5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function W5(){for(var e=window,t=lg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lg(e.document)}return t}function dj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function OG(e){var t=W5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H5(n.ownerDocument.documentElement,n)){if(r!==null&&dj(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ik(n,o);var a=ik(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var SG=Wo&&"documentMode"in document&&11>=document.documentMode,xu=null,Iw=null,jd=null,Dw=!1;function ok(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dw||xu==null||xu!==lg(r)||(r=xu,"selectionStart"in r&&dj(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jd&&oh(jd,r)||(jd=r,r=mg(Iw,"onSelect"),0<r.length&&(t=new uj("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xu)))}function Im(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wu={animationend:Im("Animation","AnimationEnd"),animationiteration:Im("Animation","AnimationIteration"),animationstart:Im("Animation","AnimationStart"),transitionend:Im("Transition","TransitionEnd")},$_={},G5={};Wo&&(G5=document.createElement("div").style,"AnimationEvent"in window||(delete wu.animationend.animation,delete wu.animationiteration.animation,delete wu.animationstart.animation),"TransitionEvent"in window||delete wu.transitionend.transition);function N0(e){if($_[e])return $_[e];if(!wu[e])return e;var t=wu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in G5)return $_[e]=t[n];return e}var q5=N0("animationend"),Z5=N0("animationiteration"),Y5=N0("animationstart"),K5=N0("transitionend"),X5=new Map,ak="abort auxClick 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(" ");function cs(e,t){X5.set(e,t),Ll(t,[e])}for(var F_=0;F_<ak.length;F_++){var U_=ak[F_],EG=U_.toLowerCase(),jG=U_[0].toUpperCase()+U_.slice(1);cs(EG,"on"+jG)}cs(q5,"onAnimationEnd");cs(Z5,"onAnimationIteration");cs(Y5,"onAnimationStart");cs("dblclick","onDoubleClick");cs("focusin","onFocus");cs("focusout","onBlur");cs(K5,"onTransitionEnd");Qu("onMouseEnter",["mouseout","mouseover"]);Qu("onMouseLeave",["mouseout","mouseover"]);Qu("onPointerEnter",["pointerout","pointerover"]);Qu("onPointerLeave",["pointerout","pointerover"]);Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dd="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(" "),TG=new Set("cancel close invalid load scroll toggle".split(" ").concat(dd));function sk(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,EW(r,t,void 0,e),e.currentTarget=null}function Q5(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;sk(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;sk(i,s,u),o=l}}}if(cg)throw e=Nw,cg=!1,Nw=null,e}function jt(e,t){var n=t[zw];n===void 0&&(n=t[zw]=new Set);var r=e+"__bubble";n.has(r)||(J5(t,e,2,!1),n.add(r))}function B_(e,t,n){var r=0;t&&(r|=4),J5(n,e,r,t)}var Dm="_reactListening"+Math.random().toString(36).slice(2);function ah(e){if(!e[Dm]){e[Dm]=!0,a5.forEach(function(n){n!=="selectionchange"&&(TG.has(n)||B_(n,!1,e),B_(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dm]||(t[Dm]=!0,B_("selectionchange",!1,t))}}function J5(e,t,n,r){switch(I5(t)){case 1:var i=BW;break;case 4:i=zW;break;default:i=sj}n=i.bind(null,t,n,e),i=void 0,!kw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function z_(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Ys(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}w5(function(){var u=o,f=rj(n),d=[];e:{var p=X5.get(e);if(p!==void 0){var v=uj,g=e;switch(e){case"keypress":if(Dv(n)===0)break e;case"keydown":case"keyup":v=rG;break;case"focusin":g="focus",v=M_;break;case"focusout":g="blur",v=M_;break;case"beforeblur":case"afterblur":v=M_;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=YA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=WW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=aG;break;case q5:case Z5:case Y5:v=ZW;break;case K5:v=lG;break;case"scroll":v=VW;break;case"wheel":v=cG;break;case"copy":case"cut":case"paste":v=KW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=XA}var y=(t&4)!==0,w=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var x=u,_;x!==null;){_=x;var S=_.stateNode;if(_.tag===5&&S!==null&&(_=S,b!==null&&(S=eh(x,b),S!=null&&y.push(sh(x,S,_)))),w)break;x=x.return}0<y.length&&(p=new v(p,g,null,n,f),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==Pw&&(g=n.relatedTarget||n.fromElement)&&(Ys(g)||g[Go]))break e;if((v||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?Ys(g):null,g!==null&&(w=Rl(g),g!==w||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(y=YA,S="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=XA,S="onPointerLeave",b="onPointerEnter",x="pointer"),w=v==null?p:Ou(v),_=g==null?p:Ou(g),p=new y(S,x+"leave",v,n,f),p.target=w,p.relatedTarget=_,S=null,Ys(f)===u&&(y=new y(b,x+"enter",g,n,f),y.target=_,y.relatedTarget=w,S=y),w=S,v&&g)t:{for(y=v,b=g,x=0,_=y;_;_=Ql(_))x++;for(_=0,S=b;S;S=Ql(S))_++;for(;0<x-_;)y=Ql(y),x--;for(;0<_-x;)b=Ql(b),_--;for(;x--;){if(y===b||b!==null&&y===b.alternate)break t;y=Ql(y),b=Ql(b)}y=null}else y=null;v!==null&&lk(d,p,v,y,!1),g!==null&&w!==null&&lk(d,w,g,y,!0)}}e:{if(p=u?Ou(u):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var j=gG;else if(ek(p))if(z5)j=xG;else{j=bG;var E=yG}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(j=_G);if(j&&(j=j(e,u))){B5(d,j,n,f);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Sw(p,"number",p.value)}switch(E=u?Ou(u):window,e){case"focusin":(ek(E)||E.contentEditable==="true")&&(xu=E,Iw=u,jd=null);break;case"focusout":jd=Iw=xu=null;break;case"mousedown":Dw=!0;break;case"contextmenu":case"mouseup":case"dragend":Dw=!1,ok(d,n,f);break;case"selectionchange":if(SG)break;case"keydown":case"keyup":ok(d,n,f)}var P;if(fj)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else _u?F5(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&($5&&n.locale!=="ko"&&(_u||N!=="onCompositionStart"?N==="onCompositionEnd"&&_u&&(P=D5()):(ka=f,lj="value"in ka?ka.value:ka.textContent,_u=!0)),E=mg(u,N),0<E.length&&(N=new KA(N,e,null,n,f),d.push({event:N,listeners:E}),P?N.data=P:(P=U5(n),P!==null&&(N.data=P)))),(P=dG?hG(e,n):pG(e,n))&&(u=mg(u,"onBeforeInput"),0<u.length&&(f=new KA("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=P))}Q5(d,t)})}function sh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=eh(e,n),o!=null&&r.unshift(sh(e,o,i)),o=eh(e,t),o!=null&&r.push(sh(e,o,i))),e=e.return}return r}function Ql(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lk(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=eh(n,o),l!=null&&a.unshift(sh(n,l,s))):i||(l=eh(n,o),l!=null&&a.push(sh(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var CG=/\r\n?/g,PG=/\u0000|\uFFFD/g;function uk(e){return(typeof e=="string"?e:""+e).replace(CG,`
|
||
`).replace(PG,"")}function $m(e,t,n){if(t=uk(t),uk(e)!==t&&n)throw Error(Oe(425))}function vg(){}var $w=null,Fw=null;function Uw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bw=typeof setTimeout=="function"?setTimeout:void 0,AG=typeof clearTimeout=="function"?clearTimeout:void 0,ck=typeof Promise=="function"?Promise:void 0,kG=typeof queueMicrotask=="function"?queueMicrotask:typeof ck<"u"?function(e){return ck.resolve(null).then(e).catch(NG)}:Bw;function NG(e){setTimeout(function(){throw e})}function V_(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),rh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);rh(t)}function Va(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wc=Math.random().toString(36).slice(2),ao="__reactFiber$"+Wc,lh="__reactProps$"+Wc,Go="__reactContainer$"+Wc,zw="__reactEvents$"+Wc,LG="__reactListeners$"+Wc,RG="__reactHandles$"+Wc;function Ys(e){var t=e[ao];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Go]||n[ao]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fk(e);e!==null;){if(n=e[ao])return n;e=fk(e)}return t}e=n,n=e.parentNode}return null}function Ep(e){return e=e[ao]||e[Go],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ou(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function L0(e){return e[lh]||null}var Vw=[],Su=-1;function fs(e){return{current:e}}function Nt(e){0>Su||(e.current=Vw[Su],Vw[Su]=null,Su--)}function Ot(e,t){Su++,Vw[Su]=e.current,e.current=t}var es={},Yn=fs(es),br=fs(!1),vl=es;function Ju(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _r(e){return e=e.childContextTypes,e!=null}function gg(){Nt(br),Nt(Yn)}function dk(e,t,n){if(Yn.current!==es)throw Error(Oe(168));Ot(Yn,t),Ot(br,n)}function eD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Oe(108,yW(e)||"Unknown",i));return Wt({},n,r)}function yg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,vl=Yn.current,Ot(Yn,e),Ot(br,br.current),!0}function hk(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=eD(e,t,vl),r.__reactInternalMemoizedMergedChildContext=e,Nt(br),Nt(Yn),Ot(Yn,e)):Nt(br),Ot(br,n)}var Mo=null,R0=!1,H_=!1;function tD(e){Mo===null?Mo=[e]:Mo.push(e)}function MG(e){R0=!0,tD(e)}function ds(){if(!H_&&Mo!==null){H_=!0;var e=0,t=vt;try{var n=Mo;for(vt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mo=null,R0=!1}catch(i){throw Mo!==null&&(Mo=Mo.slice(e+1)),j5(ij,ds),i}finally{vt=t,H_=!1}}return null}var Eu=[],ju=0,bg=null,_g=0,ni=[],ri=0,gl=null,Io=1,Do="";function Is(e,t){Eu[ju++]=_g,Eu[ju++]=bg,bg=e,_g=t}function nD(e,t,n){ni[ri++]=Io,ni[ri++]=Do,ni[ri++]=gl,gl=e;var r=Io;e=Do;var i=32-Di(r)-1;r&=~(1<<i),n+=1;var o=32-Di(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Io=1<<32-Di(t)+i|n<<i|r,Do=o+e}else Io=1<<o|n<<i|r,Do=e}function hj(e){e.return!==null&&(Is(e,1),nD(e,1,0))}function pj(e){for(;e===bg;)bg=Eu[--ju],Eu[ju]=null,_g=Eu[--ju],Eu[ju]=null;for(;e===gl;)gl=ni[--ri],ni[ri]=null,Do=ni[--ri],ni[ri]=null,Io=ni[--ri],ni[ri]=null}var Dr=null,Mr=null,Mt=!1,Li=null;function rD(e,t){var n=si(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function pk(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dr=e,Mr=Va(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dr=e,Mr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gl!==null?{id:Io,overflow:Do}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=si(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dr=e,Mr=null,!0):!1;default:return!1}}function Hw(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ww(e){if(Mt){var t=Mr;if(t){var n=t;if(!pk(e,t)){if(Hw(e))throw Error(Oe(418));t=Va(n.nextSibling);var r=Dr;t&&pk(e,t)?rD(r,n):(e.flags=e.flags&-4097|2,Mt=!1,Dr=e)}}else{if(Hw(e))throw Error(Oe(418));e.flags=e.flags&-4097|2,Mt=!1,Dr=e}}}function mk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dr=e}function Fm(e){if(e!==Dr)return!1;if(!Mt)return mk(e),Mt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Uw(e.type,e.memoizedProps)),t&&(t=Mr)){if(Hw(e))throw iD(),Error(Oe(418));for(;t;)rD(e,t),t=Va(t.nextSibling)}if(mk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mr=Va(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mr=null}}else Mr=Dr?Va(e.stateNode.nextSibling):null;return!0}function iD(){for(var e=Mr;e;)e=Va(e.nextSibling)}function ec(){Mr=Dr=null,Mt=!1}function mj(e){Li===null?Li=[e]:Li.push(e)}var IG=ia.ReactCurrentBatchConfig;function Pi(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var xg=fs(null),wg=null,Tu=null,vj=null;function gj(){vj=Tu=wg=null}function yj(e){var t=xg.current;Nt(xg),e._currentValue=t}function Gw(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hu(e,t){wg=e,vj=Tu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vr=!0),e.firstContext=null)}function pi(e){var t=e._currentValue;if(vj!==e)if(e={context:e,memoizedValue:t,next:null},Tu===null){if(wg===null)throw Error(Oe(308));Tu=e,wg.dependencies={lanes:0,firstContext:e}}else Tu=Tu.next=e;return t}var Ks=null;function bj(e){Ks===null?Ks=[e]:Ks.push(e)}function oD(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,bj(t)):(n.next=i.next,i.next=n),t.interleaved=n,qo(e,r)}function qo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ea=!1;function _j(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ct&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qo(e,n)}return i=r.interleaved,i===null?(t.next=t,bj(r)):(t.next=i.next,i.next=t),r.interleaved=t,qo(e,n)}function $v(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,oj(e,n)}}function vk(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Og(e,t,n,r){var i=e.updateQueue;Ea=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,f=u=l=null,s=o;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(v,d,p);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,d,p):g,p==null)break e;d=Wt({},d,p);break e;case 2:Ea=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,l=d):f=f.next=v,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);bl|=a,e.lanes=a,e.memoizedState=d}}function gk(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Oe(191,i));i.call(r)}}}var sD=new o5.Component().refs;function qw(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Wt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var M0={isMounted:function(e){return(e=e._reactInternals)?Rl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lr(),i=Ga(e),o=Bo(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ha(e,o,i),t!==null&&($i(t,e,i,r),$v(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lr(),i=Ga(e),o=Bo(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ha(e,o,i),t!==null&&($i(t,e,i,r),$v(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lr(),r=Ga(e),i=Bo(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ha(e,i,r),t!==null&&($i(t,e,r,n),$v(t,e,r))}};function yk(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!oh(n,r)||!oh(i,o):!0}function lD(e,t,n){var r=!1,i=es,o=t.contextType;return typeof o=="object"&&o!==null?o=pi(o):(i=_r(t)?vl:Yn.current,r=t.contextTypes,o=(r=r!=null)?Ju(e,i):es),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=M0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bk(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&M0.enqueueReplaceState(t,t.state,null)}function Zw(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=sD,_j(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=pi(o):(o=_r(t)?vl:Yn.current,i.context=Ju(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(qw(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&M0.enqueueReplaceState(i,i.state,null),Og(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vf(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Oe(309));var r=n.stateNode}if(!r)throw Error(Oe(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;s===sD&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Oe(284));if(!n._owner)throw Error(Oe(290,e))}return e}function Um(e,t){throw e=Object.prototype.toString.call(t),Error(Oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _k(e){var t=e._init;return t(e._payload)}function uD(e){function t(b,x){if(e){var _=b.deletions;_===null?(b.deletions=[x],b.flags|=16):_.push(x)}}function n(b,x){if(!e)return null;for(;x!==null;)t(b,x),x=x.sibling;return null}function r(b,x){for(b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function i(b,x){return b=qa(b,x),b.index=0,b.sibling=null,b}function o(b,x,_){return b.index=_,e?(_=b.alternate,_!==null?(_=_.index,_<x?(b.flags|=2,x):_):(b.flags|=2,x)):(b.flags|=1048576,x)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,x,_,S){return x===null||x.tag!==6?(x=X_(_,b.mode,S),x.return=b,x):(x=i(x,_),x.return=b,x)}function l(b,x,_,S){var j=_.type;return j===bu?f(b,x,_.props.children,S,_.key):x!==null&&(x.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Sa&&_k(j)===x.type)?(S=i(x,_.props),S.ref=Vf(b,x,_),S.return=b,S):(S=Hv(_.type,_.key,_.props,null,b.mode,S),S.ref=Vf(b,x,_),S.return=b,S)}function u(b,x,_,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==_.containerInfo||x.stateNode.implementation!==_.implementation?(x=Q_(_,b.mode,S),x.return=b,x):(x=i(x,_.children||[]),x.return=b,x)}function f(b,x,_,S,j){return x===null||x.tag!==7?(x=sl(_,b.mode,S,j),x.return=b,x):(x=i(x,_),x.return=b,x)}function d(b,x,_){if(typeof x=="string"&&x!==""||typeof x=="number")return x=X_(""+x,b.mode,_),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Pm:return _=Hv(x.type,x.key,x.props,null,b.mode,_),_.ref=Vf(b,null,x),_.return=b,_;case yu:return x=Q_(x,b.mode,_),x.return=b,x;case Sa:var S=x._init;return d(b,S(x._payload),_)}if(cd(x)||$f(x))return x=sl(x,b.mode,_,null),x.return=b,x;Um(b,x)}return null}function p(b,x,_,S){var j=x!==null?x.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return j!==null?null:s(b,x,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Pm:return _.key===j?l(b,x,_,S):null;case yu:return _.key===j?u(b,x,_,S):null;case Sa:return j=_._init,p(b,x,j(_._payload),S)}if(cd(_)||$f(_))return j!==null?null:f(b,x,_,S,null);Um(b,_)}return null}function v(b,x,_,S,j){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(_)||null,s(x,b,""+S,j);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Pm:return b=b.get(S.key===null?_:S.key)||null,l(x,b,S,j);case yu:return b=b.get(S.key===null?_:S.key)||null,u(x,b,S,j);case Sa:var E=S._init;return v(b,x,_,E(S._payload),j)}if(cd(S)||$f(S))return b=b.get(_)||null,f(x,b,S,j,null);Um(x,S)}return null}function g(b,x,_,S){for(var j=null,E=null,P=x,N=x=0,I=null;P!==null&&N<_.length;N++){P.index>N?(I=P,P=null):I=P.sibling;var M=p(b,P,_[N],S);if(M===null){P===null&&(P=I);break}e&&P&&M.alternate===null&&t(b,P),x=o(M,x,N),E===null?j=M:E.sibling=M,E=M,P=I}if(N===_.length)return n(b,P),Mt&&Is(b,N),j;if(P===null){for(;N<_.length;N++)P=d(b,_[N],S),P!==null&&(x=o(P,x,N),E===null?j=P:E.sibling=P,E=P);return Mt&&Is(b,N),j}for(P=r(b,P);N<_.length;N++)I=v(P,b,N,_[N],S),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?N:I.key),x=o(I,x,N),E===null?j=I:E.sibling=I,E=I);return e&&P.forEach(function(D){return t(b,D)}),Mt&&Is(b,N),j}function y(b,x,_,S){var j=$f(_);if(typeof j!="function")throw Error(Oe(150));if(_=j.call(_),_==null)throw Error(Oe(151));for(var E=j=null,P=x,N=x=0,I=null,M=_.next();P!==null&&!M.done;N++,M=_.next()){P.index>N?(I=P,P=null):I=P.sibling;var D=p(b,P,M.value,S);if(D===null){P===null&&(P=I);break}e&&P&&D.alternate===null&&t(b,P),x=o(D,x,N),E===null?j=D:E.sibling=D,E=D,P=I}if(M.done)return n(b,P),Mt&&Is(b,N),j;if(P===null){for(;!M.done;N++,M=_.next())M=d(b,M.value,S),M!==null&&(x=o(M,x,N),E===null?j=M:E.sibling=M,E=M);return Mt&&Is(b,N),j}for(P=r(b,P);!M.done;N++,M=_.next())M=v(P,b,N,M.value,S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?N:M.key),x=o(M,x,N),E===null?j=M:E.sibling=M,E=M);return e&&P.forEach(function(z){return t(b,z)}),Mt&&Is(b,N),j}function w(b,x,_,S){if(typeof _=="object"&&_!==null&&_.type===bu&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Pm:e:{for(var j=_.key,E=x;E!==null;){if(E.key===j){if(j=_.type,j===bu){if(E.tag===7){n(b,E.sibling),x=i(E,_.props.children),x.return=b,b=x;break e}}else if(E.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Sa&&_k(j)===E.type){n(b,E.sibling),x=i(E,_.props),x.ref=Vf(b,E,_),x.return=b,b=x;break e}n(b,E);break}else t(b,E);E=E.sibling}_.type===bu?(x=sl(_.props.children,b.mode,S,_.key),x.return=b,b=x):(S=Hv(_.type,_.key,_.props,null,b.mode,S),S.ref=Vf(b,x,_),S.return=b,b=S)}return a(b);case yu:e:{for(E=_.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===_.containerInfo&&x.stateNode.implementation===_.implementation){n(b,x.sibling),x=i(x,_.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=Q_(_,b.mode,S),x.return=b,b=x}return a(b);case Sa:return E=_._init,w(b,x,E(_._payload),S)}if(cd(_))return g(b,x,_,S);if($f(_))return y(b,x,_,S);Um(b,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,x!==null&&x.tag===6?(n(b,x.sibling),x=i(x,_),x.return=b,b=x):(n(b,x),x=X_(_,b.mode,S),x.return=b,b=x),a(b)):n(b,x)}return w}var tc=uD(!0),cD=uD(!1),jp={},ho=fs(jp),uh=fs(jp),ch=fs(jp);function Xs(e){if(e===jp)throw Error(Oe(174));return e}function xj(e,t){switch(Ot(ch,t),Ot(uh,e),Ot(ho,jp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jw(t,e)}Nt(ho),Ot(ho,t)}function nc(){Nt(ho),Nt(uh),Nt(ch)}function fD(e){Xs(ch.current);var t=Xs(ho.current),n=jw(t,e.type);t!==n&&(Ot(uh,e),Ot(ho,n))}function wj(e){uh.current===e&&(Nt(ho),Nt(uh))}var Bt=fs(0);function Sg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var W_=[];function Oj(){for(var e=0;e<W_.length;e++)W_[e]._workInProgressVersionPrimary=null;W_.length=0}var Fv=ia.ReactCurrentDispatcher,G_=ia.ReactCurrentBatchConfig,yl=0,Vt=null,dn=null,jn=null,Eg=!1,Td=!1,fh=0,DG=0;function Vn(){throw Error(Oe(321))}function Sj(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bi(e[n],t[n]))return!1;return!0}function Ej(e,t,n,r,i,o){if(yl=o,Vt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fv.current=e===null||e.memoizedState===null?BG:zG,e=n(r,i),Td){o=0;do{if(Td=!1,fh=0,25<=o)throw Error(Oe(301));o+=1,jn=dn=null,t.updateQueue=null,Fv.current=VG,e=n(r,i)}while(Td)}if(Fv.current=jg,t=dn!==null&&dn.next!==null,yl=0,jn=dn=Vt=null,Eg=!1,t)throw Error(Oe(300));return e}function jj(){var e=fh!==0;return fh=0,e}function ro(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jn===null?Vt.memoizedState=jn=e:jn=jn.next=e,jn}function mi(){if(dn===null){var e=Vt.alternate;e=e!==null?e.memoizedState:null}else e=dn.next;var t=jn===null?Vt.memoizedState:jn.next;if(t!==null)jn=t,dn=e;else{if(e===null)throw Error(Oe(310));dn=e,e={memoizedState:dn.memoizedState,baseState:dn.baseState,baseQueue:dn.baseQueue,queue:dn.queue,next:null},jn===null?Vt.memoizedState=jn=e:jn=jn.next=e}return jn}function dh(e,t){return typeof t=="function"?t(e):t}function q_(e){var t=mi(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=dn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((yl&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Vt.lanes|=f,bl|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Bi(r,t.memoizedState)||(vr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Vt.lanes|=o,bl|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Z_(e){var t=mi(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Bi(o,t.memoizedState)||(vr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function dD(){}function hD(e,t){var n=Vt,r=mi(),i=t(),o=!Bi(r.memoizedState,i);if(o&&(r.memoizedState=i,vr=!0),r=r.queue,Tj(vD.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||jn!==null&&jn.memoizedState.tag&1){if(n.flags|=2048,hh(9,mD.bind(null,n,r,i,t),void 0,null),Cn===null)throw Error(Oe(349));yl&30||pD(n,t,i)}return i}function pD(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mD(e,t,n,r){t.value=n,t.getSnapshot=r,gD(t)&&yD(e)}function vD(e,t,n){return n(function(){gD(t)&&yD(e)})}function gD(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bi(e,n)}catch{return!0}}function yD(e){var t=qo(e,1);t!==null&&$i(t,e,1,-1)}function xk(e){var t=ro();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:e},t.queue=e,e=e.dispatch=UG.bind(null,Vt,e),[t.memoizedState,e]}function hh(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Vt.updateQueue,t===null?(t={lastEffect:null,stores:null},Vt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function bD(){return mi().memoizedState}function Uv(e,t,n,r){var i=ro();Vt.flags|=e,i.memoizedState=hh(1|t,n,void 0,r===void 0?null:r)}function I0(e,t,n,r){var i=mi();r=r===void 0?null:r;var o=void 0;if(dn!==null){var a=dn.memoizedState;if(o=a.destroy,r!==null&&Sj(r,a.deps)){i.memoizedState=hh(t,n,o,r);return}}Vt.flags|=e,i.memoizedState=hh(1|t,n,o,r)}function wk(e,t){return Uv(8390656,8,e,t)}function Tj(e,t){return I0(2048,8,e,t)}function _D(e,t){return I0(4,2,e,t)}function xD(e,t){return I0(4,4,e,t)}function wD(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function OD(e,t,n){return n=n!=null?n.concat([e]):null,I0(4,4,wD.bind(null,t,e),n)}function Cj(){}function SD(e,t){var n=mi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sj(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ED(e,t){var n=mi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sj(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jD(e,t,n){return yl&21?(Bi(n,t)||(n=P5(),Vt.lanes|=n,bl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vr=!0),e.memoizedState=n)}function $G(e,t){var n=vt;vt=n!==0&&4>n?n:4,e(!0);var r=G_.transition;G_.transition={};try{e(!1),t()}finally{vt=n,G_.transition=r}}function TD(){return mi().memoizedState}function FG(e,t,n){var r=Ga(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},CD(e))PD(t,n);else if(n=oD(e,t,n,r),n!==null){var i=lr();$i(n,e,r,i),AD(n,t,r)}}function UG(e,t,n){var r=Ga(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(CD(e))PD(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Bi(s,a)){var l=t.interleaved;l===null?(i.next=i,bj(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=oD(e,t,i,r),n!==null&&(i=lr(),$i(n,e,r,i),AD(n,t,r))}}function CD(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function PD(e,t){Td=Eg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AD(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,oj(e,n)}}var jg={readContext:pi,useCallback:Vn,useContext:Vn,useEffect:Vn,useImperativeHandle:Vn,useInsertionEffect:Vn,useLayoutEffect:Vn,useMemo:Vn,useReducer:Vn,useRef:Vn,useState:Vn,useDebugValue:Vn,useDeferredValue:Vn,useTransition:Vn,useMutableSource:Vn,useSyncExternalStore:Vn,useId:Vn,unstable_isNewReconciler:!1},BG={readContext:pi,useCallback:function(e,t){return ro().memoizedState=[e,t===void 0?null:t],e},useContext:pi,useEffect:wk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Uv(4194308,4,wD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uv(4,2,e,t)},useMemo:function(e,t){var n=ro();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ro();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=FG.bind(null,Vt,e),[r.memoizedState,e]},useRef:function(e){var t=ro();return e={current:e},t.memoizedState=e},useState:xk,useDebugValue:Cj,useDeferredValue:function(e){return ro().memoizedState=e},useTransition:function(){var e=xk(!1),t=e[0];return e=$G.bind(null,e[1]),ro().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Vt,i=ro();if(Mt){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=t(),Cn===null)throw Error(Oe(349));yl&30||pD(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,wk(vD.bind(null,r,o,e),[e]),r.flags|=2048,hh(9,mD.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ro(),t=Cn.identifierPrefix;if(Mt){var n=Do,r=Io;n=(r&~(1<<32-Di(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fh++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DG++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zG={readContext:pi,useCallback:SD,useContext:pi,useEffect:Tj,useImperativeHandle:OD,useInsertionEffect:_D,useLayoutEffect:xD,useMemo:ED,useReducer:q_,useRef:bD,useState:function(){return q_(dh)},useDebugValue:Cj,useDeferredValue:function(e){var t=mi();return jD(t,dn.memoizedState,e)},useTransition:function(){var e=q_(dh)[0],t=mi().memoizedState;return[e,t]},useMutableSource:dD,useSyncExternalStore:hD,useId:TD,unstable_isNewReconciler:!1},VG={readContext:pi,useCallback:SD,useContext:pi,useEffect:Tj,useImperativeHandle:OD,useInsertionEffect:_D,useLayoutEffect:xD,useMemo:ED,useReducer:Z_,useRef:bD,useState:function(){return Z_(dh)},useDebugValue:Cj,useDeferredValue:function(e){var t=mi();return dn===null?t.memoizedState=e:jD(t,dn.memoizedState,e)},useTransition:function(){var e=Z_(dh)[0],t=mi().memoizedState;return[e,t]},useMutableSource:dD,useSyncExternalStore:hD,useId:TD,unstable_isNewReconciler:!1};function rc(e,t){try{var n="",r=t;do n+=gW(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Y_(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HG=typeof WeakMap=="function"?WeakMap:Map;function kD(e,t,n){n=Bo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cg||(Cg=!0,o2=r),Yw(e,t)},n}function ND(e,t,n){n=Bo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Yw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Yw(e,t),typeof r!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Ok(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HG;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=iq.bind(null,e,t,n),t.then(e,e))}function Sk(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ek(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Bo(-1,1),t.tag=2,Ha(n,t,1))),n.lanes|=1),e)}var WG=ia.ReactCurrentOwner,vr=!1;function rr(e,t,n,r){t.child=e===null?cD(t,null,n,r):tc(t,e.child,n,r)}function jk(e,t,n,r,i){n=n.render;var o=t.ref;return Hu(t,i),r=Ej(e,t,n,r,o,i),n=jj(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Zo(e,t,i)):(Mt&&n&&hj(t),t.flags|=1,rr(e,t,r,i),t.child)}function Tk(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ij(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,LD(e,t,o,r,i)):(e=Hv(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:oh,n(a,r)&&e.ref===t.ref)return Zo(e,t,i)}return t.flags|=1,e=qa(o,r),e.ref=t.ref,e.return=t,t.child=e}function LD(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(oh(o,r)&&e.ref===t.ref)if(vr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(vr=!0);else return t.lanes=e.lanes,Zo(e,t,i)}return Kw(e,t,n,r,i)}function RD(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Pu,Nr),Nr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(Pu,Nr),Nr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ot(Pu,Nr),Nr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ot(Pu,Nr),Nr|=r;return rr(e,t,i,n),t.child}function MD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kw(e,t,n,r,i){var o=_r(n)?vl:Yn.current;return o=Ju(t,o),Hu(t,i),n=Ej(e,t,n,r,o,i),r=jj(),e!==null&&!vr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Zo(e,t,i)):(Mt&&r&&hj(t),t.flags|=1,rr(e,t,n,i),t.child)}function Ck(e,t,n,r,i){if(_r(n)){var o=!0;yg(t)}else o=!1;if(Hu(t,i),t.stateNode===null)Bv(e,t),lD(t,n,r),Zw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=pi(u):(u=_r(n)?vl:Yn.current,u=Ju(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&bk(t,a,r,u),Ea=!1;var p=t.memoizedState;a.state=p,Og(t,r,a,i),l=t.memoizedState,s!==r||p!==l||br.current||Ea?(typeof f=="function"&&(qw(t,n,f,r),l=t.memoizedState),(s=Ea||yk(t,n,s,r,p,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,aD(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Pi(t.type,s),a.props=u,d=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=pi(l):(l=_r(n)?vl:Yn.current,l=Ju(t,l));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==l)&&bk(t,a,r,l),Ea=!1,p=t.memoizedState,a.state=p,Og(t,r,a,i);var g=t.memoizedState;s!==d||p!==g||br.current||Ea?(typeof v=="function"&&(qw(t,n,v,r),g=t.memoizedState),(u=Ea||yk(t,n,u,r,p,g,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Xw(e,t,n,r,o,i)}function Xw(e,t,n,r,i,o){MD(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&hk(t,n,!1),Zo(e,t,o);r=t.stateNode,WG.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=tc(t,e.child,null,o),t.child=tc(t,null,s,o)):rr(e,t,s,o),t.memoizedState=r.state,i&&hk(t,n,!0),t.child}function ID(e){var t=e.stateNode;t.pendingContext?dk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dk(e,t.context,!1),xj(e,t.containerInfo)}function Pk(e,t,n,r,i){return ec(),mj(i),t.flags|=256,rr(e,t,n,r),t.child}var Qw={dehydrated:null,treeContext:null,retryLane:0};function Jw(e){return{baseLanes:e,cachePool:null,transitions:null}}function DD(e,t,n){var r=t.pendingProps,i=Bt.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(Bt,i&1),e===null)return Ww(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=F0(a,r,0,null),e=sl(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Jw(n),t.memoizedState=Qw,e):Pj(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return GG(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=qa(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=qa(s,o):(o=sl(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Jw(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Qw,r}return o=e.child,e=o.sibling,r=qa(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pj(e,t){return t=F0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bm(e,t,n,r){return r!==null&&mj(r),tc(t,e.child,null,n),e=Pj(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GG(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Y_(Error(Oe(422))),Bm(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=F0({mode:"visible",children:r.children},i,0,null),o=sl(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&tc(t,e.child,null,a),t.child.memoizedState=Jw(a),t.memoizedState=Qw,o);if(!(t.mode&1))return Bm(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Oe(419)),r=Y_(o,r,void 0),Bm(e,t,a,r)}if(s=(a&e.childLanes)!==0,vr||s){if(r=Cn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,qo(e,i),$i(r,e,i,-1))}return Mj(),r=Y_(Error(Oe(421))),Bm(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=oq.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Mr=Va(i.nextSibling),Dr=t,Mt=!0,Li=null,e!==null&&(ni[ri++]=Io,ni[ri++]=Do,ni[ri++]=gl,Io=e.id,Do=e.overflow,gl=t),t=Pj(t,r.children),t.flags|=4096,t)}function Ak(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gw(e.return,t,n)}function K_(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $D(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(rr(e,t,r.children,n),r=Bt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ak(e,n,t);else if(e.tag===19)Ak(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ot(Bt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Sg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),K_(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Sg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}K_(t,!0,n,null,o);break;case"together":K_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Oe(153));if(t.child!==null){for(e=t.child,n=qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qG(e,t,n){switch(t.tag){case 3:ID(t),ec();break;case 5:fD(t);break;case 1:_r(t.type)&&yg(t);break;case 4:xj(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ot(xg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ot(Bt,Bt.current&1),t.flags|=128,null):n&t.child.childLanes?DD(e,t,n):(Ot(Bt,Bt.current&1),e=Zo(e,t,n),e!==null?e.sibling:null);Ot(Bt,Bt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $D(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(Bt,Bt.current),r)break;return null;case 22:case 23:return t.lanes=0,RD(e,t,n)}return Zo(e,t,n)}var FD,e2,UD,BD;FD=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};e2=function(){};UD=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xs(ho.current);var o=null;switch(n){case"input":i=ww(e,i),r=ww(e,r),o=[];break;case"select":i=Wt({},i,{value:void 0}),r=Wt({},r,{value:void 0}),o=[];break;case"textarea":i=Ew(e,i),r=Ew(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vg)}Tw(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qd.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qd.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&jt("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};BD=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hf(e,t){if(!Mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Hn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ZG(e,t,n){var r=t.pendingProps;switch(pj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hn(t),null;case 1:return _r(t.type)&&gg(),Hn(t),null;case 3:return r=t.stateNode,nc(),Nt(br),Nt(Yn),Oj(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li!==null&&(l2(Li),Li=null))),e2(e,t),Hn(t),null;case 5:wj(t);var i=Xs(ch.current);if(n=t.type,e!==null&&t.stateNode!=null)UD(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Oe(166));return Hn(t),null}if(e=Xs(ho.current),Fm(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ao]=t,r[lh]=o,e=(t.mode&1)!==0,n){case"dialog":jt("cancel",r),jt("close",r);break;case"iframe":case"object":case"embed":jt("load",r);break;case"video":case"audio":for(i=0;i<dd.length;i++)jt(dd[i],r);break;case"source":jt("error",r);break;case"img":case"image":case"link":jt("error",r),jt("load",r);break;case"details":jt("toggle",r);break;case"input":FA(r,o),jt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},jt("invalid",r);break;case"textarea":BA(r,o),jt("invalid",r)}Tw(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&$m(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&$m(r.textContent,s,e),i=["children",""+s]):Qd.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&jt("scroll",r)}switch(n){case"input":Am(r),UA(r,o,!0);break;case"textarea":Am(r),zA(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=vg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p5(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ao]=t,e[lh]=r,FD(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cw(n,r),n){case"dialog":jt("cancel",e),jt("close",e),i=r;break;case"iframe":case"object":case"embed":jt("load",e),i=r;break;case"video":case"audio":for(i=0;i<dd.length;i++)jt(dd[i],e);i=r;break;case"source":jt("error",e),i=r;break;case"img":case"image":case"link":jt("error",e),jt("load",e),i=r;break;case"details":jt("toggle",e),i=r;break;case"input":FA(e,r),i=ww(e,r),jt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Wt({},r,{value:void 0}),jt("invalid",e);break;case"textarea":BA(e,r),i=Ew(e,r),jt("invalid",e);break;default:i=r}Tw(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?g5(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&m5(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Jd(e,l):typeof l=="number"&&Jd(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Qd.hasOwnProperty(o)?l!=null&&o==="onScroll"&&jt("scroll",e):l!=null&&JE(e,o,l,a))}switch(n){case"input":Am(e),UA(e,r,!1);break;case"textarea":Am(e),zA(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ja(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Uu(e,!!r.multiple,o,!1):r.defaultValue!=null&&Uu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=vg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Hn(t),null;case 6:if(e&&t.stateNode!=null)BD(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Oe(166));if(n=Xs(ch.current),Xs(ho.current),Fm(t)){if(r=t.stateNode,n=t.memoizedProps,r[ao]=t,(o=r.nodeValue!==n)&&(e=Dr,e!==null))switch(e.tag){case 3:$m(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$m(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ao]=t,t.stateNode=r}return Hn(t),null;case 13:if(Nt(Bt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mt&&Mr!==null&&t.mode&1&&!(t.flags&128))iD(),ec(),t.flags|=98560,o=!1;else if(o=Fm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Oe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Oe(317));o[ao]=t}else ec(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hn(t),o=!1}else Li!==null&&(l2(Li),Li=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Bt.current&1?hn===0&&(hn=3):Mj())),t.updateQueue!==null&&(t.flags|=4),Hn(t),null);case 4:return nc(),e2(e,t),e===null&&ah(t.stateNode.containerInfo),Hn(t),null;case 10:return yj(t.type._context),Hn(t),null;case 17:return _r(t.type)&&gg(),Hn(t),null;case 19:if(Nt(Bt),o=t.memoizedState,o===null)return Hn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Hf(o,!1);else{if(hn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Sg(e),a!==null){for(t.flags|=128,Hf(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ot(Bt,Bt.current&1|2),t.child}e=e.sibling}o.tail!==null&&tn()>ic&&(t.flags|=128,r=!0,Hf(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Mt)return Hn(t),null}else 2*tn()-o.renderingStartTime>ic&&n!==1073741824&&(t.flags|=128,r=!0,Hf(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=tn(),t.sibling=null,n=Bt.current,Ot(Bt,r?n&1|2:n&1),t):(Hn(t),null);case 22:case 23:return Rj(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nr&1073741824&&(Hn(t),t.subtreeFlags&6&&(t.flags|=8192)):Hn(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function YG(e,t){switch(pj(t),t.tag){case 1:return _r(t.type)&&gg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nc(),Nt(br),Nt(Yn),Oj(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wj(t),null;case 13:if(Nt(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));ec()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nt(Bt),null;case 4:return nc(),null;case 10:return yj(t.type._context),null;case 22:case 23:return Rj(),null;case 24:return null;default:return null}}var zm=!1,Gn=!1,KG=typeof WeakSet=="function"?WeakSet:Set,Me=null;function Cu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qt(e,t,r)}else n.current=null}function t2(e,t,n){try{n()}catch(r){qt(e,t,r)}}var kk=!1;function XG(e,t){if($w=hg,e=W5(),dj(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++f===r&&(l=a),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fw={focusedElem:e,selectionRange:n},hg=!1,Me=t;Me!==null;)if(t=Me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Me=e;else for(;Me!==null;){t=Me;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:Pi(t.type,y),w);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(S){qt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Me=e;break}Me=t.return}return g=kk,kk=!1,g}function Cd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&t2(t,n,o)}i=i.next}while(i!==r)}}function D0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function n2(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zD(e){var t=e.alternate;t!==null&&(e.alternate=null,zD(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ao],delete t[lh],delete t[zw],delete t[LG],delete t[RG])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function VD(e){return e.tag===5||e.tag===3||e.tag===4}function Nk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VD(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function r2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vg));else if(r!==4&&(e=e.child,e!==null))for(r2(e,t,n),e=e.sibling;e!==null;)r2(e,t,n),e=e.sibling}function i2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(i2(e,t,n),e=e.sibling;e!==null;)i2(e,t,n),e=e.sibling}var Un=null,Ai=!1;function ma(e,t,n){for(n=n.child;n!==null;)HD(e,t,n),n=n.sibling}function HD(e,t,n){if(fo&&typeof fo.onCommitFiberUnmount=="function")try{fo.onCommitFiberUnmount(P0,n)}catch{}switch(n.tag){case 5:Gn||Cu(n,t);case 6:var r=Un,i=Ai;Un=null,ma(e,t,n),Un=r,Ai=i,Un!==null&&(Ai?(e=Un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Un.removeChild(n.stateNode));break;case 18:Un!==null&&(Ai?(e=Un,n=n.stateNode,e.nodeType===8?V_(e.parentNode,n):e.nodeType===1&&V_(e,n),rh(e)):V_(Un,n.stateNode));break;case 4:r=Un,i=Ai,Un=n.stateNode.containerInfo,Ai=!0,ma(e,t,n),Un=r,Ai=i;break;case 0:case 11:case 14:case 15:if(!Gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&t2(n,t,a),i=i.next}while(i!==r)}ma(e,t,n);break;case 1:if(!Gn&&(Cu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){qt(n,t,s)}ma(e,t,n);break;case 21:ma(e,t,n);break;case 22:n.mode&1?(Gn=(r=Gn)||n.memoizedState!==null,ma(e,t,n),Gn=r):ma(e,t,n);break;default:ma(e,t,n)}}function Lk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KG),t.forEach(function(r){var i=aq.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ti(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Un=s.stateNode,Ai=!1;break e;case 3:Un=s.stateNode.containerInfo,Ai=!0;break e;case 4:Un=s.stateNode.containerInfo,Ai=!0;break e}s=s.return}if(Un===null)throw Error(Oe(160));HD(o,a,i),Un=null,Ai=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){qt(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)WD(t,e),t=t.sibling}function WD(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ti(t,e),eo(e),r&4){try{Cd(3,e,e.return),D0(3,e)}catch(y){qt(e,e.return,y)}try{Cd(5,e,e.return)}catch(y){qt(e,e.return,y)}}break;case 1:Ti(t,e),eo(e),r&512&&n!==null&&Cu(n,n.return);break;case 5:if(Ti(t,e),eo(e),r&512&&n!==null&&Cu(n,n.return),e.flags&32){var i=e.stateNode;try{Jd(i,"")}catch(y){qt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&d5(i,o),Cw(s,a);var u=Cw(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?g5(i,d):f==="dangerouslySetInnerHTML"?m5(i,d):f==="children"?Jd(i,d):JE(i,f,d,u)}switch(s){case"input":Ow(i,o);break;case"textarea":h5(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Uu(i,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?Uu(i,!!o.multiple,o.defaultValue,!0):Uu(i,!!o.multiple,o.multiple?[]:"",!1))}i[lh]=o}catch(y){qt(e,e.return,y)}}break;case 6:if(Ti(t,e),eo(e),r&4){if(e.stateNode===null)throw Error(Oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){qt(e,e.return,y)}}break;case 3:if(Ti(t,e),eo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rh(t.containerInfo)}catch(y){qt(e,e.return,y)}break;case 4:Ti(t,e),eo(e);break;case 13:Ti(t,e),eo(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Nj=tn())),r&4&&Lk(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Gn=(u=Gn)||f,Ti(t,e),Gn=u):Ti(t,e),eo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Me=e,f=e.child;f!==null;){for(d=Me=f;Me!==null;){switch(p=Me,v=p.child,p.tag){case 0:case 11:case 14:case 15:Cd(4,p,p.return);break;case 1:Cu(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(y){qt(r,n,y)}}break;case 5:Cu(p,p.return);break;case 22:if(p.memoizedState!==null){Mk(d);continue}}v!==null?(v.return=p,Me=v):Mk(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=v5("display",a))}catch(y){qt(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){qt(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ti(t,e),eo(e),r&4&&Lk(e);break;case 21:break;default:Ti(t,e),eo(e)}}function eo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(VD(n)){var r=n;break e}n=n.return}throw Error(Oe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Jd(i,""),r.flags&=-33);var o=Nk(e);i2(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Nk(e);r2(e,s,a);break;default:throw Error(Oe(161))}}catch(l){qt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function QG(e,t,n){Me=e,GD(e)}function GD(e,t,n){for(var r=(e.mode&1)!==0;Me!==null;){var i=Me,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||zm;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Gn;s=zm;var u=Gn;if(zm=a,(Gn=l)&&!u)for(Me=i;Me!==null;)a=Me,l=a.child,a.tag===22&&a.memoizedState!==null?Ik(i):l!==null?(l.return=a,Me=l):Ik(i);for(;o!==null;)Me=o,GD(o),o=o.sibling;Me=i,zm=s,Gn=u}Rk(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Me=o):Rk(e)}}function Rk(e){for(;Me!==null;){var t=Me;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Gn||D0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Gn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&gk(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gk(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&rh(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Oe(163))}Gn||t.flags&512&&n2(t)}catch(p){qt(t,t.return,p)}}if(t===e){Me=null;break}if(n=t.sibling,n!==null){n.return=t.return,Me=n;break}Me=t.return}}function Mk(e){for(;Me!==null;){var t=Me;if(t===e){Me=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Me=n;break}Me=t.return}}function Ik(e){for(;Me!==null;){var t=Me;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{D0(4,t)}catch(l){qt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){qt(t,i,l)}}var o=t.return;try{n2(t)}catch(l){qt(t,o,l)}break;case 5:var a=t.return;try{n2(t)}catch(l){qt(t,a,l)}}}catch(l){qt(t,t.return,l)}if(t===e){Me=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Me=s;break}Me=t.return}}var JG=Math.ceil,Tg=ia.ReactCurrentDispatcher,Aj=ia.ReactCurrentOwner,ui=ia.ReactCurrentBatchConfig,ct=0,Cn=null,sn=null,Bn=0,Nr=0,Pu=fs(0),hn=0,ph=null,bl=0,$0=0,kj=0,Pd=null,mr=null,Nj=0,ic=1/0,Lo=null,Cg=!1,o2=null,Wa=null,Vm=!1,Na=null,Pg=0,Ad=0,a2=null,zv=-1,Vv=0;function lr(){return ct&6?tn():zv!==-1?zv:zv=tn()}function Ga(e){return e.mode&1?ct&2&&Bn!==0?Bn&-Bn:IG.transition!==null?(Vv===0&&(Vv=P5()),Vv):(e=vt,e!==0||(e=window.event,e=e===void 0?16:I5(e.type)),e):1}function $i(e,t,n,r){if(50<Ad)throw Ad=0,a2=null,Error(Oe(185));Op(e,n,r),(!(ct&2)||e!==Cn)&&(e===Cn&&(!(ct&2)&&($0|=n),hn===4&&Pa(e,Bn)),xr(e,r),n===1&&ct===0&&!(t.mode&1)&&(ic=tn()+500,R0&&ds()))}function xr(e,t){var n=e.callbackNode;IW(e,t);var r=dg(e,e===Cn?Bn:0);if(r===0)n!==null&&WA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&WA(n),t===1)e.tag===0?MG(Dk.bind(null,e)):tD(Dk.bind(null,e)),kG(function(){!(ct&6)&&ds()}),n=null;else{switch(A5(r)){case 1:n=ij;break;case 4:n=T5;break;case 16:n=fg;break;case 536870912:n=C5;break;default:n=fg}n=e8(n,qD.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qD(e,t){if(zv=-1,Vv=0,ct&6)throw Error(Oe(327));var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=dg(e,e===Cn?Bn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ag(e,r);else{t=r;var i=ct;ct|=2;var o=YD();(Cn!==e||Bn!==t)&&(Lo=null,ic=tn()+500,al(e,t));do try{nq();break}catch(s){ZD(e,s)}while(!0);gj(),Tg.current=o,ct=i,sn!==null?t=0:(Cn=null,Bn=0,t=hn)}if(t!==0){if(t===2&&(i=Lw(e),i!==0&&(r=i,t=s2(e,i))),t===1)throw n=ph,al(e,0),Pa(e,r),xr(e,tn()),n;if(t===6)Pa(e,r);else{if(i=e.current.alternate,!(r&30)&&!eq(i)&&(t=Ag(e,r),t===2&&(o=Lw(e),o!==0&&(r=o,t=s2(e,o))),t===1))throw n=ph,al(e,0),Pa(e,r),xr(e,tn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Oe(345));case 2:Ds(e,mr,Lo);break;case 3:if(Pa(e,r),(r&130023424)===r&&(t=Nj+500-tn(),10<t)){if(dg(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){lr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Bw(Ds.bind(null,e,mr,Lo),t);break}Ds(e,mr,Lo);break;case 4:if(Pa(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Di(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*JG(r/1960))-r,10<r){e.timeoutHandle=Bw(Ds.bind(null,e,mr,Lo),r);break}Ds(e,mr,Lo);break;case 5:Ds(e,mr,Lo);break;default:throw Error(Oe(329))}}}return xr(e,tn()),e.callbackNode===n?qD.bind(null,e):null}function s2(e,t){var n=Pd;return e.current.memoizedState.isDehydrated&&(al(e,t).flags|=256),e=Ag(e,t),e!==2&&(t=mr,mr=n,t!==null&&l2(t)),e}function l2(e){mr===null?mr=e:mr.push.apply(mr,e)}function eq(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Bi(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pa(e,t){for(t&=~kj,t&=~$0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Di(t),r=1<<n;e[n]=-1,t&=~r}}function Dk(e){if(ct&6)throw Error(Oe(327));Wu();var t=dg(e,0);if(!(t&1))return xr(e,tn()),null;var n=Ag(e,t);if(e.tag!==0&&n===2){var r=Lw(e);r!==0&&(t=r,n=s2(e,r))}if(n===1)throw n=ph,al(e,0),Pa(e,t),xr(e,tn()),n;if(n===6)throw Error(Oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ds(e,mr,Lo),xr(e,tn()),null}function Lj(e,t){var n=ct;ct|=1;try{return e(t)}finally{ct=n,ct===0&&(ic=tn()+500,R0&&ds())}}function _l(e){Na!==null&&Na.tag===0&&!(ct&6)&&Wu();var t=ct;ct|=1;var n=ui.transition,r=vt;try{if(ui.transition=null,vt=1,e)return e()}finally{vt=r,ui.transition=n,ct=t,!(ct&6)&&ds()}}function Rj(){Nr=Pu.current,Nt(Pu)}function al(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,AG(n)),sn!==null)for(n=sn.return;n!==null;){var r=n;switch(pj(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gg();break;case 3:nc(),Nt(br),Nt(Yn),Oj();break;case 5:wj(r);break;case 4:nc();break;case 13:Nt(Bt);break;case 19:Nt(Bt);break;case 10:yj(r.type._context);break;case 22:case 23:Rj()}n=n.return}if(Cn=e,sn=e=qa(e.current,null),Bn=Nr=t,hn=0,ph=null,kj=$0=bl=0,mr=Pd=null,Ks!==null){for(t=0;t<Ks.length;t++)if(n=Ks[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Ks=null}return e}function ZD(e,t){do{var n=sn;try{if(gj(),Fv.current=jg,Eg){for(var r=Vt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Eg=!1}if(yl=0,jn=dn=Vt=null,Td=!1,fh=0,Aj.current=null,n===null||n.return===null){hn=1,ph=t,sn=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Bn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=Sk(a);if(v!==null){v.flags&=-257,Ek(v,a,s,o,t),v.mode&1&&Ok(o,u,t),t=v,l=u;var g=t.updateQueue;if(g===null){var y=new Set;y.add(l),t.updateQueue=y}else g.add(l);break e}else{if(!(t&1)){Ok(o,u,t),Mj();break e}l=Error(Oe(426))}}else if(Mt&&s.mode&1){var w=Sk(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Ek(w,a,s,o,t),mj(rc(l,s));break e}}o=l=rc(l,s),hn!==4&&(hn=2),Pd===null?Pd=[o]:Pd.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=kD(o,l,t);vk(o,b);break e;case 1:s=l;var x=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Wa===null||!Wa.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=ND(o,s,t);vk(o,S);break e}}o=o.return}while(o!==null)}XD(n)}catch(j){t=j,sn===n&&n!==null&&(sn=n=n.return);continue}break}while(!0)}function YD(){var e=Tg.current;return Tg.current=jg,e===null?jg:e}function Mj(){(hn===0||hn===3||hn===2)&&(hn=4),Cn===null||!(bl&268435455)&&!($0&268435455)||Pa(Cn,Bn)}function Ag(e,t){var n=ct;ct|=2;var r=YD();(Cn!==e||Bn!==t)&&(Lo=null,al(e,t));do try{tq();break}catch(i){ZD(e,i)}while(!0);if(gj(),ct=n,Tg.current=r,sn!==null)throw Error(Oe(261));return Cn=null,Bn=0,hn}function tq(){for(;sn!==null;)KD(sn)}function nq(){for(;sn!==null&&!TW();)KD(sn)}function KD(e){var t=JD(e.alternate,e,Nr);e.memoizedProps=e.pendingProps,t===null?XD(e):sn=t,Aj.current=null}function XD(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=YG(n,t),n!==null){n.flags&=32767,sn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{hn=6,sn=null;return}}else if(n=ZG(n,t,Nr),n!==null){sn=n;return}if(t=t.sibling,t!==null){sn=t;return}sn=t=e}while(t!==null);hn===0&&(hn=5)}function Ds(e,t,n){var r=vt,i=ui.transition;try{ui.transition=null,vt=1,rq(e,t,n,r)}finally{ui.transition=i,vt=r}return null}function rq(e,t,n,r){do Wu();while(Na!==null);if(ct&6)throw Error(Oe(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Oe(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(DW(e,o),e===Cn&&(sn=Cn=null,Bn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vm||(Vm=!0,e8(fg,function(){return Wu(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ui.transition,ui.transition=null;var a=vt;vt=1;var s=ct;ct|=4,Aj.current=null,XG(e,n),WD(n,e),OG(Fw),hg=!!$w,Fw=$w=null,e.current=n,QG(n),CW(),ct=s,vt=a,ui.transition=o}else e.current=n;if(Vm&&(Vm=!1,Na=e,Pg=i),o=e.pendingLanes,o===0&&(Wa=null),kW(n.stateNode),xr(e,tn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Cg)throw Cg=!1,e=o2,o2=null,e;return Pg&1&&e.tag!==0&&Wu(),o=e.pendingLanes,o&1?e===a2?Ad++:(Ad=0,a2=e):Ad=0,ds(),null}function Wu(){if(Na!==null){var e=A5(Pg),t=ui.transition,n=vt;try{if(ui.transition=null,vt=16>e?16:e,Na===null)var r=!1;else{if(e=Na,Na=null,Pg=0,ct&6)throw Error(Oe(331));var i=ct;for(ct|=4,Me=e.current;Me!==null;){var o=Me,a=o.child;if(Me.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Me=u;Me!==null;){var f=Me;switch(f.tag){case 0:case 11:case 15:Cd(8,f,o)}var d=f.child;if(d!==null)d.return=f,Me=d;else for(;Me!==null;){f=Me;var p=f.sibling,v=f.return;if(zD(f),f===u){Me=null;break}if(p!==null){p.return=v,Me=p;break}Me=v}}}var g=o.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}Me=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Me=a;else e:for(;Me!==null;){if(o=Me,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Cd(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,Me=b;break e}Me=o.return}}var x=e.current;for(Me=x;Me!==null;){a=Me;var _=a.child;if(a.subtreeFlags&2064&&_!==null)_.return=a,Me=_;else e:for(a=x;Me!==null;){if(s=Me,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:D0(9,s)}}catch(j){qt(s,s.return,j)}if(s===a){Me=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Me=S;break e}Me=s.return}}if(ct=i,ds(),fo&&typeof fo.onPostCommitFiberRoot=="function")try{fo.onPostCommitFiberRoot(P0,e)}catch{}r=!0}return r}finally{vt=n,ui.transition=t}}return!1}function $k(e,t,n){t=rc(n,t),t=kD(e,t,1),e=Ha(e,t,1),t=lr(),e!==null&&(Op(e,1,t),xr(e,t))}function qt(e,t,n){if(e.tag===3)$k(e,e,n);else for(;t!==null;){if(t.tag===3){$k(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=rc(n,e),e=ND(t,e,1),t=Ha(t,e,1),e=lr(),t!==null&&(Op(t,1,e),xr(t,e));break}}t=t.return}}function iq(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lr(),e.pingedLanes|=e.suspendedLanes&n,Cn===e&&(Bn&n)===n&&(hn===4||hn===3&&(Bn&130023424)===Bn&&500>tn()-Nj?al(e,0):kj|=n),xr(e,t)}function QD(e,t){t===0&&(e.mode&1?(t=Lm,Lm<<=1,!(Lm&130023424)&&(Lm=4194304)):t=1);var n=lr();e=qo(e,t),e!==null&&(Op(e,t,n),xr(e,n))}function oq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QD(e,n)}function aq(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Oe(314))}r!==null&&r.delete(t),QD(e,n)}var JD;JD=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||br.current)vr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vr=!1,qG(e,t,n);vr=!!(e.flags&131072)}else vr=!1,Mt&&t.flags&1048576&&nD(t,_g,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bv(e,t),e=t.pendingProps;var i=Ju(t,Yn.current);Hu(t,n),i=Ej(null,t,r,e,i,n);var o=jj();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_r(r)?(o=!0,yg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_j(t),i.updater=M0,t.stateNode=i,i._reactInternals=t,Zw(t,r,e,n),t=Xw(null,t,r,!0,o,n)):(t.tag=0,Mt&&o&&hj(t),rr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bv(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lq(r),e=Pi(r,e),i){case 0:t=Kw(null,t,r,e,n);break e;case 1:t=Ck(null,t,r,e,n);break e;case 11:t=jk(null,t,r,e,n);break e;case 14:t=Tk(null,t,r,Pi(r.type,e),n);break e}throw Error(Oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pi(r,i),Kw(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pi(r,i),Ck(e,t,r,i,n);case 3:e:{if(ID(t),e===null)throw Error(Oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,aD(e,t),Og(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=rc(Error(Oe(423)),t),t=Pk(e,t,r,n,i);break e}else if(r!==i){i=rc(Error(Oe(424)),t),t=Pk(e,t,r,n,i);break e}else for(Mr=Va(t.stateNode.containerInfo.firstChild),Dr=t,Mt=!0,Li=null,n=cD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ec(),r===i){t=Zo(e,t,n);break e}rr(e,t,r,n)}t=t.child}return t;case 5:return fD(t),e===null&&Ww(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Uw(r,i)?a=null:o!==null&&Uw(r,o)&&(t.flags|=32),MD(e,t),rr(e,t,a,n),t.child;case 6:return e===null&&Ww(t),null;case 13:return DD(e,t,n);case 4:return xj(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tc(t,null,r,n):rr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pi(r,i),jk(e,t,r,i,n);case 7:return rr(e,t,t.pendingProps,n),t.child;case 8:return rr(e,t,t.pendingProps.children,n),t.child;case 12:return rr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Ot(xg,r._currentValue),r._currentValue=a,o!==null)if(Bi(o.value,a)){if(o.children===i.children&&!br.current){t=Zo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Bo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Gw(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Oe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Gw(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}rr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hu(t,n),i=pi(i),r=r(i),t.flags|=1,rr(e,t,r,n),t.child;case 14:return r=t.type,i=Pi(r,t.pendingProps),i=Pi(r.type,i),Tk(e,t,r,i,n);case 15:return LD(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pi(r,i),Bv(e,t),t.tag=1,_r(r)?(e=!0,yg(t)):e=!1,Hu(t,n),lD(t,r,i),Zw(t,r,i,n),Xw(null,t,r,!0,e,n);case 19:return $D(e,t,n);case 22:return RD(e,t,n)}throw Error(Oe(156,t.tag))};function e8(e,t){return j5(e,t)}function sq(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(e,t,n,r){return new sq(e,t,n,r)}function Ij(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lq(e){if(typeof e=="function")return Ij(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tj)return 11;if(e===nj)return 14}return 2}function qa(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hv(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Ij(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case bu:return sl(n.children,i,o,t);case ej:a=8,i|=8;break;case yw:return e=si(12,n,t,i|2),e.elementType=yw,e.lanes=o,e;case bw:return e=si(13,n,t,i),e.elementType=bw,e.lanes=o,e;case _w:return e=si(19,n,t,i),e.elementType=_w,e.lanes=o,e;case u5:return F0(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case s5:a=10;break e;case l5:a=9;break e;case tj:a=11;break e;case nj:a=14;break e;case Sa:a=16,r=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=si(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function sl(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function F0(e,t,n,r){return e=si(22,e,r,t),e.elementType=u5,e.lanes=n,e.stateNode={isHidden:!1},e}function X_(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function Q_(e,t,n){return t=si(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uq(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=N_(0),this.expirationTimes=N_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N_(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Dj(e,t,n,r,i,o,a,s,l){return e=new uq(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=si(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_j(o),e}function cq(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function t8(e){if(!e)return es;e=e._reactInternals;e:{if(Rl(e)!==e||e.tag!==1)throw Error(Oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_r(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Oe(171))}if(e.tag===1){var n=e.type;if(_r(n))return eD(e,n,t)}return t}function n8(e,t,n,r,i,o,a,s,l){return e=Dj(n,r,!0,e,i,o,a,s,l),e.context=t8(null),n=e.current,r=lr(),i=Ga(n),o=Bo(r,i),o.callback=t??null,Ha(n,o,i),e.current.lanes=i,Op(e,i,r),xr(e,r),e}function U0(e,t,n,r){var i=t.current,o=lr(),a=Ga(i);return n=t8(n),t.context===null?t.context=n:t.pendingContext=n,t=Bo(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ha(i,t,a),e!==null&&($i(e,i,a,o),$v(e,i,a)),a}function kg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Fk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $j(e,t){Fk(e,t),(e=e.alternate)&&Fk(e,t)}function fq(){return null}var r8=typeof reportError=="function"?reportError:function(e){console.error(e)};function Fj(e){this._internalRoot=e}B0.prototype.render=Fj.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Oe(409));U0(e,t,null,null)};B0.prototype.unmount=Fj.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_l(function(){U0(null,e,null,null)}),t[Go]=null}};function B0(e){this._internalRoot=e}B0.prototype.unstable_scheduleHydration=function(e){if(e){var t=L5();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ca.length&&t!==0&&t<Ca[n].priority;n++);Ca.splice(n,0,e),n===0&&M5(e)}};function Uj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Uk(){}function dq(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=kg(a);o.call(u)}}var a=n8(t,r,e,0,null,!1,!1,"",Uk);return e._reactRootContainer=a,e[Go]=a.current,ah(e.nodeType===8?e.parentNode:e),_l(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=kg(l);s.call(u)}}var l=Dj(e,0,!1,null,null,!1,!1,"",Uk);return e._reactRootContainer=l,e[Go]=l.current,ah(e.nodeType===8?e.parentNode:e),_l(function(){U0(t,l,n,r)}),l}function V0(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=kg(a);s.call(l)}}U0(t,a,e,i)}else a=dq(n,t,e,i,r);return kg(a)}k5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fd(t.pendingLanes);n!==0&&(oj(t,n|1),xr(t,tn()),!(ct&6)&&(ic=tn()+500,ds()))}break;case 13:_l(function(){var r=qo(e,1);if(r!==null){var i=lr();$i(r,e,1,i)}}),$j(e,1)}};aj=function(e){if(e.tag===13){var t=qo(e,134217728);if(t!==null){var n=lr();$i(t,e,134217728,n)}$j(e,134217728)}};N5=function(e){if(e.tag===13){var t=Ga(e),n=qo(e,t);if(n!==null){var r=lr();$i(n,e,t,r)}$j(e,t)}};L5=function(){return vt};R5=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}};Aw=function(e,t,n){switch(t){case"input":if(Ow(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=L0(r);if(!i)throw Error(Oe(90));f5(r),Ow(r,i)}}}break;case"textarea":h5(e,n);break;case"select":t=n.value,t!=null&&Uu(e,!!n.multiple,t,!1)}};_5=Lj;x5=_l;var hq={usingClientEntryPoint:!1,Events:[Ep,Ou,L0,y5,b5,Lj]},Wf={findFiberByHostInstance:Ys,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},pq={bundleType:Wf.bundleType,version:Wf.version,rendererPackageName:Wf.rendererPackageName,rendererConfig:Wf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ia.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=S5(e),e===null?null:e.stateNode},findFiberByHostInstance:Wf.findFiberByHostInstance||fq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hm.isDisabled&&Hm.supportsFiber)try{P0=Hm.inject(pq),fo=Hm}catch{}}Vr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hq;Vr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uj(t))throw Error(Oe(200));return cq(e,t,null,n)};Vr.createRoot=function(e,t){if(!Uj(e))throw Error(Oe(299));var n=!1,r="",i=r8;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Dj(e,1,!1,null,null,n,!1,r,i),e[Go]=t.current,ah(e.nodeType===8?e.parentNode:e),new Fj(t)};Vr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Oe(188)):(e=Object.keys(e).join(","),Error(Oe(268,e)));return e=S5(t),e=e===null?null:e.stateNode,e};Vr.flushSync=function(e){return _l(e)};Vr.hydrate=function(e,t,n){if(!z0(t))throw Error(Oe(200));return V0(null,e,t,!0,n)};Vr.hydrateRoot=function(e,t,n){if(!Uj(e))throw Error(Oe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=r8;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=n8(t,null,e,1,n??null,i,!1,o,a),e[Go]=t.current,ah(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new B0(t)};Vr.render=function(e,t,n){if(!z0(t))throw Error(Oe(200));return V0(null,e,t,!1,n)};Vr.unmountComponentAtNode=function(e){if(!z0(e))throw Error(Oe(40));return e._reactRootContainer?(_l(function(){V0(null,null,e,!1,function(){e._reactRootContainer=null,e[Go]=null})}),!0):!1};Vr.unstable_batchedUpdates=Lj;Vr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!z0(n))throw Error(Oe(200));if(e==null||e._reactInternals===void 0)throw Error(Oe(38));return V0(e,t,n,!1,r)};Vr.version="18.2.0-next-9e3b772b8-20220608";function i8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i8)}catch(e){console.error(e)}}i8(),n5.exports=Vr;var H0=n5.exports;const Qs=Nl(H0);var o8,Bk=H0;o8=Bk.createRoot,Bk.hydrateRoot;var mq={};/**
|
||
* @license React
|
||
* use-sync-external-store-with-selector.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 Tp=R;function vq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gq=typeof Object.is=="function"?Object.is:vq,yq=Tp.useSyncExternalStore,bq=Tp.useRef,_q=Tp.useEffect,xq=Tp.useMemo,wq=Tp.useDebugValue;mq.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=bq(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=xq(function(){function l(v){if(!u){if(u=!0,f=v,v=r(v),i!==void 0&&a.hasValue){var g=a.value;if(i(g,v))return d=g}return d=v}if(g=d,gq(f,v))return g;var y=r(v);return i!==void 0&&i(g,y)?g:(f=v,d=y)}var u=!1,f,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=yq(e,o[0],o[1]);return _q(function(){a.hasValue=!0,a.value=s},[s]),wq(s),s};var ht="default"in vw?V:vw,zk=Symbol.for("react-redux-context"),Vk=typeof globalThis<"u"?globalThis:{};function Oq(){if(!ht.createContext)return{};const e=Vk[zk]??(Vk[zk]=new Map);let t=e.get(ht.createContext);return t||(t=ht.createContext(null),e.set(ht.createContext,t)),t}var a8=Oq(),Sq=()=>{throw new Error("uSES not initialized!")},Eq=Symbol.for("react.element"),jq=Symbol.for("react.portal"),Tq=Symbol.for("react.fragment"),Cq=Symbol.for("react.strict_mode"),Pq=Symbol.for("react.profiler"),Aq=Symbol.for("react.provider"),kq=Symbol.for("react.context"),Nq=Symbol.for("react.server_context"),s8=Symbol.for("react.forward_ref"),Lq=Symbol.for("react.suspense"),Rq=Symbol.for("react.suspense_list"),Bj=Symbol.for("react.memo"),Mq=Symbol.for("react.lazy"),Iq=s8,Dq=Bj;function $q(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case Eq:{const n=e.type;switch(n){case Tq:case Pq:case Cq:case Lq:case Rq:return n;default:{const r=n&&n.$$typeof;switch(r){case Nq:case kq:case s8:case Mq:case Bj:case Aq:return r;default:return t}}}}case jq:return t}}}function Fq(e){return $q(e)===Bj}function Uq(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,u,f,d,p;function v(x,_){return l=x,u=_,f=e(l,u),d=t(r,u),p=n(f,d,u),s=!0,p}function g(){return f=e(l,u),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u),p}function y(){return e.dependsOnOwnProps&&(f=e(l,u)),t.dependsOnOwnProps&&(d=t(r,u)),p=n(f,d,u),p}function w(){const x=e(l,u),_=!a(x,f);return f=x,_&&(p=n(f,d,u)),p}function b(x,_){const S=!o(_,u),j=!i(x,l,_,u);return l=x,u=_,S&&j?g():S?y():j?w():p}return function(_,S){return s?b(_,S):v(_,S)}}function Bq(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return Uq(o,a,s,e,i)}function zq(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function u2(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Hk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function l8(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=Hk(e);let u=o(s,l);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=Hk(u),u=o(s,l)),u},o}}function zj(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Vq(e){return e&&typeof e=="object"?u2(t=>zq(e,t)):e?typeof e=="function"?l8(e):zj(e,"mapDispatchToProps"):u2(t=>({dispatch:t}))}function Hq(e){return e?typeof e=="function"?l8(e):zj(e,"mapStateToProps"):u2(()=>({}))}function Wq(e,t,n){return{...n,...e,...t}}function Gq(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,u,f){const d=e(l,u,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function qq(e){return e?typeof e=="function"?Gq(e):zj(e,"mergeProps"):()=>Wq}function Zq(e){e()}function Yq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Zq(()=>{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 Wk={notify(){},get:()=>[]};function u8(e,t){let n,r=Wk,i=0,o=!1;function a(y){f();const w=r.subscribe(y);let b=!1;return()=>{b||(b=!0,w(),d())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=Yq())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Wk)}function p(){o||(o=!0,f())}function v(){o&&(o=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return g}var Kq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ng=Kq?ht.useLayoutEffect:ht.useEffect;function Gk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function J_(e,t){if(Gk(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])||!Gk(e[n[i]],t[n[i]]))return!1;return!0}var Xq={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qq={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eZ={[Iq]:Jq,[Dq]:c8};function qk(e){return Fq(e)?c8:eZ[e.$$typeof]||Xq}var tZ=Object.defineProperty,nZ=Object.getOwnPropertyNames,Zk=Object.getOwnPropertySymbols,rZ=Object.getOwnPropertyDescriptor,iZ=Object.getPrototypeOf,Yk=Object.prototype;function c2(e,t){if(typeof t!="string"){if(Yk){const o=iZ(t);o&&o!==Yk&&c2(e,o)}let n=nZ(t);Zk&&(n=n.concat(Zk(t)));const r=qk(e),i=qk(t);for(let o=0;o<n.length;++o){const a=n[o];if(!Qq[a]&&!(i&&i[a])&&!(r&&r[a])){const s=rZ(t,a);try{tZ(e,a,s)}catch{}}}}return e}var f8=Sq,oZ=e=>{f8=e},aZ=[null,null];function sZ(e,t,n){Ng(()=>e(...t),n)}function lZ(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function uZ(e,t,n,r,i,o,a,s,l,u,f){if(!e)return()=>{};let d=!1,p=null;const v=()=>{if(d||!s.current)return;const y=t.getState();let w,b;try{w=r(y,i.current)}catch(x){b=x,p=x}b||(p=null),w===o.current?a.current||u():(o.current=w,l.current=w,a.current=!0,f())};return n.onStateChange=v,n.trySubscribe(),v(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function cZ(e,t){return e===t}function fZ(e,t,n,{pure:r,areStatesEqual:i=cZ,areOwnPropsEqual:o=J_,areStatePropsEqual:a=J_,areMergedPropsEqual:s=J_,forwardRef:l=!1,context:u=a8}={}){const f=u,d=Hq(e),p=Vq(t),v=qq(n),g=!!e;return w=>{const b=w.displayName||w.name||"Component",x=`Connect(${b})`,_={shouldHandleStateChanges:g,displayName:x,wrappedComponentName:b,WrappedComponent:w,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function S(P){const[N,I,M]=ht.useMemo(()=>{const{reactReduxForwardedRef:Z,...ie}=P;return[P.context,Z,ie]},[P]),D=ht.useMemo(()=>{let Z=f;return N!=null&&N.Consumer,Z},[N,f]),z=ht.useContext(D),q=!!P.store&&!!P.store.getState&&!!P.store.dispatch,W=!!z&&!!z.store,X=q?P.store:z.store,J=W?z.getServerState:X.getState,te=ht.useMemo(()=>Bq(X.dispatch,_),[X]),[K,B]=ht.useMemo(()=>{if(!g)return aZ;const Z=u8(X,q?void 0:z.subscription),ie=Z.notifyNestedSubs.bind(Z);return[Z,ie]},[X,q,z]),F=ht.useMemo(()=>q?z:{...z,subscription:K},[q,z,K]),H=ht.useRef(),ne=ht.useRef(M),Y=ht.useRef(),ee=ht.useRef(!1);ht.useRef(!1);const ae=ht.useRef(!1),oe=ht.useRef();Ng(()=>(ae.current=!0,()=>{ae.current=!1}),[]);const fe=ht.useMemo(()=>()=>Y.current&&M===ne.current?Y.current:te(X.getState(),M),[X,M]),C=ht.useMemo(()=>ie=>K?uZ(g,X,K,te,ne,H,ee,ae,Y,B,ie):()=>{},[K]);sZ(lZ,[ne,H,ee,M,Y,B]);let A;try{A=f8(C,fe,J?()=>te(J(),M):fe)}catch(Z){throw oe.current&&(Z.message+=`
|
||
The error may be correlated with this previous error:
|
||
${oe.current.stack}
|
||
|
||
`),Z}Ng(()=>{oe.current=void 0,Y.current=void 0,H.current=A});const U=ht.useMemo(()=>ht.createElement(w,{...A,ref:I}),[I,w,A]);return ht.useMemo(()=>g?ht.createElement(D.Provider,{value:F},U):U,[D,U,F])}const E=ht.memo(S);if(E.WrappedComponent=w,E.displayName=S.displayName=x,l){const N=ht.forwardRef(function(M,D){return ht.createElement(E,{...M,reactReduxForwardedRef:D})});return N.displayName=x,N.WrappedComponent=w,c2(N,w)}return c2(E,w)}}var d8=fZ;function dZ({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ht.useMemo(()=>{const u=u8(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ht.useMemo(()=>e.getState(),[e]);Ng(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||a8;return ht.createElement(l.Provider,{value:a},n)}var h8=dZ;oZ(R.useSyncExternalStore);/**
|
||
* @remix-run/router v1.15.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function mh(){return mh=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},mh.apply(this,arguments)}var La;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(La||(La={}));const Kk="popstate";function hZ(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return f2("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Lg(i)}return mZ(t,n,null,e)}function Ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function p8(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pZ(){return Math.random().toString(36).substr(2,8)}function Xk(e,t){return{usr:e.state,key:e.key,idx:t}}function f2(e,t,n,r){return n===void 0&&(n=null),mh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gc(t):t,{state:n,key:t&&t.key||r||pZ()})}function Lg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Gc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function mZ(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=La.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(mh({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=La.Pop;let w=f(),b=w==null?null:w-u;u=w,l&&l({action:s,location:y.location,delta:b})}function p(w,b){s=La.Push;let x=f2(y.location,w,b);n&&n(x,w),u=f()+1;let _=Xk(x,u),S=y.createHref(x);try{a.pushState(_,"",S)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(S)}o&&l&&l({action:s,location:y.location,delta:1})}function v(w,b){s=La.Replace;let x=f2(y.location,w,b);n&&n(x,w),u=f();let _=Xk(x,u),S=y.createHref(x);a.replaceState(_,"",S),o&&l&&l({action:s,location:y.location,delta:0})}function g(w){let b=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:Lg(w);return x=x.replace(/ $/,"%20"),Ht(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let y={get action(){return s},get location(){return e(i,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Kk,d),l=w,()=>{i.removeEventListener(Kk,d),l=null}},createHref(w){return t(i,w)},createURL:g,encodeLocation(w){let b=g(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:v,go(w){return a.go(w)}};return y}var Qk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qk||(Qk={}));function vZ(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Gc(t):t,i=oc(r.pathname||"/",n);if(i==null)return null;let o=m8(e);gZ(o);let a=null;for(let s=0;a==null&&s<o.length;++s){let l=CZ(i);a=jZ(o[s],l)}return a}function m8(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Ht(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Za([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Ht(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),m8(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:SZ(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of v8(o.path))i(o,a,l)}),t}function v8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=v8(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function gZ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EZ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yZ=/^:[\w-]+$/,bZ=3,_Z=2,xZ=1,wZ=10,OZ=-2,Jk=e=>e==="*";function SZ(e,t){let n=e.split("/"),r=n.length;return n.some(Jk)&&(r+=OZ),t&&(r+=_Z),n.filter(i=>!Jk(i)).reduce((i,o)=>i+(yZ.test(o)?bZ:o===""?xZ:wZ),r)}function EZ(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 jZ(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",f=d2({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!f)return null;Object.assign(r,f.params);let d=s.route;o.push({params:r,pathname:Za([i,f.pathname]),pathnameBase:NZ(Za([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=Za([i,f.pathnameBase]))}return o}function d2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TZ(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,f,d)=>{let{paramName:p,isOptional:v}=f;if(p==="*"){let y=s[d]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[d];return v&&!g?u[p]=void 0:u[p]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function TZ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),p8(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function CZ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return p8(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function oc(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 PZ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Gc(e):e;return{pathname:n?n.startsWith("/")?n:AZ(n,t):t,search:LZ(r),hash:RZ(i)}}function AZ(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 ex(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 kZ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Vj(e,t){let n=kZ(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Hj(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Gc(e):(i=mh({},e),Ht(!i.pathname||!i.pathname.includes("?"),ex("?","pathname","search",i)),Ht(!i.pathname||!i.pathname.includes("#"),ex("#","pathname","hash",i)),Ht(!i.search||!i.search.includes("#"),ex("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=PZ(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Za=e=>e.join("/").replace(/\/\/+/g,"/"),NZ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LZ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RZ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function MZ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const g8=["post","put","patch","delete"];new Set(g8);const IZ=["get",...g8];new Set(IZ);/**
|
||
* React Router v6.22.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function vh(){return vh=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},vh.apply(this,arguments)}const W0=R.createContext(null),y8=R.createContext(null),oa=R.createContext(null),G0=R.createContext(null),aa=R.createContext({outlet:null,matches:[],isDataRoute:!1}),b8=R.createContext(null);function DZ(e,t){let{relative:n}=t===void 0?{}:t;Ml()||Ht(!1);let{basename:r,navigator:i}=R.useContext(oa),{hash:o,pathname:a,search:s}=q0(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Za([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Ml(){return R.useContext(G0)!=null}function Xn(){return Ml()||Ht(!1),R.useContext(G0).location}function _8(e){R.useContext(oa).static||R.useLayoutEffect(e)}function Oo(){let{isDataRoute:e}=R.useContext(aa);return e?KZ():$Z()}function $Z(){Ml()||Ht(!1);let e=R.useContext(W0),{basename:t,future:n,navigator:r}=R.useContext(oa),{matches:i}=R.useContext(aa),{pathname:o}=Xn(),a=JSON.stringify(Vj(i,n.v7_relativeSplatPath)),s=R.useRef(!1);return _8(()=>{s.current=!0}),R.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=Hj(u,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Za([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function qc(){let{matches:e}=R.useContext(aa),t=e[e.length-1];return t?t.params:{}}function q0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(oa),{matches:i}=R.useContext(aa),{pathname:o}=Xn(),a=JSON.stringify(Vj(i,r.v7_relativeSplatPath));return R.useMemo(()=>Hj(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function FZ(e,t){return UZ(e,t)}function UZ(e,t,n,r){Ml()||Ht(!1);let{navigator:i}=R.useContext(oa),{matches:o}=R.useContext(aa),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Xn(),f;if(t){var d;let w=typeof t=="string"?Gc(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||Ht(!1),f=w}else f=u;let p=f.pathname||"/",v=p;if(l!=="/"){let w=l.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=vZ(e,{pathname:v}),y=WZ(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Za([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Za([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&y?R.createElement(G0.Provider,{value:{location:vh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:La.Pop}},y):y}function BZ(){let e=YZ(),t=MZ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const zZ=R.createElement(BZ,null);class VZ extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(aa.Provider,{value:this.props.routeContext},R.createElement(b8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HZ(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(W0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(aa.Provider,{value:t},r)}function WZ(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));f>=0||Ht(!1),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:p,errors:v}=n,g=d.route.loader&&p[d.route.id]===void 0&&(!v||v[d.route.id]===void 0);if(d.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let v,g=!1,y=null,w=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||zZ,l&&(u<0&&p===0?(XZ("route-fallback",!1),g=!0,w=null):u===p&&(g=!0,w=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),x=()=>{let _;return v?_=y:g?_=w:d.route.Component?_=R.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=f,R.createElement(HZ,{match:d,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:_})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?R.createElement(VZ,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var x8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x8||{}),Rg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rg||{});function GZ(e){let t=R.useContext(W0);return t||Ht(!1),t}function qZ(e){let t=R.useContext(y8);return t||Ht(!1),t}function ZZ(e){let t=R.useContext(aa);return t||Ht(!1),t}function w8(e){let t=ZZ(),n=t.matches[t.matches.length-1];return n.route.id||Ht(!1),n.route.id}function YZ(){var e;let t=R.useContext(b8),n=qZ(Rg.UseRouteError),r=w8(Rg.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function KZ(){let{router:e}=GZ(x8.UseNavigateStable),t=w8(Rg.UseNavigateStable),n=R.useRef(!1);return _8(()=>{n.current=!0}),R.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,vh({fromRouteId:t},o)))},[e,t])}const e3={};function XZ(e,t,n){!t&&!e3[e]&&(e3[e]=!0)}function Wj(e){let{to:t,replace:n,state:r,relative:i}=e;Ml()||Ht(!1);let{future:o,static:a}=R.useContext(oa),{matches:s}=R.useContext(aa),{pathname:l}=Xn(),u=Oo(),f=Hj(t,Vj(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(f);return R.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function st(e){Ht(!1)}function QZ(e){let{basename:t="/",children:n=null,location:r,navigationType:i=La.Pop,navigator:o,static:a=!1,future:s}=e;Ml()&&Ht(!1);let l=t.replace(/^\/*/,"/"),u=R.useMemo(()=>({basename:l,navigator:o,static:a,future:vh({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Gc(r));let{pathname:f="/",search:d="",hash:p="",state:v=null,key:g="default"}=r,y=R.useMemo(()=>{let w=oc(f,l);return w==null?null:{location:{pathname:w,search:d,hash:p,state:v,key:g},navigationType:i}},[l,f,d,p,v,g,i]);return y==null?null:R.createElement(oa.Provider,{value:u},R.createElement(G0.Provider,{children:n,value:y}))}function Z0(e){let{children:t,location:n}=e;return FZ(h2(t),n)}new Promise(()=>{});function h2(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,i)=>{if(!R.isValidElement(r))return;let o=[...t,i];if(r.type===R.Fragment){n.push.apply(n,h2(r.props.children,o));return}r.type!==st&&Ht(!1),!r.props.index||!r.props.children||Ht(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=h2(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.22.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Mg(){return Mg=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},Mg.apply(this,arguments)}function O8(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function JZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eY(e,t){return e.button===0&&(!t||t==="_self")&&!JZ(e)}const tY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],nY=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],rY="6";try{window.__reactRouterVersion=rY}catch{}const iY=R.createContext({isTransitioning:!1}),oY="startTransition",t3=vw[oY];function S8(e){let{basename:t,children:n,future:r,window:i}=e,o=R.useRef();o.current==null&&(o.current=hZ({window:i,v5Compat:!0}));let a=o.current,[s,l]=R.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=R.useCallback(d=>{u&&t3?t3(()=>l(d)):l(d)},[l,u]);return R.useLayoutEffect(()=>a.listen(f),[a,f]),R.createElement(QZ,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const aY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Et=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,unstable_viewTransition:d}=t,p=O8(t,tY),{basename:v}=R.useContext(oa),g,y=!1;if(typeof u=="string"&&sY.test(u)&&(g=u,aY))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),j=oc(S.pathname,v);S.origin===_.origin&&j!=null?u=j+S.search+S.hash:y=!0}catch{}let w=DZ(u,{relative:i}),b=uY(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:d});function x(_){r&&r(_),_.defaultPrevented||b(_)}return R.createElement("a",Mg({},p,{href:g||w,onClick:y||o?r:x,ref:n,target:l}))}),E8=R.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:f}=t,d=O8(t,nY),p=q0(l,{relative:d.relative}),v=Xn(),g=R.useContext(y8),{navigator:y,basename:w}=R.useContext(oa),b=g!=null&&cY(p)&&u===!0,x=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,_=v.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(_=_.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&w&&(S=oc(S,w)||S);const j=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let E=_===x||!a&&_.startsWith(x)&&_.charAt(j)==="/",P=S!=null&&(S===x||!a&&S.startsWith(x)&&S.charAt(x.length)==="/"),N={isActive:E,isPending:P,isTransitioning:b},I=E?r:void 0,M;typeof o=="function"?M=o(N):M=[o,E?"active":null,P?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let D=typeof s=="function"?s(N):s;return R.createElement(Et,Mg({},d,{"aria-current":I,className:M,ref:n,style:D,to:l,unstable_viewTransition:u}),typeof f=="function"?f(N):f)});var p2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(p2||(p2={}));var n3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(n3||(n3={}));function lY(e){let t=R.useContext(W0);return t||Ht(!1),t}function uY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=Oo(),u=Xn(),f=q0(e,{relative:a});return R.useCallback(d=>{if(eY(d,n)){d.preventDefault();let p=r!==void 0?r:Lg(u)===Lg(f);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,f,r,i,n,e,o,a,s])}function cY(e,t){t===void 0&&(t={});let n=R.useContext(iY);n==null&&Ht(!1);let{basename:r}=lY(p2.useViewTransitionState),i=q0(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=oc(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=oc(n.nextLocation.pathname,r)||n.nextLocation.pathname;return d2(i.pathname,a)!=null||d2(i.pathname,o)!=null}const fY="shlink-web-client",dY="A React-based progressive web application for shlink",hY="/shlink-web-client/dependabot/npm_and_yarn/vite-211f9297f0",pY="https://github.com/shlinkio/shlink-web-client",mY="MIT",vY="module",gY={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},yY={"@fortawesome/fontawesome-free":"^6.5.1","@fortawesome/fontawesome-svg-core":"^6.5.1","@fortawesome/free-brands-svg-icons":"^6.5.1","@fortawesome/free-regular-svg-icons":"^6.5.1","@fortawesome/free-solid-svg-icons":"^6.5.1","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.2.2","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.5.0","@shlinkio/shlink-js-sdk":"^1.0.0","@shlinkio/shlink-web-component":"^0.6.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.0","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^3.6.0",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^9.1.0","react-router-dom":"^6.22.3",reactstrap:"^9.2.2","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.1","workbox-core":"^7.0.0","workbox-expiration":"^7.0.0","workbox-precaching":"^7.0.0","workbox-routing":"^7.0.0","workbox-strategies":"^7.0.0"},bY={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.4.2","@testing-library/react":"^14.2.2","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.2.69","@types/react-dom":"^18.2.22","@types/uuid":"^9.0.8","@vitejs/plugin-react":"^4.2.1","@vitest/coverage-v8":"^1.4.0","adm-zip":"^0.5.12","axe-core":"^4.8.4",chalk:"^5.3.0",eslint:"^8.57.0",history:"^5.3.0",jsdom:"^24.0.0",sass:"^1.72.0",stylelint:"^15.11.0",typescript:"^5.4.3",vite:"^5.2.7","vite-plugin-pwa":"^0.19.7",vitest:"^1.2.2"},_Y=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ig={name:fY,description:dY,private:!1,homepage:hY,repository:pY,license:mY,type:vY,scripts:gY,dependencies:yY,devDependencies:bY,browserslist:_Y};var zi,go=".",j8="function",T8="string",C8="__global__",Gj="Provider",xY=0,qj=Array.prototype.slice,wY=function(t,n){var r=t[n];if(r===void 0&&zi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Y0=function(t){var n;return this.nested[t]||(n=zi.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},P8=function(t){return t.split(go).reduce(wY,this)},OY=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(f){if(f)throw f;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},SY=function(t,n){var r,i;return typeof t===j8&&(n=t,t=C8),r=t.split(go),i=r.shift(),r.length?Y0.call(this,i).middleware(r.join(go),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},EY=function(t,n){return n(t)},r3=function(t,n){return(t[n]||[]).concat(t.__global__||[])},jY=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+Gj,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete o[r],o[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[r],f;return u&&(f=r3(a,t).reduce(EY,u.$get(o)),delete o[r],delete o[t]),f===void 0?f:OY(r3(s,t),t,f,o)}},Object.defineProperties(o,i),this},A8=function(t,n){var r,i;return r=t.split(go),this.providerMap[t]&&r.length===1&&!this.container[t+Gj]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Y0.call(this,i).provider(r.join(go),n),this):jY.call(this,i,n))},Zj=function(t,n){return A8.call(this,t,function(){this.$get=n})},k8=function(t,n,r){var i=arguments.length>3?qj.call(arguments,3):[],o=this;return Zj.call(this,t,function(){var s=n,l=i.map(P8,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},TY=function(t,n){return k8.apply(this,[t,n,!0].concat(qj.call(arguments,2)))},CY=function(t,n){return k8.apply(this,[t,n,!1].concat(qj.call(arguments,2)))},N8=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},L8=function(t,n){var r=t[n];return r||(r={},N8.call(t,n,r)),r},PY=function(t,n){var r;return r=t.split(go),t=r.pop(),N8.call(r.reduce(L8,this.container),t,n),this},AY=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},kY=function(t,n){var r=t.split(go);return t=r.pop(),AY.call(r.reduce(L8,this.container),t,n),this},R8=function(t,n){var r,i;return typeof t===j8&&(n=t,t=C8),r=t.split(go),i=r.shift(),r.length?Y0.call(this,i).decorator(r.join(go),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},NY=function(t){return this.deferred.push(t),this},LY=function(t){return(t||[]).map(P8,this.container)},RY=function(t,n){return Zj.call(this,t,function(i){return{instance:n.bind(n,i)}})},MY=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Yj=function(t){return Object.keys(t||this.container||{}).filter(MY)},Dg={},IY=function(t){var n;return typeof t===T8?(n=Dg[t],n||(Dg[t]=n=new zi,n.constant("BOTTLE_NAME",t)),n):new zi},DY=function(t){typeof t===T8?delete Dg[t]:Dg={}},M8=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},i3=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+Gj]},$Y=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(go);a.length>1&&a.forEach(i3,Y0.call(this,a[0])),i3.call(this,o),this.provider(o,n[o])}},this)},FY=function(t){return this.deferred.forEach(function(r){r(t)}),this};zi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=xY++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:R8.bind(this),$register:M8.bind(this),$list:Yj.bind(this)}};zi.prototype={constant:kY,decorator:R8,defer:NY,digest:LY,factory:Zj,instanceFactory:RY,list:Yj,middleware:SY,provider:A8,resetProviders:$Y,register:M8,resolve:FY,service:TY,serviceFactory:CY,value:PY};zi.pop=IY;zi.clear=DY;zi.list=Yj;zi.config={strict:!1};const UY=zi;var BY=Object.defineProperty,zY=(e,t,n)=>t in e?BY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VY=(e,t,n)=>(zY(e,typeof t!="symbol"?t+"":t,n),n);const HY=(e,t)=>`${e}/rest/v${t}`,WY=e=>e.dir?`${e.field}-${e.dir}`:void 0,GY=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:WY(e)}),qY=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},ZY=(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()};class YY{constructor(t,n){VY(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:GY(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async getShortUrlRedirectRules(t,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n}})}async setShortUrlRedirectRules(t,n,r){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:r})}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrlVisits(t,n){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:n})}async getTagVisits(t,n){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:n})}async getDomainVisits(t,n){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:n})}async getOrphanVisits(t){return this.performVisitsRequest({url:"/visits/orphan",query:t})}async getNonOrphanVisits(t){return this.performVisitsRequest({url:"/visits/non-orphan",query:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:n})=>n)}async deleteShortUrlVisits(t,n){const r=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:r})}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t)}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t)}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:o}){const a=ZY(r),s=a?`?${a}`:"",l=o?qY(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${HY(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const I8=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),kd=e=>!!(e!=null&&e.id),D8=e=>!!(e!=null&&e.version),KY=e=>!!(e!=null&&e.serverNotFound),XY=e=>kd(e)?e.id:"",QY=({id:e,autoConnect:t,...n})=>n,o3={},JY=e=>typeof e=="function",eK=e=>{const{selectedServer:t}=e();if(!I8(t))throw new Error("There's no selected server or it is not found");return t},tK=e=>t=>{const{url:n,apiKey:r}=JY(t)?eK(t):t,i=`${r}_${n}`,o=o3[i]??new YY(e,{apiKey:r,baseUrl:n});return o3[i]=o,o},nK=e=>{e.serviceFactory("buildShlinkApiClient",tK,"HttpClient")};var $8={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},rK={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},iK=rK,oK={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 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Kj=oK,aK={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-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.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.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 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-8.8 7.2-16 16-16s16 7.2 16 16v31.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.6V368c0-8.8 7.2-16 16-16z"]},sK={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.1v32c0 8.8 7.2 16 16 16h32zM362.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"]},F8=sK,U8={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"]},lK={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},B8={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},uK={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"]},cK=uK,fK={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 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},Xj=fK,dK={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},hK={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.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 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.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.6H344.3c-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 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},pK={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"]},a3={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 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 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 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"]},mK={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-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-31V408z"]},vK=mK,gK={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 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.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"]},m2=gK,yK={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.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},bK={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.3H344c-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"]},_K={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.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.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-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},xK=_K,Qj={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.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 288H558.4z"]},K0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V400c0 44.2 35.8 80 80 80H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H80c-8.8 0-16-7.2-16-16V64zm406.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"]},z8={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.5V80C0 53.5 21.5 32 48 32H197.5c17 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"]},s3={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 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"]},wK={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},OK={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"]},SK={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.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},EK=SK,jK={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.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.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},TK={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 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-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"]},Jj=TK,CK={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.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"]},PK=CK,AK={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"]},kK={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"]},NK=kK,LK={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.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-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"]},RK=LK,MK={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.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},IK=MK,DK={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-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 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},V8=DK,$K={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"]},FK={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"]},UK={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"]},BK={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"]},zK=BK,VK={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"]},HK={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.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Cp={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},WK={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"]},v2=WK,GK={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"]},qK={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},ZK=qK,l3={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 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 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},H8={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 8h-.7c-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"]},YK=H8,KK={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 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"]},XK={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"]},QK={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 162zM116.6 187.9L60.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.9zM220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3L220.9 270z"]},JK={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},gh={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"]},eX={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.3V384c0 35.3 28.7 64 64 64h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H416c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64H109.3l41.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 256H224c23.3 0 45.2 6.2 64 17.1V109.3l-41.4 41.4z"]},tX={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 480H40c-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 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},nX=tX;function u3(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 Re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u3(Object(n),!0).forEach(function(r){vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $g(e){"@babel/helpers - typeof";return $g=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},$g(e)}function rX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c3(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 iX(e,t,n){return t&&c3(e.prototype,t),n&&c3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eT(e,t){return aX(e)||lX(e,t)||W8(e,t)||cX()}function Pp(e){return oX(e)||sX(e)||W8(e)||uX()}function oX(e){if(Array.isArray(e))return g2(e)}function aX(e){if(Array.isArray(e))return e}function sX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function W8(e,t){if(e){if(typeof e=="string")return g2(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 g2(e,t)}}function g2(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 uX(){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 cX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f3=function(){},tT={},G8={},q8=null,Z8={mark:f3,measure:f3};try{typeof window<"u"&&(tT=window),typeof document<"u"&&(G8=document),typeof MutationObserver<"u"&&(q8=MutationObserver),typeof performance<"u"&&(Z8=performance)}catch{}var fX=tT.navigator||{},d3=fX.userAgent,h3=d3===void 0?"":d3,ts=tT,Lt=G8,p3=q8,Wm=Z8;ts.document;var sa=!!Lt.documentElement&&!!Lt.head&&typeof Lt.addEventListener=="function"&&typeof Lt.createElement=="function",Y8=~h3.indexOf("MSIE")||~h3.indexOf("Trident/"),Gm,qm,Zm,Ym,Km,Yo="___FONT_AWESOME___",y2=16,K8="fa",X8="svg-inline--fa",xl="data-fa-i2svg",b2="data-fa-pseudo-element",dX="data-fa-pseudo-element-pending",nT="data-prefix",rT="data-icon",m3="fontawesome-i2svg",hX="async",pX=["HTML","HEAD","STYLE","SCRIPT"],Q8=function(){try{return!0}catch{return!1}}(),At="classic",Zt="sharp",iT=[At,Zt];function Ap(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[At]}})}var yh=Ap((Gm={},vn(Gm,At,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),vn(Gm,Zt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),Gm)),bh=Ap((qm={},vn(qm,At,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),vn(qm,Zt,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),qm)),_h=Ap((Zm={},vn(Zm,At,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),vn(Zm,Zt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),Zm)),mX=Ap((Ym={},vn(Ym,At,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),vn(Ym,Zt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),Ym)),vX=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,J8="fa-layers-text",gX=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,yX=Ap((Km={},vn(Km,At,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),vn(Km,Zt,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),Km)),e$=[1,2,3,4,5,6,7,8,9,10],bX=e$.concat([11,12,13,14,15,16,17,18,19,20]),_X=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Js={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},xh=new Set;Object.keys(bh[At]).map(xh.add.bind(xh));Object.keys(bh[Zt]).map(xh.add.bind(xh));var xX=[].concat(iT,Pp(xh),["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",Js.GROUP,Js.SWAP_OPACITY,Js.PRIMARY,Js.SECONDARY]).concat(e$.map(function(e){return"".concat(e,"x")})).concat(bX.map(function(e){return"w-".concat(e)})),Nd=ts.FontAwesomeConfig||{};function wX(e){var t=Lt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function OX(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Lt&&typeof Lt.querySelector=="function"){var SX=[["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"]];SX.forEach(function(e){var t=eT(e,2),n=t[0],r=t[1],i=OX(wX(n));i!=null&&(Nd[r]=i)})}var t$={styleDefault:"solid",familyDefault:"classic",cssPrefix:K8,replacementClass:X8,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Nd.familyPrefix&&(Nd.cssPrefix=Nd.familyPrefix);var ac=Re(Re({},t$),Nd);ac.autoReplaceSvg||(ac.observeMutations=!1);var Fe={};Object.keys(t$).forEach(function(e){Object.defineProperty(Fe,e,{enumerable:!0,set:function(n){ac[e]=n,Ld.forEach(function(r){return r(Fe)})},get:function(){return ac[e]}})});Object.defineProperty(Fe,"familyPrefix",{enumerable:!0,set:function(t){ac.cssPrefix=t,Ld.forEach(function(n){return n(Fe)})},get:function(){return ac.cssPrefix}});ts.FontAwesomeConfig=Fe;var Ld=[];function EX(e){return Ld.push(e),function(){Ld.splice(Ld.indexOf(e),1)}}var va=y2,so={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function jX(e){if(!(!e||!sa)){var t=Lt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Lt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Lt.head.insertBefore(t,r),e}}var TX="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function wh(){for(var e=12,t="";e-- >0;)t+=TX[Math.random()*62|0];return t}function Zc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function oT(e){return e.classList?Zc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function n$(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function CX(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(n$(e[n]),'" ')},"").trim()}function X0(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function aT(e){return e.size!==so.size||e.x!==so.x||e.y!==so.y||e.rotate!==so.rotate||e.flipX||e.flipY}function PX(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function AX(e){var t=e.transform,n=e.width,r=n===void 0?y2:n,i=e.height,o=i===void 0?y2:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&Y8?l+="translate(".concat(t.x/va-r/2,"em, ").concat(t.y/va-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/va,"em), calc(-50% + ").concat(t.y/va,"em)) "):l+="translate(".concat(t.x/va,"em, ").concat(t.y/va,"em) "),l+="scale(".concat(t.size/va*(t.flipX?-1:1),", ").concat(t.size/va*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var kX=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--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-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
}
|
||
|
||
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 {
|
||
-webkit-transform-origin: center center;
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
-webkit-transform: translate(-50%, -50%);
|
||
transform: translate(-50%, -50%);
|
||
-webkit-transform-origin: center center;
|
||
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);
|
||
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom right;
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: bottom left;
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top right;
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
-webkit-transform-origin: top left;
|
||
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(var(--fa-li-width, 2em) * -1);
|
||
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 {
|
||
-webkit-animation-name: fa-beat;
|
||
animation-name: fa-beat;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
-webkit-animation-name: fa-bounce;
|
||
animation-name: fa-bounce;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
-webkit-animation-name: fa-fade;
|
||
animation-name: fa-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
-webkit-animation-name: fa-beat-fade;
|
||
animation-name: fa-beat-fade;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
-webkit-animation-name: fa-flip;
|
||
animation-name: fa-flip;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
-webkit-animation-name: fa-shake;
|
||
animation-name: fa-shake;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
-webkit-animation-name: fa-spin;
|
||
animation-name: fa-spin;
|
||
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
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 {
|
||
-webkit-animation-delay: -1ms;
|
||
animation-delay: -1ms;
|
||
-webkit-animation-duration: 1ms;
|
||
animation-duration: 1ms;
|
||
-webkit-animation-iteration-count: 1;
|
||
animation-iteration-count: 1;
|
||
-webkit-transition-delay: 0s;
|
||
transition-delay: 0s;
|
||
-webkit-transition-duration: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-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));
|
||
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% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
-webkit-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));
|
||
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% {
|
||
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
-webkit-transform: scale(1, 1) translateY(0);
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
-webkit-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
-webkit-transform: rotate(-15deg);
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
-webkit-transform: rotate(15deg);
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
-webkit-transform: rotate(-18deg);
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
-webkit-transform: rotate(18deg);
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
-webkit-transform: rotate(-22deg);
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
-webkit-transform: rotate(22deg);
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
-webkit-transform: rotate(-12deg);
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
-webkit-transform: rotate(12deg);
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@-webkit-keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
-webkit-transform: rotate(90deg);
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
-webkit-transform: rotate(180deg);
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
-webkit-transform: rotate(270deg);
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
-webkit-transform: scale(-1, 1);
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
-webkit-transform: scale(1, -1);
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
-webkit-transform: scale(-1, -1);
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
-webkit-transform: rotate(var(--fa-rotate-angle, none));
|
||
transform: rotate(var(--fa-rotate-angle, none));
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
.fad.fa-inverse,
|
||
.fa-duotone.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}`;function r$(){var e=K8,t=X8,n=Fe.cssPrefix,r=Fe.replacementClass,i=kX;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var v3=!1;function tx(){Fe.autoAddCss&&!v3&&(jX(r$()),v3=!0)}var NX={mixout:function(){return{dom:{css:r$,insertCss:tx}}},hooks:function(){return{beforeDOMElementCreation:function(){tx()},beforeI2svg:function(){tx()}}}},Ko=ts||{};Ko[Yo]||(Ko[Yo]={});Ko[Yo].styles||(Ko[Yo].styles={});Ko[Yo].hooks||(Ko[Yo].hooks={});Ko[Yo].shims||(Ko[Yo].shims=[]);var Ii=Ko[Yo],i$=[],LX=function e(){Lt.removeEventListener("DOMContentLoaded",e),Fg=1,i$.map(function(t){return t()})},Fg=!1;sa&&(Fg=(Lt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Lt.readyState),Fg||Lt.addEventListener("DOMContentLoaded",LX));function RX(e){sa&&(Fg?setTimeout(e,0):i$.push(e))}function kp(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?n$(e):"<".concat(t," ").concat(CX(r),">").concat(o.map(kp).join(""),"</").concat(t,">")}function g3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var MX=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},nx=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?MX(n,i):n,l,u,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<a;l++)u=o[l],f=s(f,t[u],u,t);return f};function IX(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function _2(e){var t=IX(e);return t.length===1?t[0].toString(16):null}function DX(e,t){var n=e.length,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 y3(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function x2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=y3(t);typeof Ii.hooks.addPack=="function"&&!i?Ii.hooks.addPack(e,y3(t)):Ii.styles[e]=Re(Re({},Ii.styles[e]||{}),o),e==="fas"&&x2("fa",t)}var Xm,Qm,Jm,Au=Ii.styles,$X=Ii.shims,FX=(Xm={},vn(Xm,At,Object.values(_h[At])),vn(Xm,Zt,Object.values(_h[Zt])),Xm),sT=null,o$={},a$={},s$={},l$={},u$={},UX=(Qm={},vn(Qm,At,Object.keys(yh[At])),vn(Qm,Zt,Object.keys(yh[Zt])),Qm);function BX(e){return~xX.indexOf(e)}function zX(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!BX(i)?i:null}var c$=function(){var t=function(o){return nx(Au,function(a,s,l){return a[l]=nx(s,o,{}),a},{})};o$=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),a$=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),u$=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in Au||Fe.autoFetchSvg,r=nx($X,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});s$=r.names,l$=r.unicodes,sT=Q0(Fe.styleDefault,{family:Fe.familyDefault})};EX(function(e){sT=Q0(e.styleDefault,{family:Fe.familyDefault})});c$();function lT(e,t){return(o$[e]||{})[t]}function VX(e,t){return(a$[e]||{})[t]}function el(e,t){return(u$[e]||{})[t]}function f$(e){return s$[e]||{prefix:null,iconName:null}}function HX(e){var t=l$[e],n=lT("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ns(){return sT}var uT=function(){return{prefix:null,iconName:null,rest:[]}};function Q0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?At:n,i=yh[r][e],o=bh[r][e]||bh[r][i],a=e in Ii.styles?e:null;return o||a||null}var b3=(Jm={},vn(Jm,At,Object.keys(_h[At])),vn(Jm,Zt,Object.keys(_h[Zt])),Jm);function J0(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},vn(t,At,"".concat(Fe.cssPrefix,"-").concat(At)),vn(t,Zt,"".concat(Fe.cssPrefix,"-").concat(Zt)),t),a=null,s=At;(e.includes(o[At])||e.some(function(u){return b3[At].includes(u)}))&&(s=At),(e.includes(o[Zt])||e.some(function(u){return b3[Zt].includes(u)}))&&(s=Zt);var l=e.reduce(function(u,f){var d=zX(Fe.cssPrefix,f);if(Au[f]?(f=FX[s].includes(f)?mX[s][f]:f,a=f,u.prefix=f):UX[s].indexOf(f)>-1?(a=f,u.prefix=Q0(f,{family:s})):d?u.iconName=d:f!==Fe.replacementClass&&f!==o[At]&&f!==o[Zt]&&u.rest.push(f),!i&&u.prefix&&u.iconName){var p=a==="fa"?f$(u.iconName):{},v=el(u.prefix,u.iconName);p.prefix&&(a=null),u.iconName=p.iconName||v||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!Au.far&&Au.fas&&!Fe.autoFetchSvg&&(u.prefix="fas")}return u},uT());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===Zt&&(Au.fass||Fe.autoFetchSvg)&&(l.prefix="fass",l.iconName=el(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=ns()||"fas"),l}var WX=function(){function e(){rX(this,e),this.definitions={}}return iX(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=Re(Re({},n.definitions[s]||{}),a[s]),x2(s,a[s]);var l=_h[At][s];l&&x2(l,a[s]),c$()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var a=i[o],s=a.prefix,l=a.iconName,u=a.icon,f=u[2];n[s]||(n[s]={}),f.length>0&&f.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),_3=[],ku={},Gu={},GX=Object.keys(Gu);function qX(e,t){var n=t.mixoutsTo;return _3=e,ku={},Object.keys(Gu).forEach(function(r){GX.indexOf(r)===-1&&delete Gu[r]}),_3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),$g(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){ku[a]||(ku[a]=[]),ku[a].push(o[a])})}r.provides&&r.provides(Gu)}),n}function w2(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=ku[e]||[];return o.forEach(function(a){t=a.apply(null,[t].concat(r))}),t}function wl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=ku[e]||[];i.forEach(function(o){o.apply(null,n)})}function Xo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Gu[e]?Gu[e].apply(null,t):void 0}function O2(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ns();if(t)return t=el(n,t)||t,g3(d$.definitions,n,t)||g3(Ii.styles,n,t)}var d$=new WX,ZX=function(){Fe.autoReplaceSvg=!1,Fe.observeMutations=!1,wl("noAuto")},YX={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return sa?(wl("beforeI2svg",t),Xo("pseudoElements2svg",t),Xo("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Fe.autoReplaceSvg===!1&&(Fe.autoReplaceSvg=!0),Fe.observeMutations=!0,RX(function(){XX({autoReplaceSvgRoot:n}),wl("watch",t)})}},KX={icon:function(t){if(t===null)return null;if($g(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:el(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Q0(t[0]);return{prefix:r,iconName:el(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Fe.cssPrefix,"-"))>-1||t.match(vX))){var i=J0(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||ns(),iconName:el(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=ns();return{prefix:o,iconName:el(o,t)||t}}}},Wr={noAuto:ZX,config:Fe,dom:YX,parse:KX,library:d$,findIconDefinition:O2,toHtml:kp},XX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Lt:n;(Object.keys(Ii.styles).length>0||Fe.autoFetchSvg)&&sa&&Fe.autoReplaceSvg&&Wr.dom.i2svg({node:r})};function eb(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return kp(r)})}}),Object.defineProperty(e,"node",{get:function(){if(sa){var r=Lt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function QX(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(aT(a)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};i.style=X0(Re(Re({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function JX(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(Fe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Re(Re({},i),{},{id:a}),children:r}]}]}function cT(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,v=p===void 0?!1:p,g=r.found?r:n,y=g.width,w=g.height,b=i==="fak",x=[Fe.replacementClass,o?"".concat(Fe.cssPrefix,"-").concat(o):""].filter(function(I){return d.classes.indexOf(I)===-1}).filter(function(I){return I!==""||!!I}).concat(d.classes).join(" "),_={children:[],attributes:Re(Re({},d.attributes),{},{"data-prefix":i,"data-icon":o,class:x,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(w)})},S=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(y/w*16*.0625,"em")}:{};v&&(_.attributes[xl]=""),l&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(f||wh())},children:[l]}),delete _.attributes.title);var j=Re(Re({},_),{},{prefix:i,iconName:o,main:n,mask:r,maskId:u,transform:a,symbol:s,styles:Re(Re({},S),d.styles)}),E=r.found&&n.found?Xo("generateAbstractMask",j)||{children:[],attributes:{}}:Xo("generateAbstractIcon",j)||{children:[],attributes:{}},P=E.children,N=E.attributes;return j.children=P,j.attributes=N,s?JX(j):QX(j)}function x3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,u=Re(Re(Re({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[xl]="");var f=Re({},a.styles);aT(i)&&(f.transform=AX({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var d=X0(f);d.length>0&&(u.style=d);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function eQ(e){var t=e.content,n=e.title,r=e.extra,i=Re(Re(Re({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=X0(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var rx=Ii.styles;function S2(e){var t=e[0],n=e[1],r=e.slice(4),i=eT(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(Js.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(Js.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(Js.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var tQ={found:!1,width:512,height:512};function nQ(e,t){!Q8&&!Fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function E2(e,t){var n=t;return t==="fa"&&Fe.styleDefault!==null&&(t=ns()),new Promise(function(r,i){if(Xo("missingIconAbstract"),n==="fa"){var o=f$(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&rx[t]&&rx[t][e]){var a=rx[t][e];return r(S2(a))}nQ(e,t),r(Re(Re({},tQ),{},{icon:Fe.showMissingIcons&&e?Xo("missingIconAbstract")||{}:{}}))})}var w3=function(){},j2=Fe.measurePerformance&&Wm&&Wm.mark&&Wm.measure?Wm:{mark:w3,measure:w3},hd='FA "6.5.1"',rQ=function(t){return j2.mark("".concat(hd," ").concat(t," begins")),function(){return h$(t)}},h$=function(t){j2.mark("".concat(hd," ").concat(t," ends")),j2.measure("".concat(hd," ").concat(t),"".concat(hd," ").concat(t," begins"),"".concat(hd," ").concat(t," ends"))},fT={begin:rQ,end:h$},Wv=function(){};function O3(e){var t=e.getAttribute?e.getAttribute(xl):null;return typeof t=="string"}function iQ(e){var t=e.getAttribute?e.getAttribute(nT):null,n=e.getAttribute?e.getAttribute(rT):null;return t&&n}function oQ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Fe.replacementClass)}function aQ(){if(Fe.autoReplaceSvg===!0)return Gv.replace;var e=Gv[Fe.autoReplaceSvg];return e||Gv.replace}function sQ(e){return Lt.createElementNS("http://www.w3.org/2000/svg",e)}function lQ(e){return Lt.createElement(e)}function p$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?sQ:lQ:n;if(typeof e=="string")return Lt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(p$(a,{ceFn:r}))}),i}function uQ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Gv={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(p$(i),n)}),n.getAttribute(xl)===null&&Fe.keepOriginalSource){var r=Lt.createComment(uQ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~oT(n).indexOf(Fe.replacementClass))return Gv.replace(t);var i=new RegExp("".concat(Fe.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===Fe.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return kp(s)}).join(`
|
||
`);n.setAttribute(xl,""),n.innerHTML=a}};function S3(e){e()}function m$(e,t){var n=typeof t=="function"?t:Wv;if(e.length===0)n();else{var r=S3;Fe.mutateApproach===hX&&(r=ts.requestAnimationFrame||S3),r(function(){var i=aQ(),o=fT.begin("mutate");e.map(i),o(),n()})}}var dT=!1;function v$(){dT=!0}function T2(){dT=!1}var Ug=null;function E3(e){if(p3&&Fe.observeMutations){var t=e.treeCallback,n=t===void 0?Wv:t,r=e.nodeCallback,i=r===void 0?Wv:r,o=e.pseudoElementsCallback,a=o===void 0?Wv:o,s=e.observeMutationsRoot,l=s===void 0?Lt:s;Ug=new p3(function(u){if(!dT){var f=ns();Zc(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!O3(d.addedNodes[0])&&(Fe.searchPseudoElements&&a(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&Fe.searchPseudoElements&&a(d.target.parentNode),d.type==="attributes"&&O3(d.target)&&~_X.indexOf(d.attributeName))if(d.attributeName==="class"&&iQ(d.target)){var p=J0(oT(d.target)),v=p.prefix,g=p.iconName;d.target.setAttribute(nT,v||f),g&&d.target.setAttribute(rT,g)}else oQ(d.target)&&i(d.target)})}}),sa&&Ug.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function cQ(){Ug&&Ug.disconnect()}function fQ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function dQ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=J0(oT(e));return i.prefix||(i.prefix=ns()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=VX(i.prefix,e.innerText)||lT(i.prefix,_2(e.innerText))),!i.iconName&&Fe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function hQ(e){var t=Zc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Fe.autoA11y&&(n?t["aria-labelledby"]="".concat(Fe.replacementClass,"-title-").concat(r||wh()):(t["aria-hidden"]="true",t.focusable="false")),t}function pQ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:so,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function j3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=dQ(e),r=n.iconName,i=n.prefix,o=n.rest,a=hQ(e),s=w2("parseNodeAttributes",{},e),l=t.styleParser?fQ(e):[];return Re({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:so,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var mQ=Ii.styles;function g$(e){var t=Fe.autoReplaceSvg==="nest"?j3(e,{styleParser:!1}):j3(e);return~t.extra.classes.indexOf(J8)?Xo("generateLayersText",e,t):Xo("generateSvgReplacementMutation",e,t)}var rs=new Set;iT.map(function(e){rs.add("fa-".concat(e))});Object.keys(yh[At]).map(rs.add.bind(rs));Object.keys(yh[Zt]).map(rs.add.bind(rs));rs=Pp(rs);function T3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!sa)return Promise.resolve();var n=Lt.documentElement.classList,r=function(d){return n.add("".concat(m3,"-").concat(d))},i=function(d){return n.remove("".concat(m3,"-").concat(d))},o=Fe.autoFetchSvg?rs:iT.map(function(f){return"fa-".concat(f)}).concat(Object.keys(mQ));o.includes("fa")||o.push("fa");var a=[".".concat(J8,":not([").concat(xl,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(xl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=Zc(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=fT.begin("onTree"),u=s.reduce(function(f,d){try{var p=g$(d);p&&f.push(p)}catch(v){Q8||v.name==="MissingIcon"&&console.error(v)}return f},[]);return new Promise(function(f,d){Promise.all(u).then(function(p){m$(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),d(p)})})}function vQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;g$(e).then(function(n){n&&m$([n],t)})}function gQ(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:O2(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:O2(i||{})),e(r,Re(Re({},n),{},{mask:i}))}}var yQ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?so:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,u=n.maskId,f=u===void 0?null:u,d=n.title,p=d===void 0?null:d,v=n.titleId,g=v===void 0?null:v,y=n.classes,w=y===void 0?[]:y,b=n.attributes,x=b===void 0?{}:b,_=n.styles,S=_===void 0?{}:_;if(t){var j=t.prefix,E=t.iconName,P=t.icon;return eb(Re({type:"icon"},t),function(){return wl("beforeDOMElementCreation",{iconDefinition:t,params:n}),Fe.autoA11y&&(p?x["aria-labelledby"]="".concat(Fe.replacementClass,"-title-").concat(g||wh()):(x["aria-hidden"]="true",x.focusable="false")),cT({icons:{main:S2(P),mask:l?S2(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:E,transform:Re(Re({},so),i),symbol:a,title:p,maskId:f,titleId:g,extra:{attributes:x,styles:S,classes:w}})})}},bQ={mixout:function(){return{icon:gQ(yQ)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=T3,n.nodeCallback=vQ,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Lt:r,o=n.callback,a=o===void 0?function(){}:o;return T3(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,f=r.mask,d=r.maskId,p=r.extra;return new Promise(function(v,g){Promise.all([E2(i,s),f.iconName?E2(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var w=eT(y,2),b=w[0],x=w[1];v([n,cT({icons:{main:b,mask:x},prefix:s,iconName:i,transform:l,symbol:u,maskId:d,title:o,titleId:a,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=X0(s);l.length>0&&(i.style=l);var u;return aT(a)&&(u=Xo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},_Q={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return eb({type:"layer"},function(){wl("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Fe.cssPrefix,"-layers")].concat(Pp(o)).join(" ")},children:a}]})}}}},xQ={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,a=r.classes,s=a===void 0?[]:a,l=r.attributes,u=l===void 0?{}:l,f=r.styles,d=f===void 0?{}:f;return eb({type:"counter",content:n},function(){return wl("beforeDOMElementCreation",{content:n,params:r}),eQ({content:n.toString(),title:o,extra:{attributes:u,styles:d,classes:["".concat(Fe.cssPrefix,"-layers-counter")].concat(Pp(s))}})})}}}},wQ={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?so:i,a=r.title,s=a===void 0?null:a,l=r.classes,u=l===void 0?[]:l,f=r.attributes,d=f===void 0?{}:f,p=r.styles,v=p===void 0?{}:p;return eb({type:"text",content:n},function(){return wl("beforeDOMElementCreation",{content:n,params:r}),x3({content:n,transform:Re(Re({},so),o),title:s,extra:{attributes:d,styles:v,classes:["".concat(Fe.cssPrefix,"-layers-text")].concat(Pp(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(Y8){var u=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/u,l=f.height/u}return Fe.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,x3({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},OQ=new RegExp('"',"ug"),C3=[1105920,1112319];function SQ(e){var t=e.replace(OQ,""),n=DX(t,0),r=n>=C3[0]&&n<=C3[1],i=t.length===2?t[0]===t[1]:!1;return{value:_2(i?t[0]:t),isSecondary:r||i}}function P3(e,t){var n="".concat(dX).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Zc(e.children),a=o.filter(function(P){return P.getAttribute(b2)===t})[0],s=ts.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(gX),u=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&f!=="none"&&f!==""){var d=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Zt:At,v=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?bh[p][l[2].toLowerCase()]:yX[p][u],g=SQ(d),y=g.value,w=g.isSecondary,b=l[0].startsWith("FontAwesome"),x=lT(v,y),_=x;if(b){var S=HX(y);S.iconName&&S.prefix&&(x=S.iconName,v=S.prefix)}if(x&&!w&&(!a||a.getAttribute(nT)!==v||a.getAttribute(rT)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);var j=pQ(),E=j.extra;E.attributes[b2]=t,E2(x,v).then(function(P){var N=cT(Re(Re({},j),{},{icons:{main:P,mask:uT()},prefix:v,iconName:_,extra:E,watchable:!0})),I=Lt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(I,e.firstChild):e.appendChild(I),I.outerHTML=N.map(function(M){return kp(M)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function EQ(e){return Promise.all([P3(e,"::before"),P3(e,"::after")])}function jQ(e){return e.parentNode!==document.head&&!~pX.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(b2)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function A3(e){if(sa)return new Promise(function(t,n){var r=Zc(e.querySelectorAll("*")).filter(jQ).map(EQ),i=fT.begin("searchPseudoElements");v$(),Promise.all(r).then(function(){i(),T2(),t()}).catch(function(){i(),T2(),n()})})}var TQ={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=A3,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Lt:r;Fe.searchPseudoElements&&A3(i)}}},k3=!1,CQ={mixout:function(){return{dom:{unwatch:function(){v$(),k3=!0}}}},hooks:function(){return{bootstrap:function(){E3(w2("mutationObserverCallbacks",{}))},noAuto:function(){cQ()},watch:function(n){var r=n.observeMutationsRoot;k3?T2():E3(w2("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},N3=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},PQ={mixout:function(){return{parse:{transform:function(n){return N3(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=N3(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(f)},p={transform:"translate(".concat(a/2*-1," -256)")},v={outer:s,inner:d,path:p};return{tag:"g",attributes:Re({},v.outer),children:[{tag:"g",attributes:Re({},v.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Re(Re({},r.icon.attributes),v.path)}]}]}}}},ix={x:0,y:0,width:"100%",height:"100%"};function L3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function AQ(e){return e.tag==="g"?e.children:[e]}var kQ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?J0(i.split(" ").map(function(a){return a.trim()})):uT();return o.prefix||(o.prefix=ns()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,s=n.maskId,l=n.transform,u=o.width,f=o.icon,d=a.width,p=a.icon,v=PX({transform:l,containerWidth:d,iconWidth:u}),g={tag:"rect",attributes:Re(Re({},ix),{},{fill:"white"})},y=f.children?{children:f.children.map(L3)}:{},w={tag:"g",attributes:Re({},v.inner),children:[L3(Re({tag:f.tag,attributes:Re(Re({},f.attributes),v.path)},y))]},b={tag:"g",attributes:Re({},v.outer),children:[w]},x="mask-".concat(s||wh()),_="clip-".concat(s||wh()),S={tag:"mask",attributes:Re(Re({},ix),{},{id:x,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,b]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:AQ(p)},S]};return r.push(j,{tag:"rect",attributes:Re({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(x,")")},ix)}),{children:r,attributes:i}}}},NQ={provides:function(t){var n=!1;ts.matchMedia&&(n=ts.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Re(Re({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=Re(Re({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Re(Re({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Re(Re({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Re(Re({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Re(Re({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Re(Re({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Re(Re({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Re(Re({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},LQ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},RQ=[NX,bQ,_Q,xQ,wQ,TQ,CQ,PQ,kQ,NQ,LQ];qX(RQ,{mixoutsTo:Wr});Wr.noAuto;Wr.config;Wr.library;Wr.dom;var C2=Wr.parse;Wr.findIconDefinition;Wr.toHtml;var MQ=Wr.icon;Wr.layer;Wr.text;Wr.counter;var y$={exports:{}},IQ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",DQ=IQ,$Q=DQ;function b$(){}function _$(){}_$.resetWarningCache=b$;var FQ=function(){function e(r,i,o,a,s,l){if(l!==$Q){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_$,resetWarningCache:b$};return n.PropTypes=n,n};y$.exports=FQ();var UQ=y$.exports;const $=Nl(UQ);function R3(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 Ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R3(Object(n),!0).forEach(function(r){Nu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bg(e){"@babel/helpers - typeof";return Bg=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},Bg(e)}function Nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zQ(e,t){if(e==null)return{};var n=BQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P2(e){return VQ(e)||HQ(e)||WQ(e)||GQ()}function VQ(e){if(Array.isArray(e))return A2(e)}function HQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WQ(e,t){if(e){if(typeof e=="string")return A2(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 A2(e,t)}}function A2(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 GQ(){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 qQ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,d=e.pulse,p=e.fixedWidth,v=e.inverse,g=e.border,y=e.listItem,w=e.flip,b=e.size,x=e.rotation,_=e.pull,S=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":p,"fa-inverse":v,"fa-border":g,"fa-li":y,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Nu(t,"fa-".concat(b),typeof b<"u"&&b!==null),Nu(t,"fa-rotate-".concat(x),typeof x<"u"&&x!==null&&x!==0),Nu(t,"fa-pull-".concat(_),typeof _<"u"&&_!==null),Nu(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(S).map(function(j){return S[j]?j:null}).filter(function(j){return j})}function ZQ(e){return e=e-0,e===e}function x$(e){return ZQ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var YQ=["style"];function KQ(e){return e.charAt(0).toUpperCase()+e.slice(1)}function XQ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=x$(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[KQ(i)]=o:t[i]=o,t},{})}function w$(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(l){return w$(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=XQ(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[x$(u)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=zQ(n,YQ);return i.attrs.style=Ra(Ra({},i.attrs.style),a),e.apply(void 0,[t.tag,Ra(Ra({},i.attrs),s)].concat(P2(r)))}var O$=!1;try{O$=!0}catch{}function QQ(){if(!O$&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function M3(e){if(e&&Bg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(C2.icon)return C2.icon(e);if(e===null)return null;if(e&&Bg(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 ox(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Nu({},e,t):{}}var Te=V.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,u=M3(n),f=ox("classes",[].concat(P2(qQ(e)),P2(o.split(" ")))),d=ox("transform",typeof e.transform=="string"?C2.transform(e.transform):e.transform),p=ox("mask",M3(r)),v=MQ(u,Ra(Ra(Ra(Ra({},f),d),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!v)return QQ("Could not find icon",u),null;var g=v.abstract,y={ref:t};return Object.keys(e).forEach(function(w){Te.defaultProps.hasOwnProperty(w)||(y[w]=e[w])}),JQ(g[0],y)});Te.displayName="FontAwesomeIcon";Te.propTypes={beat:$.bool,border:$.bool,beatFade:$.bool,bounce:$.bool,className:$.string,fade:$.bool,flash:$.bool,mask:$.oneOfType([$.object,$.array,$.string]),maskId:$.string,fixedWidth:$.bool,inverse:$.bool,flip:$.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$.oneOfType([$.object,$.array,$.string]),listItem:$.bool,pull:$.oneOf(["right","left"]),pulse:$.bool,rotation:$.oneOf([0,90,180,270]),shake:$.bool,size:$.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$.bool,spinPulse:$.bool,spinReverse:$.bool,symbol:$.oneOfType([$.bool,$.string]),title:$.string,titleId:$.string,transform:$.oneOfType([$.string,$.object]),swapOpacity:$.bool};Te.defaultProps={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};var JQ=w$.bind(null,V.createElement),S$={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(S$);var eJ=S$.exports;const We=Nl(eJ);function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}function tJ(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function E$(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function nJ(){return document.body.clientWidth<window.innerWidth}function rJ(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function iJ(){var e=tJ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;nJ()&&E$(n+e)}var oJ;function Be(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oJ;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function hs(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function j$(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var I3={};function k2(e){I3[e]||(typeof console<"u"&&console.error(e),I3[e]=!0)}function T$(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&k2('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return e.apply(void 0,[r,i,o].concat(s))}}var aJ=(typeof window>"u"?"undefined":sc(window))==="object"&&window.Element||function(){};function hT(e,t,n){if(!(e[t]instanceof aJ))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var lc=$.oneOfType([$.string,$.func,hT,$.shape({current:$.any})]),it=$.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func}),$.arrayOf($.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func})]))]),zg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Vg=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],ev={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},mt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},sJ=["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"],pT=!!(typeof window<"u"&&window.document&&window.document.createElement);function lJ(e){return e&&sc(e)==="object"?"current"in e:!1}function C$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function N2(e){var t=sc(e);return e!=null&&(t==="object"||t==="function")}function D3(e){var t=sc(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&C$(e)==="[object Symbol]")return n;if(N2(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=N2(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function uJ(e){if(!N2(e))return!1;var t=C$(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function cJ(e){if(lJ(e))return e.current;if(uJ(e))return e();if(typeof e=="string"&&pT){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 $3(e){return e===null?!1:Array.isArray(e)||pT&&typeof e.length=="number"}function Oh(e,t){var n=cJ(e);return t?$3(n)?n:n===null?[]:[n]:$3(n)?n[0]:n}var fJ=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],dJ=["className","cssModule","noGutters","tag","widths"];function L2(){return L2=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},L2.apply(this,arguments)}function hJ(e,t){if(e==null)return{};var n=pJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mJ=["xs","sm","md","lg","xl","xxl"],Jl=$.oneOfType([$.number,$.string]),vJ={tag:it,noGutters:T$($.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:$.string,cssModule:$.object,xs:Jl,sm:Jl,md:Jl,lg:Jl,xl:Jl,xxl:Jl,widths:$.array};function ir(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?mJ:a,l=hJ(e,dJ),u=[];s.forEach(function(d,p){var v=e[d];if(delete l[d],!!v){var g=!p;u.push(g?"row-cols-".concat(v):"row-cols-".concat(d,"-").concat(v))}});var f=Be(We(t,r?"gx-0":null,"row",u),n);return V.createElement(o,L2({},l,{className:f}))}ir.propTypes=vJ;var gJ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R2.apply(this,arguments)}function ax(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yJ(e,t){if(e==null)return{};var n=bJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _J={children:$.node,className:$.string,color:$.string,container:$.oneOfType([$.bool,$.string]),cssModule:$.object,dark:$.bool,expand:$.oneOfType([$.bool,$.string]),fixed:$.string,light:$.bool,role:$.string,sticky:$.string,tag:it},xJ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function P$(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,u=e.sticky,f=e.color,d=e.container,p=d===void 0?"fluid":d,v=e.tag,g=v===void 0?"nav":v,y=e.children,w=yJ(e,gJ),b=Be(We(i,"navbar",xJ(r),(t={"navbar-light":a,"navbar-dark":s},ax(t,"bg-".concat(f),f),ax(t,"fixed-".concat(l),l),ax(t,"sticky-".concat(u),u),t)),o),x=p&&p===!0?"container":"container-".concat(p);return V.createElement(g,R2({},w,{className:b}),p?V.createElement("div",{className:x},y):y)}P$.propTypes=_J;var wJ=["className","cssModule","tag"];function M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M2.apply(this,arguments)}function OJ(e,t){if(e==null)return{};var n=SJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var EJ={className:$.string,cssModule:$.object,tag:it};function A$(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=OJ(e,wJ),a=Be(We(t,"navbar-brand"),n);return V.createElement(i,M2({},o,{className:a}))}A$.propTypes=EJ;var jJ=["className","cssModule","children","tag"];function I2(){return I2=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},I2.apply(this,arguments)}function F3(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 TJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F3(Object(n),!0).forEach(function(r){CJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PJ(e,t){if(e==null)return{};var n=AJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kJ={className:$.string,cssModule:$.object,tag:it,type:$.string,children:$.node};function k$(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=PJ(e,jJ),s=Be(We(t,"navbar-toggler"),n);return V.createElement(o,I2({"aria-label":"Toggle navigation"},TJ({type:"button"},a),{className:s}),r||V.createElement("span",{className:Be("navbar-toggler-icon",n)}))}k$.propTypes=kJ;var NJ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function D2(){return D2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D2.apply(this,arguments)}function LJ(e,t){if(e==null)return{};var n=RJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var MJ={card:$.bool,className:$.string,cssModule:$.object,fill:$.bool,horizontal:$.oneOf(["center","end"]),justified:$.bool,navbar:$.bool,pills:$.bool,tabs:$.bool,tag:it,vertical:$.oneOfType([$.bool,$.string])},IJ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function mT(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,u=e.fill,f=e.navbar,d=e.card,p=e.tag,v=p===void 0?"ul":p,g=LJ(e,NJ),y=Be(We(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,IJ(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":l,"nav-fill":u}),n);return V.createElement(v,D2({},g,{className:y}))}mT.propTypes=MJ;var DJ=["className","cssModule","active","tag"];function $2(){return $2=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},$2.apply(this,arguments)}function $J(e,t){if(e==null)return{};var n=FJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var UJ={active:$.bool,className:$.string,cssModule:$.object,tag:it};function vT(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=$J(e,DJ),s=Be(We(t,"nav-item",r?"active":!1),n);return V.createElement(o,$2({},a,{className:s}))}vT.propTypes=UJ;function F2(e){"@babel/helpers - typeof";return F2=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},F2(e)}var BJ=["className","cssModule","active","tag","innerRef"];function U2(){return U2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U2.apply(this,arguments)}function zJ(e,t){if(e==null)return{};var n=VJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function HJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(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 WJ(e,t,n){return t&&U3(e.prototype,t),n&&U3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function GJ(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&&B2(e,t)}function B2(e,t){return B2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B2(e,t)}function qJ(e){var t=YJ();return function(){var r=Hg(e),i;if(t){var o=Hg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ZJ(this,i)}}function ZJ(e,t){if(t&&(F2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N$(e)}function N$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YJ(){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 Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hg(e)}var KJ={active:$.bool,className:$.string,cssModule:$.object,disabled:$.bool,href:$.any,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,tag:it},L$=function(e){GJ(n,e);var t=qJ(n);function n(r){var i;return HJ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(N$(i)),i}return WJ(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,o=i.className,a=i.cssModule,s=i.active,l=i.tag,u=l===void 0?"a":l,f=i.innerRef,d=zJ(i,BJ),p=Be(We(o,"nav-link",{disabled:d.disabled,active:s}),a);return V.createElement(u,U2({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(V.Component);L$.propTypes=KJ;const R$=L$;var XJ=["className","cssModule","variant","innerRef"];function z2(){return z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z2.apply(this,arguments)}function B3(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 QJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B3(Object(n),!0).forEach(function(r){JJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eee(e,t){if(e==null)return{};var n=tee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nee={active:$.bool,"aria-label":$.string,onClick:$.func,variant:$.oneOf(["white"]),className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])};function M$(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=eee(e,XJ),o=Be(We(t,"btn-close",n&&"btn-close-".concat(n)));return V.createElement("button",z2({ref:r,type:"button",className:o},QJ({"aria-label":"close"},i)))}M$.propTypes=nee;var ree=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function V2(){return V2=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},V2.apply(this,arguments)}function iee(e,t){if(e==null)return{};var n=oee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var aee={active:$.bool,"aria-label":$.string,block:$.bool,children:$.node,className:$.string,cssModule:$.object,close:$.bool,color:$.string,disabled:$.bool,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,outline:$.bool,size:$.string,tag:it};function Ze(e){var t=R.useCallback(function(x){if(e.disabled){x.preventDefault();return}if(e.onClick)return e.onClick(x)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,u=l===void 0?"secondary":l,f=e.outline,d=e.size,p=e.tag,v=p===void 0?"button":p,g=e.innerRef,y=iee(e,ree);if(a)return V.createElement(M$,y);var w="btn".concat(f?"-outline":"","-").concat(u),b=Be(We(o,"btn",w,d?"btn-".concat(d):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return y.href&&v==="button"&&(v="a"),V.createElement(v,V2({type:v==="button"&&y.onClick?"button":void 0},y,{className:b,ref:g,onClick:t,"aria-label":r}))}Ze.propTypes=aee;var I$=R.createContext(),D$=R.createContext();function z3(e){var t=e.children,n=R.useState(null),r=n[0],i=n[1],o=R.useRef(!1);R.useEffect(function(){return function(){o.current=!0}},[]);var a=R.useCallback(function(s){o.current||i(s)},[]);return R.createElement(I$.Provider,{value:r},R.createElement(D$.Provider,{value:a},t))}var $$=function(t){return Array.isArray(t)?t[0]:t},F$=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)}},H2=function(t,n){if(typeof t=="function")return F$(t,n);t!=null&&(t.current=n)},V3=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},H3=typeof window<"u"&&window.document&&window.document.createElement?R.useLayoutEffect:R.useEffect,wr="top",vi="bottom",gi="right",Or="left",gT="auto",Np=[wr,vi,gi,Or],uc="start",Sh="end",see="clippingParents",U$="viewport",Gf="popper",lee="reference",W3=Np.reduce(function(e,t){return e.concat([t+"-"+uc,t+"-"+Sh])},[]),B$=[].concat(Np,[gT]).reduce(function(e,t){return e.concat([t,t+"-"+uc,t+"-"+Sh])},[]),uee="beforeRead",cee="read",fee="afterRead",dee="beforeMain",hee="main",pee="afterMain",mee="beforeWrite",vee="write",gee="afterWrite",yee=[uee,cee,fee,dee,hee,pee,mee,vee,gee];function yo(e){return e?(e.nodeName||"").toLowerCase():null}function Ur(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ol(e){var t=Ur(e).Element;return e instanceof t||e instanceof Element}function ci(e){var t=Ur(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yT(e){if(typeof ShadowRoot>"u")return!1;var t=Ur(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ci(o)||!yo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function _ee(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],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ci(i)||!yo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const xee={name:"applyStyles",enabled:!0,phase:"write",fn:bee,effect:_ee,requires:["computeStyles"]};function po(e){return e.split("-")[0]}var ll=Math.max,Wg=Math.min,cc=Math.round;function W2(){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 z$(){return!/^((?!chrome|android).)*safari/i.test(W2())}function fc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ci(e)&&(i=e.offsetWidth>0&&cc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&cc(r.height)/e.offsetHeight||1);var a=Ol(e)?Ur(e):window,s=a.visualViewport,l=!z$()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u,x:u,y:f}}function bT(e){var t=fc(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 V$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qo(e){return Ur(e).getComputedStyle(e)}function wee(e){return["table","td","th"].indexOf(yo(e))>=0}function ps(e){return((Ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function tb(e){return yo(e)==="html"?e:e.assignedSlot||e.parentNode||(yT(e)?e.host:null)||ps(e)}function G3(e){return!ci(e)||Qo(e).position==="fixed"?null:e.offsetParent}function Oee(e){var t=/firefox/i.test(W2()),n=/Trident/i.test(W2());if(n&&ci(e)){var r=Qo(e);if(r.position==="fixed")return null}var i=tb(e);for(yT(i)&&(i=i.host);ci(i)&&["html","body"].indexOf(yo(i))<0;){var o=Qo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Lp(e){for(var t=Ur(e),n=G3(e);n&&wee(n)&&Qo(n).position==="static";)n=G3(n);return n&&(yo(n)==="html"||yo(n)==="body"&&Qo(n).position==="static")?t:n||Oee(e)||t}function _T(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rd(e,t,n){return ll(e,Wg(t,n))}function See(e,t,n){var r=Rd(e,t,n);return r>n?n:r}function H$(){return{top:0,right:0,bottom:0,left:0}}function W$(e){return Object.assign({},H$(),e)}function G$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Eee=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,W$(typeof t!="number"?t:G$(t,Np))};function jee(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=po(n.placement),l=_T(s),u=[Or,gi].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=Eee(i.padding,n),p=bT(o),v=l==="y"?wr:Or,g=l==="y"?vi:gi,y=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],w=a[l]-n.rects.reference[l],b=Lp(o),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,_=y/2-w/2,S=d[v],j=x-p[f]-d[g],E=x/2-p[f]/2+_,P=Rd(S,E,j),N=l;n.modifiersData[r]=(t={},t[N]=P,t.centerOffset=P-E,t)}}function Tee(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)||V$(t.elements.popper,i)&&(t.elements.arrow=i))}const Cee={name:"arrow",enabled:!0,phase:"main",fn:jee,effect:Tee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dc(e){return e.split("-")[1]}var Pee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Aee(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:cc(n*i)/i||0,y:cc(r*i)/i||0}}function q3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,v=p===void 0?0:p,g=a.y,y=g===void 0?0:g,w=typeof f=="function"?f({x:v,y}):{x:v,y};v=w.x,y=w.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),_=Or,S=wr,j=window;if(u){var E=Lp(n),P="clientHeight",N="clientWidth";if(E===Ur(n)&&(E=ps(n),Qo(E).position!=="static"&&s==="absolute"&&(P="scrollHeight",N="scrollWidth")),E=E,i===wr||(i===Or||i===gi)&&o===Sh){S=vi;var I=d&&E===j&&j.visualViewport?j.visualViewport.height:E[P];y-=I-r.height,y*=l?1:-1}if(i===Or||(i===wr||i===vi)&&o===Sh){_=gi;var M=d&&E===j&&j.visualViewport?j.visualViewport.width:E[N];v-=M-r.width,v*=l?1:-1}}var D=Object.assign({position:s},u&&Pee),z=f===!0?Aee({x:v,y},Ur(n)):{x:v,y};if(v=z.x,y=z.y,l){var q;return Object.assign({},D,(q={},q[S]=x?"0":"",q[_]=b?"0":"",q.transform=(j.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",q))}return Object.assign({},D,(t={},t[S]=x?y+"px":"",t[_]=b?v+"px":"",t.transform="",t))}function kee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:po(t.placement),variation:dc(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,q3(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q3(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Nee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kee,data:{}};var tv={passive:!0};function Lee(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Ur(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,tv)}),s&&l.addEventListener("resize",n.update,tv),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,tv)}),s&&l.removeEventListener("resize",n.update,tv)}}const Ree={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lee,data:{}};var Mee={left:"right",right:"left",bottom:"top",top:"bottom"};function qv(e){return e.replace(/left|right|bottom|top/g,function(t){return Mee[t]})}var Iee={start:"end",end:"start"};function Z3(e){return e.replace(/start|end/g,function(t){return Iee[t]})}function xT(e){var t=Ur(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wT(e){return fc(ps(e)).left+xT(e).scrollLeft}function Dee(e,t){var n=Ur(e),r=ps(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=z$();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+wT(e),y:l}}function $ee(e){var t,n=ps(e),r=xT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ll(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ll(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+wT(e),l=-r.scrollTop;return Qo(i||n).direction==="rtl"&&(s+=ll(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function OT(e){var t=Qo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function q$(e){return["html","body","#document"].indexOf(yo(e))>=0?e.ownerDocument.body:ci(e)&&OT(e)?e:q$(tb(e))}function Md(e,t){var n;t===void 0&&(t=[]);var r=q$(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ur(r),a=i?[o].concat(o.visualViewport||[],OT(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Md(tb(a)))}function G2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fee(e,t){var n=fc(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 Y3(e,t,n){return t===U$?G2(Dee(e,n)):Ol(t)?Fee(t,n):G2($ee(ps(e)))}function Uee(e){var t=Md(tb(e)),n=["absolute","fixed"].indexOf(Qo(e).position)>=0,r=n&&ci(e)?Lp(e):e;return Ol(r)?t.filter(function(i){return Ol(i)&&V$(i,r)&&yo(i)!=="body"}):[]}function Bee(e,t,n,r){var i=t==="clippingParents"?Uee(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=Y3(e,u,r);return l.top=ll(f.top,l.top),l.right=Wg(f.right,l.right),l.bottom=Wg(f.bottom,l.bottom),l.left=ll(f.left,l.left),l},Y3(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Z$(e){var t=e.reference,n=e.element,r=e.placement,i=r?po(r):null,o=r?dc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case wr:l={x:a,y:t.y-n.height};break;case vi:l={x:a,y:t.y+t.height};break;case gi:l={x:t.x+t.width,y:s};break;case Or:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?_T(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case uc:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Sh:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Eh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?see:s,u=n.rootBoundary,f=u===void 0?U$:u,d=n.elementContext,p=d===void 0?Gf:d,v=n.altBoundary,g=v===void 0?!1:v,y=n.padding,w=y===void 0?0:y,b=W$(typeof w!="number"?w:G$(w,Np)),x=p===Gf?lee:Gf,_=e.rects.popper,S=e.elements[g?x:p],j=Bee(Ol(S)?S:S.contextElement||ps(e.elements.popper),l,f,a),E=fc(e.elements.reference),P=Z$({reference:E,element:_,strategy:"absolute",placement:i}),N=G2(Object.assign({},_,P)),I=p===Gf?N:E,M={top:j.top-I.top+b.top,bottom:I.bottom-j.bottom+b.bottom,left:j.left-I.left+b.left,right:I.right-j.right+b.right},D=e.modifiersData.offset;if(p===Gf&&D){var z=D[i];Object.keys(M).forEach(function(q){var W=[gi,vi].indexOf(q)>=0?1:-1,X=[wr,vi].indexOf(q)>=0?"y":"x";M[q]+=z[X]*W})}return M}function zee(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?B$:l,f=dc(r),d=f?s?W3:W3.filter(function(g){return dc(g)===f}):Np,p=d.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=d);var v=p.reduce(function(g,y){return g[y]=Eh(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[po(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function Vee(e){if(po(e)===gT)return[];var t=qv(e);return[Z3(e),t,Z3(t)]}function Hee(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,y=n.allowedAutoPlacements,w=t.options.placement,b=po(w),x=b===w,_=l||(x||!g?[qv(w)]:Vee(w)),S=[w].concat(_).reduce(function(ee,ae){return ee.concat(po(ae)===gT?zee(t,{placement:ae,boundary:f,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):ae)},[]),j=t.rects.reference,E=t.rects.popper,P=new Map,N=!0,I=S[0],M=0;M<S.length;M++){var D=S[M],z=po(D),q=dc(D)===uc,W=[wr,vi].indexOf(z)>=0,X=W?"width":"height",J=Eh(t,{placement:D,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),te=W?q?gi:Or:q?vi:wr;j[X]>E[X]&&(te=qv(te));var K=qv(te),B=[];if(o&&B.push(J[z]<=0),s&&B.push(J[te]<=0,J[K]<=0),B.every(function(ee){return ee})){I=D,N=!1;break}P.set(D,B)}if(N)for(var F=g?3:1,H=function(ae){var oe=S.find(function(fe){var C=P.get(fe);if(C)return C.slice(0,ae).every(function(A){return A})});if(oe)return I=oe,"break"},ne=F;ne>0;ne--){var Y=H(ne);if(Y==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Wee={name:"flip",enabled:!0,phase:"main",fn:Hee,requiresIfExists:["offset"],data:{_skip:!1}};function K3(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 X3(e){return[wr,gi,vi,Or].some(function(t){return e[t]>=0})}function Gee(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Eh(t,{elementContext:"reference"}),s=Eh(t,{altBoundary:!0}),l=K3(a,r),u=K3(s,i,o),f=X3(l),d=X3(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const qee={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gee};function Zee(e,t,n){var r=po(e),i=[Or,wr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Or,gi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Yee(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=B$.reduce(function(f,d){return f[d]=Zee(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Kee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yee};function Xee(e){var t=e.state,n=e.name;t.modifiersData[n]=Z$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Qee={name:"popperOffsets",enabled:!0,phase:"read",fn:Xee,data:{}};function Jee(e){return e==="x"?"y":"x"}function ete(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,v=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,w=Eh(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=po(t.placement),x=dc(t.placement),_=!x,S=_T(b),j=Jee(S),E=t.modifiersData.popperOffsets,P=t.rects.reference,N=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(E){if(o){var q,W=S==="y"?wr:Or,X=S==="y"?vi:gi,J=S==="y"?"height":"width",te=E[S],K=te+w[W],B=te-w[X],F=v?-N[J]/2:0,H=x===uc?P[J]:N[J],ne=x===uc?-N[J]:-P[J],Y=t.elements.arrow,ee=v&&Y?bT(Y):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:H$(),oe=ae[W],fe=ae[X],C=Rd(0,P[J],ee[J]),A=_?P[J]/2-F-C-oe-M.mainAxis:H-C-oe-M.mainAxis,U=_?-P[J]/2+F+C+fe+M.mainAxis:ne+C+fe+M.mainAxis,Q=t.elements.arrow&&Lp(t.elements.arrow),Z=Q?S==="y"?Q.clientTop||0:Q.clientLeft||0:0,ie=(q=D==null?void 0:D[S])!=null?q:0,he=te+A-ie-Z,Se=te+U-ie,se=Rd(v?Wg(K,he):K,te,v?ll(B,Se):B);E[S]=se,z[S]=se-te}if(s){var pe,me=S==="x"?wr:Or,xe=S==="x"?vi:gi,Ce=E[j],je=j==="y"?"height":"width",Pe=Ce+w[me],le=Ce-w[xe],ce=[wr,Or].indexOf(b)!==-1,ye=(pe=D==null?void 0:D[j])!=null?pe:0,ge=ce?Pe:Ce-P[je]-N[je]-ye+M.altAxis,we=ce?Ce+P[je]+N[je]-ye-M.altAxis:le,Ae=v&&ce?See(ge,Ce,we):Rd(v?ge:Pe,Ce,v?we:le);E[j]=Ae,z[j]=Ae-Ce}t.modifiersData[r]=z}}const tte={name:"preventOverflow",enabled:!0,phase:"main",fn:ete,requiresIfExists:["offset"]};function nte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rte(e){return e===Ur(e)||!ci(e)?xT(e):nte(e)}function ite(e){var t=e.getBoundingClientRect(),n=cc(t.width)/e.offsetWidth||1,r=cc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ote(e,t,n){n===void 0&&(n=!1);var r=ci(t),i=ci(t)&&ite(t),o=ps(t),a=fc(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((yo(t)!=="body"||OT(o))&&(s=rte(t)),ci(t)?(l=fc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=wT(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ate(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function ste(e){var t=ate(e);return yee.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function lte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ute(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 Q3={placement:"bottom",modifiers:[],strategy:"absolute"};function J3(){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 cte(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Q3:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Q3,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,v={state:f,setOptions:function(b){var x=typeof b=="function"?b(f.options):b;y(),f.options=Object.assign({},o,f.options,x),f.scrollParents={reference:Ol(s)?Md(s):s.contextElement?Md(s.contextElement):[],popper:Md(l)};var _=ste(ute([].concat(r,f.options.modifiers)));return f.orderedModifiers=_.filter(function(S){return S.enabled}),g(),v.update()},forceUpdate:function(){if(!p){var b=f.elements,x=b.reference,_=b.popper;if(J3(x,_)){f.rects={reference:ote(x,Lp(_),f.options.strategy==="fixed"),popper:bT(_)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var j=f.orderedModifiers[S],E=j.fn,P=j.options,N=P===void 0?{}:P,I=j.name;typeof E=="function"&&(f=E({state:f,options:N,name:I,instance:v})||f)}}}},update:lte(function(){return new Promise(function(w){v.forceUpdate(),w(f)})}),destroy:function(){y(),p=!0}};if(!J3(s,l))return v;v.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function g(){f.orderedModifiers.forEach(function(w){var b=w.name,x=w.options,_=x===void 0?{}:x,S=w.effect;if(typeof S=="function"){var j=S({state:f,name:b,instance:v,options:_}),E=function(){};d.push(j||E)}})}function y(){d.forEach(function(w){return w()}),d=[]}return v}}var fte=[Ree,Qee,Nee,xee,Kee,Wee,tte,Cee,qee],dte=cte({defaultModifiers:fte}),hte=typeof Element<"u",pte=typeof Map=="function",mte=typeof Set=="function",vte=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Zv(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Zv(e[r],t[r]))return!1;return!0}var o;if(pte&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Zv(r.value[1],t.get(r.value[0])))return!1;return!0}if(mte&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(vte&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(hte&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Zv(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var gte=function(t,n){try{return Zv(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const yte=Nl(gte);var bte=[],_te=function(t,n,r){r===void 0&&(r={});var i=R.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||bte},a=R.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],u=R.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var g=v.state,y=Object.keys(g.elements);H0.flushSync(function(){l({styles:V3(y.map(function(w){return[w,g.styles[w]||{}]})),attributes:V3(y.map(function(w){return[w,g.attributes[w]]}))})})},requires:["computeStyles"]}},[]),f=R.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return yte(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),d=R.useRef();return H3(function(){d.current&&d.current.setOptions(f)},[f]),H3(function(){if(!(t==null||n==null)){var p=r.createPopper||dte,v=p(t,n,f);return d.current=v,function(){v.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},xte=function(){},wte=function(){return Promise.resolve(null)},Ote=[];function Y$(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?Ote:o,s=e.referenceElement,l=e.onFirstUpdate,u=e.innerRef,f=e.children,d=R.useContext(I$),p=R.useState(null),v=p[0],g=p[1],y=R.useState(null),w=y[0],b=y[1];R.useEffect(function(){H2(u,v)},[u,v]);var x=R.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,a,w]),_=_te(s||d,v,x),S=_.state,j=_.styles,E=_.forceUpdate,P=_.update,N=R.useMemo(function(){return{ref:g,style:j.popper,placement:S?S.placement:n,hasPopperEscaped:S&&S.modifiersData.hide?S.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:S&&S.modifiersData.hide?S.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:j.arrow,ref:b},forceUpdate:E||xte,update:P||wte}},[g,b,n,S,j,P,E]);return $$(f)(N)}var Ste=function(){},Ete=Ste;const jte=Nl(Ete);function Tte(e){var t=e.children,n=e.innerRef,r=R.useContext(D$),i=R.useCallback(function(o){H2(n,o),F$(r,o)},[n,r]);return R.useEffect(function(){return function(){return H2(n,null)}},[]),R.useEffect(function(){jte(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),$$(t)({ref:i})}var jh=V.createContext({}),K$=V.createContext({});function q2(e){"@babel/helpers - typeof";return q2=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},q2(e)}var Cte=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function Z2(){return Z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z2.apply(this,arguments)}function ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e,t){if(e==null)return{};var n=Ate(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ate(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eN(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 Nte(e,t,n){return t&&eN(e.prototype,t),n&&eN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lte(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&&Y2(e,t)}function Y2(e,t){return Y2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Y2(e,t)}function Rte(e){var t=Ite();return function(){var r=Gg(e),i;if(t){var o=Gg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mte(this,i)}}function Mte(e,t){if(t&&(q2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ba(e)}function ba(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ite(){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 Gg(e){return Gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gg(e)}var Dte={a11y:$.bool,disabled:$.bool,direction:$.oneOf(["up","down","start","end","left","right"]),group:$.bool,isOpen:$.bool,nav:$.bool,active:$.bool,size:$.string,tag:it,toggle:$.func,children:$.node,className:$.string,cssModule:$.object,dropup:$.bool,inNavbar:$.bool,setActiveFromChild:$.bool,menuRole:$.oneOf(["listbox","menu"])},$te={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Fte=[mt.space,mt.enter,mt.up,mt.down,mt.end,mt.home],nb=function(e){Lte(n,e);var t=Rte(n);function n(r){var i;return kte(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(ba(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ba(i)),i.handleKeyDown=i.handleKeyDown.bind(ba(i)),i.removeEvents=i.removeEvents.bind(ba(i)),i.toggle=i.toggle.bind(ba(i)),i.handleMenuRef=i.handleMenuRef.bind(ba(i)),i.handleToggleRef=i.handleToggleRef.bind(ba(i)),i.containerRef=V.createRef(),i.menuRef=V.createRef(),i.toggleRef=V.createRef(),i}return Nte(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!==mt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var l=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,f=!1;o&&(f=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!f||u)&&(i.type!=="keyup"||i.which===mt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=mt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((Fte.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([mt.space,mt.enter,mt.up,mt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var x;return(x=o.getMenuItems()[0])===null||x===void 0?void 0:x.focus()});else if(this.props.isOpen&&l){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===mt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([mt.tab,mt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([mt.space,mt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([mt.down,mt.up].indexOf(i.which)>-1||[mt.n,mt.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);mt.up===i.which||mt.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(mt.down===i.which||mt.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(mt.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(mt.home===i.which){var v=this.getMenuItems();v[0].focus()}else if(i.which>=48&&i.which<=90)for(var g=this.getMenuItems(),y=String.fromCharCode(i.which).toLowerCase(),w=0;w<g.length;w+=1){var b=g[w].textContent&&g[w].textContent[0].toLowerCase();if(b===y){g[w].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(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,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,o=this,a=hs(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,l=a.cssModule,u=a.direction,f=a.isOpen,d=a.group,p=a.size,v=a.nav,g=a.setActiveFromChild,y=a.active,w=a.tag;a.menuRole;var b=Pte(a,Cte),x=w||(v?"li":"div"),_=!1;g&&V.Children.map(this.props.children[1].props.children,function(j){j&&j.props.active&&(_=!0)});var S=Be(We(s,v&&y?"active":!1,g&&_?"active":!1,(i={"btn-group":d},ga(i,"btn-group-".concat(p),!!p),ga(i,"dropdown",!d),ga(i,"dropup",u==="up"),ga(i,"dropstart",u==="start"||u==="left"),ga(i,"dropend",u==="end"||u==="right"),ga(i,"show",f),ga(i,"nav-item",v),i)),l);return this.context.insideInputGroup?V.createElement(jh.Provider,{value:this.getContextValue()},V.createElement(z3,null,V.Children.map(this.props.children,function(j){return V.cloneElement(j,{onKeyDown:o.handleKeyDown})}))):V.createElement(jh.Provider,{value:this.getContextValue()},V.createElement(z3,null,V.createElement(x,Z2({},b,ga({},typeof x=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:S}))))}}]),n}(V.Component);nb.propTypes=Dte;nb.defaultProps=$te;nb.contextType=K$;const Rp=nb;function K2(e){"@babel/helpers - typeof";return K2=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},K2(e)}var Ute=["className","cssModule","divider","tag","header","active","text"];function X2(){return X2=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},X2.apply(this,arguments)}function Bte(e,t){if(e==null)return{};var n=zte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Vte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tN(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 Hte(e,t,n){return t&&tN(e.prototype,t),n&&tN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wte(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&&Q2(e,t)}function Q2(e,t){return Q2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Q2(e,t)}function Gte(e){var t=Zte();return function(){var r=qg(e),i;if(t){var o=qg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qte(this,i)}}function qte(e,t){if(t&&(K2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J2(e)}function J2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zte(){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 qg(e){return qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qg(e)}var Yte={children:$.node,active:$.bool,disabled:$.bool,divider:$.bool,tag:it,header:$.bool,onClick:$.func,className:$.string,cssModule:$.object,toggle:$.bool,text:$.bool},ST=function(e){Wte(n,e);var t=Gte(n);function n(r){var i;return Vte(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(J2(i)),i.getTabIndex=i.getTabIndex.bind(J2(i)),i}return Hte(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,u=a.divider,f=a.text;if(s||l||u||f){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=hs(this.props,["toggle"]),s=a.className,l=a.cssModule,u=a.divider,f=a.tag,d=f===void 0?"button":f,p=a.header,v=a.active,g=a.text,y=Bte(a,Ute),w=Be(We(s,{disabled:y.disabled,"dropdown-item":!u&&!p&&!g,active:v,"dropdown-header":p,"dropdown-divider":u,"dropdown-item-text":g}),l);return d==="button"&&(p?d="h6":u?d="div":y.href?d="a":g&&(d="span")),V.createElement(d,X2({type:d==="button"&&(y.onClick||this.props.toggle)?"button":void 0},y,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),n}(V.Component);ST.propTypes=Yte;ST.contextType=jh;const ke=ST;function eO(e){"@babel/helpers - typeof";return eO=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},eO(e)}var Kte=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Zg(){return Zg=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},Zg.apply(this,arguments)}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nN(Object(n),!0).forEach(function(r){Xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(e){return nne(e)||tne(e)||ene(e)||Jte()}function Jte(){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 ene(e,t){if(e){if(typeof e=="string")return tO(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 tO(e,t)}}function tne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nne(e){if(Array.isArray(e))return tO(e)}function tO(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 rne(e,t){if(e==null)return{};var n=ine(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ine(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function one(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rN(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 ane(e,t,n){return t&&rN(e.prototype,t),n&&rN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sne(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&&nO(e,t)}function nO(e,t){return nO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nO(e,t)}function lne(e){var t=fne();return function(){var r=Yg(e),i;if(t){var o=Yg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return une(this,i)}}function une(e,t){if(t&&(eO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cne(e)}function cne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fne(){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 Yg(e){return Yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yg(e)}var dne={tag:it,children:$.node.isRequired,dark:$.bool,end:$.bool,flip:$.bool,modifiers:$.array,className:$.string,cssModule:$.object,style:$.object,persist:$.bool,strategy:$.string,container:lc,updateOnSelect:$.bool,right:T$($.bool,'Please use "end" instead.')},hne={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},ET=function(e){sne(n,e);var t=lne(n);function n(){return one(this,n),t.apply(this,arguments)}return ane(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,u=o.end,f=o.right,d=o.tag,p=d===void 0?"div":d,v=o.flip,g=v===void 0?!0:v,y=o.modifiers,w=y===void 0?[]:y,b=o.persist,x=o.strategy,_=o.container,S=o.updateOnSelect,j=rne(o,Kte),E=Be(We(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":u||f,show:this.context.isOpen}),s),P=p;if(b||this.context.isOpen&&!this.context.inNavbar){var N=hne[this.context.direction]||"bottom",I=u||f?"end":"start",M="".concat(N,"-").concat(I),D=[].concat(Qte(w),[{name:"flip",enabled:!!g}]),z={};b&&(z.display="block",z.visibility=this.context.isOpen?"visible":"hidden");var q=V.createElement(Y$,{placement:M,modifiers:D,strategy:x},function(X){var J=X.ref,te=X.style,K=X.placement,B=X.update,F=sx(sx(sx({},i.props.style),z),te),H=function(Y){J(Y);var ee=i.context.onMenuRef;ee&&ee(Y)};return V.createElement(P,Zg({tabIndex:"-1",role:i.getRole(),ref:H},j,{style:F,"aria-hidden":!i.context.isOpen,className:E,"data-popper-placement":K,onClick:function(){return S&&B()}}))});return _?Qs.createPortal(q,Oh(_)):q}var W=this.context.onMenuRef;return V.createElement(P,Zg({tabIndex:"-1",role:this.getRole()},j,{ref:W,"aria-hidden":!this.context.isOpen,className:E,"data-popper-placement":j.placement,"data-bs-popper":"static"}))}}]),n}(V.Component);ET.propTypes=dne;ET.contextType=jh;const Yc=ET;function rO(e){"@babel/helpers - typeof";return rO=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},rO(e)}var pne=["className","color","cssModule","caret","split","nav","tag","innerRef"];function iO(){return iO=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},iO.apply(this,arguments)}function mne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vne(e,t){if(e==null)return{};var n=gne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bne(e,t,n){return t&&iN(e.prototype,t),n&&iN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ne(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&&oO(e,t)}function oO(e,t){return oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oO(e,t)}function xne(e){var t=One();return function(){var r=Kg(e),i;if(t){var o=Kg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wne(this,i)}}function wne(e,t){if(t&&(rO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X$(e)}function X$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function One(){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 Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kg(e)}var Sne={caret:$.bool,color:$.string,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,onClick:$.func,"aria-haspopup":$.bool,split:$.bool,tag:it,nav:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func])},Ene={color:"secondary","aria-haspopup":!0},rb=function(e){_ne(n,e);var t=xne(n);function n(r){var i;return yne(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(X$(i)),i}return bne(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,o=this.props,a=o.className,s=o.color,l=o.cssModule,u=o.caret,f=o.split,d=o.nav,p=o.tag,v=o.innerRef,g=vne(o,pne),y=g["aria-label"]||"Toggle Dropdown",w=Be(We(a,{"dropdown-toggle":u||f,"dropdown-toggle-split":f,"nav-link":d}),l),b=typeof g.children<"u"?g.children:V.createElement("span",{className:"visually-hidden"},y),x;d&&!p?(x="a",g.href="#"):p?x=p:(x=Ze,g.color=s,g.cssModule=l);var _=function(j){var E=j.ref,P=function(I){E(I);var M=i.context.onToggleRef;M&&M(I)};return V.createElement(x,iO({},g,mne({},typeof x=="string"?"ref":"innerRef",P),{className:w,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:b}))};return this.context.inNavbar?V.createElement(V.Fragment,null,_({ref:this.context.onToggleRef})):V.createElement(Tte,{innerRef:v},_)}}]),n}(V.Component);rb.propTypes=Sne;rb.defaultProps=Ene;rb.contextType=jh;const Kc=rb;function jne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function aO(e,t){return aO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aO(e,t)}function Tne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,aO(e,t)}const oN={disabled:!1},Q$=V.createContext(null);var Cne=function(t){return t.scrollTop},pd="unmounted",$s="exited",Fs="entering",hu="entered",sO="exiting",jr=function(e){Tne(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=$s,o.appearStatus=Fs):l=hu:r.unmountOnExit||r.mountOnEnter?l=pd:l=$s,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===pd?{status:$s}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Fs&&a!==hu&&(o=Fs):(a===Fs||a===hu)&&(o=sO)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Fs){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Qs.findDOMNode(this);a&&Cne(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$s&&this.setState({status:pd})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Qs.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||oN.disabled){this.safeSetState({status:hu},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Fs},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:hu},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Qs.findDOMNode(this);if(!o||oN.disabled){this.safeSetState({status:$s},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:sO},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:$s},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Qs.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===pd)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=jne(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(Q$.Provider,{value:null},typeof a=="function"?a(i,s):V.cloneElement(V.Children.only(a),s))},t}(V.Component);jr.contextType=Q$;jr.propTypes={};function eu(){}jr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eu,onEntering:eu,onEntered:eu,onExit:eu,onExiting:eu,onExited:eu};jr.UNMOUNTED=pd;jr.EXITED=$s;jr.ENTERING=Fs;jr.ENTERED=hu;jr.EXITING=sO;var Pne=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Xg(){return Xg=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},Xg.apply(this,arguments)}function Ane(e,t){if(e==null)return{};var n=kne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(n),!0).forEach(function(r){Nne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lne=Th(Th({},jr.propTypes),{},{children:$.oneOfType([$.arrayOf($.node),$.node]),tag:it,baseClass:$.string,baseClassActive:$.string,className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])}),J$=Th(Th({},jr.defaultProps),{},{timeout:zg.Fade,appear:!0,enter:!0,exit:!0,in:!0});function or(e){var t=R.useRef(null),n=e.tag,r=n===void 0?"div":n,i=e.baseClass,o=i===void 0?"fade":i,a=e.baseClassActive,s=a===void 0?"show":a,l=e.className,u=e.cssModule,f=e.children,d=e.innerRef,p=d===void 0?t:d,v=Ane(e,Pne),g=j$(Th({defaultProps:J$},v),Vg),y=hs(v,Vg);return V.createElement(jr,Xg({nodeRef:p},g),function(w){var b=w==="entered",x=Be(We(l,o,b&&s),u);return V.createElement(r,Xg({className:x},y,{ref:p}),f)})}or.propTypes=Lne;or.defaultProps=J$;function lO(e){"@babel/helpers - typeof";return lO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lO(e)}var Rne=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],tu;function Qg(){return Qg=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},Qg.apply(this,arguments)}function Mne(e,t){if(e==null)return{};var n=Ine(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ine(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Dne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sN(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 $ne(e,t,n){return t&&sN(e.prototype,t),n&&sN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fne(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&&uO(e,t)}function uO(e,t){return uO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uO(e,t)}function Une(e){var t=zne();return function(){var r=Jg(e),i;if(t){var o=Jg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bne(this,i)}}function Bne(e,t){if(t&&(lO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e7(e)}function e7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zne(){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 Jg(e){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jg(e)}function lN(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 hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lN(Object(n),!0).forEach(function(r){Lu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vne=hc(hc({},jr.propTypes),{},{horizontal:$.bool,isOpen:$.bool,children:$.oneOfType([$.arrayOf($.node),$.node]),tag:it,className:$.node,navbar:$.bool,cssModule:$.object,innerRef:$.shape({current:$.object})}),Hne=hc(hc({},jr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:zg.Collapse}),Wne=(tu={},Lu(tu,ev.ENTERING,"collapsing"),Lu(tu,ev.ENTERED,"collapse show"),Lu(tu,ev.EXITING,"collapsing"),Lu(tu,ev.EXITED,"collapse"),tu);function Gne(e){return Wne[e]||"collapse"}var jT=function(e){Fne(n,e);var t=Une(n);function n(r){var i;return Dne(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||V.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(e7(i))}),i}return $ne(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{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,o=this.props,a=o.tag,s=o.horizontal,l=o.isOpen,u=o.className,f=o.navbar,d=o.cssModule,p=o.children;o.innerRef;var v=Mne(o,Rne),g=this.state.dimension,y=j$(v,Vg),w=hs(v,Vg);return V.createElement(jr,Qg({},y,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(b){var x=Gne(b),_=Be(We(u,s&&"collapse-horizontal",x,f&&"navbar-collapse"),d),S=g===null?null:Lu({},s?"width":"height",g);return V.createElement(a,Qg({},w,{style:hc(hc({},w.style),S),className:_,ref:i.nodeRef}),p)})}}]),n}(R.Component);jT.propTypes=Vne;jT.defaultProps=Hne;const qne=jT;var Zne=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function cO(){return cO=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},cO.apply(this,arguments)}function Yne(e,t){if(e==null)return{};var n=Kne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xne={body:$.bool,className:$.string,color:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),inverse:$.bool,outline:$.bool,tag:it};function Er(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,u=e.innerRef,f=Yne(e,Zne),d=Be(We(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return V.createElement(l,cO({},f,{className:d,ref:u}))}Er.propTypes=Xne;var Qne=["className","cssModule","innerRef","tag"];function fO(){return fO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fO.apply(this,arguments)}function Jne(e,t){if(e==null)return{};var n=ere(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tre={className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),tag:it};function pc(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Jne(e,Qne),s=Be(We(t,"card-body"),n);return V.createElement(o,fO({},a,{className:s,ref:r}))}pc.propTypes=tre;var nre=["className","cssModule","tag"];function dO(){return dO=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},dO.apply(this,arguments)}function rre(e,t){if(e==null)return{};var n=ire(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ire(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ore={className:$.string,cssModule:$.object,tag:it};function t7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=rre(e,nre),a=Be(We(t,"card-footer"),n);return V.createElement(i,dO({},o,{className:a}))}t7.propTypes=ore;var are=["className","cssModule","tag"];function hO(){return hO=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},hO.apply(this,arguments)}function sre(e,t){if(e==null)return{};var n=lre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ure={className:$.string,cssModule:$.object,tag:it};function mc(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=sre(e,are),a=Be(We(t,"card-header"),n);return V.createElement(i,hO({},o,{className:a}))}mc.propTypes=ure;var cre=["className","cssModule","tag"];function pO(){return pO=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},pO.apply(this,arguments)}function fre(e,t){if(e==null)return{};var n=dre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var hre={className:$.string,cssModule:$.object,tag:it};function n7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=fre(e,cre),a=Be(We(t,"card-text"),n);return V.createElement(i,pO({},o,{className:a}))}n7.propTypes=hre;var pre=["className","cssModule","tag"];function mO(){return mO=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},mO.apply(this,arguments)}function mre(e,t){if(e==null)return{};var n=vre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gre={className:$.string,cssModule:$.object,tag:it};function r7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=mre(e,pre),a=Be(We(t,"card-title"),n);return V.createElement(i,mO({},o,{className:a}))}r7.propTypes=gre;function vO(e){"@babel/helpers - typeof";return vO=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},vO(e)}var yre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function gO(){return gO=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},gO.apply(this,arguments)}function uN(e){return wre(e)||xre(e)||_re(e)||bre()}function bre(){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 _re(e,t){if(e){if(typeof e=="string")return yO(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 yO(e,t)}}function xre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wre(e){if(Array.isArray(e))return yO(e)}function yO(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 Ore(e,t){if(e==null)return{};var n=Sre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ere(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cN(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 jre(e,t,n){return t&&cN(e.prototype,t),n&&cN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tre(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&&bO(e,t)}function bO(e,t){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bO(e,t)}function Cre(e){var t=Are();return function(){var r=ey(e),i;if(t){var o=ey(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Pre(this,i)}}function Pre(e,t){if(t&&(vO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return md(e)}function md(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Are(){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 ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){kre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(){}var Lre={children:$.oneOfType([$.node,$.func]).isRequired,popperClassName:$.string,placement:$.string,placementPrefix:$.string,arrowClassName:$.string,hideArrow:$.bool,tag:it,isOpen:$.bool,cssModule:$.object,offset:$.arrayOf($.number),fallbackPlacements:$.array,flip:$.bool,container:lc,target:lc.isRequired,modifiers:$.array,strategy:$.string,boundariesElement:$.oneOfType([$.string,hT]),onClosed:$.func,fade:$.bool,transition:$.shape(or.propTypes)},Rre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Nre,fade:!0,transition:Yv({},or.defaultProps)},TT=function(e){Tre(n,e);var t=Cre(n);function n(r){var i;return Ere(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(md(i)),i.getTargetNode=i.getTargetNode.bind(md(i)),i.getRef=i.getRef.bind(md(i)),i.onClosed=i.onClosed.bind(md(i)),i.state={isOpen:r.isOpen},i}return jre(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 Oh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Oh(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,l=i.flip;i.target;var u=i.offset,f=i.fallbackPlacements,d=i.placementPrefix,p=i.arrowClassName,v=i.hideArrow,g=i.popperClassName,y=i.tag;i.container;var w=i.modifiers,b=i.strategy,x=i.boundariesElement;i.onClosed;var _=i.fade,S=i.transition,j=i.placement,E=Ore(i,yre),P=Be(We("arrow",p),o),N=Be(We(g,d?"".concat(d,"-auto"):""),this.props.cssModule),I=w.map(function(q){return q.name}),M=[{name:"offset",options:{offset:u}},{name:"flip",enabled:l,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:x}}].filter(function(q){return!I.includes(q.name)}),D=[].concat(uN(M),uN(w)),z=Yv(Yv(Yv({},or.defaultProps),S),{},{baseClass:_?S.baseClass:"",timeout:_?S.timeout:0});return V.createElement(or,gO({},z,E,{in:s,onExited:this.onClosed,tag:y}),V.createElement(Y$,{referenceElement:this.targetNode,modifiers:D,placement:j,strategy:b},function(q){var W=q.ref,X=q.style,J=q.placement,te=q.isReferenceHidden,K=q.arrowProps,B=q.update;return V.createElement("div",{ref:W,style:X,className:N,"data-popper-placement":J,"data-popper-reference-hidden":te?"true":void 0},typeof a=="function"?a({update:B}):a,!v&&V.createElement("span",{ref:K.ref,className:P,style:K.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Qs.createPortal(V.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);TT.propTypes=Lre;TT.defaultProps=Rre;const Mre=TT;function _O(){return _O=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},_O.apply(this,arguments)}function Ch(e){"@babel/helpers - typeof";return Ch=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},Ch(e)}function Ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dN(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 Dre(e,t,n){return t&&dN(e.prototype,t),n&&dN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $re(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&&xO(e,t)}function xO(e,t){return xO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xO(e,t)}function Fre(e){var t=Bre();return function(){var r=ty(e),i;if(t){var o=ty(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ure(this,i)}}function Ure(e,t){if(t&&(Ch(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pr(e)}function Pr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bre(){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 ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}var CT={children:$.oneOfType([$.node,$.func]),placement:$.oneOf(sJ),target:lc.isRequired,container:lc,isOpen:$.bool,disabled:$.bool,hideArrow:$.bool,boundariesElement:$.oneOfType([$.string,hT]),className:$.string,innerClassName:$.string,arrowClassName:$.string,popperClassName:$.string,cssModule:$.object,toggle:$.func,autohide:$.bool,placementPrefix:$.string,delay:$.oneOfType([$.shape({show:$.number,hide:$.number}),$.number]),modifiers:$.array,strategy:$.string,offset:$.arrayOf($.number),innerRef:$.oneOfType([$.func,$.string,$.object]),trigger:$.string,fade:$.bool,flip:$.bool},i7={show:0,hide:50},zre={isOpen:!1,hideArrow:!1,autohide:!1,delay:i7,toggle:function(){},trigger:"click",fade:!0};function o7(e,t){return t&&(e===t||t.contains(e))}function hN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return o7(e,n)})[0]}var PT=function(e){$re(n,e);var t=Fre(n);function n(r){var i;return Ire(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(Pr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Pr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(Pr(i)),i.toggle=i.toggle.bind(Pr(i)),i.showWithDelay=i.showWithDelay.bind(Pr(i)),i.hideWithDelay=i.hideWithDelay.bind(Pr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(Pr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(Pr(i)),i.show=i.show.bind(Pr(i)),i.hide=i.hide.bind(Pr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(Pr(i)),i.getRef=i.getRef.bind(Pr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Dre(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 o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||hN(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!o7(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&hN(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 o=this.props.innerRef;o&&(typeof o=="function"?o(i):Ch(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return Ch(o)==="object"?isNaN(o[i])?i7[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]: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 o=i.composedPath();this.currentTargetElement=o&&o[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,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{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=Oh(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 o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,u=a.innerClassName,f=a.isOpen,d=a.hideArrow,p=a.boundariesElement,v=a.placement,g=a.placementPrefix,y=a.arrowClassName,w=a.popperClassName,b=a.container,x=a.modifiers,_=a.strategy,S=a.offset,j=a.fade,E=a.flip,P=a.children,N=hs(this.props,Object.keys(CT)),I=Be(w,l),M=Be(u,l);return V.createElement(Mre,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:v,placementPrefix:g,arrowClassName:y,popperClassName:I,container:b,modifiers:x,strategy:_,offset:S,cssModule:l,fade:j,flip:E},function(D){var z=D.update;return V.createElement("div",_O({},N,{ref:i.getRef,className:M,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof P=="function"?P({update:z}):P)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);PT.propTypes=CT;PT.defaultProps=zre;const Vre=PT;var Hre=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function ny(){return ny=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},ny.apply(this,arguments)}function pN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(n),!0).forEach(function(r){Wre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gre(e,t){if(e==null)return{};var n=qre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Zre={animated:$.bool,bar:$.bool,barAriaLabelledBy:$.string,barAriaValueText:$.string,barClassName:$.string,barStyle:$.object,children:$.node,className:$.string,cssModule:$.object,color:$.string,max:$.oneOfType([$.string,$.number]),min:$.oneOfType([$.string,$.number]),multi:$.bool,striped:$.bool,style:$.object,tag:it,value:$.oneOfType([$.string,$.number])};function a7(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,u=e.max,f=u===void 0?100:u,d=e.animated,p=e.striped,v=e.color,g=e.bar,y=e.multi,w=e.tag,b=w===void 0?"div":w,x=e.style,_=x===void 0?{}:x,S=e.barStyle,j=S===void 0?{}:S,E=e.barAriaValueText,P=e.barAriaLabelledBy,N=Gre(e,Hre),I=D3(a)/D3(f)*100,M=Be(We(n,"progress"),i),D=Be(We("progress-bar",g&&n||r,d?"progress-bar-animated":null,v?"bg-".concat(v):null,p||d?"progress-bar-striped":null),i),z={className:D,style:lx(lx(lx({},g?_:{}),j),{},{width:"".concat(I,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":f,"aria-valuetext":E,"aria-labelledby":P,children:t};return g?V.createElement(b,ny({},N,z)):V.createElement(b,ny({},N,{style:_,className:M}),y?t:V.createElement("div",z))}a7.propTypes=Zre;function wO(e){"@babel/helpers - typeof";return wO=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},wO(e)}function Yre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mN(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 Kre(e,t,n){return t&&mN(e.prototype,t),n&&mN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OO(e,t)}function OO(e,t){return OO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OO(e,t)}function Qre(e){var t=tie();return function(){var r=ry(e),i;if(t){var o=ry(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Jre(this,i)}}function Jre(e,t){if(t&&(wO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eie(e)}function eie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tie(){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 ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ry(e)}var nie={children:$.node.isRequired,node:$.any},s7=function(e){Xre(n,e);var t=Qre(n);function n(){return Yre(this,n),t.apply(this,arguments)}return Kre(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return pT?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Qs.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(V.Component);s7.propTypes=nie;const rie=s7;function SO(e){"@babel/helpers - typeof";return SO=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},SO(e)}function vN(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 nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vN(Object(n),!0).forEach(function(r){pu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Id(){return Id=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},Id.apply(this,arguments)}function pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gN(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 oie(e,t,n){return t&&gN(e.prototype,t),n&&gN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aie(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&&EO(e,t)}function EO(e,t){return EO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EO(e,t)}function sie(e){var t=uie();return function(){var r=iy(e),i;if(t){var o=iy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return lie(this,i)}}function lie(e,t){if(t&&(SO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jr(e)}function Jr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uie(){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 iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iy(e)}function oy(){}var yN=$.shape(or.propTypes),l7={autoFocus:$.bool,backdrop:$.oneOfType([$.bool,$.oneOf(["static"])]),backdropClassName:$.string,backdropTransition:yN,centered:$.bool,children:$.node,contentClassName:$.string,className:$.string,container:lc,cssModule:$.object,external:$.node,fade:$.bool,fullscreen:$.oneOfType([$.bool,$.oneOf(["sm","md","lg","xl"])]),innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,keyboard:$.bool,labelledBy:$.string,modalClassName:$.string,modalTransition:yN,onClosed:$.func,onEnter:$.func,onExit:$.func,onOpened:$.func,returnFocusAfterClose:$.bool,role:$.string,scrollable:$.bool,size:$.string,toggle:$.func,trapFocus:$.bool,unmountOnClose:$.bool,wrapClassName:$.string,zIndex:$.oneOfType([$.number,$.string])},cie=Object.keys(l7),fie={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:oy,onClosed:oy,modalTransition:{timeout:zg.Modal},backdropTransition:{mountOnEnter:!0,timeout:zg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Mp=function(e){aie(n,e);var t=sie(n);function n(r){var i;return iie(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Jr(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Jr(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Jr(i)),i.handleEscape=i.handleEscape.bind(Jr(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Jr(i)),i.handleTab=i.handleTab.bind(Jr(i)),i.onOpened=i.onOpened.bind(Jr(i)),i.onClosed=i.onClosed.bind(Jr(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Jr(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Jr(i)),i.trapFocus=i.trapFocus.bind(Jr(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return oie(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),l=0,u=0;u<a;u+=1)if(o[u]===s){l=u;break}i.shiftKey&&l===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&l===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===mt.esc&&this.props.toggle&&(this.props.keyboard?(i.preventDefault(),i.stopPropagation(),this.props.toggle(i)):this.props.backdrop==="static"&&(i.preventDefault(),i.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var i=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(function(){i.setState({showStaticBackdropAnimation:!1})},100)}},{key:"onOpened",value:function(i,o){this.props.onOpened(),(this.props.modalTransition.onEntered||oy)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||oy)(i),o&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(fJ.join(", "))}},{key:"getFocusedChild",value:function(){var i,o=this.getFocusableChildren();try{i=document.activeElement}catch{i=o[0]}return i}},{key:"trapFocus",value:function(i){if(this.props.trapFocus&&this._element&&!(this._dialog&&this._dialog.parentNode===i.target)&&!(this.modalIndex<n.openCount-1)){for(var o=this.getFocusableChildren(),a=0;a<o.length;a+=1)if(o[a]===i.target)return;o.length>0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Oh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=rJ(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),iJ(),n.openCount===0&&(document.body.className=We(document.body.className,Be("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=Be("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),E$(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=hs(this.props,cie),s="modal-dialog";return V.createElement("div",Id({},a,{className:Be(We(s,this.props.className,(i={},pu(i,"modal-".concat(this.props.size),this.props.size),pu(i,"".concat(s,"-centered"),this.props.centered),pu(i,"".concat(s,"-scrollable"),this.props.scrollable),pu(i,"modal-fullscreen",this.props.fullscreen===!0),pu(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(u){o._dialog=u}}),V.createElement("div",{className:Be(We("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,u=a.backdropClassName,f=a.cssModule,d=a.isOpen,p=a.backdrop,v=a.role,g=a.labelledBy,y=a.external,w=a.innerRef,b={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":g,"aria-modal":!0,role:v,tabIndex:"-1"},x=this.props.fade,_=nu(nu(nu({},or.defaultProps),this.props.modalTransition),{},{baseClass:x?this.props.modalTransition.baseClass:"",timeout:x?this.props.modalTransition.timeout:0}),S=nu(nu(nu({},or.defaultProps),this.props.backdropTransition),{},{baseClass:x?this.props.backdropTransition.baseClass:"",timeout:x?this.props.backdropTransition.timeout:0}),j=p&&(x?V.createElement(or,Id({},S,{in:d&&!!p,cssModule:f,className:Be(We("modal-backdrop",u),f)})):V.createElement("div",{className:Be(We("modal-backdrop","show",u),f)}));return V.createElement(rie,{node:this._element},V.createElement("div",{className:Be(s)},V.createElement(or,Id({},b,_,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:Be(We("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:w}),y,this.renderModalDialog()),j))}return null}}]),n}(V.Component);Mp.propTypes=l7;Mp.defaultProps=fie;Mp.openCount=0;Mp.originalBodyOverflow=null;const So=Mp;var die=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function jO(){return jO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jO.apply(this,arguments)}function hie(e,t){if(e==null)return{};var n=pie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mie={children:$.node,className:$.string,close:$.object,closeAriaLabel:$.string,cssModule:$.object,tag:it,toggle:$.func,wrapTag:it};function Eo(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,u=l===void 0?"div":l,f=e.closeAriaLabel,d=f===void 0?"Close":f,p=e.close,v=hie(e,die),g=Be(We(n,"modal-header"),r);return!p&&o&&(t=V.createElement("button",{type:"button",onClick:o,className:Be("btn-close",r),"aria-label":d})),V.createElement(u,jO({},v,{className:g}),V.createElement(s,{className:Be("modal-title",r)},i),p||t)}Eo.propTypes=mie;var vie=["className","cssModule","tag"];function TO(){return TO=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},TO.apply(this,arguments)}function gie(e,t){if(e==null)return{};var n=yie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bie={className:$.string,cssModule:$.object,tag:it};function Wi(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=gie(e,vie),a=Be(We(t,"modal-body"),n);return V.createElement(i,TO({},o,{className:a}))}Wi.propTypes=bie;var _ie=["className","cssModule","tag"];function CO(){return CO=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},CO.apply(this,arguments)}function xie(e,t){if(e==null)return{};var n=wie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Oie={className:$.string,cssModule:$.object,tag:it};function ms(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=xie(e,_ie),a=Be(We(t,"modal-footer"),n);return V.createElement(i,CO({},o,{className:a}))}ms.propTypes=Oie;function PO(){return PO=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},PO.apply(this,arguments)}var Sie={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Ip(e){var t=We("tooltip-arrow",e.arrowClassName),n=We("tooltip","show",e.popperClassName),r=We("tooltip-inner",e.innerClassName);return V.createElement(Vre,PO({},e,{arrowClassName:t,popperClassName:n,innerClassName:r}))}Ip.propTypes=CT;Ip.defaultProps=Sie;var Eie=["className","cssModule","tag","flush","horizontal","numbered"];function AO(){return AO=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},AO.apply(this,arguments)}function jie(e,t){if(e==null)return{};var n=Tie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cie={className:$.string,cssModule:$.object,flush:$.bool,horizontal:$.oneOfType([$.bool,$.string]),numbered:$.bool,tag:it},Pie=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function u7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,u=l===void 0?!1:l,f=jie(e,Eie),d=Be(We(t,"list-group",o?"list-group-flush":Pie(s),{"list-group-numbered":u}),n);return V.createElement(i,AO({},f,{className:d}))}u7.propTypes=Cie;var Aie=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function kO(){return kO=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},kO.apply(this,arguments)}function kie(e,t){if(e==null)return{};var n=Nie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Lie={children:$.node,row:$.bool,check:$.bool,switch:$.bool,inline:$.bool,floating:$.bool,noMargin:$.bool,disabled:$.bool,tag:it,className:$.string,cssModule:$.object};function lo(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.noMargin,u=e.tag,f=u===void 0?"div":u,d=e.switch,p=kie(e,Aie),v=o||d,g=Be(We(t,r?"row":!1,v?"form-check":!1,d?"form-switch":!1,v||l?!1:"mb-3",v&&a?"form-check-inline":!1,v&&i?"disabled":!1,s&&"form-floating"),n);return f==="fieldset"&&(p.disabled=i),V.createElement(f,kO({},p,{className:g}))}lo.propTypes=Lie;function NO(e){"@babel/helpers - typeof";return NO=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},NO(e)}var Rie=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function LO(){return LO=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},LO.apply(this,arguments)}function Mie(e,t){if(e==null)return{};var n=Iie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bN(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 $ie(e,t,n){return t&&bN(e.prototype,t),n&&bN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fie(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&&RO(e,t)}function RO(e,t){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RO(e,t)}function Uie(e){var t=zie();return function(){var r=ay(e),i;if(t){var o=ay(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bie(this,i)}}function Bie(e,t){if(t&&(NO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MO(e)}function MO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zie(){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 ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ay(e)}var Vie={children:$.node,type:$.string,size:$.oneOfType([$.number,$.string]),bsSize:$.string,valid:$.bool,invalid:$.bool,tag:it,innerRef:$.oneOfType([$.object,$.func,$.string]),plaintext:$.bool,addon:$.bool,className:$.string,cssModule:$.object},c7=function(e){Fie(n,e);var t=Uie(n);function n(r){var i;return Die(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(MO(i)),i.focus=i.focus.bind(MO(i)),i}return $ie(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,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,u=i.bsSize,f=i.valid,d=i.invalid,p=i.tag,v=i.addon,g=i.plaintext,y=i.innerRef,w=Mie(i,Rie),b=["switch","radio","checkbox"].indexOf(l)>-1,x=/\D/g,_=l==="textarea",S=l==="select",j=l==="range",E=p||(S||_?l:"input"),P="form-control";g?(P="".concat(P,"-plaintext"),E=p||"input"):j?P="form-range":S?P="form-select":b&&(v?P=null:P="form-check-input"),w.size&&x.test(w.size)&&(k2(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=w.size,delete w.size);var N=Be(We(o,d&&"is-invalid",f&&"is-valid",u?S?"form-select-".concat(u):"form-control-".concat(u):!1,P),a);return(E==="input"||p&&typeof p=="function")&&(w.type=l==="switch"?"checkbox":l),w.children&&!(g||l==="select"||typeof E!="string"||E==="select")&&(k2('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),V.createElement(E,LO({},w,{ref:y,className:N,"aria-invalid":d}))}}]),n}(V.Component);c7.propTypes=Vie;const qn=c7;var Hie=["className","cssModule","tag","type","size"];function sy(){return sy=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},sy.apply(this,arguments)}function Wie(e,t){if(e==null)return{};var n=Gie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qie={className:$.string,cssModule:$.object,size:$.string,tag:it,type:$.string};function ib(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=Wie(e,Hie),s=Be(We(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?V.createElement(Rp,sy({},a,{className:s})):V.createElement(K$.Provider,{value:{insideInputGroup:!0}},V.createElement(i,sy({},a,{className:s})))}ib.propTypes=qie;var Zie=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function IO(){return IO=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},IO.apply(this,arguments)}function Yie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kie(e,t){if(e==null)return{};var n=Xie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qie={children:$.node,className:$.string,listClassName:$.string,cssModule:$.object,size:$.string,tag:it,listTag:it,"aria-label":$.string};function AT(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,u=e["aria-label"],f=u===void 0?"pagination":u,d=Kie(e,Zie),p=Be(We(t),r),v=Be(We(n,"pagination",Yie({},"pagination-".concat(i),!!i)),r);return V.createElement(a,{className:p,"aria-label":f},V.createElement(l,IO({},d,{className:v})))}AT.propTypes=Qie;var Jie=["active","className","cssModule","disabled","tag"];function DO(){return DO=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},DO.apply(this,arguments)}function eoe(e,t){if(e==null)return{};var n=toe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function toe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var noe={active:$.bool,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,tag:it};function ul(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=eoe(e,Jie),l=Be(We(n,"page-item",{active:t,disabled:i}),r);return V.createElement(a,DO({},s,{className:l}))}ul.propTypes=noe;var roe=["className","cssModule","next","previous","first","last","tag"];function $O(){return $O=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},$O.apply(this,arguments)}function ioe(e,t){if(e==null)return{};var n=ooe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ooe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var aoe={"aria-label":$.string,children:$.node,className:$.string,cssModule:$.object,next:$.bool,previous:$.bool,first:$.bool,last:$.bool,tag:it};function cl(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,u=ioe(e,roe),f=Be(We(t,"page-link"),n),d;i?d="Previous":r?d="Next":o?d="First":a&&(d="Last");var p=e["aria-label"]||d,v;i?v="‹":r?v="›":o?v="«":a&&(v="»");var g=e.children;return g&&Array.isArray(g)&&g.length===0&&(g=null),!u.href&&l==="a"&&(l="button"),(i||r||o||a)&&(g=[V.createElement("span",{"aria-hidden":"true",key:"caret"},g||v),V.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),V.createElement(l,$O({},u,{className:f,"aria-label":p}),g)}cl.propTypes=aoe;var soe=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function FO(){return FO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FO.apply(this,arguments)}function _N(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 qf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_N(Object(n),!0).forEach(function(r){loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uoe(e,t){if(e==null)return{};var n=coe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var foe={children:$.node,className:$.string,closeClassName:$.string,closeAriaLabel:$.string,color:$.string,cssModule:$.object,fade:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,tag:it,toggle:$.func,transition:$.shape(or.propTypes)};function f7(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,u=l===void 0?"success":l,f=e.isOpen,d=f===void 0?!0:f,p=e.toggle,v=e.children,g=e.transition,y=g===void 0?qf(qf({},or.defaultProps),{},{unmountOnExit:!0}):g,w=e.fade,b=w===void 0?!0:w,x=e.innerRef,_=uoe(e,soe),S=Be(We(t,"alert","alert-".concat(u),{"alert-dismissible":p}),o),j=Be(We("btn-close",n),o),E=qf(qf(qf({},or.defaultProps),y),{},{baseClass:b?y.baseClass:"",timeout:b?y.timeout:0});return V.createElement(or,FO({},_,E,{tag:s,className:S,in:d,role:"alert",innerRef:x}),p?V.createElement("button",{type:"button",className:j,"aria-label":i,onClick:p}):null,v)}f7.propTypes=foe;var doe=["className","cssModule","tag","active","disabled","action","color"];function UO(){return UO=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},UO.apply(this,arguments)}function hoe(e,t){if(e==null)return{};var n=poe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function poe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var moe={action:$.bool,active:$.bool,className:$.string,cssModule:$.object,color:$.string,disabled:$.bool,tag:it},voe=function(t){t.preventDefault()};function d7(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,u=hoe(e,doe),f=Be(We(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(u.onClick=voe),V.createElement(i,UO({},u,{className:f}))}d7.propTypes=moe;function BO(e){"@babel/helpers - typeof";return BO=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},BO(e)}function xN(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?xN(Object(n),!0).forEach(function(r){yoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(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 zO(){return zO=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},zO.apply(this,arguments)}function boe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _oe(e,t,n){return t&&wN(e.prototype,t),n&&wN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xoe(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&&VO(e,t)}function VO(e,t){return VO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},VO(e,t)}function woe(e){var t=Soe();return function(){var r=ly(e),i;if(t){var o=ly(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ooe(this,i)}}function Ooe(e,t){if(t&&(BO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h7(e)}function h7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Soe(){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 ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}var Eoe=["defaultOpen"],Dp=function(e){xoe(n,e);var t=woe(n);function n(r){var i;return boe(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(h7(i)),i}return _oe(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return V.createElement(Rp,zO({isOpen:this.state.isOpen,toggle:this.toggle},hs(this.props,Eoe)))}}]),n}(R.Component);Dp.propTypes=goe({defaultOpen:$.bool,onToggle:$.func},Rp.propTypes);function HO(e){"@babel/helpers - typeof";return HO=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},HO(e)}function ON(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 joe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){Toe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Toe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WO(){return WO=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},WO.apply(this,arguments)}function Coe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SN(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 Poe(e,t,n){return t&&SN(e.prototype,t),n&&SN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GO(e,t)}function GO(e,t){return GO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},GO(e,t)}function koe(e){var t=Loe();return function(){var r=uy(e),i;if(t){var o=uy(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Noe(this,i)}}function Noe(e,t){if(t&&(HO(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p7(e)}function p7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Loe(){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 uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uy(e)}var Roe=["defaultOpen"],Tr=function(e){Aoe(n,e);var t=koe(n);function n(r){var i;return Coe(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(p7(i)),i}return Poe(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return V.createElement(Ip,WO({isOpen:this.state.isOpen,toggle:this.toggle},hs(this.props,Roe)))}}]),n}(R.Component);Tr.propTypes=joe({defaultOpen:$.bool},Ip.propTypes);function m7(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=m7(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fi(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=m7(e))&&(r&&(r+=" "),r+=t);return r}const Moe=e=>({error:"border-danger",default:""})[e],Ioe=e=>({error:"text-danger",default:"text-muted"})[e],Jo=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=fi({"col-md-12":i,"col-md-10 offset-md-1":!i});return m.jsx(ir,{className:fi("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(Er,{className:Moe(r),body:!0,children:m.jsxs("h3",{className:fi("text-center mb-0",Ioe(r)),children:[n&&m.jsx(Te,{icon:U8,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},wt=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(Er,{...r,children:[e&&m.jsx(mc,{role:"heading","aria-level":4,children:e}),m.jsx(pc,{className:n,children:t})]}),ur=({children:e,type:t,className:n,small:r=!1})=>m.jsx(ir,{className:n,children:m.jsx("div",{className:fi({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(wt,{role:"document",className:fi("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:fi({"p-2":r}),children:e})})});let nv;const Doe=new Uint8Array(16);function $oe(){if(!nv&&(nv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nv(Doe)}const In=[];for(let e=0;e<256;++e)In.push((e+256).toString(16).slice(1));function Foe(e,t=0){return In[e[t+0]]+In[e[t+1]]+In[e[t+2]]+In[e[t+3]]+"-"+In[e[t+4]]+In[e[t+5]]+"-"+In[e[t+6]]+In[e[t+7]]+"-"+In[e[t+8]]+In[e[t+9]]+"-"+In[e[t+10]]+In[e[t+11]]+In[e[t+12]]+In[e[t+13]]+In[e[t+14]]+In[e[t+15]]}const Uoe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),EN={randomUUID:Uoe};function Boe(e,t,n){if(EN.randomUUID&&!t&&!e)return EN.randomUUID();e=e||{};const r=e.random||(e.rng||$oe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Foe(r)}var zoe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Voe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hoe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Woe=Error,Goe=EvalError,qoe=RangeError,Zoe=ReferenceError,v7=SyntaxError,$p=TypeError,Yoe=URIError,Koe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},jN=typeof Symbol<"u"&&Symbol,Xoe=Koe,Qoe=function(){return typeof jN!="function"||typeof Symbol!="function"||typeof jN("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Xoe()},TN={foo:{}},Joe=Object,eae=function(){return{__proto__:TN}.foo===TN.foo&&!({__proto__:null}instanceof Joe)},tae="Function.prototype.bind called on incompatible ",nae=Object.prototype.toString,rae=Math.max,iae="[object Function]",CN=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},oae=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},aae=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},sae=function(e){var t=this;if(typeof t!="function"||nae.apply(t)!==iae)throw new TypeError(tae+t);for(var n=oae(arguments,1),r,i=function(){if(this instanceof r){var u=t.apply(this,CN(n,arguments));return Object(u)===u?u:this}return t.apply(e,CN(n,arguments))},o=rae(0,t.length-n.length),a=[],s=0;s<o;s++)a[s]="$"+s;if(r=Function("binder","return function ("+aae(a,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var l=function(){};l.prototype=t.prototype,r.prototype=new l,l.prototype=null}return r},lae=sae,kT=Function.prototype.bind||lae,uae=Function.prototype.call,cae=Object.prototype.hasOwnProperty,fae=kT,dae=fae.call(uae,cae),at,hae=Woe,pae=Goe,mae=qoe,vae=Zoe,vc=v7,qu=$p,gae=Yoe,g7=Function,ux=function(e){try{return g7('"use strict"; return ('+e+").constructor;")()}catch{}},fl=Object.getOwnPropertyDescriptor;if(fl)try{fl({},"")}catch{fl=null}var cx=function(){throw new qu},yae=fl?function(){try{return arguments.callee,cx}catch{try{return fl(arguments,"callee").get}catch{return cx}}}():cx,ru=Qoe(),bae=eae(),Sn=Object.getPrototypeOf||(bae?function(e){return e.__proto__}:null),mu={},_ae=typeof Uint8Array>"u"||!Sn?at:Sn(Uint8Array),dl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?at:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?at:ArrayBuffer,"%ArrayIteratorPrototype%":ru&&Sn?Sn([][Symbol.iterator]()):at,"%AsyncFromSyncIteratorPrototype%":at,"%AsyncFunction%":mu,"%AsyncGenerator%":mu,"%AsyncGeneratorFunction%":mu,"%AsyncIteratorPrototype%":mu,"%Atomics%":typeof Atomics>"u"?at:Atomics,"%BigInt%":typeof BigInt>"u"?at:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?at:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?at:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?at:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":hae,"%eval%":eval,"%EvalError%":pae,"%Float32Array%":typeof Float32Array>"u"?at:Float32Array,"%Float64Array%":typeof Float64Array>"u"?at:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?at:FinalizationRegistry,"%Function%":g7,"%GeneratorFunction%":mu,"%Int8Array%":typeof Int8Array>"u"?at:Int8Array,"%Int16Array%":typeof Int16Array>"u"?at:Int16Array,"%Int32Array%":typeof Int32Array>"u"?at:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ru&&Sn?Sn(Sn([][Symbol.iterator]())):at,"%JSON%":typeof JSON=="object"?JSON:at,"%Map%":typeof Map>"u"?at:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ru||!Sn?at:Sn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?at:Promise,"%Proxy%":typeof Proxy>"u"?at:Proxy,"%RangeError%":mae,"%ReferenceError%":vae,"%Reflect%":typeof Reflect>"u"?at:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?at:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ru||!Sn?at:Sn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?at:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ru&&Sn?Sn(""[Symbol.iterator]()):at,"%Symbol%":ru?Symbol:at,"%SyntaxError%":vc,"%ThrowTypeError%":yae,"%TypedArray%":_ae,"%TypeError%":qu,"%Uint8Array%":typeof Uint8Array>"u"?at:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?at:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?at:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?at:Uint32Array,"%URIError%":gae,"%WeakMap%":typeof WeakMap>"u"?at:WeakMap,"%WeakRef%":typeof WeakRef>"u"?at:WeakRef,"%WeakSet%":typeof WeakSet>"u"?at:WeakSet};if(Sn)try{null.error}catch(e){var xae=Sn(Sn(e));dl["%Error.prototype%"]=xae}var wae=function e(t){var n;if(t==="%AsyncFunction%")n=ux("async function () {}");else if(t==="%GeneratorFunction%")n=ux("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ux("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Sn&&(n=Sn(i.prototype))}return dl[t]=n,n},PN={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fp=kT,cy=dae,Oae=Fp.call(Function.call,Array.prototype.concat),Sae=Fp.call(Function.apply,Array.prototype.splice),AN=Fp.call(Function.call,String.prototype.replace),fy=Fp.call(Function.call,String.prototype.slice),Eae=Fp.call(Function.call,RegExp.prototype.exec),jae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tae=/\\(\\)?/g,Cae=function(e){var t=fy(e,0,1),n=fy(e,-1);if(t==="%"&&n!=="%")throw new vc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new vc("invalid intrinsic syntax, expected opening `%`");var r=[];return AN(e,jae,function(i,o,a,s){r[r.length]=a?AN(s,Tae,"$1"):o||i}),r},Pae=function(e,t){var n=e,r;if(cy(PN,n)&&(r=PN[n],n="%"+r[0]+"%"),cy(dl,n)){var i=dl[n];if(i===mu&&(i=wae(n)),typeof i>"u"&&!t)throw new qu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new vc("intrinsic "+e+" does not exist!")},Xc=function(e,t){if(typeof e!="string"||e.length===0)throw new qu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new qu('"allowMissing" argument must be a boolean');if(Eae(/^%?[^%]*%?$/,e)===null)throw new vc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Cae(e),r=n.length>0?n[0]:"",i=Pae("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],Sae(n,Oae([0,1],l)));for(var u=1,f=!0;u<n.length;u+=1){var d=n[u],p=fy(d,0,1),v=fy(d,-1);if((p==='"'||p==="'"||p==="`"||v==='"'||v==="'"||v==="`")&&p!==v)throw new vc("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),r+="."+d,o="%"+r+"%",cy(dl,o))a=dl[o];else if(a!=null){if(!(d in a)){if(!t)throw new qu("base intrinsic for "+e+" exists, but the property is not available.");return}if(fl&&u+1>=n.length){var g=fl(a,d);f=!!g,f&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[d]}else f=cy(a,d),a=a[d];f&&!s&&(dl[o]=a)}}return a},y7={exports:{}},fx,kN;function NT(){if(kN)return fx;kN=1;var e=Xc,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return fx=t,fx}var Aae=Xc,Kv=Aae("%Object.getOwnPropertyDescriptor%",!0);if(Kv)try{Kv([],"length")}catch{Kv=null}var b7=Kv,NN=NT(),kae=v7,iu=$p,LN=b7,Nae=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new iu("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new iu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iu("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,s=!!LN&&LN(e,t);if(NN)NN(e,t,{configurable:o===null&&s?s.configurable:!o,enumerable:r===null&&s?s.enumerable:!r,value:n,writable:i===null&&s?s.writable:!i});else if(a||!r&&!i&&!o)e[t]=n;else throw new kae("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qO=NT(),_7=function(){return!!qO};_7.hasArrayLengthDefineBug=function(){if(!qO)return null;try{return qO([],"length",{value:1}).length!==1}catch{return!0}};var Lae=_7,Rae=Xc,RN=Nae,Mae=Lae(),MN=b7,IN=$p,Iae=Rae("%Math.floor%"),Dae=function(e,t){if(typeof e!="function")throw new IN("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Iae(t)!==t)throw new IN("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,i=!0;if("length"in e&&MN){var o=MN(e,"length");o&&!o.configurable&&(r=!1),o&&!o.writable&&(i=!1)}return(r||i||!n)&&(Mae?RN(e,"length",t,!0,!0):RN(e,"length",t)),e};(function(e){var t=kT,n=Xc,r=Dae,i=$p,o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,o),l=NT(),u=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new i("a function is required");var p=s(t,a,arguments);return r(p,1+u(0,d.length-(arguments.length-1)),!0)};var f=function(){return s(t,o,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f})(y7);var $ae=y7.exports,x7=Xc,w7=$ae,Fae=w7(x7("String.prototype.indexOf")),Uae=function(e,t){var n=x7(e,!!t);return typeof n=="function"&&Fae(e,".prototype.")>-1?w7(n):n};const Bae={},zae=Object.freeze(Object.defineProperty({__proto__:null,default:Bae},Symbol.toStringTag,{value:"Module"})),Vae=Hoe(zae);var LT=typeof Map=="function"&&Map.prototype,dx=Object.getOwnPropertyDescriptor&<?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,dy=LT&&dx&&typeof dx.get=="function"?dx.get:null,DN=LT&&Map.prototype.forEach,RT=typeof Set=="function"&&Set.prototype,hx=Object.getOwnPropertyDescriptor&&RT?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hy=RT&&hx&&typeof hx.get=="function"?hx.get:null,$N=RT&&Set.prototype.forEach,Hae=typeof WeakMap=="function"&&WeakMap.prototype,Dd=Hae?WeakMap.prototype.has:null,Wae=typeof WeakSet=="function"&&WeakSet.prototype,$d=Wae?WeakSet.prototype.has:null,Gae=typeof WeakRef=="function"&&WeakRef.prototype,FN=Gae?WeakRef.prototype.deref:null,qae=Boolean.prototype.valueOf,Zae=Object.prototype.toString,Yae=Function.prototype.toString,Kae=String.prototype.match,MT=String.prototype.slice,Ma=String.prototype.replace,Xae=String.prototype.toUpperCase,UN=String.prototype.toLowerCase,O7=RegExp.prototype.test,BN=Array.prototype.concat,oo=Array.prototype.join,Qae=Array.prototype.slice,zN=Math.floor,ZO=typeof BigInt=="function"?BigInt.prototype.valueOf:null,px=Object.getOwnPropertySymbols,YO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,gc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Kn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===gc||!0)?Symbol.toStringTag:null,S7=Object.prototype.propertyIsEnumerable,VN=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function HN(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||O7.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-zN(-e):zN(e);if(r!==e){var i=String(r),o=MT.call(t,i.length+1);return Ma.call(i,n,"$&_")+"."+Ma.call(Ma.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ma.call(t,n,"$&_")}var KO=Vae,WN=KO.custom,GN=j7(WN)?WN:null,Jae=function e(t,n,r,i){var o=n||{};if(ja(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ja(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ja(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ja(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ja(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return C7(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?HN(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return s?HN(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return XO(t)?"[Array]":"[Object]";var d=gse(o,r);if(typeof i>"u")i=[];else if(T7(i,t)>=0)return"[Circular]";function p(q,W,X){if(W&&(i=Qae.call(i),i.push(W)),X){var J={depth:o.depth};return ja(o,"quoteStyle")&&(J.quoteStyle=o.quoteStyle),e(q,J,r+1,i)}return e(q,o,r+1,i)}if(typeof t=="function"&&!qN(t)){var v=lse(t),g=rv(t,p);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+oo.call(g,", ")+" }":"")}if(j7(t)){var y=gc?Ma.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):YO.call(t);return typeof t=="object"&&!gc?Zf(y):y}if(pse(t)){for(var w="<"+UN.call(String(t.nodeName)),b=t.attributes||[],x=0;x<b.length;x++)w+=" "+b[x].name+"="+E7(ese(b[x].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+UN.call(String(t.nodeName))+">",w}if(XO(t)){if(t.length===0)return"[]";var _=rv(t,p);return d&&!vse(_)?"["+QO(_,d)+"]":"[ "+oo.call(_,", ")+" ]"}if(nse(t)){var S=rv(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!S7.call(t,"cause")?"{ ["+String(t)+"] "+oo.call(BN.call("[cause]: "+p(t.cause),S),", ")+" }":S.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+oo.call(S,", ")+" }"}if(typeof t=="object"&&a){if(GN&&typeof t[GN]=="function"&&KO)return KO(t,{depth:f-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(use(t)){var j=[];return DN&&DN.call(t,function(q,W){j.push(p(W,t,!0)+" => "+p(q,t))}),ZN("Map",dy.call(t),j,d)}if(dse(t)){var E=[];return $N&&$N.call(t,function(q){E.push(p(q,t))}),ZN("Set",hy.call(t),E,d)}if(cse(t))return mx("WeakMap");if(hse(t))return mx("WeakSet");if(fse(t))return mx("WeakRef");if(ise(t))return Zf(p(Number(t)));if(ase(t))return Zf(p(ZO.call(t)));if(ose(t))return Zf(qae.call(t));if(rse(t))return Zf(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===zoe)return"{ [object globalThis] }";if(!tse(t)&&!qN(t)){var P=rv(t,p),N=VN?VN(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",M=!N&&Kn&&Object(t)===t&&Kn in t?MT.call(vs(t),8,-1):I?"Object":"",D=N||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",z=D+(M||I?"["+oo.call(BN.call([],M||[],I||[]),": ")+"] ":"");return P.length===0?z+"{}":d?z+"{"+QO(P,d)+"}":z+"{ "+oo.call(P,", ")+" }"}return String(t)};function E7(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function ese(e){return Ma.call(String(e),/"/g,""")}function XO(e){return vs(e)==="[object Array]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function tse(e){return vs(e)==="[object Date]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function qN(e){return vs(e)==="[object RegExp]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function nse(e){return vs(e)==="[object Error]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function rse(e){return vs(e)==="[object String]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function ise(e){return vs(e)==="[object Number]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function ose(e){return vs(e)==="[object Boolean]"&&(!Kn||!(typeof e=="object"&&Kn in e))}function j7(e){if(gc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!YO)return!1;try{return YO.call(e),!0}catch{}return!1}function ase(e){if(!e||typeof e!="object"||!ZO)return!1;try{return ZO.call(e),!0}catch{}return!1}var sse=Object.prototype.hasOwnProperty||function(e){return e in this};function ja(e,t){return sse.call(e,t)}function vs(e){return Zae.call(e)}function lse(e){if(e.name)return e.name;var t=Kae.call(Yae.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function T7(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function use(e){if(!dy||!e||typeof e!="object")return!1;try{dy.call(e);try{hy.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function cse(e){if(!Dd||!e||typeof e!="object")return!1;try{Dd.call(e,Dd);try{$d.call(e,$d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function fse(e){if(!FN||!e||typeof e!="object")return!1;try{return FN.call(e),!0}catch{}return!1}function dse(e){if(!hy||!e||typeof e!="object")return!1;try{hy.call(e);try{dy.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function hse(e){if(!$d||!e||typeof e!="object")return!1;try{$d.call(e,$d);try{Dd.call(e,Dd)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function pse(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function C7(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return C7(MT.call(e,0,t.maxStringLength),t)+r}var i=Ma.call(Ma.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mse);return E7(i,"single",t)}function mse(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Xae.call(t.toString(16))}function Zf(e){return"Object("+e+")"}function mx(e){return e+" { ? }"}function ZN(e,t,n,r){var i=r?QO(n,r):oo.call(n,", ");return e+" ("+t+") {"+i+"}"}function vse(e){for(var t=0;t<e.length;t++)if(T7(e[t],`
|
||
`)>=0)return!1;return!0}function gse(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=oo.call(Array(e.indent+1)," ");else return null;return{base:n,prev:oo.call(Array(t+1),n)}}function QO(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+oo.call(e,","+n)+`
|
||
`+t.prev}function rv(e,t){var n=XO(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ja(e,i)?t(e[i],e):""}var o=typeof px=="function"?px(e):[],a;if(gc){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ja(e,l)&&(n&&String(Number(l))===l&&l<e.length||gc&&a["$"+l]instanceof Symbol||(O7.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof px=="function")for(var u=0;u<o.length;u++)S7.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var P7=Xc,Qc=Uae,yse=Jae,bse=$p,iv=P7("%WeakMap%",!0),ov=P7("%Map%",!0),_se=Qc("WeakMap.prototype.get",!0),xse=Qc("WeakMap.prototype.set",!0),wse=Qc("WeakMap.prototype.has",!0),Ose=Qc("Map.prototype.get",!0),Sse=Qc("Map.prototype.set",!0),Ese=Qc("Map.prototype.has",!0),IT=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},jse=function(e,t){var n=IT(e,t);return n&&n.value},Tse=function(e,t,n){var r=IT(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},Cse=function(e,t){return!!IT(e,t)},Pse=function(){var e,t,n,r={assert:function(i){if(!r.has(i))throw new bse("Side channel does not contain "+yse(i))},get:function(i){if(iv&&i&&(typeof i=="object"||typeof i=="function")){if(e)return _se(e,i)}else if(ov){if(t)return Ose(t,i)}else if(n)return jse(n,i)},has:function(i){if(iv&&i&&(typeof i=="object"||typeof i=="function")){if(e)return wse(e,i)}else if(ov){if(t)return Ese(t,i)}else if(n)return Cse(n,i);return!1},set:function(i,o){iv&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new iv),xse(e,i,o)):ov?(t||(t=new ov),Sse(t,i,o)):(n||(n={key:{},next:null}),Tse(n,i,o))}};return r},Ase=String.prototype.replace,kse=/%20/g,vx={RFC1738:"RFC1738",RFC3986:"RFC3986"},DT={default:vx.RFC3986,formatters:{RFC1738:function(e){return Ase.call(e,kse,"+")},RFC3986:function(e){return String(e)}},RFC1738:vx.RFC1738,RFC3986:vx.RFC3986},Nse=DT,gx=Object.prototype.hasOwnProperty,Gs=Array.isArray,to=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Lse=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Gs(n)){for(var r=[],i=0;i<n.length;++i)typeof n[i]<"u"&&r.push(n[i]);t.obj[t.prop]=r}}},A7=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(n[r]=e[r]);return n},Rse=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Gs(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!gx.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Gs(t)&&!Gs(n)&&(i=A7(t,r)),Gs(t)&&Gs(n)?(n.forEach(function(o,a){if(gx.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,r):t.push(o)}else t[a]=o}),t):Object.keys(n).reduce(function(o,a){var s=n[a];return gx.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},Mse=function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},e)},Ise=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Dse=function(e,t,n,r,i){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Nse.RFC1738&&(l===40||l===41)){a+=o.charAt(s);continue}if(l<128){a=a+to[l];continue}if(l<2048){a=a+(to[192|l>>6]+to[128|l&63]);continue}if(l<55296||l>=57344){a=a+(to[224|l>>12]+to[128|l>>6&63]+to[128|l&63]);continue}s+=1,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a+=to[240|l>>18]+to[128|l>>12&63]+to[128|l>>6&63]+to[128|l&63]}return a},$se=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(t.push({obj:o,prop:l}),n.push(u))}return Lse(t),e},Fse=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Use=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Bse=function(e,t){return[].concat(e,t)},zse=function(e,t){if(Gs(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},k7={arrayToObject:A7,assign:Mse,combine:Bse,compact:$se,decode:Ise,encode:Dse,isBuffer:Use,isRegExp:Fse,maybeMap:zse,merge:Rse},N7=Pse,Xv=k7,Fd=DT,Vse=Object.prototype.hasOwnProperty,L7={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},io=Array.isArray,Hse=Array.prototype.push,R7=function(e,t){Hse.apply(e,io(t)?t:[t])},Wse=Date.prototype.toISOString,YN=Fd.default,fn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Xv.encode,encodeValuesOnly:!1,format:YN,formatter:Fd.formatters[YN],indices:!1,serializeDate:function(e){return Wse.call(e)},skipNulls:!1,strictNullHandling:!1},Gse=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},yx={},qse=function e(t,n,r,i,o,a,s,l,u,f,d,p,v,g,y,w,b,x){for(var _=t,S=x,j=0,E=!1;(S=S.get(yx))!==void 0&&!E;){var P=S.get(t);if(j+=1,typeof P<"u"){if(P===j)throw new RangeError("Cyclic object value");E=!0}typeof S.get(yx)>"u"&&(j=0)}if(typeof f=="function"?_=f(n,_):_ instanceof Date?_=v(_):r==="comma"&&io(_)&&(_=Xv.maybeMap(_,function(F){return F instanceof Date?v(F):F})),_===null){if(a)return u&&!w?u(n,fn.encoder,b,"key",g):n;_=""}if(Gse(_)||Xv.isBuffer(_)){if(u){var N=w?n:u(n,fn.encoder,b,"key",g);return[y(N)+"="+y(u(_,fn.encoder,b,"value",g))]}return[y(n)+"="+y(String(_))]}var I=[];if(typeof _>"u")return I;var M;if(r==="comma"&&io(_))w&&u&&(_=Xv.maybeMap(_,u)),M=[{value:_.length>0?_.join(",")||null:void 0}];else if(io(f))M=f;else{var D=Object.keys(_);M=d?D.sort(d):D}var z=l?n.replace(/\./g,"%2E"):n,q=i&&io(_)&&_.length===1?z+"[]":z;if(o&&io(_)&&_.length===0)return q+"[]";for(var W=0;W<M.length;++W){var X=M[W],J=typeof X=="object"&&typeof X.value<"u"?X.value:_[X];if(!(s&&J===null)){var te=p&&l?X.replace(/\./g,"%2E"):X,K=io(_)?typeof r=="function"?r(q,te):q:q+(p?"."+te:"["+te+"]");x.set(t,j);var B=N7();B.set(yx,x),R7(I,e(J,K,r,i,o,a,s,l,r==="comma"&&w&&io(_)?null:u,f,d,p,v,g,y,w,b,B))}}return I},Zse=function(e){if(!e)return fn;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||fn.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Fd.default;if(typeof e.format<"u"){if(!Vse.call(Fd.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Fd.formatters[n],i=fn.filter;(typeof e.filter=="function"||io(e.filter))&&(i=e.filter);var o;if(e.arrayFormat in L7?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=fn.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:fn.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:fn.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:fn.allowEmptyArrays,arrayFormat:o,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:fn.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?fn.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:fn.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:fn.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:fn.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:fn.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:fn.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:fn.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:fn.strictNullHandling}},Yse=function(e,t){var n=e,r=Zse(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):io(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s=L7[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var u=N7(),f=0;f<i.length;++f){var d=i[f];r.skipNulls&&n[d]===null||R7(a,qse(n[d],d,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var p=a.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),p.length>0?v+p:""},yc=k7,JO=Object.prototype.hasOwnProperty,Kse=Array.isArray,en={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:yc.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Xse=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},M7=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Qse="utf8=%26%2310003%3B",Jse="utf8=%E2%9C%93",ele=function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,s,l=t.charset;if(t.charsetSentinel)for(s=0;s<o.length;++s)o[s].indexOf("utf8=")===0&&(o[s]===Jse?l="utf-8":o[s]===Qse&&(l="iso-8859-1"),a=s,s=o.length);for(s=0;s<o.length;++s)if(s!==a){var u=o[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,p,v;d===-1?(p=t.decoder(u,en.decoder,l,"key"),v=t.strictNullHandling?null:""):(p=t.decoder(u.slice(0,d),en.decoder,l,"key"),v=yc.maybeMap(M7(u.slice(d+1),t),function(y){return t.decoder(y,en.decoder,l,"value")})),v&&t.interpretNumericEntities&&l==="iso-8859-1"&&(v=Xse(v)),u.indexOf("[]=")>-1&&(v=Kse(v)?[v]:v);var g=JO.call(n,p);g&&t.duplicates==="combine"?n[p]=yc.combine(n[p],v):(!g||t.duplicates==="last")&&(n[p]=v)}return n},tle=function(e,t,n,r){for(var i=r?t:M7(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&i===""?[]:[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,f=parseInt(u,10);!n.parseArrays&&u===""?a={0:i}:!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[],a[f]=i):u!=="__proto__"&&(a[u]=i)}i=a}return i},nle=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!n.plainObjects&&JO.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(s=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&JO.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),tle(u,t,n,r)}},rle=function(e){if(!e)return en;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?en.charset:e.charset,n=typeof e.duplicates>"u"?en.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:en.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:en.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:en.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:en.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:en.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:en.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:en.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:en.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:en.decoder,delimiter:typeof e.delimiter=="string"||yc.isRegExp(e.delimiter)?e.delimiter:en.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:en.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:en.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:en.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:en.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:en.strictNullHandling}},ile=function(e,t){var n=rle(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?ele(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=nle(s,r[s],n,typeof e=="string");i=yc.merge(i,l,n)}return n.allowSparse===!0?i:yc.compact(i)},ole=Yse,ale=ile,sle=DT,lle={formats:sle,parse:ale,stringify:ole};const I7=Voe(lle),$T=e=>I7.parse(e,{ignoreQueryPrefix:!0}),ob=e=>I7.stringify(e,{arrayFormat:"brackets"}),Kt=(e=!1)=>{const[t,n]=R.useState(e),r=R.useCallback(()=>n(a=>!a),[]),i=R.useCallback(()=>n(!0),[]),o=R.useCallback(()=>n(!1),[]);return[t,r,i,o]},D7=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=R.useState(e),a=R.useRef(e),s=R.useRef(),l=R.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},ab=()=>{const{current:e}=R.useRef(`dom-${Boe()}`);return e},la=()=>R.useRef(null),Up=()=>{const{search:e}=Xn();return R.useMemo(()=>$T(e),[e])},$7=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=ab(),s=f=>t==null?void 0:t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return m.jsxs("span",{className:fi("form-check",l,n),style:u,children:[m.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),m.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},F7=e=>m.jsx($7,{type:"checkbox",...e}),Sl=e=>m.jsx($7,{type:"switch",...e}),Jc=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>m.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[m.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Qv=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=ab();return m.jsx(Jc,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:m.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},ule=500;let Jv;const KN=()=>{Jv&&clearTimeout(Jv),Jv=null},Bp=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=R.useState(i),l=(u,f=ule)=>{s(u),KN(),Jv=o(()=>{e(u),KN()},f)};return m.jsxs("div",{className:fi("search-field",t),children:[m.jsx("input",{type:"text",className:fi("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:u=>l(u.target.value)}),m.jsx(Te,{icon:zK,className:"search-field__icon"}),m.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},ua=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:u,...f})=>{const[d,p]=Kt(),v=fi("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:s&&`${s}px`};return m.jsxs(Rp,{isOpen:d,toggle:p,disabled:t,className:i,children:[m.jsx(Kc,{size:u,caret:!o,className:v,color:"primary",...f,children:e}),m.jsx(Yc,{className:"w-100",end:a,style:g,children:r})]})},sb=({children:e,minWidth:t,label:n="Options"})=>m.jsx(ua,{text:m.jsx(Te,{className:"px-1",icon:NK}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Ud=({children:e,...t})=>m.jsx(vT,{children:m.jsx(R$,{className:"nav-pills__nav-link",tag:E8,...t,children:e})}),U7=({children:e,fill:t=!1,className:n=""})=>m.jsx(Er,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(mT,{pills:!0,fill:t,children:R.Children.map(e,r=>{if(!R.isValidElement(r)||r.type!==Ud)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),lb=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",B7=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),cle=e=>e.dir?`${e.field}-${e.dir}`:void 0,fle=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function zp({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=lb(s,t.field,t.dir);n(l?s:void 0,l)};return m.jsxs(Dp,{children:[m.jsxs(Kc,{caret:!0,color:r?"primary":"link",className:fi({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&m.jsx(m.Fragment,{children:"Order by"}),r&&!t.field&&m.jsx("i",{children:"Order by..."}),r&&t.field&&m.jsxs(m.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",m.jsx("small",{children:t.dir??"DESC"})]})]}),m.jsxs(Yc,{end:i,className:fi("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>m.jsxs(ke,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&m.jsx(Te,{icon:t.dir==="ASC"?IK:xK,className:"ordering-dropdown__sort-icon"})]},s)),m.jsx(ke,{divider:!0}),m.jsx(ke,{disabled:!t.field,onClick:()=>n(),children:m.jsx("i",{children:"Clear selection"})})]})]})}const Ph="#4696e5",dle="rgba(70, 150, 229, 0.4)",eS="#f77f28",hle="rgba(247, 127, 40, 0.4)",ple="white",mle="#161b22",vle=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},FT=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},UT=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light";function z7(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=z7(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ef(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=z7(e))&&(r&&(r+=" "),r+=t);return r}const gle=R.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=Kt(),a=R.useCallback(()=>{o(),n()},[n,o]);return m.jsxs(f7,{className:"app-update-banner",isOpen:e,toggle:t,tag:wt,color:"secondary",innerRef:r,children:[m.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),m.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",m.jsxs(Ze,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(Te,{icon:ZK,className:"ms-1"})]}),i&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})}),V7=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(wt,{className:"p-4",children:[m.jsx("h2",{children:"Oops! We could not find requested route."}),m.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),m.jsx("br",{}),m.jsx(Et,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function _i(e){return R.useRef(e).current}function xi(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const yle=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"})})},H7=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var w;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:u,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=_i(H7),v=Xn(),g=R.useRef(t),y=v.pathname==="/";return R.useEffect(()=>{Object.keys(g.current).length===0&&e()},[e]),R.useEffect(()=>{var b;vle(((b=n.ui)==null?void 0:b.theme)??UT())},[(w=n.ui)==null?void 0:w.theme]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(o,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:ef("shlink-wrapper",{"d-flex d-md-block align-items-center":y}),children:m.jsxs(Z0,{children:[m.jsx(st,{index:!0,element:m.jsx(a,{})}),m.jsx(st,{path:"/settings/*",element:m.jsx(f,{})}),m.jsx(st,{path:"/manage-servers",element:m.jsx(d,{})}),m.jsx(st,{path:"/server/create",element:m.jsx(l,{})}),m.jsx(st,{path:"/server/:serverId/edit",element:m.jsx(u,{})}),m.jsx(st,{path:"/server/:serverId/*",element:m.jsx(s,{})}),m.jsx(st,{path:"*",element:m.jsx(V7,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(p,{})})]}),m.jsx(gle,{isOpen:r,toggle:i,forceUpdate:yle})]})},ble=xi(H7,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function $n(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 _le=typeof Symbol=="function"&&Symbol.observable||"@@observable",XN=_le,bx=()=>Math.random().toString(36).substring(7).split("").join("."),xle={INIT:`@@redux/INIT${bx()}`,REPLACE:`@@redux/REPLACE${bx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bx()}`},py=xle;function BT(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 W7(e,t,n){if(typeof e!="function")throw new Error($n(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error($n(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error($n(1));return n(W7)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((w,b)=>{a.set(b,w)}))}function f(){if(l)throw new Error($n(3));return i}function d(w){if(typeof w!="function")throw new Error($n(4));if(l)throw new Error($n(5));let b=!0;u();const x=s++;return a.set(x,w),function(){if(b){if(l)throw new Error($n(6));b=!1,u(),a.delete(x),o=null}}}function p(w){if(!BT(w))throw new Error($n(7));if(typeof w.type>"u")throw new Error($n(8));if(typeof w.type!="string")throw new Error($n(17));if(l)throw new Error($n(9));try{l=!0,i=r(i,w)}finally{l=!1}return(o=a).forEach(x=>{x()}),w}function v(w){if(typeof w!="function")throw new Error($n(10));r=w,p({type:py.REPLACE})}function g(){const w=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error($n(11));function x(){const S=b;S.next&&S.next(f())}return x(),{unsubscribe:w(x)}},[XN](){return this}}}return p({type:py.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:v,[XN]:g}}function wle(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:py.INIT})>"u")throw new Error($n(12));if(typeof n(void 0,{type:py.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($n(13))})}function zT(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;try{wle(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const u={};for(let f=0;f<r.length;f++){const d=r[f],p=n[d],v=a[d],g=p(v,s);if(typeof g>"u")throw s&&s.type,new Error($n(14));u[d]=g,l=l||g!==v}return l=l||r.length!==Object.keys(a).length,l?u:a}}function my(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ole(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error($n(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=my(...s)(i.dispatch),{...i,dispatch:o}}}function Sle(e){return BT(e)&&"type"in e&&typeof e.type=="string"}var G7=Symbol.for("immer-nothing"),QN=Symbol.for("immer-draftable"),Br=Symbol.for("immer-state");function Ri(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var bc=Object.getPrototypeOf;function is(e){return!!e&&!!e[Br]}function ea(e){var t;return e?q7(e)||Array.isArray(e)||!!e[QN]||!!((t=e.constructor)!=null&&t[QN])||cb(e)||fb(e):!1}var Ele=Object.prototype.constructor.toString();function q7(e){if(!e||typeof e!="object")return!1;const t=bc(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)===Ele}function Ah(e,t){ub(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ub(e){const t=e[Br];return t?t.type_:Array.isArray(e)?1:cb(e)?2:fb(e)?3:0}function tS(e,t){return ub(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Z7(e,t,n){const r=ub(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function jle(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cb(e){return e instanceof Map}function fb(e){return e instanceof Set}function Us(e){return e.copy_||e.base_}function nS(e,t){if(cb(e))return new Map(e);if(fb(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&q7(e))return bc(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Br];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(bc(e),n)}function VT(e,t=!1){return db(e)||is(e)||!ea(e)||(ub(e)>1&&(e.set=e.add=e.clear=e.delete=Tle),Object.freeze(e),t&&Ah(e,(n,r)=>VT(r,!0))),e}function Tle(){Ri(2)}function db(e){return Object.isFrozen(e)}var Cle={};function El(e){const t=Cle[e];return t||Ri(0,e),t}var kh;function Y7(){return kh}function Ple(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function JN(e,t){t&&(El("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rS(e){iS(e),e.drafts_.forEach(Ale),e.drafts_=null}function iS(e){e===kh&&(kh=e.parent_)}function eL(e){return kh=Ple(kh,e)}function Ale(e){const t=e[Br];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tL(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Br].modified_&&(rS(t),Ri(4)),ea(e)&&(e=vy(t,e),t.parent_||gy(t,e)),t.patches_&&El("Patches").generateReplacementPatches_(n[Br].base_,e,t.patches_,t.inversePatches_)):e=vy(t,n,[]),rS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==G7?e:void 0}function vy(e,t,n){if(db(t))return t;const r=t[Br];if(!r)return Ah(t,(i,o)=>nL(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return gy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Ah(o,(s,l)=>nL(e,r,i,s,l,n,a)),gy(e,i,!1),n&&e.patches_&&El("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function nL(e,t,n,r,i,o,a){if(is(i)){const s=o&&t&&t.type_!==3&&!tS(t.assigned_,r)?o.concat(r):void 0,l=vy(e,i,s);if(Z7(n,r,l),is(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(ea(i)&&!db(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;vy(e,i),(!t||!t.scope_.parent_)&&gy(e,i)}}function gy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&VT(t,n)}function kle(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Y7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=HT;n&&(i=[r],o=Nh);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var HT={get(e,t){if(t===Br)return e;const n=Us(e);if(!tS(n,t))return Nle(e,n,t);const r=n[t];return e.finalized_||!ea(r)?r:r===_x(e.base_,t)?(xx(e),e.copy_[t]=aS(r,e)):r},has(e,t){return t in Us(e)},ownKeys(e){return Reflect.ownKeys(Us(e))},set(e,t,n){const r=K7(Us(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=_x(Us(e),t),o=i==null?void 0:i[Br];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(jle(n,i)&&(n!==void 0||tS(e.base_,t)))return!0;xx(e),oS(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 _x(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xx(e),oS(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Us(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ri(11)},getPrototypeOf(e){return bc(e.base_)},setPrototypeOf(){Ri(12)}},Nh={};Ah(HT,(e,t)=>{Nh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Nh.deleteProperty=function(e,t){return Nh.set.call(this,e,t,void 0)};Nh.set=function(e,t,n){return HT.set.call(this,e[0],t,n,e[0])};function _x(e,t){const n=e[Br];return(n?Us(n):e)[t]}function Nle(e,t,n){var i;const r=K7(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function K7(e,t){if(!(t in e))return;let n=bc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=bc(n)}}function oS(e){e.modified_||(e.modified_=!0,e.parent_&&oS(e.parent_))}function xx(e){e.copy_||(e.copy_=nS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Lle=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&Ri(6),r!==void 0&&typeof r!="function"&&Ri(7);let i;if(ea(t)){const o=eL(this),a=aS(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?rS(o):iS(o)}return JN(o,r),tL(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===G7&&(i=void 0),this.autoFreeze_&&VT(i,!0),r){const o=[],a=[];El("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Ri(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),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){ea(e)||Ri(8),is(e)&&(e=X7(e));const t=eL(this),n=aS(e,void 0);return n[Br].isManual_=!0,iS(t),n}finishDraft(e,t){const n=e&&e[Br];(!n||!n.isManual_)&&Ri(9);const{scope_:r}=n;return JN(r,t),tL(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=El("Patches").applyPatches_;return is(e)?r(e,t):this.produce(e,i=>r(i,t))}};function aS(e,t){const n=cb(e)?El("MapSet").proxyMap_(e,t):fb(e)?El("MapSet").proxySet_(e,t):kle(e,t);return(t?t.scope_:Y7()).drafts_.push(n),n}function X7(e){return is(e)||Ri(10,e),Q7(e)}function Q7(e){if(!ea(e)||db(e))return e;const t=e[Br];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=nS(e,t.scope_.immer_.useStrictShallowCopy_)}else n=nS(e,!0);return Ah(n,(r,i)=>{Z7(n,r,Q7(i))}),t&&(t.finalized_=!1),n}var zr=new Lle,J7=zr.produce;zr.produceWithPatches.bind(zr);zr.setAutoFreeze.bind(zr);zr.setUseStrictShallowCopy.bind(zr);zr.applyPatches.bind(zr);zr.createDraft.bind(zr);zr.finishDraft.bind(zr);function Rle(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Mle(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var rL=e=>Array.isArray(e)?e:[e];function Ile(e){const t=Array.isArray(e[0])?e[0]:e;return Mle(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Dle(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var $le=class{constructor(e){this.value=e}deref(){return this.value}},Fle=typeof WeakRef<"u"?WeakRef:$le,Ule=0,iL=1;function av(){return{s:Ule,v:void 0,o:null,p:null}}function eF(e,t={}){let n=av();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let s=n;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const y=g.get(v);y===void 0?(s=av(),g.set(v,s)):s=y}else{let g=s.p;g===null&&(s.p=g=new Map);const y=g.get(v);y===void 0?(s=av(),g.set(v,s)):s=y}}const u=s;let f;if(s.s===iL?f=s.v:(f=e.apply(null,arguments),o++),u.s=iL,r){const d=(i==null?void 0:i.deref())??i;d!=null&&r(d,f)&&(f=d,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new Fle(f):f}return u.v=f,f}return a.clearCache=()=>{n=av(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Ble(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e;return(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),Rle(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=eF,argsMemoizeOptions:g=[],devModeChecks:y={}}=f,w=rL(p),b=rL(g),x=Ile(i),_=d(function(){return o++,u.apply(null,arguments)},...w),S=v(function(){a++;const E=Dle(x,arguments);return s=_.apply(null,E),s},...b);return Object.assign(S,{resultFunc:u,memoizedResultFunc:_,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:v})}}function tF(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var zle=tF(),Vle=tF,Hle=(...e)=>{const t=Ble(...e),n=Object.assign((...r)=>{const i=t(...r),o=(a,...s)=>i(is(a)?X7(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>n});return n};Hle(eF);var Wle=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?my:my.apply(null,arguments)},Gle=e=>e&&typeof e.match=="function";function mn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Sr(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=>Sle(r)&&r.type===e,n}var nF=class vd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vd.prototype)}static get[Symbol.species](){return vd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vd(...t[0].concat(this)):new vd(...t.concat(this))}};function oL(e){return ea(e)?J7(e,()=>{}):e}function aL(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Sr(10));const r=n.insert(t,e);return e.set(t,r),r}function qle(e){return typeof e=="boolean"}var Zle=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new nF;return n&&(qle(n)?a.push(zle):a.push(Vle(n.extraArgument))),a},Yle="RTK_autoBatch",rF=e=>t=>{setTimeout(t,e)},Kle=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rF(10),Xle=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Kle:e.type==="callback"?e.queueNotification:rF(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const d=()=>i&&f(),p=r.subscribe(d);return s.add(f),()=>{p(),s.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[Yle]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},Qle=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new nF(e);return r&&i.push(Xle(typeof r=="object"?r:void 0)),i},Jle=!0;function iF(e){const t=Zle(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(BT(n))s=zT(n);else throw new Error(Sr(1));let l;typeof r=="function"?l=r(t):l=t();let u=my;i&&(u=Wle({trace:!Jle,...typeof i=="object"&&i}));const f=Ole(...l),d=Qle(f);let p=typeof a=="function"?a(d):d();const v=u(...p);return W7(s,o,v)}function oF(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Sr(28));if(s in t)throw new Error(Sr(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function eue(e){return typeof e=="function"}function tue(e,t){let[n,r,i]=oF(t),o;if(eue(e))o=()=>oL(e());else{const s=oL(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[i]),u.reduce((f,d)=>{if(d)if(is(f)){const v=d(f,l);return v===void 0?f:v}else{if(ea(f))return J7(f,p=>d(p,l));{const p=d(f,l);if(p===void 0){if(f===null)return f;throw new Error(Sr(9))}return p}}return f},s)}return a.getInitialState=o,a}var nue="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",aF=(e=21)=>{let t="",n=e;for(;n--;)t+=nue[Math.random()*64|0];return t},rue=(e,t)=>Gle(e)?e.match(t):e(t);function iue(...e){return t=>e.some(n=>rue(n,t))}var oue=["name","message","stack","code"],wx=class{constructor(e,t){Xl(this,"_type");this.payload=e,this.meta=t}},sL=class{constructor(e,t){Xl(this,"_type");this.payload=e,this.meta=t}},aue=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of oue)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},sF=(()=>{function e(t,n,r){const i=mn(t+"/fulfilled",(l,u,f,d)=>({payload:l,meta:{...d||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),o=mn(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=mn(t+"/rejected",(l,u,f,d,p)=>({payload:d,error:(r&&r.serializeError||aue)(l||"Rejected"),meta:{...p||{},arg:f,requestId:u,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,f,d)=>{const p=r!=null&&r.idGenerator?r.idGenerator(l):aF(),v=new AbortController;let g,y;function w(x){y=x,v.abort()}const b=async function(){var S,j;let x;try{let E=(S=r==null?void 0:r.condition)==null?void 0:S.call(r,l,{getState:f,extra:d});if(lue(E)&&(E=await E),E===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((N,I)=>{g=()=>{I({name:"AbortError",message:y||"Aborted"})},v.signal.addEventListener("abort",g)});u(o(p,l,(j=r==null?void 0:r.getPendingMeta)==null?void 0:j.call(r,{requestId:p,arg:l},{getState:f,extra:d}))),x=await Promise.race([P,Promise.resolve(n(l,{dispatch:u,getState:f,extra:d,requestId:p,signal:v.signal,abort:w,rejectWithValue:(N,I)=>new wx(N,I),fulfillWithValue:(N,I)=>new sL(N,I)})).then(N=>{if(N instanceof wx)throw N;return N instanceof sL?i(N.payload,p,l,N.meta):i(N,p,l)})])}catch(E){x=E instanceof wx?a(null,p,l,E.payload,E.meta):a(E,p,l)}finally{g&&v.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&a.match(x)&&x.meta.condition||u(x),x}();return Object.assign(b,{abort:w,requestId:p,arg:l,unwrap(){return b.then(sue)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:iue(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function sue(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 uue=Symbol.for("rtk-slice-createasyncthunk");function cue(e,t){return`${e}/${t}`}function fue({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[uue];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Sr(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(hue()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(_,S){const j=typeof _=="string"?_:_.type;if(!j)throw new Error(Sr(12));if(j in u.sliceCaseReducersByType)throw new Error(Sr(13));return u.sliceCaseReducersByType[j]=S,f},addMatcher(_,S){return u.sliceMatchers.push({matcher:_,reducer:S}),f},exposeAction(_,S){return u.actionCreators[_]=S,f},exposeCaseReducer(_,S){return u.sliceCaseReducersByName[_]=S,f}};l.forEach(_=>{const S=s[_],j={reducerName:_,type:cue(o,_),createNotation:typeof i.reducers=="function"};mue(S)?gue(j,S,f,t):pue(j,S,f)});function d(){const[_={},S=[],j=void 0]=typeof i.extraReducers=="function"?oF(i.extraReducers):[i.extraReducers],E={..._,...u.sliceCaseReducersByType};return tue(i.initialState,P=>{for(let N in E)P.addCase(N,E[N]);for(let N of u.sliceMatchers)P.addMatcher(N.matcher,N.reducer);for(let N of S)P.addMatcher(N.matcher,N.reducer);j&&P.addDefaultCase(j)})}const p=_=>_,v=new Map;let g;function y(_,S){return g||(g=d()),g(_,S)}function w(){return g||(g=d()),g.getInitialState()}function b(_,S=!1){function j(P){let N=P[_];return typeof N>"u"&&S&&(N=w()),N}function E(P=p){const N=aL(v,S,{insert:()=>new WeakMap});return aL(N,P,{insert:()=>{const I={};for(const[M,D]of Object.entries(i.selectors??{}))I[M]=due(D,P,w,S);return I}})}return{reducerPath:_,getSelectors:E,get selectors(){return E(j)},selectSlice:j}}const x={name:o,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...b(a),injectInto(_,{reducerPath:S,...j}={}){const E=S??a;return _.inject({reducerPath:E,reducer:y},j),{...x,...b(E,!0)}}};return x}}function due(e,t,n,r){function i(o,...a){let s=t(o);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var nn=fue();function hue(){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 pue({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!vue(r))throw new Error(Sr(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?mn(e,a):mn(e))}function mue(e){return e._reducerDefinitionType==="asyncThunk"}function vue(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gue({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Sr(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||sv,pending:s||sv,rejected:l||sv,settled:u||sv})}function sv(){}var yue=(e,t)=>{if(typeof e!="function")throw new Error(Sr(32))},WT="listenerMiddleware",bue=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=mn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Sr(21));return yue(o),{predicate:i,type:t,effect:o}},_ue=Object.assign(e=>{const{type:t,predicate:n,effect:r}=bue(e);return{id:aF(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Sr(22))}}},{withTypes:()=>_ue}),xue=Object.assign(mn(`${WT}/add`),{withTypes:()=>xue});mn(`${WT}/removeAll`);var wue=Object.assign(mn(`${WT}/remove`),{withTypes:()=>wue});function Sr(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:Oue,reducer:Sue}=nn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Eue,resetAppUpdate:jue}=Oue,Tue=Sue,Cue=(e,t)=>{e.factory("App",ble),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Eue),e.serviceFactory("resetAppUpdate",()=>jue)},lL={"Content-Type":"application/json"},uL=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...lL}}:{headers:lL}:e;class Pue{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,uL(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,uL(n)).then(async r=>{if(!r.ok)throw await r.json()})}}var GT=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e))(GT||{}),Aue={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 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},kue=Aue,Nue={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"]},lF={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]},Lue={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"]},Rue={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"]},Mue=Object.defineProperty,Iue=(e,t,n)=>t in e?Mue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ya=(e,t,n)=>(Iue(e,typeof t!="symbol"?t+"":t,n),n),Vi,bo=".",uF="function",cF="string",fF="__global__",qT="Provider",Due=0,ZT=Array.prototype.slice,$ue=function(e,t){var n=e[t];if(n===void 0&&Vi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},hb=function(e){var t;return this.nested[e]||(t=Vi.pop(),this.nested[e]=t,this.factory(e,function(){return t.container})),this.nested[e]},dF=function(e){return e.split(bo).reduce($ue,this)},Fue=function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var o=0,a=function(s){if(s)throw s;e[o]&&e[o++](n,a)};return a(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]},Uue=function(e,t){var n,r;return typeof e===uF&&(t=e,e=fF),n=e.split(bo),r=n.shift(),n.length?hb.call(this,r).middleware(n.join(bo),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},Bue=function(e,t){return t(e)},cL=function(e,t){return(e[t]||[]).concat(e.__global__||[])},zue=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+qT,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var s=new t;return delete i[n],i[n]=s,s}},r[e]={configurable:!0,enumerable:!0,get:function(){var s=i[n],l;return s&&(l=cL(o,e).reduce(Bue,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:Fue(cL(a,e),e,l,i)}},Object.defineProperties(i,r),this},hF=function(e,t){var n,r;return n=e.split(bo),this.providerMap[e]&&n.length===1&&!this.container[e+qT]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(hb.call(this,r).provider(n.join(bo),t),this):zue.call(this,r,t))},YT=function(e,t){return hF.call(this,e,function(){this.$get=t})},pF=function(e,t,n){var r=arguments.length>3?ZT.call(arguments,3):[],i=this;return YT.call(this,e,function(){var o=t,a=r.map(dF,i.container);return n?new(t.bind.apply(t,[null].concat(a))):o.apply(null,a)})},Vue=function(e,t){return pF.apply(this,[e,t,!0].concat(ZT.call(arguments,2)))},Hue=function(e,t){return pF.apply(this,[e,t,!1].concat(ZT.call(arguments,2)))},mF=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},vF=function(e,t){var n=e[t];return n||(n={},mF.call(e,t,n)),n},Wue=function(e,t){var n;return n=e.split(bo),e=n.pop(),mF.call(n.reduce(vF,this.container),e,t),this},Gue=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},que=function(e,t){var n=e.split(bo);return e=n.pop(),Gue.call(n.reduce(vF,this.container),e,t),this},gF=function(e,t){var n,r;return typeof e===uF&&(t=e,e=fF),n=e.split(bo),r=n.shift(),n.length?hb.call(this,r).decorator(n.join(bo),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},Zue=function(e){return this.deferred.push(e),this},Yue=function(e){return(e||[]).map(dF,this.container)},Kue=function(e,t){return YT.call(this,e,function(n){return{instance:t.bind(t,n)}})},Xue=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},KT=function(e){return Object.keys(e||this.container||{}).filter(Xue)},yy={},Que=function(e){var t;return typeof e===cF?(t=yy[e],t||(yy[e]=t=new Vi,t.constant("BOTTLE_NAME",e)),t):new Vi},Jue=function(e){typeof e===cF?delete yy[e]:yy={}},yF=function(e){var t=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},fL=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+qT]},ece=function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(r){if(!(n&&e.indexOf(r)===-1)){var i=r.split(bo);i.length>1&&i.forEach(fL,hb.call(this,i[0])),fL.call(this,r),this.provider(r,t[r])}},this)},tce=function(e){return this.deferred.forEach(function(t){t(e)}),this};Vi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=Due++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:gF.bind(this),$register:yF.bind(this),$list:KT.bind(this)}};Vi.prototype={constant:que,decorator:gF,defer:Zue,digest:Yue,factory:YT,instanceFactory:Kue,list:KT,middleware:Uue,provider:hF,resetProviders:ece,register:yF,resolve:tce,service:Vue,serviceFactory:Hue,value:Wue};Vi.pop=Que;Vi.clear=Jue;Vi.list=KT;Vi.config={strict:!1};const nce=Vi,rce=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,a]=Kt(),{domains:s}=n,l=!t,u=R.useCallback(()=>{r(""),a()},[r,a]),f=R.useCallback(()=>{r(""),o()},[r,o]);return R.useEffect(()=>{e()},[e]),i?m.jsxs(ib,{children:[m.jsx(qn,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),m.jsx(Ze,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:u,children:m.jsx(Te,{icon:PK})}),m.jsx(Tr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(ua,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:p})=>m.jsxs(ke,{active:(t===d||p)&&l,onClick:()=>r(d),children:[d,p&&m.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),m.jsx(ke,{divider:!0}),m.jsx(ke,{onClick:f,children:m.jsx("i",{children:"New domain"})})]})},ice=e=>(e==null?void 0:e.type)===GT.INVALID_ARGUMENT,oce=e=>(e==null?void 0:e.type)===GT.INVALID_SHORT_URL_DELETION,ace=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Gr=e=>ace(e)?e:void 0,_o=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,ice(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]});function bF(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=bF(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function De(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bF(e))&&(r&&(r+=" "),r+=t);return r}const jl=({style:e,className:t,...n})=>m.jsx("button",{type:"button",className:De("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),_F=R.createContext(""),sce=_F.Provider,gs=()=>R.useContext(_F),xF=R.createContext(void 0),{Provider:XT}=xF,pb=()=>R.useContext(xF),lce=5,QT=()=>{const[e,t]=R.useState([]),n=R.useMemo(()=>e.length>=lce,[e.length]),r=R.useCallback(s=>!n&&t(l=>[...l,s]),[n]),i=R.useCallback(s=>!n&&e.every(l=>l.name!==s),[e,n]),o=R.useCallback(s=>t(l=>l.filter(u=>u!==s)),[]),a=R.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},JT=({className:e,type:t})=>{const n=gs(),r=pb(),i=R.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(l=>l.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return m.jsx("div",{className:De("top-sticky",e),children:m.jsxs(wt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[m.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((l,u)=>{var f;return m.jsxs("li",{className:De("badge pe-1",{"bg-secondary":!((f=l.style)!=null&&f.backgroundColor)}),style:l.style,children:[l.name,m.jsx(jl,{"aria-label":`Remove ${l.name}`,className:"fw-bold fs-6",onClick:()=>s(l),children:"×"})]},`${l.name}_${u}`)})}),m.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[m.jsxs(Ze,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:Et,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[m.jsx(Te,{icon:K0,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),m.jsx(Ze,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},wF=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),uce=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),Ox=e=>Object.prototype.toString.call(e)==="[object Object]",OF=(e,t)=>{const n={...e};return!Ox(e)||!Ox(t)||Object.keys(t).forEach(r=>{Ox(t[r])?n[r]=r in e&&e[r]!==void 0?OF(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},eC=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),cce=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Zu=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},dL=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),Bd=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,fce=(e,t)=>!e.domain&&t===vb?!0:e.domain===t,dce=(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}},SF=e=>e.replaceAll("/","__"),tC=e=>e.replaceAll("__","/"),nC=({domain:e,shortCode:t})=>`${e??vb}__${SF(t)}`,EF=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===vb?null:t,shortCode:tC(n)}};function qe(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Hi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function rC(e,t){const n=qe(e);return isNaN(t)?Hi(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function hce(e,t){const n=qe(e);if(isNaN(t))return Hi(e,NaN);if(!t)return n;const r=n.getDate(),i=Hi(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const o=i.getDate();return r>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function pce(e,t){const{years:n=0,months:r=0,weeks:i=0,days:o=0,hours:a=0,minutes:s=0,seconds:l=0}=t,u=qe(e),f=r||n?hce(u,r+n*12):u,d=o||i?rC(f,o+i*7):f,p=s+a*60,v=(l+p*60)*1e3;return Hi(e,d.getTime()+v)}const jF=6048e5,mce=864e5,TF=6e4,iC=36e5,lv=43200,hL=1440;let vce={};function tf(){return vce}function Lh(e,t){var n,r,i,o;const a=tf(),s=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,l=qe(e),u=l.getDay(),f=(u<s?7:0)+u-s;return l.setDate(l.getDate()-f),l.setHours(0,0,0,0),l}function Rh(e){return Lh(e,{weekStartsOn:1})}function CF(e){const t=qe(e),n=t.getFullYear(),r=Hi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Rh(r),o=Hi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Rh(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Tl(e){const t=qe(e);return t.setHours(0,0,0,0),t}function by(e){const t=qe(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 PF(e,t){const n=Tl(e),r=Tl(t),i=+n-by(n),o=+r-by(r);return Math.round((i-o)/mce)}function gce(e){const t=CF(e),n=Hi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Rh(n)}function AF(e){let t;return e.forEach(function(n){const r=qe(n);(t===void 0||t<r||isNaN(Number(r)))&&(t=r)}),t||new Date(NaN)}function yce(e){let t;return e.forEach(n=>{const r=qe(n);(!t||t>r||isNaN(+r))&&(t=r)}),t||new Date(NaN)}function eg(e,t){const n=qe(e),r=qe(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function bce(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _ce(e){if(!bce(e)&&typeof e!="number")return!1;const t=qe(e);return!isNaN(Number(t))}function xce(e,t){const n=qe(e),r=qe(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Vp(e,t){const n=qe(e),r=qe(t),i=pL(n,r),o=Math.abs(PF(n,r));n.setDate(n.getDate()-i*o);const a=+(pL(n,r)===-i),s=i*(o-a);return s===0?0:s}function pL(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 oC(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function kF(e,t){return+qe(e)-+qe(t)}function wce(e,t,n){const r=kF(e,t)/iC;return oC(n==null?void 0:n.roundingMethod)(r)}function _c(e){const t=qe(e);return t.setHours(23,59,59,999),t}function Oce(e){const t=qe(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Sce(e){const t=qe(e);return+_c(t)==+Oce(t)}function _y(e,t){const n=qe(e),r=qe(t),i=eg(n,r),o=Math.abs(xce(n,r));let a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);let s=eg(n,r)===-i;Sce(qe(e))&&o===1&&eg(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function Ece(e,t,n){const r=kF(e,t)/1e3;return oC(n==null?void 0:n.roundingMethod)(r)}function jce(e,t,n){const r=Vp(e,t)/7;return oC(n==null?void 0:n.roundingMethod)(r)}function Tce(e){const t=qe(e),n=Hi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Cce(e,t){var n,r,i,o;const a=tf(),s=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??a.weekStartsOn??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,l=qe(e),u=l.getDay(),f=(u<s?-7:0)+6-(u-s);return l.setDate(l.getDate()+f),l.setHours(23,59,59,999),l}function Pce(e){return Cce(e,{weekStartsOn:1})}const Ace={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"}},kce=(e,t,n)=>{let r;const i=Ace[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 Sx(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nce={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rce={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mce={date:Sx({formats:Nce,defaultWidth:"full"}),time:Sx({formats:Lce,defaultWidth:"full"}),dateTime:Sx({formats:Rce,defaultWidth:"full"})},Ice={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dce=(e,t,n,r)=>Ice[e];function Yf(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const $ce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Uce={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"]},Bce={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"]},zce={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"}},Vce={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"}},Hce=(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"},Wce={ordinalNumber:Hce,era:Yf({values:$ce,defaultWidth:"wide"}),quarter:Yf({values:Fce,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Yf({values:Uce,defaultWidth:"wide"}),day:Yf({values:Bce,defaultWidth:"wide"}),dayPeriod:Yf({values:zce,defaultWidth:"wide",formattingValues:Vce,defaultFormattingWidth:"wide"})};function Kf(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?qce(s,d=>d.test(a)):Gce(s,d=>d.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function Gce(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qce(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Zce(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Yce=/^(\d+)(th|st|nd|rd)?/i,Kce=/\d+/i,Xce={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},Qce={any:[/^b/i,/^(a|c)/i]},Jce={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},efe={any:[/1/i,/2/i,/3/i,/4/i]},tfe={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},nfe={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]},rfe={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},ife={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]},ofe={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},afe={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}},sfe={ordinalNumber:Zce({matchPattern:Yce,parsePattern:Kce,valueCallback:e=>parseInt(e,10)}),era:Kf({matchPatterns:Xce,defaultMatchWidth:"wide",parsePatterns:Qce,defaultParseWidth:"any"}),quarter:Kf({matchPatterns:Jce,defaultMatchWidth:"wide",parsePatterns:efe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Kf({matchPatterns:tfe,defaultMatchWidth:"wide",parsePatterns:nfe,defaultParseWidth:"any"}),day:Kf({matchPatterns:rfe,defaultMatchWidth:"wide",parsePatterns:ife,defaultParseWidth:"any"}),dayPeriod:Kf({matchPatterns:ofe,defaultMatchWidth:"any",parsePatterns:afe,defaultParseWidth:"any"})},NF={code:"en-US",formatDistance:kce,formatLong:Mce,formatRelative:Dce,localize:Wce,match:sfe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lfe(e){const t=qe(e);return PF(t,Tce(t))+1}function ufe(e){const t=qe(e),n=+Rh(t)-+gce(t);return Math.round(n/jF)+1}function LF(e,t){var n,r,i,o;const a=qe(e),s=a.getFullYear(),l=tf(),u=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??l.firstWeekContainsDate??((o=(i=l.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,f=Hi(e,0);f.setFullYear(s+1,0,u),f.setHours(0,0,0,0);const d=Lh(f,t),p=Hi(e,0);p.setFullYear(s,0,u),p.setHours(0,0,0,0);const v=Lh(p,t);return a.getTime()>=d.getTime()?s+1:a.getTime()>=v.getTime()?s:s-1}function cfe(e,t){var n,r,i,o;const a=tf(),s=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??a.firstWeekContainsDate??((o=(i=a.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,l=LF(e,t),u=Hi(e,0);return u.setFullYear(l,0,s),u.setHours(0,0,0,0),Lh(u,t)}function ffe(e,t){const n=qe(e),r=+Lh(n,t)-+cfe(n,t);return Math.round(r/jF)+1}function rt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ya={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return rt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):rt(n+1,2)},d(e,t){return rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return rt(e.getHours()%12||12,t.length)},H(e,t){return rt(e.getHours(),t.length)},m(e,t){return rt(e.getMinutes(),t.length)},s(e,t){return rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return rt(i,t.length)}},ou={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mL={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 ya.y(e,t)},Y:function(e,t,n,r){const i=LF(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return rt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):rt(o,t.length)},R:function(e,t){const n=CF(e);return rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return rt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ya.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=ffe(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):rt(i,t.length)},I:function(e,t,n){const r=ufe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ya.d(e,t)},D:function(e,t,n){const r=lfe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return rt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return rt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return rt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ou.noon:r===0?i=ou.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=ou.evening:r>=12?i=ou.afternoon:r>=4?i=ou.morning:i=ou.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 ya.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ya.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ya.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ya.s(e,t)},S:function(e,t){return ya.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gL(r);case"XXXX":case"XX":return Bs(r);case"XXXXX":case"XXX":default:return Bs(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gL(r);case"xxxx":case"xx":return Bs(r);case"xxxxx":case"xxx":default:return Bs(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+vL(r,":");case"OOOO":default:return"GMT"+Bs(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+vL(r,":");case"zzzz":default:return"GMT"+Bs(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return rt(r,t.length)},T:function(e,t,n){const r=e.getTime();return rt(r,t.length)}};function vL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+rt(o,2)}function gL(e,t){return e%60===0?(e>0?"-":"+")+rt(Math.abs(e)/60,2):Bs(e,t)}function Bs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=rt(Math.trunc(r/60),2),o=rt(r%60,2);return n+i+t+o}const yL=(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"})}},RF=(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"})}},dfe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return yL(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",yL(r,t)).replace("{{time}}",RF(i,t))},hfe={p:RF,P:dfe},pfe=/^D+$/,mfe=/^Y+$/,vfe=["D","DD","YY","YYYY"];function gfe(e){return pfe.test(e)}function yfe(e){return mfe.test(e)}function bfe(e,t,n){const r=_fe(e,t,n);if(console.warn(r),vfe.includes(e))throw new RangeError(r)}function _fe(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 xfe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wfe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ofe=/^'([^]*?)'?$/,Sfe=/''/g,Efe=/[a-zA-Z]/;function xy(e,t,n){var r,i,o,a,s,l,u,f;const d=tf(),p=(n==null?void 0:n.locale)??d.locale??NF,v=(n==null?void 0:n.firstWeekContainsDate)??((i=(r=n==null?void 0:n.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??((a=(o=d.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??1,g=(n==null?void 0:n.weekStartsOn)??((l=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??d.weekStartsOn??((f=(u=d.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,y=qe(e);if(!_ce(y))throw new RangeError("Invalid time value");let w=t.match(wfe).map(x=>{const _=x[0];if(_==="p"||_==="P"){const S=hfe[_];return S(x,p.formatLong)}return x}).join("").match(xfe).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const _=x[0];if(_==="'")return{isToken:!1,value:jfe(x)};if(mL[_])return{isToken:!0,value:x};if(_.match(Efe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:x}});p.localize.preprocessor&&(w=p.localize.preprocessor(y,w));const b={firstWeekContainsDate:v,weekStartsOn:g,locale:p};return w.map(x=>{if(!x.isToken)return x.value;const _=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&yfe(_)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&gfe(_))&&bfe(_,t,String(e));const S=mL[_[0]];return S(y,_,p.localize,b)}).join("")}function jfe(e){const t=e.match(Ofe);return t?t[1].replace(Sfe,"'"):e}function Tfe(e,t,n){const r=tf(),i=(n==null?void 0:n.locale)??r.locale??NF,o=2520,a=eg(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a});let l,u;a>0?(l=qe(t),u=qe(e)):(l=qe(e),u=qe(t));const f=Ece(u,l),d=(by(u)-by(l))/1e3,p=Math.round((f-d)/60);let v;if(p<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):p===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",p,s);if(p<45)return i.formatDistance("xMinutes",p,s);if(p<90)return i.formatDistance("aboutXHours",1,s);if(p<hL){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,s)}else{if(p<o)return i.formatDistance("xDays",1,s);if(p<lv){const g=Math.round(p/hL);return i.formatDistance("xDays",g,s)}else if(p<lv*2)return v=Math.round(p/lv),i.formatDistance("aboutXMonths",v,s)}if(v=_y(u,l),v<12){const g=Math.round(p/lv);return i.formatDistance("xMonths",g,s)}else{const g=v%12,y=Math.trunc(v/12);return g<3?i.formatDistance("aboutXYears",y,s):g<9?i.formatDistance("overXYears",y,s):i.formatDistance("almostXYears",y+1,s)}}function Cfe(e,t){const n=qe(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const r=(t==null?void 0:t.format)??"extended",i=(t==null?void 0:t.representation)??"complete";let o="",a="";const s=r==="extended"?"-":"",l=r==="extended"?":":"";if(i!=="time"){const u=rt(n.getDate(),2),f=rt(n.getMonth()+1,2);o=`${rt(n.getFullYear(),4)}${s}${f}${s}${u}`}if(i!=="date"){const u=n.getTimezoneOffset();if(u!==0){const y=Math.abs(u),w=rt(Math.trunc(y/60),2),b=rt(y%60,2);a=`${u<0?"+":"-"}${w}:${b}`}else a="Z";const f=rt(n.getHours(),2),d=rt(n.getMinutes(),2),p=rt(n.getSeconds(),2),v=o===""?"":"T",g=[f,d,p].join(l);o=`${o}${v}${g}${a}`}return o}function Pfe(e){return Math.trunc(+qe(e)/1e3)}function Afe(e,t){const n=qe(e),r=qe(t);return n.getTime()>r.getTime()}function wy(e,t){const n=qe(e),r=qe(t);return+n<+r}function sS(e,t){const n=qe(e),r=qe(t);return+n==+r}function kfe(e,t){const n=+qe(e),[r,i]=[+qe(t.start),+qe(t.end)].sort((o,a)=>o-a);return n>=r&&n<=i}function Oy(e,t){return rC(e,-t)}function os(e,t){const n=(t==null?void 0:t.additionalDigits)??2,r=Mfe(e);let i;if(r.date){const l=Ife(r.date,n);i=Dfe(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=$fe(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=Ffe(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(o+a+s)}const uv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Nfe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lfe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Rfe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Mfe(e){const t={},n=e.split(uv.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],uv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(uv.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=uv.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ife(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Dfe(e,t){if(t===null)return new Date(NaN);const n=e.match(Nfe);if(!n)return new Date(NaN);const r=!!n[4],i=Xf(n[1]),o=Xf(n[2])-1,a=Xf(n[3]),s=Xf(n[4]),l=Xf(n[5])-1;if(r)return Hfe(t,s,l)?Ufe(t,s,l):new Date(NaN);{const u=new Date(0);return!zfe(t,o,a)||!Vfe(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function Xf(e){return e?parseInt(e):1}function $fe(e){const t=e.match(Lfe);if(!t)return NaN;const n=Ex(t[1]),r=Ex(t[2]),i=Ex(t[3]);return Wfe(n,r,i)?n*iC+r*TF+i*1e3:NaN}function Ex(e){return e&&parseFloat(e.replace(",","."))||0}function Ffe(e){if(e==="Z")return 0;const t=e.match(Rfe);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Gfe(r,i)?n*(r*iC+i*TF):NaN}function Ufe(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Bfe=[31,null,31,30,31,30,31,31,30,31,30,31];function MF(e){return e%400===0||e%4===0&&e%100!==0}function zfe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Bfe[t]||(MF(e)?29:28))}function Vfe(e,t){return t>=1&&t<=(MF(e)?366:365)}function Hfe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Wfe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Gfe(e,t){return t>=0&&t<=59}const qfe="yyyy-MM-dd",IF="yyyy-MM-dd HH:mm",as=()=>new Date,aC=e=>typeof e!="string",sC=(e,t)=>!e||!aC(e)?e:t?xy(e,t):Cfe(e),ss=e=>sC(e,void 0),Ia=e=>sC(e,qfe),Mh=e=>sC(e,IF),Ir=e=>aC(e)?e:os(e),Hp=(e,t,n)=>{const r=Ir(e),i=t&&Ir(t),o=n&&Ir(n);if(i&&o)try{return kfe(r,{start:i,end:o})}catch{return!1}return i?sS(r,i)||Afe(r,i):o?sS(r,o)||wy(r,o):!0},As=(e,t)=>sS(e,t)||wy(e,t),mb="all",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",[mb]:void 0},$F=Object.keys(DF),Zfe=e=>!e||!e.startDate&&!e.endDate,Sy=e=>typeof e=="string"&&$F.includes(e),Yfe=$F.filter(e=>e!==mb),bL=e=>e?Ir(e):null,FF=(e,t)=>({startDate:bL(e),endDate:bL(t)}),Kfe=e=>{if(!(!e||Zfe(e)))return e.startDate&&!e.endDate?`Since ${Ia(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Ia(e.endDate)}`:`${Ia(e.startDate)} - ${Ia(e.endDate)}`},UF=e=>{if(!(!e||e===mb))return Sy(e)?DF[e]:Kfe(e)},ii=e=>Tl(Oy(as(),e)),au=e=>({startDate:e,endDate:_c(as())}),BF=e=>{var t;return((t=[[()=>e==="today",()=>au(Tl(as()))],[()=>e==="yesterday",()=>({startDate:ii(1),endDate:_c(Oy(as(),1))})],[()=>e==="last7Days",()=>au(ii(7))],[()=>e==="last30Days",()=>au(ii(30))],[()=>e==="last90Days",()=>au(ii(90))],[()=>e==="last180Days",()=>au(ii(180))],[()=>e==="last365Days",()=>au(ii(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},Xfe=e=>{var t;const n=Ir(e);return((t=[[()=>As(Tl(as()),n),"today"],[()=>As(ii(1),n),"yesterday"],[()=>As(ii(7),n),"last7Days"],[()=>As(ii(30),n),"last30Days"],[()=>As(ii(90),n),"last90Days"],[()=>As(ii(180),n),"last180Days"],[()=>As(ii(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??mb},zF=e=>Sy(e)?BF(e):e,VF=e=>!!(e&&e.startDate),Qfe=({startDate:e,endDate:t})=>{const n=Vp(_c(t??new Date),Tl(e))+1,r=Oy(Tl(e),n),i=Oy(_c(e),1);return{startDate:r,endDate:i}},Jfe=e=>{if(VF(e))return Vp(e.endDate??new Date,e.startDate)},lC=e=>e.visitedUrl!==void 0,ede=e=>e.visitedUrl!==void 0,tde=e=>{const t=uce(e,n=>lC(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},HF=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Bd(o,t,n)&&Hp(a.date,i,r)),WF=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&fce(i,t)&&Hp(o.date,r,n)),GF=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&Hp(o.date,r,n)),cv=(e,t)=>wF(e,n=>n[t]),nde=e=>{const t=((e==null?void 0:e.startDate)&&ss(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&ss(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},lS=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=nde(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},rde=e=>VF(e.dateRange),ide=({dateRange:e,...t})=>({...t,dateRange:Qfe(e)}),gn=(e,t)=>sF(e,t,{serializeError:n=>n}),_L=5e3,ode=2,ade=4,sde=({currentPage:e,pagesCount:t})=>e>=t,lde=(e,t)=>t*100/e,qF=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async l=>e({...a,page:l,itemsPerPage:_L}).then(({data:u})=>u))).then(l=>l.flat()),o=async(a,s,l=0)=>{if(t())return[];const u=await i(a,s[l]);return n(lde(s.length,l+1)),l<s.length-1?u.concat(await o(a,s,l+1)):u};return async a=>{const{pagination:s,data:l}=await e({...a,page:1,itemsPerPage:_L});if(sde(s))return l;const u=eC(ode,s.pagesCount+1),f=Zu(u,r);return s.pagesCount-1>r&&n(0),l.concat(await o(a,f))}},Wp=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),Gp=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=mn(`${e}/progressChanged`),i=mn(`${e}/fallbackToInterval`),o=gn(e,async(a,{getState:s,dispatch:l})=>{var u;const{params:f,options:d}=a,{visitsLoader:p,lastVisitLoader:v}=t(a),g=Jfe(f.dateRange),y=lS(f),w=d.loadPrevInterval&&rde(f)?lS(ide(f)):void 0,b=ade/(w?2:1),x=w?{main:0,prev:0}:{main:0},_=(N,I)=>{x[N]=I;const M=Object.values(x),D=M.reduce((z,q)=>z+q,0);l(r(D/M.length))},S=qF({visitsLoader:p,shouldCancel:()=>n(s),progressChanged:N=>_("main",N),batchSize:b}),[j,E,P]=await Promise.all([S(y),v((u=f.filter)==null?void 0:u.excludeBots),w?S(w).then(N=>N.map(I=>{if(g===void 0)return I;const{date:M,...D}=I,z=rC(Ir(M),g);return{...D,date:ss(z)}})):Promise.resolve(void 0)]);return!j.length&&E&&l(i(Xfe(E.date))),{...a,visits:j,prevVisits:P}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},nf=mn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),qp=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:l,fallbackToInterval:u}=t,{reducer:f,actions:d}=nn({name:e,initialState:n,reducers:{cancelGetVisits:v=>({...v,cancelLoad:!0})},extraReducers:v=>{v.addCase(o,()=>({...n,loading:!0})),v.addCase(a,(g,{error:y})=>({...n,errorData:Gr(y)??null})),v.addCase(s,(g,{payload:y})=>({...g,...y,loading:!1,progress:null,errorData:null})),v.addCase(l,(g,{payload:y})=>({...g,progress:y})),v.addCase(u,(g,{payload:y})=>({...g,fallbackInterval:y})),v.addCase(nf,(g,{payload:y})=>{const{visits:w}=g,b=r(g,y.createdVisits).map(({visit:x})=>x);return b.length?{...g,visits:[...b,...w]}:g}),i==null||i(v)}}),{cancelGetVisits:p}=d;return{reducer:f,cancelGetVisits:p}},ZF="shlink/domainVisits",vb="DEFAULT",ude={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},cde=e=>Gp({typePrefix:`${ZF}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=Wp(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),fde=e=>qp({name:ZF,initialState:ude,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>WF(r,t,n==null?void 0:n.dateRange)}),tg=({className:e="",placement:t,children:n})=>{const r=la();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(Te,{icon:Jj})}),m.jsx(Tr,{target:r,placement:t,children:n})]})},YF=e=>t=>{t.preventDefault(),e()},uC=(e,t,n=1)=>eC(n,e+1).map(t),dde=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,qs=e=>e!=null&&!dde(e),jx=e=>e||null,uS=e=>e?"true":"false",Tx=e=>e===void 0?void 0:uS(e),Cx=({isLast:e,...t})=>m.jsx(Qv,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),hde=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=R.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,f]=R.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=R.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),v=YF(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:jx(s),regular404Redirect:jx(u),invalidShortUrlRedirect:jx(d)}}).then(t));return m.jsx(So,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:v,children:[m.jsxs(Eo,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Wi,{children:[m.jsxs(Cx,{value:s,onChange:l,children:[m.jsxs(tg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",m.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),m.jsxs(Cx,{value:u,onChange:f,children:[m.jsxs(tg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",m.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),m.jsxs(Cx,{value:d,isLast:!0,onChange:p,children:[m.jsx(tg,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),m.jsxs(ms,{children:[m.jsx(Ze,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(Ze,{color:"primary",children:"Save"})]})]})})},pde=({domain:e,editDomainRedirects:t})=>{const[n,r]=Kt(),i=gs(),o=pb();return m.jsxs(sb,{children:[m.jsxs(ke,{tag:Et,to:`${i}/domain/${e.domain}${e.isDefault?`_${vb}`:""}/visits`,children:[m.jsx(Te,{icon:Qj,fixedWidth:!0})," Visit stats"]}),m.jsxs(ke,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[m.jsx(Te,{icon:K0,fixedWidth:!0})," Compare visits"]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{onClick:r,children:[m.jsx(Te,{fixedWidth:!0,icon:Xj})," Edit redirects"]}),m.jsx(hde,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},di=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),mde="Left",vde="Right",gde="Up",yde="Down",Ru={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},cS={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},xL="mousemove",wL="mouseup",bde="touchend",_de="touchmove",xde="touchstart";function wde(e,t,n,r){return e>t?n>0?vde:mde:r>0?yde:gde}function OL(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 Ode(e,t){const n=u=>{const f="touches"in u;f&&u.touches.length>1||e((d,p)=>{p.trackMouse&&!f&&(document.addEventListener(xL,r),document.addEventListener(wL,a));const{clientX:v,clientY:g}=f?u.touches[0]:u,y=OL([v,g],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},d),cS),{initial:y.slice(),xy:y,start:u.timeStamp||0})})},r=u=>{e((f,d)=>{const p="touches"in u;if(p&&u.touches.length>1)return f;if(u.timeStamp-f.start>d.swipeDuration)return f.swiping?Object.assign(Object.assign({},f),{swiping:!1}):f;const{clientX:v,clientY:g}=p?u.touches[0]:u,[y,w]=OL([v,g],d.rotationAngle),b=y-f.xy[0],x=w-f.xy[1],_=Math.abs(b),S=Math.abs(x),j=(u.timeStamp||0)-f.start,E=Math.sqrt(_*_+S*S)/(j||1),P=[b/(j||1),x/(j||1)],N=wde(_,S,b,x),I=typeof d.delta=="number"?d.delta:d.delta[N.toLowerCase()]||Ru.delta;if(_<I&&S<I&&!f.swiping)return f;const M={absX:_,absY:S,deltaX:b,deltaY:x,dir:N,event:u,first:f.first,initial:f.initial,velocity:E,vxvy:P};M.first&&d.onSwipeStart&&d.onSwipeStart(M),d.onSwiping&&d.onSwiping(M);let D=!1;return(d.onSwiping||d.onSwiped||d[`onSwiped${N}`])&&(D=!0),D&&d.preventScrollOnSwipe&&d.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},f),{first:!1,eventData:M,swiping:!0})})},i=u=>{e((f,d)=>{let p;if(f.swiping&&f.eventData){if(u.timeStamp-f.start<d.swipeDuration){p=Object.assign(Object.assign({},f.eventData),{event:u}),d.onSwiped&&d.onSwiped(p);const v=d[`onSwiped${p.dir}`];v&&v(p)}}else d.onTap&&d.onTap({event:u});return d.onTouchEndOrOnMouseUp&&d.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},f),cS),{eventData:p})})},o=()=>{document.removeEventListener(xL,r),document.removeEventListener(wL,a)},a=u=>{o(),i(u)},s=(u,f)=>{let d=()=>{};if(u&&u.addEventListener){const p=Object.assign(Object.assign({},Ru.touchEventOptions),f.touchEventOptions),v=[[xde,n,p],[_de,r,Object.assign(Object.assign({},p),f.preventScrollOnSwipe?{passive:!1}:{})],[bde,i,p]];v.forEach(([g,y,w])=>u.addEventListener(g,y,w)),d=()=>v.forEach(([g,y])=>u.removeEventListener(g,y))}return d},l={ref:u=>{u!==null&&e((f,d)=>{if(f.el===u)return f;const p={};return f.el&&f.el!==u&&f.cleanUpTouch&&(f.cleanUpTouch(),p.cleanUpTouch=void 0),d.trackTouch&&u&&(p.cleanUpTouch=s(u,d)),Object.assign(Object.assign(Object.assign({},f),{el:u}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function Sde(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 Ede(e){const{trackMouse:t}=e,n=R.useRef(Object.assign({},cS)),r=R.useRef(Object.assign({},Ru)),i=R.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Ru),e);let o;for(o in Ru)r.current[o]===void 0&&(r.current[o]=Ru[o]);const[a,s]=R.useMemo(()=>Ode(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Sde(n.current,r.current,i.current,s),a}const jde=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return Ede({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Tde=(e,t)=>{const[n,r]=R.useState(t),i=R.useCallback(o=>{const{location:a,history:s}=window,l=$T(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${ob(l)}`),r(o)},[e]);return[n,i]},cC=e=>{const t=Up();return R.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},Cde=()=>{const e=Oo();return R.useCallback(()=>e(-1),[e])},fC=(e,t)=>{const n=R.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=R.useState(n());return R.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},Pde=({status:e,matchMedia:t=window.matchMedia})=>{const n=la(),r=fC(991,t);return e==="validating"?m.jsx(Te,{fixedWidth:!0,icon:U8,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(Te,{fixedWidth:!0,icon:gh,className:"text-muted"}):m.jsx(Te,{fixedWidth:!0,icon:v2,className:"text-danger"})}),m.jsx(Tr,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":m.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",m.jsx("br",{}),"Check the ",m.jsx(di,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},Px=({fallback:e})=>m.jsxs("span",{className:"text-muted",children:[!e&&m.jsx("small",{children:"No redirect"}),e&&m.jsxs(m.Fragment,{children:[e," ",m.jsx("small",{children:"(as fallback)"})]})]}),Ade=()=>m.jsxs(m.Fragment,{children:[m.jsx(Te,{fixedWidth:!0,icon:cK,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Tr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),kde=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return R.useEffect(()=>{n(e.domain)},[n,e.domain]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&m.jsx(Ade,{})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??m.jsx(Px,{fallback:r==null?void 0:r.baseUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??m.jsx(Px,{fallback:r==null?void 0:r.regular404Redirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??m.jsx(Px,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(Pde,{status:s})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(pde,{domain:e,editDomainRedirects:t})})]})},SL=[{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}],Nde=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:l,error:u,errorData:f}=t,d=s??((o=a.find(({isDefault:v})=>v))==null?void 0:o.redirects),p=QT();return R.useEffect(()=>{e()},[e]),l?m.jsx(Jo,{loading:!0}):m.jsxs(XT,{value:p,children:[m.jsx(Bp,{className:"mb-3",onChange:n}),m.jsx(JT,{type:"domains",className:"mb-3"}),u?m.jsx(ur,{type:"error",children:m.jsx(_o,{errorData:f,fallbackMessage:"Error loading domains :("})}):m.jsx(wt,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsx("tr",{children:SL.map((v,g)=>m.jsx("th",{children:m.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},g))})}),m.jsxs("tbody",{children:[a.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:SL.length,className:"text-center",children:"No results found"})}),a.map(v=>m.jsx(kde,{domain:v,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:d},v.domain))]})]})})]})},Lde="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",Rde=e=>gn(Lde,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),fv="shlink/domainsList",dv={domains:[],filteredDomains:[],loading:!1,error:!1},EL=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},jL=(e,t)=>n=>n.domain!==e?n:{...n,status:t},Mde=(e,t)=>{const n=gn(`${fv}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=gn(`${fv}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=mn(`${fv}/filterDomains`),{reducer:o}=nn({name:fv,initialState:dv,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...dv,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...dv,error:!0,errorData:Gr(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...dv,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...u},{payload:f})=>({...u,domains:s.map(jL(f.domain,f.status)),filteredDomains:l.map(jL(f.domain,f.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:u})=>u.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(EL(l)),filteredDomains:s.filteredDomains.map(EL(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},Ide=(e,t)=>{e.serviceFactory("DomainSelector",()=>rce),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>Nde),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",Mde,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",Rde,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},TL="shlink/mercure",Dde={loading:!0,error:!1},$de=e=>{const t=gn(`${TL}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=nn({name:TL,initialState:Dde,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},Fde=e=>{e.serviceFactory("mercureInfoReducerCreator",$de,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Dt(e){return R.useRef(e).current}function $t(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}var Mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fS={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,u=n.document,f=n.Promise,d=n.fetch,p=n.Response,v=n.TextDecoder,g=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(se){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(se){function pe(){}return pe.prototype=se,new pe}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var w=d;d=function(se,pe){var me=pe.signal;return w(se,{headers:pe.headers,credentials:pe.credentials,cache:pe.cache}).then(function(xe){var Ce=xe.body.getReader();return me._reader=Ce,me._aborted&&me._reader.cancel(),{status:xe.status,statusText:xe.statusText,headers:xe.headers,body:{getReader:function(){return Ce}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(se){function pe(ye,ge,we){if(we===1)return ye>=128>>ge&&ye<<ge<=2047;if(we===2)return ye>=2048>>ge&&ye<<ge<=55295||ye>=57344>>ge&&ye<<ge<=65535;if(we===3)return ye>=65536>>ge&&ye<<ge<=1114111;throw new Error}function me(ye,ge){if(ye===6*1)return ge>>6>15?3:ge>31?2:1;if(ye===6*2)return ge>15?3:2;if(ye===6*3)return 3;throw new Error}for(var xe=65533,Ce="",je=this.bitsNeeded,Pe=this.codePoint,le=0;le<se.length;le+=1){var ce=se[le];je!==0&&(ce<128||ce>191||!pe(Pe<<6|ce&63,je-6,me(je,Pe)))&&(je=0,Pe=xe,Ce+=String.fromCharCode(Pe)),je===0?(ce>=0&&ce<=127?(je=0,Pe=ce):ce>=192&&ce<=223?(je=6*1,Pe=ce&31):ce>=224&&ce<=239?(je=6*2,Pe=ce&15):ce>=240&&ce<=247?(je=6*3,Pe=ce&7):(je=0,Pe=xe),je!==0&&!pe(Pe,je,me(je,Pe))&&(je=0,Pe=xe)):(je-=6,Pe=Pe<<6|ce&63),je===0&&(Pe<=65535?Ce+=String.fromCharCode(Pe):(Ce+=String.fromCharCode(55296+(Pe-65535-1>>10)),Ce+=String.fromCharCode(56320+(Pe-65535-1&1023))))}return this.bitsNeeded=je,this.codePoint=Pe,Ce};var x=function(){try{return new v().decode(new g().encode("test"),{stream:!0})==="test"}catch(se){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+se)}return!1};(v==null||g==null||!x())&&(v=b);var _=function(){};function S(se){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=se,this._sendTimeout=0,this._abort=_}S.prototype.open=function(se,pe){this._abort(!0);var me=this,xe=this._xhr,Ce=1,je=0;this._abort=function(we){me._sendTimeout!==0&&(i(me._sendTimeout),me._sendTimeout=0),(Ce===1||Ce===2||Ce===3)&&(Ce=4,xe.onload=_,xe.onerror=_,xe.onabort=_,xe.onprogress=_,xe.onreadystatechange=_,xe.abort(),je!==0&&(i(je),je=0),we||(me.readyState=4,me.onabort(null),me.onreadystatechange())),Ce=0};var Pe=function(){if(Ce===1){var we=0,Ae="",Ne=void 0;if("contentType"in xe)we=200,Ae="OK",Ne=xe.contentType;else try{we=xe.status,Ae=xe.statusText,Ne=xe.getResponseHeader("Content-Type")}catch{we=0,Ae="",Ne=void 0}we!==0&&(Ce=2,me.readyState=2,me.status=we,me.statusText=Ae,me._contentType=Ne,me.onreadystatechange())}},le=function(){if(Pe(),Ce===2||Ce===3){Ce=3;var we="";try{we=xe.responseText}catch{}me.readyState=3,me.responseText=we,me.onprogress()}},ce=function(we,Ae){if((Ae==null||Ae.preventDefault==null)&&(Ae={preventDefault:_}),le(),Ce===1||Ce===2||Ce===3){if(Ce=4,je!==0&&(i(je),je=0),me.readyState=4,we==="load")me.onload(Ae);else if(we==="error")me.onerror(Ae);else if(we==="abort")me.onabort(Ae);else throw new TypeError;me.onreadystatechange()}},ye=function(we){xe!=null&&(xe.readyState===4?(!("onload"in xe)||!("onerror"in xe)||!("onabort"in xe))&&ce(xe.responseText===""?"error":"load",we):xe.readyState===3?"onprogress"in xe||le():xe.readyState===2&&Pe())},ge=function(){je=r(function(){ge()},500),xe.readyState===3&&le()};"onload"in xe&&(xe.onload=function(we){ce("load",we)}),"onerror"in xe&&(xe.onerror=function(we){ce("error",we)}),"onabort"in xe&&(xe.onabort=function(we){ce("abort",we)}),"onprogress"in xe&&(xe.onprogress=le),"onreadystatechange"in xe&&(xe.onreadystatechange=function(we){ye(we)}),("contentType"in xe||!("ontimeout"in o.prototype))&&(pe+=(pe.indexOf("?")===-1?"?":"&")+"padding=true"),xe.open(se,pe,!0),"readyState"in xe&&(je=r(function(){ge()},0))},S.prototype.abort=function(){this._abort(!1)},S.prototype.getResponseHeader=function(se){return this._contentType},S.prototype.setRequestHeader=function(se,pe){var me=this._xhr;"setRequestHeader"in me&&me.setRequestHeader(se,pe)},S.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},S.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var se=this;se._sendTimeout=r(function(){se._sendTimeout=0,se.send()},4);return}var pe=this._xhr;"withCredentials"in pe&&(pe.withCredentials=this.withCredentials);try{pe.send(void 0)}catch(me){throw me}};function j(se){return se.replace(/[A-Z]/g,function(pe){return String.fromCharCode(pe.charCodeAt(0)+32)})}function E(se){for(var pe=Object.create(null),me=se.split(`\r
|
||
`),xe=0;xe<me.length;xe+=1){var Ce=me[xe],je=Ce.split(": "),Pe=je.shift(),le=je.join(": ");pe[j(Pe)]=le}this._map=pe}E.prototype.get=function(se){return this._map[j(se)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function P(){}P.prototype.open=function(se,pe,me,xe,Ce,je,Pe){se.open("GET",Ce);var le=0;se.onprogress=function(){var ye=se.responseText,ge=ye.slice(le);le+=ge.length,me(ge)},se.onerror=function(ye){ye.preventDefault(),xe(new Error("NetworkError"))},se.onload=function(){xe(null)},se.onabort=function(){xe(null)},se.onreadystatechange=function(){if(se.readyState===o.HEADERS_RECEIVED){var ye=se.status,ge=se.statusText,we=se.getResponseHeader("Content-Type"),Ae=se.getAllResponseHeaders();pe(ye,ge,we,new E(Ae))}},se.withCredentials=je;for(var ce in Pe)Object.prototype.hasOwnProperty.call(Pe,ce)&&se.setRequestHeader(ce,Pe[ce]);return se.send(),se};function N(se){this._headers=se}N.prototype.get=function(se){return this._headers.get(se)};function I(){}I.prototype.open=function(se,pe,me,xe,Ce,je,Pe){var le=null,ce=new y,ye=ce.signal,ge=new v;return d(Ce,{headers:Pe,credentials:je?"include":"same-origin",signal:ye,cache:"no-store"}).then(function(we){return le=we.body.getReader(),pe(we.status,we.statusText,we.headers.get("Content-Type"),new N(we.headers)),new f(function(Ae,Ne){var et=function(){le.read().then(function(nt){if(nt.done)Ae(void 0);else{var Ye=ge.decode(nt.value,{stream:!0});me(Ye),et()}}).catch(function(nt){Ne(nt)})};et()})}).catch(function(we){if(we.name!=="AbortError")return we}).then(function(we){xe(we)}),{abort:function(){le!=null&&le.cancel(),ce.abort()}}};function M(){this._listeners=Object.create(null)}function D(se){r(function(){throw se},0)}M.prototype.dispatchEvent=function(se){se.target=this;var pe=this._listeners[se.type];if(pe!=null)for(var me=pe.length,xe=0;xe<me;xe+=1){var Ce=pe[xe];try{typeof Ce.handleEvent=="function"?Ce.handleEvent(se):Ce.call(this,se)}catch(je){D(je)}}},M.prototype.addEventListener=function(se,pe){se=String(se);var me=this._listeners,xe=me[se];xe==null&&(xe=[],me[se]=xe);for(var Ce=!1,je=0;je<xe.length;je+=1)xe[je]===pe&&(Ce=!0);Ce||xe.push(pe)},M.prototype.removeEventListener=function(se,pe){se=String(se);var me=this._listeners,xe=me[se];if(xe!=null){for(var Ce=[],je=0;je<xe.length;je+=1)xe[je]!==pe&&Ce.push(xe[je]);Ce.length===0?delete me[se]:me[se]=Ce}};function z(se){this.type=se,this.target=void 0}function q(se,pe){z.call(this,se),this.data=pe.data,this.lastEventId=pe.lastEventId}q.prototype=Object.create(z.prototype);function W(se,pe){z.call(this,se),this.status=pe.status,this.statusText=pe.statusText,this.headers=pe.headers}W.prototype=Object.create(z.prototype);function X(se,pe){z.call(this,se),this.error=pe.error}X.prototype=Object.create(z.prototype);var J=-1,te=0,K=1,B=2,F=-1,H=0,ne=1,Y=2,ee=3,ae=/^text\/event\-stream(;.*)?$/i,oe=1e3,fe=18e6,C=function(se,pe){var me=se==null?pe:parseInt(se,10);return me!==me&&(me=pe),A(me)},A=function(se){return Math.min(Math.max(se,oe),fe)},U=function(se,pe,me){try{typeof pe=="function"&&pe.call(se,me)}catch(xe){D(xe)}};function Q(se,pe){M.call(this),pe=pe||{},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,he(this,se,pe)}function Z(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var ie=d!=null&&p!=null&&"body"in p.prototype;function he(se,pe,me){pe=String(pe);var xe=!!me.withCredentials,Ce=me.lastEventIdQueryParameterName||"lastEventId",je=A(1e3),Pe=C(me.heartbeatTimeout,45e3),le="",ce=je,ye=!1,ge=0,we=me.headers||{},Ae=me.Transport,Ne=ie&&Ae==null?void 0:new S(Ae!=null?new Ae:Z()),et=Ae!=null&&typeof Ae!="string"?new Ae:Ne==null?new I:new P,nt=void 0,Ye=0,Gt=J,Ft="",bn="",Qn="",Yi="",kn=H,Sf=0,Ki=0,sm=function(rn,Xt,Jn,Nn){if(Gt===te)if(rn===200&&Jn!=null&&ae.test(Jn)){Gt=K,ye=Date.now(),ce=je,se.readyState=K;var Ln=new W("open",{status:rn,statusText:Xt,headers:Nn});se.dispatchEvent(Ln),U(se,se.onopen,Ln)}else{var un="";rn!==200?(Xt&&(Xt=Xt.replace(/\s+/g," ")),un="EventSource's response has a status "+rn+" "+Xt+" that is not 200. Aborting the connection."):un="EventSource's response has a Content-Type specifying an unsupported type: "+(Jn==null?"-":Jn.replace(/\s+/g," "))+". Aborting the connection.",Ef();var Ln=new W("error",{status:rn,statusText:Xt,headers:Nn});se.dispatchEvent(Ln),U(se,se.onerror,Ln),console.error(un)}},lm=function(rn){if(Gt===K){for(var Xt=-1,Jn=0;Jn<rn.length;Jn+=1){var Nn=rn.charCodeAt(Jn);(Nn===10||Nn===13)&&(Xt=Jn)}var Ln=(Xt!==-1?Yi:"")+rn.slice(0,Xt+1);Yi=(Xt===-1?Yi:"")+rn.slice(Xt+1),rn!==""&&(ye=Date.now(),ge+=rn.length);for(var un=0;un<Ln.length;un+=1){var Nn=Ln.charCodeAt(un);if(kn===F&&Nn===10)kn=H;else if(kn===F&&(kn=H),Nn===13||Nn===10){if(kn!==H){kn===ne&&(Ki=un+1);var Oi=Ln.slice(Sf,Ki-1),Si=Ln.slice(Ki+(Ki<un&&Ln.charCodeAt(Ki)===32?1:0),un);Oi==="data"?(Ft+=`
|
||
`,Ft+=Si):Oi==="id"?bn=Si:Oi==="event"?Qn=Si:Oi==="retry"?(je=C(Si,je),ce=je):Oi==="heartbeatTimeout"&&(Pe=C(Si,Pe),Ye!==0&&(i(Ye),Ye=r(function(){Ss()},Pe)))}if(kn===H){if(Ft!==""){le=bn,Qn===""&&(Qn="message");var Rn=new q(Qn,{data:Ft.slice(1),lastEventId:bn});if(se.dispatchEvent(Rn),Qn==="open"?U(se,se.onopen,Rn):Qn==="message"?U(se,se.onmessage,Rn):Qn==="error"&&U(se,se.onerror,Rn),Gt===B)return}Ft="",Qn=""}kn=Nn===13?F:H}else kn===H&&(Sf=un,kn=ne),kn===ne?Nn===58&&(Ki=un+1,kn=Y):kn===Y&&(kn=ee)}}},um=function(rn){if(Gt===K||Gt===te){Gt=J,Ye!==0&&(i(Ye),Ye=0),Ye=r(function(){Ss()},ce),ce=A(Math.min(je*16,ce*2)),se.readyState=te;var Xt=new X("error",{error:rn});se.dispatchEvent(Xt),U(se,se.onerror,Xt),rn!=null&&console.error(rn)}},Ef=function(){Gt=B,nt!=null&&(nt.abort(),nt=void 0),Ye!==0&&(i(Ye),Ye=0),se.readyState=B},Ss=function(){if(Ye=0,Gt!==J){if(!ye&&nt!=null)um(new Error("No activity within "+Pe+" milliseconds. "+(Gt===te?"No response received.":ge+" chars received.")+" Reconnecting.")),nt!=null&&(nt.abort(),nt=void 0);else{var rn=Math.max((ye||Date.now())+Pe-Date.now(),1);ye=!1,Ye=r(function(){Ss()},rn)}return}ye=!1,ge=0,Ye=r(function(){Ss()},Pe),Gt=te,Ft="",Qn="",bn=le,Yi="",Sf=0,Ki=0,kn=H;var Xt=pe;if(pe.slice(0,5)!=="data:"&&pe.slice(0,5)!=="blob:"&&le!==""){var Jn=pe.indexOf("?");Xt=Jn===-1?pe:pe.slice(0,Jn+1)+pe.slice(Jn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Si,Rn){return Rn===Ce?"":Si}),Xt+=(pe.indexOf("?")===-1?"?":"&")+Ce+"="+encodeURIComponent(le)}var Nn=se.withCredentials,Ln={};Ln.Accept="text/event-stream";var un=se.headers;if(un!=null)for(var Oi in un)Object.prototype.hasOwnProperty.call(un,Oi)&&(Ln[Oi]=un[Oi]);try{nt=et.open(Ne,sm,lm,um,Xt,Nn,Ln)}catch(Si){throw Ef(),Si}};se.url=pe,se.readyState=te,se.withCredentials=xe,se.headers=we,se._close=Ef,Ss()}Q.prototype=Object.create(M.prototype),Q.prototype.CONNECTING=te,Q.prototype.OPEN=K,Q.prototype.CLOSED=B,Q.prototype.close=function(){this._close()},Q.CONNECTING=te,Q.OPEN=K,Q.CLOSED=B,Q.prototype.withCredentials=void 0;var Se=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Se=Q),function(se){{var pe=se(t);pe!==void 0&&(e.exports=pe)}}(function(se){se.EventSourcePolyfill=Q,se.NativeEventSource=l,se.EventSource=Se})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Mu:globalThis)})(fS,fS.exports);var Ude=fS.exports;const Bde=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:d})=>n(JSON.parse(d)),u=({status:d})=>d===401&&r(),f=t.map(d=>{const p=new URL(i);p.searchParams.append("topic",d);const v=new Ude.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return v.onmessage=l,v.onerror=u,v});return()=>f.forEach(d=>d.close())};function Gi(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=qc();return R.useEffect(()=>{const{interval:l}=a,u=v=>l?n.add(v):i([v]),f=t(s),d=Bde(a,f,u,o);if(!l)return d;const p=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return()=>{clearInterval(p),d==null||d()}},[i,o,a,s]),m.jsx(e,{...r})}}class cr{}Ya(cr,"visits","https://shlink.io/new-visit"),Ya(cr,"orphanVisits","https://shlink.io/new-orphan-visit"),Ya(cr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const dC="shlink/shortUrlDeletion",CL={shortCode:"",loading:!1,deleted:!1,error:!1},zde=e=>gn(`${dC}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),KF=mn(`${dC}/shortUrlDeleted`),Vde=e=>{const{actions:t,reducer:n}=nn({name:dC,initialState:CL,reducers:{resetDeleteShortUrl:()=>CL},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Gr(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},XF="shlink/shortUrlsList",QF=5,Hde={loading:!0,error:!1},Wde=e=>gn(`${XF}/listShortUrls`,t=>e().listShortUrls(t??{})),Gde=(e,t,n)=>nn({name:XF,initialState:Hde,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,QF-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Bd(a,s,l)?o:a}))}),r.addCase(KF,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Bd(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(nf,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:l})=>l&&Bd(a,l.shortCode,l.domain)))==null?void 0:s.shortUrl)??a}))})}}),PL=10,{ceil:qde}=Math,Zde=new Intl.NumberFormat("en-US"),Yt=e=>Zde.format(Number(e)),Yde=e=>qde(e/PL)*PL,Kde={field:"dateCreated",dir:"DESC"},JF={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Kde}},e1=R.createContext(JF),Xde=e1.Provider,hC=()=>R.useContext(e1)??JF,ys=e=>hC()[e],dS=({children:e,title:t,link:n,tooltip:r})=>{const i=la();return m.jsxs(m.Fragment,{children:[m.jsxs(Er,{innerRef:i,className:"highlight-card",body:!0,tag:Et,to:n,children:[m.jsx(Te,{size:"3x",className:"highlight-card__link-icon",icon:kue}),m.jsx(r7,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),m.jsx(n7,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&m.jsx(Tr,{target:i,placement:"bottom",children:r})]})},AL=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(dS,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:Yt(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Yt(t&&n.nonBots?n.nonBots:n.total)}),t1=Gi(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=Dt(t1),{loading:s,shortUrls:l}=e,{loading:u}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,v=gs(),g=Oo(),y=ys("visits");return R.useEffect(()=>{t({itemsPerPage:QF,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),m.jsxs(m.Fragment,{children:[m.jsxs(ir,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(AL,{title:"Visits",link:`${v}/non-orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:f,visitsSummary:d})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(AL,{title:"Orphan visits",link:`${v}/orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:f,visitsSummary:p})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(dS,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:s?"Loading...":Yt((l==null?void 0:l.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(dS,{title:"Tags",link:`${v}/manage-tags`,children:u?"Loading...":Yt(n.tags.length)})})]}),m.jsxs(Er,{className:"mb-3",children:[m.jsxs(mc,{children:[m.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),m.jsx(Et,{className:"float-end",to:`${v}/create-short-url`,children:"Advanced options »"})]}),m.jsx(pc,{children:m.jsx(a,{basicMode:!0})})]}),m.jsxs(Er,{children:[m.jsxs(mc,{children:[m.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),m.jsx(Et,{className:"float-end",to:`${v}/list-short-urls/1`,children:"See all »"})]}),m.jsx(pc,{children:m.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>g(`${v}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[cr.visits,cr.orphanVisits]),Qde=$t(t1,["ShortUrlsTable","CreateShortUrl"]);function Jde(e,t){e.factory("Overview",Qde),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const n1="shlink/setShortUrlRedirectRules",kL={saving:!1,saved:!1,error:!1},ehe=e=>gn(`${n1}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),the=e=>{const{reducer:t,actions:n}=nn({name:n1,initialState:kL,reducers:{resetSetRules:()=>kL},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Gr(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},r1="shlink/getShortUrlRedirectRules",nhe={loading:!0,error:!1},rhe=e=>gn(`${r1}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),ihe=e=>nn({name:r1,initialState:nhe,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}))}}),gb=()=>{const e=Oo(),t=gs(),n=Up(),r=R.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:u,...f}=n,d=o?fle(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...f,orderBy:d,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=R.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:u,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,v={...p,orderBy:s&&cle(s),tags:l.length>0?l.join(","):void 0,excludeBots:Tx(u),excludeMaxVisitsReached:Tx(f),excludePastValidUntil:Tx(d)},g=ob(v),y=g?`?${g}`:"";e(`${t}/list-short-urls/1${y}`)},[r,e,t]);return[r,i]},pC=()=>{const{domain:e}=Up(),{shortCode:t=""}=qc();return R.useMemo(()=>({shortCode:tC(t),domain:e}),[e,t])},yb=()=>{const e=Cde();return m.jsx(Ze,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:m.jsx(Te,{icon:OK})})},ohe={android:"Android",ios:"iOS",desktop:"Desktop"},ahe=({deviceType:e,onDeviceTypeChange:t})=>{const n=R.useId();return m.jsxs("div",{children:[m.jsx("label",{htmlFor:n,children:"Device type:"}),m.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&m.jsx("option",{value:"",children:"- Select type -"}),Object.entries(ohe).map(([r,i])=>m.jsx("option",{value:r,children:i},r))]})]})},she=({language:e,onLanguageChange:t})=>{const n=R.useId();return m.jsxs("div",{children:[m.jsx("label",{htmlFor:n,children:"Language:"}),m.jsx(qn,{id:n,value:e??"",onChange:r=>t(r.target.value),placeholder:"en-US / en",required:!0})]})},lhe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=R.useId(),o=R.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:i,children:"Param name:"}),m.jsx(qn,{id:i,value:e??"",onChange:a=>n(a.target.value),placeholder:"hello",required:!0})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:o,children:"Param value:"}),m.jsx(qn,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},uhe={device:"Device type",language:"Language","query-param":"Query param"},che=({condition:e,onConditionChange:t,onDelete:n})=>{const r=R.useId(),i=R.useCallback(s=>t({type:s,matchValue:"",matchKey:null}),[t]),o=R.useCallback(s=>t({...e,matchValue:s}),[e,t]),a=R.useCallback(s=>t({...e,matchKey:s}),[e,t]);return m.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2",children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:r,children:"Type:"}),m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:s=>i(s.target.value),children:Object.entries(uhe).map(([s,l])=>m.jsx("option",{value:s,children:l},s))}),m.jsx(Ze,{outline:!0,color:"danger",type:"button","aria-label":"Delete condition",onClick:n,children:m.jsx(Te,{icon:$8})})]})]}),e.type==="device"&&m.jsx(ahe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&m.jsx(she,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&m.jsx(lhe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o})]})},i1=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=R.useState(r??{longUrl:"",conditions:[]}),a=R.useCallback(v=>{v.preventDefault(),v.stopPropagation(),i&&n(i),t()},[n,i,t]),s=R.useCallback(()=>o(({longUrl:v,conditions:g})=>({longUrl:v,conditions:[...g,{type:"device",matchValue:"",matchKey:null}]})),[]),l=R.useCallback((v,g)=>o(({longUrl:y,conditions:w})=>{const b=[...w];return b[v]=g,{longUrl:y,conditions:b}}),[]),u=R.useCallback(v=>o(({longUrl:g,conditions:y})=>{const w=[...y];return w.splice(v,1),{longUrl:g,conditions:w}}),[]),f=la(),d=R.useCallback(()=>{var v;return(v=f==null?void 0:f.current)==null?void 0:v.focus()},[f]),p=R.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return m.jsx(So,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:d,onClosed:p,children:m.jsxs("form",{onSubmit:a,children:[m.jsx(Eo,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),m.jsxs(Wi,{children:[m.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),m.jsx(qn,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:v=>o(g=>({...g,longUrl:v.target.value})),required:!0,innerRef:f}),m.jsx("hr",{}),m.jsxs("div",{className:"d-flex justify-content-between",children:[m.jsx("b",{children:"Conditions:"}),m.jsx(Ze,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:m.jsx(Te,{icon:Cp})})]}),i.conditions.length===0&&m.jsx("div",{className:"text-center",children:m.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&m.jsx(ir,{children:i.conditions.map((v,g)=>m.jsx("div",{className:"col-lg-6 col-xl-4 mt-3",children:m.jsx(che,{condition:v,onConditionChange:y=>l(g,y),onDelete:()=>u(g)})},`${g}_${v.type}`))})]}),m.jsxs(ms,{className:"sticky-bottom redirect-rule-modal__footer",children:[m.jsx(Ze,{type:"button",color:"link",onClick:t,children:"Cancel"}),m.jsx(Ze,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},fhe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,l]=Kt();return m.jsxs(wt,{children:[m.jsxs("div",{className:"d-flex align-content-center gap-3",children:[m.jsxs("div",{className:"d-flex flex-column my-auto",children:[m.jsx(Ze,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"rounded-0 rounded-top",style:{marginBottom:"-1px"},children:m.jsx(Te,{icon:HK})}),m.jsx(Ze,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"rounded-0 rounded-bottom",children:m.jsx(Te,{icon:FK})})]}),m.jsxs("div",{className:"flex-grow-1",children:[m.jsxs("div",{className:"mb-2",children:[m.jsx("b",{children:"Long URL:"})," ",m.jsx(di,{href:n.longUrl,"data-testid":"rule-long-url"})]}),m.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[m.jsx("b",{children:"Conditions:"}),n.conditions.map((u,f)=>m.jsxs("div",{className:"badge bg-secondary",children:[u.type==="device"&&m.jsxs(m.Fragment,{children:["Device is ",u.matchValue]}),u.type==="language"&&m.jsxs(m.Fragment,{children:[u.matchValue," language is accepted"]}),u.type==="query-param"&&m.jsxs(m.Fragment,{children:["Query string contains ",u.matchKey,"=",u.matchValue]})]},`${u.type}_${f}`))]})]}),m.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[m.jsx(Ze,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:l,children:m.jsx(Te,{icon:F8})}),m.jsx(Ze,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:m.jsx(Te,{icon:$8})})]})]}),m.jsx(i1,{onSave:a,isOpen:s,toggle:l,initialData:n})]})},dhe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=pC(),{shortUrls:l}=r,u=s&&(l==null?void 0:l.get(s)),[f,d]=R.useState(),p=f&&f.length>0,{saving:v,saved:g,errorData:y}=o,[w,b]=Kt(),x=R.useCallback(I=>d((M=[])=>[...M,I]),[]),_=R.useCallback(I=>d((M=[])=>{const D=[...M];return D.splice(I,1),D}),[]),S=R.useCallback((I,M)=>d((D=[])=>{const z=[...D];return z[I]=M,z}),[]),j=R.useCallback((I,M)=>d((D=[])=>{if(!D[M])return D;const z=[...D],q=z[M];return z[M]=z[I],z[I]=q,z}),[]),E=R.useCallback(I=>j(I,I-1),[j]),P=R.useCallback(I=>j(I,I+1),[j]),N=R.useCallback(I=>{I.preventDefault(),f&&i({shortUrl:s,data:{redirectRules:f}})},[s,f,i]);return R.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),R.useEffect(()=>{e.redirectRules&&d(e.redirectRules)},[e.redirectRules]),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx("header",{children:m.jsxs(Er,{body:!0,children:[m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(yb,{}),m.jsxs("div",{className:"text-center flex-grow-1",children:[r.loading&&m.jsx(m.Fragment,{children:"Loading..."}),!r.loading&&m.jsxs("small",{children:["Redirect rules for ",m.jsx(di,{href:(u==null?void 0:u.shortUrl)??""})]})]})]}),m.jsx("hr",{}),m.jsxs("div",{children:[m.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",m.jsx(di,{href:e.defaultLongUrl??""})]})]})}),m.jsx("div",{children:m.jsxs(Ze,{outline:!0,color:"primary",onClick:b,children:[m.jsx(Te,{icon:Cp,className:"me-1"})," Add rule"]})}),m.jsxs("form",{onSubmit:N,children:[e.loading&&m.jsx(Jo,{loading:!0}),!p&&!e.loading&&m.jsx(wt,{className:"text-center",children:m.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),m.jsx("div",{className:"d-flex flex-column gap-2",children:f==null?void 0:f.map((I,M)=>m.jsx(fhe,{redirectRule:I,priority:M+1,isLast:M===f.length-1,onDelete:()=>_(M),onMoveUp:()=>E(M),onMoveDown:()=>P(M),onUpdate:D=>S(M,D)},`${I.longUrl}_${M}`))}),m.jsx("div",{className:"text-center mt-3",children:m.jsx(Ze,{outline:!0,color:"primary",className:"btn-sm-block",disabled:v,"data-testid":"save-button",children:v?"Saving...":"Save rules"})})]}),y&&m.jsx(ur,{type:"error",children:m.jsx(_o,{errorData:y,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),g&&m.jsx(ur,{type:"success",children:"Redirect rules properly saved."}),m.jsx(i1,{isOpen:w,toggle:b,onSave:x})]})},hhe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>dhe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",rhe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",ehe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",ihe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",the,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},phe=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}),o1=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=Dt(o1),a=ys("shortUrlCreation"),s=R.useMemo(()=>phe(a),[a]);return m.jsxs(m.Fragment,{children:[m.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async l=>(n(),e(l))}),m.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},mhe=$t(o1,["ShortUrlForm","CreateShortUrlResult"]),a1=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Dt(a1),o=pC(),{loading:a,error:s,errorData:l,shortUrls:u}=e,f=o&&(u==null?void 0:u.get(o)),{saving:d,saved:p,error:v,errorData:g}=n,y=ys("shortUrlCreation"),w=R.useMemo(()=>dce(f,y),[f,y]);return R.useEffect(()=>{o&&t([o])},[t,o]),a?m.jsx(Jo,{loading:!0}):s?m.jsx(ur,{type:"error",children:m.jsx(_o,{errorData:l,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(Er,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(yb,{}),m.jsx("div",{className:"text-center flex-grow-1",children:m.jsxs("small",{children:["Edit ",m.jsx(di,{href:(f==null?void 0:f.shortUrl)??""})]})})]})})}),m.jsx(i,{initialState:w,saving:d,onSave:async b=>{f&&r({...f,data:b})}}),p&&v&&m.jsx(ur,{type:"error",className:"mt-3",children:m.jsx(_o,{errorData:g,fallbackMessage:"An error occurred while updating short URL :("})}),p&&!v&&m.jsx(ur,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},vhe=$t(a1,["ShortUrlForm"]),s1=({text:e,onCopy:t},n=navigator)=>{var r;return(r=n.clipboard)==null?void 0:r.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},l1=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=Dt(l1),[i,o]=r(),{error:a,saved:s}=e;if(R.useEffect(()=>{t()},[t]),a)return m.jsxs(ur,{type:"error",className:"mt-3",children:[n&&m.jsx(Te,{"data-testid":"error-close-button",icon:v2,className:"float-end pointer",onClick:t}),m.jsx(_o,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return m.jsxs(ur,{type:"success",className:"mt-3",children:[n&&m.jsx(Te,{"data-testid":"success-close-button",icon:v2,className:"float-end pointer",onClick:t}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:l})]}),m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>s1({text:l,onCopy:o}),children:[m.jsx(Te,{icon:lF})," Copy ",m.jsxs("span",{className:"sr-only",children:[l," to clipboard"]})]}),m.jsx(Ip,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},ghe=$t(l1,["useTimeoutToggle"]),Ax="delete",yhe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=R.useState("");R.useEffect(()=>i,[i]);const{loading:u,error:f,deleted:d,errorData:p}=r,v=R.useCallback(()=>{i(),t()},[i,t]),g=R.useCallback(y=>(y.preventDefault(),o(e).then(t)),[o,e,t]);return m.jsx(So,{isOpen:n,toggle:v,centered:!0,onClosed:()=>d&&a(e),children:m.jsxs("form",{onSubmit:g,children:[m.jsx(Eo,{toggle:v,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(Wi,{children:[m.jsxs("p",{children:[m.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),m.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),m.jsxs("p",{children:["Write ",m.jsx("b",{children:Ax})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${Ax}`,value:s,onChange:y=>l(y.target.value)}),f&&m.jsx(ur,{type:oce(p)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(_o,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(ms,{children:[m.jsx("button",{type:"button",className:"btn btn-link",onClick:v,children:"Cancel"}),m.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==Ax||u,children:u?"Deleting...":"Delete"})]})]})})},u1=({amount:e=0,loading:t=!1,...n})=>m.jsxs(Ze,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(Te,{icon:aK})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",Yt(e),")"]})]}),NL=20,c1=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Dt(c1),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=gb(),[u,,f,d]=Kt(),p=R.useCallback(async()=>{const v=e/NL,g=async(w=1)=>{const{data:b}=await t().listShortUrls({page:`${w}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:NL});return w>=v?b:b.concat(await g(w+1))};f();const y=await g();n.exportShortUrls(y.map(w=>{var b;const{hostname:x,pathname:_}=new URL(w.shortUrl),S=_.substring(1);return{createdAt:w.dateCreated,domain:x,shortCode:S,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((b=w==null?void 0:w.visitsSummary)==null?void 0:b.total)??w.visitsCount??0}})),d()},[e,t,a,s,n,i,o,f,d,r,l]);return m.jsx(u1,{loading:u,className:"btn-md-block",amount:e,onClick:p})},bhe=$t(c1,["apiClientFactory","ReportExporter"]),f1=({text:e,onCopy:t,copyToClipboard:n=s1})=>m.jsx(jl,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:m.jsx(Te,{icon:lF,className:"fs-5"})}),_he=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=ob({...n,margin:t>0?t:void 0});return`${r}${i?`?${i}`:""}`},xhe=({errorCorrection:e,setErrorCorrection:t})=>m.jsxs(ua,{text:`Error correction (${e})`,children:[m.jsxs(ke,{active:e==="L",onClick:()=>t("L"),children:[m.jsx("b",{children:"L"}),"ow"]}),m.jsxs(ke,{active:e==="M",onClick:()=>t("M"),children:[m.jsx("b",{children:"M"}),"edium"]}),m.jsxs(ke,{active:e==="Q",onClick:()=>t("Q"),children:[m.jsx("b",{children:"Q"}),"uartile"]}),m.jsxs(ke,{active:e==="H",onClick:()=>t("H"),children:[m.jsx("b",{children:"H"}),"igh"]})]}),whe=({format:e,setFormat:t})=>m.jsxs(ua,{text:`Format (${e})`,children:[m.jsx(ke,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(ke,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),d1=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=Dt(d1),[o,a]=R.useState(300),[s,l]=R.useState(0),[u,f]=R.useState("png"),[d,p]=R.useState("L"),v=R.useMemo(()=>_he(e,{size:o,format:u,margin:s,errorCorrection:d}),[e,o,u,s,d]),g=R.useMemo(()=>o+s,[o,s]),y=R.useMemo(()=>{if(!(g<500))return g<800?"lg":"xl"},[g]);return m.jsxs(So,{isOpen:r,toggle:n,centered:!0,size:y,children:[m.jsxs(Eo,{toggle:n,children:["QR code for ",m.jsx(di,{href:e,children:e})]}),m.jsxs(Wi,{children:[m.jsxs(ir,{children:[m.jsxs(lo,{className:"d-grid col-md-6",children:[m.jsxs("label",{htmlFor:"sizeControl",children:["Size: ",o,"px"]}),m.jsx("input",{id:"sizeControl",type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:w=>a(Number(w.target.value))})]}),m.jsxs(lo,{className:"d-grid col-md-6",children:[m.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),m.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:w=>l(Number(w.target.value))})]}),m.jsx(lo,{className:"d-grid col-md-6",children:m.jsx(whe,{format:u,setFormat:f})}),m.jsx(lo,{className:"col-md-6",children:m.jsx(xhe,{errorCorrection:d,setErrorCorrection:p})})]}),m.jsxs("div",{className:"text-center",children:[m.jsxs("div",{className:"mb-3",children:[m.jsx(di,{href:v}),m.jsx(f1,{text:v})]}),m.jsx("img",{src:v,className:"qr-code-modal__img",alt:"QR code"}),m.jsx("div",{className:"mt-3",children:m.jsxs(Ze,{block:!0,color:"primary",onClick:()=>{i.saveImage(v,`${t}-qr-code.${u}`).catch(()=>{})},children:["Download ",m.jsx(Te,{icon:V8,className:"ms-1"})]})})]})]})]})},Ohe=$t(d1,["ImageDownloader"]),Ey=({date:e,format:t=IF,relative:n=!1})=>{const r=aC(e)?e:os(e);return m.jsx("time",{dateTime:`${Pfe(r)}000`,children:n?`${Tfe(as(),r)} ago`:xy(r,t)})},She=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n??0;return i&&s>=i?{icon:QK,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",m.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&wy(Ir(a),as())?{icon:s3,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:Mh(Ir(a))}),"."]})}:o&&wy(as(),Ir(o))?{icon:s3,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:Mh(Ir(o))}),"."]})}:{icon:gh,className:"text-primary",description:"This short URL can be visited normally."}},Ehe=({shortUrl:e})=>{const t=la(),{icon:n,className:r,description:i}=She(e);return m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:m.jsx(Te,{icon:n,className:r})}),m.jsx(Tr,{target:t,placement:"bottom",children:i})]})},jhe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${SF(t)}/${r}${i}`},ng=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=gs();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(Et,{to:jhe(o,e,t),...i,children:r})},h1=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=la(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,u=m.jsx(ng,{shortUrl:t,suffix:"visits",asLink:r,children:m.jsx("strong",{className:De("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Yt(e)})});return l?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[u,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&m.jsxs(m.Fragment,{children:[" / ",Yt(o)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(Te,{icon:Jj})})]})]}),m.jsx(Tr,{target:i,placement:"bottom",children:m.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",m.jsx("b",{children:Yt(o)})," visit",o===1?"":"s","."]}),a&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",m.jsx("b",{className:"indivisible",children:Mh(Ir(a))}),"."]}),s&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",m.jsx("b",{className:"indivisible",children:Mh(Ir(s))}),"."]})]})})]}):u},The=e=>!!e.onClose,Che=e=>!!e.onClick,bb=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=Che(e),a=o?jl:"span",s=R.useMemo(()=>i.stylesForKey(t),[t,i]);return m.jsxs(a,{className:De("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,The(e)&&m.jsx(jl,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},Phe=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?m.jsx("i",{className:"indivisible",children:m.jsx("small",{children:"No tags"})}):m.jsx(m.Fragment,{children:e.map(r=>m.jsx(bb,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),p1=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=Dt(p1),[u,f]=l(),[d,p]=l(!1,500),v=R.useRef(!0),[{excludeBots:g}]=gb(),y=ys("visits"),w=g??(y==null?void 0:y.excludeBots);return R.useEffect(()=>{!v.current&&p(),v.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,p]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:m.jsx(Ey,{date:e.dateCreated})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:m.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[m.jsx("span",{className:"short-urls-row__short-url-wrapper",children:m.jsx(di,{href:e.shortUrl})}),m.jsx(f1,{text:e.shortUrl,onCopy:f}),m.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:m.jsx(di,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&m.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:m.jsx(di,{href:e.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(Phe,{tags:e.tags,colorGenerator:s,onTagClick:t})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:m.jsx(h1,{visitsCount:(w?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount??0,shortUrl:e,active:d,asLink:!0})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:m.jsx(Ehe,{shortUrl:e})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(a,{shortUrl:e})})]})},Ahe=$t(p1,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),khe=/^[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(khe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},RL=e=>e==="*"||e==="x"||e==="X",ML=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Nhe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Lhe=(e,t)=>{if(RL(e)||RL(t))return 0;const[n,r]=Nhe(ML(e),ML(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=Lhe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},Rhe=(e,t)=>{const n=LL(e),r=LL(t),i=n.pop(),o=r.pop(),a=IL(n,r);return a!==0?a:i&&o?IL(i.split("."),o.split(".")):i||o?i?-1:1:0},DL=(e,t,n)=>{Mhe(n);const r=Rhe(e,t);return m1[n].includes(r)},m1={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},$L=Object.keys(m1),Mhe=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("|")}`)},Ihe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||DL(e,n,">=");return(!t||DL(e,t,"<="))&&r},v1={excludeBotsOnShortUrls:{minVersion:"3.4.0"},filterDisabledUrls:{minVersion:"3.4.0"},deviceLongUrls:{minVersion:"3.5.0",maxVersion:"3.*.*"},shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},shortUrlRedirectRules:{minVersion:"4.0.0"}};Object.freeze(v1);const su=(e,t)=>t==="latest"||Ihe(t,v1[e]),g1=e=>({excludeBotsOnShortUrls:su("excludeBotsOnShortUrls",e),filterDisabledUrls:su("filterDisabledUrls",e),deviceLongUrls:su("deviceLongUrls",e),shortUrlVisitsDeletion:su("shortUrlVisitsDeletion",e),orphanVisitsDeletion:su("orphanVisitsDeletion",e),shortUrlRedirectRules:su("shortUrlRedirectRules",e)}),y1=R.createContext(g1("0.0.0")),Dhe=y1.Provider,$he=e=>R.useMemo(()=>g1(e),[e]),Il=e=>R.useContext(y1)[e],b1=({shortUrl:e})=>{const{DeleteShortUrlModal:t,QrCodeModal:n}=Dt(b1),[r,,i,o]=Kt(),[a,,s,l]=Kt(),u=pb(),f=Il("shortUrlRedirectRules");return m.jsxs(sb,{minWidth:f?220:190,children:[m.jsxs(ke,{tag:ng,shortUrl:e,suffix:"visits",asLink:!0,children:[m.jsx(Te,{icon:Qj,fixedWidth:!0})," Visit stats"]}),u&&m.jsxs(m.Fragment,{children:[m.jsxs(ke,{disabled:!u.canAddItemWithName(e.shortUrl),onClick:()=>u.addItemToCompare({name:e.shortUrl,query:nC(e)}),children:[m.jsx(Te,{icon:K0,fixedWidth:!0})," Compare visits"]}),m.jsx(ke,{divider:!0,tag:"hr"})]}),m.jsxs(ke,{tag:ng,shortUrl:e,suffix:"edit",asLink:!0,children:[m.jsx(Te,{icon:Xj,fixedWidth:!0})," Edit short URL"]}),f&&m.jsxs(ke,{tag:ng,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[m.jsx(Te,{icon:eX,fixedWidth:!0})," Manage redirect rules"]}),m.jsxs(ke,{onClick:i,children:[m.jsx(Te,{icon:KK,fixedWidth:!0})," QR code"]}),m.jsx(n,{shortUrl:e,isOpen:r,toggle:o}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{className:"dropdown-item--danger",onClick:s,children:[m.jsx(Te,{icon:Kj,fixedWidth:!0})," Delete short URL"]}),m.jsx(t,{shortUrl:e,isOpen:a,toggle:l})]})},Fhe=$t(b1,["DeleteShortUrlModal","QrCodeModal"]),_1="shlink/shortUrlCreation",FL={saving:!1,saved:!1,error:!1},Uhe=e=>gn(`${_1}/createShortUrl`,t=>e().createShortUrl(t)),Bhe=e=>{const{reducer:t,actions:n}=nn({name:_1,initialState:FL,reducers:{resetCreateShortUrl:()=>FL},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Gr(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},x1="shlink/shortUrlEdition",zhe={saving:!1,saved:!1,error:!1},Vhe=e=>gn(`${x1}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),Hhe=e=>nn({name:x1,initialState:zhe,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:Gr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),UL="shlink/shortUrlsDetails",BL={loading:!1,error:!1},Whe=e=>{const t=gn(`${UL}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var l;const{shortCode:u,domain:f}=s,d=(l=o==null?void 0:o.shortUrls)==null?void 0:l.data.find(p=>Bd(p,u,f));return[s,d??await e().getShortUrl(u,f)]}));return new Map(a)}),{reducer:n}=nn({name:UL,initialState:BL,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Gr(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...BL,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},kx=({icon:e,className:t,...n})=>{const r=la();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(qn,{className:De("icon-input-container__input",t),innerRef:r,...n}),m.jsx(Te,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},Ghe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=R.useCallback(({target:l})=>{if(!l.value){r==null||r(null);return}r==null||r(Ir(l.value))},[r]),s=R.useMemo(()=>i?Mh:Ia,[i]);return m.jsx(qn,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},jy=({label:e,id:t,...n})=>{const r=R.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),m.jsx(Ghe,{id:t??r,...n})]})},Nx=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx(F7,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(tg,{placement:"right",children:t})]}),qhe=({isOpen:e,toggle:t})=>m.jsxs(So,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(Eo,{toggle:t,children:"Info"}),m.jsxs(Wi,{children:[m.jsxs("p",{children:["When the ",m.jsx("b",{children:m.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),m.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),m.jsxs("ul",{children:[m.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."}),m.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.",m.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),m.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"})]})]})]}),Zhe=()=>{const[e,t]=Kt();return m.jsxs(m.Fragment,{children:[m.jsx(jl,{className:"p-0",title:"What does this mean?",onClick:t,children:m.jsx(Te,{icon:Jj})}),m.jsx(qhe,{isOpen:e,toggle:t})]})},hv=e=>typeof e=="string"?os(e):e,Yhe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Khe=e=>"error"in e,w1=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i})=>{var o,a,s;const{TagsSelector:l,DomainSelector:u}=Dt(w1),[f,d]=R.useState(r),p=Yhe(f),v=Il("deviceLongUrls"),g=R.useCallback(()=>d(r),[r]),y=R.useCallback((S,j)=>qs(S)?S:qs(j)?null:void 0,[]),w=R.useCallback((S,j)=>d(({deviceLongUrls:E={},...P})=>{var N;return{...P,deviceLongUrls:{...E,[S]:y(j,(N=r.deviceLongUrls)==null?void 0:N[S])}}}),[r.deviceLongUrls,y]),b=R.useCallback(S=>d(j=>({...j,tags:S})),[]),x=R.useCallback(async S=>(S.preventDefault(),n(f).then(j=>p&&!Khe(j)&&g()).catch(()=>{})),[p,n,g,f]),_=R.useMemo(()=>m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(qn,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:S=>d(j=>({...j,longUrl:S.target.value}))}),m.jsxs("div",{className:De("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&p&&m.jsx("div",{className:"w-100 w-lg-50",children:m.jsx(qn,{bsSize:"lg",placeholder:"Custom slug",value:f.customSlug??"",onChange:S=>d(j=>({...j,customSlug:S.target.value}))})}),m.jsx("div",{className:De("w-100",{"w-lg-50":e}),children:m.jsx(l,{tags:i.tags,selectedTags:f.tags??[],onChange:b})})]})]}),[l,e,b,p,f,i.tags]);return m.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[e&&_,!e&&m.jsxs(m.Fragment,{children:[m.jsxs(ir,{children:[m.jsx("div",{className:De("mb-3",{"col-sm-6":v,"col-12":!v}),children:m.jsx(wt,{title:"Main options",children:_})}),v&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(wt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(kx,{type:"url",icon:Rue,placeholder:"Android-specific redirection",value:((o=f.deviceLongUrls)==null?void 0:o.android)??"",onChange:({target:S})=>w("android",S.value)}),m.jsx(kx,{type:"url",icon:Lue,placeholder:"iOS-specific redirection",value:((a=f.deviceLongUrls)==null?void 0:a.ios)??"",onChange:({target:S})=>w("ios",S.value)}),m.jsx(kx,{type:"url",icon:JK,placeholder:"Desktop-specific redirection",value:((s=f.deviceLongUrls)==null?void 0:s.desktop)??"",onChange:({target:S})=>w("desktop",S.value)})]})})]}),m.jsxs(ir,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(wt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(qn,{placeholder:"Title",value:f.title??"",onChange:({target:S})=>d(j=>({...j,title:y(S.value,r.title)}))}),p&&m.jsxs(m.Fragment,{children:[m.jsxs(ir,{children:[m.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:m.jsx(qn,{placeholder:"Custom slug",value:f.customSlug??"",onChange:S=>d(j=>({...j,customSlug:S.target.value})),disabled:qs(f.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(qn,{type:"number",placeholder:"Short code length",value:f.shortCodeLength??"",onChange:S=>d(j=>({...j,shortCodeLength:S.target.value})),min:4,disabled:qs(f.customSlug)})})]}),m.jsx(u,{value:f.domain,onChange:S=>d(j=>({...j,domain:S}))})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(wt,{title:"Limit access to the short URL",children:[m.jsxs("div",{className:"row mb-3",children:[m.jsx("div",{className:"col-lg-6",children:m.jsx(jy,{label:"Enabled since",withTime:!0,maxDate:f.validUntil?hv(f.validUntil):void 0,value:f.validSince?hv(f.validSince):null,onChange:S=>d(j=>({...j,validSince:ss(S)}))})}),m.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:m.jsx(jy,{label:"Enabled until",withTime:!0,minDate:f.validSince?hv(f.validSince):void 0,value:f.validUntil?hv(f.validUntil):null,onChange:S=>d(j=>({...j,validUntil:ss(S)}))})})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),m.jsx(qn,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:f.maxVisits??"",onChange:S=>d(j=>({...j,maxVisits:qs(S.target.value)?Number(S.target.value):null}))})]})]})})]}),m.jsxs(ir,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(wt,{title:"Extra checks",children:[m.jsx(Nx,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:S=>d(j=>({...j,validateUrl:S})),children:"Validate URL"}),p&&m.jsxs("p",{children:[m.jsx(F7,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:S=>d(j=>({...j,findIfExists:S})),children:"Use existing URL if found"}),m.jsx(Zhe,{})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(wt,{title:"Configure behavior",children:[m.jsx(Nx,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:f.crawlable,onChange:S=>d(j=>({...j,crawlable:S})),children:"Make it crawlable"}),m.jsx(Nx,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:S=>d(j=>({...j,forwardQuery:S})),children:"Forward query params on redirect"})]})})]})]}),m.jsx("div",{className:"text-center",children:m.jsx(Ze,{outline:!0,color:"primary",disabled:t||!f.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},Xhe=$t(w1,["TagsSelector","DomainSelector"]),Qhe=({active:e,allText:t,onChange:n})=>m.jsxs(m.Fragment,{children:[m.jsx(ke,{active:e==="all",onClick:()=>n("all"),children:t}),m.jsx(ke,{divider:!0,tag:"hr"}),Yfe.map(r=>m.jsx(ke,{active:e===r,onClick:()=>n(r),children:UF(r)},r))]}),Jhe=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(jy,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),m.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:m.jsx(jy,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&_c(o))})})]}),mC=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=R.useMemo(()=>UF(t)??n,[t,n]),[o,a]=R.useMemo(()=>Sy(t)?[void 0,t]:[t,void 0],[t]),s=R.useCallback(l=>{Sy(l)?e(BF(l),l):e(l)},[e]);return m.jsxs(ua,{disabled:r,text:i,children:[m.jsx(Qhe,{allText:n,active:a,onChange:s}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx("div",{className:"px-3 py-1",children:m.jsx(Jhe,{...o,onStartDateChange:l=>s({...o,startDate:l}),onEndDateChange:l=>s({...o,endDate:l})})})]})},epe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},tpe=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return m.jsxs(ua,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[m.jsx(ke,{header:!0,"aria-hidden":!0,children:"Visits:"}),m.jsx(ke,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),m.jsx(ke,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),m.jsx(ke,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0}),children:m.jsx("i",{children:"Reset to defaults"})})]})},O1=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=Dt(O1),[{search:s,tags:l,startDate:u,endDate:f,excludeBots:d,excludeMaxVisitsReached:p,excludePastValidUntil:v,tagsMode:g="any"},y]=gb(),w=Il("filterDisabledUrls"),b=ys("visits"),[x,_]=R.useState(),S=R.useCallback(({startDate:N,endDate:I},M)=>{y({startDate:ss(N)??void 0,endDate:ss(I)??void 0}),_(M)},[y]),j=R.useCallback(N=>y({search:N||void 0}),[y]),E=R.useCallback(N=>y({tags:N}),[y]),P=R.useCallback(()=>y({tagsMode:g==="any"?"all":"any"}),[g,y]);return m.jsxs("div",{className:De("short-urls-filtering-bar-container",e),children:[m.jsx(Bp,{initialValue:s,onChange:j}),m.jsxs(ib,{className:"mt-3",children:[m.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:l,onChange:E}),l.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(Ze,{outline:!0,color:"secondary",onClick:P,id:"tagsModeBtn","aria-label":"Change tags mode",children:m.jsx(Te,{className:"short-urls-filtering-bar__tags-icon",icon:g==="all"?z8:jK})}),m.jsx(Tr,{target:"tagsModeBtn",placement:"left",children:g==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(ir,{className:"flex-lg-row-reverse",children:[m.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-grow-1",children:m.jsx(mC,{defaultText:"All short URLs",dateRangeOrInterval:x??FF(u,f),onDatesChange:S})}),m.jsx(tpe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:d??(b==null?void 0:b.excludeBots),excludeMaxVisitsReached:p,excludePastValidUntil:v},onChange:y,supportsDisabledFiltering:w})]})}),m.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:m.jsx(o,{amount:t})}),m.jsx("div",{className:"col-6 d-lg-none mt-3",children:m.jsx(zp,{prefixed:!1,items:epe,order:n,onChange:r})})]})]})},npe=$t(O1,["ExportShortUrlsBtn","TagsSelector"]);function zd({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(Te,{icon:e.dir==="ASC"?yK:AK,className:n})}const lu=2,hS="...",S1=(e,t)=>{const n=eC(Math.max(lu,e-lu),Math.min(t-1,e+lu)+1);return e-lu>lu&&n.unshift(hS),e+lu<t-1&&n.push(hS),n.unshift(1),n.push(t),n},Ih=e=>e===hS,E1=e=>Ih(e)?e:Yt(e),j1=(e,t)=>Ih(e)?`${e}_${t}`:`${e}`,rpe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=gs(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const a=()=>S1(n,r).map((s,l)=>m.jsx(ul,{disabled:Ih(s),active:n===s,children:m.jsx(cl,{tag:Et,to:o(s),children:E1(s)})},j1(s,l)));return m.jsxs(AT,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(ul,{disabled:n===1,children:m.jsx(cl,{previous:!0,tag:Et,to:o(n-1)})}),a(),m.jsx(ul,{disabled:n>=r,children:m.jsx(cl,{next:!0,tag:Et,to:o(n+1)})})]})},ipe={field:"dateCreated",dir:"DESC"},T1=Gi(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=Dt(T1),{page:s}=qc(),l=Xn(),[{tags:u,search:f,startDate:d,endDate:p,orderBy:v,tagsMode:g,excludeBots:y,excludePastValidUntil:w,excludeMaxVisitsReached:b},x]=gb(),_=hC(),[S,j]=R.useState(v??((n=_.shortUrlsList)==null?void 0:n.defaultOrdering)??ipe),{pagination:E}=(t==null?void 0:t.shortUrls)??{},P=R.useMemo(()=>{var X;return y??((X=_.visits)==null?void 0:X.excludeBots)},[y,(r=_.visits)==null?void 0:r.excludeBots]),N=Il("excludeBotsOnShortUrls"),I=R.useCallback((X,J)=>{x({orderBy:{field:X,dir:J}}),j({field:X,dir:J})},[x]),M=X=>()=>I(X,lb(X,S.field,S.dir)),D=X=>m.jsx(zd,{currentOrder:S,field:X}),z=R.useCallback(X=>x({tags:[...new Set([...u,X])]}),[u,x]),q=R.useCallback(({field:X,dir:J})=>N&&P&&X==="visits"?{field:"nonBotVisits",dir:J}:{field:X,dir:J},[P,N]),W=QT();return R.useEffect(()=>{e({page:s,searchTerm:f,tags:u,startDate:d,endDate:p,orderBy:q(S),tagsMode:g,excludePastValidUntil:w,excludeMaxVisitsReached:b})},[e,q,s,f,u,d,p,S,g,w,b]),m.jsxs(XT,{value:W,children:[m.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:S,handleOrderBy:I,className:"mb-3"}),m.jsx(JT,{type:"short-urls",className:"mb-3"}),m.jsxs(Er,{body:!0,className:"pb-0",children:[m.jsx(o,{shortUrlsList:t,orderByColumn:M,renderOrderIcon:D,onTagClick:z}),m.jsx(rpe,{paginator:E,currentQueryString:l.search})]})]})},()=>[cr.visits]),ope=$t(T1,["ShortUrlsTable","ShortUrlsFilteringBar"]),C1=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=Dt(C1),{error:a,loading:s,shortUrls:l}=n,u=De({"short-urls-table__header-cell--with-action":!!e}),f=De("short-urls-table__header-cell",u),d=De("table table-hover responsive-table short-urls-table",i),p=()=>a?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(v=>m.jsx(o,{shortUrl:v,onTagClick:r},v.shortUrl));return m.jsxs("table",{className:d,children:[m.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:m.jsxs("tr",{children:[m.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),m.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),m.jsxs("th",{className:"short-urls-table__header-cell",children:[m.jsxs(jl,{className:De("p-0",u),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",m.jsxs(jl,{className:De("p-0",u),onClick:e==null?void 0:e("longUrl"),children:[m.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),m.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),m.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:m.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),m.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),m.jsx("tbody",{children:p()})]})},ape=$t(C1,["ShortUrlsRow"]),spe=(e,t)=>{e.factory("ShortUrlsList",ope),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",ape),e.factory("ShortUrlsRow",Ahe),e.factory("ShortUrlsRowMenu",Fhe),e.factory("CreateShortUrlResult",ghe),e.factory("ShortUrlForm",Xhe),e.decorator("ShortUrlForm",t(["tagsList"])),e.factory("CreateShortUrl",mhe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",vhe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>yhe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.factory("QrCodeModal",Ohe),e.factory("ExportShortUrlsBtn",bhe),e.factory("ShortUrlsFilteringBar",npe),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",Gde,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Bhe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Hhe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Vde,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",Whe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",Wde,"apiClientFactory"),e.serviceFactory("createShortUrl",Uhe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",zde,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>KF),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",Vhe,"apiClientFactory")},lpe=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:u}=i;return m.jsxs(So,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[m.jsx(Eo,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(Wi,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",s&&m.jsx(ur,{type:"error",small:!0,className:"mt-2",children:m.jsx(_o,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(ms,{children:[m.jsx(Ze,{color:"link",onClick:t,children:"Cancel"}),m.jsx(Ze,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},P1=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=Dt(P1),[s,l]=R.useState(e),[u,f]=R.useState(a.getColorForKey(e)),{editing:d,error:p,edited:v,errorData:g}=o,y=YF(async()=>{await t({oldName:e,newName:s,color:u}),n()}),w=R.useCallback(()=>v&&r({oldName:e,newName:s,color:u}),[u,v,s,e,r]);return m.jsx(So,{isOpen:i,toggle:n,centered:!0,onClosed:w,children:m.jsxs("form",{name:"editTag",onSubmit:y,children:[m.jsx(Eo,{toggle:n,children:"Edit tag"}),m.jsxs(Wi,{children:[m.jsxs(ib,{children:[m.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:u,borderColor:u},children:[m.jsx(Te,{icon:bK,className:"position-absolute top-50 start-50 translate-middle text-white"}),m.jsx(qn,{className:"form-control-color opacity-0",type:"color",value:u,onChange:b=>f(b.target.value)})]}),m.jsx(qn,{value:s,placeholder:"Tag",required:!0,onChange:({target:b})=>l(b.value)})]}),p&&m.jsx(ur,{type:"error",small:!0,className:"mt-2",children:m.jsx(_o,{errorData:g,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(ms,{children:[m.jsx(Ze,{type:"button",color:"link",onClick:n,children:"Cancel"}),m.jsx(Ze,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},upe=$t(P1,["ColorGenerator"]),zs={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},vC=Symbol("Create new tag"),A1=Symbol("No options"),vu=()=>{},Pn=V.createContext(void 0);function zL(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function cpe(e){return e.selectionStart===0&&e.selectionEnd===0}function fpe(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function _b(e){return`${e}-label`}function dpe(e){return`${e}-combobox`}function hpe(e){return`${e}-input`}function k1(e){return`${e}-listbox`}function N1(e,t){return`${e}-option-${_pe(t)}`}function ppe(e,t){if((e==null?void 0:e.value)===vC&&e.disabled===!1)return{value:t,label:t}}function mpe(e){const t=ppe(e.activeOption,e.value)||e.activeOption||Spe(e.value,e.options);return t&&!t.disabled?t:void 0}function vpe(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const gpe=/%value%/;function Ty(e,t){return e.replace(gpe,t)}function ype(e,t){const n=R1(t),r=e.match(n);if(r){const i=r[0],o=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,o),e.slice(o)]}}const bpe=/\s+/g;function pS(e){return`${String(e.value)}-${e.label}`}function _pe(e){return pS(e).replace(bpe,"_")}function mS(e,t){return t.findIndex(({value:n})=>n===e.value)}const xpe=/[-\\^$*+?.()|[\]{}]/g;function L1(e){return e.replace(xpe,"\\$&")}function R1(e){return new RegExp(L1(e),"i")}function wpe(e){return new RegExp(`^${L1(e)}$`,"i")}function Ope(e,t){if(e){const n=R1(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Spe(e,t){const n=wpe(e);return t.find(r=>n.test(r.label))||null}const Epe={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function jpe({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:u}=R.useContext(Pn),f=R.useMemo(()=>{const g=I=>{const M=I.currentTarget.value;u.current.updateInputValue(M),document.activeElement===a.current&&u.current.listBoxExpand(M)},y=()=>{u.current.listBoxExpand()},w=I=>{var M;((M=o.current)==null?void 0:M.contains(I.relatedTarget))===!1&&u.current.listBoxCollapse()},b=()=>{u.current.listBoxExpand()},x=I=>{const{activeIndex:M,isExpanded:D}=u.current.state;D?(I.preventDefault(),u.current.updateActiveIndex(M+1)):(fpe(I.currentTarget)||I.altKey)&&(I.preventDefault(),u.current.listBoxExpand())},_=I=>{const{activeIndex:M,isExpanded:D}=u.current.state;D?(I.preventDefault(),u.current.updateActiveIndex(M-1)):cpe(I.currentTarget)&&(I.preventDefault(),u.current.listBoxExpand())},S=I=>{const{isExpanded:M,options:D}=u.current.state;M&&(I.preventDefault(),u.current.updateActiveIndex(D.length-1))},j=I=>{u.current.state.isExpanded&&(I.preventDefault(),u.current.updateActiveIndex(0))},E=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},P=()=>{if(e){const{value:I,selected:M}=u.current.state,D=M[M.length-1];I===""&&D&&u.current.selectTag(D)}},N=I=>{u.current.state.isExpanded&&(I.preventDefault(),u.current.selectTag())};return{onBlur:w,onChange:g,onClick:b,onFocus:y,onKeyDown:I=>{if(I.key===zs.UpArrow)return _(I);if(I.key===zs.DownArrow)return x(I);if(I.key===zs.PageUp)return j(I);if(I.key===zs.PageDown)return S(I);if(I.key===zs.Escape)return E();if(I.key===zs.Backspace)return P();if(r.includes(I.key))return N(I)}}},[e,o,r,a,u]),{activeOption:d,isExpanded:p,value:v}=u.current.state;return{...Epe,"aria-autocomplete":"list","aria-activedescendant":d?N1(i,d):void 0,"aria-controls":k1(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":_b(i),"aria-expanded":p,id:hpe(i),onBlur:s?vu:f.onBlur,onChange:s?vu:f.onChange,onClick:s?vu:f.onClick,onFocus:s?vu:f.onFocus,onKeyDown:s?vu:f.onKeyDown,ref:a,role:"combobox",type:"text",value:v}}const Tpe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Cpe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function Ppe({allowResize:e=!0,text:t}){const n=R.useRef(null),{inputRef:r}=R.useContext(Pn),[i,o]=R.useState(null);return R.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);Cpe.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),R.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:Tpe}}}function Ape(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=R.useContext(Pn),i=r.current.state.activeIndex===-1,o=R.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return R.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":_b(e),id:k1(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function kpe({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:u,onShouldCollapse:f,onShouldExpand:d,onValidate:p,selected:v,suggestions:g,suggestionsTransform:y}){const w=R.useRef(),[b,x]=R.useState(null),[_,S]=R.useState(!1),[j,E]=R.useState(""),P=R.useMemo(()=>{const W=y(j,g);return j&&(t&&W.push({disabled:p?!p(j):!1,label:r,value:vC}),W.length===0&&W.push({disabled:!0,label:i,value:A1})),W},[t,r,i,p,g,y,j]),N=b?mS(b,P):-1,I=e?Math.max(N,0):N,M=P[I],D={activeIndex:I,activeOption:M,isExpanded:_,options:P,selected:v,value:j},z={tagsAdded:w.current?zL(v,w.current.state.selected):[],tagsDeleted:w.current?zL(w.current.state.selected,v):[]},q={listBoxCollapse(W){_&&(!f||f(W??D.value))&&(S(!1),x(null),s==null||s())},listBoxExpand(W){_||(!d||d(W??D.value))&&(S(!0),x(P[I]),l==null||l())},updateActiveIndex(W){const X=vpe(W,P.length,e?0:-1);x(P[X])},updateInputValue(W){j!==W&&(E(W),u==null||u(W))},selectTag(W){if(W??(W=mpe(D)),W){const X=mS(W,D.selected);X>-1?a(X):o(W),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return w.current={...q,flags:z,state:D},w}function Npe(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=R.useContext(Pn),o=R.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,u=mS(a,i.current.state.selected)>-1,f=R.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=R.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return Mpe(o,r,s),{option:{...a,active:s,disabled:l,index:e,selected:u},optionProps:{"aria-disabled":l,"aria-posinset":e+1,"aria-selected":l?void 0:u,"aria-setsize":i.current.state.options.length,id:N1(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function Lpe({inputRef:e,managerRef:t}){return R.useRef({input:{blur(){var n;(n=e.current)==null||n.blur()},focus(){var n;(n=e.current)==null||n.focus()},get value(){return t.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),t.current.updateInputValue(n)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(n){t.current.selectTag(n)}}).current}function Rpe({onBlur:e,onFocus:t}){const[n,r]=R.useState(!1),{id:i,inputRef:o,rootRef:a}=R.useContext(Pn),s=R.useMemo(()=>({"aria-describedby":_b(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function Mpe(e,t,n){R.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,l=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;l<f&&t.current.scrollTo(0,l),l+s>f+u&&t.current.scrollTo(0,l+s-u)}},[n,t,e])}function Ipe(e,t){const{isDisabled:n,managerRef:r}=R.useContext(Pn),i=r.current.state.selected[e],o=R.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:Ty(t,i.label),onClick:n?vu:o}}}function Dpe(){var e;const{rootRef:t,managerRef:n}=R.useContext(Pn),r=R.useRef(),i=n.current.flags.tagsDeleted[0],o=(e=r.current)==null?void 0:e.contains(document.activeElement);return R.useLayoutEffect(()=>{var a,s;if(i){const l=(a=r.current)==null?void 0:a.contains(document.activeElement);o&&!l&&((s=t.current)==null||s.focus({preventScroll:!0}))}},[o,r,t,i]),{listRef:r}}const $pe={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function Fpe({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=R.useContext(Pn),r=R.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(Ty(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(Ty(t,i.label))}),V.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:$pe},r.current.join(`
|
||
`))}function Upe({children:e}){const{classNames:t,comboBoxRef:n,id:r}=R.useContext(Pn);return V.createElement("div",{className:t.comboBox,id:dpe(r),ref:n},e)}const Bpe=({classNames:e,text:t})=>V.createElement("mark",{className:e.highlight},t);function zpe({option:e,query:t,render:n=Bpe}){const{classNames:r}=R.useContext(Pn);if(e.value===vC||e.value===A1)return V.createElement(V.Fragment,null,Ty(e.label,t));if(t){const i=ype(e.label,t);if(i){const o=n({text:i[1],classNames:r});return V.createElement(V.Fragment,null,i[0],o,i[2])}}return V.createElement(V.Fragment,null,e.label)}const Vpe=V.memo(zpe),Hpe=({classNames:e,inputWidth:t,...n})=>V.createElement("input",{className:e.input,style:{width:t},...n});function Wpe({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=Hpe}){const{classNames:s}=R.useContext(Pn),{value:l,...u}=jpe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.length<o.length?o:l,{width:d,sizerProps:p}=Ppe({allowResize:t,text:f});return V.createElement(V.Fragment,null,a({classNames:s,inputWidth:d,placeholder:o,value:l,...u}),t?V.createElement("div",{...p},f):null)}const Gpe=({children:e,classNames:t,id:n})=>V.createElement("div",{className:t.label,id:n},e);function qpe({children:e,render:t=Gpe}){const{classNames:n,id:r}=R.useContext(Pn);return t({children:e,classNames:n,id:_b(r)})}const Zpe=({children:e,classNames:t,...n})=>V.createElement("div",{className:t.listBox,...n},e);function Ype({children:e,render:t=Zpe}){const{classNames:n,managerRef:r}=R.useContext(Pn),i=Ape();return!r.current.state.isExpanded||V.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Kpe=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),V.createElement("div",{className:i.join(" "),...r},e)};function Xpe({children:e,index:t,render:n=Kpe}){const{classNames:r}=R.useContext(Pn),{option:i,optionProps:o}=Npe(t);return n({classNames:r,children:e,option:i,...o})}const Qpe=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),V.createElement("div",{className:a.join(" "),...o},e)};function Jpe({children:e,onBlur:t,onFocus:n,render:r=Qpe}){const{classNames:i,isDisabled:o,isInvalid:a}=R.useContext(Pn),{isActive:s,rootProps:l}=Rpe({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const eme=({classNames:e,tag:t,...n})=>V.createElement("button",{type:"button",className:e.tag,...n},V.createElement("span",{className:e.tagName},t.label));function tme({render:e=eme,index:t,title:n}){const{classNames:r}=R.useContext(Pn),{tag:i,tagProps:o}=Ipe(t,n);return e({classNames:r,tag:i,...o})}function nme({children:e,label:t}){const{classNames:n}=R.useContext(Pn),{listRef:r}=Dpe();return V.createElement("ul",{className:n.tagList,"aria-label":t,ref:r,role:"list"},e.map(i=>V.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const rme={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"},ime=[zs.Enter];function ome({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=rme,collapseOnSelect:u=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=ime,id:p="react-tags",isDisabled:v=!1,isInvalid:g=!1,labelText:y="Select tags",newOptionText:w="Add %value%",noOptionsText:b="No options found for %value%",onAdd:x,onBlur:_,onCollapse:S,onDelete:j,onExpand:E,onFocus:P,onInput:N,onShouldCollapse:I,onShouldExpand:M,onValidate:D,placeholderText:z="Add a tag",renderHighlight:q,renderInput:W,renderLabel:X,renderListBox:J,renderOption:te,renderRoot:K,renderTag:B,selected:F=[],suggestions:H=[],suggestionsTransform:ne=Ope,tagListLabelText:Y="Selected tags"},ee){const ae=R.useRef(null),oe=R.useRef(null),fe=R.useRef(null),C=R.useRef(null),A=kpe({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionText:w,noOptionsText:b,onAdd:x,onDelete:j,onCollapse:S,onExpand:E,onInput:N,onShouldCollapse:I,onShouldExpand:M,onValidate:D,selected:F,suggestions:H,suggestionsTransform:ne}),U=Lpe({inputRef:oe,managerRef:A});return ee&&(typeof ee=="function"?ee(U):ee.current=U),V.createElement(Pn.Provider,{value:{classNames:l,comboBoxRef:ae,id:p,inputRef:oe,isDisabled:v,isInvalid:g,listBoxRef:fe,managerRef:A,rootRef:C}},V.createElement(Jpe,{onBlur:_,onFocus:P,render:K},V.createElement(qpe,{render:X},y),V.createElement(nme,{label:Y},A.current.state.selected.map((Q,Z)=>V.createElement(tme,{key:pS(Q),index:Z,render:B,title:f}))),V.createElement(Upe,null,V.createElement(Wpe,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:z,render:W}),V.createElement(Ype,{render:J},A.current.state.options.map((Q,Z)=>V.createElement(Xpe,{key:pS(Q),index:Z,render:te},V.createElement(Vpe,{option:Q,query:A.current.state.value,render:q}))))),V.createElement(Fpe,{ariaAddedText:i,ariaDeletedText:s})))}const ame=V.forwardRef(ome),sme=/\s+/g,M1=e=>e.trim().toLowerCase().replace(sme,"-"),I1=({color:e})=>m.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),D1=({tag:e,colorGenerator:t})=>m.jsx(I1,{color:t.getColorForKey(e)});let VL=1;const $1="Tag not found",F1="Add tag",lme=e=>e!==$1,ume=e=>e===F1,HL=e=>(VL+=1,{label:e,value:`${e}${VL}`}),cme=e=>({tag:t,onClick:n})=>m.jsx(bb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),fme=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=lme(n.label),s=ume(n.label);return m.jsx("div",{className:De(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?m.jsxs(m.Fragment,{children:[!s&&m.jsx(D1,{tag:`${n.label}`,colorGenerator:e}),s?m.jsxs("i",{children:['Add "',M1(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):m.jsx("i",{children:n.label})})},U1=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=Dt(U1),a=ys("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=la();return m.jsx(ame,{ref:l,selected:e.map(HL),suggestions:r.filter(u=>!e.includes(u)).map(HL),renderTag:cme(o),renderOption:fme(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:F1,noOptionsText:$1,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,f)=>{const d=u.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:p})=>s==="includes"?p.includes(d):p.startsWith(d))].slice(0,5)},onDelete:u=>{const f=[...e];f.splice(u,1),t(f)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(M1)])])})},dme=$t(U1,["ColorGenerator"]),vS="shlink/tagDelete",hme={deleting:!1,deleted:!1,error:!1},B1=mn(`${vS}/tagDeleted`),pme=e=>{const t=gn(`${vS}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=nn({name:vS,initialState:hme,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Gr(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},gC="shlink/tagEdit",mme={editing:!1,edited:!1,error:!1},z1=mn(`${gC}/tagEdited`),vme=(e,t)=>gn(`${gC}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),gme=e=>nn({name:gC,initialState:mme,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:Gr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),yC="shlink/tagsList",Lx={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},WL=(e,t)=>n=>n===e?t:n,GL=(e,t)=>e.filter(n=>n!==t),yme=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:(s.visitsCount??0)+o+a}}},{...t}),bme=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),{})),_me=e=>gn(`${yC}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...o})=>(r[i]=o,r),{});return{tags:Object.keys(n),stats:n}}),V1=mn(`${yC}/filterTags`),xme=(e,t)=>nn({name:yC,initialState:Lx,reducers:{},extraReducers:n=>{n.addCase(V1,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...Lx,error:!0,errorData:Gr(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...Lx,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(B1,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:GL(r,a),filteredTags:GL(i,a)})),n.addCase(z1,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(WL(s.oldName,s.newName)).sort(),filteredTags:i.map(WL(s.oldName,s.newName)).sort()})),n.addCase(nf,(r,{payload:i})=>({...r,stats:yme(bme(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),wme={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},H1=Gi(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=Dt(H1),o=hC(),[a,s]=R.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),l=R.useMemo(()=>{const f=t.filteredTags.map(d=>{var p,v,g;const y=t.stats[d],w=((p=o.visits)!=null&&p.excludeBots?(v=y==null?void 0:y.visitsSummary)==null?void 0:v.nonBots:(g=y==null?void 0:y.visitsSummary)==null?void 0:g.total)??(y==null?void 0:y.visitsCount)??0;return{tag:d,visits:w,shortUrls:(y==null?void 0:y.shortUrlsCount)??0}});return B7(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=QT();return t.loading?m.jsx(Jo,{loading:!0}):t.error?m.jsx(ur,{type:"error",children:m.jsx(_o,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):m.jsxs(XT,{value:u,children:[m.jsx(Bp,{className:"mb-3",onChange:e}),m.jsx(ir,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(zp,{items:wme,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),m.jsx(JT,{type:"tags",className:"mb-3"}),m.jsx(i,{sortedTags:l,currentOrder:a,orderByColumn:f=>()=>{const d=lb(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[cr.visits]),Ome=$t(H1,["TagsTable"]),bC=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Ih(o)&&n(o);return m.jsxs(AT,{listClassName:De("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(ul,{disabled:t<=1,children:m.jsx(cl,{previous:!0,tag:"span",onClick:i(t-1)})}),S1(t,e).map((o,a)=>m.jsx(ul,{disabled:Ih(o),active:t===o,children:m.jsx(cl,{role:"link",tag:"span",onClick:i(o),children:E1(o)})},j1(o,a))),m.jsx(ul,{disabled:t>=e,children:m.jsx(cl,{next:!0,tag:"span",onClick:i(t+1)})})]})},Sme=20,W1=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Dt(W1),i=R.useRef(!0),{page:o=1}=Up(),[a,s]=Tde("page",Number(o)),l=Zu(e,Sme),u=l.length>1,f=l[a-1]??[];return R.useEffect(()=>{!i.current&&s(1),i.current=!1},[s,e]),R.useEffect(()=>{scrollTo(0,0)},[a]),m.jsxs(wt,{bodyClassName:u?"pb-1":"",children:[m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsxs("thead",{className:"responsive-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",m.jsx(zd,{currentOrder:n,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",m.jsx(zd,{currentOrder:n,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",m.jsx(zd,{currentOrder:n,field:"visits"})]}),m.jsx("th",{className:"tags-table__header-cell",children:m.jsx("span",{className:"sr-only",children:"Options"})})]}),m.jsx("tr",{children:m.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),m.jsxs("tbody",{children:[f.length===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),f.map(d=>m.jsx(r,{tag:d},d.tag))]})]}),u&&m.jsx("div",{className:"sticky-card-paginator",children:m.jsx(bC,{pagesCount:l.length,currentPage:a,setCurrentPage:s})})]},a)},Eme=$t(W1,["TagsTableRow"]),G1=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Dt(G1),[i,o]=Kt(),[a,s]=Kt(),l=gs(),u=pb();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx(D1,{tag:e.tag,colorGenerator:r})," ",e.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(Et,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Yt(e.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(Et,{to:`${l}/tag/${e.tag}/visits`,children:Yt(e.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(sb,{children:[m.jsxs(ke,{onClick:s,children:[m.jsx(Te,{icon:F8,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(ke,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[m.jsx(Te,{icon:K0,fixedWidth:!0})," Compare visits"]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{className:"dropdown-item--danger",onClick:o,children:[m.jsx(Te,{icon:wK,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),m.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),m.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},jme=$t(G1,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),Tme=(e,t)=>{e.factory("TagsSelector",dme),e.serviceFactory("DeleteTagConfirmModal",()=>lpe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",upe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",jme),e.factory("TagsTable",Eme),e.factory("TagsList",Ome),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",gme,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",pme,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",xme,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",_me,"apiClientFactory"),e.serviceFactory("filterTags",()=>V1),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>B1),e.serviceFactory("editTag",vme,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>z1)};function Rx(e){return e==null?"":`${e}`}function Cme(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 _C(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 Pme(e={stringFormatter:_C()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Ame(e={stringFormatter:_C()}){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 kme=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Nme(e){var t,n,r;const i=[];let o;for(;o=kme.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function qL(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:Nme(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function q1(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function gS(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var ZL;(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"})(ZL||(ZL={}));class Lme{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||_C(),i=Ame({stringFormatter:r}),o={header:r,undefined:Rx,boolean:Rx,number:Cme(),bigint:Rx,string:r,symbol:Pme({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>qL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>qL(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return gS(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(q1,[]),[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 gS(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 Rme extends Lme{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,a)=>(Object.keys(a).forEach(s=>{o.includes(s)||o.push(s)}),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(q1,[])}processData(t){return gS(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var xn;(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"})(xn||(xn={}));xn.QUOTATION_MARK+"",xn.QUOTATION_MARK,xn.REVERSE_SOLIDUS+"",xn.REVERSE_SOLIDUS,xn.SOLIDUS+"",xn.SOLIDUS,xn.LATIN_SMALL_LETTER_B+"",xn.BACKSPACE,xn.LATIN_SMALL_LETTER_F+"",xn.FORM_FEED,xn.LATIN_SMALL_LETTER_N+"",xn.NEWLINE,xn.LATIN_SMALL_LETTER_R+"",xn.CARRIAGE_RETURN,xn.LATIN_SMALL_LETTER_T+"",xn.TAB;var YL;(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"})(YL||(YL={}));var KL;(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"})(KL||(KL={}));var XL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(XL||(XL={}));var QL;(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"})(QL||(QL={}));const Mme=new Rme,Ime=e=>Mme.parse(e),Dme=6,JL="0123456789ABCDEF",$me=128,{floor:Fme,random:Ume,sqrt:Bme,round:zme}=Math,Vme=()=>`#${uC(Dme,()=>JL[Fme(Ume()*JL.length)]).join("")}`,eR=e=>e.toLowerCase().trim(),Hme=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),Wme=(e=0,t=0,n=0)=>zme(Bme(.299*e**2+.587*t**2+.114*n**2));class Gme{constructor(t){Ya(this,"colors"),Ya(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=eR(t);return this.colors[n]||this.setColorForKey(n,Vme())}setColorForKey(t,n){var r;const i=eR(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);if(this.lights[n]===void 0){const r=Hme(n);this.lights[n]=Wme(...r)>=$me}return this.lights[n]}}const Z1=({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)},qme=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);Z1(e,i,n)};class Zme{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);Z1(this.window,i,n)}}class Yme{constructor(t,n){Ya(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Ya(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Ya(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);qme(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function Kme(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",Zme,"fetch","window"),e.service("ColorGenerator",Gme,"TagColorsStorage"),e.constant("jsonToCsv",Ime),e.service("ReportExporter",Yme,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>D7)}const Zp=({visits:e,shortUrl:t,children:n,title:r})=>m.jsx("header",{children:m.jsxs(Er,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(yb,{}),m.jsx("span",{className:"text-center d-none d-sm-block",children:m.jsx("small",{children:r})}),m.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",m.jsx(h1,{visitsCount:e.length,shortUrl:t})]})]}),m.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:m.jsx("small",{children:r})}),n&&m.jsx("div",{className:"mt-md-2",children:n})]})}),Y1=({title:e,footer:t,children:n})=>m.jsxs(Er,{role:"document",children:[m.jsx(mc,{className:"chart-card__header",children:e}),m.jsx(pc,{children:n}),t&&m.jsx(t7,{className:"chart-card__footer--sticky",children:t})]});var Xme=Array.isArray,Cr=Xme,Qme=typeof Mu=="object"&&Mu&&Mu.Object===Object&&Mu,K1=Qme,Jme=K1,eve=typeof self=="object"&&self&&self.Object===Object&&self,tve=Jme||eve||Function("return this")(),jo=tve,nve=jo,rve=nve.Symbol,Yp=rve,tR=Yp,X1=Object.prototype,ive=X1.hasOwnProperty,ove=X1.toString,Qf=tR?tR.toStringTag:void 0;function ave(e){var t=ive.call(e,Qf),n=e[Qf];try{e[Qf]=void 0;var r=!0}catch{}var i=ove.call(e);return r&&(t?e[Qf]=n:delete e[Qf]),i}var sve=ave,lve=Object.prototype,uve=lve.toString;function cve(e){return uve.call(e)}var fve=cve,nR=Yp,dve=sve,hve=fve,pve="[object Null]",mve="[object Undefined]",rR=nR?nR.toStringTag:void 0;function vve(e){return e==null?e===void 0?mve:pve:rR&&rR in Object(e)?dve(e):hve(e)}var ca=vve;function gve(e){return e!=null&&typeof e=="object"}var fa=gve,yve=ca,bve=fa,_ve="[object Symbol]";function xve(e){return typeof e=="symbol"||bve(e)&&yve(e)==_ve}var rf=xve,wve=Cr,Ove=rf,Sve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Eve=/^\w*$/;function jve(e,t){if(wve(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ove(e)?!0:Eve.test(e)||!Sve.test(e)||t!=null&&e in Object(t)}var xC=jve;function Tve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bs=Tve;const of=gt(bs);var Cve=ca,Pve=bs,Ave="[object AsyncFunction]",kve="[object Function]",Nve="[object GeneratorFunction]",Lve="[object Proxy]";function Rve(e){if(!Pve(e))return!1;var t=Cve(e);return t==kve||t==Nve||t==Ave||t==Lve}var wC=Rve;const Ge=gt(wC);var Mve=jo,Ive=Mve["__core-js_shared__"],Dve=Ive,Mx=Dve,iR=function(){var e=/[^.]+$/.exec(Mx&&Mx.keys&&Mx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $ve(e){return!!iR&&iR in e}var Fve=$ve,Uve=Function.prototype,Bve=Uve.toString;function zve(e){if(e!=null){try{return Bve.call(e)}catch{}try{return e+""}catch{}}return""}var Q1=zve,Vve=wC,Hve=Fve,Wve=bs,Gve=Q1,qve=/[\\^$.*+?()[\]{}|]/g,Zve=/^\[object .+?Constructor\]$/,Yve=Function.prototype,Kve=Object.prototype,Xve=Yve.toString,Qve=Kve.hasOwnProperty,Jve=RegExp("^"+Xve.call(Qve).replace(qve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ege(e){if(!Wve(e)||Hve(e))return!1;var t=Vve(e)?Jve:Zve;return t.test(Gve(e))}var tge=ege;function nge(e,t){return e==null?void 0:e[t]}var rge=nge,ige=tge,oge=rge;function age(e,t){var n=oge(e,t);return ige(n)?n:void 0}var Dl=age,sge=Dl,lge=sge(Object,"create"),xb=lge,oR=xb;function uge(){this.__data__=oR?oR(null):{},this.size=0}var cge=uge;function fge(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dge=fge,hge=xb,pge="__lodash_hash_undefined__",mge=Object.prototype,vge=mge.hasOwnProperty;function gge(e){var t=this.__data__;if(hge){var n=t[e];return n===pge?void 0:n}return vge.call(t,e)?t[e]:void 0}var yge=gge,bge=xb,_ge=Object.prototype,xge=_ge.hasOwnProperty;function wge(e){var t=this.__data__;return bge?t[e]!==void 0:xge.call(t,e)}var Oge=wge,Sge=xb,Ege="__lodash_hash_undefined__";function jge(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sge&&t===void 0?Ege:t,this}var Tge=jge,Cge=cge,Pge=dge,Age=yge,kge=Oge,Nge=Tge;function af(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}af.prototype.clear=Cge;af.prototype.delete=Pge;af.prototype.get=Age;af.prototype.has=kge;af.prototype.set=Nge;var Lge=af;function Rge(){this.__data__=[],this.size=0}var Mge=Rge;function Ige(e,t){return e===t||e!==e&&t!==t}var OC=Ige,Dge=OC;function $ge(e,t){for(var n=e.length;n--;)if(Dge(e[n][0],t))return n;return-1}var wb=$ge,Fge=wb,Uge=Array.prototype,Bge=Uge.splice;function zge(e){var t=this.__data__,n=Fge(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bge.call(t,n,1),--this.size,!0}var Vge=zge,Hge=wb;function Wge(e){var t=this.__data__,n=Hge(t,e);return n<0?void 0:t[n][1]}var Gge=Wge,qge=wb;function Zge(e){return qge(this.__data__,e)>-1}var Yge=Zge,Kge=wb;function Xge(e,t){var n=this.__data__,r=Kge(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Qge=Xge,Jge=Mge,eye=Vge,tye=Gge,nye=Yge,rye=Qge;function sf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}sf.prototype.clear=Jge;sf.prototype.delete=eye;sf.prototype.get=tye;sf.prototype.has=nye;sf.prototype.set=rye;var Ob=sf,iye=Dl,oye=jo,aye=iye(oye,"Map"),SC=aye,aR=Lge,sye=Ob,lye=SC;function uye(){this.size=0,this.__data__={hash:new aR,map:new(lye||sye),string:new aR}}var cye=uye;function fye(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var dye=fye,hye=dye;function pye(e,t){var n=e.__data__;return hye(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sb=pye,mye=Sb;function vye(e){var t=mye(this,e).delete(e);return this.size-=t?1:0,t}var gye=vye,yye=Sb;function bye(e){return yye(this,e).get(e)}var _ye=bye,xye=Sb;function wye(e){return xye(this,e).has(e)}var Oye=wye,Sye=Sb;function Eye(e,t){var n=Sye(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var jye=Eye,Tye=cye,Cye=gye,Pye=_ye,Aye=Oye,kye=jye;function lf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lf.prototype.clear=Tye;lf.prototype.delete=Cye;lf.prototype.get=Pye;lf.prototype.has=Aye;lf.prototype.set=kye;var EC=lf,J1=EC,Nye="Expected a function";function jC(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Nye);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(jC.Cache||J1),n}jC.Cache=J1;var eU=jC;const Lye=gt(eU);var Rye=eU,Mye=500;function Iye(e){var t=Rye(e,function(r){return n.size===Mye&&n.clear(),r}),n=t.cache;return t}var Dye=Iye,$ye=Dye,Fye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Uye=/\\(\\)?/g,Bye=$ye(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fye,function(n,r,i,o){t.push(i?o.replace(Uye,"$1"):r||n)}),t}),zye=Bye;function Vye(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var TC=Vye,sR=Yp,Hye=TC,Wye=Cr,Gye=rf,qye=1/0,lR=sR?sR.prototype:void 0,uR=lR?lR.toString:void 0;function tU(e){if(typeof e=="string")return e;if(Wye(e))return Hye(e,tU)+"";if(Gye(e))return uR?uR.call(e):"";var t=e+"";return t=="0"&&1/e==-qye?"-0":t}var Zye=tU,Yye=Zye;function Kye(e){return e==null?"":Yye(e)}var nU=Kye,Xye=Cr,Qye=xC,Jye=zye,e0e=nU;function t0e(e,t){return Xye(e)?e:Qye(e,t)?[e]:Jye(e0e(e))}var rU=t0e,n0e=rf,r0e=1/0;function i0e(e){if(typeof e=="string"||n0e(e))return e;var t=e+"";return t=="0"&&1/e==-r0e?"-0":t}var Eb=i0e,o0e=rU,a0e=Eb;function s0e(e,t){t=o0e(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[a0e(t[n++])];return n&&n==r?e:void 0}var CC=s0e,l0e=CC;function u0e(e,t,n){var r=e==null?void 0:l0e(e,t);return r===void 0?n:r}var iU=u0e;const $r=gt(iU);function c0e(e){return e==null}var f0e=c0e;const ze=gt(f0e);var d0e=ca,h0e=Cr,p0e=fa,m0e="[object String]";function v0e(e){return typeof e=="string"||!h0e(e)&&p0e(e)&&d0e(e)==m0e}var g0e=v0e;const Kp=gt(g0e);var oU={exports:{}},pt={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var cR;function y0e(){if(cR)return pt;cR=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function _(j){if(typeof j=="object"&&j!==null){var E=j.$$typeof;switch(E){case t:switch(j=j.type,j){case l:case u:case r:case o:case i:case d:return j;default:switch(j=j&&j.$$typeof,j){case s:case f:case g:case v:case a:return j;default:return E}}case n:return E}}}function S(j){return _(j)===u}return pt.AsyncMode=l,pt.ConcurrentMode=u,pt.ContextConsumer=s,pt.ContextProvider=a,pt.Element=t,pt.ForwardRef=f,pt.Fragment=r,pt.Lazy=g,pt.Memo=v,pt.Portal=n,pt.Profiler=o,pt.StrictMode=i,pt.Suspense=d,pt.isAsyncMode=function(j){return S(j)||_(j)===l},pt.isConcurrentMode=S,pt.isContextConsumer=function(j){return _(j)===s},pt.isContextProvider=function(j){return _(j)===a},pt.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===t},pt.isForwardRef=function(j){return _(j)===f},pt.isFragment=function(j){return _(j)===r},pt.isLazy=function(j){return _(j)===g},pt.isMemo=function(j){return _(j)===v},pt.isPortal=function(j){return _(j)===n},pt.isProfiler=function(j){return _(j)===o},pt.isStrictMode=function(j){return _(j)===i},pt.isSuspense=function(j){return _(j)===d},pt.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===u||j===o||j===i||j===d||j===p||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===v||j.$$typeof===a||j.$$typeof===s||j.$$typeof===f||j.$$typeof===w||j.$$typeof===b||j.$$typeof===x||j.$$typeof===y)},pt.typeOf=_,pt}oU.exports=y0e();var yS=oU.exports,b0e=ca,_0e=fa,x0e="[object Number]";function w0e(e){return typeof e=="number"||_0e(e)&&b0e(e)==x0e}var aU=w0e;const O0e=gt(aU);var S0e=aU;function E0e(e){return S0e(e)&&e!=+e}var j0e=E0e;const uf=gt(j0e);var ar=function(e){return e===0?0:e>0?1:-1},tl=function(e){return Kp(e)&&e.indexOf("%")===e.length-1},Ee=function(e){return O0e(e)&&!uf(e)},pn=function(e){return Ee(e)||Kp(e)},T0e=0,_s=function(e){var t=++T0e;return"".concat(e||"").concat(t)},gr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ee(e)&&!Kp(e))return n;var i;if(tl(e)){var o=e.indexOf("%");i=t*parseFloat(e.slice(0,o))/100}else i=+e;return uf(i)&&(i=n),r&&i>t&&(i=t),i},Aa=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},C0e=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},zt=function(e,t){return Ee(e)&&Ee(t)?function(n){return e+n*(t-e)}:function(){return t}};function Cy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):$r(r,t))===n})}var P0e=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,s=-1/0,l=0,u=0,f=0;f<t;f++)l=e[f].cx||0,u=e[f].cy||0,n+=l,r+=u,i+=l*u,o+=l*l,a=Math.min(a,l),s=Math.max(s,l);var d=t*o!==n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:s,a:d,b:(r-d*n)/t}};function Yu(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 bS(e){"@babel/helpers - typeof";return bS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bS(e)}var A0e=["viewBox","children"],k0e=["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"],fR=["points","pathLength"],dR={svg:A0e,polygon:fR,polyline:fR},PC=["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"],Py=function(e,t){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(R.isValidElement(e)&&(n=e.props),!of(n))return null;var r={};return Object.keys(n).forEach(function(i){PC.includes(i)&&(r[i]=t||function(o){return n[i](n,o)})}),r},N0e=function(e,t,n){return function(r){return e(t,n,r),null}},ls=function(e,t,n){if(!of(e)||bS(e)!=="object")return null;var r=null;return Object.keys(e).forEach(function(i){var o=e[i];PC.includes(i)&&typeof o=="function"&&(r||(r={}),r[i]=N0e(o,t,n))}),r},L0e=["children"],R0e=["children"];function hR(e,t){if(e==null)return{};var n=M0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _S(e){"@babel/helpers - typeof";return _S=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},_S(e)}var pR={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},zo=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},mR=null,Ix=null,AC=function e(t){if(t===mR&&Array.isArray(Ix))return Ix;var n=[];return R.Children.forEach(t,function(r){ze(r)||(yS.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ix=n,mR=t,n};function fr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return zo(i)}):r=[zo(t)],AC(e).forEach(function(i){var o=$r(i,"type.displayName")||$r(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Lr(e,t){var n=fr(e,t);return n&&n[0]}var vR=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Ee(n)||n<=0||!Ee(r)||r<=0)},I0e=["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"],D0e=function(e){return e&&e.type&&Kp(e.type)&&I0e.indexOf(e.type)>=0},sU=function(e){return e&&_S(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},$0e=function(e,t,n,r){var i,o=(i=dR==null?void 0:dR[r])!==null&&i!==void 0?i:[];return!Ge(e)&&(r&&o.includes(t)||k0e.includes(t))||n&&PC.includes(t)},$e=function(e,t,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(R.isValidElement(e)&&(r=e.props),!of(r))return null;var i={};return Object.keys(r).forEach(function(o){var a;$0e((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},xS=function e(t,n){if(t===n)return!0;var r=R.Children.count(t);if(r!==R.Children.count(n))return!1;if(r===0)return!0;if(r===1)return gR(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!gR(o,a))return!1}return!0},gR=function(e,t){if(ze(e)&&ze(t))return!0;if(!ze(e)&&!ze(t)){var n=e.props||{},r=n.children,i=hR(n,L0e),o=t.props||{},a=o.children,s=hR(o,R0e);return r&&a?Yu(i,s)&&xS(r,a):!r&&!a?Yu(i,s):!1}return!1},yR=function(e,t){var n=[],r={};return AC(e).forEach(function(i,o){if(D0e(i))n.push(i);else if(i){var a=zo(i.type),s=t[a]||{},l=s.handler,u=s.once;if(l&&(!u||!r[a])){var f=l(i,a,o);n.push(f),r[a]=!0}}}),n},F0e=function(e){var t=e&&e.type;return t&&pR[t]?pR[t]:null},U0e=function(e,t){return AC(t).indexOf(e)},B0e=["children","width","height","viewBox","className","style","title","desc"];function wS(){return wS=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},wS.apply(this,arguments)}function z0e(e,t){if(e==null)return{};var n=V0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function OS(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=z0e(e,B0e),f=i||{width:n,height:r,x:0,y:0},d=De("recharts-surface",o);return V.createElement("svg",wS({},$e(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),V.createElement("title",null,s),V.createElement("desc",null,l),t)}var H0e=["children","className"];function SS(){return SS=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},SS.apply(this,arguments)}function W0e(e,t){if(e==null)return{};var n=G0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xe=V.forwardRef(function(e,t){var n=e.children,r=e.className,i=W0e(e,H0e),o=De("recharts-layer",r);return V.createElement("g",SS({className:o},$e(i,!0),{ref:t}),n)}),Fi=function(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]};function q0e(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var Z0e=q0e,Y0e=Z0e;function K0e(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Y0e(e,t,n)}var X0e=K0e,Q0e="\\ud800-\\udfff",J0e="\\u0300-\\u036f",ebe="\\ufe20-\\ufe2f",tbe="\\u20d0-\\u20ff",nbe=J0e+ebe+tbe,rbe="\\ufe0e\\ufe0f",ibe="\\u200d",obe=RegExp("["+ibe+Q0e+nbe+rbe+"]");function abe(e){return obe.test(e)}var lU=abe;function sbe(e){return e.split("")}var lbe=sbe,uU="\\ud800-\\udfff",ube="\\u0300-\\u036f",cbe="\\ufe20-\\ufe2f",fbe="\\u20d0-\\u20ff",dbe=ube+cbe+fbe,hbe="\\ufe0e\\ufe0f",pbe="["+uU+"]",ES="["+dbe+"]",jS="\\ud83c[\\udffb-\\udfff]",mbe="(?:"+ES+"|"+jS+")",cU="[^"+uU+"]",fU="(?:\\ud83c[\\udde6-\\uddff]){2}",dU="[\\ud800-\\udbff][\\udc00-\\udfff]",vbe="\\u200d",hU=mbe+"?",pU="["+hbe+"]?",gbe="(?:"+vbe+"(?:"+[cU,fU,dU].join("|")+")"+pU+hU+")*",ybe=pU+hU+gbe,bbe="(?:"+[cU+ES+"?",ES,fU,dU,pbe].join("|")+")",_be=RegExp(jS+"(?="+jS+")|"+bbe+ybe,"g");function xbe(e){return e.match(_be)||[]}var wbe=xbe,Obe=lbe,Sbe=lU,Ebe=wbe;function jbe(e){return Sbe(e)?Ebe(e):Obe(e)}var Tbe=jbe,Cbe=X0e,Pbe=lU,Abe=Tbe,kbe=nU;function Nbe(e){return function(t){t=kbe(t);var n=Pbe(t)?Abe(t):void 0,r=n?n[0]:t.charAt(0),i=n?Cbe(n,1).join(""):t.slice(1);return r[e]()+i}}var Lbe=Nbe,Rbe=Lbe,Mbe=Rbe("toUpperCase"),Ibe=Mbe;const jb=gt(Ibe);function Ct(e){return function(){return e}}const mU=Math.cos,Ay=Math.sin,qi=Math.sqrt,ky=Math.PI,Tb=2*ky,TS=Math.PI,CS=2*TS,Vs=1e-6,Dbe=CS-Vs;function vU(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $be(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vU;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Fbe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vU:$be(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,u=i-n,f=a-t,d=s-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>Vs)if(!(Math.abs(d*l-u*f)>Vs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,g=i-s,y=l*l+u*u,w=v*v+g*g,b=Math.sqrt(y),x=Math.sqrt(p),_=o*Math.tan((TS-Math.acos((y+p-w)/(2*b*x)))/2),S=_/x,j=_/b;Math.abs(S-1)>Vs&&this._append`L${t+S*f},${n+S*d}`,this._append`A${o},${o},0,0,${+(d*v>f*g)},${this._x1=t+j*l},${this._y1=n+j*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Vs||Math.abs(this._y1-f)>Vs)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%CS+CS),p>Dbe?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:p>Vs&&this._append`A${r},${r},0,${+(p>=TS)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function kC(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 Fbe(t)}function NC(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gU(e){this._context=e}gU.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 Cb(e){return new gU(e)}function yU(e){return e[0]}function bU(e){return e[1]}function _U(e,t){var n=Ct(!0),r=null,i=Cb,o=null,a=kC(s);e=typeof e=="function"?e:e===void 0?yU:Ct(e),t=typeof t=="function"?t:t===void 0?bU:Ct(t);function s(l){var u,f=(l=NC(l)).length,d,p=!1,v;for(r==null&&(o=i(v=a())),u=0;u<=f;++u)!(u<f&&n(d=l[u],u,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,u,l),+t(d,u,l));if(v)return o=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ct(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ct(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Ct(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function pv(e,t,n){var r=null,i=Ct(!0),o=null,a=Cb,s=null,l=kC(u);e=typeof e=="function"?e:e===void 0?yU:Ct(+e),t=typeof t=="function"?t:Ct(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?bU:Ct(+n);function u(d){var p,v,g,y=(d=NC(d)).length,w,b=!1,x,_=new Array(y),S=new Array(y);for(o==null&&(s=a(x=l())),p=0;p<=y;++p){if(!(p<y&&i(w=d[p],p,d))===b)if(b=!b)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=v;--g)s.point(_[g],S[g]);s.lineEnd(),s.areaEnd()}b&&(_[p]=+e(w,p,d),S[p]=+t(w,p,d),s.point(r?+r(w,p,d):_[p],n?+n(w,p,d):S[p]))}if(x)return s=null,x+""||null}function f(){return _U().defined(i).curve(a).context(o)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ct(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ct(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ct(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ct(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ct(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ct(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Ct(!!d),u):i},u.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),u):a},u.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),u):o},u}class xU{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 Ube(e){return new xU(e,!0)}function Bbe(e){return new xU(e,!1)}const LC={draw(e,t){const n=qi(t/ky);e.moveTo(n,0),e.arc(0,0,n,0,Tb)}},zbe={draw(e,t){const n=qi(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()}},wU=qi(1/3),Vbe=wU*2,Hbe={draw(e,t){const n=qi(t/Vbe),r=n*wU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Wbe={draw(e,t){const n=qi(t),r=-n/2;e.rect(r,r,n,n)}},Gbe=.8908130915292852,OU=Ay(ky/10)/Ay(7*ky/10),qbe=Ay(Tb/10)*OU,Zbe=-mU(Tb/10)*OU,Ybe={draw(e,t){const n=qi(t*Gbe),r=qbe*n,i=Zbe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Tb*o/5,s=mU(a),l=Ay(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Dx=qi(3),Kbe={draw(e,t){const n=-qi(t/(Dx*3));e.moveTo(0,n*2),e.lineTo(-Dx*n,-n),e.lineTo(Dx*n,-n),e.closePath()}},Kr=-.5,Xr=qi(3)/2,PS=1/qi(12),Xbe=(PS/2+1)*3,Qbe={draw(e,t){const n=qi(t/Xbe),r=n/2,i=n*PS,o=r,a=n*PS+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Kr*r-Xr*i,Xr*r+Kr*i),e.lineTo(Kr*o-Xr*a,Xr*o+Kr*a),e.lineTo(Kr*s-Xr*l,Xr*s+Kr*l),e.lineTo(Kr*r+Xr*i,Kr*i-Xr*r),e.lineTo(Kr*o+Xr*a,Kr*a-Xr*o),e.lineTo(Kr*s+Xr*l,Kr*l-Xr*s),e.closePath()}};function Jbe(e,t){let n=null,r=kC(i);e=typeof e=="function"?e:Ct(e||LC),t=typeof t=="function"?t:Ct(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ct(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ct(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Ny(){}function Ly(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 SU(e){this._context=e}SU.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:Ly(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:Ly(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function e_e(e){return new SU(e)}function EU(e){this._context=e}EU.prototype={areaStart:Ny,areaEnd:Ny,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:Ly(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function t_e(e){return new EU(e)}function jU(e){this._context=e}jU.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:Ly(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n_e(e){return new jU(e)}function TU(e){this._context=e}TU.prototype={areaStart:Ny,areaEnd:Ny,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 r_e(e){return new TU(e)}function bR(e){return e<0?-1:1}function _R(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(bR(o)+bR(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function xR(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $x(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Ry(e){this._context=e}Ry.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:$x(this,this._t0,xR(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,$x(this,xR(this,n=_R(this,e,t)),n);break;default:$x(this,this._t0,n=_R(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function CU(e){this._context=new PU(e)}(CU.prototype=Object.create(Ry.prototype)).point=function(e,t){Ry.prototype.point.call(this,t,e)};function PU(e){this._context=e}PU.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function i_e(e){return new Ry(e)}function o_e(e){return new CU(e)}function AU(e){this._context=e}AU.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=wR(e),i=wR(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(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 wR(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function a_e(e){return new AU(e)}function Pb(e,t){this._context=e,this._t=t}Pb.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 s_e(e){return new Pb(e,.5)}function l_e(e){return new Pb(e,0)}function u_e(e){return new Pb(e,1)}function xc(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function AS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function c_e(e,t){return e[t]}function f_e(e){const t=[];return t.key=e,t}function d_e(){var e=Ct([]),t=AS,n=xc,r=c_e;function i(o){var a=Array.from(e.apply(this,arguments),f_e),s,l=a.length,u=-1,f;for(const d of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+r(d,a[s].key,u,o)]).data=d;for(s=0,f=NC(t(a));s<l;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ct(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ct(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?AS:typeof o=="function"?o:Ct(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??xc,i):n},i}function h_e(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}xc(e,t)}}function p_e(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}xc(e,t)}}function m_e(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,u=0;s<a;++s){for(var f=e[t[s]],d=f[r][1]||0,p=f[r-1][1]||0,v=(d-p)/2,g=0;g<s;++g){var y=e[t[g]],w=y[r][1]||0,b=y[r-1][1]||0;v+=w-b}l+=d,u+=v*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,xc(e,t)}}function Dh(e){"@babel/helpers - typeof";return Dh=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},Dh(e)}var v_e=["type","size","sizeType"];function kS(){return kS=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},kS.apply(this,arguments)}function OR(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 SR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OR(Object(n),!0).forEach(function(r){g_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g_e(e,t,n){return t=y_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y_e(e){var t=b_e(e,"string");return Dh(t)=="symbol"?t:String(t)}function b_e(e,t){if(Dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function __e(e,t){if(e==null)return{};var n=x_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kU={symbolCircle:LC,symbolCross:zbe,symbolDiamond:Hbe,symbolSquare:Wbe,symbolStar:Ybe,symbolTriangle:Kbe,symbolWye:Qbe},w_e=Math.PI/180,O_e=function(e){var t="symbol".concat(jb(e));return kU[t]||LC},S_e=function(e,t,n){if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*w_e;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},E_e=function(e,t){kU["symbol".concat(jb(e))]=t},Ab=function(e){var t=e.type,n=t===void 0?"circle":t,r=e.size,i=r===void 0?64:r,o=e.sizeType,a=o===void 0?"area":o,s=__e(e,v_e),l=SR(SR({},s),{},{type:n,size:i,sizeType:a}),u=function(){var g=O_e(n),y=Jbe().type(g).size(S_e(i,a,n));return y()},f=l.className,d=l.cx,p=l.cy,v=$e(l,!0);return d===+d&&p===+p&&i===+i?V.createElement("path",kS({},v,{className:De("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:u()})):null};Ab.registerSymbol=E_e;function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function NS(){return NS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NS.apply(this,arguments)}function ER(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function j_e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ER(Object(n),!0).forEach(function(r){$h(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(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,LU(r.key),r)}}function C_e(e,t,n){return t&&jR(e.prototype,t),n&&jR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P_e(e,t,n){return t=My(t),A_e(e,NU()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function A_e(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k_e(e)}function k_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NU=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},My(e)}function N_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LS(e,t)}function LS(e,t){return LS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},LS(e,t)}function $h(e,t,n){return t=LU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LU(e){var t=L_e(e,"string");return wc(t)=="symbol"?t:String(t)}function L_e(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qr=32,RC=function(e){N_e(t,e);function t(){return T_e(this,t),P_e(this,t,arguments)}return C_e(t,[{key:"renderIcon",value:function(n){var r=this.props.inactiveColor,i=Qr/2,o=Qr/6,a=Qr/3,s=n.inactive?r:n.color;if(n.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Qr,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(a,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(i,`
|
||
H`).concat(Qr,"M").concat(2*a,",").concat(i,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return V.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Qr/8,"h").concat(Qr,"v").concat(Qr*3/4,"h").concat(-Qr,"z"),className:"recharts-legend-icon"});if(V.isValidElement(n.legendIcon)){var l=j_e({},n);return delete l.legendIcon,V.cloneElement(n.legendIcon,l)}return V.createElement(Ab,{fill:s,cx:i,cy:i,size:Qr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,r=this.props,i=r.payload,o=r.iconSize,a=r.layout,s=r.formatter,l=r.inactiveColor,u={x:0,y:0,width:Qr,height:Qr},f={display:a==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,v){var g=p.formatter||s,y=De($h($h({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",p.inactive));if(p.type==="none")return null;var w=Ge(p.value)?null:p.value;Fi(!Ge(p.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 b=p.inactive?l:p.color;return V.createElement("li",NS({className:y,style:f,key:"legend-item-".concat(v)},ls(n.props,p,v)),V.createElement(OS,{width:o,height:o,viewBox:u,style:d},n.renderIcon(p)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},g?g(w,p,v):w))})}},{key:"render",value:function(){var n=this.props,r=n.payload,i=n.layout,o=n.align;if(!r||!r.length)return null;var a={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:a},this.renderItems())}}]),t}(R.PureComponent);$h(RC,"displayName","Legend");$h(RC,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var R_e=Ob;function M_e(){this.__data__=new R_e,this.size=0}var I_e=M_e;function D_e(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var $_e=D_e;function F_e(e){return this.__data__.get(e)}var U_e=F_e;function B_e(e){return this.__data__.has(e)}var z_e=B_e,V_e=Ob,H_e=SC,W_e=EC,G_e=200;function q_e(e,t){var n=this.__data__;if(n instanceof V_e){var r=n.__data__;if(!H_e||r.length<G_e-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new W_e(r)}return n.set(e,t),this.size=n.size,this}var Z_e=q_e,Y_e=Ob,K_e=I_e,X_e=$_e,Q_e=U_e,J_e=z_e,exe=Z_e;function cf(e){var t=this.__data__=new Y_e(e);this.size=t.size}cf.prototype.clear=K_e;cf.prototype.delete=X_e;cf.prototype.get=Q_e;cf.prototype.has=J_e;cf.prototype.set=exe;var RU=cf,txe="__lodash_hash_undefined__";function nxe(e){return this.__data__.set(e,txe),this}var rxe=nxe;function ixe(e){return this.__data__.has(e)}var oxe=ixe,axe=EC,sxe=rxe,lxe=oxe;function Iy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new axe;++t<n;)this.add(e[t])}Iy.prototype.add=Iy.prototype.push=sxe;Iy.prototype.has=lxe;var MU=Iy;function uxe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var IU=uxe;function cxe(e,t){return e.has(t)}var DU=cxe,fxe=MU,dxe=IU,hxe=DU,pxe=1,mxe=2;function vxe(e,t,n,r,i,o){var a=n&pxe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,v=n&mxe?new fxe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],y=t[d];if(r)var w=a?r(y,g,d,t,e,o):r(g,y,d,e,t,o);if(w!==void 0){if(w)continue;p=!1;break}if(v){if(!dxe(t,function(b,x){if(!hxe(v,x)&&(g===b||i(g,b,n,r,o)))return v.push(x)})){p=!1;break}}else if(!(g===y||i(g,y,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var $U=vxe,gxe=jo,yxe=gxe.Uint8Array,bxe=yxe;function _xe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var xxe=_xe;function wxe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var MC=wxe,TR=Yp,CR=bxe,Oxe=OC,Sxe=$U,Exe=xxe,jxe=MC,Txe=1,Cxe=2,Pxe="[object Boolean]",Axe="[object Date]",kxe="[object Error]",Nxe="[object Map]",Lxe="[object Number]",Rxe="[object RegExp]",Mxe="[object Set]",Ixe="[object String]",Dxe="[object Symbol]",$xe="[object ArrayBuffer]",Fxe="[object DataView]",PR=TR?TR.prototype:void 0,Fx=PR?PR.valueOf:void 0;function Uxe(e,t,n,r,i,o,a){switch(n){case Fxe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $xe:return!(e.byteLength!=t.byteLength||!o(new CR(e),new CR(t)));case Pxe:case Axe:case Lxe:return Oxe(+e,+t);case kxe:return e.name==t.name&&e.message==t.message;case Rxe:case Ixe:return e==t+"";case Nxe:var s=Exe;case Mxe:var l=r&Txe;if(s||(s=jxe),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=Cxe,a.set(e,t);var f=Sxe(s(e),s(t),r,i,o,a);return a.delete(e),f;case Dxe:if(Fx)return Fx.call(e)==Fx.call(t)}return!1}var Bxe=Uxe;function zxe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var FU=zxe,Vxe=FU,Hxe=Cr;function Wxe(e,t,n){var r=t(e);return Hxe(e)?r:Vxe(r,n(e))}var Gxe=Wxe;function qxe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var Zxe=qxe;function Yxe(){return[]}var Kxe=Yxe,Xxe=Zxe,Qxe=Kxe,Jxe=Object.prototype,ewe=Jxe.propertyIsEnumerable,AR=Object.getOwnPropertySymbols,twe=AR?function(e){return e==null?[]:(e=Object(e),Xxe(AR(e),function(t){return ewe.call(e,t)}))}:Qxe,nwe=twe;function rwe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var iwe=rwe,owe=ca,awe=fa,swe="[object Arguments]";function lwe(e){return awe(e)&&owe(e)==swe}var uwe=lwe,kR=uwe,cwe=fa,UU=Object.prototype,fwe=UU.hasOwnProperty,dwe=UU.propertyIsEnumerable,hwe=kR(function(){return arguments}())?kR:function(e){return cwe(e)&&fwe.call(e,"callee")&&!dwe.call(e,"callee")},IC=hwe,Dy={exports:{}};function pwe(){return!1}var mwe=pwe;Dy.exports;(function(e,t){var n=jo,r=mwe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(Dy,Dy.exports);var BU=Dy.exports,vwe=9007199254740991,gwe=/^(?:0|[1-9]\d*)$/;function ywe(e,t){var n=typeof e;return t=t??vwe,!!t&&(n=="number"||n!="symbol"&&gwe.test(e))&&e>-1&&e%1==0&&e<t}var DC=ywe,bwe=9007199254740991;function _we(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bwe}var $C=_we,xwe=ca,wwe=$C,Owe=fa,Swe="[object Arguments]",Ewe="[object Array]",jwe="[object Boolean]",Twe="[object Date]",Cwe="[object Error]",Pwe="[object Function]",Awe="[object Map]",kwe="[object Number]",Nwe="[object Object]",Lwe="[object RegExp]",Rwe="[object Set]",Mwe="[object String]",Iwe="[object WeakMap]",Dwe="[object ArrayBuffer]",$we="[object DataView]",Fwe="[object Float32Array]",Uwe="[object Float64Array]",Bwe="[object Int8Array]",zwe="[object Int16Array]",Vwe="[object Int32Array]",Hwe="[object Uint8Array]",Wwe="[object Uint8ClampedArray]",Gwe="[object Uint16Array]",qwe="[object Uint32Array]",Tt={};Tt[Fwe]=Tt[Uwe]=Tt[Bwe]=Tt[zwe]=Tt[Vwe]=Tt[Hwe]=Tt[Wwe]=Tt[Gwe]=Tt[qwe]=!0;Tt[Swe]=Tt[Ewe]=Tt[Dwe]=Tt[jwe]=Tt[$we]=Tt[Twe]=Tt[Cwe]=Tt[Pwe]=Tt[Awe]=Tt[kwe]=Tt[Nwe]=Tt[Lwe]=Tt[Rwe]=Tt[Mwe]=Tt[Iwe]=!1;function Zwe(e){return Owe(e)&&wwe(e.length)&&!!Tt[xwe(e)]}var Ywe=Zwe;function Kwe(e){return function(t){return e(t)}}var zU=Kwe,$y={exports:{}};$y.exports;(function(e,t){var n=K1,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})($y,$y.exports);var Xwe=$y.exports,Qwe=Ywe,Jwe=zU,NR=Xwe,LR=NR&&NR.isTypedArray,e2e=LR?Jwe(LR):Qwe,VU=e2e,t2e=iwe,n2e=IC,r2e=Cr,i2e=BU,o2e=DC,a2e=VU,s2e=Object.prototype,l2e=s2e.hasOwnProperty;function u2e(e,t){var n=r2e(e),r=!n&&n2e(e),i=!n&&!r&&i2e(e),o=!n&&!r&&!i&&a2e(e),a=n||r||i||o,s=a?t2e(e.length,String):[],l=s.length;for(var u in e)(t||l2e.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||o2e(u,l)))&&s.push(u);return s}var c2e=u2e,f2e=Object.prototype;function d2e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||f2e;return e===n}var h2e=d2e;function p2e(e,t){return function(n){return e(t(n))}}var HU=p2e,m2e=HU,v2e=m2e(Object.keys,Object),g2e=v2e,y2e=h2e,b2e=g2e,_2e=Object.prototype,x2e=_2e.hasOwnProperty;function w2e(e){if(!y2e(e))return b2e(e);var t=[];for(var n in Object(e))x2e.call(e,n)&&n!="constructor"&&t.push(n);return t}var O2e=w2e,S2e=wC,E2e=$C;function j2e(e){return e!=null&&E2e(e.length)&&!S2e(e)}var Xp=j2e,T2e=c2e,C2e=O2e,P2e=Xp;function A2e(e){return P2e(e)?T2e(e):C2e(e)}var kb=A2e,k2e=Gxe,N2e=nwe,L2e=kb;function R2e(e){return k2e(e,L2e,N2e)}var M2e=R2e,RR=M2e,I2e=1,D2e=Object.prototype,$2e=D2e.hasOwnProperty;function F2e(e,t,n,r,i,o){var a=n&I2e,s=RR(e),l=s.length,u=RR(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:$2e.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var w=a;++d<l;){p=s[d];var b=e[p],x=t[p];if(r)var _=a?r(x,b,p,t,e,o):r(b,x,p,e,t,o);if(!(_===void 0?b===x||i(b,x,n,r,o):_)){y=!1;break}w||(w=p=="constructor")}if(y&&!w){var S=e.constructor,j=t.constructor;S!=j&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof j=="function"&&j instanceof j)&&(y=!1)}return o.delete(e),o.delete(t),y}var U2e=F2e,B2e=Dl,z2e=jo,V2e=B2e(z2e,"DataView"),H2e=V2e,W2e=Dl,G2e=jo,q2e=W2e(G2e,"Promise"),Z2e=q2e,Y2e=Dl,K2e=jo,X2e=Y2e(K2e,"Set"),WU=X2e,Q2e=Dl,J2e=jo,eOe=Q2e(J2e,"WeakMap"),tOe=eOe,RS=H2e,MS=SC,IS=Z2e,DS=WU,$S=tOe,GU=ca,ff=Q1,MR="[object Map]",nOe="[object Object]",IR="[object Promise]",DR="[object Set]",$R="[object WeakMap]",FR="[object DataView]",rOe=ff(RS),iOe=ff(MS),oOe=ff(IS),aOe=ff(DS),sOe=ff($S),Hs=GU;(RS&&Hs(new RS(new ArrayBuffer(1)))!=FR||MS&&Hs(new MS)!=MR||IS&&Hs(IS.resolve())!=IR||DS&&Hs(new DS)!=DR||$S&&Hs(new $S)!=$R)&&(Hs=function(e){var t=GU(e),n=t==nOe?e.constructor:void 0,r=n?ff(n):"";if(r)switch(r){case rOe:return FR;case iOe:return MR;case oOe:return IR;case aOe:return DR;case sOe:return $R}return t});var lOe=Hs,Ux=RU,uOe=$U,cOe=Bxe,fOe=U2e,UR=lOe,BR=Cr,zR=BU,dOe=VU,hOe=1,VR="[object Arguments]",HR="[object Array]",mv="[object Object]",pOe=Object.prototype,WR=pOe.hasOwnProperty;function mOe(e,t,n,r,i,o){var a=BR(e),s=BR(t),l=a?HR:UR(e),u=s?HR:UR(t);l=l==VR?mv:l,u=u==VR?mv:u;var f=l==mv,d=u==mv,p=l==u;if(p&&zR(e)){if(!zR(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new Ux),a||dOe(e)?uOe(e,t,n,r,i,o):cOe(e,t,l,n,r,i,o);if(!(n&hOe)){var v=f&&WR.call(e,"__wrapped__"),g=d&&WR.call(t,"__wrapped__");if(v||g){var y=v?e.value():e,w=g?t.value():t;return o||(o=new Ux),i(y,w,n,r,o)}}return p?(o||(o=new Ux),fOe(e,t,n,r,i,o)):!1}var vOe=mOe,gOe=vOe,GR=fa;function qU(e,t,n,r,i){return e===t?!0:e==null||t==null||!GR(e)&&!GR(t)?e!==e&&t!==t:gOe(e,t,n,r,qU,i)}var FC=qU,yOe=RU,bOe=FC,_Oe=1,xOe=2;function wOe(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new yOe;if(r)var p=r(u,f,l,e,t,d);if(!(p===void 0?bOe(f,u,_Oe|xOe,r,d):p))return!1}}return!0}var OOe=wOe,SOe=bs;function EOe(e){return e===e&&!SOe(e)}var ZU=EOe,jOe=ZU,TOe=kb;function COe(e){for(var t=TOe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,jOe(i)]}return t}var POe=COe;function AOe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var YU=AOe,kOe=OOe,NOe=POe,LOe=YU;function ROe(e){var t=NOe(e);return t.length==1&&t[0][2]?LOe(t[0][0],t[0][1]):function(n){return n===e||kOe(n,e,t)}}var MOe=ROe;function IOe(e,t){return e!=null&&t in Object(e)}var DOe=IOe,$Oe=rU,FOe=IC,UOe=Cr,BOe=DC,zOe=$C,VOe=Eb;function HOe(e,t,n){t=$Oe(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=VOe(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&zOe(i)&&BOe(a,i)&&(UOe(e)||FOe(e)))}var WOe=HOe,GOe=DOe,qOe=WOe;function ZOe(e,t){return e!=null&&qOe(e,t,GOe)}var YOe=ZOe,KOe=FC,XOe=iU,QOe=YOe,JOe=xC,eSe=ZU,tSe=YU,nSe=Eb,rSe=1,iSe=2;function oSe(e,t){return JOe(e)&&eSe(t)?tSe(nSe(e),t):function(n){var r=XOe(n,e);return r===void 0&&r===t?QOe(n,e):KOe(t,r,rSe|iSe)}}var aSe=oSe;function sSe(e){return e}var df=sSe;function lSe(e){return function(t){return t==null?void 0:t[e]}}var uSe=lSe,cSe=CC;function fSe(e){return function(t){return cSe(t,e)}}var dSe=fSe,hSe=uSe,pSe=dSe,mSe=xC,vSe=Eb;function gSe(e){return mSe(e)?hSe(vSe(e)):pSe(e)}var ySe=gSe,bSe=MOe,_Se=aSe,xSe=df,wSe=Cr,OSe=ySe;function SSe(e){return typeof e=="function"?e:e==null?xSe:typeof e=="object"?wSe(e)?_Se(e[0],e[1]):bSe(e):OSe(e)}var To=SSe;function ESe(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var KU=ESe;function jSe(e){return e!==e}var TSe=jSe;function CSe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var PSe=CSe,ASe=KU,kSe=TSe,NSe=PSe;function LSe(e,t,n){return t===t?NSe(e,t,n):ASe(e,kSe,n)}var RSe=LSe,MSe=RSe;function ISe(e,t){var n=e==null?0:e.length;return!!n&&MSe(e,t,0)>-1}var DSe=ISe;function $Se(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var FSe=$Se;function USe(){}var BSe=USe,Bx=WU,zSe=BSe,VSe=MC,HSe=1/0,WSe=Bx&&1/VSe(new Bx([,-0]))[1]==HSe?function(e){return new Bx(e)}:zSe,GSe=WSe,qSe=MU,ZSe=DSe,YSe=FSe,KSe=DU,XSe=GSe,QSe=MC,JSe=200;function eEe(e,t,n){var r=-1,i=ZSe,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=YSe;else if(o>=JSe){var u=t?null:XSe(e);if(u)return QSe(u);a=!1,i=KSe,l=new qSe}else l=t?[]:s;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(f)}else i(l,d,n)||(l!==s&&l.push(d),s.push(f))}return s}var tEe=eEe,nEe=To,rEe=tEe;function iEe(e,t){return e&&e.length?rEe(e,nEe(t)):[]}var oEe=iEe;const qR=gt(oEe);function XU(e,t,n){return t===!0?qR(e,n):Ge(t)?qR(e,t):e}function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}var aEe=["ref"];function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){Nb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YR(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,e9(r.key),r)}}function lEe(e,t,n){return t&&YR(e.prototype,t),n&&YR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uEe(e,t,n){return t=Fy(t),cEe(e,QU()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}function cEe(e,t){if(t&&(Oc(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 QU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QU=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fy(e)}function JU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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&&FS(e,t)}function FS(e,t){return FS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},FS(e,t)}function Nb(e,t,n){return t=e9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e9(e){var t=dEe(e,"string");return Oc(t)=="symbol"?t:String(t)}function dEe(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hEe(e,t){if(e==null)return{};var n=pEe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mEe(e){return e.value}function vEe(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var n=hEe(t,aEe);return V.createElement(RC,n)}var KR=1,Fh=function(e){fEe(t,e);function t(){var n;sEe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=uEe(this,t,[].concat(i)),Nb(JU(n),"lastBoundingBox",{width:-1,height:-1}),n}return lEe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,r=this.getBBox();r?(Math.abs(r.width-this.lastBoundingBox.width)>KR||Math.abs(r.height-this.lastBoundingBox.height)>KR)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height,n&&n(r)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ks({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,l=r.chartWidth,u=r.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((l||0)-p.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(a==="middle"){var v=this.getBBoxSnapshot();d={top:((u||0)-v.height)/2}}else d=a==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return ks(ks({},f),d)}},{key:"render",value:function(){var n=this,r=this.props,i=r.content,o=r.width,a=r.height,s=r.wrapperStyle,l=r.payloadUniqBy,u=r.payload,f=ks(ks({position:"absolute",width:o||"auto",height:a||"auto"},this.getDefaultPosition(s)),s);return V.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(d){n.wrapperNode=d}},vEe(i,ks(ks({},this.props),{},{payload:XU(u,l,mEe)})))}}],[{key:"getWithHeight",value:function(n,r){var i=n.props.layout;return i==="vertical"&&Ee(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||r}:null}}]),t}(R.PureComponent);Nb(Fh,"displayName","Legend");Nb(Fh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var XR=Yp,gEe=IC,yEe=Cr,QR=XR?XR.isConcatSpreadable:void 0;function bEe(e){return yEe(e)||gEe(e)||!!(QR&&e&&e[QR])}var _Ee=bEe,xEe=FU,wEe=_Ee;function t9(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=wEe),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?t9(s,t-1,n,r,i):xEe(i,s):r||(i[i.length]=s)}return i}var n9=t9;function OEe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var SEe=OEe,EEe=SEe,jEe=EEe(),TEe=jEe,CEe=TEe,PEe=kb;function AEe(e,t){return e&&CEe(e,t,PEe)}var r9=AEe,kEe=Xp;function NEe(e,t){return function(n,r){if(n==null)return n;if(!kEe(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var LEe=NEe,REe=r9,MEe=LEe,IEe=MEe(REe),UC=IEe,DEe=UC,$Ee=Xp;function FEe(e,t){var n=-1,r=$Ee(e)?Array(e.length):[];return DEe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var i9=FEe;function UEe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var BEe=UEe,JR=rf;function zEe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=JR(e),a=t!==void 0,s=t===null,l=t===t,u=JR(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var VEe=zEe,HEe=VEe;function WEe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=HEe(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var GEe=WEe,zx=TC,qEe=CC,ZEe=To,YEe=i9,KEe=BEe,XEe=zU,QEe=GEe,JEe=df,eje=Cr;function tje(e,t,n){t.length?t=zx(t,function(o){return eje(o)?function(a){return qEe(a,o.length===1?o[0]:o)}:o}):t=[JEe];var r=-1;t=zx(t,XEe(ZEe));var i=YEe(e,function(o,a,s){var l=zx(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return KEe(i,function(o,a){return QEe(o,a,n)})}var nje=tje;function rje(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ije=rje,oje=ije,eM=Math.max;function aje(e,t,n){return t=eM(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=eM(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),oje(e,this,s)}}var sje=aje;function lje(e){return function(){return e}}var uje=lje,cje=Dl,fje=function(){try{var e=cje(Object,"defineProperty");return e({},"",{}),e}catch{}}(),o9=fje,dje=uje,tM=o9,hje=df,pje=tM?function(e,t){return tM(e,"toString",{configurable:!0,enumerable:!1,value:dje(t),writable:!0})}:hje,mje=pje,vje=800,gje=16,yje=Date.now;function bje(e){var t=0,n=0;return function(){var r=yje(),i=gje-(r-n);if(n=r,i>0){if(++t>=vje)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _je=bje,xje=mje,wje=_je,Oje=wje(xje),Sje=Oje,Eje=df,jje=sje,Tje=Sje;function Cje(e,t){return Tje(jje(e,t,Eje),e+"")}var Pje=Cje,Aje=OC,kje=Xp,Nje=DC,Lje=bs;function Rje(e,t,n){if(!Lje(n))return!1;var r=typeof t;return(r=="number"?kje(n)&&Nje(t,n.length):r=="string"&&t in n)?Aje(n[t],e):!1}var Lb=Rje,Mje=n9,Ije=nje,Dje=Pje,nM=Lb,$je=Dje(function(e,t){if(e==null)return[];var n=t.length;return n>1&&nM(e,t[0],t[1])?t=[]:n>2&&nM(t[0],t[1],t[2])&&(t=[t[0]]),Ije(e,Mje(t,1),[])}),Fje=$je;const BC=gt(Fje);function Uh(e){"@babel/helpers - typeof";return Uh=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},Uh(e)}function US(){return US=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},US.apply(this,arguments)}function Uje(e,t){return Hje(e)||Vje(e,t)||zje(e,t)||Bje()}function Bje(){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 zje(e,t){if(e){if(typeof e=="string")return rM(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 rM(e,t)}}function rM(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 Vje(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Hje(e){if(Array.isArray(e))return e}function iM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iM(Object(n),!0).forEach(function(r){Wje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wje(e,t,n){return t=Gje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gje(e){var t=qje(e,"string");return Uh(t)=="symbol"?t:String(t)}function qje(e,t){if(Uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zje(e){return Array.isArray(e)&&pn(e[0])&&pn(e[1])?e.join(" ~ "):e}var Yje=function(e){var t=e.separator,n=t===void 0?" : ":t,r=e.contentStyle,i=r===void 0?{}:r,o=e.itemStyle,a=o===void 0?{}:o,s=e.labelStyle,l=s===void 0?{}:s,u=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,v=e.labelClassName,g=e.label,y=e.labelFormatter,w=e.accessibilityLayer,b=w===void 0?!1:w,x=function(){if(u&&u.length){var M={padding:0,margin:0},D=(d?BC(u,d):u).map(function(z,q){if(z.type==="none")return null;var W=Vx({display:"block",paddingTop:4,paddingBottom:4,color:z.color||"#000"},a),X=z.formatter||f||Zje,J=z.value,te=z.name,K=J,B=te;if(X&&K!=null&&B!=null){var F=X(J,te,z,q,u);if(Array.isArray(F)){var H=Uje(F,2);K=H[0],B=H[1]}else K=F}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(q),style:W},pn(B)?V.createElement("span",{className:"recharts-tooltip-item-name"},B):null,pn(B)?V.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,V.createElement("span",{className:"recharts-tooltip-item-value"},K),V.createElement("span",{className:"recharts-tooltip-item-unit"},z.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:M},D)}return null},_=Vx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=Vx({margin:0},l),j=!ze(g),E=j?g:"",P=De("recharts-default-tooltip",p),N=De("recharts-tooltip-label",v);j&&y&&u!==void 0&&u!==null&&(E=y(g,u));var I=b?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",US({className:P,style:_},I),V.createElement("p",{className:N,style:S},V.isValidElement(E)?E:"".concat(E)),x())};function Bh(e){"@babel/helpers - typeof";return Bh=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},Bh(e)}function vv(e,t,n){return t=Kje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kje(e){var t=Xje(e,"string");return Bh(t)=="symbol"?t:String(t)}function Xje(e,t){if(Bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jf="recharts-tooltip-wrapper",Qje={visibility:"hidden"};function Jje(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return De(Jf,vv(vv(vv(vv({},"".concat(Jf,"-right"),Ee(n)&&t&&Ee(t.x)&&n>=t.x),"".concat(Jf,"-left"),Ee(n)&&t&&Ee(t.x)&&n<t.x),"".concat(Jf,"-bottom"),Ee(r)&&t&&Ee(t.y)&&r>=t.y),"".concat(Jf,"-top"),Ee(r)&&t&&Ee(t.y)&&r<t.y))}function oM(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&Ee(o[r]))return o[r];var f=n[r]-s-i,d=n[r]+i;if(t[r])return a[r]?f:d;if(a[r]){var p=f,v=l[r];return p<v?Math.max(d,l[r]):Math.max(f,l[r])}var g=d+s,y=l[r]+u;return g>y?Math.max(f,l[r]):Math.max(d,l[r])}function eTe(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 tTe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return a.height>0&&a.width>0&&n?(f=oM({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=oM({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=eTe({translateX:f,translateY:d,useTranslate3d:s})):u=Qje,{cssProperties:u,cssClasses:Jje({translateX:f,translateY:d,coordinate:n})}}function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}function aM(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 sM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(r){ig(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(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,s9(r.key),r)}}function rTe(e,t,n){return t&&lM(e.prototype,t),n&&lM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iTe(e,t,n){return t=Uy(t),oTe(e,a9()?Reflect.construct(t,n||[],Uy(e).constructor):t.apply(e,n))}function oTe(e,t){if(t&&(Sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rg(e)}function a9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a9=function(){return!!e})()}function Uy(e){return Uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uy(e)}function rg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aTe(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&&BS(e,t)}function BS(e,t){return BS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},BS(e,t)}function ig(e,t,n){return t=s9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s9(e){var t=sTe(e,"string");return Sc(t)=="symbol"?t:String(t)}function sTe(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uM=1,lTe=function(e){aTe(t,e);function t(){var n;nTe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=iTe(this,t,[].concat(i)),ig(rg(n),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),ig(rg(n),"lastBoundingBox",{width:-1,height:-1}),ig(rg(n),"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return rTe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.lastBoundingBox.width)>uM||Math.abs(n.height-this.lastBoundingBox.height)>uM)&&(this.lastBoundingBox.width=n.width,this.lastBoundingBox.height=n.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.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 n,r;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,r=this.props,i=r.active,o=r.allowEscapeViewBox,a=r.animationDuration,s=r.animationEasing,l=r.children,u=r.coordinate,f=r.hasPayload,d=r.isAnimationActive,p=r.offset,v=r.position,g=r.reverseDirection,y=r.useTranslate3d,w=r.viewBox,b=r.wrapperStyle,x=tTe({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:p,position:v,reverseDirection:g,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:y,viewBox:w}),_=x.cssClasses,S=x.cssProperties,j=sM(sM({transition:d&&i?"transform ".concat(a,"ms ").concat(s):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return V.createElement("div",{tabIndex:-1,className:_,style:j,ref:function(E){n.wrapperNode=E}},l)}}]),t}(R.PureComponent),uTe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},hi={isSsr:uTe(),get:function(e){return hi[e]},set:function(e,t){if(typeof e=="string")hi[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(r){hi[r]=e[r]})}}};function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function cM(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 fM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){zC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dM(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,u9(r.key),r)}}function fTe(e,t,n){return t&&dM(e.prototype,t),n&&dM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dTe(e,t,n){return t=By(t),hTe(e,l9()?Reflect.construct(t,n||[],By(e).constructor):t.apply(e,n))}function hTe(e,t){if(t&&(Ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pTe(e)}function pTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l9=function(){return!!e})()}function By(e){return By=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},By(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&&zS(e,t)}function zS(e,t){return zS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},zS(e,t)}function zC(e,t,n){return t=u9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u9(e){var t=vTe(e,"string");return Ec(t)=="symbol"?t:String(t)}function vTe(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gTe(e){return e.dataKey}function yTe(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(Yje,t)}var ti=function(e){mTe(t,e);function t(){return cTe(this,t),dTe(this,t,arguments)}return fTe(t,[{key:"render",value:function(){var n=this,r=this.props,i=r.active,o=r.allowEscapeViewBox,a=r.animationDuration,s=r.animationEasing,l=r.content,u=r.coordinate,f=r.filterNull,d=r.isAnimationActive,p=r.offset,v=r.payload,g=r.payloadUniqBy,y=r.position,w=r.reverseDirection,b=r.useTranslate3d,x=r.viewBox,_=r.wrapperStyle,S=v??[];f&&S.length&&(S=XU(v.filter(function(E){return E.value!=null&&(E.hide!==!0||n.props.includeHidden)}),g,gTe));var j=S.length>0;return V.createElement(lTe,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:d,active:i,coordinate:u,hasPayload:j,offset:p,position:y,reverseDirection:w,useTranslate3d:b,viewBox:x,wrapperStyle:_},yTe(l,fM(fM({},this.props),{},{payload:S})))}}]),t}(R.PureComponent);zC(ti,"displayName","Tooltip");zC(ti,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!hi.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 bTe=jo,_Te=function(){return bTe.Date.now()},xTe=_Te,wTe=/\s/;function OTe(e){for(var t=e.length;t--&&wTe.test(e.charAt(t)););return t}var STe=OTe,ETe=STe,jTe=/^\s+/;function TTe(e){return e&&e.slice(0,ETe(e)+1).replace(jTe,"")}var CTe=TTe,PTe=CTe,hM=bs,ATe=rf,pM=NaN,kTe=/^[-+]0x[0-9a-f]+$/i,NTe=/^0b[01]+$/i,LTe=/^0o[0-7]+$/i,RTe=parseInt;function MTe(e){if(typeof e=="number")return e;if(ATe(e))return pM;if(hM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=hM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=PTe(e);var n=NTe.test(e);return n||LTe.test(e)?RTe(e.slice(2),n?2:8):kTe.test(e)?pM:+e}var c9=MTe,ITe=bs,Hx=xTe,mM=c9,DTe="Expected a function",$Te=Math.max,FTe=Math.min;function UTe(e,t,n){var r,i,o,a,s,l,u=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(DTe);t=mM(t)||0,ITe(n)&&(f=!!n.leading,d="maxWait"in n,o=d?$Te(mM(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function v(E){var P=r,N=i;return r=i=void 0,u=E,a=e.apply(N,P),a}function g(E){return u=E,s=setTimeout(b,t),f?v(E):a}function y(E){var P=E-l,N=E-u,I=t-P;return d?FTe(I,o-N):I}function w(E){var P=E-l,N=E-u;return l===void 0||P>=t||P<0||d&&N>=o}function b(){var E=Hx();if(w(E))return x(E);s=setTimeout(b,y(E))}function x(E){return s=void 0,p&&r?v(E):(r=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function S(){return s===void 0?a:x(Hx())}function j(){var E=Hx(),P=w(E);if(r=arguments,i=this,l=E,P){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),a}return j.cancel=_,j.flush=S,j}var BTe=UTe,zTe=BTe,VTe=bs,HTe="Expected a function";function WTe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(HTe);return VTe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zTe(e,t,{leading:r,maxWait:t,trailing:i})}var GTe=WTe;const f9=gt(GTe);function zh(e){"@babel/helpers - typeof";return zh=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},zh(e)}function vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vM(Object(n),!0).forEach(function(r){qTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qTe(e,t,n){return t=ZTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZTe(e){var t=YTe(e,"string");return zh(t)=="symbol"?t:String(t)}function YTe(e,t){if(zh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KTe(e,t){return eCe(e)||JTe(e,t)||QTe(e,t)||XTe()}function XTe(){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 QTe(e,t){if(e){if(typeof e=="string")return gM(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 gM(e,t)}}function gM(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 JTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function eCe(e){if(Array.isArray(e))return e}var VC=R.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,p=e.maxHeight,v=e.children,g=e.debounce,y=g===void 0?0:g,w=e.id,b=e.className,x=e.onResize,_=e.style,S=_===void 0?{}:_,j=R.useRef(null),E=R.useRef();E.current=x,R.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var P=R.useState({containerWidth:i.width,containerHeight:i.height}),N=KTe(P,2),I=N[0],M=N[1],D=R.useCallback(function(q,W){M(function(X){var J=Math.round(q),te=Math.round(W);return X.containerWidth===J&&X.containerHeight===te?X:{containerWidth:J,containerHeight:te}})},[]);R.useEffect(function(){var q=function(K){var B,F=K[0].contentRect,H=F.width,ne=F.height;D(H,ne),(B=E.current)===null||B===void 0||B.call(E,H,ne)};y>0&&(q=f9(q,y,{trailing:!0,leading:!1}));var W=new ResizeObserver(q),X=j.current.getBoundingClientRect(),J=X.width,te=X.height;return D(J,te),W.observe(j.current),function(){W.disconnect()}},[D,y]);var z=R.useMemo(function(){var q=I.containerWidth,W=I.containerHeight;if(q<0||W<0)return null;Fi(tl(a)||tl(l),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,a,l),Fi(!n||n>0,"The aspect(%s) must be greater than zero.",n);var X=tl(a)?q:a,J=tl(l)?W:l;n&&n>0&&(X?J=X/n:J&&(X=J*n),p&&J>p&&(J=p)),Fi(X>0||J>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.`,X,J,a,l,f,d,n);var te=!Array.isArray(v)&&yS.isElement(v)&&zo(v.type).endsWith("Chart");return V.Children.map(v,function(K){return yS.isElement(K)?R.cloneElement(K,gv({width:X,height:J},te?{style:gv({height:"100%",width:"100%",maxHeight:J,maxWidth:X},K.props.style)}:{})):K})},[n,v,l,p,d,f,I,a]);return V.createElement("div",{id:w?"".concat(w):void 0,className:De("recharts-responsive-container",b),style:gv(gv({},S),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:j},z)}),Ka=function(e){return null};Ka.displayName="Cell";function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}function yM(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 VS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(r){tCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tCe(e,t,n){return t=nCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nCe(e){var t=rCe(e,"string");return Vh(t)=="symbol"?t:String(t)}function rCe(e,t){if(Vh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uu={widthCache:{},cacheCount:0},iCe=2e3,oCe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},bM="recharts_measurement_span";function aCe(e){var t=VS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Vd=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||hi.isSsr)return{width:0,height:0};var n=aCe(t),r=JSON.stringify({text:e,copyStyle:n});if(uu.widthCache[r])return uu.widthCache[r];try{var i=document.getElementById(bM);i||(i=document.createElement("span"),i.setAttribute("id",bM),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=VS(VS({},oCe),n);Object.assign(i.style,o),i.textContent="".concat(e);var a=i.getBoundingClientRect(),s={width:a.width,height:a.height};return uu.widthCache[r]=s,++uu.cacheCount>iCe&&(uu.cacheCount=0,uu.widthCache={}),s}catch{return{width:0,height:0}}},sCe=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Hh(e){"@babel/helpers - typeof";return Hh=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},Hh(e)}function zy(e,t){return fCe(e)||cCe(e,t)||uCe(e,t)||lCe()}function lCe(){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 uCe(e,t){if(e){if(typeof e=="string")return _M(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 _M(e,t)}}function _M(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 cCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function fCe(e){if(Array.isArray(e))return e}function dCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xM(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,pCe(r.key),r)}}function hCe(e,t,n){return t&&xM(e.prototype,t),n&&xM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pCe(e){var t=mCe(e,"string");return Hh(t)=="symbol"?t:String(t)}function mCe(e,t){if(Hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,OM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,vCe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,gCe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,d9={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},yCe=Object.keys(d9),Iu="NaN";function bCe(e,t){return e*d9[t]}var yv=function(){function e(t,n){dCe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!vCe.test(n)&&(this.num=NaN,this.unit=""),yCe.includes(n)&&(this.num=bCe(t,n),this.unit="px")}return hCe(e,[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.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(t){var n,r=(n=gCe.exec(t))!==null&&n!==void 0?n:[],i=zy(r,3),o=i[1],a=i[2];return new e(parseFloat(o),a??"")}}]),e}();function h9(e){if(e.includes(Iu))return Iu;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=wM.exec(t))!==null&&n!==void 0?n:[],i=zy(r,4),o=i[1],a=i[2],s=i[3],l=yv.parse(o??""),u=yv.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Iu;t=t.replace(wM,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=OM.exec(t))!==null&&d!==void 0?d:[],v=zy(p,4),g=v[1],y=v[2],w=v[3],b=yv.parse(g??""),x=yv.parse(w??""),_=y==="+"?b.add(x):b.subtract(x);if(_.isNaN())return Iu;t=t.replace(OM,_.toString())}return t}var SM=/\(([^()]*)\)/;function _Ce(e){for(var t=e;t.includes("(");){var n=SM.exec(t),r=zy(n,2),i=r[1];t=t.replace(SM,h9(i))}return t}function xCe(e){var t=e.replace(/\s+/g,"");return t=_Ce(t),t=h9(t),t}function wCe(e){try{return xCe(e)}catch{return Iu}}function Wx(e){var t=wCe(e.slice(5,-1));return t===Iu?"":t}var OCe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],SCe=["dx","dy","angle","className","breakAll"];function HS(){return HS=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},HS.apply(this,arguments)}function EM(e,t){if(e==null)return{};var n=ECe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ECe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jM(e,t){return PCe(e)||CCe(e,t)||TCe(e,t)||jCe()}function jCe(){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 TCe(e,t){if(e){if(typeof e=="string")return TM(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 TM(e,t)}}function TM(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 CCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function PCe(e){if(Array.isArray(e))return e}var p9=/[ \f\n\r\t\v\u2028\u2029]+/,m9=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];ze(t)||(n?i=t.toString().split(""):i=t.toString().split(p9));var o=i.map(function(s){return{word:s,width:Vd(s,r).width}}),a=n?0:Vd(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},ACe=function(e,t,n,r,i){var o=e.maxLines,a=e.children,s=e.style,l=e.breakAll,u=Ee(o),f=a,d=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return q.reduce(function(W,X){var J=X.word,te=X.width,K=W[W.length-1];if(K&&(r==null||i||K.width+te+n<Number(r)))K.words.push(J),K.width+=te+n;else{var B={words:[J],width:te};W.push(B)}return W},[])},p=d(t),v=function(q){return q.reduce(function(W,X){return W.width>X.width?W:X})};if(!u)return p;for(var g="…",y=function(q){var W=f.slice(0,q),X=m9({breakAll:l,style:s,children:W+g}).wordsWithComputedWidth,J=d(X),te=J.length>o||v(J).width>Number(r);return[te,J]},w=0,b=f.length-1,x=0,_;w<=b&&x<=f.length-1;){var S=Math.floor((w+b)/2),j=S-1,E=y(j),P=jM(E,2),N=P[0],I=P[1],M=y(S),D=jM(M,1),z=D[0];if(!N&&!z&&(w=S+1),N&&z&&(b=S-1),!N&&z){_=I;break}x++}return _||p},CM=function(e){var t=ze(e)?[]:e.toString().split(p9);return[{words:t}]},kCe=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,o=e.breakAll,a=e.maxLines;if((t||n)&&!hi.isSsr){var s,l,u=m9({breakAll:o,children:r,style:i});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;s=f,l=d}else return CM(r);return ACe({breakAll:o,children:r,maxLines:a,style:i},s,l,t,n)}return CM(r)},PM="#808080",Cl=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.lineHeight,a=o===void 0?"1em":o,s=e.capHeight,l=s===void 0?"0.71em":s,u=e.scaleToFit,f=u===void 0?!1:u,d=e.textAnchor,p=d===void 0?"start":d,v=e.verticalAnchor,g=v===void 0?"end":v,y=e.fill,w=y===void 0?PM:y,b=EM(e,OCe),x=R.useMemo(function(){return kCe({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),_=b.dx,S=b.dy,j=b.angle,E=b.className,P=b.breakAll,N=EM(b,SCe);if(!pn(n)||!pn(i))return null;var I=n+(Ee(_)?_:0),M=i+(Ee(S)?S:0),D;switch(g){case"start":D=Wx("calc(".concat(l,")"));break;case"middle":D=Wx("calc(".concat((x.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:D=Wx("calc(".concat(x.length-1," * -").concat(a,")"));break}var z=[];if(f){var q=x[0].width,W=b.width;z.push("scale(".concat((Ee(W)?W/q:1)/q,")"))}return j&&z.push("rotate(".concat(j,", ").concat(I,", ").concat(M,")")),z.length&&(N.transform=z.join(" ")),V.createElement("text",HS({},$e(N,!0),{x:I,y:M,className:De("recharts-text",E),textAnchor:p,fill:w.includes("url")?PM:w}),x.map(function(X,J){var te=X.words.join(P?"":" ");return V.createElement("tspan",{x:I,dy:J===0?D:a,key:te},te)}))};function Xa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function NCe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function HC(e){let t,n,r;e.length!==2?(t=Xa,n=(s,l)=>Xa(e(s),l),r=(s,l)=>e(s)-l):(t=e===Xa||e===NCe?e:LCe,n=e,r=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(s[d],l)<0?u=d+1:f=d}while(u<f)}return u}function o(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const d=u+f>>>1;n(s[d],l)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,l,u=0,f=s.length){const d=i(s,l,u,f-1);return d>u&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function LCe(){return 0}function v9(e){return e===null?NaN:+e}function*RCe(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const MCe=HC(Xa),ICe=MCe.right;HC(v9).center;const Qp=ICe;class AM extends Map{constructor(t,n=FCe){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(kM(this,t))}has(t){return super.has(kM(this,t))}set(t,n){return super.set(DCe(this,t),n)}delete(t){return super.delete($Ce(this,t))}}function kM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function DCe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $Ce({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function FCe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function UCe(e=Xa){if(e===Xa)return g9;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 g9(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const BCe=Math.sqrt(50),zCe=Math.sqrt(10),VCe=Math.sqrt(2);function Vy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=BCe?10:o>=zCe?5:o>=VCe?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Vy(e,t,n*2):[s,l,u]}function WS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Vy(t,e,n):Vy(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function GS(e,t,n){return t=+t,e=+e,n=+n,Vy(e,t,n)[2]}function qS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?GS(t,e,n):GS(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function NM(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function LM(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function y9(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?g9:UCe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),v=Math.max(n,Math.floor(t-u*d/l+p)),g=Math.min(r,Math.floor(t+(l-u)*d/l+p));y9(e,t,v,g,i)}const o=e[t];let a=n,s=r;for(ed(e,n,t),i(e[r],o)>0&&ed(e,n,r);a<s;){for(ed(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?ed(e,n,s):(++s,ed(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ed(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function HCe(e,t,n){if(e=Float64Array.from(RCe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return LM(e);if(t>=1)return NM(e);var r,i=(r-1)*t,o=Math.floor(i),a=NM(y9(e,o).subarray(0,o+1)),s=LM(e.subarray(o+1));return a+(s-a)*(i-o)}}function WCe(e,t,n=v9){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function GCe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function wi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function da(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 ZS=Symbol("implicit");function WC(){var e=new AM,t=[],n=[],r=ZS;function i(o){let a=e.get(o);if(a===void 0){if(r!==ZS)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new AM;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return WC(t,n).unknown(r)},wi.apply(i,arguments),i}function Wh(){var e=WC().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,u=0,f=.5;delete e.unknown;function d(){var p=t().length,v=i<r,g=v?i:r,y=v?r:i;o=(y-g)/Math.max(1,p-l+u*2),s&&(o=Math.floor(o)),g+=(y-g-o*(p-l))*f,a=o*(1-l),s&&(g=Math.round(g),a=Math.round(a));var w=GCe(p).map(function(b){return g+o*b});return n(v?w.reverse():w)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,i]=p,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(p){return[r,i]=p,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,u=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(u=+p,d()):u},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return Wh(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},wi.apply(d(),arguments)}function b9(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return b9(t())},e}function Hd(){return b9(Wh.apply(null,arguments).paddingInner(1))}function GC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _9(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Jp(){}var Gh=.7,Hy=1/Gh,Ku="\\s*([+-]?\\d+)\\s*",qh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qCe=/^#([0-9a-f]{3,8})$/,ZCe=new RegExp(`^rgb\\(${Ku},${Ku},${Ku}\\)$`),YCe=new RegExp(`^rgb\\(${mo},${mo},${mo}\\)$`),KCe=new RegExp(`^rgba\\(${Ku},${Ku},${Ku},${qh}\\)$`),XCe=new RegExp(`^rgba\\(${mo},${mo},${mo},${qh}\\)$`),QCe=new RegExp(`^hsl\\(${qh},${mo},${mo}\\)$`),JCe=new RegExp(`^hsla\\(${qh},${mo},${mo},${qh}\\)$`),RM={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};GC(Jp,Zh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MM,formatHex:MM,formatHex8:ePe,formatHsl:tPe,formatRgb:IM,toString:IM});function MM(){return this.rgb().formatHex()}function ePe(){return this.rgb().formatHex8()}function tPe(){return x9(this).formatHsl()}function IM(){return this.rgb().formatRgb()}function Zh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qCe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?DM(t):n===3?new yr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?bv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?bv(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=ZCe.exec(e))?new yr(t[1],t[2],t[3],1):(t=YCe.exec(e))?new yr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KCe.exec(e))?bv(t[1],t[2],t[3],t[4]):(t=XCe.exec(e))?bv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=QCe.exec(e))?UM(t[1],t[2]/100,t[3]/100,1):(t=JCe.exec(e))?UM(t[1],t[2]/100,t[3]/100,t[4]):RM.hasOwnProperty(e)?DM(RM[e]):e==="transparent"?new yr(NaN,NaN,NaN,0):null}function DM(e){return new yr(e>>16&255,e>>8&255,e&255,1)}function bv(e,t,n,r){return r<=0&&(e=t=n=NaN),new yr(e,t,n,r)}function nPe(e){return e instanceof Jp||(e=Zh(e)),e?(e=e.rgb(),new yr(e.r,e.g,e.b,e.opacity)):new yr}function YS(e,t,n,r){return arguments.length===1?nPe(e):new yr(e,t,n,r??1)}function yr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}GC(yr,YS,_9(Jp,{brighter(e){return e=e==null?Hy:Math.pow(Hy,e),new yr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gh:Math.pow(Gh,e),new yr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yr(hl(this.r),hl(this.g),hl(this.b),Wy(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:$M,formatHex:$M,formatHex8:rPe,formatRgb:FM,toString:FM}));function $M(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function rPe(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function FM(){const e=Wy(this.opacity);return`${e===1?"rgb(":"rgba("}${hl(this.r)}, ${hl(this.g)}, ${hl(this.b)}${e===1?")":`, ${e})`}`}function Wy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=hl(e),(e<16?"0":"")+e.toString(16)}function UM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mi(e,t,n,r)}function x9(e){if(e instanceof Mi)return new Mi(e.h,e.s,e.l,e.opacity);if(e instanceof Jp||(e=Zh(e)),!e)return new Mi;if(e instanceof Mi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Mi(a,s,l,e.opacity)}function iPe(e,t,n,r){return arguments.length===1?x9(e):new Mi(e,t,n,r??1)}function Mi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}GC(Mi,iPe,_9(Jp,{brighter(e){return e=e==null?Hy:Math.pow(Hy,e),new Mi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gh:Math.pow(Gh,e),new Mi(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 yr(Gx(e>=240?e-240:e+120,i,r),Gx(e,i,r),Gx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mi(BM(this.h),_v(this.s),_v(this.l),Wy(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=Wy(this.opacity);return`${e===1?"hsl(":"hsla("}${BM(this.h)}, ${_v(this.s)*100}%, ${_v(this.l)*100}%${e===1?")":`, ${e})`}`}}));function BM(e){return e=(e||0)%360,e<0?e+360:e}function _v(e){return Math.max(0,Math.min(1,e||0))}function Gx(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 qC=e=>()=>e;function oPe(e,t){return function(n){return e+n*t}}function aPe(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 sPe(e){return(e=+e)==1?w9:function(t,n){return n-t?aPe(t,n,e):qC(isNaN(t)?n:t)}}function w9(e,t){var n=t-e;return n?oPe(e,n):qC(isNaN(e)?t:e)}const zM=function e(t){var n=sPe(t);function r(i,o){var a=n((i=YS(i)).r,(o=YS(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=w9(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function lPe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function uPe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function cPe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=hf(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function fPe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dPe(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]=hf(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var KS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qx=new RegExp(KS.source,"g");function hPe(e){return function(){return e}}function pPe(e){return function(t){return e(t)+""}}function mPe(e,t){var n=KS.lastIndex=qx.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=KS.exec(e))&&(i=qx.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Gy(r,i)})),n=qx.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?pPe(l[0].x):hPe(t):(t=l.length,function(u){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(u);return s.join("")})}function hf(e,t){var n=typeof t,r;return t==null||n==="boolean"?qC(t):(n==="number"?Gy:n==="string"?(r=Zh(t))?(t=r,zM):mPe:t instanceof Zh?zM:t instanceof Date?fPe:uPe(t)?lPe:Array.isArray(t)?cPe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dPe:Gy)(e,t)}function ZC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function vPe(e,t){t===void 0&&(t=e,e=hf);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function gPe(e){return function(){return e}}function qy(e){return+e}var VM=[0,1];function sr(e){return e}function XS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gPe(isNaN(t)?NaN:.5)}function yPe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bPe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=XS(i,r),o=n(a,o)):(r=XS(r,i),o=n(o,a)),function(s){return o(r(s))}}function _Pe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=XS(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Qp(e,s,1,r)-1;return o[l](i[l](s))}}function em(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rb(){var e=VM,t=VM,n=hf,r,i,o,a=sr,s,l,u;function f(){var p=Math.min(e.length,t.length);return a!==sr&&(a=yPe(e[0],e[p-1])),s=p>2?_Pe:bPe,l=u=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((u||(u=s(t,e.map(r),Gy)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,qy),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=ZC,f()},d.clamp=function(p){return arguments.length?(a=p?!0:sr,f()):a!==sr},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(o=p,d):o},function(p,v){return r=p,i=v,f()}}function YC(){return Rb()(sr,sr)}function xPe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Zy(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 jc(e){return e=Zy(Math.abs(e)),e?e[1]:NaN}function wPe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function OPe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var SPe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yh(e){if(!(t=SPe.exec(e)))throw new Error("invalid format: "+e);var t;return new KC({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]})}Yh.prototype=KC.prototype;function KC(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+""}KC.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 EPe(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 O9;function jPe(e,t){var n=Zy(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(O9=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Zy(e,Math.max(0,t+o-1))[0]}function HM(e,t){var n=Zy(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 WM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:xPe,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)=>HM(e*100,t),r:HM,s:jPe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function GM(e){return e}var qM=Array.prototype.map,ZM=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TPe(e){var t=e.grouping===void 0||e.thousands===void 0?GM:wPe(qM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?GM:OPe(qM.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Yh(d);var p=d.fill,v=d.align,g=d.sign,y=d.symbol,w=d.zero,b=d.width,x=d.comma,_=d.precision,S=d.trim,j=d.type;j==="n"?(x=!0,j="g"):WM[j]||(_===void 0&&(_=12),S=!0,j="g"),(w||p==="0"&&v==="=")&&(w=!0,p="0",v="=");var E=y==="$"?n:y==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",P=y==="$"?r:/[%p]/.test(j)?a:"",N=WM[j],I=/[defgprs%]/.test(j);_=_===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function M(D){var z=E,q=P,W,X,J;if(j==="c")q=N(D)+q,D="";else{D=+D;var te=D<0||1/D<0;if(D=isNaN(D)?l:N(Math.abs(D),_),S&&(D=EPe(D)),te&&+D==0&&g!=="+"&&(te=!1),z=(te?g==="("?g:s:g==="-"||g==="("?"":g)+z,q=(j==="s"?ZM[8+O9/3]:"")+q+(te&&g==="("?")":""),I){for(W=-1,X=D.length;++W<X;)if(J=D.charCodeAt(W),48>J||J>57){q=(J===46?i+D.slice(W+1):D.slice(W))+q,D=D.slice(0,W);break}}}x&&!w&&(D=t(D,1/0));var K=z.length+D.length+q.length,B=K<b?new Array(b-K+1).join(p):"";switch(x&&w&&(D=t(B+D,B.length?b-q.length:1/0),B=""),v){case"<":D=z+D+q+B;break;case"=":D=z+B+D+q;break;case"^":D=B.slice(0,K=B.length>>1)+z+D+q+B.slice(K);break;default:D=B+z+D+q;break}return o(D)}return M.toString=function(){return d+""},M}function f(d,p){var v=u((d=Yh(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(jc(p)/3)))*3,y=Math.pow(10,-g),w=ZM[8+g/3];return function(b){return v(y*b)+w}}return{format:u,formatPrefix:f}}var xv,XC,S9;CPe({thousands:",",grouping:[3],currency:["$",""]});function CPe(e){return xv=TPe(e),XC=xv.format,S9=xv.formatPrefix,xv}function PPe(e){return Math.max(0,-jc(Math.abs(e)))}function APe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jc(t)/3)))*3-jc(Math.abs(e)))}function kPe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jc(t)-jc(e))+1}function E9(e,t,n,r){var i=qS(e,t,n),o;switch(r=Yh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=APe(i,a))&&(r.precision=o),S9(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=kPe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=PPe(i))&&(r.precision=o-(r.type==="%")*2);break}}return XC(r)}function xs(e){var t=e.domain;return e.ticks=function(n){var r=t();return WS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return E9(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=GS(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Yy(){var e=YC();return e.copy=function(){return em(e,Yy())},wi.apply(e,arguments),xs(e)}function j9(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,qy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return j9(e).unknown(t)},e=arguments.length?Array.from(e,qy):[0,1],xs(n)}function T9(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function YM(e){return Math.log(e)}function KM(e){return Math.exp(e)}function NPe(e){return-Math.log(-e)}function LPe(e){return-Math.exp(-e)}function RPe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MPe(e){return e===10?RPe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function IPe(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 XM(e){return(t,n)=>-e(-t,n)}function QC(e){const t=e(YM,KM),n=t.domain;let r=10,i,o;function a(){return i=IPe(r),o=MPe(r),n()[0]<0?(i=XM(i),o=XM(o),e(NPe,LPe)):e(YM,KM),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f<u;d&&([u,f]=[f,u]);let p=i(u),v=i(f),g,y;const w=s==null?10:+s;let b=[];if(!(r%1)&&v-p<w){if(p=Math.floor(p),v=Math.ceil(v),u>0){for(;p<=v;++p)for(g=1;g<r;++g)if(y=p<0?g/o(-p):g*o(p),!(y<u)){if(y>f)break;b.push(y)}}else for(;p<=v;++p)for(g=r-1;g>=1;--g)if(y=p>0?g/o(-p):g*o(p),!(y<u)){if(y>f)break;b.push(y)}b.length*2<w&&(b=WS(u,f,w))}else b=WS(p,v,Math.min(v-p,w)).map(o);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Yh(l)).precision==null&&(l.trim=!0),l=XC(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/o(Math.round(i(f)));return d*r<r-.5&&(d*=r),d<=u?l(f):""}},t.nice=()=>n(T9(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function C9(){const e=QC(Rb()).domain([1,10]);return e.copy=()=>em(e,C9()).base(e.base()),wi.apply(e,arguments),e}function QM(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function JM(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function JC(e){var t=1,n=e(QM(t),JM(t));return n.constant=function(r){return arguments.length?e(QM(t=+r),JM(t)):t},xs(n)}function P9(){var e=JC(Rb());return e.copy=function(){return em(e,P9()).constant(e.constant())},wi.apply(e,arguments)}function e4(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function DPe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $Pe(e){return e<0?-e*e:e*e}function eP(e){var t=e(sr,sr),n=1;function r(){return n===1?e(sr,sr):n===.5?e(DPe,$Pe):e(e4(n),e4(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},xs(t)}function tP(){var e=eP(Rb());return e.copy=function(){return em(e,tP()).exponent(e.exponent())},wi.apply(e,arguments),e}function FPe(){return tP.apply(null,arguments).exponent(.5)}function t4(e){return Math.sign(e)*e*e}function UPe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function A9(){var e=YC(),t=[0,1],n=!1,r;function i(o){var a=UPe(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(t4(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,qy)).map(t4)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return A9(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},wi.apply(i,arguments),xs(i)}function k9(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=WCe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Qp(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Xa),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return k9().domain(e).range(t).unknown(r)},wi.apply(o,arguments)}function N9(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Qp(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return N9().domain([e,t]).range(i).unknown(o)},wi.apply(xs(a),arguments)}function L9(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Qp(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return L9().domain(e).range(t).unknown(n)},wi.apply(i,arguments)}const Zx=new Date,Yx=new Date;function yn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>yn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Zx.setTime(+o),Yx.setTime(+a),e(Zx),e(Yx),Math.floor(n(Zx,Yx))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ky=yn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ky.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ky);Ky.range;const $o=1e3,li=$o*60,Fo=li*60,ta=Fo*24,nP=ta*7,n4=ta*30,Kx=ta*365,rl=yn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$o)},(e,t)=>(t-e)/$o,e=>e.getUTCSeconds());rl.range;const rP=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o)},(e,t)=>{e.setTime(+e+t*li)},(e,t)=>(t-e)/li,e=>e.getMinutes());rP.range;const iP=yn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*li)},(e,t)=>(t-e)/li,e=>e.getUTCMinutes());iP.range;const oP=yn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o-e.getMinutes()*li)},(e,t)=>{e.setTime(+e+t*Fo)},(e,t)=>(t-e)/Fo,e=>e.getHours());oP.range;const aP=yn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fo)},(e,t)=>(t-e)/Fo,e=>e.getUTCHours());aP.range;const tm=yn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*li)/ta,e=>e.getDate()-1);tm.range;const Mb=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ta,e=>e.getUTCDate()-1);Mb.range;const R9=yn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ta,e=>Math.floor(e/ta));R9.range;function $l(e){return yn(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())*li)/nP)}const Ib=$l(0),Xy=$l(1),BPe=$l(2),zPe=$l(3),Tc=$l(4),VPe=$l(5),HPe=$l(6);Ib.range;Xy.range;BPe.range;zPe.range;Tc.range;VPe.range;HPe.range;function Fl(e){return yn(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)/nP)}const Db=Fl(0),Qy=Fl(1),WPe=Fl(2),GPe=Fl(3),Cc=Fl(4),qPe=Fl(5),ZPe=Fl(6);Db.range;Qy.range;WPe.range;GPe.range;Cc.range;qPe.range;ZPe.range;const sP=yn(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());sP.range;const lP=yn(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());lP.range;const na=yn(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());na.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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)});na.range;const ra=yn(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());ra.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yn(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)});ra.range;function M9(e,t,n,r,i,o){const a=[[rl,1,$o],[rl,5,5*$o],[rl,15,15*$o],[rl,30,30*$o],[o,1,li],[o,5,5*li],[o,15,15*li],[o,30,30*li],[i,1,Fo],[i,3,3*Fo],[i,6,6*Fo],[i,12,12*Fo],[r,1,ta],[r,2,2*ta],[n,1,nP],[t,1,n4],[t,3,3*n4],[e,1,Kx]];function s(u,f,d){const p=f<u;p&&([u,f]=[f,u]);const v=d&&typeof d.range=="function"?d:l(u,f,d),g=v?v.range(u,+f+1):[];return p?g.reverse():g}function l(u,f,d){const p=Math.abs(f-u)/d,v=HC(([,,w])=>w).right(a,p);if(v===a.length)return e.every(qS(u/Kx,f/Kx,d));if(v===0)return Ky.every(Math.max(qS(u,f,d),1));const[g,y]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return g.every(y)}return[s,l]}const[YPe,KPe]=M9(ra,lP,Db,R9,aP,iP),[XPe,QPe]=M9(na,sP,Ib,tm,oP,rP);function Xx(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 Qx(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 td(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function JPe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=nd(i),f=rd(i),d=nd(o),p=rd(o),v=nd(a),g=rd(a),y=nd(s),w=rd(s),b=nd(l),x=rd(l),_={a:te,A:K,b:B,B:F,c:null,d:l4,e:l4,f:wAe,g:NAe,G:RAe,H:bAe,I:_Ae,j:xAe,L:I9,m:OAe,M:SAe,p:H,q:ne,Q:f4,s:d4,S:EAe,u:jAe,U:TAe,V:CAe,w:PAe,W:AAe,x:null,X:null,y:kAe,Y:LAe,Z:MAe,"%":c4},S={a:Y,A:ee,b:ae,B:oe,c:null,d:u4,e:u4,f:FAe,g:YAe,G:XAe,H:IAe,I:DAe,j:$Ae,L:$9,m:UAe,M:BAe,p:fe,q:C,Q:f4,s:d4,S:zAe,u:VAe,U:HAe,V:WAe,w:GAe,W:qAe,x:null,X:null,y:ZAe,Y:KAe,Z:QAe,"%":c4},j={a:M,A:D,b:z,B:q,c:W,d:a4,e:a4,f:mAe,g:o4,G:i4,H:s4,I:s4,j:fAe,L:pAe,m:cAe,M:dAe,p:I,q:uAe,Q:gAe,s:yAe,S:hAe,u:iAe,U:oAe,V:aAe,w:rAe,W:sAe,x:X,X:J,y:o4,Y:i4,Z:lAe,"%":vAe};_.x=E(n,_),_.X=E(r,_),_.c=E(t,_),S.x=E(n,S),S.X=E(r,S),S.c=E(t,S);function E(A,U){return function(Q){var Z=[],ie=-1,he=0,Se=A.length,se,pe,me;for(Q instanceof Date||(Q=new Date(+Q));++ie<Se;)A.charCodeAt(ie)===37&&(Z.push(A.slice(he,ie)),(pe=r4[se=A.charAt(++ie)])!=null?se=A.charAt(++ie):pe=se==="e"?" ":"0",(me=U[se])&&(se=me(Q,pe)),Z.push(se),he=ie+1);return Z.push(A.slice(he,ie)),Z.join("")}}function P(A,U){return function(Q){var Z=td(1900,void 0,1),ie=N(Z,A,Q+="",0),he,Se;if(ie!=Q.length)return null;if("Q"in Z)return new Date(Z.Q);if("s"in Z)return new Date(Z.s*1e3+("L"in Z?Z.L:0));if(U&&!("Z"in Z)&&(Z.Z=0),"p"in Z&&(Z.H=Z.H%12+Z.p*12),Z.m===void 0&&(Z.m="q"in Z?Z.q:0),"V"in Z){if(Z.V<1||Z.V>53)return null;"w"in Z||(Z.w=1),"Z"in Z?(he=Qx(td(Z.y,0,1)),Se=he.getUTCDay(),he=Se>4||Se===0?Qy.ceil(he):Qy(he),he=Mb.offset(he,(Z.V-1)*7),Z.y=he.getUTCFullYear(),Z.m=he.getUTCMonth(),Z.d=he.getUTCDate()+(Z.w+6)%7):(he=Xx(td(Z.y,0,1)),Se=he.getDay(),he=Se>4||Se===0?Xy.ceil(he):Xy(he),he=tm.offset(he,(Z.V-1)*7),Z.y=he.getFullYear(),Z.m=he.getMonth(),Z.d=he.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),Se="Z"in Z?Qx(td(Z.y,0,1)).getUTCDay():Xx(td(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(Se+5)%7:Z.w+Z.U*7-(Se+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,Qx(Z)):Xx(Z)}}function N(A,U,Q,Z){for(var ie=0,he=U.length,Se=Q.length,se,pe;ie<he;){if(Z>=Se)return-1;if(se=U.charCodeAt(ie++),se===37){if(se=U.charAt(ie++),pe=j[se in r4?U.charAt(ie++):se],!pe||(Z=pe(A,Q,Z))<0)return-1}else if(se!=Q.charCodeAt(Z++))return-1}return Z}function I(A,U,Q){var Z=u.exec(U.slice(Q));return Z?(A.p=f.get(Z[0].toLowerCase()),Q+Z[0].length):-1}function M(A,U,Q){var Z=v.exec(U.slice(Q));return Z?(A.w=g.get(Z[0].toLowerCase()),Q+Z[0].length):-1}function D(A,U,Q){var Z=d.exec(U.slice(Q));return Z?(A.w=p.get(Z[0].toLowerCase()),Q+Z[0].length):-1}function z(A,U,Q){var Z=b.exec(U.slice(Q));return Z?(A.m=x.get(Z[0].toLowerCase()),Q+Z[0].length):-1}function q(A,U,Q){var Z=y.exec(U.slice(Q));return Z?(A.m=w.get(Z[0].toLowerCase()),Q+Z[0].length):-1}function W(A,U,Q){return N(A,t,U,Q)}function X(A,U,Q){return N(A,n,U,Q)}function J(A,U,Q){return N(A,r,U,Q)}function te(A){return a[A.getDay()]}function K(A){return o[A.getDay()]}function B(A){return l[A.getMonth()]}function F(A){return s[A.getMonth()]}function H(A){return i[+(A.getHours()>=12)]}function ne(A){return 1+~~(A.getMonth()/3)}function Y(A){return a[A.getUTCDay()]}function ee(A){return o[A.getUTCDay()]}function ae(A){return l[A.getUTCMonth()]}function oe(A){return s[A.getUTCMonth()]}function fe(A){return i[+(A.getUTCHours()>=12)]}function C(A){return 1+~~(A.getUTCMonth()/3)}return{format:function(A){var U=E(A+="",_);return U.toString=function(){return A},U},parse:function(A){var U=P(A+="",!1);return U.toString=function(){return A},U},utcFormat:function(A){var U=E(A+="",S);return U.toString=function(){return A},U},utcParse:function(A){var U=P(A+="",!0);return U.toString=function(){return A},U}}}var r4={"-":"",_:" ",0:"0"},An=/^\s*\d+/,eAe=/^%/,tAe=/[\\^$*+?|[\]().{}]/g;function dt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function nAe(e){return e.replace(tAe,"\\$&")}function nd(e){return new RegExp("^(?:"+e.map(nAe).join("|")+")","i")}function rd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function rAe(e,t,n){var r=An.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function iAe(e,t,n){var r=An.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function oAe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function aAe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function sAe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function i4(e,t,n){var r=An.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function o4(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lAe(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 uAe(e,t,n){var r=An.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function cAe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function a4(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fAe(e,t,n){var r=An.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function s4(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dAe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hAe(e,t,n){var r=An.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pAe(e,t,n){var r=An.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mAe(e,t,n){var r=An.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vAe(e,t,n){var r=eAe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function gAe(e,t,n){var r=An.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function yAe(e,t,n){var r=An.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function l4(e,t){return dt(e.getDate(),t,2)}function bAe(e,t){return dt(e.getHours(),t,2)}function _Ae(e,t){return dt(e.getHours()%12||12,t,2)}function xAe(e,t){return dt(1+tm.count(na(e),e),t,3)}function I9(e,t){return dt(e.getMilliseconds(),t,3)}function wAe(e,t){return I9(e,t)+"000"}function OAe(e,t){return dt(e.getMonth()+1,t,2)}function SAe(e,t){return dt(e.getMinutes(),t,2)}function EAe(e,t){return dt(e.getSeconds(),t,2)}function jAe(e){var t=e.getDay();return t===0?7:t}function TAe(e,t){return dt(Ib.count(na(e)-1,e),t,2)}function D9(e){var t=e.getDay();return t>=4||t===0?Tc(e):Tc.ceil(e)}function CAe(e,t){return e=D9(e),dt(Tc.count(na(e),e)+(na(e).getDay()===4),t,2)}function PAe(e){return e.getDay()}function AAe(e,t){return dt(Xy.count(na(e)-1,e),t,2)}function kAe(e,t){return dt(e.getFullYear()%100,t,2)}function NAe(e,t){return e=D9(e),dt(e.getFullYear()%100,t,2)}function LAe(e,t){return dt(e.getFullYear()%1e4,t,4)}function RAe(e,t){var n=e.getDay();return e=n>=4||n===0?Tc(e):Tc.ceil(e),dt(e.getFullYear()%1e4,t,4)}function MAe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+dt(t/60|0,"0",2)+dt(t%60,"0",2)}function u4(e,t){return dt(e.getUTCDate(),t,2)}function IAe(e,t){return dt(e.getUTCHours(),t,2)}function DAe(e,t){return dt(e.getUTCHours()%12||12,t,2)}function $Ae(e,t){return dt(1+Mb.count(ra(e),e),t,3)}function $9(e,t){return dt(e.getUTCMilliseconds(),t,3)}function FAe(e,t){return $9(e,t)+"000"}function UAe(e,t){return dt(e.getUTCMonth()+1,t,2)}function BAe(e,t){return dt(e.getUTCMinutes(),t,2)}function zAe(e,t){return dt(e.getUTCSeconds(),t,2)}function VAe(e){var t=e.getUTCDay();return t===0?7:t}function HAe(e,t){return dt(Db.count(ra(e)-1,e),t,2)}function F9(e){var t=e.getUTCDay();return t>=4||t===0?Cc(e):Cc.ceil(e)}function WAe(e,t){return e=F9(e),dt(Cc.count(ra(e),e)+(ra(e).getUTCDay()===4),t,2)}function GAe(e){return e.getUTCDay()}function qAe(e,t){return dt(Qy.count(ra(e)-1,e),t,2)}function ZAe(e,t){return dt(e.getUTCFullYear()%100,t,2)}function YAe(e,t){return e=F9(e),dt(e.getUTCFullYear()%100,t,2)}function KAe(e,t){return dt(e.getUTCFullYear()%1e4,t,4)}function XAe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Cc(e):Cc.ceil(e),dt(e.getUTCFullYear()%1e4,t,4)}function QAe(){return"+0000"}function c4(){return"%"}function f4(e){return+e}function d4(e){return Math.floor(+e/1e3)}var cu,U9,B9;JAe({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 JAe(e){return cu=JPe(e),U9=cu.format,cu.parse,B9=cu.utcFormat,cu.utcParse,cu}function eke(e){return new Date(e)}function tke(e){return e instanceof Date?+e:+new Date(+e)}function uP(e,t,n,r,i,o,a,s,l,u){var f=YC(),d=f.invert,p=f.domain,v=u(".%L"),g=u(":%S"),y=u("%I:%M"),w=u("%I %p"),b=u("%a %d"),x=u("%b %d"),_=u("%B"),S=u("%Y");function j(E){return(l(E)<E?v:s(E)<E?g:a(E)<E?y:o(E)<E?w:r(E)<E?i(E)<E?b:x:n(E)<E?_:S)(E)}return f.invert=function(E){return new Date(d(E))},f.domain=function(E){return arguments.length?p(Array.from(E,tke)):p().map(eke)},f.ticks=function(E){var P=p();return e(P[0],P[P.length-1],E??10)},f.tickFormat=function(E,P){return P==null?j:u(P)},f.nice=function(E){var P=p();return(!E||typeof E.range!="function")&&(E=t(P[0],P[P.length-1],E??10)),E?p(T9(P,E)):f},f.copy=function(){return em(f,uP(e,t,n,r,i,o,a,s,l,u))},f}function nke(){return wi.apply(uP(XPe,QPe,na,sP,Ib,tm,oP,rP,rl,U9).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rke(){return wi.apply(uP(YPe,KPe,ra,lP,Db,Mb,aP,iP,rl,B9).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $b(){var e=0,t=1,n,r,i,o,a=sr,s=!1,l;function u(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(p){var v,g;return arguments.length?([v,g]=p,a=d(v,g),u):[a(0),a(1)]}}return u.range=f(hf),u.rangeRound=f(ZC),u.unknown=function(d){return arguments.length?(l=d,u):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),u}}function ws(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function z9(){var e=xs($b()(sr));return e.copy=function(){return ws(e,z9())},da.apply(e,arguments)}function V9(){var e=QC($b()).domain([1,10]);return e.copy=function(){return ws(e,V9()).base(e.base())},da.apply(e,arguments)}function H9(){var e=JC($b());return e.copy=function(){return ws(e,H9()).constant(e.constant())},da.apply(e,arguments)}function cP(){var e=eP($b());return e.copy=function(){return ws(e,cP()).exponent(e.exponent())},da.apply(e,arguments)}function ike(){return cP.apply(null,arguments).exponent(.5)}function W9(){var e=[],t=sr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Qp(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(Xa),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>HCe(e,o/r))},n.copy=function(){return W9(t).domain(e)},da.apply(n,arguments)}function Fb(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=sr,f,d=!1,p;function v(y){return isNaN(y=+y)?p:(y=.5+((y=+f(y))-o)*(r*y<r*o?s:l),u(d?Math.max(0,Math.min(1,y)):y))}v.domain=function(y){return arguments.length?([e,t,n]=y,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(y){return arguments.length?(d=!!y,v):d},v.interpolator=function(y){return arguments.length?(u=y,v):u};function g(y){return function(w){var b,x,_;return arguments.length?([b,x,_]=w,u=vPe(y,[b,x,_]),v):[u(0),u(.5),u(1)]}}return v.range=g(hf),v.rangeRound=g(ZC),v.unknown=function(y){return arguments.length?(p=y,v):p},function(y){return f=y,i=y(e),o=y(t),a=y(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,v}}function G9(){var e=xs(Fb()(sr));return e.copy=function(){return ws(e,G9())},da.apply(e,arguments)}function q9(){var e=QC(Fb()).domain([.1,1,10]);return e.copy=function(){return ws(e,q9()).base(e.base())},da.apply(e,arguments)}function Z9(){var e=JC(Fb());return e.copy=function(){return ws(e,Z9()).constant(e.constant())},da.apply(e,arguments)}function fP(){var e=eP(Fb());return e.copy=function(){return ws(e,fP()).exponent(e.exponent())},da.apply(e,arguments)}function oke(){return fP.apply(null,arguments).exponent(.5)}const h4=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Wh,scaleDiverging:G9,scaleDivergingLog:q9,scaleDivergingPow:fP,scaleDivergingSqrt:oke,scaleDivergingSymlog:Z9,scaleIdentity:j9,scaleImplicit:ZS,scaleLinear:Yy,scaleLog:C9,scaleOrdinal:WC,scalePoint:Hd,scalePow:tP,scaleQuantile:k9,scaleQuantize:N9,scaleRadial:A9,scaleSequential:z9,scaleSequentialLog:V9,scaleSequentialPow:cP,scaleSequentialQuantile:W9,scaleSequentialSqrt:ike,scaleSequentialSymlog:H9,scaleSqrt:FPe,scaleSymlog:P9,scaleThreshold:L9,scaleTime:nke,scaleUtc:rke,tickFormat:E9},Symbol.toStringTag,{value:"Module"}));var ake=rf;function ske(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(s===void 0?a===a&&!ake(a):n(a,s)))var s=a,l=o}return l}var Ub=ske;function lke(e,t){return e>t}var Y9=lke,uke=Ub,cke=Y9,fke=df;function dke(e){return e&&e.length?uke(e,fke,cke):void 0}var hke=dke;const Da=gt(hke);function pke(e,t){return e<t}var K9=pke,mke=Ub,vke=K9,gke=df;function yke(e){return e&&e.length?mke(e,gke,vke):void 0}var bke=yke;const Bb=gt(bke);var _ke=TC,xke=To,wke=i9,Oke=Cr;function Ske(e,t){var n=Oke(e)?_ke:wke;return n(e,xke(t))}var Eke=Ske,jke=n9,Tke=Eke;function Cke(e,t){return jke(Tke(e,t),1)}var Pke=Cke;const Ake=gt(Pke);var kke=FC;function Nke(e,t){return kke(e,t)}var Lke=Nke;const us=gt(Lke);var pf=1e9,Rke={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},hP,It=!0,yi="[DecimalError] ",pl=yi+"Invalid argument: ",dP=yi+"Exponent out of range: ",mf=Math.floor,Ws=Math.pow,Mke=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Rr,En=1e7,Pt=7,X9=9007199254740991,Jy=mf(X9/Pt),Ie={};Ie.absoluteValue=Ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ie.comparedTo=Ie.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Ie.decimalPlaces=Ie.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Pt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ie.dividedBy=Ie.div=function(e){return Vo(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,n=t.constructor;return _t(Vo(t,new n(e),0,1),n.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return ln(this)};Ie.greaterThan=Ie.gt=function(e){return this.cmp(e)>0};Ie.greaterThanOrEqualTo=Ie.gte=function(e){return this.cmp(e)>=0};Ie.isInteger=Ie.isint=function(){return this.e>this.d.length-2};Ie.isNegative=Ie.isneg=function(){return this.s<0};Ie.isPositive=Ie.ispos=function(){return this.s>0};Ie.isZero=function(){return this.s===0};Ie.lessThan=Ie.lt=function(e){return this.cmp(e)<0};Ie.lessThanOrEqualTo=Ie.lte=function(e){return this.cmp(e)<1};Ie.logarithm=Ie.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Rr))throw Error(yi+"NaN");if(n.s<1)throw Error(yi+(n.s?"NaN":"-Infinity"));return n.eq(Rr)?new r(0):(It=!1,t=Vo(Kh(n,o),Kh(e,o),o),It=!0,_t(t,i))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eB(t,e):Q9(t,(e.s=-e.s,e))};Ie.modulo=Ie.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(yi+"NaN");return n.s?(It=!1,t=Vo(n,e,0,1).times(e),It=!0,n.minus(t)):_t(new r(n),i)};Ie.naturalExponential=Ie.exp=function(){return J9(this)};Ie.naturalLogarithm=Ie.ln=function(){return Kh(this)};Ie.negated=Ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ie.plus=Ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Q9(t,e):eB(t,(e.s=-e.s,e))};Ie.precision=Ie.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(pl+e);if(t=ln(i)+1,r=i.d.length-1,n=r*Pt+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};Ie.squareRoot=Ie.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(yi+"NaN")}for(e=ln(s),It=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=uo(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=mf((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 l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(Vo(s,o,a+2)).times(.5),uo(o.d).slice(0,a)===(t=uo(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(_t(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return It=!0,_t(r,n)};Ie.times=Ie.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,d=f.constructor,p=f.d,v=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=p.length,u=v.length,l<u&&(o=p,p=v,v=o,a=l,l=u,u=a),o=[],a=l+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+v[r]*p[i-r-1]+t,o[i--]=s%En|0,t=s/En|0;o[i]=(o[i]+t)%En|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,It?_t(e,d.precision):e};Ie.toDecimalPlaces=Ie.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(xo(e,0,pf),t===void 0?t=r.rounding:xo(t,0,8),_t(n,e+ln(n)+1,t))};Ie.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Pl(r,!0):(xo(e,0,pf),t===void 0?t=i.rounding:xo(t,0,8),r=_t(new i(r),e+1,t),n=Pl(r,!0,e+1)),n};Ie.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Pl(i):(xo(e,0,pf),t===void 0?t=o.rounding:xo(t,0,8),r=_t(new o(i),e+ln(i)+1,t),n=Pl(r.abs(),!1,e+ln(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return _t(new t(e),ln(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(Rr);if(s=new l(s),!s.s){if(e.s<1)throw Error(yi+"Infinity");return s}if(s.eq(Rr))return s;if(r=l.precision,e.eq(Rr))return _t(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=X9){for(i=new l(Rr),t=Math.ceil(r/Pt+4),It=!1;n%2&&(i=i.times(s),m4(i.d,t)),n=mf(n/2),n!==0;)s=s.times(s),m4(s.d,t);return It=!0,e.s<0?new l(Rr).div(i):_t(i,r)}}else if(o<0)throw Error(yi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,It=!1,i=e.times(Kh(s,r+u)),It=!0,i=J9(i),i.s=o,i};Ie.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=ln(i),r=Pl(i,n<=o.toExpNeg||n>=o.toExpPos)):(xo(e,1,pf),t===void 0?t=o.rounding:xo(t,0,8),i=_t(new o(i),e,t),n=ln(i),r=Pl(i,e<=n||n<=o.toExpNeg,e)),r};Ie.toSignificantDigits=Ie.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(xo(e,1,pf),t===void 0?t=r.rounding:xo(t,0,8)),_t(new r(n),e,t)};Ie.toString=Ie.valueOf=Ie.val=Ie.toJSON=Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ln(e),n=e.constructor;return Pl(e,t<=n.toExpNeg||t>=n.toExpPos)};function Q9(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),It?_t(t,d):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(d/Pt),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/En|0,l[o]%=En;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,It?_t(t,d):t}function xo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(pl+e)}function uo(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=Pt-r.length,n&&(o+=Ta(n)),o+=r;a=e[t],r=a+"",n=Pt-r.length,n&&(o+=Ta(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Vo=function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%En|0,a=o/En|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*En+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,u,f,d,p,v,g,y,w,b,x,_,S,j,E,P,N,I=r.constructor,M=r.s==i.s?1:-1,D=r.d,z=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(yi+"Division by zero");for(l=r.e-i.e,P=z.length,j=D.length,v=new I(M),g=v.d=[],u=0;z[u]==(D[u]||0);)++u;if(z[u]>(D[u]||0)&&--l,o==null?x=o=I.precision:a?x=o+(ln(r)-ln(i))+1:x=o,x<0)return new I(0);if(x=x/Pt+2|0,u=0,P==1)for(f=0,z=z[0],x++;(u<j||f)&&x--;u++)_=f*En+(D[u]||0),g[u]=_/z|0,f=_%z|0;else{for(f=En/(z[0]+1)|0,f>1&&(z=e(z,f),D=e(D,f),P=z.length,j=D.length),S=P,y=D.slice(0,P),w=y.length;w<P;)y[w++]=0;N=z.slice(),N.unshift(0),E=z[0],z[1]>=En/2&&++E;do f=0,s=t(z,y,P,w),s<0?(b=y[0],P!=w&&(b=b*En+(y[1]||0)),f=b/E|0,f>1?(f>=En&&(f=En-1),d=e(z,f),p=d.length,w=y.length,s=t(d,y,p,w),s==1&&(f--,n(d,P<p?N:z,p))):(f==0&&(s=f=1),d=z.slice()),p=d.length,p<w&&d.unshift(0),n(y,d,w),s==-1&&(w=y.length,s=t(z,y,P,w),s<1&&(f++,n(y,P<w?N:z,w))),w=y.length):s===0&&(f++,y=[0]),g[u++]=f,s&&y[0]?y[w++]=D[S]||0:(y=[D[S]],w=1);while((S++<j||y[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,_t(v,a?o+ln(v)+1:o)}}();function J9(e,t){var n,r,i,o,a,s,l=0,u=0,f=e.constructor,d=f.precision;if(ln(e)>16)throw Error(dP+ln(e));if(!e.s)return new f(Rr);for(t==null?(It=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Ws(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Rr),f.precision=s;;){if(i=_t(i.times(e),s),n=n.times(++l),a=o.plus(Vo(i,n,s)),uo(a.d).slice(0,s)===uo(o.d).slice(0,s)){for(;u--;)o=_t(o.times(o),s);return f.precision=d,t==null?(It=!0,_t(o,d)):o}o=a}}function ln(e){for(var t=e.e*Pt,n=e.d[0];n>=10;n/=10)t++;return t}function Jx(e,t,n){if(t>e.LN10.sd())throw It=!0,n&&(e.precision=n),Error(yi+"LN10 precision limit exceeded");return _t(new e(e.LN10),t)}function Ta(e){for(var t="";e--;)t+="0";return t}function Kh(e,t){var n,r,i,o,a,s,l,u,f,d=1,p=10,v=e,g=v.d,y=v.constructor,w=y.precision;if(v.s<1)throw Error(yi+(v.s?"NaN":"-Infinity"));if(v.eq(Rr))return new y(0);if(t==null?(It=!1,u=w):u=t,v.eq(10))return t==null&&(It=!0),Jx(y,u);if(u+=p,y.precision=u,n=uo(g),r=n.charAt(0),o=ln(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=uo(v.d),r=n.charAt(0),d++;o=ln(v),r>1?(v=new y("0."+n),o++):v=new y(r+"."+n.slice(1))}else return l=Jx(y,u+2,w).times(o+""),v=Kh(new y(r+"."+n.slice(1)),u-p).plus(l),y.precision=w,t==null?(It=!0,_t(v,w)):v;for(s=a=v=Vo(v.minus(Rr),v.plus(Rr),u),f=_t(v.times(v),u),i=3;;){if(a=_t(a.times(f),u),l=s.plus(Vo(a,new y(i),u)),uo(l.d).slice(0,u)===uo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(Jx(y,u+2,w).times(o+""))),s=Vo(s,new y(d),u),y.precision=w,t==null?(It=!0,_t(s,w)):s;s=l,i+=2}}function p4(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=mf(n/Pt),e.d=[],r=(n+1)%Pt,n<0&&(r+=Pt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Pt;r<i;)e.d.push(+t.slice(r,r+=Pt));t=t.slice(r),r=Pt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),It&&(e.e>Jy||e.e<-Jy))throw Error(dP+n)}else e.s=0,e.e=0,e.d=[0];return e}function _t(e,t,n){var r,i,o,a,s,l,u,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Pt,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Pt),o=d.length,f>=o)return e;for(u=o=d[f],a=1;o>=10;o/=10)a++;r%=Pt,i=r-Pt+a}if(n!==void 0&&(o=Ws(10,a-i-1),s=u/o%10|0,l=t<0||d[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Ws(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=ln(e),d.length=1,t=t-o-1,d[0]=Ws(10,(Pt-t%Pt)%Pt),e.e=mf(-t/Pt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,o=1,f--):(d.length=f+1,o=Ws(10,Pt-r),d[f]=i>0?(u/Ws(10,a-i)%Ws(10,i)|0)*o:0),l)for(;;)if(f==0){(d[0]+=o)==En&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=En)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(It&&(e.e>Jy||e.e<-Jy))throw Error(dP+ln(e));return e}function eB(e,t){var n,r,i,o,a,s,l,u,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),It?_t(t,v):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(v/Pt),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){f=l[i]<d[i];break}a=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=En-1;--l[o],l[i]+=En}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,It?_t(t,v):t):new p(0)}function Pl(e,t,n){var r,i=ln(e),o=uo(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ta(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ta(-i-1)+o,n&&(r=n-a)>0&&(o+=Ta(r))):i>=a?(o+=Ta(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ta(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ta(r))),e.s<0?"-"+o:o}function m4(e,t){if(e.length>t)return e.length=t,!0}function tB(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(pl+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return p4(a,o.toString())}else if(typeof o!="string")throw Error(pl+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Mke.test(o))p4(a,o);else throw Error(pl+o)}if(i.prototype=Ie,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=tB,i.config=i.set=Ike,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 Ike(e){if(!e||typeof e!="object")throw Error(yi+"Object expected");var t,n,r,i=["precision",1,pf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(mf(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(pl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(pl+n+": "+r);return this}var hP=tB(Rke);Rr=new hP(1);const yt=hP;function Dke(e){return Bke(e)||Uke(e)||Fke(e)||$ke()}function $ke(){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 Fke(e,t){if(e){if(typeof e=="string")return QS(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 QS(e,t)}}function Uke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Bke(e){if(Array.isArray(e))return QS(e)}function QS(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 zke=function(e){return e},nB={"@@functional/placeholder":!0},rB=function(e){return e===nB},v4=function(e){return function t(){return arguments.length===0||arguments.length===1&&rB(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Vke=function e(t,n){return t===1?n:v4(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==nB}).length;return a>=t?n.apply(void 0,i):e(t-a,v4(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(d){return rB(d)?l.shift():d});return n.apply(void 0,Dke(f).concat(l))}))})},zb=function(e){return Vke(e.length,e)},JS=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Hke=zb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Wke=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return zke;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce(function(a,s){return s(a)},i.apply(void 0,arguments))}},eE=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},iB=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every(function(a,s){return a===t[s]})||(t=i,n=e.apply(void 0,i)),n}};function Gke(e){var t;return e===0?t=1:t=Math.floor(new yt(e).abs().log(10).toNumber())+1,t}function qke(e,t,n){for(var r=new yt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var Zke=zb(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Yke=zb(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Kke=zb(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Vb={rangeStep:qke,getDigitCount:Gke,interpolateNumber:Zke,uninterpolateNumber:Yke,uninterpolateTruncation:Kke};function tE(e){return Jke(e)||Qke(e)||oB(e)||Xke()}function Xke(){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 Qke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Jke(e){if(Array.isArray(e))return nE(e)}function Xh(e,t){return n3e(e)||t3e(e,t)||oB(e,t)||e3e()}function e3e(){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 oB(e,t){if(e){if(typeof e=="string")return nE(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 nE(e,t)}}function nE(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 t3e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function n3e(e){if(Array.isArray(e))return e}function aB(e){var t=Xh(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function sB(e,t,n){if(e.lte(0))return new yt(0);var r=Vb.getDigitCount(e.toNumber()),i=new yt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new yt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new yt(Math.ceil(l))}function r3e(e,t,n){var r=1,i=new yt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new yt(10).pow(Vb.getDigitCount(e)-1),i=new yt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new yt(Math.floor(e)))}else e===0?i=new yt(Math.floor((t-1)/2)):n||(i=new yt(Math.floor(e)));var a=Math.floor((t-1)/2),s=Wke(Hke(function(l){return i.add(new yt(l-a).mul(r)).toNumber()}),JS);return s(0,t)}function lB(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 yt(0),tickMin:new yt(0),tickMax:new yt(0)};var o=sB(new yt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new yt(0):(a=new yt(e).add(t).div(2),a=a.sub(new yt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new yt(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?lB(e,t,n,r,i+1):(u<n&&(l=t>0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new yt(s).mul(o)),tickMax:a.add(new yt(l).mul(o))})}function i3e(e){var t=Xh(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=aB([n,r]),l=Xh(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(tE(JS(0,i-1).map(function(){return 1/0}))):[].concat(tE(JS(0,i-1).map(function(){return-1/0})),[f]);return n>r?eE(d):d}if(u===f)return r3e(u,i,o);var p=lB(u,f,a,o),v=p.step,g=p.tickMin,y=p.tickMax,w=Vb.rangeStep(g,y.add(new yt(.1).mul(v)),v);return n>r?eE(w):w}function o3e(e,t){var n=Xh(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=aB([r,i]),s=Xh(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=sB(new yt(u).sub(l).div(f-1),o,0),p=[].concat(tE(Vb.rangeStep(new yt(l),new yt(u).sub(new yt(.99).mul(d)),d)),[u]);return r>i?eE(p):p}var a3e=iB(i3e),s3e=iB(o3e),l3e="Invariant failed";function Al(e,t){if(!e)throw new Error(l3e)}var u3e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function e0(){return e0=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},e0.apply(this,arguments)}function c3e(e,t){return p3e(e)||h3e(e,t)||d3e(e,t)||f3e()}function f3e(){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 d3e(e,t){if(e){if(typeof e=="string")return g4(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 g4(e,t)}}function g4(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 h3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function p3e(e){if(Array.isArray(e))return e}function m3e(e,t){if(e==null)return{};var n=v3e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v3e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function vf(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=m3e(e,u3e),f=$e(u,!1);e.direction==="x"&&s.type!=="number"&&Al(!1);var d=o.map(function(p){var v=a(p,i),g=v.x,y=v.y,w=v.value,b=v.errorVal;if(!b)return null;var x=[],_,S;if(Array.isArray(b)){var j=c3e(b,2);_=j[0],S=j[1]}else _=S=b;if(n==="vertical"){var E=s.scale,P=y+t,N=P+r,I=P-r,M=E(w-_),D=E(w+S);x.push({x1:D,y1:N,x2:D,y2:I}),x.push({x1:M,y1:P,x2:D,y2:P}),x.push({x1:M,y1:N,x2:M,y2:I})}else if(n==="horizontal"){var z=l.scale,q=g+t,W=q-r,X=q+r,J=z(w-_),te=z(w+S);x.push({x1:W,y1:te,x2:X,y2:te}),x.push({x1:q,y1:J,x2:q,y2:te}),x.push({x1:W,y1:J,x2:X,y2:J})}return V.createElement(Xe,e0({className:"recharts-errorBar",key:"bar-".concat(x.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},f),x.map(function(K){return V.createElement("line",e0({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return V.createElement(Xe,{className:"recharts-errorBars"},d)}vf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};vf.displayName="ErrorBar";function Qh(e){"@babel/helpers - typeof";return Qh=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},Qh(e)}function y4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y4(Object(n),!0).forEach(function(r){g3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g3e(e,t,n){return t=y3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y3e(e){var t=b3e(e,"string");return Qh(t)=="symbol"?t:String(t)}function b3e(e,t){if(Qh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uB=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,o=Lr(t,Fh);if(!o)return null;var a;return o.props&&o.props.payload?a=o.props&&o.props.payload:i==="children"?a=(n||[]).reduce(function(s,l){var u=l.item,f=l.props,d=f.sectors||f.data||[];return s.concat(d.map(function(p){return{type:o.props.iconType||u.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):a=(n||[]).map(function(s){var l=s.item,u=l.props,f=u.dataKey,d=u.name,p=u.legendType,v=u.hide;return{inactive:v,dataKey:f,type:o.props.iconType||p||"square",color:pP(l),value:d||f,payload:l.props}}),ew(ew(ew({},o.props),Fh.getWithHeight(o,r)),{},{payload:a,item:o})};function Jh(e){"@babel/helpers - typeof";return Jh=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},Jh(e)}function b4(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 oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b4(Object(n),!0).forEach(function(r){Xu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xu(e,t,n){return t=_3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _3e(e){var t=x3e(e,"string");return Jh(t)=="symbol"?t:String(t)}function x3e(e,t){if(Jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _4(e){return E3e(e)||S3e(e)||O3e(e)||w3e()}function w3e(){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 O3e(e,t){if(e){if(typeof e=="string")return rE(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 rE(e,t)}}function S3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E3e(e){if(Array.isArray(e))return rE(e)}function rE(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 kt(e,t,n){return ze(e)||ze(t)?n:pn(t)?$r(e,t,n):Ge(t)?t(e):n}function og(e,t,n,r){var i=Ake(e,function(s){return kt(s,t)});if(n==="number"){var o=i.filter(function(s){return Ee(s)||parseFloat(s)});return o.length?[Bb(o),Da(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!ze(s)}):i;return a.map(function(s){return pn(s)||s instanceof Date?s:""})}var j3e=function(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=(t=n==null?void 0:n.length)!==null&&t!==void 0?t:0;if(a<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,l=0;l<a;l++){var u=l>0?r[l-1].coordinate:r[a-1].coordinate,f=r[l].coordinate,d=l>=a-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(ar(f-u)!==ar(d-f)){var v=[];if(ar(d-f)===ar(s[1]-s[0])){p=d;var g=f+s[1]-s[0];v[0]=Math.min(g,(g+u)/2),v[1]=Math.max(g,(g+u)/2)}else{p=u;var y=d+s[1]-s[0];v[0]=Math.min(f,(y+f)/2),v[1]=Math.max(f,(y+f)/2)}var w=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(e>w[0]&&e<=w[1]||e>=v[0]&&e<=v[1]){o=r[l].index;break}}else{var b=Math.min(u,d),x=Math.max(u,d);if(e>(b+f)/2&&e<=(x+f)/2){o=r[l].index;break}}}else for(var _=0;_<a;_++)if(_===0&&e<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<a-1&&e>(n[_].coordinate+n[_-1].coordinate)/2&&e<=(n[_].coordinate+n[_+1].coordinate)/2||_===a-1&&e>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},pP=function(e){var t=e,n=t.type.displayName,r=e.props,i=r.stroke,o=r.fill,a;switch(n){case"Line":a=i;break;case"Area":case"Radar":a=i&&i!=="none"?i:o;break;default:a=o;break}return a},T3e=function(e){var t=e.barSize,n=e.stackGroups,r=n===void 0?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,s=o.length;a<s;a++)for(var l=r[o[a]].stackGroups,u=Object.keys(l),f=0,d=u.length;f<d;f++){var p=l[u[f]],v=p.items,g=p.cateAxisId,y=v.filter(function(x){return zo(x.type).indexOf("Bar")>=0});if(y&&y.length){var w=y[0].props.barSize,b=y[0].props[g];i[b]||(i[b]=[]),i[b].push({item:y[0],stackList:y.slice(1),barSize:ze(w)?t:w})}}return i},C3e=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=i===void 0?[]:i,a=e.maxBarSize,s=o.length;if(s<1)return null;var l=gr(t,r,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=r/s,v=o.reduce(function(_,S){return _+S.barSize||0},0);v+=(s-1)*l,v>=r&&(v-=(s-1)*l,l=0),v>=r&&p>0&&(d=!0,p*=.9,v=s*p);var g=(r-v)/2>>0,y={offset:g-l,size:0};u=o.reduce(function(_,S){var j={item:S.item,position:{offset:y.offset+y.size+l,size:d?p:S.barSize}},E=[].concat(_4(_),[j]);return y=E[E.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(P){E.push({item:P,position:y})}),E},f)}else{var w=gr(n,r,0,!0);r-2*w-(s-1)*l<=0&&(l=0);var b=(r-2*w-(s-1)*l)/s;b>1&&(b>>=0);var x=a===+a?Math.min(b,a):b;u=o.reduce(function(_,S,j){var E=[].concat(_4(_),[{item:S.item,position:{offset:w+(b+l)*j+(b-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(P){E.push({item:P,position:E[E.length-1].position})}),E},f)}return u},P3e=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),l=uB({children:i,legendWidth:s});if(l){var u=r||{},f=u.width,d=u.height,p=l.align,v=l.verticalAlign,g=l.layout;if((g==="vertical"||g==="horizontal"&&v==="middle")&&p!=="center"&&Ee(e[p]))return oi(oi({},e),{},Xu({},p,e[p]+(f||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&v!=="middle"&&Ee(e[v]))return oi(oi({},e),{},Xu({},v,e[v]+(d||0)))}return e},A3e=function(e,t,n){return ze(t)?!0:e==="horizontal"?t==="yAxis":e==="vertical"||n==="x"?t==="xAxis":n==="y"?t==="yAxis":!0},cB=function(e,t,n,r,i){var o=t.props.children,a=fr(o,vf).filter(function(l){return A3e(r,i,l.props.direction)});if(a&&a.length){var s=a.map(function(l){return l.props.dataKey});return e.reduce(function(l,u){var f=kt(u,n);if(ze(f))return l;var d=Array.isArray(f)?[Bb(f),Da(f)]:[f,f],p=s.reduce(function(v,g){var y=kt(u,g,0),w=d[0]-Math.abs(Array.isArray(y)?y[0]:y),b=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(w,v[0]),Math.max(b,v[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},k3e=function(e,t,n,r,i){var o=t.map(function(a){return cB(e,a,n,i,r)}).filter(function(a){return!ze(a)});return o&&o.length?o.reduce(function(a,s){return[Math.min(a[0],s[0]),Math.max(a[1],s[1])]},[1/0,-1/0]):null},fB=function(e,t,n,r,i){var o=t.map(function(s){var l=s.props.dataKey;return n==="number"&&l&&cB(e,s,l,r)||og(e,l,n,i)});if(n==="number")return o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);var a={};return o.reduce(function(s,l){for(var u=0,f=l.length;u<f;u++)a[l[u]]||(a[l[u]]=!0,s.push(l[u]));return s},[])},dB=function(e,t){return e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis"},hB=function(e,t,n,r){if(r)return e.map(function(s){return s.coordinate});var i,o,a=e.map(function(s){return s.coordinate===t&&(i=!0),s.coordinate===n&&(o=!0),s.coordinate});return i||a.push(t),o||a.push(n),a},Uo=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,s=e.realScaleType==="scaleBand"?r.bandwidth()/2:2,l=(t||n)&&o==="category"&&r.bandwidth?r.bandwidth()/s:0;if(l=e.axisType==="angleAxis"&&(a==null?void 0:a.length)>=2?ar(a[0]-a[1])*2*l:l,t&&(e.ticks||e.niceTicks)){var u=(e.ticks||e.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:r(d)+l,value:f,offset:l}});return u.filter(function(f){return!uf(f.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(f,d){return{coordinate:r(f)+l,value:f,index:d,offset:l}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(f){return{coordinate:r(f)+l,value:f,offset:l}}):r.domain().map(function(f,d){return{coordinate:r(f)+l,value:i?i[f]:f,index:d,offset:l}})},tw=new WeakMap,wv=function(e,t){if(typeof t!="function")return e;tw.has(e)||tw.set(e,new WeakMap);var n=tw.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},pB=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if(r==="auto")return o==="radial"&&a==="radiusAxis"?{scale:Wh(),realScaleType:"band"}:o==="radial"&&a==="angleAxis"?{scale:Yy(),realScaleType:"linear"}:i==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:Hd(),realScaleType:"point"}:i==="category"?{scale:Wh(),realScaleType:"band"}:{scale:Yy(),realScaleType:"linear"};if(Kp(r)){var s="scale".concat(jb(r));return{scale:(h4[s]||Hd)(),realScaleType:h4[s]?s:"point"}}return Ge(r)?{scale:r}:{scale:Hd(),realScaleType:"point"}},x4=1e-4,mB=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-x4,o=Math.max(r[0],r[1])+x4,a=e(t[0]),s=e(t[n-1]);(a<i||a>o||s<i||s>o)&&e.domain([t[0],t[n-1]])}},N3e=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},L3e=function(e,t){if(!t||t.length!==2||!Ee(t[0])||!Ee(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ee(e[0])||e[0]<n)&&(i[0]=n),(!Ee(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},R3e=function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var s=uf(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1])}},M3e=function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=uf(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},I3e={sign:R3e,expand:h_e,none:xc,silhouette:p_e,wiggle:m_e,positive:M3e},D3e=function(e,t,n){var r=t.map(function(a){return a.props.dataKey}),i=I3e[n],o=d_e().keys(r).value(function(a,s){return+kt(a,s,0)}).order(AS).offset(i);return o(e)},$3e=function(e,t,n,r,i,o){if(!e)return null;var a=o?t.reverse():t,s={},l=a.reduce(function(f,d){var p=d.props,v=p.stackId,g=p.hide;if(g)return f;var y=d.props[n],w=f[y]||{hasStack:!1,stackGroups:{}};if(pn(v)){var b=w.stackGroups[v]||{numericAxisId:n,cateAxisId:r,items:[]};b.items.push(d),w.hasStack=!0,w.stackGroups[v]=b}else w.stackGroups[_s("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[d]};return oi(oi({},f),{},Xu({},y,w))},s),u={};return Object.keys(l).reduce(function(f,d){var p=l[d];if(p.hasStack){var v={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,y){var w=p.stackGroups[y];return oi(oi({},g),{},Xu({},y,{numericAxisId:n,cateAxisId:r,items:w.items,stackedData:D3e(e,w.items,i)}))},v)}return oi(oi({},f),{},Xu({},d,p))},u)},vB=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=e.domain();if(!l.length)return null;var u=a3e(l,i,a);return e.domain([Bb(u),Da(u)]),{niceTicks:u}}if(i&&r==="number"){var f=e.domain(),d=s3e(f,i,a);return{niceTicks:d}}return null};function Pc(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ze(i[t.dataKey])){var s=Cy(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=kt(i,ze(a)?t.dataKey:a);return ze(l)?null:t.scale(l)}var w4=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=kt(o,t.dataKey,t.domain[a]);return ze(s)?null:t.scale(s)-i/2+r},F3e=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},U3e=function(e,t){var n=e.props.stackId;if(pn(n)){var r=t[n];if(r){var i=r.items.indexOf(e);return i>=0?r.stackedData[i]:null}}return null},B3e=function(e){return e.reduce(function(t,n){return[Bb(n.concat([t[0]]).filter(Ee)),Da(n.concat([t[1]]).filter(Ee))]},[1/0,-1/0])},gB=function(e,t,n){return Object.keys(e).reduce(function(r,i){var o=e[i],a=o.stackedData,s=a.reduce(function(l,u){var f=B3e(u.slice(t,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},O4=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,S4=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,iE=function(e,t,n){if(Ge(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(Ee(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(O4.test(e[0])){var i=+O4.exec(e[0])[1];r[0]=t[0]-i}else Ge(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Ee(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(S4.test(e[1])){var o=+S4.exec(e[1])[1];r[1]=t[1]+o}else Ge(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},t0=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=BC(t,function(f){return f.coordinate}),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],u=i[a-1];o=Math.min((l.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},E4=function(e,t,n){return!e||!e.length||us(e,$r(n,"type.defaultProps.domain"))?t:e},yB=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,l=n.chartType,u=n.hide;return oi(oi({},$e(e,!1)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:pP(e),value:kt(t,r),type:s,payload:t,chartType:l,hide:u})};function ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function j4(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 Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j4(Object(n),!0).forEach(function(r){bB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bB(e,t,n){return t=z3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z3e(e){var t=V3e(e,"string");return ep(t)=="symbol"?t:String(t)}function V3e(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H3e(e,t){return Z3e(e)||q3e(e,t)||G3e(e,t)||W3e()}function W3e(){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 G3e(e,t){if(e){if(typeof e=="string")return T4(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 T4(e,t)}}function T4(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 q3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Z3e(e){if(Array.isArray(e))return e}var n0=Math.PI/180,Y3e=function(e){return e*180/Math.PI},St=function(e,t,n,r){return{x:e+Math.cos(-n0*r)*n,y:t+Math.sin(-n0*r)*n}},_B=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},K3e=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.startAngle,l=e.endAngle,u=gr(e.cx,o,o/2),f=gr(e.cy,a,a/2),d=_B(o,a,n),p=gr(e.innerRadius,d,0),v=gr(e.outerRadius,d,d*.8),g=Object.keys(t);return g.reduce(function(y,w){var b=t[w],x=b.domain,_=b.reversed,S;if(ze(b.range))r==="angleAxis"?S=[s,l]:r==="radiusAxis"&&(S=[p,v]),_&&(S=[S[1],S[0]]);else{S=b.range;var j=S,E=H3e(j,2);s=E[0],l=E[1]}var P=pB(b,i),N=P.realScaleType,I=P.scale;I.domain(x).range(S),mB(I);var M=vB(I,Ro(Ro({},b),{},{realScaleType:N})),D=Ro(Ro(Ro({},b),M),{},{range:S,radius:v,realScaleType:N,scale:I,cx:u,cy:f,innerRadius:p,outerRadius:v,startAngle:s,endAngle:l});return Ro(Ro({},y),{},bB({},w,D))},{})},X3e=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))},Q3e=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=X3e({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var s=(n-i)/a,l=Math.acos(s);return r>o&&(l=2*Math.PI-l),{radius:a,angle:Y3e(l),angleInRadian:l}},J3e=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},eNe=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return e+a*360},C4=function(e,t){var n=e.x,r=e.y,i=Q3e({x:n,y:r},t),o=i.radius,a=i.angle,s=t.innerRadius,l=t.outerRadius;if(o<s||o>l)return!1;if(o===0)return!0;var u=J3e(t),f=u.startAngle,d=u.endAngle,p=a,v;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;v=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;v=p>=d&&p<=f}return v?Ro(Ro({},t),{},{radius:o,angle:eNe(p,t)}):null};function tp(e){"@babel/helpers - typeof";return tp=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},tp(e)}var tNe=["offset"];function nNe(e){return aNe(e)||oNe(e)||iNe(e)||rNe()}function rNe(){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 iNe(e,t){if(e){if(typeof e=="string")return oE(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 oE(e,t)}}function oNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aNe(e){if(Array.isArray(e))return oE(e)}function oE(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(e,t){if(e==null)return{};var n=lNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function P4(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?P4(Object(n),!0).forEach(function(r){uNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uNe(e,t,n){return t=cNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cNe(e){var t=fNe(e,"string");return tp(t)=="symbol"?t:String(t)}function fNe(e,t){if(tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},np.apply(this,arguments)}var dNe=function(e){var t=e.value,n=e.formatter,r=ze(e.children)?t:e.children;return Ge(n)?n(r):r},hNe=function(e,t){var n=ar(t-e),r=Math.min(Math.abs(t-e),360);return n*r},pNe=function(e,t,n){var r=e.position,i=e.viewBox,o=e.offset,a=e.className,s=i,l=s.cx,u=s.cy,f=s.innerRadius,d=s.outerRadius,p=s.startAngle,v=s.endAngle,g=s.clockWise,y=(f+d)/2,w=hNe(p,v),b=w>=0?1:-1,x,_;r==="insideStart"?(x=p+b*o,_=g):r==="insideEnd"?(x=v-b*o,_=!g):r==="end"&&(x=v+b*o,_=g),_=w<=0?_:!_;var S=St(l,u,y,x),j=St(l,u,y,x+(_?1:-1)*359),E="M".concat(S.x,",").concat(S.y,`
|
||
A`).concat(y,",").concat(y,",0,1,").concat(_?0:1,`,
|
||
`).concat(j.x,",").concat(j.y),P=ze(e.id)?_s("recharts-radial-line-"):e.id;return V.createElement("text",np({},n,{dominantBaseline:"central",className:De("recharts-radial-bar-label",a)}),V.createElement("defs",null,V.createElement("path",{id:P,d:E})),V.createElement("textPath",{xlinkHref:"#".concat(P)},t))},mNe=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,s=i.innerRadius,l=i.outerRadius,u=i.startAngle,f=i.endAngle,d=(u+f)/2;if(r==="outside"){var p=St(o,a,l+n,d),v=p.x,g=p.y;return{x:v,y:g,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var y=(s+l)/2,w=St(o,a,y,d),b=w.x,x=w.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},vNe=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,s=o.y,l=o.width,u=o.height,f=u>=0?1:-1,d=f*r,p=f>0?"end":"start",v=f>0?"start":"end",g=l>=0?1:-1,y=g*r,w=g>0?"end":"start",b=g>0?"start":"end";if(i==="top"){var x={x:a+l/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return cn(cn({},x),n?{height:Math.max(s-n.y,0),width:l}:{})}if(i==="bottom"){var _={x:a+l/2,y:s+u+d,textAnchor:"middle",verticalAnchor:v};return cn(cn({},_),n?{height:Math.max(n.y+n.height-(s+u),0),width:l}:{})}if(i==="left"){var S={x:a-y,y:s+u/2,textAnchor:w,verticalAnchor:"middle"};return cn(cn({},S),n?{width:Math.max(S.x-n.x,0),height:u}:{})}if(i==="right"){var j={x:a+l+y,y:s+u/2,textAnchor:b,verticalAnchor:"middle"};return cn(cn({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:u}:{})}var E=n?{width:l,height:u}:{};return i==="insideLeft"?cn({x:a+y,y:s+u/2,textAnchor:b,verticalAnchor:"middle"},E):i==="insideRight"?cn({x:a+l-y,y:s+u/2,textAnchor:w,verticalAnchor:"middle"},E):i==="insideTop"?cn({x:a+l/2,y:s+d,textAnchor:"middle",verticalAnchor:v},E):i==="insideBottom"?cn({x:a+l/2,y:s+u-d,textAnchor:"middle",verticalAnchor:p},E):i==="insideTopLeft"?cn({x:a+y,y:s+d,textAnchor:b,verticalAnchor:v},E):i==="insideTopRight"?cn({x:a+l-y,y:s+d,textAnchor:w,verticalAnchor:v},E):i==="insideBottomLeft"?cn({x:a+y,y:s+u-d,textAnchor:b,verticalAnchor:p},E):i==="insideBottomRight"?cn({x:a+l-y,y:s+u-d,textAnchor:w,verticalAnchor:p},E):of(i)&&(Ee(i.x)||tl(i.x))&&(Ee(i.y)||tl(i.y))?cn({x:a+gr(i.x,l),y:s+gr(i.y,u),textAnchor:"end",verticalAnchor:"end"},E):cn({x:a+l/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},E)},gNe=function(e){return"cx"in e&&Ee(e.cx)};function Tn(e){var t=e.offset,n=t===void 0?5:t,r=sNe(e,tNe),i=cn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,p=i.textBreakAll;if(!o||ze(s)&&ze(l)&&!R.isValidElement(u)&&!Ge(u))return null;if(R.isValidElement(u))return R.cloneElement(u,i);var v;if(Ge(u)){if(v=R.createElement(u,i),R.isValidElement(v))return v}else v=dNe(i);var g=gNe(o),y=$e(i,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return pNe(i,v,y);var w=g?mNe(i):vNe(i);return V.createElement(Cl,np({className:De("recharts-label",d)},y,w,{breakAll:p}),v)}Tn.displayName="Label";var xB=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,s=e.radius,l=e.innerRadius,u=e.outerRadius,f=e.x,d=e.y,p=e.top,v=e.left,g=e.width,y=e.height,w=e.clockWise,b=e.labelViewBox;if(b)return b;if(Ee(g)&&Ee(y)){if(Ee(f)&&Ee(d))return{x:f,y:d,width:g,height:y};if(Ee(p)&&Ee(v))return{x:p,y:v,width:g,height:y}}return Ee(f)&&Ee(d)?{x:f,y:d,width:0,height:0}:Ee(t)&&Ee(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:u||s||a||0,clockWise:w}:e.viewBox?e.viewBox:{}},yNe=function(e,t){return e?e===!0?V.createElement(Tn,{key:"label-implicit",viewBox:t}):pn(e)?V.createElement(Tn,{key:"label-implicit",viewBox:t,value:e}):R.isValidElement(e)?e.type===Tn?R.cloneElement(e,{key:"label-implicit",viewBox:t}):V.createElement(Tn,{key:"label-implicit",content:e,viewBox:t}):Ge(e)?V.createElement(Tn,{key:"label-implicit",content:e,viewBox:t}):of(e)?V.createElement(Tn,np({viewBox:t},e,{key:"label-implicit"})):null:null},bNe=function(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=xB(e),o=fr(r,Tn).map(function(s,l){return R.cloneElement(s,{viewBox:t||i,key:"label-".concat(l)})});if(!n)return o;var a=yNe(e.label,t||i);return[a].concat(nNe(o))};Tn.parseViewBox=xB;Tn.renderCallByParent=bNe;function _Ne(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var xNe=_Ne;const wNe=gt(xNe);function rp(e){"@babel/helpers - typeof";return rp=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},rp(e)}var ONe=["valueAccessor"],SNe=["data","dataKey","clockWise","id","textBreakAll"];function ENe(e){return PNe(e)||CNe(e)||TNe(e)||jNe()}function jNe(){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 TNe(e,t){if(e){if(typeof e=="string")return aE(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 aE(e,t)}}function CNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PNe(e){if(Array.isArray(e))return aE(e)}function aE(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 r0(){return r0=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},r0.apply(this,arguments)}function A4(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 k4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A4(Object(n),!0).forEach(function(r){ANe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ANe(e,t,n){return t=kNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kNe(e){var t=NNe(e,"string");return rp(t)=="symbol"?t:String(t)}function NNe(e,t){if(rp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N4(e,t){if(e==null)return{};var n=LNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function LNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var RNe=function(e){return Array.isArray(e.value)?wNe(e.value):e.value};function Ui(e){var t=e.valueAccessor,n=t===void 0?RNe:t,r=N4(e,ONe),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=N4(r,SNe);return!i||!i.length?null:V.createElement(Xe,{className:"recharts-label-list"},i.map(function(f,d){var p=ze(o)?n(f,d):kt(f&&f.payload,o),v=ze(s)?{}:{id:"".concat(s,"-").concat(d)};return V.createElement(Tn,r0({},$e(f,!0),u,v,{parentViewBox:f.parentViewBox,value:p,textBreakAll:l,viewBox:Tn.parseViewBox(ze(a)?f:k4(k4({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Ui.displayName="LabelList";function MNe(e,t){return e?e===!0?V.createElement(Ui,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Ge(e)?V.createElement(Ui,{key:"labelList-implicit",data:t,content:e}):of(e)?V.createElement(Ui,r0({data:t},e,{key:"labelList-implicit"})):null:null}function INe(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=fr(r,Ui).map(function(a,s){return R.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=MNe(e.label,t);return[o].concat(ENe(i))}Ui.renderCallByParent=INe;function ip(e){"@babel/helpers - typeof";return ip=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},ip(e)}function sE(){return sE=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},sE.apply(this,arguments)}function L4(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 R4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L4(Object(n),!0).forEach(function(r){DNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DNe(e,t,n){return t=$Ne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ne(e){var t=FNe(e,"string");return ip(t)=="symbol"?t:String(t)}function FNe(e,t){if(ip(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UNe=function(e,t){var n=ar(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Ov=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,s=e.cornerRadius,l=e.cornerIsExternal,u=s*(a?1:-1)+r,f=Math.asin(s/u)/n0,d=l?i:i+o*f,p=St(t,n,u,d),v=St(t,n,r,d),g=l?i-o*f:i,y=St(t,n,u*Math.cos(f*n0),g);return{center:p,circleTangency:v,lineTangency:y,theta:f}},wB=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=e.endAngle,s=UNe(o,a),l=o+s,u=St(t,n,i,o),f=St(t,n,i,l),d="M ".concat(u.x,",").concat(u.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(s)>180),",").concat(+(o>l),`,
|
||
`).concat(f.x,",").concat(f.y,`
|
||
`);if(r>0){var p=St(t,n,r,o),v=St(t,n,r,l);d+="L ".concat(v.x,",").concat(v.y,`
|
||
A `).concat(r,",").concat(r,`,0,
|
||
`).concat(+(Math.abs(s)>180),",").concat(+(o<=l),`,
|
||
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},BNe=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,l=e.startAngle,u=e.endAngle,f=ar(u-l),d=Ov({cx:t,cy:n,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,v=d.lineTangency,g=d.theta,y=Ov({cx:t,cy:n,radius:i,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:s}),w=y.circleTangency,b=y.lineTangency,x=y.theta,_=s?Math.abs(l-u):Math.abs(l-u)-g-x;if(_<0)return a?"M ".concat(v.x,",").concat(v.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
|
||
`):wB({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:l,endAngle:u});var S="M ".concat(v.x,",").concat(v.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(r>0){var j=Ov({cx:t,cy:n,radius:r,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=j.circleTangency,P=j.lineTangency,N=j.theta,I=Ov({cx:t,cy:n,radius:r,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),M=I.circleTangency,D=I.lineTangency,z=I.theta,q=s?Math.abs(l-u):Math.abs(l-u)-N-z;if(q<0&&o===0)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(D.x,",").concat(D.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,`
|
||
A`).concat(r,",").concat(r,",0,").concat(+(q>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S},zNe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},OB=function(e){var t=R4(R4({},zNe),e),n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=t.className;if(o<i||u===f)return null;var p=De("recharts-sector",d),v=o-i,g=gr(a,v,0,!0),y;return g>0&&Math.abs(u-f)<360?y=BNe({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(g,v/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:f}):y=wB({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f}),V.createElement("path",sE({},$e(t,!0),{className:p,d:y,role:"img"}))};function op(e){"@babel/helpers - typeof";return op=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},op(e)}function lE(){return lE=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},lE.apply(this,arguments)}function M4(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 I4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M4(Object(n),!0).forEach(function(r){VNe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VNe(e,t,n){return t=HNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HNe(e){var t=WNe(e,"string");return op(t)=="symbol"?t:String(t)}function WNe(e,t){if(op(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(op(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D4={curveBasisClosed:t_e,curveBasisOpen:n_e,curveBasis:e_e,curveBumpX:Ube,curveBumpY:Bbe,curveLinearClosed:r_e,curveLinear:Cb,curveMonotoneX:i_e,curveMonotoneY:o_e,curveNatural:a_e,curveStep:s_e,curveStepAfter:u_e,curveStepBefore:l_e},Sv=function(e){return e.x===+e.x&&e.y===+e.y},id=function(e){return e.x},od=function(e){return e.y},GNe=function(e,t){if(Ge(e))return e;var n="curve".concat(jb(e));return(n==="curveMonotone"||n==="curveBump")&&t?D4["".concat(n).concat(t==="vertical"?"Y":"X")]:D4[n]||Cb},qNe=function(e){var t=e.type,n=t===void 0?"linear":t,r=e.points,i=r===void 0?[]:r,o=e.baseLine,a=e.layout,s=e.connectNulls,l=s===void 0?!1:s,u=GNe(n,a),f=l?i.filter(function(g){return Sv(g)}):i,d;if(Array.isArray(o)){var p=l?o.filter(function(g){return Sv(g)}):o,v=f.map(function(g,y){return I4(I4({},g),{},{base:p[y]})});return a==="vertical"?d=pv().y(od).x1(id).x0(function(g){return g.base.x}):d=pv().x(id).y1(od).y0(function(g){return g.base.y}),d.defined(Sv).curve(u),d(v)}return a==="vertical"&&Ee(o)?d=pv().y(od).x1(id).x0(o):Ee(o)?d=pv().x(id).y1(od).y0(o):d=_U().x(id).y(od),d.defined(Sv).curve(u),d(f)},Qa=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?qNe(e):r;return V.createElement("path",lE({},$e(e,!1),Py(e),{className:De("recharts-curve",t),d:o,ref:i}))},SB={exports:{}},nw,$4;function ZNe(){if($4)return nw;$4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nw=e,nw}var rw,F4;function YNe(){if(F4)return rw;F4=1;var e=ZNe();function t(){}function n(){}return n.resetWarningCache=t,rw=function(){function r(a,s,l,u,f,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={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 o.PropTypes=o,o},rw}SB.exports=YNe()();var KNe=SB.exports;const Qe=gt(KNe);var XNe=Object.getOwnPropertyNames,QNe=Object.getOwnPropertySymbols,JNe=Object.prototype.hasOwnProperty;function U4(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Ev(e){return function(t,n,r){if(!t||!n||typeof t!="object"||typeof n!="object")return e(t,n,r);var i=r.cache,o=i.get(t),a=i.get(n);if(o&&a)return o===n&&a===t;i.set(t,n),i.set(n,t);var s=e(t,n,r);return i.delete(t),i.delete(n),s}}function B4(e){return XNe(e).concat(QNe(e))}var EB=Object.hasOwn||function(e,t){return JNe.call(e,t)};function gf(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var jB="_owner",z4=Object.getOwnPropertyDescriptor,V4=Object.keys;function eLe(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 tLe(e,t){return gf(e.getTime(),t.getTime())}function H4(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=a.value,p=d[0],v=d[1],g=s.value,y=g[0],w=g[1];!u&&!r[f]&&(u=n.equals(p,y,o,f,e,t,n)&&n.equals(v,w,p,y,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;o++}return!0}function nLe(e,t,n){var r=V4(e),i=r.length;if(V4(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===jB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!EB(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function ad(e,t,n){var r=B4(e),i=r.length;if(B4(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===jB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!EB(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=z4(e,o),s=z4(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function rLe(e,t){return gf(e.valueOf(),t.valueOf())}function iLe(e,t){return e.source===t.source&&e.flags===t.flags}function W4(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!r[u]&&(l=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function oLe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var aLe="[object Arguments]",sLe="[object Boolean]",lLe="[object Date]",uLe="[object Map]",cLe="[object Number]",fLe="[object Object]",dLe="[object RegExp]",hLe="[object Set]",pLe="[object String]",mLe=Array.isArray,G4=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,q4=Object.assign,vLe=Object.prototype.toString.call.bind(Object.prototype.toString);function gLe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(u,f,d){if(u===f)return!0;if(u==null||f==null||typeof u!="object"||typeof f!="object")return u!==u&&f!==f;var p=u.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(u,f,d);if(mLe(u))return t(u,f,d);if(G4!=null&&G4(u))return l(u,f,d);if(p===Date)return n(u,f,d);if(p===RegExp)return a(u,f,d);if(p===Map)return r(u,f,d);if(p===Set)return s(u,f,d);var v=vLe(u);return v===lLe?n(u,f,d):v===dLe?a(u,f,d):v===uLe?r(u,f,d):v===hLe?s(u,f,d):v===fLe?typeof u.then!="function"&&typeof f.then!="function"&&i(u,f,d):v===aLe?i(u,f,d):v===sLe||v===cLe||v===pLe?o(u,f,d):!1}}function yLe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?ad:eLe,areDatesEqual:tLe,areMapsEqual:r?U4(H4,ad):H4,areObjectsEqual:r?ad:nLe,arePrimitiveWrappersEqual:rLe,areRegExpsEqual:iLe,areSetsEqual:r?U4(W4,ad):W4,areTypedArraysEqual:r?ad:oLe};if(n&&(i=q4({},i,n(i))),t){var o=Ev(i.areArraysEqual),a=Ev(i.areMapsEqual),s=Ev(i.areObjectsEqual),l=Ev(i.areSetsEqual);i=q4({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function bLe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function _Le(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(s,l){var u=r(),f=u.cache,d=f===void 0?t?new WeakMap:void 0:f,p=u.meta;return n(s,l,{cache:d,equals:i,meta:p,strict:o})};if(t)return function(s,l){return n(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(s,l){return n(s,l,a)}}var xLe=Os();Os({strict:!0});Os({circular:!0});Os({circular:!0,strict:!0});Os({createInternalComparator:function(){return gf}});Os({strict:!0,createInternalComparator:function(){return gf}});Os({circular:!0,createInternalComparator:function(){return gf}});Os({circular:!0,createInternalComparator:function(){return gf},strict:!0});function Os(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=yLe(e),l=gLe(s),u=r?r(l):bLe(l);return _Le({circular:n,comparator:l,createState:i,equals:u,strict:a})}function wLe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Z4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):wLe(i)};requestAnimationFrame(r)}function uE(e){"@babel/helpers - typeof";return uE=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},uE(e)}function OLe(e){return TLe(e)||jLe(e)||ELe(e)||SLe()}function SLe(){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 ELe(e,t){if(e){if(typeof e=="string")return Y4(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 Y4(e,t)}}function Y4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TLe(e){if(Array.isArray(e))return e}function CLe(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,s=OLe(a),l=s[0],u=s.slice(1);if(typeof l=="number"){Z4(i.bind(null,u),l);return}i(l),Z4(i.bind(null,u));return}uE(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function ap(e){"@babel/helpers - typeof";return ap=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},ap(e)}function K4(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 X4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K4(Object(n),!0).forEach(function(r){TB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TB(e,t,n){return t=PLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PLe(e){var t=ALe(e,"string");return ap(t)==="symbol"?t:String(t)}function ALe(e,t){if(ap(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ap(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kLe=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(n,r){return n.filter(function(i){return r.includes(i)})})},NLe=function(e){return e},LLe=function(e){return e.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})},Wd=function(e,t){return Object.keys(t).reduce(function(n,r){return X4(X4({},n),{},TB({},r,e(r,t[r])))},{})},Q4=function(e,t,n){return e.map(function(r){return"".concat(LLe(r)," ").concat(t,"ms ").concat(n)}).join(",")};function RLe(e,t){return DLe(e)||ILe(e,t)||CB(e,t)||MLe()}function MLe(){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 ILe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function DLe(e){if(Array.isArray(e))return e}function $Le(e){return BLe(e)||ULe(e)||CB(e)||FLe()}function FLe(){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 CB(e,t){if(e){if(typeof e=="string")return cE(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 cE(e,t)}}function ULe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BLe(e){if(Array.isArray(e))return cE(e)}function cE(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 i0=1e-4,PB=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},AB=function(e,t){return e.map(function(n,r){return n*Math.pow(t,r)}).reduce(function(n,r){return n+r})},J4=function(e,t){return function(n){var r=PB(e,t);return AB(r,n)}},zLe=function(e,t){return function(n){var r=PB(e,t),i=[].concat($Le(r.map(function(o,a){return o*a}).slice(1)),[0]);return AB(i,n)}},e6=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];if(t.length===1)switch(t[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:{var s=t[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var l=s[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),u=RLe(l,4);r=u[0],i=u[1],o=u[2],a=u[3]}}}var f=J4(r,o),d=J4(i,a),p=zLe(r,o),v=function(y){return y>1?1:y<0?0:y},g=function(y){for(var w=y>1?1:y,b=w,x=0;x<8;++x){var _=f(b)-w,S=p(b);if(Math.abs(_-w)<i0||S<i0)return d(b);b=v(b-_/S)}return d(b)};return g.isStepper=!1,g},VLe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,o=e.dt,a=o===void 0?17:o,s=function(l,u,f){var d=-(l-u)*n,p=f*i,v=f+(d-p)*a/1e3,g=f*a/1e3+l;return Math.abs(g-u)<i0&&Math.abs(v)<i0?[u,0]:[g,v]};return s.isStepper=!0,s.dt=a,s},HLe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(typeof r=="string")switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return e6(r);case"spring":return VLe();default:if(r.split("(")[0]==="cubic-bezier")return e6(r)}return typeof r=="function"?r:null};function sp(e){"@babel/helpers - typeof";return sp=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},sp(e)}function t6(e){return qLe(e)||GLe(e)||kB(e)||WLe()}function WLe(){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 GLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qLe(e){if(Array.isArray(e))return dE(e)}function n6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n6(Object(n),!0).forEach(function(r){fE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fE(e,t,n){return t=ZLe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZLe(e){var t=YLe(e,"string");return sp(t)==="symbol"?t:String(t)}function YLe(e,t){if(sp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KLe(e,t){return JLe(e)||QLe(e,t)||kB(e,t)||XLe()}function XLe(){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 kB(e,t){if(e){if(typeof e=="string")return dE(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 dE(e,t)}}function dE(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 QLe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function JLe(e){if(Array.isArray(e))return e}var o0=function(e,t,n){return e+(t-e)*n},hE=function(e){var t=e.from,n=e.to;return t!==n},eRe=function e(t,n,r){var i=Wd(function(o,a){if(hE(a)){var s=t(a.from,a.to,a.velocity),l=KLe(s,2),u=l[0],f=l[1];return Fn(Fn({},a),{},{from:u,velocity:f})}return a},n);return r<1?Wd(function(o,a){return hE(a)?Fn(Fn({},a),{},{velocity:o0(a.velocity,i[o].velocity,r),from:o0(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const tRe=function(e,t,n,r,i){var o=kLe(e,t),a=o.reduce(function(w,b){return Fn(Fn({},w),{},fE({},b,[e[b],t[b]]))},{}),s=o.reduce(function(w,b){return Fn(Fn({},w),{},fE({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,u,f,d=function(){return null},p=function(){return Wd(function(w,b){return b.from},s)},v=function(){return!Object.values(s).filter(hE).length},g=function(w){u||(u=w);var b=w-u,x=b/n.dt;s=eRe(n,s,x),i(Fn(Fn(Fn({},e),t),p())),u=w,v()||(l=requestAnimationFrame(d))},y=function(w){f||(f=w);var b=(w-f)/r,x=Wd(function(S,j){return o0.apply(void 0,t6(j).concat([n(b)]))},a);if(i(Fn(Fn(Fn({},e),t),x)),b<1)l=requestAnimationFrame(d);else{var _=Wd(function(S,j){return o0.apply(void 0,t6(j).concat([n(1)]))},a);i(Fn(Fn(Fn({},e),t),_))}};return d=n.isStepper?g:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}var nRe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function rRe(e,t){if(e==null)return{};var n=iRe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function iw(e){return lRe(e)||sRe(e)||aRe(e)||oRe()}function oRe(){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 aRe(e,t){if(e){if(typeof e=="string")return pE(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 pE(e,t)}}function sRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lRe(e){if(Array.isArray(e))return pE(e)}function pE(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 r6(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 Ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r6(Object(n),!0).forEach(function(r){gd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gd(e,t,n){return t=NB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i6(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,NB(r.key),r)}}function cRe(e,t,n){return t&&i6(e.prototype,t),n&&i6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NB(e){var t=fRe(e,"string");return Ac(t)==="symbol"?t:String(t)}function fRe(e,t){if(Ac(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ac(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dRe(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&&mE(e,t)}function mE(e,t){return mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mE(e,t)}function hRe(e){var t=pRe();return function(){var n=a0(e),r;if(t){var i=a0(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return vE(this,r)}}function vE(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gE(e)}function gE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pRe(){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(t){return t.__proto__||Object.getPrototypeOf(t)},a0(e)}var bi=function(e){dRe(n,e);var t=hRe(n);function n(r,i){var o;uRe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,d=a.steps,p=a.children,v=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(gE(o)),o.changeStyle=o.changeStyle.bind(gE(o)),!s||v<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),vE(o);if(d&&d.length)o.state={style:d[0].style};else if(u){if(typeof p=="function")return o.state={style:u},vE(o);o.state={style:l?gd({},l,u):u}}else o.state={style:{}};return o}return cRe(n,[{key:"componentDidMount",value:function(){var r=this.props,i=r.isActive,o=r.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var i=this.props,o=i.isActive,a=i.canBegin,s=i.attributeName,l=i.shouldReAnimate,u=i.to,f=i.from,d=this.state.style;if(a){if(!o){var p={style:s?gd({},s,u):u};this.state&&d&&(s&&d[s]!==u||!s&&d!==u)&&this.setState(p);return}if(!(xLe(r.to,u)&&r.canBegin&&r.isActive)){var v=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=v||l?f:r.to;if(this.state&&d){var y={style:s?gd({},s,g):g};(s&&[s]!==g||!s&&d!==g)&&this.setState(y)}this.runAnimation(Ci(Ci({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var i=this,o=r.from,a=r.to,s=r.duration,l=r.easing,u=r.begin,f=r.onAnimationEnd,d=r.onAnimationStart,p=tRe(o,a,HLe(l),s,this.changeStyle),v=function(){i.stopJSAnimation=p()};this.manager.start([d,u,v,s,f])}},{key:"runStepAnimation",value:function(r){var i=this,o=r.steps,a=r.begin,s=r.onAnimationStart,l=o[0],u=l.style,f=l.duration,d=f===void 0?0:f,p=function(v,g,y){if(y===0)return v;var w=g.duration,b=g.easing,x=b===void 0?"ease":b,_=g.style,S=g.properties,j=g.onAnimationEnd,E=y>0?o[y-1]:g,P=S||Object.keys(_);if(typeof x=="function"||x==="spring")return[].concat(iw(v),[i.runJSAnimation.bind(i,{from:E.style,to:_,duration:w,easing:x}),w]);var N=Q4(P,w,x),I=Ci(Ci(Ci({},E.style),_),{},{transition:N});return[].concat(iw(v),[I,w,j]).filter(NLe)};return this.manager.start([s].concat(iw(o.reduce(p,[u,Math.max(d,a)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=CLe());var i=r.begin,o=r.duration,a=r.attributeName,s=r.to,l=r.easing,u=r.onAnimationStart,f=r.onAnimationEnd,d=r.steps,p=r.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(r);return}if(d.length>1){this.runStepAnimation(r);return}var g=a?gd({},a,s):s,y=Q4(Object.keys(g),o,l);v.start([u,i,Ci(Ci({},g),{},{transition:y}),o,f])}},{key:"render",value:function(){var r=this.props,i=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var a=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var s=rRe(r,nRe),l=R.Children.count(i),u=this.state.style;if(typeof i=="function")return i(u);if(!a||l===0||o<=0)return i;var f=function(d){var p=d.props,v=p.style,g=v===void 0?{}:v,y=p.className,w=R.cloneElement(d,Ci(Ci({},s),{},{style:Ci(Ci({},g),u),className:y}));return w};return l===1?f(R.Children.only(i)):V.createElement("div",null,R.Children.map(i,function(d){return f(d)}))}}]),n}(R.PureComponent);bi.displayName="Animate";bi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};bi.propTypes={from:Qe.oneOfType([Qe.object,Qe.string]),to:Qe.oneOfType([Qe.object,Qe.string]),attributeName:Qe.string,duration:Qe.number,begin:Qe.number,easing:Qe.oneOfType([Qe.string,Qe.func]),steps:Qe.arrayOf(Qe.shape({duration:Qe.number.isRequired,style:Qe.object.isRequired,easing:Qe.oneOfType([Qe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Qe.func]),properties:Qe.arrayOf("string"),onAnimationEnd:Qe.func})),children:Qe.oneOfType([Qe.node,Qe.func]),isActive:Qe.bool,canBegin:Qe.bool,onAnimationEnd:Qe.func,shouldReAnimate:Qe.bool,onAnimationStart:Qe.func,onAnimationReStart:Qe.func};Qe.object,Qe.object,Qe.object,Qe.element;Qe.object,Qe.object,Qe.object,Qe.oneOfType([Qe.array,Qe.element]),Qe.any;function lp(e){"@babel/helpers - typeof";return lp=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},lp(e)}function s0(){return s0=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},s0.apply(this,arguments)}function mRe(e,t){return bRe(e)||yRe(e,t)||gRe(e,t)||vRe()}function vRe(){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 gRe(e,t){if(e){if(typeof e=="string")return o6(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 o6(e,t)}}function o6(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 yRe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function bRe(e){if(Array.isArray(e))return e}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 s6(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){_Re(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 _Re(e,t,n){return t=xRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xRe(e){var t=wRe(e,"string");return lp(t)=="symbol"?t:String(t)}function wRe(e,t){if(lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l6=function(e,t,n,r,i){var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0,u;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=i[d]>o?o:i[d];u="M".concat(e,",").concat(t+a*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(e+s*f[0],",").concat(t)),u+="L ".concat(e+n-s*f[1],",").concat(t),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
|
||
`).concat(e+n,",").concat(t+a*f[1])),u+="L ".concat(e+n,",").concat(t+r-a*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
|
||
`).concat(e+n-s*f[2],",").concat(t+r)),u+="L ".concat(e+s*f[3],",").concat(t+r),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
|
||
`).concat(e,",").concat(t+r-a*f[3])),u+="Z"}else if(o>0&&i===+i&&i>0){var v=Math.min(o,i);u="M ".concat(e,",").concat(t+a*v,`
|
||
A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e+s*v,",").concat(t,`
|
||
L `).concat(e+n-s*v,",").concat(t,`
|
||
A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e+n,",").concat(t+a*v,`
|
||
L `).concat(e+n,",").concat(t+r-a*v,`
|
||
A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e+n-s*v,",").concat(t+r,`
|
||
L `).concat(e+s*v,",").concat(t+r,`
|
||
A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(e,",").concat(t+r-a*v," Z")}else u="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return u},ORe=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),f=Math.min(o,o+s),d=Math.max(o,o+s);return n>=l&&n<=u&&r>=f&&r<=d}return!1},SRe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mP=function(e){var t=s6(s6({},SRe),e),n=R.useRef(),r=R.useState(-1),i=mRe(r,2),o=i[0],a=i[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&a(_)}catch{}},[]);var s=t.x,l=t.y,u=t.width,f=t.height,d=t.radius,p=t.className,v=t.animationEasing,g=t.animationDuration,y=t.animationBegin,w=t.isAnimationActive,b=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||u===0||f===0)return null;var x=De("recharts-rectangle",p);return b?V.createElement(bi,{canBegin:o>0,from:{width:u,height:f,x:s,y:l},to:{width:u,height:f,x:s,y:l},duration:g,animationEasing:v,isActive:b},function(_){var S=_.width,j=_.height,E=_.x,P=_.y;return V.createElement(bi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,isActive:w,easing:v},V.createElement("path",s0({},$e(t,!0),{className:x,d:l6(E,P,S,j,d),ref:n})))}):V.createElement("path",s0({},$e(t,!0),{className:x,d:l6(s,l,u,f,d)}))},ERe=["points","className","baseLinePoints","connectNulls"];function Du(){return Du=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},Du.apply(this,arguments)}function jRe(e,t){if(e==null)return{};var n=TRe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function u6(e){return kRe(e)||ARe(e)||PRe(e)||CRe()}function CRe(){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 PRe(e,t){if(e){if(typeof e=="string")return yE(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 yE(e,t)}}function ARe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kRe(e){if(Array.isArray(e))return yE(e)}function yE(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 c6=function(e){return e&&e.x===+e.x&&e.y===+e.y},NRe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(n){c6(n)?t[t.length-1].push(n):t[t.length-1].length>0&&t.push([])}),c6(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},Gd=function(e,t){var n=NRe(e);t&&(n=[n.reduce(function(i,o){return[].concat(u6(i),u6(o))},[])]);var r=n.map(function(i){return i.reduce(function(o,a,s){return"".concat(o).concat(s===0?"M":"L").concat(a.x,",").concat(a.y)},"")}).join("");return n.length===1?"".concat(r,"Z"):r},LRe=function(e,t,n){var r=Gd(e,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(Gd(t.reverse(),n).slice(1))},RRe=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,o=jRe(e,ERe);if(!t||!t.length)return null;var a=De("recharts-polygon",n);if(r&&r.length){var s=o.stroke&&o.stroke!=="none",l=LRe(t,r,i);return V.createElement("g",{className:a},V.createElement("path",Du({},$e(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),s?V.createElement("path",Du({},$e(o,!0),{fill:"none",d:Gd(t,i)})):null,s?V.createElement("path",Du({},$e(o,!0),{fill:"none",d:Gd(r,i)})):null)}var u=Gd(t,i);return V.createElement("path",Du({},$e(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:a,d:u}))};function bE(){return bE=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},bE.apply(this,arguments)}var nm=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.className,o=De("recharts-dot",i);return t===+t&&n===+n&&r===+r?V.createElement("circle",bE({},$e(e,!1),Py(e),{className:o,cx:t,cy:n,r})):null};function up(e){"@babel/helpers - typeof";return up=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},up(e)}var MRe=["x","y","top","left","width","height","className"];function _E(){return _E=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},_E.apply(this,arguments)}function f6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function IRe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f6(Object(n),!0).forEach(function(r){DRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DRe(e,t,n){return t=$Re(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Re(e){var t=FRe(e,"string");return up(t)=="symbol"?t:String(t)}function FRe(e,t){if(up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function URe(e,t){if(e==null)return{};var n=BRe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zRe=function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)},VRe=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,o=e.top,a=o===void 0?0:o,s=e.left,l=s===void 0?0:s,u=e.width,f=u===void 0?0:u,d=e.height,p=d===void 0?0:d,v=e.className,g=URe(e,MRe),y=IRe({x:n,y:i,top:a,left:l,width:f,height:p},g);return!Ee(n)||!Ee(i)||!Ee(f)||!Ee(p)||!Ee(a)||!Ee(l)?null:V.createElement("path",_E({},$e(y,!0),{className:De("recharts-cross",v),d:zRe(n,i,f,p,a,l)}))},HRe=Ub,WRe=Y9,GRe=To;function qRe(e,t){return e&&e.length?HRe(e,GRe(t),WRe):void 0}var ZRe=qRe;const YRe=gt(ZRe);var KRe=Ub,XRe=To,QRe=K9;function JRe(e,t){return e&&e.length?KRe(e,XRe(t),QRe):void 0}var eMe=JRe;const tMe=gt(eMe);var nMe=["cx","cy","angle","ticks","axisLine"],rMe=["ticks","tick","angle","tickFormatter","stroke"];function kc(e){"@babel/helpers - typeof";return kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(e)}function qd(){return qd=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},qd.apply(this,arguments)}function d6(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d6(Object(n),!0).forEach(function(r){Hb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h6(e,t){if(e==null)return{};var n=iMe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iMe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function oMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p6(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,RB(r.key),r)}}function aMe(e,t,n){return t&&p6(e.prototype,t),n&&p6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sMe(e,t,n){return t=l0(t),lMe(e,LB()?Reflect.construct(t,n||[],l0(e).constructor):t.apply(e,n))}function lMe(e,t){if(t&&(kc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uMe(e)}function uMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LB=function(){return!!e})()}function l0(e){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l0(e)}function cMe(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&&xE(e,t)}function xE(e,t){return xE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xE(e,t)}function Hb(e,t,n){return t=RB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RB(e){var t=fMe(e,"string");return kc(t)=="symbol"?t:String(t)}function fMe(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wb=function(e){cMe(t,e);function t(){return oMe(this,t),sMe(this,t,arguments)}return aMe(t,[{key:"getTickValueCoord",value:function(n){var r=n.coordinate,i=this.props,o=i.angle,a=i.cx,s=i.cy;return St(a,s,r,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,r;switch(n){case"left":r="end";break;case"right":r="start";break;default:r="middle";break}return r}},{key:"getViewBox",value:function(){var n=this.props,r=n.cx,i=n.cy,o=n.angle,a=n.ticks,s=YRe(a,function(u){return u.coordinate||0}),l=tMe(a,function(u){return u.coordinate||0});return{cx:r,cy:i,startAngle:o,endAngle:o,innerRadius:l.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,r=n.cx,i=n.cy,o=n.angle,a=n.ticks,s=n.axisLine,l=h6(n,nMe),u=a.reduce(function(v,g){return[Math.min(v[0],g.coordinate),Math.max(v[1],g.coordinate)]},[1/0,-1/0]),f=St(r,i,u[0],o),d=St(r,i,u[1],o),p=Ns(Ns(Ns({},$e(l,!1)),{},{fill:"none"},$e(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return V.createElement("line",qd({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,r=this.props,i=r.ticks,o=r.tick,a=r.angle,s=r.tickFormatter,l=r.stroke,u=h6(r,rMe),f=this.getTickTextAnchor(),d=$e(u,!1),p=$e(o,!1),v=i.map(function(g,y){var w=n.getTickValueCoord(g),b=Ns(Ns(Ns(Ns({textAnchor:f,transform:"rotate(".concat(90-a,", ").concat(w.x,", ").concat(w.y,")")},d),{},{stroke:"none",fill:l},p),{},{index:y},w),{},{payload:g});return V.createElement(Xe,qd({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(g.coordinate)},ls(n.props,g,y)),t.renderTickItem(o,b,s?s(g.value,y):g.value))});return V.createElement(Xe,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,r=n.ticks,i=n.axisLine,o=n.tick;return!r||!r.length?null:V.createElement(Xe,{className:"recharts-polar-radius-axis"},i&&this.renderAxisLine(),o&&this.renderTicks(),Tn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,r,i){var o;return V.isValidElement(n)?o=V.cloneElement(n,r):Ge(n)?o=n(r):o=V.createElement(Cl,qd({},r,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}]),t}(R.PureComponent);Hb(Wb,"displayName","PolarRadiusAxis");Hb(Wb,"axisType","radiusAxis");Hb(Wb,"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 Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function Zs(){return Zs=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},Zs.apply(this,arguments)}function m6(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 Ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m6(Object(n),!0).forEach(function(r){Gb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v6(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,IB(r.key),r)}}function hMe(e,t,n){return t&&v6(e.prototype,t),n&&v6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pMe(e,t,n){return t=u0(t),mMe(e,MB()?Reflect.construct(t,n||[],u0(e).constructor):t.apply(e,n))}function mMe(e,t){if(t&&(Nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vMe(e)}function vMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MB=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u0(e)}function gMe(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&&wE(e,t)}function wE(e,t){return wE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wE(e,t)}function Gb(e,t,n){return t=IB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IB(e){var t=yMe(e,"string");return Nc(t)=="symbol"?t:String(t)}function yMe(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bMe=Math.PI/180,g6=1e-5,qb=function(e){gMe(t,e);function t(){return dMe(this,t),pMe(this,t,arguments)}return hMe(t,[{key:"getTickLineCoord",value:function(n){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.orientation,l=r.tickSize,u=l||8,f=St(i,o,a,n.coordinate),d=St(i,o,a+(s==="inner"?-1:1)*u,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var r=this.props.orientation,i=Math.cos(-n.coordinate*bMe),o;return i>g6?o=r==="outer"?"start":"end":i<-g6?o=r==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,r=n.cx,i=n.cy,o=n.radius,a=n.axisLine,s=n.axisLineType,l=Ls(Ls({},$e(this.props,!1)),{},{fill:"none"},$e(a,!1));if(s==="circle")return V.createElement(nm,Zs({className:"recharts-polar-angle-axis-line"},l,{cx:r,cy:i,r:o}));var u=this.props.ticks,f=u.map(function(d){return St(r,i,o,d.coordinate)});return V.createElement(RRe,Zs({className:"recharts-polar-angle-axis-line"},l,{points:f}))}},{key:"renderTicks",value:function(){var n=this,r=this.props,i=r.ticks,o=r.tick,a=r.tickLine,s=r.tickFormatter,l=r.stroke,u=$e(this.props,!1),f=$e(o,!1),d=Ls(Ls({},u),{},{fill:"none"},$e(a,!1)),p=i.map(function(v,g){var y=n.getTickLineCoord(v),w=n.getTickTextAnchor(v),b=Ls(Ls(Ls({textAnchor:w},u),{},{stroke:"none",fill:l},f),{},{index:g,payload:v,x:y.x2,y:y.y2});return V.createElement(Xe,Zs({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(v.coordinate)},ls(n.props,v,g)),a&&V.createElement("line",Zs({className:"recharts-polar-angle-axis-tick-line"},d,y)),o&&t.renderTickItem(o,b,s?s(v.value,g):v.value))});return V.createElement(Xe,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,r=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!r||!r.length?null:V.createElement(Xe,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,r,i){var o;return V.isValidElement(n)?o=V.cloneElement(n,r):Ge(n)?o=n(r):o=V.createElement(Cl,Zs({},r,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}]),t}(R.PureComponent);Gb(qb,"displayName","PolarAngleAxis");Gb(qb,"axisType","angleAxis");Gb(qb,"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 _Me=HU,xMe=_Me(Object.getPrototypeOf,Object),wMe=xMe,OMe=ca,SMe=wMe,EMe=fa,jMe="[object Object]",TMe=Function.prototype,CMe=Object.prototype,DB=TMe.toString,PMe=CMe.hasOwnProperty,AMe=DB.call(Object);function kMe(e){if(!EMe(e)||OMe(e)!=jMe)return!1;var t=SMe(e);if(t===null)return!0;var n=PMe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&DB.call(n)==AMe}var NMe=kMe;const LMe=gt(NMe);var RMe=ca,MMe=fa,IMe="[object Boolean]";function DMe(e){return e===!0||e===!1||MMe(e)&&RMe(e)==IMe}var $Me=DMe;const FMe=gt($Me);function cp(e){"@babel/helpers - typeof";return cp=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},cp(e)}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 UMe(e,t){return HMe(e)||VMe(e,t)||zMe(e,t)||BMe()}function BMe(){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 zMe(e,t){if(e){if(typeof e=="string")return y6(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 y6(e,t)}}function y6(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 VMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function HMe(e){if(Array.isArray(e))return e}function b6(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 _6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b6(Object(n),!0).forEach(function(r){WMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WMe(e,t,n){return t=GMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GMe(e){var t=qMe(e,"string");return cp(t)=="symbol"?t:String(t)}function qMe(e,t){if(cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x6=function(e,t,n,r,i){var o=n-r,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-o/2,",").concat(t+i),a+="L ".concat(e+n-o/2-r,",").concat(t+i),a+="L ".concat(e,",").concat(t," Z"),a},ZMe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YMe=function(e){var t=_6(_6({},ZMe),e),n=R.useRef(),r=R.useState(-1),i=UMe(r,2),o=i[0],a=i[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&a(x)}catch{}},[]);var s=t.x,l=t.y,u=t.upperWidth,f=t.lowerWidth,d=t.height,p=t.className,v=t.animationEasing,g=t.animationDuration,y=t.animationBegin,w=t.isUpdateAnimationActive;if(s!==+s||l!==+l||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var b=De("recharts-trapezoid",p);return w?V.createElement(bi,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:l},to:{upperWidth:u,lowerWidth:f,height:d,x:s,y:l},duration:g,animationEasing:v,isActive:w},function(x){var _=x.upperWidth,S=x.lowerWidth,j=x.height,E=x.x,P=x.y;return V.createElement(bi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:g,easing:v},V.createElement("path",c0({},$e(t,!0),{className:b,d:x6(E,P,_,S,j),ref:n})))}):V.createElement("g",null,V.createElement("path",c0({},$e(t,!0),{className:b,d:x6(s,l,u,f,d)})))},KMe=["option","shapeType","propTransformer","activeClassName","isActive"];function fp(e){"@babel/helpers - typeof";return fp=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},fp(e)}function XMe(e,t){if(e==null)return{};var n=QMe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[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={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(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 f0(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){JMe(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 JMe(e,t,n){return t=e4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e4e(e){var t=t4e(e,"string");return fp(t)=="symbol"?t:String(t)}function t4e(e,t){if(fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n4e(e,t){return f0(f0({},t),e)}function r4e(e,t){return e==="symbols"}function O6(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return V.createElement(mP,n);case"trapezoid":return V.createElement(YMe,n);case"sector":return V.createElement(OB,n);case"symbols":if(r4e(t))return V.createElement(Ab,n);break;default:return null}}function i4e(e){return R.isValidElement(e)?e.props:e}function d0(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?n4e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=XMe(e,KMe),u;if(R.isValidElement(t))u=R.cloneElement(t,f0(f0({},l),i4e(t)));else if(Ge(t))u=t(l);else if(LMe(t)&&!FMe(t)){var f=i(t,l);u=V.createElement(O6,{shapeType:n,elementProps:f})}else{var d=l;u=V.createElement(O6,{shapeType:n,elementProps:d})}return s?V.createElement(Xe,{className:a},u):u}function Zb(e,t){return t!=null&&"trapezoids"in e.props}function Yb(e,t){return t!=null&&"sectors"in e.props}function dp(e,t){return t!=null&&"points"in e.props}function o4e(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,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function a4e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function s4e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function l4e(e,t){var n;return Zb(e,t)?n=o4e:Yb(e,t)?n=a4e:dp(e,t)&&(n=s4e),n}function u4e(e,t){var n;return Zb(e,t)?n="trapezoids":Yb(e,t)?n="sectors":dp(e,t)&&(n="points"),n}function c4e(e,t){if(Zb(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(Yb(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 dp(e,t)?t.payload:{}}function f4e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=u4e(n,t),o=c4e(n,t),a=r.filter(function(l,u){var f=us(o,l),d=n.props[i].filter(function(g){var y=l4e(n,t);return y(g,t)}),p=n.props[i].indexOf(d[d.length-1]),v=u===p;return f&&v}),s=r.indexOf(a[a.length-1]);return s}var ag;function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$u.apply(this,arguments)}function S6(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 Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(n),!0).forEach(function(r){ai(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E6(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,FB(r.key),r)}}function h4e(e,t,n){return t&&E6(e.prototype,t),n&&E6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p4e(e,t,n){return t=h0(t),m4e(e,$B()?Reflect.construct(t,n||[],h0(e).constructor):t.apply(e,n))}function m4e(e,t){if(t&&(Lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gu(e)}function $B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($B=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h0(e)}function gu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v4e(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&&OE(e,t)}function OE(e,t){return OE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},OE(e,t)}function ai(e,t,n){return t=FB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FB(e){var t=g4e(e,"string");return Lc(t)=="symbol"?t:String(t)}function g4e(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wo=function(e){v4e(t,e);function t(n){var r;return d4e(this,t),r=p4e(this,t,[n]),ai(gu(r),"pieRef",null),ai(gu(r),"sectorRefs",[]),ai(gu(r),"id",_s("recharts-pie-")),ai(gu(r),"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ge(i)&&i()}),ai(gu(r),"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ge(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return h4e(t,[{key:"isActiveIndex",value:function(n){var r=this.props.activeIndex;return Array.isArray(r)?r.indexOf(n)!==-1:n===r}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,a=i.labelLine,s=i.dataKey,l=i.valueKey,u=$e(this.props,!1),f=$e(o,!1),d=$e(a,!1),p=o&&o.offsetRadius||20,v=n.map(function(g,y){var w=(g.startAngle+g.endAngle)/2,b=St(g.cx,g.cy,g.outerRadius+p,w),x=Rt(Rt(Rt(Rt({},u),g),{},{stroke:"none"},f),{},{index:y,textAnchor:t.getTextAnchor(b.x,g.cx)},b),_=Rt(Rt(Rt(Rt({},u),g),{},{fill:"none",stroke:g.fill},d),{},{index:y,points:[St(g.cx,g.cy,g.outerRadius,w),b],key:"line"}),S=s;return ze(s)&&ze(l)?S="value":ze(s)&&(S=l),V.createElement(Xe,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(y)},a&&t.renderLabelLineItem(a,_),t.renderLabelItem(o,x,kt(g,S)))});return V.createElement(Xe,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(n){var r=this,i=this.props,o=i.activeShape,a=i.blendStroke,s=i.inactiveShape;return n.map(function(l,u){if((l==null?void 0:l.startAngle)===0&&(l==null?void 0:l.endAngle)===0&&n.length!==1)return null;var f=r.isActiveIndex(u),d=s&&r.hasActiveIndex()?s:null,p=f?o:d,v=Rt(Rt({},l),{},{stroke:a?l.fill:l.stroke,tabIndex:-1});return V.createElement(Xe,$u({ref:function(g){g&&!r.sectorRefs.includes(g)&&r.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},ls(r.props,l,u),{key:"sector-".concat(l==null?void 0:l.startAngle,"-").concat(l==null?void 0:l.endAngle,"-").concat(l.midAngle,"-").concat(u)}),V.createElement(d0,$u({option:p,isActive:f,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,r=this.props,i=r.sectors,o=r.isAnimationActive,a=r.animationBegin,s=r.animationDuration,l=r.animationEasing,u=r.animationId,f=this.state,d=f.prevSectors,p=f.prevIsAnimationActive;return V.createElement(bi,{begin:a,duration:s,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var g=v.t,y=[],w=i&&i[0],b=w.startAngle;return i.forEach(function(x,_){var S=d&&d[_],j=_>0?$r(x,"paddingAngle",0):0;if(S){var E=zt(S.endAngle-S.startAngle,x.endAngle-x.startAngle),P=Rt(Rt({},x),{},{startAngle:b+j,endAngle:b+E(g)+j});y.push(P),b=P.endAngle}else{var N=x.endAngle,I=x.startAngle,M=zt(0,N-I),D=M(g),z=Rt(Rt({},x),{},{startAngle:b+j,endAngle:b+D+j});y.push(z),b=z.endAngle}}),V.createElement(Xe,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var r=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++r.state.sectorToFocus%r.sectorRefs.length;r.sectorRefs[o].focus(),r.setState({sectorToFocus:o});break}case"ArrowRight":{var a=--r.state.sectorToFocus<0?r.sectorRefs.length-1:r.state.sectorToFocus%r.sectorRefs.length;r.sectorRefs[a].focus(),r.setState({sectorToFocus:a});break}case"Escape":{r.sectorRefs[r.state.sectorToFocus].blur(),r.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,r=n.sectors,i=n.isAnimationActive,o=this.state.prevSectors;return i&&r&&r.length&&(!o||!us(o,r))?this.renderSectorsWithAnimation():this.renderSectorsStatically(r)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,r=this.props,i=r.hide,o=r.sectors,a=r.className,s=r.label,l=r.cx,u=r.cy,f=r.innerRadius,d=r.outerRadius,p=r.isAnimationActive,v=this.state.isAnimationFinished;if(i||!o||!o.length||!Ee(l)||!Ee(u)||!Ee(f)||!Ee(d))return null;var g=De("recharts-pie",a);return V.createElement(Xe,{tabIndex:this.props.rootTabIndex,className:g,ref:function(y){n.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),Tn.renderCallByParent(this.props,null,!1),(!p||v)&&Ui.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return r.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:r.curSectors,isAnimationFinished:!0}:n.sectors!==r.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,r){return n>r?"start":n<r?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,r){return V.isValidElement(n)?V.cloneElement(n,r):Ge(n)?n(r):V.createElement(Qa,$u({},r,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(n,r,i){if(V.isValidElement(n))return V.cloneElement(n,r);var o=i;return Ge(n)&&(o=n(r),V.isValidElement(o))?o:V.createElement(Cl,$u({},r,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}}]),t}(R.PureComponent);ag=wo;ai(wo,"displayName","Pie");ai(wo,"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:!hi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ai(wo,"parseDeltaAngle",function(e,t){var n=ar(t-e),r=Math.min(Math.abs(t-e),360);return n*r});ai(wo,"getRealPieData",function(e){var t=e.props,n=t.data,r=t.children,i=$e(e.props,!1),o=fr(r,Ka);return n&&n.length?n.map(function(a,s){return Rt(Rt(Rt({payload:a},i),a),o&&o[s]&&o[s].props)}):o&&o.length?o.map(function(a){return Rt(Rt({},i),a.props)}):[]});ai(wo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=_B(i,o),s=r+gr(e.props.cx,i,i/2),l=n+gr(e.props.cy,o,o/2),u=gr(e.props.innerRadius,a,0),f=gr(e.props.outerRadius,a,a*.8),d=e.props.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:d}});ai(wo,"getComposedData",function(e){var t=e.item,n=e.offset,r=ag.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,s=i.endAngle,l=i.paddingAngle,u=i.dataKey,f=i.nameKey,d=i.valueKey,p=i.tooltipType,v=Math.abs(t.props.minAngle),g=ag.parseCoordinateOfPie(t,n),y=ag.parseDeltaAngle(a,s),w=Math.abs(y),b=u;ze(u)&&ze(d)?(Fi(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),b="value"):ze(u)&&(Fi(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),b=d);var x=r.filter(function(N){return kt(N,b,0)!==0}).length,_=(w>=360?x:x-1)*l,S=w-x*v-_,j=r.reduce(function(N,I){var M=kt(I,b,0);return N+(Ee(M)?M:0)},0),E;if(j>0){var P;E=r.map(function(N,I){var M=kt(N,b,0),D=kt(N,f,I),z=(Ee(M)?M:0)/j,q;I?q=P.endAngle+ar(y)*l*(M!==0?1:0):q=a;var W=q+ar(y)*((M!==0?v:0)+z*S),X=(q+W)/2,J=(g.innerRadius+g.outerRadius)/2,te=[{name:D,value:M,payload:N,dataKey:b,type:p}],K=St(g.cx,g.cy,J,X);return P=Rt(Rt(Rt({percent:z,cornerRadius:o,name:D,tooltipPayload:te,midAngle:X,middleRadius:J,tooltipPosition:K},N),g),{},{value:kt(N,b),startAngle:q,endAngle:W,payload:N,paddingAngle:ar(y)*l}),P})}return Rt(Rt({},g),{},{sectors:E,data:r})});var y4e=Math.ceil,b4e=Math.max;function _4e(e,t,n,r){for(var i=-1,o=b4e(y4e((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var x4e=_4e,w4e=c9,j6=1/0,O4e=17976931348623157e292;function S4e(e){if(!e)return e===0?e:0;if(e=w4e(e),e===j6||e===-j6){var t=e<0?-1:1;return t*O4e}return e===e?e:0}var UB=S4e,E4e=x4e,j4e=Lb,ow=UB;function T4e(e){return function(t,n,r){return r&&typeof r!="number"&&j4e(t,n,r)&&(n=r=void 0),t=ow(t),n===void 0?(n=t,t=0):n=ow(n),r=r===void 0?t<n?1:-1:ow(r),E4e(t,n,r,e)}}var C4e=T4e,P4e=C4e,A4e=P4e(),k4e=A4e;const p0=gt(k4e);function hp(e){"@babel/helpers - typeof";return hp=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},hp(e)}function T6(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 C6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T6(Object(n),!0).forEach(function(r){BB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BB(e,t,n){return t=N4e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N4e(e){var t=L4e(e,"string");return hp(t)=="symbol"?t:String(t)}function L4e(e,t){if(hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R4e=["Webkit","Moz","O","ms"],M4e=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(i){return i.toUpperCase()}),r=R4e.reduce(function(i,o){return C6(C6({},i),{},BB({},o+n,t))},{});return r[e]=t,r};function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}function m0(){return m0=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},m0.apply(this,arguments)}function P6(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 aw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(n),!0).forEach(function(r){kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A6(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,VB(r.key),r)}}function D4e(e,t,n){return t&&A6(e.prototype,t),n&&A6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $4e(e,t,n){return t=v0(t),F4e(e,zB()?Reflect.construct(t,n||[],v0(e).constructor):t.apply(e,n))}function F4e(e,t){if(t&&(Rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return no(e)}function zB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zB=function(){return!!e})()}function v0(e){return v0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v0(e)}function no(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U4e(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&&SE(e,t)}function SE(e,t){return SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},SE(e,t)}function kr(e,t,n){return t=VB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VB(e){var t=B4e(e,"string");return Rc(t)=="symbol"?t:String(t)}function B4e(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z4e=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=Hd().domain(p0(0,s)).range([i,i+o-a]),u=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:u}},k6=function(e){return e.changedTouches&&!!e.changedTouches.length},Mc=function(e){U4e(t,e);function t(n){var r;return I4e(this,t),r=$4e(this,t,[n]),kr(no(r),"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),kr(no(r),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),kr(no(r),"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),r.detachDragEndListener()}),kr(no(r),"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),kr(no(r),"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),kr(no(r),"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),kr(no(r),"handleSlideDragStart",function(i){var o=k6(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(no(r),"startX"),endX:r.handleTravellerDragStart.bind(no(r),"endX")},r.state={},r}return D4e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var r=n.startX,i=n.endX,o=this.state.scaleValues,a=this.props,s=a.gap,l=a.data,u=l.length-1,f=Math.min(r,i),d=Math.max(r,i),p=t.getIndexInRange(o,f),v=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:v===u?u:v-v%s}}},{key:"getTextOfTick",value:function(n){var r=this.props,i=r.data,o=r.tickFormatter,a=r.dataKey,s=kt(i[n],a,n);return Ge(o)?o(s,n):s}},{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(n){var r=this.state,i=r.slideMoveStartX,o=r.startX,a=r.endX,s=this.props,l=s.x,u=s.width,f=s.travellerWidth,d=s.startIndex,p=s.endIndex,v=s.onChange,g=n.pageX-i;g>0?g=Math.min(g,l+u-f-a,l+u-f-o):g<0&&(g=Math.max(g,l-o,l-a));var y=this.getIndex({startX:o+g,endX:a+g});(y.startIndex!==d||y.endIndex!==p)&&v&&v(y),this.setState({startX:o+g,endX:a+g,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,r){var i=k6(r)?r.changedTouches[0]:r;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var r=this.state,i=r.brushMoveStartX,o=r.movingTravellerId,a=r.endX,s=r.startX,l=this.state[o],u=this.props,f=u.x,d=u.width,p=u.travellerWidth,v=u.onChange,g=u.gap,y=u.data,w={startX:this.state.startX,endX:this.state.endX},b=n.pageX-i;b>0?b=Math.min(b,f+d-p-l):b<0&&(b=Math.max(b,f-l)),w[o]=l+b;var x=this.getIndex(w),_=x.startIndex,S=x.endIndex,j=function(){var E=y.length-1;return o==="startX"&&(a>s?_%g===0:S%g===0)||a<s&&S===E||o==="endX"&&(a>s?S%g===0:_%g===0)||a>s&&S===E};this.setState(kr(kr({},o,l+b),"brushMoveStartX",n.pageX),function(){v&&j()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,r){var i=this,o=this.state,a=o.scaleValues,s=o.startX,l=o.endX,u=this.state[r],f=a.indexOf(u);if(f!==-1){var d=f+n;if(!(d===-1||d>=a.length)){var p=a[d];r==="startX"&&p>=l||r==="endX"&&p<=s||this.setState(kr({},r,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,s=n.fill,l=n.stroke;return V.createElement("rect",{stroke:l,fill:s,x:r,y:i,width:o,height:a})}},{key:"renderPanorama",value:function(){var n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,s=n.data,l=n.children,u=n.padding,f=R.Children.only(l);return f?V.cloneElement(f,{x:r,y:i,width:o,height:a,margin:u,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,r){var i=this,o=this.props,a=o.y,s=o.travellerWidth,l=o.height,u=o.traveller,f=o.ariaLabel,d=o.data,p=o.startIndex,v=o.endIndex,g=Math.max(n,this.props.x),y=aw(aw({},$e(this.props,!1)),{},{x:g,y:a,width:s,height:l}),w=f||"Min value: ".concat(d[p].name,", Max value: ").concat(d[v].name);return V.createElement(Xe,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),i.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(u,y))}},{key:"renderSlide",value:function(n,r){var i=this.props,o=i.y,a=i.height,s=i.stroke,l=i.travellerWidth,u=Math.min(n,r)+l,f=Math.max(Math.abs(r-n)-l,0);return V.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:u,y:o,width:f,height:a})}},{key:"renderText",value:function(){var n=this.props,r=n.startIndex,i=n.endIndex,o=n.y,a=n.height,s=n.travellerWidth,l=n.stroke,u=this.state,f=u.startX,d=u.endX,p=5,v={pointerEvents:"none",fill:l};return V.createElement(Xe,{className:"recharts-brush-texts"},V.createElement(Cl,m0({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:o+a/2},v),this.getTextOfTick(r)),V.createElement(Cl,m0({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:o+a/2},v),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,r=n.data,i=n.className,o=n.children,a=n.x,s=n.y,l=n.width,u=n.height,f=n.alwaysShowText,d=this.state,p=d.startX,v=d.endX,g=d.isTextActive,y=d.isSlideMoving,w=d.isTravellerMoving,b=d.isTravellerFocused;if(!r||!r.length||!Ee(a)||!Ee(s)||!Ee(l)||!Ee(u)||l<=0||u<=0)return null;var x=De("recharts-brush",i),_=V.Children.count(o)===1,S=M4e("userSelect","none");return V.createElement(Xe,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,v),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(v,"endX"),(g||y||w||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var r=n.x,i=n.y,o=n.width,a=n.height,s=n.stroke,l=Math.floor(i+a/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:r,y:i,width:o,height:a,fill:s,stroke:"none"}),V.createElement("line",{x1:r+1,y1:l,x2:r+o-1,y2:l,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:r+1,y1:l+2,x2:r+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,r){var i;return V.isValidElement(n)?i=V.cloneElement(n,r):Ge(n)?i=n(r):i=t.renderDefaultTraveller(r),i}},{key:"getDerivedStateFromProps",value:function(n,r){var i=n.data,o=n.width,a=n.x,s=n.travellerWidth,l=n.updateId,u=n.startIndex,f=n.endIndex;if(i!==r.prevData||l!==r.prevUpdateId)return aw({prevData:i,prevTravellerWidth:s,prevUpdateId:l,prevX:a,prevWidth:o},i&&i.length?z4e({data:i,width:o,x:a,travellerWidth:s,startIndex:u,endIndex:f}):{scale:null,scaleValues:null});if(r.scale&&(o!==r.prevWidth||a!==r.prevX||s!==r.prevTravellerWidth)){r.scale.range([a,a+o-s]);var d=r.scale.domain().map(function(p){return r.scale(p)});return{prevData:i,prevTravellerWidth:s,prevUpdateId:l,prevX:a,prevWidth:o,startX:r.scale(n.startIndex),endX:r.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,r){for(var i=n.length,o=0,a=i-1;a-o>1;){var s=Math.floor((o+a)/2);n[s]>r?a=s:o=s}return r>=n[a]?a:o}}]),t}(R.PureComponent);kr(Mc,"displayName","Brush");kr(Mc,"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 V4e=UC;function H4e(e,t){var n;return V4e(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var W4e=H4e,G4e=IU,q4e=To,Z4e=W4e,Y4e=Cr,K4e=Lb;function X4e(e,t,n){var r=Y4e(e)?G4e:Z4e;return n&&K4e(e,t,n)&&(t=void 0),r(e,q4e(t))}var Q4e=X4e;const J4e=gt(Q4e);var vo=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},N6=o9;function e6e(e,t,n){t=="__proto__"&&N6?N6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var t6e=e6e,n6e=t6e,r6e=r9,i6e=To;function o6e(e,t){var n={};return t=i6e(t),r6e(e,function(r,i,o){n6e(n,i,t(r,i,o))}),n}var a6e=o6e;const s6e=gt(a6e);function l6e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var u6e=l6e,c6e=UC;function f6e(e,t){var n=!0;return c6e(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var d6e=f6e,h6e=u6e,p6e=d6e,m6e=To,v6e=Cr,g6e=Lb;function y6e(e,t,n){var r=v6e(e)?h6e:p6e;return n&&g6e(e,t,n)&&(t=void 0),r(e,m6e(t))}var b6e=y6e;const HB=gt(b6e);var _6e=["x","y"];function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}function EE(){return EE=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},EE.apply(this,arguments)}function L6(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 sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(n),!0).forEach(function(r){x6e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x6e(e,t,n){return t=w6e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w6e(e){var t=O6e(e,"string");return pp(t)=="symbol"?t:String(t)}function O6e(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S6e(e,t){if(e==null)return{};var n=E6e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function j6e(e,t){var n=e.x,r=e.y,i=S6e(e,_6e),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),p=parseInt(d,10);return sd(sd(sd(sd(sd({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function R6(e){return V.createElement(d0,EE({shapeType:"rectangle",propTransformer:j6e,activeClassName:"recharts-active-bar"},e))}var T6e=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,r){if(typeof e=="number")return e;var i=typeof n=="number";return i?e(n,r):(i||Al(!1),t)}},C6e=["value","background"],WB;function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function P6e(e,t){if(e==null)return{};var n=A6e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function g0(){return g0=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},g0.apply(this,arguments)}function M6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M6(Object(n),!0).forEach(function(r){$a(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I6(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,qB(r.key),r)}}function N6e(e,t,n){return t&&I6(e.prototype,t),n&&I6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L6e(e,t,n){return t=y0(t),R6e(e,GB()?Reflect.construct(t,n||[],y0(e).constructor):t.apply(e,n))}function R6e(e,t){if(t&&(Ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yd(e)}function GB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GB=function(){return!!e})()}function y0(e){return y0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y0(e)}function yd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M6e(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&&jE(e,t)}function jE(e,t){return jE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jE(e,t)}function $a(e,t,n){return t=qB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qB(e){var t=I6e(e,"string");return Ic(t)=="symbol"?t:String(t)}function I6e(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ho=function(e){M6e(t,e);function t(){var n;k6e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=L6e(this,t,[].concat(i)),$a(yd(n),"state",{isAnimationFinished:!1}),$a(yd(n),"id",_s("recharts-bar-")),$a(yd(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),$a(yd(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return N6e(t,[{key:"renderRectanglesStatically",value:function(n){var r=this,i=this.props,o=i.shape,a=i.dataKey,s=i.activeIndex,l=i.activeBar,u=$e(this.props,!1);return n&&n.map(function(f,d){var p=d===s,v=p?l:o,g=On(On(On({},u),f),{},{isActive:p,option:v,index:d,dataKey:a,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return V.createElement(Xe,g0({className:"recharts-bar-rectangle"},ls(r.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value)}),V.createElement(R6,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,r=this.props,i=r.data,o=r.layout,a=r.isAnimationActive,s=r.animationBegin,l=r.animationDuration,u=r.animationEasing,f=r.animationId,d=this.state.prevData;return V.createElement(bi,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,g=i.map(function(y,w){var b=d&&d[w];if(b){var x=zt(b.x,y.x),_=zt(b.y,y.y),S=zt(b.width,y.width),j=zt(b.height,y.height);return On(On({},y),{},{x:x(v),y:_(v),width:S(v),height:j(v)})}if(o==="horizontal"){var E=zt(0,y.height),P=E(v);return On(On({},y),{},{y:y.y+y.height-P,height:P})}var N=zt(0,y.width),I=N(v);return On(On({},y),{},{width:I})});return V.createElement(Xe,null,n.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var n=this.props,r=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&r&&r.length&&(!o||!us(o,r))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(r)}},{key:"renderBackground",value:function(){var n=this,r=this.props,i=r.data,o=r.dataKey,a=r.activeIndex,s=$e(this.props.background,!1);return i.map(function(l,u){l.value;var f=l.background,d=P6e(l,C6e);if(!f)return null;var p=On(On(On(On(On({},d),{},{fill:"#eee"},f),s),ls(n.props,l,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,key:"background-bar-".concat(u),className:"recharts-bar-background-rectangle"});return V.createElement(R6,g0({option:n.props.background,isActive:u===a},p))})}},{key:"renderErrorBar",value:function(n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,a=i.xAxis,s=i.yAxis,l=i.layout,u=i.children,f=fr(u,vf);if(!f)return null;var d=l==="vertical"?o[0].height/2:o[0].width/2,p=function(g,y){var w=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:w,errorVal:kt(g,y)}},v={clipPath:n?"url(#clipPath-".concat(r,")"):null};return V.createElement(Xe,v,f.map(function(g){return V.cloneElement(g,{key:"error-bar-".concat(r,"-").concat(g.props.dataKey),data:o,xAxis:a,yAxis:s,layout:l,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,r=n.hide,i=n.data,o=n.className,a=n.xAxis,s=n.yAxis,l=n.left,u=n.top,f=n.width,d=n.height,p=n.isAnimationActive,v=n.background,g=n.id;if(r||!i||!i.length)return null;var y=this.state.isAnimationFinished,w=De("recharts-bar",o),b=a&&a.allowDataOverflow,x=s&&s.allowDataOverflow,_=b||x,S=ze(g)?this.id:g;return V.createElement(Xe,{className:w},b||x?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(S)},V.createElement("rect",{x:b?l:l-f/2,y:x?u:u-d/2,width:b?f:f*2,height:x?d:d*2}))):null,V.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(S,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,S),(!p||y)&&Ui.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:r.curData}:n.data!==r.curData?{curData:n.data}:null}}]),t}(R.PureComponent);WB=Ho;$a(Ho,"displayName","Bar");$a(Ho,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!hi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});$a(Ho,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=N3e(r,n);if(!v)return null;var g=t.layout,y=n.props,w=y.dataKey,b=y.children,x=y.minPointSize,_=g==="horizontal"?a:o,S=u?_.scale.domain():null,j=F3e({numericAxis:_}),E=fr(b,Ka),P=d.map(function(N,I){var M,D,z,q,W,X;u?M=L3e(u[f+I],S):(M=kt(N,w),Array.isArray(M)||(M=[j,M]));var J=T6e(x,WB.defaultProps.minPointSize)(M[1],I);if(g==="horizontal"){var te,K=[a.scale(M[0]),a.scale(M[1])],B=K[0],F=K[1];D=w4({axis:o,ticks:s,bandSize:i,offset:v.offset,entry:N,index:I}),z=(te=F??B)!==null&&te!==void 0?te:void 0,q=v.size;var H=B-F;if(W=Number.isNaN(H)?0:H,X={x:D,y:a.y,width:q,height:a.height},Math.abs(J)>0&&Math.abs(W)<Math.abs(J)){var ne=ar(W||J)*(Math.abs(J)-Math.abs(W));z-=ne,W+=ne}}else{var Y=[o.scale(M[0]),o.scale(M[1])],ee=Y[0],ae=Y[1];if(D=ee,z=w4({axis:a,ticks:l,bandSize:i,offset:v.offset,entry:N,index:I}),q=ae-ee,W=v.size,X={x:o.x,y:z,width:o.width,height:W},Math.abs(J)>0&&Math.abs(q)<Math.abs(J)){var oe=ar(q||J)*(Math.abs(J)-Math.abs(q));q+=oe}}return On(On(On({},N),{},{x:D,y:z,width:q,height:W,value:u?M:M[1],payload:N,background:X},E&&E[I]&&E[I].props),{},{tooltipPayload:[yB(n,N)],tooltipPosition:{x:D+q/2,y:z+W/2}})});return On({data:P,layout:g},p)});function mp(e){"@babel/helpers - typeof";return mp=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},mp(e)}function D6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D6(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,ZB(r.key),r)}}function $6e(e,t,n){return t&&D6(e.prototype,t),n&&D6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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 ki(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){Kb(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 Kb(e,t,n){return t=ZB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZB(e){var t=F6e(e,"string");return mp(t)=="symbol"?t:String(t)}function F6e(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YB=function(e,t,n,r,i){var o=e.width,a=e.height,s=e.layout,l=e.children,u=Object.keys(t),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},d=!!Lr(l,Ho);return u.reduce(function(p,v){var g=t[v],y=g.orientation,w=g.domain,b=g.padding,x=b===void 0?{}:b,_=g.mirror,S=g.reversed,j="".concat(y).concat(_?"Mirror":""),E,P,N,I,M;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var D=w[1]-w[0],z=1/0,q=g.categoricalDomain.sort();q.forEach(function(Y,ee){ee>0&&(z=Math.min((Y||0)-(q[ee-1]||0),z))});var W=z/D,X=g.layout==="vertical"?n.height:n.width;if(g.padding==="gap"&&(E=W*X/2),g.padding==="no-gap"){var J=gr(e.barCategoryGap,W*X),te=W*X/2;E=te-J-(te-J)/X*J}}r==="xAxis"?P=[n.left+(x.left||0)+(E||0),n.left+n.width-(x.right||0)-(E||0)]:r==="yAxis"?P=s==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(E||0),n.top+n.height-(x.bottom||0)-(E||0)]:P=g.range,S&&(P=[P[1],P[0]]);var K=pB(g,i,d),B=K.scale,F=K.realScaleType;B.domain(w).range(P),mB(B);var H=vB(B,ki(ki({},g),{},{realScaleType:F}));r==="xAxis"?(M=y==="top"&&!_||y==="bottom"&&_,N=n.left,I=f[j]-M*g.height):r==="yAxis"&&(M=y==="left"&&!_||y==="right"&&_,N=f[j]-M*g.width,I=n.top);var ne=ki(ki(ki({},g),H),{},{realScaleType:F,x:N,y:I,scale:B,width:r==="xAxis"?n.width:g.width,height:r==="yAxis"?n.height:g.height});return ne.bandSize=t0(ne,H),!g.hide&&r==="xAxis"?f[j]+=(M?-1:1)*ne.height:g.hide||(f[j]+=(M?-1:1)*ne.width),ki(ki({},p),{},Kb({},v,ne))},{})},KB=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},U6e=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return KB({x:t,y:n},{x:r,y:i})},XB=function(){function e(t){D6e(this,e),this.scale=t}return $6e(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(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;if(t!==void 0){if(i)switch(i){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}},{key:"isInRange",value:function(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}],[{key:"create",value:function(t){return new e(t)}}]),e}();Kb(XB,"EPS",1e-4);var vP=function(e){var t=Object.keys(e).reduce(function(n,r){return ki(ki({},n),{},Kb({},r,XB.create(e[r])))},{});return ki(ki({},t),{},{apply:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;return s6e(n,function(a,s){return t[s].apply(a,{bandAware:i,position:o})})},isInRange:function(n){return HB(n,function(r,i){return t[i].isInRange(r)})}})};function B6e(e){return(e%180+180)%180}var z6e=function(e){var t=e.width,n=e.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=B6e(r),o=i*Math.PI/180,a=Math.atan(n/t),s=o>a&&o<Math.PI-a?n/Math.sin(o):t/Math.cos(o);return Math.abs(s)},V6e=To,H6e=Xp,W6e=kb;function G6e(e){return function(t,n,r){var i=Object(t);if(!H6e(t)){var o=V6e(n);t=W6e(t),n=function(s){return o(i[s],s,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var q6e=G6e,Z6e=UB;function Y6e(e){var t=Z6e(e),n=t%1;return t===t?n?t-n:t:0}var K6e=Y6e,X6e=KU,Q6e=To,J6e=K6e,eIe=Math.max;function tIe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:J6e(n);return i<0&&(i=eIe(r+i,0)),X6e(e,Q6e(t),i)}var nIe=tIe,rIe=q6e,iIe=nIe,oIe=rIe(iIe),aIe=oIe;const sIe=gt(aIe);var lIe=Lye(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("")}),gP=R.createContext(void 0),yP=R.createContext(void 0),QB=R.createContext(void 0),JB=R.createContext({}),ez=R.createContext(void 0),tz=R.createContext(0),nz=R.createContext(0),F6=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,o=e.clipPathId,a=e.children,s=e.width,l=e.height,u=lIe(i);return V.createElement(gP.Provider,{value:n},V.createElement(yP.Provider,{value:r},V.createElement(JB.Provider,{value:i},V.createElement(QB.Provider,{value:u},V.createElement(ez.Provider,{value:o},V.createElement(tz.Provider,{value:l},V.createElement(nz.Provider,{value:s},a)))))))},uIe=function(){return R.useContext(ez)},rz=function(e){var t=R.useContext(gP);t==null&&Al(!1);var n=t[e];return n==null&&Al(!1),n},cIe=function(){var e=R.useContext(gP);return Aa(e)},fIe=function(){var e=R.useContext(yP),t=sIe(e,function(n){return HB(n.domain,Number.isFinite)});return t||Aa(e)},iz=function(e){var t=R.useContext(yP);t==null&&Al(!1);var n=t[e];return n==null&&Al(!1),n},dIe=function(){var e=R.useContext(QB);return e},hIe=function(){return R.useContext(JB)},bP=function(){return R.useContext(nz)},_P=function(){return R.useContext(tz)};function vp(e){"@babel/helpers - typeof";return vp=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},vp(e)}function U6(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 B6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U6(Object(n),!0).forEach(function(r){pIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pIe(e,t,n){return t=mIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mIe(e){var t=vIe(e,"string");return vp(t)=="symbol"?t:String(t)}function vIe(e,t){if(vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gIe(e,t){return xIe(e)||_Ie(e,t)||bIe(e,t)||yIe()}function yIe(){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 bIe(e,t){if(e){if(typeof e=="string")return z6(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 z6(e,t)}}function z6(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 _Ie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function xIe(e){if(Array.isArray(e))return e}function TE(){return TE=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},TE.apply(this,arguments)}var wIe=function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ge(e)?n=e(t):n=V.createElement("line",TE({},t,{className:"recharts-reference-line-line"})),n},OIe=function(e,t,n,r,i,o,a,s,l){var u=i.x,f=i.y,d=i.width,p=i.height;if(n){var v=l.y,g=e.y.apply(v,{position:o});if(vo(l,"discard")&&!e.y.isInRange(g))return null;var y=[{x:u+d,y:g},{x:u,y:g}];return s==="left"?y.reverse():y}if(t){var w=l.x,b=e.x.apply(w,{position:o});if(vo(l,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:f+p},{x:b,y:f}];return a==="top"?x.reverse():x}if(r){var _=l.segment,S=_.map(function(j){return e.apply(j,{position:o})});return vo(l,"discard")&&J4e(S,function(j){return!e.isInRange(j)})?null:S}return null};function xP(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,u=uIe(),f=rz(i),d=iz(o),p=dIe();if(!u||!p)return null;Fi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=vP({x:f.scale,y:d.scale}),g=pn(t),y=pn(n),w=r&&r.length===2,b=OIe(v,g,y,w,p,e.position,f.orientation,d.orientation,e);if(!b)return null;var x=gIe(b,2),_=x[0],S=_.x,j=_.y,E=x[1],P=E.x,N=E.y,I=vo(e,"hidden")?"url(#".concat(u,")"):void 0,M=B6(B6({clipPath:I},$e(e,!0)),{},{x1:S,y1:j,x2:P,y2:N});return V.createElement(Xe,{className:De("recharts-reference-line",s)},wIe(a,M),Tn.renderCallByParent(e,U6e({x1:S,y1:j,x2:P,y2:N})))}xP.displayName="ReferenceLine";xP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function gp(e){"@babel/helpers - typeof";return gp=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},gp(e)}function CE(){return CE=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},CE.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 H6(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){SIe(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 SIe(e,t,n){return t=EIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EIe(e){var t=jIe(e,"string");return gp(t)=="symbol"?t:String(t)}function jIe(e,t){if(gp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TIe=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=vP({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return vo(e,"discard")&&!o.isInRange(a)?null:a};function rm(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,o=e.clipPathId,a=pn(t),s=pn(n);if(Fi(i===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!s)return null;var l=TIe(e);if(!l)return null;var u=l.x,f=l.y,d=e.shape,p=e.className,v=vo(e,"hidden")?"url(#".concat(o,")"):void 0,g=H6(H6({clipPath:v},$e(e,!0)),{},{cx:u,cy:f});return V.createElement(Xe,{className:De("recharts-reference-dot",p)},rm.renderDot(d,g),Tn.renderCallByParent(e,{x:u-r,y:f-r,width:2*r,height:2*r}))}rm.displayName="ReferenceDot";rm.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};rm.renderDot=function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ge(e)?n=e(t):n=V.createElement(nm,CE({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};function yp(e){"@babel/helpers - typeof";return yp=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},yp(e)}function PE(){return PE=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},PE.apply(this,arguments)}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 G6(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){CIe(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 CIe(e,t,n){return t=PIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PIe(e){var t=AIe(e,"string");return yp(t)=="symbol"?t:String(t)}function AIe(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kIe=function(e,t,n,r,i){var o=i.x1,a=i.x2,s=i.y1,l=i.y2,u=i.xAxis,f=i.yAxis;if(!u||!f)return null;var d=vP({x:u.scale,y:f.scale}),p={x:e?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},v={x:t?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return vo(i,"discard")&&(!d.isInRange(p)||!d.isInRange(v))?null:KB(p,v)};function im(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,o=e.className,a=e.alwaysShow,s=e.clipPathId;Fi(a===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=pn(t),u=pn(n),f=pn(r),d=pn(i),p=e.shape;if(!l&&!u&&!f&&!d&&!p)return null;var v=kIe(l,u,f,d,e);if(!v&&!p)return null;var g=vo(e,"hidden")?"url(#".concat(s,")"):void 0;return V.createElement(Xe,{className:De("recharts-reference-area",o)},im.renderRect(p,G6(G6({clipPath:g},$e(e,!0)),v)),Tn.renderCallByParent(e,v))}im.displayName="ReferenceArea";im.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};im.renderRect=function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ge(e)?n=e(t):n=V.createElement(mP,PE({},t,{className:"recharts-reference-area-rect"})),n};function oz(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)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function NIe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return z6e(r,n)}function LIe(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function b0(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function RIe(e,t){return oz(e,t+1)}function MIe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,l=0,u=1,f=a,d=function(){var v=r==null?void 0:r[l];if(v===void 0)return{v:oz(r,u)};var g=l,y,w=function(){return y===void 0&&(y=n(v,g)),y},b=v.coordinate,x=l===0||b0(e,b,w,f,s);x||(l=0,f=a,u+=1),x&&(f=b+e*(w()/2+i),l+=u)},p;u<=o.length;)if(p=d(),p)return p.v;return[]}function bp(e){"@babel/helpers - typeof";return bp=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},bp(e)}function q6(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 Wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q6(Object(n),!0).forEach(function(r){IIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IIe(e,t,n){return t=DIe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DIe(e){var t=$Ie(e,"string");return bp(t)=="symbol"?t:String(t)}function $Ie(e,t){if(bp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FIe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,l=t.end,u=function(d){var p=o[d],v,g=function(){return v===void 0&&(v=n(p,d)),v};if(d===a-1){var y=e*(p.coordinate+e*g()/2-l);o[d]=p=Wn(Wn({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else o[d]=p=Wn(Wn({},p),{},{tickCoord:p.coordinate});var w=b0(e,p.tickCoord,g,s,l);w&&(l=p.tickCoord-e*(g()/2+i),o[d]=Wn(Wn({},p),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function UIe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-u);a[s-1]=f=Wn(Wn({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var v=b0(e,f.tickCoord,function(){return d},l,u);v&&(u=f.tickCoord-e*(d/2+i),a[s-1]=Wn(Wn({},f),{},{isShow:!0}))}for(var g=o?s-1:s,y=function(b){var x=a[b],_,S=function(){return _===void 0&&(_=n(x,b)),_};if(b===0){var j=e*(x.coordinate-e*S()/2-l);a[b]=x=Wn(Wn({},x),{},{tickCoord:j<0?x.coordinate-j*e:x.coordinate})}else a[b]=x=Wn(Wn({},x),{},{tickCoord:x.coordinate});var E=b0(e,x.tickCoord,S,l,u);E&&(l=x.tickCoord+e*(S()/2+i),a[b]=Wn(Wn({},x),{},{isShow:!0}))},w=0;w<g;w++)y(w);return a}function wP(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Ee(l)||hi.isSsr)return RIe(i,typeof l=="number"&&Ee(l)?l:0);var p=[],v=s==="top"||s==="bottom"?"width":"height",g=f&&v==="width"?Vd(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(x,_){var S=Ge(u)?u(x.value,_):x.value;return v==="width"?NIe(Vd(S,{fontSize:t,letterSpacing:n}),g,d):Vd(S,{fontSize:t,letterSpacing:n})[v]},w=i.length>=2?ar(i[1].coordinate-i[0].coordinate):1,b=LIe(o,w,v);return l==="equidistantPreserveStart"?MIe(w,b,y,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=UIe(w,b,y,i,a,l==="preserveStartEnd"):p=FIe(w,b,y,i,a),p.filter(function(x){return x.isShow}))}var BIe=["viewBox"],zIe=["viewBox"],VIe=["ticks"];function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Fu(){return Fu=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},Fu.apply(this,arguments)}function Z6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z6(Object(n),!0).forEach(function(r){OP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sw(e,t){if(e==null)return{};var n=HIe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HIe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function WIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sz(r.key),r)}}function GIe(e,t,n){return t&&Y6(e.prototype,t),n&&Y6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qIe(e,t,n){return t=_0(t),ZIe(e,az()?Reflect.construct(t,n||[],_0(e).constructor):t.apply(e,n))}function ZIe(e,t){if(t&&(Dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YIe(e)}function YIe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function az(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(az=function(){return!!e})()}function _0(e){return _0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_0(e)}function KIe(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&&AE(e,t)}function AE(e,t){return AE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},AE(e,t)}function OP(e,t,n){return t=sz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sz(e){var t=XIe(e,"string");return Dc(t)=="symbol"?t:String(t)}function XIe(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yf=function(e){KIe(t,e);function t(n){var r;return WIe(this,t),r=qIe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return GIe(t,[{key:"shouldComponentUpdate",value:function(n,r){var i=n.viewBox,o=sw(n,BIe),a=this.props,s=a.viewBox,l=sw(a,zIe);return!Yu(i,s)||!Yu(o,l)||!Yu(r,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var r=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];r&&this.setState({fontSize:window.getComputedStyle(r).fontSize,letterSpacing:window.getComputedStyle(r).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.orientation,u=r.tickSize,f=r.mirror,d=r.tickMargin,p,v,g,y,w,b,x=f?-1:1,_=n.tickSize||u,S=Ee(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=v=n.coordinate,y=o+ +!f*s,g=y-x*_,b=g-x*d,w=S;break;case"left":g=y=n.coordinate,v=i+ +!f*a,p=v-x*_,w=p-x*d,b=S;break;case"right":g=y=n.coordinate,v=i+ +f*a,p=v+x*_,w=p+x*d,b=S;break;default:p=v=n.coordinate,y=o+ +f*s,g=y+x*_,b=g+x*d,w=S;break}return{line:{x1:p,y1:g,x2:v,y2:y},tick:{x:w,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,r=n.orientation,i=n.mirror,o;switch(r){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,r=n.orientation,i=n.mirror,o="end";switch(r){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,s=n.orientation,l=n.mirror,u=n.axisLine,f=tr(tr(tr({},$e(this.props,!1)),$e(u,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!l||s==="bottom"&&l);f=tr(tr({},f),{},{x1:r,y1:i+d*a,x2:r+o,y2:i+d*a})}else{var p=+(s==="left"&&!l||s==="right"&&l);f=tr(tr({},f),{},{x1:r+p*o,y1:i,x2:r+p*o,y2:i+a})}return V.createElement("line",Fu({},f,{className:De("recharts-cartesian-axis-line",$r(u,"className"))}))}},{key:"renderTicks",value:function(n,r,i){var o=this,a=this.props,s=a.tickLine,l=a.stroke,u=a.tick,f=a.tickFormatter,d=a.unit,p=wP(tr(tr({},this.props),{},{ticks:n}),r,i),v=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),y=$e(this.props,!1),w=$e(u,!1),b=tr(tr({},y),{},{fill:"none"},$e(s,!1)),x=p.map(function(_,S){var j=o.getTickLineCoord(_),E=j.line,P=j.tick,N=tr(tr(tr(tr({textAnchor:v,verticalAnchor:g},y),{},{stroke:"none",fill:l},w),P),{},{index:S,payload:_,visibleTicksCount:p.length,tickFormatter:f});return V.createElement(Xe,Fu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},ls(o.props,_,S)),s&&V.createElement("line",Fu({},b,E,{className:De("recharts-cartesian-axis-tick-line",$r(s,"className"))})),u&&t.renderTickItem(u,N,"".concat(Ge(f)?f(_.value,S):_.value).concat(d||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,r=this.props,i=r.axisLine,o=r.width,a=r.height,s=r.ticksGenerator,l=r.className,u=r.hide;if(u)return null;var f=this.props,d=f.ticks,p=sw(f,VIe),v=d;return Ge(s)&&(v=d&&d.length>0?s(this.props):s(p)),o<=0||a<=0||!v||!v.length?null:V.createElement(Xe,{className:De("recharts-cartesian-axis",l),ref:function(g){n.layerReference=g}},i&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Tn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,r,i){var o;return V.isValidElement(n)?o=V.cloneElement(n,r):Ge(n)?o=n(r):o=V.createElement(Cl,Fu({},r,{className:"recharts-cartesian-axis-tick-value"}),i),o}}]),t}(R.Component);OP(yf,"displayName","CartesianAxis");OP(yf,"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 QIe=["x1","y1","x2","y2","key"],JIe=["offset"];function kl(e){"@babel/helpers - typeof";return kl=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},kl(e)}function K6(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?K6(Object(n),!0).forEach(function(r){e5e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e5e(e,t,n){return t=t5e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t5e(e){var t=n5e(e,"string");return kl(t)=="symbol"?t:String(t)}function n5e(e,t){if(kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function il(){return il=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},il.apply(this,arguments)}function X6(e,t){if(e==null)return{};var n=r5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var i5e=function(e){var t=e.fill;if(!t||t==="none")return null;var n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height;return V.createElement("rect",{x:r,y:i,width:o,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function lz(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ge(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=X6(t,QIe),u=$e(l,!1);u.offset;var f=X6(u,JIe);n=V.createElement("line",il({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function o5e(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Zn(Zn({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return lz(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function a5e(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Zn(Zn({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return lz(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function s5e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(p){return Math.round(p+i-i)}).sort(function(p,v){return p-v});i!==f[0]&&f.unshift(0);var d=f.map(function(p,v){var g=!f[v+1],y=g?i+a-p:f[v+1]-p;if(y<=0)return null;var w=v%t.length;return V.createElement("rect",{key:"react-".concat(v),y:p,x:r,height:y,width:o,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function l5e(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(p){return Math.round(p+o-o)}).sort(function(p,v){return p-v});o!==f[0]&&f.unshift(0);var d=f.map(function(p,v){var g=!f[v+1],y=g?o+s-p:f[v+1]-p;if(y<=0)return null;var w=v%r.length;return V.createElement("rect",{key:"react-".concat(v),x:p,y:a,width:y,height:l,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var u5e=function(e,t){var n=e.xAxis,r=e.width,i=e.height,o=e.offset;return hB(wP(Zn(Zn(Zn({},yf.defaultProps),n),{},{ticks:Uo(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},c5e=function(e,t){var n=e.yAxis,r=e.width,i=e.height,o=e.offset;return hB(wP(Zn(Zn(Zn({},yf.defaultProps),n),{},{ticks:Uo(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},fu={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function SP(e){var t,n,r,i,o,a,s=bP(),l=_P(),u=hIe(),f=Zn(Zn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:fu.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:fu.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:fu.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:fu.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:fu.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:fu.verticalFill,x:Ee(e.x)?e.x:u.left,y:Ee(e.y)?e.y:u.top,width:Ee(e.width)?e.width:u.width,height:Ee(e.height)?e.height:u.height}),d=f.x,p=f.y,v=f.width,g=f.height,y=f.syncWithTicks,w=f.horizontalValues,b=f.verticalValues,x=cIe(),_=fIe();if(!Ee(v)||v<=0||!Ee(g)||g<=0||!Ee(d)||d!==+d||!Ee(p)||p!==+p)return null;var S=f.verticalCoordinatesGenerator||u5e,j=f.horizontalCoordinatesGenerator||c5e,E=f.horizontalPoints,P=f.verticalPoints;if((!E||!E.length)&&Ge(j)){var N=w&&w.length,I=j({yAxis:_?Zn(Zn({},_),{},{ticks:N?w:_.ticks}):void 0,width:s,height:l,offset:u},N?!0:y);Fi(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(kl(I),"]")),Array.isArray(I)&&(E=I)}if((!P||!P.length)&&Ge(S)){var M=b&&b.length,D=S({xAxis:x?Zn(Zn({},x),{},{ticks:M?b:x.ticks}):void 0,width:s,height:l,offset:u},M?!0:y);Fi(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(kl(D),"]")),Array.isArray(D)&&(P=D)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(i5e,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height}),V.createElement(o5e,il({},f,{offset:u,horizontalPoints:E,xAxis:x,yAxis:_})),V.createElement(a5e,il({},f,{offset:u,verticalPoints:P,xAxis:x,yAxis:_})),V.createElement(s5e,il({},f,{horizontalPoints:E})),V.createElement(l5e,il({},f,{verticalPoints:P})))}SP.displayName="CartesianGrid";var f5e=["type","layout","connectNulls","ref"];function $c(e){"@babel/helpers - typeof";return $c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$c(e)}function d5e(e,t){if(e==null)return{};var n=h5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Zd(){return Zd=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},Zd.apply(this,arguments)}function Q6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q6(Object(n),!0).forEach(function(r){Ni(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function du(e){return g5e(e)||v5e(e)||m5e(e)||p5e()}function p5e(){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 m5e(e,t){if(e){if(typeof e=="string")return kE(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 kE(e,t)}}function v5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g5e(e){if(Array.isArray(e))return kE(e)}function kE(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 y5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cz(r.key),r)}}function b5e(e,t,n){return t&&J6(e.prototype,t),n&&J6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _5e(e,t,n){return t=x0(t),x5e(e,uz()?Reflect.construct(t,n||[],x0(e).constructor):t.apply(e,n))}function x5e(e,t){if(t&&($c(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _a(e)}function uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uz=function(){return!!e})()}function x0(e){return x0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x0(e)}function _a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w5e(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&&NE(e,t)}function NE(e,t){return NE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},NE(e,t)}function Ni(e,t,n){return t=cz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cz(e){var t=O5e(e,"string");return $c(t)=="symbol"?t:String(t)}function O5e(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bf=function(e){w5e(t,e);function t(){var n;y5e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=_5e(this,t,[].concat(i)),Ni(_a(n),"state",{isAnimationFinished:!0,totalLength:0}),Ni(_a(n),"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Ni(_a(n),"getStrokeDasharray",function(a,s,l){var u=l.reduce(function(b,x){return b+x});if(!u)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/u),d=a%u,p=s-a,v=[],g=0,y=0;g<l.length;y+=l[g],++g)if(y+l[g]>d){v=[].concat(du(l.slice(0,g)),[d-y]);break}var w=v.length%2===0?[0,p]:[p];return[].concat(du(t.repeat(l,f)),du(v),w).map(function(b){return"".concat(b,"px")}).join(", ")}),Ni(_a(n),"id",_s("recharts-line-")),Ni(_a(n),"pathRef",function(a){n.mainCurve=a}),Ni(_a(n),"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ni(_a(n),"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return b5e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,a=i.xAxis,s=i.yAxis,l=i.layout,u=i.children,f=fr(u,vf);if(!f)return null;var d=function(v,g){return{x:v.x,y:v.y,value:v.value,errorVal:kt(v.payload,g)}},p={clipPath:n?"url(#clipPath-".concat(r,")"):null};return V.createElement(Xe,p,f.map(function(v){return V.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:o,xAxis:a,yAxis:s,layout:l,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,r,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var a=this.props,s=a.dot,l=a.points,u=a.dataKey,f=$e(this.props,!1),d=$e(s,!0),p=l.map(function(g,y){var w=Ar(Ar(Ar({key:"dot-".concat(y),r:3},f),d),{},{value:g.value,dataKey:u,cx:g.x,cy:g.y,index:y,payload:g.payload});return t.renderDotItem(s,w)}),v={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(i,")"):null};return V.createElement(Xe,Zd({className:"recharts-line-dots",key:"dots"},v),p)}},{key:"renderCurveStatically",value:function(n,r,i,o){var a=this.props,s=a.type,l=a.layout,u=a.connectNulls;a.ref;var f=d5e(a,f5e),d=Ar(Ar(Ar({},$e(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:s,layout:l,connectNulls:u});return V.createElement(Qa,Zd({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,r){var i=this,o=this.props,a=o.points,s=o.strokeDasharray,l=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,d=o.animationEasing,p=o.animationId,v=o.animateNewValues,g=o.width,y=o.height,w=this.state,b=w.prevPoints,x=w.totalLength;return V.createElement(bi,{begin:u,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var S=_.t;if(b){var j=b.length/a.length,E=a.map(function(D,z){var q=Math.floor(z*j);if(b[q]){var W=b[q],X=zt(W.x,D.x),J=zt(W.y,D.y);return Ar(Ar({},D),{},{x:X(S),y:J(S)})}if(v){var te=zt(g*2,D.x),K=zt(y/2,D.y);return Ar(Ar({},D),{},{x:te(S),y:K(S)})}return Ar(Ar({},D),{},{x:D.x,y:D.y})});return i.renderCurveStatically(E,n,r)}var P=zt(0,x),N=P(S),I;if(s){var M="".concat(s).split(/[,\s]+/gim).map(function(D){return parseFloat(D)});I=i.getStrokeDasharray(N,x,M)}else I=i.generateSimpleStrokeDasharray(x,N);return i.renderCurveStatically(a,n,r,{strokeDasharray:I})})}},{key:"renderCurve",value:function(n,r){var i=this.props,o=i.points,a=i.isAnimationActive,s=this.state,l=s.prevPoints,u=s.totalLength;return a&&o&&o.length&&(!l&&u>0||!us(l,o))?this.renderCurveWithAnimation(n,r):this.renderCurveStatically(o,n,r)}},{key:"render",value:function(){var n,r=this.props,i=r.hide,o=r.dot,a=r.points,s=r.className,l=r.xAxis,u=r.yAxis,f=r.top,d=r.left,p=r.width,v=r.height,g=r.isAnimationActive,y=r.id;if(i||!a||!a.length)return null;var w=this.state.isAnimationFinished,b=a.length===1,x=De("recharts-line",s),_=l&&l.allowDataOverflow,S=u&&u.allowDataOverflow,j=_||S,E=ze(y)?this.id:y,P=(n=$e(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},N=P.r,I=N===void 0?3:N,M=P.strokeWidth,D=M===void 0?2:M,z=sU(o)?o:{},q=z.clipDot,W=q===void 0?!0:q,X=I*2+D;return V.createElement(Xe,{className:x},_||S?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(E)},V.createElement("rect",{x:_?d:d-p/2,y:S?f:f-v/2,width:_?p:p*2,height:S?v:v*2})),!W&&V.createElement("clipPath",{id:"clipPath-dots-".concat(E)},V.createElement("rect",{x:d-X/2,y:f-X/2,width:p+X,height:v+X}))):null,!b&&this.renderCurve(j,E),this.renderErrorBar(j,E),(b||o)&&this.renderDots(j,W,E),(!g||w)&&Ui.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:r.curPoints}:n.points!==r.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,r){for(var i=n.length%2!==0?[].concat(du(n),[0]):n,o=[],a=0;a<r;++a)o=[].concat(du(o),du(i));return o}},{key:"renderDotItem",value:function(n,r){var i;if(V.isValidElement(n))i=V.cloneElement(n,r);else if(Ge(n))i=n(r);else{var o=De("recharts-line-dot",typeof n!="boolean"?n.className:"");i=V.createElement(nm,Zd({},r,{className:o}))}return i}}]),t}(R.PureComponent);Ni(bf,"displayName","Line");Ni(bf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!hi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ni(bf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,d=l.map(function(p,v){var g=kt(p,a);return f==="horizontal"?{x:Pc({axis:n,ticks:i,bandSize:s,entry:p,index:v}),y:ze(g)?null:r.scale(g),value:g,payload:p}:{x:ze(g)?null:n.scale(g),y:Pc({axis:r,ticks:o,bandSize:s,entry:p,index:v}),value:g,payload:p}});return Ar({points:d,layout:f},u)});var S5e=["layout","type","stroke","connectNulls","isRange","ref"],fz;function Fc(e){"@babel/helpers - typeof";return Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}function E5e(e,t){if(e==null)return{};var n=j5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ol(){return ol=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},ol.apply(this,arguments)}function eI(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 xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(r){co(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hz(r.key),r)}}function C5e(e,t,n){return t&&tI(e.prototype,t),n&&tI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P5e(e,t,n){return t=w0(t),A5e(e,dz()?Reflect.construct(t,n||[],w0(e).constructor):t.apply(e,n))}function A5e(e,t){if(t&&(Fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bd(e)}function dz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dz=function(){return!!e})()}function w0(e){return w0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w0(e)}function bd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k5e(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&&LE(e,t)}function LE(e,t){return LE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},LE(e,t)}function co(e,t,n){return t=hz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hz(e){var t=N5e(e,"string");return Fc(t)=="symbol"?t:String(t)}function N5e(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ul=function(e){k5e(t,e);function t(){var n;T5e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=P5e(this,t,[].concat(i)),co(bd(n),"state",{isAnimationFinished:!0}),co(bd(n),"id",_s("recharts-area-")),co(bd(n),"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Ge(a)&&a()}),co(bd(n),"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Ge(a)&&a()}),n}return C5e(t,[{key:"renderDots",value:function(n,r,i){var o=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(o&&!a)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,d=$e(this.props,!1),p=$e(l,!0),v=u.map(function(y,w){var b=xa(xa(xa({key:"dot-".concat(w),r:3},d),p),{},{dataKey:f,cx:y.x,cy:y.y,index:w,value:y.value,payload:y.payload});return t.renderDotItem(l,b)}),g={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(i,")"):null};return V.createElement(Xe,ol({className:"recharts-area-dots"},g),v)}},{key:"renderHorizontalRect",value:function(n){var r=this.props,i=r.baseLine,o=r.points,a=r.strokeWidth,s=o[0].x,l=o[o.length-1].x,u=n*Math.abs(s-l),f=Da(o.map(function(d){return d.y||0}));return Ee(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Da(i.map(function(d){return d.y||0})),f)),Ee(f)?V.createElement("rect",{x:s<l?s:s-u,y:0,width:u,height:Math.floor(f+(a?parseInt("".concat(a),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var r=this.props,i=r.baseLine,o=r.points,a=r.strokeWidth,s=o[0].y,l=o[o.length-1].y,u=n*Math.abs(s-l),f=Da(o.map(function(d){return d.x||0}));return Ee(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Da(i.map(function(d){return d.x||0})),f)),Ee(f)?V.createElement("rect",{x:0,y:s<l?s:s-u,width:f+(a?parseInt("".concat(a),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(n){var r=this.props.layout;return r==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,r,i,o){var a=this.props,s=a.layout,l=a.type,u=a.stroke,f=a.connectNulls,d=a.isRange;a.ref;var p=E5e(a,S5e);return V.createElement(Xe,{clipPath:i?"url(#clipPath-".concat(o,")"):null},V.createElement(Qa,ol({},$e(p,!0),{points:n,connectNulls:f,type:l,baseLine:r,layout:s,stroke:"none",className:"recharts-area-area"})),u!=="none"&&V.createElement(Qa,ol({},$e(this.props,!1),{className:"recharts-area-curve",layout:s,type:l,connectNulls:f,fill:"none",points:n})),u!=="none"&&d&&V.createElement(Qa,ol({},$e(this.props,!1),{className:"recharts-area-curve",layout:s,type:l,connectNulls:f,fill:"none",points:r})))}},{key:"renderAreaWithAnimation",value:function(n,r){var i=this,o=this.props,a=o.points,s=o.baseLine,l=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,d=o.animationEasing,p=o.animationId,v=this.state,g=v.prevPoints,y=v.prevBaseLine;return V.createElement(bi,{begin:u,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var b=w.t;if(g){var x=g.length/a.length,_=a.map(function(P,N){var I=Math.floor(N*x);if(g[I]){var M=g[I],D=zt(M.x,P.x),z=zt(M.y,P.y);return xa(xa({},P),{},{x:D(b),y:z(b)})}return P}),S;if(Ee(s)&&typeof s=="number"){var j=zt(y,s);S=j(b)}else if(ze(s)||uf(s)){var E=zt(y,0);S=E(b)}else S=s.map(function(P,N){var I=Math.floor(N*x);if(y[I]){var M=y[I],D=zt(M.x,P.x),z=zt(M.y,P.y);return xa(xa({},P),{},{x:D(b),y:z(b)})}return P});return i.renderAreaStatically(_,S,n,r)}return V.createElement(Xe,null,V.createElement("defs",null,V.createElement("clipPath",{id:"animationClipPath-".concat(r)},i.renderClipRect(b))),V.createElement(Xe,{clipPath:"url(#animationClipPath-".concat(r,")")},i.renderAreaStatically(a,s,n,r)))})}},{key:"renderArea",value:function(n,r){var i=this.props,o=i.points,a=i.baseLine,s=i.isAnimationActive,l=this.state,u=l.prevPoints,f=l.prevBaseLine,d=l.totalLength;return s&&o&&o.length&&(!u&&d>0||!us(u,o)||!us(f,a))?this.renderAreaWithAnimation(n,r):this.renderAreaStatically(o,a,n,r)}},{key:"render",value:function(){var n,r=this.props,i=r.hide,o=r.dot,a=r.points,s=r.className,l=r.top,u=r.left,f=r.xAxis,d=r.yAxis,p=r.width,v=r.height,g=r.isAnimationActive,y=r.id;if(i||!a||!a.length)return null;var w=this.state.isAnimationFinished,b=a.length===1,x=De("recharts-area",s),_=f&&f.allowDataOverflow,S=d&&d.allowDataOverflow,j=_||S,E=ze(y)?this.id:y,P=(n=$e(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},N=P.r,I=N===void 0?3:N,M=P.strokeWidth,D=M===void 0?2:M,z=sU(o)?o:{},q=z.clipDot,W=q===void 0?!0:q,X=I*2+D;return V.createElement(Xe,{className:x},_||S?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(E)},V.createElement("rect",{x:_?u:u-p/2,y:S?l:l-v/2,width:_?p:p*2,height:S?v:v*2})),!W&&V.createElement("clipPath",{id:"clipPath-dots-".concat(E)},V.createElement("rect",{x:u-X/2,y:l-X/2,width:p+X,height:v+X}))):null,b?null:this.renderArea(j,E),(o||b)&&this.renderDots(j,W,E),(!g||w)&&Ui.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:r.curPoints,prevBaseLine:r.curBaseLine}:n.points!==r.curPoints||n.baseLine!==r.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}]),t}(R.PureComponent);fz=Ul;co(Ul,"displayName","Area");co(Ul,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!hi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});co(Ul,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ee(s)&&typeof s=="number")return s;var l=i==="horizontal"?r:n,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});co(Ul,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=t.layout,g=u&&u.length,y=fz.getBaseValue(t,n,r,i),w=v==="horizontal",b=!1,x=d.map(function(S,j){var E;g?E=u[f+j]:(E=kt(S,l),Array.isArray(E)?b=!0:E=[y,E]);var P=E[1]==null||g&&kt(S,l)==null;return w?{x:Pc({axis:r,ticks:o,bandSize:s,entry:S,index:j}),y:P?null:i.scale(E[1]),value:E,payload:S}:{x:P?null:r.scale(E[1]),y:Pc({axis:i,ticks:a,bandSize:s,entry:S,index:j}),value:E,payload:S}}),_;return g||b?_=x.map(function(S){var j=Array.isArray(S.value)?S.value[0]:null;return w?{x:S.x,y:j!=null&&S.y!=null?i.scale(j):null}:{x:j!=null?r.scale(j):null,y:S.y}}):_=w?i.scale(y):r.scale(y),xa({points:x,baseLine:_,layout:v,isRange:b},p)});co(Ul,"renderDotItem",function(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ge(e))n=e(t);else{var r=De("recharts-area-dot",typeof e!="boolean"?e.className:"");n=V.createElement(nm,ol({},t,{className:r}))}return n});var Xb=function(){return null};Xb.displayName="ZAxis";Xb.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var L5e=["option","isActive"];function Yd(){return Yd=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},Yd.apply(this,arguments)}function R5e(e,t){if(e==null)return{};var n=M5e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M5e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function I5e(e){var t=e.option,n=e.isActive,r=R5e(e,L5e);return typeof t=="string"?V.createElement(d0,Yd({option:V.createElement(Ab,Yd({type:t},r)),isActive:n,shapeType:"symbols"},r)):V.createElement(d0,Yd({option:t,isActive:n,shapeType:"symbols"},r))}function Uc(e){"@babel/helpers - typeof";return Uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uc(e)}function Kd(){return Kd=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},Kd.apply(this,arguments)}function nI(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 ei(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(r){Fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rI(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,mz(r.key),r)}}function $5e(e,t,n){return t&&rI(e.prototype,t),n&&rI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F5e(e,t,n){return t=O0(t),U5e(e,pz()?Reflect.construct(t,n||[],O0(e).constructor):t.apply(e,n))}function U5e(e,t){if(t&&(Uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _d(e)}function pz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pz=function(){return!!e})()}function O0(e){return O0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O0(e)}function _d(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B5e(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&&RE(e,t)}function RE(e,t){return RE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},RE(e,t)}function Fa(e,t,n){return t=mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mz(e){var t=z5e(e,"string");return Uc(t)=="symbol"?t:String(t)}function z5e(e,t){if(Uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qb=function(e){B5e(t,e);function t(){var n;D5e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=F5e(this,t,[].concat(i)),Fa(_d(n),"state",{isAnimationFinished:!1}),Fa(_d(n),"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Fa(_d(n),"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Fa(_d(n),"id",_s("recharts-scatter-")),n}return $5e(t,[{key:"renderSymbolsStatically",value:function(n){var r=this,i=this.props,o=i.shape,a=i.activeShape,s=i.activeIndex,l=$e(this.props,!1);return n.map(function(u,f){var d=s===f,p=d?a:o,v=ei(ei({key:"symbol-".concat(f)},l),u);return V.createElement(Xe,Kd({className:"recharts-scatter-symbol"},ls(r.props,u,f),{key:"symbol-".concat(u==null?void 0:u.cx,"-").concat(u==null?void 0:u.cy,"-").concat(u==null?void 0:u.size,"-").concat(f),role:"img"}),V.createElement(I5e,Kd({option:p,isActive:d},v)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,r=this.props,i=r.points,o=r.isAnimationActive,a=r.animationBegin,s=r.animationDuration,l=r.animationEasing,u=r.animationId,f=this.state.prevPoints;return V.createElement(bi,{begin:a,duration:s,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var p=d.t,v=i.map(function(g,y){var w=f&&f[y];if(w){var b=zt(w.cx,g.cx),x=zt(w.cy,g.cy),_=zt(w.size,g.size);return ei(ei({},g),{},{cx:b(p),cy:x(p),size:_(p)})}var S=zt(0,g.size);return ei(ei({},g),{},{size:S(p)})});return V.createElement(Xe,null,n.renderSymbolsStatically(v))})}},{key:"renderSymbols",value:function(){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state.prevPoints;return i&&r&&r.length&&(!o||!us(o,r))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(r)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,a=r.yAxis,s=r.children,l=fr(s,vf);return l?l.map(function(u,f){var d=u.props,p=d.direction,v=d.dataKey;return V.cloneElement(u,{key:"".concat(p,"-").concat(v,"-").concat(i[f]),data:i,xAxis:o,yAxis:a,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(g,y){return{x:g.cx,y:g.cy,value:p==="x"?+g.node.x:+g.node.y,errorVal:kt(g,y)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,r=n.points,i=n.line,o=n.lineType,a=n.lineJointType,s=$e(this.props,!1),l=$e(i,!1),u,f;if(o==="joint")u=r.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var d=P0e(r),p=d.xmin,v=d.xmax,g=d.a,y=d.b,w=function(x){return g*x+y};u=[{x:p,y:w(p)},{x:v,y:w(v)}]}var b=ei(ei(ei({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:u});return V.isValidElement(i)?f=V.cloneElement(i,b):Ge(i)?f=i(b):f=V.createElement(Qa,Kd({},b,{type:a})),V.createElement(Xe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,r=n.hide,i=n.points,o=n.line,a=n.className,s=n.xAxis,l=n.yAxis,u=n.left,f=n.top,d=n.width,p=n.height,v=n.id,g=n.isAnimationActive;if(r||!i||!i.length)return null;var y=this.state.isAnimationFinished,w=De("recharts-scatter",a),b=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,_=b||x,S=ze(v)?this.id:v;return V.createElement(Xe,{className:w,clipPath:_?"url(#clipPath-".concat(S,")"):null},b||x?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(S)},V.createElement("rect",{x:b?u:u-d/2,y:x?f:f-p/2,width:b?d:d*2,height:x?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),V.createElement(Xe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||y)&&Ui.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:r.curPoints}:n.points!==r.curPoints?{curPoints:n.points}:null}}]),t}(R.PureComponent);Fa(Qb,"displayName","Scatter");Fa(Qb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!hi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Fa(Qb,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,f=fr(i.props.children,Ka),d=ze(t.dataKey)?i.props.dataKey:t.dataKey,p=ze(n.dataKey)?i.props.dataKey:n.dataKey,v=r&&r.dataKey,g=r?r.range:Xb.defaultProps.range,y=g&&g[0],w=t.scale.bandwidth?t.scale.bandwidth():0,b=n.scale.bandwidth?n.scale.bandwidth():0,x=o.map(function(_,S){var j=kt(_,d),E=kt(_,p),P=!ze(v)&&kt(_,v)||"-",N=[{name:ze(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:j,payload:_,dataKey:d,type:u},{name:ze(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:E,payload:_,dataKey:p,type:u}];P!=="-"&&N.push({name:r.name||r.dataKey,unit:r.unit||"",value:P,payload:_,dataKey:v,type:u});var I=Pc({axis:t,ticks:a,bandSize:w,entry:_,index:S,dataKey:d}),M=Pc({axis:n,ticks:s,bandSize:b,entry:_,index:S,dataKey:p}),D=P!=="-"?r.scale(P):y,z=Math.sqrt(Math.max(D,0)/Math.PI);return ei(ei({},_),{},{cx:I,cy:M,x:I-z,y:M-z,xAxis:t,yAxis:n,zAxis:r,width:2*z,height:2*z,size:D,node:{x:j,y:E,z:P},tooltipPayload:N,tooltipPosition:{x:I,y:M},payload:_},f&&f[S]&&f[S].props)});return ei({points:x},l)});function ME(){return ME=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},ME.apply(this,arguments)}var _f=function(e){var t=e.xAxisId,n=bP(),r=_P(),i=rz(t);return i==null?null:V.createElement(yf,ME({},i,{className:De("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Uo(o,!0)}}))};_f.displayName="XAxis";_f.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 IE(){return IE=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},IE.apply(this,arguments)}var xf=function(e){var t=e.yAxisId,n=bP(),r=_P(),i=iz(t);return i==null?null:V.createElement(yf,IE({},i,{className:De("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Uo(o,!0)}}))};xf.displayName="YAxis";xf.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 iI(e){return G5e(e)||W5e(e)||H5e(e)||V5e()}function V5e(){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 H5e(e,t){if(e){if(typeof e=="string")return DE(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 DE(e,t)}}function W5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G5e(e){if(Array.isArray(e))return DE(e)}function DE(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 $E=function(e,t,n,r,i){var o=fr(e,xP),a=fr(e,rm),s=[].concat(iI(o),iI(a)),l=fr(e,im),u="".concat(r,"Id"),f=r[0],d=t;if(s.length&&(d=s.reduce(function(g,y){if(y.props[u]===n&&vo(y.props,"extendDomain")&&Ee(y.props[f])){var w=y.props[f];return[Math.min(g[0],w),Math.max(g[1],w)]}return g},d)),l.length){var p="".concat(f,"1"),v="".concat(f,"2");d=l.reduce(function(g,y){if(y.props[u]===n&&vo(y.props,"extendDomain")&&Ee(y.props[p])&&Ee(y.props[v])){var w=y.props[p],b=y.props[v];return[Math.min(g[0],w,b),Math.max(g[1],w,b)]}return g},d)}return i&&i.length&&(d=i.reduce(function(g,y){return Ee(y)?[Math.min(g[0],y),Math.max(g[1],y)]:g},d)),d},vz={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new i(f,d||l,p),g=n?n+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)t.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,v=new Array(p);d<p;d++)v[d]=f[d].fn;return v},s.prototype.listenerCount=function(l){var u=n?n+l:l,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(l,u,f,d,p,v){var g=n?n+l:l;if(!this._events[g])return!1;var y=this._events[g],w=arguments.length,b,x;if(y.fn){switch(y.once&&this.removeListener(l,y.fn,void 0,!0),w){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,f),!0;case 4:return y.fn.call(y.context,u,f,d),!0;case 5:return y.fn.call(y.context,u,f,d,p),!0;case 6:return y.fn.call(y.context,u,f,d,p,v),!0}for(x=1,b=new Array(w-1);x<w;x++)b[x-1]=arguments[x];y.fn.apply(y.context,b)}else{var _=y.length,S;for(x=0;x<_;x++)switch(y[x].once&&this.removeListener(l,y[x].fn,void 0,!0),w){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,u);break;case 3:y[x].fn.call(y[x].context,u,f);break;case 4:y[x].fn.call(y[x].context,u,f,d);break;default:if(!b)for(S=1,b=new Array(w-1);S<w;S++)b[S-1]=arguments[S];y[x].fn.apply(y[x].context,b)}}return!0},s.prototype.on=function(l,u,f){return o(this,l,u,f,!1)},s.prototype.once=function(l,u,f){return o(this,l,u,f,!0)},s.prototype.removeListener=function(l,u,f,d){var p=n?n+l:l;if(!this._events[p])return this;if(!u)return a(this,p),this;var v=this._events[p];if(v.fn)v.fn===u&&(!d||v.once)&&(!f||v.context===f)&&a(this,p);else{for(var g=0,y=[],w=v.length;g<w;g++)(v[g].fn!==u||d&&!v[g].once||f&&v[g].context!==f)&&y.push(v[g]);y.length?this._events[p]=y.length===1?y[0]:y:a(this,p)}return this},s.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(vz);var q5e=vz.exports;const Z5e=gt(q5e);var lw=new Z5e,uw="recharts.syncMouseEvents";function _p(e){"@babel/helpers - typeof";return _p=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},_p(e)}function Y5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gz(r.key),r)}}function K5e(e,t,n){return t&&oI(e.prototype,t),n&&oI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cw(e,t,n){return t=gz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(e){var t=X5e(e,"string");return _p(t)=="symbol"?t:String(t)}function X5e(e,t){if(_p(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_p(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q5e=function(){function e(){Y5e(this,e),cw(this,"activeIndex",0),cw(this,"coordinateList",[]),cw(this,"layout","horizontal")}return K5e(e,[{key:"setDetails",value:function(t){var n,r=t.coordinateList,i=r===void 0?null:r,o=t.container,a=o===void 0?null:o,s=t.layout,l=s===void 0?null:s,u=t.offset,f=u===void 0?null:u,d=t.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=a??this.container,this.layout=l??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??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(t){if(this.coordinateList.length!==0)switch(t.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(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var r=this.container.getBoundingClientRect(),i=r.x,o=r.y,a=r.height,s=this.coordinateList[this.activeIndex].coordinate,l=((t=window)===null||t===void 0?void 0:t.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+s+l,d=o+this.offset.top+a/2+u;this.mouseHandlerCallback({pageX:f,pageY:d})}}}]),e}();function J5e(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&&Ee(r)&&Ee(i))return!0}return!1}function eDe(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 yz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=St(t,n,r,i),s=St(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function tDe(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,p=St(s,l,u,d),v=St(s,l,f,d);r=p.x,i=p.y,o=v.x,a=v.y}else return yz(t);return[{x:r,y:i},{x:o,y:a}]}function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function aI(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 jv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(n),!0).forEach(function(r){nDe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nDe(e,t,n){return t=rDe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rDe(e){var t=iDe(e,"string");return xp(t)=="symbol"?t:String(t)}function iDe(e,t){if(xp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oDe(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,o=e.activePayload,a=e.offset,s=e.activeTooltipIndex,l=e.tooltipAxisBandSize,u=e.layout,f=e.chartName;if(!t||!t.props.cursor||!r||!i||f!=="ScatterChart"&&n!=="axis")return null;var d,p=Qa;if(f==="ScatterChart")d=i,p=VRe;else if(f==="BarChart")d=eDe(u,i,a,l),p=mP;else if(u==="radial"){var v=yz(i),g=v.cx,y=v.cy,w=v.radius,b=v.startAngle,x=v.endAngle;d={cx:g,cy:y,startAngle:b,endAngle:x,innerRadius:w,outerRadius:w},p=OB}else d={points:tDe(u,i,a)},p=Qa;var _=jv(jv(jv(jv({stroke:"#ccc",pointerEvents:"none"},a),d),$e(t.props.cursor,!1)),{},{payload:o,payloadIndex:s,className:"recharts-tooltip-cursor"});return R.isValidElement(t.props.cursor)?R.cloneElement(t.props.cursor,_):R.createElement(p,_)}var aDe=["item"],sDe=["children","className","width","height","style","compact","title","desc"];function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function Xd(){return Xd=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},Xd.apply(this,arguments)}function sI(e,t){return cDe(e)||uDe(e,t)||_z(e,t)||lDe()}function lDe(){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 uDe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function cDe(e){if(Array.isArray(e))return e}function lI(e,t){if(e==null)return{};var n=fDe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fDe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function dDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xz(r.key),r)}}function hDe(e,t,n){return t&&uI(e.prototype,t),n&&uI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pDe(e,t,n){return t=S0(t),mDe(e,bz()?Reflect.construct(t,n||[],S0(e).constructor):t.apply(e,n))}function mDe(e,t){if(t&&(Bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ut(e)}function bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bz=function(){return!!e})()}function S0(e){return S0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S0(e)}function ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vDe(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&&FE(e,t)}function FE(e,t){return FE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},FE(e,t)}function zc(e){return bDe(e)||yDe(e)||_z(e)||gDe()}function gDe(){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 _z(e,t){if(e){if(typeof e=="string")return UE(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 UE(e,t)}}function yDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bDe(e){if(Array.isArray(e))return UE(e)}function UE(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 cI(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 ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cI(Object(n),!0).forEach(function(r){He(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function He(e,t,n){return t=xz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xz(e){var t=_De(e,"string");return Bc(t)=="symbol"?t:String(t)}function _De(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xDe={xAxis:["bottom","top"],yAxis:["left","right"]},wDe={width:"100%",height:"100%"},wz={x:0,y:0};function Tv(e){return e}var ODe=function(e,t){return t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius},SDe=function(e,t,n,r){var i=t.find(function(u){return u&&u.index===n});if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,a=r.radius;return ve(ve(ve({},r),St(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,l=r.angle;return ve(ve(ve({},r),St(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return wz},Jb=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,o=(n??[]).reduce(function(a,s){var l=s.props.data;return l&&l.length?[].concat(zc(a),zc(l)):a},[]);return o.length>0?o:e&&e.length&&Ee(r)&&Ee(i)?e.slice(r,i+1):[]};function Oz(e){return e==="number"?[0,"auto"]:void 0}var BE=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=Jb(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(s,l){var u,f=(u=l.props.data)!==null&&u!==void 0?u:t;f&&e.dataStartIndex+e.dataEndIndex!==0&&(f=f.slice(e.dataStartIndex,e.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?a:f;d=Cy(p,o.dataKey,r)}else d=f&&f[n]||a[n];return d?[].concat(zc(s),[yB(l,d)]):s},[])},fI=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=ODe(i,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,u=j3e(o,a,l,s);if(u>=0&&l){var f=l[u]&&l[u].value,d=BE(e,t,u,f),p=SDe(n,a,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},EDe=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,f=e.children,d=e.stackOffset,p=dB(u,i);return n.reduce(function(v,g){var y,w=g.props,b=w.type,x=w.dataKey,_=w.allowDataOverflow,S=w.allowDuplicatedCategory,j=w.scale,E=w.ticks,P=w.includeHidden,N=g.props[o];if(v[N])return v;var I=Jb(e.data,{graphicalItems:r.filter(function(H){return H.props[o]===N}),dataStartIndex:s,dataEndIndex:l}),M=I.length,D,z,q;J5e(g.props.domain,_,b)&&(D=iE(g.props.domain,null,_),p&&(b==="number"||j!=="auto")&&(q=og(I,x,"category")));var W=Oz(b);if(!D||D.length===0){var X,J=(X=g.props.domain)!==null&&X!==void 0?X:W;if(x){if(D=og(I,x,b),b==="category"&&p){var te=C0e(D);S&&te?(z=D,D=p0(0,M)):S||(D=E4(J,D,g).reduce(function(H,ne){return H.indexOf(ne)>=0?H:[].concat(zc(H),[ne])},[]))}else if(b==="category")S?D=D.filter(function(H){return H!==""&&!ze(H)}):D=E4(J,D,g).reduce(function(H,ne){return H.indexOf(ne)>=0||ne===""||ze(ne)?H:[].concat(zc(H),[ne])},[]);else if(b==="number"){var K=k3e(I,r.filter(function(H){return H.props[o]===N&&(P||!H.props.hide)}),x,i,u);K&&(D=K)}p&&(b==="number"||j!=="auto")&&(q=og(I,x,"category"))}else p?D=p0(0,M):a&&a[N]&&a[N].hasStack&&b==="number"?D=d==="expand"?[0,1]:gB(a[N].stackGroups,s,l):D=fB(I,r.filter(function(H){return H.props[o]===N&&(P||!H.props.hide)}),b,u,!0);if(b==="number")D=$E(f,D,N,i,E),J&&(D=iE(J,D,_));else if(b==="category"&&J){var B=J,F=D.every(function(H){return B.indexOf(H)>=0});F&&(D=B)}}return ve(ve({},v),{},He({},N,ve(ve({},g.props),{},{axisType:i,domain:D,categoricalDomain:q,duplicateDomain:z,originalDomain:(y=g.props.domain)!==null&&y!==void 0?y:W,isCategorical:p,layout:u})))},{})},jDe=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,f=e.children,d=Jb(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,v=dB(u,i),g=-1;return n.reduce(function(y,w){var b=w.props[o],x=Oz("number");if(!y[b]){g++;var _;return v?_=p0(0,p):a&&a[b]&&a[b].hasStack?(_=gB(a[b].stackGroups,s,l),_=$E(f,_,b,i)):(_=iE(x,fB(d,n.filter(function(S){return S.props[o]===b&&!S.props.hide}),"number",u),r.defaultProps.allowDataOverflow),_=$E(f,_,b,i)),ve(ve({},y),{},He({},b,ve(ve({axisType:i},r.defaultProps),{},{hide:!0,orientation:$r(xDe,"".concat(i,".").concat(g%2),null),domain:_,originalDomain:x,isCategorical:v,layout:u})))}return y},{})},TDe=function(e,t){var n=t.axisType,r=n===void 0?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.children,f="".concat(r,"Id"),d=fr(u,i),p={};return d&&d.length?p=EDe(e,{axes:d,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=jDe(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},CDe=function(e){var t=Aa(e),n=Uo(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:BC(n,function(r){return r.coordinate}),tooltipAxis:t,tooltipAxisBandSize:t0(t,n)}},dI=function(e){var t=e.children,n=e.defaultShowTooltip,r=Lr(t,Mc),i=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},PDe=function(e){return!e||!e.length?!1:e.some(function(t){var n=zo(t&&t.type);return n&&n.indexOf("Bar")>=0})},hI=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ADe=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,o=i===void 0?{}:i,a=e.yAxisMap,s=a===void 0?{}:a,l=n.width,u=n.height,f=n.children,d=n.margin||{},p=Lr(f,Mc),v=Lr(f,Fh),g=Object.keys(s).reduce(function(S,j){var E=s[j],P=E.orientation;return!E.mirror&&!E.hide?ve(ve({},S),{},He({},P,S[P]+E.width)):S},{left:d.left||0,right:d.right||0}),y=Object.keys(o).reduce(function(S,j){var E=o[j],P=E.orientation;return!E.mirror&&!E.hide?ve(ve({},S),{},He({},P,$r(S,"".concat(P))+E.height)):S},{top:d.top||0,bottom:d.bottom||0}),w=ve(ve({},y),g),b=w.bottom;p&&(w.bottom+=p.props.height||Mc.defaultProps.height),v&&t&&(w=P3e(w,r,n,t));var x=l-w.left-w.right,_=u-w.top-w.bottom;return ve(ve({brushBottom:b},w),{},{width:Math.max(x,0),height:Math.max(_,0)})},EP=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,o=i===void 0?"axis":i,a=e.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=e.axisComponents,u=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(g,y){var w=y.graphicalItems,b=y.stackGroups,x=y.offset,_=y.updateId,S=y.dataStartIndex,j=y.dataEndIndex,E=g.barSize,P=g.layout,N=g.barGap,I=g.barCategoryGap,M=g.maxBarSize,D=hI(P),z=D.numericAxisName,q=D.cateAxisName,W=PDe(w),X=W&&T3e({barSize:E,stackGroups:b}),J=[];return w.forEach(function(te,K){var B=Jb(g.data,{graphicalItems:[te],dataStartIndex:S,dataEndIndex:j}),F=te.props,H=F.dataKey,ne=F.maxBarSize,Y=te.props["".concat(z,"Id")],ee=te.props["".concat(q,"Id")],ae={},oe=l.reduce(function(me,xe){var Ce=y["".concat(xe.axisType,"Map")],je=te.props["".concat(xe.axisType,"Id")];Ce&&Ce[je]||xe.axisType==="zAxis"||Al(!1);var Pe=Ce[je];return ve(ve({},me),{},He(He({},xe.axisType,Pe),"".concat(xe.axisType,"Ticks"),Uo(Pe)))},ae),fe=oe[q],C=oe["".concat(q,"Ticks")],A=b&&b[Y]&&b[Y].hasStack&&U3e(te,b[Y].stackGroups),U=zo(te.type).indexOf("Bar")>=0,Q=t0(fe,C),Z=[];if(U){var ie,he,Se=ze(ne)?M:ne,se=(ie=(he=t0(fe,C,!0))!==null&&he!==void 0?he:Se)!==null&&ie!==void 0?ie:0;Z=C3e({barGap:N,barCategoryGap:I,bandSize:se!==Q?se:Q,sizeList:X[ee],maxBarSize:Se}),se!==Q&&(Z=Z.map(function(me){return ve(ve({},me),{},{position:ve(ve({},me.position),{},{offset:me.position.offset-se/2})})}))}var pe=te&&te.type&&te.type.getComposedData;pe&&J.push({props:ve(ve({},pe(ve(ve({},oe),{},{displayedData:B,props:g,dataKey:H,item:te,bandSize:Q,barPosition:Z,offset:x,stackedData:A,layout:P,dataStartIndex:S,dataEndIndex:j}))),{},He(He(He({key:te.key||"item-".concat(K)},z,oe[z]),q,oe[q]),"animationId",_)),childIndex:U0e(te,g.children),item:te})}),J},v=function(g,y){var w=g.props,b=g.dataStartIndex,x=g.dataEndIndex,_=g.updateId;if(!vR({props:w}))return null;var S=w.children,j=w.layout,E=w.stackOffset,P=w.data,N=w.reverseStackOrder,I=hI(j),M=I.numericAxisName,D=I.cateAxisName,z=fr(S,r),q=$3e(P,z,"".concat(M,"Id"),"".concat(D,"Id"),E,N),W=l.reduce(function(B,F){var H="".concat(F.axisType,"Map");return ve(ve({},B),{},He({},H,TDe(w,ve(ve({},F),{},{graphicalItems:z,stackGroups:F.axisType===M&&q,dataStartIndex:b,dataEndIndex:x}))))},{}),X=ADe(ve(ve({},W),{},{props:w,graphicalItems:z}),y==null?void 0:y.legendBBox);Object.keys(W).forEach(function(B){W[B]=f(w,W[B],X,B.replace("Map",""),n)});var J=W["".concat(D,"Map")],te=CDe(J),K=p(w,ve(ve({},W),{},{dataStartIndex:b,dataEndIndex:x,updateId:_,graphicalItems:z,stackGroups:q,offset:X}));return ve(ve({formattedGraphicalItems:K,graphicalItems:z,offset:X,stackGroups:q},te),W)};return t=function(g){vDe(y,g);function y(w){var b,x,_;return dDe(this,y),_=pDe(this,y,[w]),He(ut(_),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),He(ut(_),"accessibilityManager",new Q5e),He(ut(_),"handleLegendBBoxUpdate",function(S){if(S){var j=_.state,E=j.dataStartIndex,P=j.dataEndIndex,N=j.updateId;_.setState(ve({legendBBox:S},v({props:_.props,dataStartIndex:E,dataEndIndex:P,updateId:N},ve(ve({},_.state),{},{legendBBox:S}))))}}),He(ut(_),"handleReceiveSyncEvent",function(S,j,E){if(_.props.syncId===S){if(E===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(j)}}),He(ut(_),"handleBrushChange",function(S){var j=S.startIndex,E=S.endIndex;if(j!==_.state.dataStartIndex||E!==_.state.dataEndIndex){var P=_.state.updateId;_.setState(function(){return ve({dataStartIndex:j,dataEndIndex:E},v({props:_.props,dataStartIndex:j,dataEndIndex:E,updateId:P},_.state))}),_.triggerSyncEvent({dataStartIndex:j,dataEndIndex:E})}}),He(ut(_),"handleMouseEnter",function(S){var j=_.getMouseInfo(S);if(j){var E=ve(ve({},j),{},{isTooltipActive:!0});_.setState(E),_.triggerSyncEvent(E);var P=_.props.onMouseEnter;Ge(P)&&P(E,S)}}),He(ut(_),"triggeredAfterMouseMove",function(S){var j=_.getMouseInfo(S),E=j?ve(ve({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(E),_.triggerSyncEvent(E);var P=_.props.onMouseMove;Ge(P)&&P(E,S)}),He(ut(_),"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),He(ut(_),"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),He(ut(_),"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),He(ut(_),"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};_.setState(j),_.triggerSyncEvent(j);var E=_.props.onMouseLeave;Ge(E)&&E(j,S)}),He(ut(_),"handleOuterEvent",function(S){var j=F0e(S),E=$r(_.props,"".concat(j));if(j&&Ge(E)){var P,N;/.*touch.*/i.test(j)?N=_.getMouseInfo(S.changedTouches[0]):N=_.getMouseInfo(S),E((P=N)!==null&&P!==void 0?P:{},S)}}),He(ut(_),"handleClick",function(S){var j=_.getMouseInfo(S);if(j){var E=ve(ve({},j),{},{isTooltipActive:!0});_.setState(E),_.triggerSyncEvent(E);var P=_.props.onClick;Ge(P)&&P(E,S)}}),He(ut(_),"handleMouseDown",function(S){var j=_.props.onMouseDown;if(Ge(j)){var E=_.getMouseInfo(S);j(E,S)}}),He(ut(_),"handleMouseUp",function(S){var j=_.props.onMouseUp;if(Ge(j)){var E=_.getMouseInfo(S);j(E,S)}}),He(ut(_),"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),He(ut(_),"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),He(ut(_),"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),He(ut(_),"triggerSyncEvent",function(S){_.props.syncId!==void 0&&lw.emit(uw,_.props.syncId,S,_.eventEmitterSymbol)}),He(ut(_),"applySyncEvent",function(S){var j=_.props,E=j.layout,P=j.syncMethod,N=_.state.updateId,I=S.dataStartIndex,M=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(ve({dataStartIndex:I,dataEndIndex:M},v({props:_.props,dataStartIndex:I,dataEndIndex:M,updateId:N},_.state)));else if(S.activeTooltipIndex!==void 0){var D=S.chartX,z=S.chartY,q=S.activeTooltipIndex,W=_.state,X=W.offset,J=W.tooltipTicks;if(!X)return;if(typeof P=="function")q=P(J,S);else if(P==="value"){q=-1;for(var te=0;te<J.length;te++)if(J[te].value===S.activeLabel){q=te;break}}var K=ve(ve({},X),{},{x:X.left,y:X.top}),B=Math.min(D,K.x+K.width),F=Math.min(z,K.y+K.height),H=J[q]&&J[q].value,ne=BE(_.state,_.props.data,q),Y=J[q]?{x:E==="horizontal"?J[q].coordinate:B,y:E==="horizontal"?F:J[q].coordinate}:wz;_.setState(ve(ve({},S),{},{activeLabel:H,activeCoordinate:Y,activePayload:ne,activeTooltipIndex:q}))}else _.setState(S)}),He(ut(_),"renderCursor",function(S){var j,E=_.state,P=E.isTooltipActive,N=E.activeCoordinate,I=E.activePayload,M=E.offset,D=E.activeTooltipIndex,z=E.tooltipAxisBandSize,q=_.getTooltipEventType(),W=(j=S.props.active)!==null&&j!==void 0?j:P,X=_.props.layout,J=S.key||"_recharts-cursor";return V.createElement(oDe,{key:J,activeCoordinate:N,activePayload:I,activeTooltipIndex:D,chartName:n,element:S,isActive:W,layout:X,offset:M,tooltipAxisBandSize:z,tooltipEventType:q})}),He(ut(_),"renderPolarAxis",function(S,j,E){var P=$r(S,"type.axisType"),N=$r(_.state,"".concat(P,"Map")),I=N&&N[S.props["".concat(P,"Id")]];return R.cloneElement(S,ve(ve({},I),{},{className:P,key:S.key||"".concat(j,"-").concat(E),ticks:Uo(I,!0)}))}),He(ut(_),"renderPolarGrid",function(S){var j=S.props,E=j.radialLines,P=j.polarAngles,N=j.polarRadius,I=_.state,M=I.radiusAxisMap,D=I.angleAxisMap,z=Aa(M),q=Aa(D),W=q.cx,X=q.cy,J=q.innerRadius,te=q.outerRadius;return R.cloneElement(S,{polarAngles:Array.isArray(P)?P:Uo(q,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(N)?N:Uo(z,!0).map(function(K){return K.coordinate}),cx:W,cy:X,innerRadius:J,outerRadius:te,key:S.key||"polar-grid",radialLines:E})}),He(ut(_),"renderLegend",function(){var S=_.state.formattedGraphicalItems,j=_.props,E=j.children,P=j.width,N=j.height,I=_.props.margin||{},M=P-(I.left||0)-(I.right||0),D=uB({children:E,formattedGraphicalItems:S,legendWidth:M,legendContent:u});if(!D)return null;var z=D.item,q=lI(D,aDe);return R.cloneElement(z,ve(ve({},q),{},{chartWidth:P,chartHeight:N,margin:I,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),He(ut(_),"renderTooltip",function(){var S,j=_.props,E=j.children,P=j.accessibilityLayer,N=Lr(E,ti);if(!N)return null;var I=_.state,M=I.isTooltipActive,D=I.activeCoordinate,z=I.activePayload,q=I.activeLabel,W=I.offset,X=(S=N.props.active)!==null&&S!==void 0?S:M;return R.cloneElement(N,{viewBox:ve(ve({},W),{},{x:W.left,y:W.top}),active:X,label:q,payload:X?z:[],coordinate:D,accessibilityLayer:P})}),He(ut(_),"renderBrush",function(S){var j=_.props,E=j.margin,P=j.data,N=_.state,I=N.offset,M=N.dataStartIndex,D=N.dataEndIndex,z=N.updateId;return R.cloneElement(S,{key:S.key||"_recharts-brush",onChange:wv(_.handleBrushChange,S.props.onChange),data:P,x:Ee(S.props.x)?S.props.x:I.left,y:Ee(S.props.y)?S.props.y:I.top+I.height+I.brushBottom-(E.bottom||0),width:Ee(S.props.width)?S.props.width:I.width,startIndex:M,endIndex:D,updateId:"brush-".concat(z)})}),He(ut(_),"renderReferenceElement",function(S,j,E){if(!S)return null;var P=ut(_),N=P.clipPathId,I=_.state,M=I.xAxisMap,D=I.yAxisMap,z=I.offset,q=S.props,W=q.xAxisId,X=q.yAxisId;return R.cloneElement(S,{key:S.key||"".concat(j,"-").concat(E),xAxis:M[W],yAxis:D[X],viewBox:{x:z.left,y:z.top,width:z.width,height:z.height},clipPathId:N})}),He(ut(_),"renderActivePoints",function(S){var j=S.item,E=S.activePoint,P=S.basePoint,N=S.childIndex,I=S.isRange,M=[],D=j.props.key,z=j.item.props,q=z.activeDot,W=z.dataKey,X=ve(ve({index:N,dataKey:W,cx:E.x,cy:E.y,r:4,fill:pP(j.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value,key:"".concat(D,"-activePoint-").concat(N)},$e(q,!1)),Py(q));return M.push(y.renderActiveDot(q,X)),P?M.push(y.renderActiveDot(q,ve(ve({},X),{},{cx:P.x,cy:P.y,key:"".concat(D,"-basePoint-").concat(N)}))):I&&M.push(null),M}),He(ut(_),"renderGraphicChild",function(S,j,E){var P=_.filterFormatItem(S,j,E);if(!P)return null;var N=_.getTooltipEventType(),I=_.state,M=I.isTooltipActive,D=I.tooltipAxis,z=I.activeTooltipIndex,q=I.activeLabel,W=_.props.children,X=Lr(W,ti),J=P.props,te=J.points,K=J.isRange,B=J.baseLine,F=P.item.props,H=F.activeDot,ne=F.hide,Y=F.activeBar,ee=F.activeShape,ae=!!(!ne&&M&&X&&(H||Y||ee)),oe={};N!=="axis"&&X&&X.props.trigger==="click"?oe={onClick:wv(_.handleItemMouseEnter,S.props.onClick)}:N!=="axis"&&(oe={onMouseLeave:wv(_.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:wv(_.handleItemMouseEnter,S.props.onMouseEnter)});var fe=R.cloneElement(S,ve(ve({},P.props),oe));function C(Ce){return typeof D.dataKey=="function"?D.dataKey(Ce.payload):null}if(ae)if(z>=0){var A,U;if(D.dataKey&&!D.allowDuplicatedCategory){var Q=typeof D.dataKey=="function"?C:"payload.".concat(D.dataKey.toString());A=Cy(te,Q,q),U=K&&B&&Cy(B,Q,q)}else A=te==null?void 0:te[z],U=K&&B&&B[z];if(ee||Y){var Z=S.props.activeIndex!==void 0?S.props.activeIndex:z;return[R.cloneElement(S,ve(ve(ve({},P.props),oe),{},{activeIndex:Z})),null,null]}if(!ze(A))return[fe].concat(zc(_.renderActivePoints({item:P,activePoint:A,basePoint:U,childIndex:z,isRange:K})))}else{var ie,he=(ie=_.getItemByXY(_.state.activeCoordinate))!==null&&ie!==void 0?ie:{graphicalItem:fe},Se=he.graphicalItem,se=Se.item,pe=se===void 0?S:se,me=Se.childIndex,xe=ve(ve(ve({},P.props),oe),{},{activeIndex:me});return[R.cloneElement(pe,xe),null,null]}return K?[fe,null,null]:[fe,null]}),He(ut(_),"renderCustomized",function(S,j,E){return R.cloneElement(S,ve(ve({key:"recharts-customized-".concat(E)},_.props),_.state))}),He(ut(_),"renderMap",{CartesianGrid:{handler:Tv,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:Tv},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:Tv},YAxis:{handler:Tv},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((b=w.id)!==null&&b!==void 0?b:_s("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=f9(_.triggeredAfterMouseMove,(x=w.throttleDelay)!==null&&x!==void 0?x:1e3/60),_.state={},_}return hDe(y,[{key:"componentDidMount",value:function(){var w,b;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,b=w.children,x=w.data,_=w.height,S=w.layout,j=Lr(b,ti);if(j){var E=j.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length)){var P=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,N=BE(this.state,x,E,P),I=this.state.tooltipTicks[E].coordinate,M=(this.state.offset.top+_)/2,D=S==="horizontal",z=D?{x:I,y:M}:{y:I,x:M},q=this.state.formattedGraphicalItems.find(function(X){var J=X.item;return J.type.name==="Scatter"});q&&(z=ve(ve({},z),q.props.points[E].tooltipPosition),N=q.props.points[E].tooltipPayload);var W={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:P,activePayload:N,activeCoordinate:z};this.setState(W),this.renderCursor(j),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,b){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==b.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,_;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(w){xS([Lr(w.children,ti)],[Lr(this.props.children,ti)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Lr(this.props.children,ti);if(w&&typeof w.props.shared=="boolean"){var b=w.props.shared?"axis":"item";return s.indexOf(b)>=0?b:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var b=this.container,x=b.getBoundingClientRect(),_=sCe(x),S={chartX:Math.round(w.pageX-_.left),chartY:Math.round(w.pageY-_.top)},j=x.width/b.offsetWidth||1,E=this.inRange(S.chartX,S.chartY,j);if(!E)return null;var P=this.state,N=P.xAxisMap,I=P.yAxisMap,M=this.getTooltipEventType();if(M!=="axis"&&N&&I){var D=Aa(N).scale,z=Aa(I).scale,q=D&&D.invert?D.invert(S.chartX):null,W=z&&z.invert?z.invert(S.chartY):null;return ve(ve({},S),{},{xValue:q,yValue:W})}var X=fI(this.state,this.props.data,this.props.layout,E);return X?ve(ve({},S),X):null}},{key:"inRange",value:function(w,b){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,S=w/x,j=b/x;if(_==="horizontal"||_==="vertical"){var E=this.state.offset,P=S>=E.left&&S<=E.left+E.width&&j>=E.top&&j<=E.top+E.height;return P?{x:S,y:j}:null}var N=this.state,I=N.angleAxisMap,M=N.radiusAxisMap;if(I&&M){var D=Aa(I);return C4({x:S,y:j},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,b=this.getTooltipEventType(),x=Lr(w,ti),_={};x&&b==="axis"&&(x.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var S=Py(this.props,this.handleOuterEvent);return ve(ve({},S),_)}},{key:"addListener",value:function(){lw.on(uw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){lw.removeListener(uw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,b,x){for(var _=this.state.formattedGraphicalItems,S=0,j=_.length;S<j;S++){var E=_[S];if(E.item===w||E.props.key===w.key||b===zo(E.item.type)&&x===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,b=this.state.offset,x=b.left,_=b.top,S=b.height,j=b.width;return V.createElement("defs",null,V.createElement("clipPath",{id:w},V.createElement("rect",{x,y:_,height:S,width:j})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(b,x){var _=sI(x,2),S=_[0],j=_[1];return ve(ve({},b),{},He({},S,j.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(b,x){var _=sI(x,2),S=_[0],j=_[1];return ve(ve({},b),{},He({},S,j.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var b;return(b=this.state.xAxisMap)===null||b===void 0||(b=b[w])===null||b===void 0?void 0:b.scale}},{key:"getYScaleByAxisId",value:function(w){var b;return(b=this.state.yAxisMap)===null||b===void 0||(b=b[w])===null||b===void 0?void 0:b.scale}},{key:"getItemByXY",value:function(w){var b=this.state,x=b.formattedGraphicalItems,_=b.activeItem;if(x&&x.length)for(var S=0,j=x.length;S<j;S++){var E=x[S],P=E.props,N=E.item,I=zo(N.type);if(I==="Bar"){var M=(P.data||[]).find(function(W){return ORe(w,W)});if(M)return{graphicalItem:E,payload:M}}else if(I==="RadialBar"){var D=(P.data||[]).find(function(W){return C4(w,W)});if(D)return{graphicalItem:E,payload:D}}else if(Zb(E,_)||Yb(E,_)||dp(E,_)){var z=f4e({graphicalItem:E,activeTooltipItem:_,itemData:N.props.data}),q=N.props.activeIndex===void 0?z:N.props.activeIndex;return{graphicalItem:ve(ve({},E),{},{childIndex:q}),payload:dp(E,_)?N.props.data[z]:E.props.data[z]}}}return null}},{key:"render",value:function(){var w=this,b;if(!vR(this))return null;var x=this.props,_=x.children,S=x.className,j=x.width,E=x.height,P=x.style,N=x.compact,I=x.title,M=x.desc,D=lI(x,sDe),z=$e(D,!1);if(N)return V.createElement(F6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(OS,Xd({},z,{width:j,height:E,title:I,desc:M}),this.renderClipPath(),yR(_,this.renderMap)));if(this.props.accessibilityLayer){var q,W;z.tabIndex=(q=this.props.tabIndex)!==null&&q!==void 0?q:0,z.role=(W=this.props.role)!==null&&W!==void 0?W:"application",z.onKeyDown=function(J){w.accessibilityManager.keyboardEvent(J)},z.onFocus=function(){w.accessibilityManager.focus()}}var X=this.parseEventsOfWrapper();return V.createElement(F6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",Xd({className:De("recharts-wrapper",S),style:ve({position:"relative",cursor:"default",width:j,height:E},P)},X,{ref:function(J){w.container=J},role:(b=z.role)!==null&&b!==void 0?b:"region"}),V.createElement(OS,Xd({},z,{width:j,height:E,title:I,desc:M,style:wDe}),this.renderClipPath(),yR(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),y}(R.Component),He(t,"displayName",n),He(t,"defaultProps",ve({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),He(t,"getDerivedStateFromProps",function(g,y){var w=g.dataKey,b=g.data,x=g.children,_=g.width,S=g.height,j=g.layout,E=g.stackOffset,P=g.margin,N=y.dataStartIndex,I=y.dataEndIndex;if(y.updateId===void 0){var M=dI(g);return ve(ve(ve({},M),{},{updateId:0},v(ve(ve({props:g},M),{},{updateId:0}),y)),{},{prevDataKey:w,prevData:b,prevWidth:_,prevHeight:S,prevLayout:j,prevStackOffset:E,prevMargin:P,prevChildren:x})}if(w!==y.prevDataKey||b!==y.prevData||_!==y.prevWidth||S!==y.prevHeight||j!==y.prevLayout||E!==y.prevStackOffset||!Yu(P,y.prevMargin)){var D=dI(g),z={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},q=ve(ve({},fI(y,b,j)),{},{updateId:y.updateId+1}),W=ve(ve(ve({},D),z),q);return ve(ve(ve({},W),v(ve({props:g},W),y)),{},{prevDataKey:w,prevData:b,prevWidth:_,prevHeight:S,prevLayout:j,prevStackOffset:E,prevMargin:P,prevChildren:x})}if(!xS(x,y.prevChildren)){var X,J,te,K,B=Lr(x,Mc),F=B&&(X=(J=B.props)===null||J===void 0?void 0:J.startIndex)!==null&&X!==void 0?X:N,H=B&&(te=(K=B.props)===null||K===void 0?void 0:K.endIndex)!==null&&te!==void 0?te:I,ne=F!==N||H!==I,Y=!ze(b),ee=Y&&!ne?y.updateId:y.updateId+1;return ve(ve({updateId:ee},v(ve(ve({props:g},y),{},{updateId:ee,dataStartIndex:F,dataEndIndex:H}),y)),{},{prevChildren:x,dataStartIndex:F,dataEndIndex:H})}return null}),He(t,"renderActiveDot",function(g,y){var w;return R.isValidElement(g)?w=R.cloneElement(g,y):Ge(g)?w=g(y):w=V.createElement(nm,y),V.createElement(Xe,{className:"recharts-active-dot",key:y.key},w)}),t},kDe=EP({chartName:"LineChart",GraphicalChild:bf,axisComponents:[{axisType:"xAxis",AxisComp:_f},{axisType:"yAxis",AxisComp:xf}],formatAxisMap:YB}),NDe=EP({chartName:"PieChart",GraphicalChild:wo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:qb},{axisType:"radiusAxis",AxisComp:Wb}],formatAxisMap:K3e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),LDe=EP({chartName:"ComposedChart",GraphicalChild:[bf,Ul,Ho,Qb],axisComponents:[{axisType:"xAxis",AxisComp:_f},{axisType:"yAxis",AxisComp:xf},{axisType:"zAxis",AxisComp:Xb}],formatAxisMap:YB});const Sz={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},RDe={marginBottom:"5px",fontWeight:"bold"},Ez={contentStyle:Sz,labelStyle:RDe,itemStyle:{padding:0}},pI=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],jz=e=>pI[e%pI.length],E0="#46e587",MDe="rgba(70, 229, 135, 0.4)",IDe=({chartData:e,showNumbers:t})=>m.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>m.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[m.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),m.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&m.jsxs("b",{children:[" (",Yt(i),")"]})]})]},n))}),mI=e=>R.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:jz(r)})),[e]),DDe=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=mI(e),o=mI(t),a=o.length>0,s=FT()?mle:ple;return m.jsxs("div",{className:"row align-items-center",children:[m.jsx("div",{className:"col-sm-12 col-md-7",children:m.jsx("div",{style:r??{width:"100%",height:300},children:m.jsx(r?R.Fragment:VC,{children:m.jsxs(NDe,{...r,children:[m.jsx(ti,{formatter:Yt,contentStyle:Sz,itemStyle:{color:"white"}}),m.jsx(wo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((l,u)=>m.jsx(Ka,{fill:l.color,stroke:s},`${l.name}-${u}`))}),a&&m.jsx(wo,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:E0})]})})})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:m.jsx(IDe,{chartData:i,showNumbers:n})})]})},vI=({title:e,...t})=>{const[n,r]=Kt(!1);return m.jsx(Y1,{title:m.jsxs(m.Fragment,{children:[e,m.jsx("div",{className:"float-end",children:m.jsx(Sl,{checked:n,onChange:r,children:"Show numbers"})})]}),children:m.jsx(DDe,{...t,showNumbersInLegend:n})})},$De=({visitsGroups:e})=>{const t=R.useMemo(()=>Object.entries(e),[e]);return t.length===0?null:m.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",children:t.map(([n,r],i)=>m.jsxs("li",{className:"d-inline",children:[m.jsx(I1,{color:Tz(r)}),m.jsxs("strong",{children:[n," (",Yt(r.length),")"]})]},`${n}${i}`))})},FDe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},UDe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},BDe={hourly:wce,daily:Vp,weekly:jce,monthly:_y},jP={hourly:e=>xy(e,"yyyy-MM-dd HH:00"),daily:e=>Ia(e),weekly(e){const t=Ia(Rh(e)),n=Ia(Pce(e));return`${t} - ${n}`},monthly:e=>xy(e,"yyyy-MM")},zDe=e=>{var t;const n=Object.values(e).filter(a=>a.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(a=>os(a[a.length-1].date)),o=AF(i);return((t=[[()=>Vp(r,o)<=2,"hourly"],[()=>_y(r,o)<=1,"daily"],[()=>_y(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},VDe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=wF(t[r],i=>jP[e](os(i.date))),n),{}),HDe=(e,t)=>t.reduce((n,r)=>{const i=jP[e](os(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),WDe=(e,t)=>{const n=Object.values(t).filter(d=>d.length>0).map(d=>[...d].reverse());if(n.length===0)return[];const r=BDe[e],i=jP[e],o=UDe[e],a=n.map(d=>os(d[0].date)),s=n.map(d=>os(d[d.length-1].date)),l=AF(s),u=yce(a),f=r(l,u)+1;return[i(u),...uC(f,d=>i(pce(u,o(d))))]},Tz=e=>{if(e.color)return e.color;const t={main:Ph,highlighted:eS,previous:E0};return e.type?t[e.type]:Ph},gI=(e,t)=>R.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),GDe=(e,t,n)=>{const r=gI(e,"main"),i=gI(e,"highlighted"),o=R.useMemo(()=>n?HDe(t,r):{},[n,t,r]),a=R.useCallback((s,{payload:l})=>{const u=o[l.date]??[];n==null||n(u===i?[]:u)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},Cz=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r})=>{const[i,o]=R.useState(zDe(e)),a=fC(767,r??window.matchMedia),s=R.useMemo(()=>{const d=VDe(i,e),p=Object.keys(d);return WDe(i,e).map(v=>({date:v,...p.reduce((g,y)=>(g[y]=d[y][v]??0,g),{})}))},[i,e]),l=GDe(e,i,t),u=n?R.Fragment:VC,f=R.useMemo(()=>n?{}:{width:"100%",height:a?300:400},[n,a]);return m.jsxs(Er,{children:[m.jsxs(mc,{role:"heading","aria-level":4,children:["Visits over time",m.jsx("div",{className:"float-end",children:m.jsxs(Dp,{children:[m.jsx(Kc,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(Yc,{end:!0,children:Object.entries(FDe).map(([d,p])=>m.jsx(ke,{active:i===d,onClick:()=>o(d),children:p},d))})]})})]}),m.jsxs(pc,{children:[m.jsx(u,{...f,children:m.jsxs(kDe,{data:s,...n,children:[m.jsx(_f,{dataKey:"date"}),m.jsx(xf,{tickFormatter:Yt}),m.jsx(ti,{formatter:Yt,...Ez}),m.jsx(SP,{strokeOpacity:FT()?.1:.9}),Object.entries(e).map(([d,p])=>p.length>0&&m.jsx(bf,{dataKey:d,type:"monotone",stroke:Tz(p),strokeWidth:2,activeDot:p.type==="previous"?void 0:l,strokeDasharray:p.type==="previous"?"8 3":void 0},d))]})}),m.jsx($De,{visitsGroups:e})]})]})},qDe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs(Dp,{children:[m.jsx(Kc,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(Yc,{end:!0,children:[t.map(i=>m.jsxs(ke,{active:i===n,onClick:()=>r(i),children:[m.jsx("b",{children:i})," items per page"]},i)),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{disabled:n===1/0,onClick:()=>r(1/0),children:m.jsx("i",{children:"Clear pagination"})})]})]}),yI=e=>e.startsWith("hidden_"),ZDe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=R.useMemo(()=>Object.entries(e).map(([d,p])=>{const v=(n==null?void 0:n[d])??0,g=(t==null?void 0:t[d])??0,y=yI(d);return{name:d,amount:Math.max(p,g),nonHighlightedAmount:y?null:p-v,highlightedAmount:y?null:v,prevAmount:y?null:g}}),[e,t,n]),l=R.useMemo(()=>{const d=s.reduce((p,{name:v})=>p>v.length?p:v.length,0);return Math.min(150,d*7)},[s]),u=a?R.Fragment:VC,f=R.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return m.jsx(u,{...f,children:m.jsxs(LDe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[m.jsx(_f,{type:"number",dataKey:"amount",tickFormatter:Yt,domain:i?[0,i]:void 0}),m.jsx(xf,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>yI(d)?"":d}),m.jsx(SP,{strokeOpacity:FT()?.05:.9}),m.jsx(ti,{filterNull:!0,...Ez,formatter:(d,p)=>[Yt(d),p==="highlightedAmount"?r:p==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),m.jsx(Ho,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:Ph,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Ka,{fill:dle,stroke:Ph,strokeWidth:2},d.name))}),n&&m.jsx(Ho,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:eS,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Ka,{fill:hle,stroke:eS,strokeWidth:2},d.name))}),t&&m.jsx(Ho,{dataKey:"prevAmount",fill:E0,children:s.map(d=>m.jsx(Ka,{fill:MDe,stroke:E0,strokeWidth:2},d.name))})]})})},YDe=e=>typeof e=="string"?e.toLowerCase():e,KDe=([e])=>e,XDe=([,e])=>e,Cv=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[l,u]=R.useState({}),[f,d]=R.useState(1),[p,v]=R.useState(50),g=R.useCallback((N,I)=>{const M=Object.entries(N),D=l.field?cce(M,([z,q])=>YDe(l.field===Object.keys(I)[0]?z:q)):M;return!l.dir||l.dir==="ASC"?D:[...D].reverse()},[l.dir,l.field]),y=R.useCallback(N=>{const I=N[f-1];if(f<N.length)return I;const M=N[0].length;return[...I,...uC(M-I.length,D=>[`hidden_${D}`,0])]},[f]),w=R.useCallback(N=>m.jsx(bC,{currentPage:f,pagesCount:N,setCurrentPage:d}),[f]),b=R.useCallback((N,I,M,D)=>{const z=g(N,I),q=z.map(KDe),W=M&&Object.entries({...dL(q,q.map(()=>0)),...M}),X=D&&Object.entries({...dL(q,q.map(()=>0)),...D});if(z.length<=p)return{currentPageStats:Object.fromEntries(z),currentPageHighlightedStats:W&&Object.fromEntries(W),currentPagePrevStats:X&&Object.fromEntries(X)};const J=Zu(z,p),te=W&&Zu(W,p),K=X&&Zu(X,p);return{currentPageStats:Object.fromEntries(y(J)),currentPageHighlightedStats:te&&Object.fromEntries(y(te)),currentPagePrevStats:K&&Object.fromEntries(y(K)),pagination:w(J.length),max:Yde(Math.max(...z.map(XDe)))}},[y,g,p,w]),{currentPageStats:x,currentPagePrevStats:_,currentPageHighlightedStats:S,pagination:j,max:E}=R.useMemo(()=>b(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[b,n,t,i,e]),P=R.useMemo(()=>Object.keys(x),[x]);return m.jsx(Y1,{title:m.jsxs(m.Fragment,{children:[r,m.jsx("div",{className:"float-end",children:m.jsx(zp,{isButton:!1,right:!0,items:i,order:l,onChange:(N,I)=>{u({field:N,dir:I}),d(1)}})}),a&&Object.keys(e).length>50&&m.jsx("div",{className:"float-end",children:m.jsx(qDe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:p,setValue:N=>{v(N),d(1)}})}),o&&m.jsx("div",{className:"float-end",children:o(j?P:void 0)})]}),footer:j,children:m.jsx(ZDe,{stats:x,prevStats:_,highlightedStats:S,max:E,...s})})},bI=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&ss(t[e])||""},Pz=()=>{const e=Oo(),t=Up(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,l=R.useMemo(()=>({dateRange:n!=null||r!=null?FF(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[r,o,a,i,n]),u=R.useCallback(f=>{const{dateRange:d,visitsFilter:p={},loadPrevInterval:v}=OF(l,f),{excludeBots:g,orphanVisitsType:y}=p,w={...s,startDate:bI("startDate",d),endDate:bI("endDate",d),excludeBots:g===void 0?void 0:uS(g),orphanVisitsType:y,loadPrevInterval:v===void 0?void 0:uS(v)},b=ob(w),x=b?`?${b}`:"";e(x,{replace:!0,relative:"route"})},[l,e,s]);return[l,u]};function Az(e,t){const n=R.useRef(t);R.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 QDe=1;function JDe(e){return Object.freeze({__version:QDe,map:e})}function e8e(e,t){return Object.freeze({...e,...t})}const kz=R.createContext(null),Nz=kz.Provider;function Lz(){const e=R.useContext(kz);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function t8e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return R.useImperativeHandle(r,()=>i),n.children==null?null:V.createElement(Nz,{value:o},n.children)}return R.forwardRef(t)}function n8e(e){function t(n,r){const[i,o]=R.useState(!1),{instance:a}=e(n,o).current;R.useImperativeHandle(r,()=>a),R.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?H0.createPortal(n.children,s):null}return R.forwardRef(t)}function r8e(e){function t(n,r){const{instance:i}=e(n).current;return R.useImperativeHandle(r,()=>i),null}return R.forwardRef(t)}function Rz(e,t){const n=R.useRef();R.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 TP(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function i8e(e,t){return function(n,r){const i=Lz(),o=e(TP(n,i),i);return Az(i.map,n.attribution),Rz(o.current,n.eventHandlers),t(o.current,i,n,r),o}}var zE={exports:{}};/* @preserve
|
||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||
*/(function(e,t){(function(n,r){r(t)})(Mu,function(n){var r="1.9.4";function i(c){var h,O,T,k;for(O=1,T=arguments.length;O<T;O++){k=arguments[O];for(h in k)c[h]=k[h]}return c}var o=Object.create||function(){function c(){}return function(h){return c.prototype=h,new c}}();function a(c,h){var O=Array.prototype.slice;if(c.bind)return c.bind.apply(c,O.call(arguments,1));var T=O.call(arguments,2);return function(){return c.apply(h,T.length?T.concat(O.call(arguments)):arguments)}}var s=0;function l(c){return"_leaflet_id"in c||(c._leaflet_id=++s),c._leaflet_id}function u(c,h,O){var T,k,G,re;return re=function(){T=!1,k&&(G.apply(O,k),k=!1)},G=function(){T?k=arguments:(c.apply(O,arguments),setTimeout(re,h),T=!0)},G}function f(c,h,O){var T=h[1],k=h[0],G=T-k;return c===T&&O?c:((c-k)%G+G)%G+k}function d(){return!1}function p(c,h){if(h===!1)return c;var O=Math.pow(10,h===void 0?6:h);return Math.round(c*O)/O}function v(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function g(c){return v(c).split(/\s+/)}function y(c,h){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var O in h)c.options[O]=h[O];return c.options}function w(c,h,O){var T=[];for(var k in c)T.push(encodeURIComponent(O?k.toUpperCase():k)+"="+encodeURIComponent(c[k]));return(!h||h.indexOf("?")===-1?"?":"&")+T.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function x(c,h){return c.replace(b,function(O,T){var k=h[T];if(k===void 0)throw new Error("No value provided for variable "+O);return typeof k=="function"&&(k=k(h)),k})}var _=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function S(c,h){for(var O=0;O<c.length;O++)if(c[O]===h)return O;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function E(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var P=0;function N(c){var h=+new Date,O=Math.max(0,16-(h-P));return P=h+O,window.setTimeout(c,O)}var I=window.requestAnimationFrame||E("RequestAnimationFrame")||N,M=window.cancelAnimationFrame||E("CancelAnimationFrame")||E("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function D(c,h,O){if(O&&I===N)c.call(h);else return I.call(window,a(c,h))}function z(c){c&&M.call(window,c)}var q={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:u,wrapNum:f,falseFn:d,formatNum:p,trim:v,splitWords:g,setOptions:y,getParamString:w,template:x,isArray:_,indexOf:S,emptyImageUrl:j,requestFn:I,cancelFn:M,requestAnimFrame:D,cancelAnimFrame:z};function W(){}W.extend=function(c){var h=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},O=h.__super__=this.prototype,T=o(O);T.constructor=h,h.prototype=T;for(var k in this)Object.prototype.hasOwnProperty.call(this,k)&&k!=="prototype"&&k!=="__super__"&&(h[k]=this[k]);return c.statics&&i(h,c.statics),c.includes&&(X(c.includes),i.apply(null,[T].concat(c.includes))),i(T,c),delete T.statics,delete T.includes,T.options&&(T.options=O.options?o(O.options):{},i(T.options,c.options)),T._initHooks=[],T.callInitHooks=function(){if(!this._initHooksCalled){O.callInitHooks&&O.callInitHooks.call(this),this._initHooksCalled=!0;for(var G=0,re=T._initHooks.length;G<re;G++)T._initHooks[G].call(this)}},h},W.include=function(c){var h=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=h,this.mergeOptions(c.options)),this},W.mergeOptions=function(c){return i(this.prototype.options,c),this},W.addInitHook=function(c){var h=Array.prototype.slice.call(arguments,1),O=typeof c=="function"?c:function(){this[c].apply(this,h)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(O),this};function X(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=_(c)?c:[c];for(var h=0;h<c.length;h++)c[h]===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 J={on:function(c,h,O){if(typeof c=="object")for(var T in c)this._on(T,c[T],h);else{c=g(c);for(var k=0,G=c.length;k<G;k++)this._on(c[k],h,O)}return this},off:function(c,h,O){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var T in c)this._off(T,c[T],h);else{c=g(c);for(var k=arguments.length===1,G=0,re=c.length;G<re;G++)k?this._off(c[G]):this._off(c[G],h,O)}return this},_on:function(c,h,O,T){if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}if(this._listens(c,h,O)===!1){O===this&&(O=void 0);var k={fn:h,ctx:O};T&&(k.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(k)}},_off:function(c,h,O){var T,k,G;if(this._events&&(T=this._events[c],!!T)){if(arguments.length===1){if(this._firingCount)for(k=0,G=T.length;k<G;k++)T[k].fn=d;delete this._events[c];return}if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}var re=this._listens(c,h,O);if(re!==!1){var ue=T[re];this._firingCount&&(ue.fn=d,this._events[c]=T=T.slice()),T.splice(re,1)}}},fire:function(c,h,O){if(!this.listens(c,O))return this;var T=i({},h,{type:c,target:this,sourceTarget:h&&h.sourceTarget||this});if(this._events){var k=this._events[c];if(k){this._firingCount=this._firingCount+1||1;for(var G=0,re=k.length;G<re;G++){var ue=k[G],de=ue.fn;ue.once&&this.off(c,de,ue.ctx),de.call(ue.ctx||this,T)}this._firingCount--}}return O&&this._propagateEvent(T),this},listens:function(c,h,O,T){typeof c!="string"&&console.warn('"string" type argument expected');var k=h;typeof h!="function"&&(T=!!h,k=void 0,O=void 0);var G=this._events&&this._events[c];if(G&&G.length&&this._listens(c,k,O)!==!1)return!0;if(T){for(var re in this._eventParents)if(this._eventParents[re].listens(c,h,O,T))return!0}return!1},_listens:function(c,h,O){if(!this._events)return!1;var T=this._events[c]||[];if(!h)return!!T.length;O===this&&(O=void 0);for(var k=0,G=T.length;k<G;k++)if(T[k].fn===h&&T[k].ctx===O)return k;return!1},once:function(c,h,O){if(typeof c=="object")for(var T in c)this._on(T,c[T],h,!0);else{c=g(c);for(var k=0,G=c.length;k<G;k++)this._on(c[k],h,O,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[l(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[l(c)],this},_propagateEvent:function(c){for(var h in this._eventParents)this._eventParents[h].fire(c.type,i({layer:c.target,propagatedFrom:c.target},c),!0)}};J.addEventListener=J.on,J.removeEventListener=J.clearAllEventListeners=J.off,J.addOneTimeEventListener=J.once,J.fireEvent=J.fire,J.hasEventListeners=J.listens;var te=W.extend(J);function K(c,h,O){this.x=O?Math.round(c):c,this.y=O?Math.round(h):h}var B=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};K.prototype={clone:function(){return new K(this.x,this.y)},add:function(c){return this.clone()._add(F(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(F(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new K(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new K(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(c){c=F(c);var h=c.x-this.x,O=c.y-this.y;return Math.sqrt(h*h+O*O)},equals:function(c){return c=F(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=F(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function F(c,h,O){return c instanceof K?c:_(c)?new K(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new K(c.x,c.y):new K(c,h,O)}function H(c,h){if(c)for(var O=h?[c,h]:c,T=0,k=O.length;T<k;T++)this.extend(O[T])}H.prototype={extend:function(c){var h,O;if(!c)return this;if(c instanceof K||typeof c[0]=="number"||"x"in c)h=O=F(c);else if(c=ne(c),h=c.min,O=c.max,!h||!O)return this;return!this.min&&!this.max?(this.min=h.clone(),this.max=O.clone()):(this.min.x=Math.min(h.x,this.min.x),this.max.x=Math.max(O.x,this.max.x),this.min.y=Math.min(h.y,this.min.y),this.max.y=Math.max(O.y,this.max.y)),this},getCenter:function(c){return F((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return F(this.min.x,this.max.y)},getTopRight:function(){return F(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var h,O;return typeof c[0]=="number"||c instanceof K?c=F(c):c=ne(c),c instanceof H?(h=c.min,O=c.max):h=O=c,h.x>=this.min.x&&O.x<=this.max.x&&h.y>=this.min.y&&O.y<=this.max.y},intersects:function(c){c=ne(c);var h=this.min,O=this.max,T=c.min,k=c.max,G=k.x>=h.x&&T.x<=O.x,re=k.y>=h.y&&T.y<=O.y;return G&&re},overlaps:function(c){c=ne(c);var h=this.min,O=this.max,T=c.min,k=c.max,G=k.x>h.x&&T.x<O.x,re=k.y>h.y&&T.y<O.y;return G&&re},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var h=this.min,O=this.max,T=Math.abs(h.x-O.x)*c,k=Math.abs(h.y-O.y)*c;return ne(F(h.x-T,h.y-k),F(O.x+T,O.y+k))},equals:function(c){return c?(c=ne(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function ne(c,h){return!c||c instanceof H?c:new H(c,h)}function Y(c,h){if(c)for(var O=h?[c,h]:c,T=0,k=O.length;T<k;T++)this.extend(O[T])}Y.prototype={extend:function(c){var h=this._southWest,O=this._northEast,T,k;if(c instanceof ae)T=c,k=c;else if(c instanceof Y){if(T=c._southWest,k=c._northEast,!T||!k)return this}else return c?this.extend(oe(c)||ee(c)):this;return!h&&!O?(this._southWest=new ae(T.lat,T.lng),this._northEast=new ae(k.lat,k.lng)):(h.lat=Math.min(T.lat,h.lat),h.lng=Math.min(T.lng,h.lng),O.lat=Math.max(k.lat,O.lat),O.lng=Math.max(k.lng,O.lng)),this},pad:function(c){var h=this._southWest,O=this._northEast,T=Math.abs(h.lat-O.lat)*c,k=Math.abs(h.lng-O.lng)*c;return new Y(new ae(h.lat-T,h.lng-k),new ae(O.lat+T,O.lng+k))},getCenter:function(){return new ae((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 ae(this.getNorth(),this.getWest())},getSouthEast:function(){return new ae(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof ae||"lat"in c?c=oe(c):c=ee(c);var h=this._southWest,O=this._northEast,T,k;return c instanceof Y?(T=c.getSouthWest(),k=c.getNorthEast()):T=k=c,T.lat>=h.lat&&k.lat<=O.lat&&T.lng>=h.lng&&k.lng<=O.lng},intersects:function(c){c=ee(c);var h=this._southWest,O=this._northEast,T=c.getSouthWest(),k=c.getNorthEast(),G=k.lat>=h.lat&&T.lat<=O.lat,re=k.lng>=h.lng&&T.lng<=O.lng;return G&&re},overlaps:function(c){c=ee(c);var h=this._southWest,O=this._northEast,T=c.getSouthWest(),k=c.getNorthEast(),G=k.lat>h.lat&&T.lat<O.lat,re=k.lng>h.lng&&T.lng<O.lng;return G&&re},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,h){return c?(c=ee(c),this._southWest.equals(c.getSouthWest(),h)&&this._northEast.equals(c.getNorthEast(),h)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ee(c,h){return c instanceof Y?c:new Y(c,h)}function ae(c,h,O){if(isNaN(c)||isNaN(h))throw new Error("Invalid LatLng object: ("+c+", "+h+")");this.lat=+c,this.lng=+h,O!==void 0&&(this.alt=+O)}ae.prototype={equals:function(c,h){if(!c)return!1;c=oe(c);var O=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return O<=(h===void 0?1e-9:h)},toString:function(c){return"LatLng("+p(this.lat,c)+", "+p(this.lng,c)+")"},distanceTo:function(c){return C.distance(this,oe(c))},wrap:function(){return C.wrapLatLng(this)},toBounds:function(c){var h=180*c/40075017,O=h/Math.cos(Math.PI/180*this.lat);return ee([this.lat-h,this.lng-O],[this.lat+h,this.lng+O])},clone:function(){return new ae(this.lat,this.lng,this.alt)}};function oe(c,h,O){return c instanceof ae?c:_(c)&&typeof c[0]!="object"?c.length===3?new ae(c[0],c[1],c[2]):c.length===2?new ae(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new ae(c.lat,"lng"in c?c.lng:c.lon,c.alt):h===void 0?null:new ae(c,h,O)}var fe={latLngToPoint:function(c,h){var O=this.projection.project(c),T=this.scale(h);return this.transformation._transform(O,T)},pointToLatLng:function(c,h){var O=this.scale(h),T=this.transformation.untransform(c,O);return this.projection.unproject(T)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var h=this.projection.bounds,O=this.scale(c),T=this.transformation.transform(h.min,O),k=this.transformation.transform(h.max,O);return new H(T,k)},infinite:!1,wrapLatLng:function(c){var h=this.wrapLng?f(c.lng,this.wrapLng,!0):c.lng,O=this.wrapLat?f(c.lat,this.wrapLat,!0):c.lat,T=c.alt;return new ae(O,h,T)},wrapLatLngBounds:function(c){var h=c.getCenter(),O=this.wrapLatLng(h),T=h.lat-O.lat,k=h.lng-O.lng;if(T===0&&k===0)return c;var G=c.getSouthWest(),re=c.getNorthEast(),ue=new ae(G.lat-T,G.lng-k),de=new ae(re.lat-T,re.lng-k);return new Y(ue,de)}},C=i({},fe,{wrapLng:[-180,180],R:6371e3,distance:function(c,h){var O=Math.PI/180,T=c.lat*O,k=h.lat*O,G=Math.sin((h.lat-c.lat)*O/2),re=Math.sin((h.lng-c.lng)*O/2),ue=G*G+Math.cos(T)*Math.cos(k)*re*re,de=2*Math.atan2(Math.sqrt(ue),Math.sqrt(1-ue));return this.R*de}}),A=6378137,U={R:A,MAX_LATITUDE:85.0511287798,project:function(c){var h=Math.PI/180,O=this.MAX_LATITUDE,T=Math.max(Math.min(O,c.lat),-O),k=Math.sin(T*h);return new K(this.R*c.lng*h,this.R*Math.log((1+k)/(1-k))/2)},unproject:function(c){var h=180/Math.PI;return new ae((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*h,c.x*h/this.R)},bounds:function(){var c=A*Math.PI;return new H([-c,-c],[c,c])}()};function Q(c,h,O,T){if(_(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=h,this._c=O,this._d=T}Q.prototype={transform:function(c,h){return this._transform(c.clone(),h)},_transform:function(c,h){return h=h||1,c.x=h*(this._a*c.x+this._b),c.y=h*(this._c*c.y+this._d),c},untransform:function(c,h){return h=h||1,new K((c.x/h-this._b)/this._a,(c.y/h-this._d)/this._c)}};function Z(c,h,O,T){return new Q(c,h,O,T)}var ie=i({},C,{code:"EPSG:3857",projection:U,transformation:function(){var c=.5/(Math.PI*U.R);return Z(c,.5,-c,.5)}()}),he=i({},ie,{code:"EPSG:900913"});function Se(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function se(c,h){var O="",T,k,G,re,ue,de;for(T=0,G=c.length;T<G;T++){for(ue=c[T],k=0,re=ue.length;k<re;k++)de=ue[k],O+=(k?"L":"M")+de.x+" "+de.y;O+=h?Ue.svg?"z":"x":""}return O||"M0 0"}var pe=document.documentElement.style,me="ActiveXObject"in window,xe=me&&!document.addEventListener,Ce="msLaunchUri"in navigator&&!("documentMode"in document),je=Rn("webkit"),Pe=Rn("android"),le=Rn("android 2")||Rn("android 3"),ce=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=Pe&&Rn("Google")&&ce<537&&!("AudioNode"in window),ge=!!window.opera,we=!Ce&&Rn("chrome"),Ae=Rn("gecko")&&!je&&!ge&&!me,Ne=!we&&Rn("safari"),et=Rn("phantom"),nt="OTransition"in pe,Ye=navigator.platform.indexOf("Win")===0,Gt=me&&"transition"in pe,Ft="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!le,bn="MozPerspective"in pe,Qn=!window.L_DISABLE_3D&&(Gt||Ft||bn)&&!nt&&!et,Yi=typeof orientation<"u"||Rn("mobile"),kn=Yi&&je,Sf=Yi&&Ft,Ki=!window.PointerEvent&&window.MSPointerEvent,sm=!!(window.PointerEvent||Ki),lm="ontouchstart"in window||!!window.TouchEvent,um=!window.L_NO_TOUCH&&(lm||sm),Ef=Yi&&ge,Ss=Yi&&Ae,rn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Xt=function(){var c=!1;try{var h=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",d,h),window.removeEventListener("testPassiveEventSupport",d,h)}catch{}return c}(),Jn=function(){return!!document.createElement("canvas").getContext}(),Nn=!!(document.createElementNS&&Se("svg").createSVGRect),Ln=!!Nn&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),un=!Nn&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var h=c.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),Oi=navigator.platform.indexOf("Mac")===0,Si=navigator.platform.indexOf("Linux")===0;function Rn(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var Ue={ie:me,ielt9:xe,edge:Ce,webkit:je,android:Pe,android23:le,androidStock:ye,opera:ge,chrome:we,gecko:Ae,safari:Ne,phantom:et,opera12:nt,win:Ye,ie3d:Gt,webkit3d:Ft,gecko3d:bn,any3d:Qn,mobile:Yi,mobileWebkit:kn,mobileWebkit3d:Sf,msPointer:Ki,pointer:sm,touch:um,touchNative:lm,mobileOpera:Ef,mobileGecko:Ss,retina:rn,passiveEvents:Xt,canvas:Jn,svg:Nn,vml:un,inlineSvg:Ln,mac:Oi,linux:Si},$P=Ue.msPointer?"MSPointerDown":"pointerdown",FP=Ue.msPointer?"MSPointerMove":"pointermove",UP=Ue.msPointer?"MSPointerUp":"pointerup",BP=Ue.msPointer?"MSPointerCancel":"pointercancel",t_={touchstart:$P,touchmove:FP,touchend:UP,touchcancel:BP},zP={touchstart:zV,touchmove:cm,touchend:cm,touchcancel:cm},zl={},VP=!1;function DV(c,h,O){return h==="touchstart"&&BV(),zP[h]?(O=zP[h].bind(this,O),c.addEventListener(t_[h],O,!1),O):(console.warn("wrong event specified:",h),d)}function $V(c,h,O){if(!t_[h]){console.warn("wrong event specified:",h);return}c.removeEventListener(t_[h],O,!1)}function FV(c){zl[c.pointerId]=c}function UV(c){zl[c.pointerId]&&(zl[c.pointerId]=c)}function HP(c){delete zl[c.pointerId]}function BV(){VP||(document.addEventListener($P,FV,!0),document.addEventListener(FP,UV,!0),document.addEventListener(UP,HP,!0),document.addEventListener(BP,HP,!0),VP=!0)}function cm(c,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var O in zl)h.touches.push(zl[O]);h.changedTouches=[h],c(h)}}function zV(c,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&Mn(h),cm(c,h)}function VV(c){var h={},O,T;for(T in c)O=c[T],h[T]=O&&O.bind?O.bind(c):O;return c=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var HV=200;function WV(c,h){c.addEventListener("dblclick",h);var O=0,T;function k(G){if(G.detail!==1){T=G.detail;return}if(!(G.pointerType==="mouse"||G.sourceCapabilities&&!G.sourceCapabilities.firesTouchEvents)){var re=YP(G);if(!(re.some(function(de){return de instanceof HTMLLabelElement&&de.attributes.for})&&!re.some(function(de){return de instanceof HTMLInputElement||de instanceof HTMLSelectElement}))){var ue=Date.now();ue-O<=HV?(T++,T===2&&h(VV(G))):T=1,O=ue}}}return c.addEventListener("click",k),{dblclick:h,simDblclick:k}}function GV(c,h){c.removeEventListener("dblclick",h.dblclick),c.removeEventListener("click",h.simDblclick)}var n_=hm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),jf=hm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),WP=jf==="webkitTransition"||jf==="OTransition"?jf+"End":"transitionend";function GP(c){return typeof c=="string"?document.getElementById(c):c}function Tf(c,h){var O=c.style[h]||c.currentStyle&&c.currentStyle[h];if((!O||O==="auto")&&document.defaultView){var T=document.defaultView.getComputedStyle(c,null);O=T?T[h]:null}return O==="auto"?null:O}function ft(c,h,O){var T=document.createElement(c);return T.className=h||"",O&&O.appendChild(T),T}function Ut(c){var h=c.parentNode;h&&h.removeChild(c)}function fm(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function Vl(c){var h=c.parentNode;h&&h.lastChild!==c&&h.appendChild(c)}function Hl(c){var h=c.parentNode;h&&h.firstChild!==c&&h.insertBefore(c,h.firstChild)}function r_(c,h){if(c.classList!==void 0)return c.classList.contains(h);var O=dm(c);return O.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(O)}function Je(c,h){if(c.classList!==void 0)for(var O=g(h),T=0,k=O.length;T<k;T++)c.classList.add(O[T]);else if(!r_(c,h)){var G=dm(c);i_(c,(G?G+" ":"")+h)}}function Qt(c,h){c.classList!==void 0?c.classList.remove(h):i_(c,v((" "+dm(c)+" ").replace(" "+h+" "," ")))}function i_(c,h){c.className.baseVal===void 0?c.className=h:c.className.baseVal=h}function dm(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function qr(c,h){"opacity"in c.style?c.style.opacity=h:"filter"in c.style&&qV(c,h)}function qV(c,h){var O=!1,T="DXImageTransform.Microsoft.Alpha";try{O=c.filters.item(T)}catch{if(h===1)return}h=Math.round(h*100),O?(O.Enabled=h!==100,O.Opacity=h):c.style.filter+=" progid:"+T+"(opacity="+h+")"}function hm(c){for(var h=document.documentElement.style,O=0;O<c.length;O++)if(c[O]in h)return c[O];return!1}function Es(c,h,O){var T=h||new K(0,0);c.style[n_]=(Ue.ie3d?"translate("+T.x+"px,"+T.y+"px)":"translate3d("+T.x+"px,"+T.y+"px,0)")+(O?" scale("+O+")":"")}function on(c,h){c._leaflet_pos=h,Ue.any3d?Es(c,h):(c.style.left=h.x+"px",c.style.top=h.y+"px")}function js(c){return c._leaflet_pos||new K(0,0)}var Cf,Pf,o_;if("onselectstart"in document)Cf=function(){Ke(window,"selectstart",Mn)},Pf=function(){xt(window,"selectstart",Mn)};else{var Af=hm(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Cf=function(){if(Af){var c=document.documentElement.style;o_=c[Af],c[Af]="none"}},Pf=function(){Af&&(document.documentElement.style[Af]=o_,o_=void 0)}}function a_(){Ke(window,"dragstart",Mn)}function s_(){xt(window,"dragstart",Mn)}var pm,l_;function u_(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(mm(),pm=c,l_=c.style.outlineStyle,c.style.outlineStyle="none",Ke(window,"keydown",mm))}function mm(){pm&&(pm.style.outlineStyle=l_,pm=void 0,l_=void 0,xt(window,"keydown",mm))}function qP(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function c_(c){var h=c.getBoundingClientRect();return{x:h.width/c.offsetWidth||1,y:h.height/c.offsetHeight||1,boundingClientRect:h}}var ZV={__proto__:null,TRANSFORM:n_,TRANSITION:jf,TRANSITION_END:WP,get:GP,getStyle:Tf,create:ft,remove:Ut,empty:fm,toFront:Vl,toBack:Hl,hasClass:r_,addClass:Je,removeClass:Qt,setClass:i_,getClass:dm,setOpacity:qr,testProp:hm,setTransform:Es,setPosition:on,getPosition:js,get disableTextSelection(){return Cf},get enableTextSelection(){return Pf},disableImageDrag:a_,enableImageDrag:s_,preventOutline:u_,restoreOutline:mm,getSizedParentNode:qP,getScale:c_};function Ke(c,h,O,T){if(h&&typeof h=="object")for(var k in h)d_(c,k,h[k],O);else{h=g(h);for(var G=0,re=h.length;G<re;G++)d_(c,h[G],O,T)}return this}var Xi="_leaflet_events";function xt(c,h,O,T){if(arguments.length===1)ZP(c),delete c[Xi];else if(h&&typeof h=="object")for(var k in h)h_(c,k,h[k],O);else if(h=g(h),arguments.length===2)ZP(c,function(ue){return S(h,ue)!==-1});else for(var G=0,re=h.length;G<re;G++)h_(c,h[G],O,T);return this}function ZP(c,h){for(var O in c[Xi]){var T=O.split(/\d/)[0];(!h||h(T))&&h_(c,T,null,null,O)}}var f_={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function d_(c,h,O,T){var k=h+l(O)+(T?"_"+l(T):"");if(c[Xi]&&c[Xi][k])return this;var G=function(ue){return O.call(T||c,ue||window.event)},re=G;!Ue.touchNative&&Ue.pointer&&h.indexOf("touch")===0?G=DV(c,h,G):Ue.touch&&h==="dblclick"?G=WV(c,G):"addEventListener"in c?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?c.addEventListener(f_[h]||h,G,Ue.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(G=function(ue){ue=ue||window.event,m_(c,ue)&&re(ue)},c.addEventListener(f_[h],G,!1)):c.addEventListener(h,re,!1):c.attachEvent("on"+h,G),c[Xi]=c[Xi]||{},c[Xi][k]=G}function h_(c,h,O,T,k){k=k||h+l(O)+(T?"_"+l(T):"");var G=c[Xi]&&c[Xi][k];if(!G)return this;!Ue.touchNative&&Ue.pointer&&h.indexOf("touch")===0?$V(c,h,G):Ue.touch&&h==="dblclick"?GV(c,G):"removeEventListener"in c?c.removeEventListener(f_[h]||h,G,!1):c.detachEvent("on"+h,G),c[Xi][k]=null}function Ts(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function p_(c){return d_(c,"wheel",Ts),this}function kf(c){return Ke(c,"mousedown touchstart dblclick contextmenu",Ts),c._leaflet_disable_click=!0,this}function Mn(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function Cs(c){return Mn(c),Ts(c),this}function YP(c){if(c.composedPath)return c.composedPath();for(var h=[],O=c.target;O;)h.push(O),O=O.parentNode;return h}function KP(c,h){if(!h)return new K(c.clientX,c.clientY);var O=c_(h),T=O.boundingClientRect;return new K((c.clientX-T.left)/O.x-h.clientLeft,(c.clientY-T.top)/O.y-h.clientTop)}var YV=Ue.linux&&Ue.chrome?window.devicePixelRatio:Ue.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function XP(c){return Ue.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/YV:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function m_(c,h){var O=h.relatedTarget;if(!O)return!0;try{for(;O&&O!==c;)O=O.parentNode}catch{return!1}return O!==c}var KV={__proto__:null,on:Ke,off:xt,stopPropagation:Ts,disableScrollPropagation:p_,disableClickPropagation:kf,preventDefault:Mn,stop:Cs,getPropagationPath:YP,getMousePosition:KP,getWheelDelta:XP,isExternalTarget:m_,addListener:Ke,removeListener:xt},QP=te.extend({run:function(c,h,O,T){this.stop(),this._el=c,this._inProgress=!0,this._duration=O||.25,this._easeOutPower=1/Math.max(T||.5,.2),this._startPos=js(c),this._offset=h.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=D(this._animate,this),this._step()},_step:function(c){var h=+new Date-this._startTime,O=this._duration*1e3;h<O?this._runFrame(this._easeOut(h/O),c):(this._runFrame(1),this._complete())},_runFrame:function(c,h){var O=this._startPos.add(this._offset.multiplyBy(c));h&&O._round(),on(this._el,O),this.fire("step")},_complete:function(){z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),lt=te.extend({options:{crs:ie,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,h){h=y(this,h),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),h.maxBounds&&this.setMaxBounds(h.maxBounds),h.zoom!==void 0&&(this._zoom=this._limitZoom(h.zoom)),h.center&&h.zoom!==void 0&&this.setView(oe(h.center),h.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=jf&&Ue.any3d&&!Ue.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ke(this._proxy,WP,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,h,O){if(h=h===void 0?this._zoom:this._limitZoom(h),c=this._limitCenter(oe(c),h,this.options.maxBounds),O=O||{},this._stop(),this._loaded&&!O.reset&&O!==!0){O.animate!==void 0&&(O.zoom=i({animate:O.animate},O.zoom),O.pan=i({animate:O.animate,duration:O.duration},O.pan));var T=this._zoom!==h?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,h,O.zoom):this._tryAnimatedPan(c,O.pan);if(T)return clearTimeout(this._sizeTimer),this}return this._resetView(c,h,O.pan&&O.pan.noMoveStart),this},setZoom:function(c,h){return this._loaded?this.setView(this.getCenter(),c,{zoom:h}):(this._zoom=c,this)},zoomIn:function(c,h){return c=c||(Ue.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,h)},zoomOut:function(c,h){return c=c||(Ue.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,h)},setZoomAround:function(c,h,O){var T=this.getZoomScale(h),k=this.getSize().divideBy(2),G=c instanceof K?c:this.latLngToContainerPoint(c),re=G.subtract(k).multiplyBy(1-1/T),ue=this.containerPointToLatLng(k.add(re));return this.setView(ue,h,{zoom:O})},_getBoundsCenterZoom:function(c,h){h=h||{},c=c.getBounds?c.getBounds():ee(c);var O=F(h.paddingTopLeft||h.padding||[0,0]),T=F(h.paddingBottomRight||h.padding||[0,0]),k=this.getBoundsZoom(c,!1,O.add(T));if(k=typeof h.maxZoom=="number"?Math.min(h.maxZoom,k):k,k===1/0)return{center:c.getCenter(),zoom:k};var G=T.subtract(O).divideBy(2),re=this.project(c.getSouthWest(),k),ue=this.project(c.getNorthEast(),k),de=this.unproject(re.add(ue).divideBy(2).add(G),k);return{center:de,zoom:k}},fitBounds:function(c,h){if(c=ee(c),!c.isValid())throw new Error("Bounds are not valid.");var O=this._getBoundsCenterZoom(c,h);return this.setView(O.center,O.zoom,h)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,h){return this.setView(c,this._zoom,{pan:h})},panBy:function(c,h){if(c=F(c).round(),h=h||{},!c.x&&!c.y)return this.fire("moveend");if(h.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new QP,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),h.noMoveStart||this.fire("movestart"),h.animate!==!1){Je(this._mapPane,"leaflet-pan-anim");var O=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,O,h.duration||.25,h.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,h,O){if(O=O||{},O.animate===!1||!Ue.any3d)return this.setView(c,h,O);this._stop();var T=this.project(this.getCenter()),k=this.project(c),G=this.getSize(),re=this._zoom;c=oe(c),h=h===void 0?re:h;var ue=Math.max(G.x,G.y),de=ue*this.getZoomScale(re,h),_e=k.distanceTo(T)||1,Le=1.42,Ve=Le*Le;function tt(an){var Tm=an?-1:1,$H=an?de:ue,FH=de*de-ue*ue+Tm*Ve*Ve*_e*_e,UH=2*$H*Ve*_e,j_=FH/UH,NA=Math.sqrt(j_*j_+1)-j_,BH=NA<1e-9?-18:Math.log(NA);return BH}function er(an){return(Math.exp(an)-Math.exp(-an))/2}function _n(an){return(Math.exp(an)+Math.exp(-an))/2}function Yr(an){return er(an)/_n(an)}var pr=tt(0);function Kl(an){return ue*(_n(pr)/_n(pr+Le*an))}function RH(an){return ue*(_n(pr)*Yr(pr+Le*an)-er(pr))/Ve}function MH(an){return 1-Math.pow(1-an,1.5)}var IH=Date.now(),AA=(tt(1)-pr)/Le,DH=O.duration?1e3*O.duration:1e3*AA*.8;function kA(){var an=(Date.now()-IH)/DH,Tm=MH(an)*AA;an<=1?(this._flyToFrame=D(kA,this),this._move(this.unproject(T.add(k.subtract(T).multiplyBy(RH(Tm)/_e)),re),this.getScaleZoom(ue/Kl(Tm),re),{flyTo:!0})):this._move(c,h)._moveEnd(!0)}return this._moveStart(!0,O.noMoveStart),kA.call(this),this},flyToBounds:function(c,h){var O=this._getBoundsCenterZoom(c,h);return this.flyTo(O.center,O.zoom,h)},setMaxBounds:function(c){return c=ee(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var h=this.options.minZoom;return this.options.minZoom=c,this._loaded&&h!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var h=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&h!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,h){this._enforcingBounds=!0;var O=this.getCenter(),T=this._limitCenter(O,this._zoom,ee(c));return O.equals(T)||this.panTo(T,h),this._enforcingBounds=!1,this},panInside:function(c,h){h=h||{};var O=F(h.paddingTopLeft||h.padding||[0,0]),T=F(h.paddingBottomRight||h.padding||[0,0]),k=this.project(this.getCenter()),G=this.project(c),re=this.getPixelBounds(),ue=ne([re.min.add(O),re.max.subtract(T)]),de=ue.getSize();if(!ue.contains(G)){this._enforcingBounds=!0;var _e=G.subtract(ue.getCenter()),Le=ue.extend(G).getSize().subtract(de);k.x+=_e.x<0?-Le.x:Le.x,k.y+=_e.y<0?-Le.y:Le.y,this.panTo(this.unproject(k),h),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var O=this.getSize(),T=h.divideBy(2).round(),k=O.divideBy(2).round(),G=T.subtract(k);return!G.x&&!G.y?this:(c.animate&&c.pan?this.panBy(G):(c.pan&&this._rawPanBy(G),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:h,newSize:O}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var h=a(this._handleGeolocationResponse,this),O=a(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,O,c):navigator.geolocation.getCurrentPosition(h,O,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var h=c.code,O=c.message||(h===1?"permission denied":h===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:h,message:"Geolocation error: "+O+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var h=c.coords.latitude,O=c.coords.longitude,T=new ae(h,O),k=T.toBounds(c.coords.accuracy*2),G=this._locateOptions;if(G.setView){var re=this.getBoundsZoom(k);this.setView(T,G.maxZoom?Math.min(re,G.maxZoom):re)}var ue={latlng:T,bounds:k,timestamp:c.timestamp};for(var de in c.coords)typeof c.coords[de]=="number"&&(ue[de]=c.coords[de]);this.fire("locationfound",ue)}},addHandler:function(c,h){if(!h)return this;var O=this[c]=new h(this);return this._handlers.push(O),this.options[c]&&O.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(),Ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)Ut(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,h){var O="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),T=ft("div",O,h||this._mapPane);return c&&(this._panes[c]=T),T},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),h=this.unproject(c.getBottomLeft()),O=this.unproject(c.getTopRight());return new Y(h,O)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,h,O){c=ee(c),O=F(O||[0,0]);var T=this.getZoom()||0,k=this.getMinZoom(),G=this.getMaxZoom(),re=c.getNorthWest(),ue=c.getSouthEast(),de=this.getSize().subtract(O),_e=ne(this.project(ue,T),this.project(re,T)).getSize(),Le=Ue.any3d?this.options.zoomSnap:1,Ve=de.x/_e.x,tt=de.y/_e.y,er=h?Math.max(Ve,tt):Math.min(Ve,tt);return T=this.getScaleZoom(er,T),Le&&(T=Math.round(T/(Le/100))*(Le/100),T=h?Math.ceil(T/Le)*Le:Math.floor(T/Le)*Le),Math.max(k,Math.min(G,T))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new K(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,h){var O=this._getTopLeftPoint(c,h);return new H(O,O.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,h){var O=this.options.crs;return h=h===void 0?this._zoom:h,O.scale(c)/O.scale(h)},getScaleZoom:function(c,h){var O=this.options.crs;h=h===void 0?this._zoom:h;var T=O.zoom(c*O.scale(h));return isNaN(T)?1/0:T},project:function(c,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(oe(c),h)},unproject:function(c,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(F(c),h)},layerPointToLatLng:function(c){var h=F(c).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(c){var h=this.project(oe(c))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(oe(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(ee(c))},distance:function(c,h){return this.options.crs.distance(oe(c),oe(h))},containerPointToLayerPoint:function(c){return F(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return F(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var h=this.containerPointToLayerPoint(F(c));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(oe(c)))},mouseEventToContainerPoint:function(c){return KP(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var h=this._container=GP(c);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ke(h,"scroll",this._onScroll,this),this._containerId=l(h)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ue.any3d,Je(c,"leaflet-container"+(Ue.touch?" leaflet-touch":"")+(Ue.retina?" leaflet-retina":"")+(Ue.ielt9?" leaflet-oldie":"")+(Ue.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=Tf(c,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),on(this._mapPane,new K(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Je(c.markerPane,"leaflet-zoom-hide"),Je(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,h,O){on(this._mapPane,new K(0,0));var T=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var k=this._zoom!==h;this._moveStart(k,O)._move(c,h)._moveEnd(k),this.fire("viewreset"),T&&this.fire("load")},_moveStart:function(c,h){return c&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(c,h,O,T){h===void 0&&(h=this._zoom);var k=this._zoom!==h;return this._zoom=h,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),T?O&&O.pinch&&this.fire("zoom",O):((k||O&&O.pinch)&&this.fire("zoom",O),this.fire("move",O)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){on(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[l(this._container)]=this;var h=c?xt:Ke;h(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&h(window,"resize",this._onResize,this),Ue.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=D(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,h){for(var O=[],T,k=h==="mouseout"||h==="mouseover",G=c.target||c.srcElement,re=!1;G;){if(T=this._targets[l(G)],T&&(h==="click"||h==="preclick")&&this._draggableMoved(T)){re=!0;break}if(T&&T.listens(h,!0)&&(k&&!m_(G,c)||(O.push(T),k))||G===this._container)break;G=G.parentNode}return!O.length&&!re&&!k&&this.listens(h,!0)&&(O=[this]),O},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var h=c.target||c.srcElement;if(!(!this._loaded||h._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(h))){var O=c.type;O==="mousedown"&&u_(h),this._fireDOMEvent(c,O)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,h,O){if(c.type==="click"){var T=i({},c);T.type="preclick",this._fireDOMEvent(T,T.type,O)}var k=this._findEventTargets(c,h);if(O){for(var G=[],re=0;re<O.length;re++)O[re].listens(h,!0)&&G.push(O[re]);k=G.concat(k)}if(k.length){h==="contextmenu"&&Mn(c);var ue=k[0],de={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var _e=ue.getLatLng&&(!ue._radius||ue._radius<=10);de.containerPoint=_e?this.latLngToContainerPoint(ue.getLatLng()):this.mouseEventToContainerPoint(c),de.layerPoint=this.containerPointToLayerPoint(de.containerPoint),de.latlng=_e?ue.getLatLng():this.layerPointToLatLng(de.layerPoint)}for(re=0;re<k.length;re++)if(k[re].fire(h,de,!0),de.originalEvent._stopped||k[re].options.bubblingMouseEvents===!1&&S(this._mouseEvents,h)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,h=this._handlers.length;c<h;c++)this._handlers[c].disable()},whenReady:function(c,h){return this._loaded?c.call(h||this,{target:this}):this.on("load",c,h),this},_getMapPanePos:function(){return js(this._mapPane)||new K(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,h){var O=c&&h!==void 0?this._getNewPixelOrigin(c,h):this.getPixelOrigin();return O.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,h){var O=this.getSize()._divideBy(2);return this.project(c,h)._subtract(O)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,h,O){var T=this._getNewPixelOrigin(O,h);return this.project(c,h)._subtract(T)},_latLngBoundsToNewLayerBounds:function(c,h,O){var T=this._getNewPixelOrigin(O,h);return ne([this.project(c.getSouthWest(),h)._subtract(T),this.project(c.getNorthWest(),h)._subtract(T),this.project(c.getSouthEast(),h)._subtract(T),this.project(c.getNorthEast(),h)._subtract(T)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,h,O){if(!O)return c;var T=this.project(c,h),k=this.getSize().divideBy(2),G=new H(T.subtract(k),T.add(k)),re=this._getBoundsOffset(G,O,h);return Math.abs(re.x)<=1&&Math.abs(re.y)<=1?c:this.unproject(T.add(re),h)},_limitOffset:function(c,h){if(!h)return c;var O=this.getPixelBounds(),T=new H(O.min.add(c),O.max.add(c));return c.add(this._getBoundsOffset(T,h))},_getBoundsOffset:function(c,h,O){var T=ne(this.project(h.getNorthEast(),O),this.project(h.getSouthWest(),O)),k=T.min.subtract(c.min),G=T.max.subtract(c.max),re=this._rebound(k.x,-G.x),ue=this._rebound(k.y,-G.y);return new K(re,ue)},_rebound:function(c,h){return c+h>0?Math.round(c-h)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(h))},_limitZoom:function(c){var h=this.getMinZoom(),O=this.getMaxZoom(),T=Ue.any3d?this.options.zoomSnap:1;return T&&(c=Math.round(c/T)*T),Math.max(h,Math.min(O,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,h){var O=this._getCenterOffset(c)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(O)?!1:(this.panBy(O,h),!0)},_createAnimProxy:function(){var c=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(h){var O=n_,T=this._proxy.style[O];Es(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),T===this._proxy.style[O]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ut(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),h=this.getZoom();Es(this._proxy,this.project(c,h),this.getZoomScale(h,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,h,O){if(this._animatingZoom)return!0;if(O=O||{},!this._zoomAnimated||O.animate===!1||this._nothingToAnimate()||Math.abs(h-this._zoom)>this.options.zoomAnimationThreshold)return!1;var T=this.getZoomScale(h),k=this._getCenterOffset(c)._divideBy(1-1/T);return O.animate!==!0&&!this.getSize().contains(k)?!1:(D(function(){this._moveStart(!0,O.noMoveStart||!1)._animateZoom(c,h,!0)},this),!0)},_animateZoom:function(c,h,O,T){this._mapPane&&(O&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=h,Je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:h,noUpdate:T}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Qt(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 XV(c,h){return new lt(c,h)}var Ei=W.extend({options:{position:"topright"},initialize:function(c){y(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var h=this._map;return h&&h.removeControl(this),this.options.position=c,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var h=this._container=this.onAdd(c),O=this.getPosition(),T=c._controlCorners[O];return Je(h,"leaflet-control"),O.indexOf("bottom")!==-1?T.insertBefore(h,T.firstChild):T.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ut(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),Nf=function(c){return new Ei(c)};lt.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},h="leaflet-",O=this._controlContainer=ft("div",h+"control-container",this._container);function T(k,G){var re=h+k+" "+h+G;c[k+G]=ft("div",re,O)}T("top","left"),T("top","right"),T("bottom","left"),T("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)Ut(this._controlCorners[c]);Ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var JP=Ei.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,h,O,T){return O<T?-1:T<O?1:0}},initialize:function(c,h,O){y(this,O),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var T in c)this._addLayer(c[T],T);for(T in h)this._addLayer(h[T],T,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var h=0;h<this._layers.length;h++)this._layers[h].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Ei.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,h){return this._addLayer(c,h),this._map?this._update():this},addOverlay:function(c,h){return this._addLayer(c,h,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var h=this._getLayer(l(c));return h&&this._layers.splice(this._layers.indexOf(h),1),this._map?this._update():this},expand:function(){Je(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(Je(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):Qt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Qt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",h=this._container=ft("div",c),O=this.options.collapsed;h.setAttribute("aria-haspopup",!0),kf(h),p_(h);var T=this._section=ft("section",c+"-list");O&&(this._map.on("click",this.collapse,this),Ke(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var k=this._layersLink=ft("a",c+"-toggle",h);k.href="#",k.title="Layers",k.setAttribute("role","button"),Ke(k,{keydown:function(G){G.keyCode===13&&this._expandSafely()},click:function(G){Mn(G),this._expandSafely()}},this),O||this.expand(),this._baseLayersList=ft("div",c+"-base",T),this._separator=ft("div",c+"-separator",T),this._overlaysList=ft("div",c+"-overlays",T),h.appendChild(T)},_getLayer:function(c){for(var h=0;h<this._layers.length;h++)if(this._layers[h]&&l(this._layers[h].layer)===c)return this._layers[h]},_addLayer:function(c,h,O){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:h,overlay:O}),this.options.sortLayers&&this._layers.sort(a(function(T,k){return this.options.sortFunction(T.layer,k.layer,T.name,k.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;fm(this._baseLayersList),fm(this._overlaysList),this._layerControlInputs=[];var c,h,O,T,k=0;for(O=0;O<this._layers.length;O++)T=this._layers[O],this._addItem(T),h=h||T.overlay,c=c||!T.overlay,k+=T.overlay?0:1;return this.options.hideSingleBase&&(c=c&&k>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=h&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var h=this._getLayer(l(c.target)),O=h.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;O&&this._map.fire(O,h)},_createRadioElement:function(c,h){var O='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(h?' checked="checked"':"")+"/>",T=document.createElement("div");return T.innerHTML=O,T.firstChild},_addItem:function(c){var h=document.createElement("label"),O=this._map.hasLayer(c.layer),T;c.overlay?(T=document.createElement("input"),T.type="checkbox",T.className="leaflet-control-layers-selector",T.defaultChecked=O):T=this._createRadioElement("leaflet-base-layers_"+l(this),O),this._layerControlInputs.push(T),T.layerId=l(c.layer),Ke(T,"click",this._onInputClick,this);var k=document.createElement("span");k.innerHTML=" "+c.name;var G=document.createElement("span");h.appendChild(G),G.appendChild(T),G.appendChild(k);var re=c.overlay?this._overlaysList:this._baseLayersList;return re.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,h,O,T=[],k=[];this._handlingClick=!0;for(var G=c.length-1;G>=0;G--)h=c[G],O=this._getLayer(h.layerId).layer,h.checked?T.push(O):h.checked||k.push(O);for(G=0;G<k.length;G++)this._map.hasLayer(k[G])&&this._map.removeLayer(k[G]);for(G=0;G<T.length;G++)this._map.hasLayer(T[G])||this._map.addLayer(T[G]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,h,O,T=this._map.getZoom(),k=c.length-1;k>=0;k--)h=c[k],O=this._getLayer(h.layerId).layer,h.disabled=O.options.minZoom!==void 0&&T<O.options.minZoom||O.options.maxZoom!==void 0&&T>O.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,Ke(c,"click",Mn),this.expand();var h=this;setTimeout(function(){xt(c,"click",Mn),h._preventClick=!1})}}),QV=function(c,h,O){return new JP(c,h,O)},v_=Ei.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var h="leaflet-control-zoom",O=ft("div",h+" leaflet-bar"),T=this.options;return this._zoomInButton=this._createButton(T.zoomInText,T.zoomInTitle,h+"-in",O,this._zoomIn),this._zoomOutButton=this._createButton(T.zoomOutText,T.zoomOutTitle,h+"-out",O,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),O},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,h,O,T,k){var G=ft("a",O,T);return G.innerHTML=c,G.href="#",G.title=h,G.setAttribute("role","button"),G.setAttribute("aria-label",h),kf(G),Ke(G,"click",Cs),Ke(G,"click",k,this),Ke(G,"click",this._refocusOnMap,this),G},_updateDisabled:function(){var c=this._map,h="leaflet-disabled";Qt(this._zoomInButton,h),Qt(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(Je(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(Je(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});lt.mergeOptions({zoomControl:!0}),lt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new v_,this.addControl(this.zoomControl))});var JV=function(c){return new v_(c)},eA=Ei.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var h="leaflet-control-scale",O=ft("div",h),T=this.options;return this._addScales(T,h+"-line",O),c.on(T.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),O},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,h,O){c.metric&&(this._mScale=ft("div",h,O)),c.imperial&&(this._iScale=ft("div",h,O))},_update:function(){var c=this._map,h=c.getSize().y/2,O=c.distance(c.containerPointToLatLng([0,h]),c.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(O)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var h=this._getRoundNum(c),O=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,O,h/c)},_updateImperial:function(c){var h=c*3.2808399,O,T,k;h>5280?(O=h/5280,T=this._getRoundNum(O),this._updateScale(this._iScale,T+" mi",T/O)):(k=this._getRoundNum(h),this._updateScale(this._iScale,k+" ft",k/h))},_updateScale:function(c,h,O){c.style.width=Math.round(this.options.maxWidth*O)+"px",c.innerHTML=h},_getRoundNum:function(c){var h=Math.pow(10,(Math.floor(c)+"").length-1),O=c/h;return O=O>=10?10:O>=5?5:O>=3?3:O>=2?2:1,h*O}}),eH=function(c){return new eA(c)},tH='<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>',g_=Ei.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ue.inlineSvg?tH+" ":"")+"Leaflet</a>"},initialize:function(c){y(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),kf(this._container);for(var h in c._layers)c._layers[h].getAttribution&&this.addAttribution(c._layers[h].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var h in this._attributions)this._attributions[h]&&c.push(h);var O=[];this.options.prefix&&O.push(this.options.prefix),c.length&&O.push(c.join(", ")),this._container.innerHTML=O.join(' <span aria-hidden="true">|</span> ')}}});lt.mergeOptions({attributionControl:!0}),lt.addInitHook(function(){this.options.attributionControl&&new g_().addTo(this)});var nH=function(c){return new g_(c)};Ei.Layers=JP,Ei.Zoom=v_,Ei.Scale=eA,Ei.Attribution=g_,Nf.layers=QV,Nf.zoom=JV,Nf.scale=eH,Nf.attribution=nH;var Qi=W.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qi.addTo=function(c,h){return c.addHandler(h,this),this};var rH={Events:J},tA=Ue.touch?"touchstart mousedown":"mousedown",ha=te.extend({options:{clickTolerance:3},initialize:function(c,h,O,T){y(this,T),this._element=c,this._dragStartTarget=h||c,this._preventOutline=O},enable:function(){this._enabled||(Ke(this._dragStartTarget,tA,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ha._dragging===this&&this.finishDrag(!0),xt(this._dragStartTarget,tA,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!r_(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){ha._dragging===this&&this.finishDrag();return}if(!(ha._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(ha._dragging=this,this._preventOutline&&u_(this._element),a_(),Cf(),!this._moving)){this.fire("down");var h=c.touches?c.touches[0]:c,O=qP(this._element);this._startPoint=new K(h.clientX,h.clientY),this._startPos=js(this._element),this._parentScale=c_(O);var T=c.type==="mousedown";Ke(document,T?"mousemove":"touchmove",this._onMove,this),Ke(document,T?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var h=c.touches&&c.touches.length===1?c.touches[0]:c,O=new K(h.clientX,h.clientY)._subtract(this._startPoint);!O.x&&!O.y||Math.abs(O.x)+Math.abs(O.y)<this.options.clickTolerance||(O.x/=this._parentScale.x,O.y/=this._parentScale.y,Mn(c),this._moved||(this.fire("dragstart"),this._moved=!0,Je(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Je(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(O),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),on(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){Qt(document.body,"leaflet-dragging"),this._lastTarget&&(Qt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xt(document,"mousemove touchmove",this._onMove,this),xt(document,"mouseup touchend touchcancel",this._onUp,this),s_(),Pf();var h=this._moved&&this._moving;this._moving=!1,ha._dragging=!1,h&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function nA(c,h,O){var T,k=[1,4,2,8],G,re,ue,de,_e,Le,Ve,tt;for(G=0,Le=c.length;G<Le;G++)c[G]._code=Ps(c[G],h);for(ue=0;ue<4;ue++){for(Ve=k[ue],T=[],G=0,Le=c.length,re=Le-1;G<Le;re=G++)de=c[G],_e=c[re],de._code&Ve?_e._code&Ve||(tt=vm(_e,de,Ve,h,O),tt._code=Ps(tt,h),T.push(tt)):(_e._code&Ve&&(tt=vm(_e,de,Ve,h,O),tt._code=Ps(tt,h),T.push(tt)),T.push(de));c=T}return c}function rA(c,h){var O,T,k,G,re,ue,de,_e,Le;if(!c||c.length===0)throw new Error("latlngs not passed");Zr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Ve=oe([0,0]),tt=ee(c),er=tt.getNorthWest().distanceTo(tt.getSouthWest())*tt.getNorthEast().distanceTo(tt.getNorthWest());er<1700&&(Ve=y_(c));var _n=c.length,Yr=[];for(O=0;O<_n;O++){var pr=oe(c[O]);Yr.push(h.project(oe([pr.lat-Ve.lat,pr.lng-Ve.lng])))}for(ue=de=_e=0,O=0,T=_n-1;O<_n;T=O++)k=Yr[O],G=Yr[T],re=k.y*G.x-G.y*k.x,de+=(k.x+G.x)*re,_e+=(k.y+G.y)*re,ue+=re*3;ue===0?Le=Yr[0]:Le=[de/ue,_e/ue];var Kl=h.unproject(F(Le));return oe([Kl.lat+Ve.lat,Kl.lng+Ve.lng])}function y_(c){for(var h=0,O=0,T=0,k=0;k<c.length;k++){var G=oe(c[k]);h+=G.lat,O+=G.lng,T++}return oe([h/T,O/T])}var iH={__proto__:null,clipPolygon:nA,polygonCenter:rA,centroid:y_};function iA(c,h){if(!h||!c.length)return c.slice();var O=h*h;return c=sH(c,O),c=aH(c,O),c}function oA(c,h,O){return Math.sqrt(Lf(c,h,O,!0))}function oH(c,h,O){return Lf(c,h,O)}function aH(c,h){var O=c.length,T=typeof Uint8Array<"u"?Uint8Array:Array,k=new T(O);k[0]=k[O-1]=1,b_(c,k,h,0,O-1);var G,re=[];for(G=0;G<O;G++)k[G]&&re.push(c[G]);return re}function b_(c,h,O,T,k){var G=0,re,ue,de;for(ue=T+1;ue<=k-1;ue++)de=Lf(c[ue],c[T],c[k],!0),de>G&&(re=ue,G=de);G>O&&(h[re]=1,b_(c,h,O,T,re),b_(c,h,O,re,k))}function sH(c,h){for(var O=[c[0]],T=1,k=0,G=c.length;T<G;T++)lH(c[T],c[k])>h&&(O.push(c[T]),k=T);return k<G-1&&O.push(c[G-1]),O}var aA;function sA(c,h,O,T,k){var G=T?aA:Ps(c,O),re=Ps(h,O),ue,de,_e;for(aA=re;;){if(!(G|re))return[c,h];if(G&re)return!1;ue=G||re,de=vm(c,h,ue,O,k),_e=Ps(de,O),ue===G?(c=de,G=_e):(h=de,re=_e)}}function vm(c,h,O,T,k){var G=h.x-c.x,re=h.y-c.y,ue=T.min,de=T.max,_e,Le;return O&8?(_e=c.x+G*(de.y-c.y)/re,Le=de.y):O&4?(_e=c.x+G*(ue.y-c.y)/re,Le=ue.y):O&2?(_e=de.x,Le=c.y+re*(de.x-c.x)/G):O&1&&(_e=ue.x,Le=c.y+re*(ue.x-c.x)/G),new K(_e,Le,k)}function Ps(c,h){var O=0;return c.x<h.min.x?O|=1:c.x>h.max.x&&(O|=2),c.y<h.min.y?O|=4:c.y>h.max.y&&(O|=8),O}function lH(c,h){var O=h.x-c.x,T=h.y-c.y;return O*O+T*T}function Lf(c,h,O,T){var k=h.x,G=h.y,re=O.x-k,ue=O.y-G,de=re*re+ue*ue,_e;return de>0&&(_e=((c.x-k)*re+(c.y-G)*ue)/de,_e>1?(k=O.x,G=O.y):_e>0&&(k+=re*_e,G+=ue*_e)),re=c.x-k,ue=c.y-G,T?re*re+ue*ue:new K(k,G)}function Zr(c){return!_(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function lA(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zr(c)}function uA(c,h){var O,T,k,G,re,ue,de,_e;if(!c||c.length===0)throw new Error("latlngs not passed");Zr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Le=oe([0,0]),Ve=ee(c),tt=Ve.getNorthWest().distanceTo(Ve.getSouthWest())*Ve.getNorthEast().distanceTo(Ve.getNorthWest());tt<1700&&(Le=y_(c));var er=c.length,_n=[];for(O=0;O<er;O++){var Yr=oe(c[O]);_n.push(h.project(oe([Yr.lat-Le.lat,Yr.lng-Le.lng])))}for(O=0,T=0;O<er-1;O++)T+=_n[O].distanceTo(_n[O+1])/2;if(T===0)_e=_n[0];else for(O=0,G=0;O<er-1;O++)if(re=_n[O],ue=_n[O+1],k=re.distanceTo(ue),G+=k,G>T){de=(G-T)/k,_e=[ue.x-de*(ue.x-re.x),ue.y-de*(ue.y-re.y)];break}var pr=h.unproject(F(_e));return oe([pr.lat+Le.lat,pr.lng+Le.lng])}var uH={__proto__:null,simplify:iA,pointToSegmentDistance:oA,closestPointOnSegment:oH,clipSegment:sA,_getEdgeIntersection:vm,_getBitCode:Ps,_sqClosestPointOnSegment:Lf,isFlat:Zr,_flat:lA,polylineCenter:uA},__={project:function(c){return new K(c.lng,c.lat)},unproject:function(c){return new ae(c.y,c.x)},bounds:new H([-180,-90],[180,90])},x_={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var h=Math.PI/180,O=this.R,T=c.lat*h,k=this.R_MINOR/O,G=Math.sqrt(1-k*k),re=G*Math.sin(T),ue=Math.tan(Math.PI/4-T/2)/Math.pow((1-re)/(1+re),G/2);return T=-O*Math.log(Math.max(ue,1e-10)),new K(c.lng*h*O,T)},unproject:function(c){for(var h=180/Math.PI,O=this.R,T=this.R_MINOR/O,k=Math.sqrt(1-T*T),G=Math.exp(-c.y/O),re=Math.PI/2-2*Math.atan(G),ue=0,de=.1,_e;ue<15&&Math.abs(de)>1e-7;ue++)_e=k*Math.sin(re),_e=Math.pow((1-_e)/(1+_e),k/2),de=Math.PI/2-2*Math.atan(G*_e)-re,re+=de;return new ae(re*h,c.x*h/O)}},cH={__proto__:null,LonLat:__,Mercator:x_,SphericalMercator:U},fH=i({},C,{code:"EPSG:3395",projection:x_,transformation:function(){var c=.5/(Math.PI*x_.R);return Z(c,.5,-c,.5)}()}),cA=i({},C,{code:"EPSG:4326",projection:__,transformation:Z(1/180,1,-1/180,.5)}),dH=i({},fe,{projection:__,transformation:Z(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,h){var O=h.lng-c.lng,T=h.lat-c.lat;return Math.sqrt(O*O+T*T)},infinite:!0});fe.Earth=C,fe.EPSG3395=fH,fe.EPSG3857=ie,fe.EPSG900913=he,fe.EPSG4326=cA,fe.Simple=dH;var ji=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[l(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[l(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var h=c.target;if(h.hasLayer(this)){if(this._map=h,this._zoomAnimated=h._zoomAnimated,this.getEvents){var O=this.getEvents();h.on(O,this),this.once("remove",function(){h.off(O,this)},this)}this.onAdd(h),this.fire("add"),h.fire("layeradd",{layer:this})}}});lt.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var h=l(c);return this._layers[h]?this:(this._layers[h]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var h=l(c);return this._layers[h]?(this._loaded&&c.onRemove(this),delete this._layers[h],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return l(c)in this._layers},eachLayer:function(c,h){for(var O in this._layers)c.call(h,this._layers[O]);return this},_addLayers:function(c){c=c?_(c)?c:[c]:[];for(var h=0,O=c.length;h<O;h++)this.addLayer(c[h])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[l(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var h=l(c);this._zoomBoundLayers[h]&&(delete this._zoomBoundLayers[h],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,h=-1/0,O=this._getZoomSpan();for(var T in this._zoomBoundLayers){var k=this._zoomBoundLayers[T].options;c=k.minZoom===void 0?c:Math.min(c,k.minZoom),h=k.maxZoom===void 0?h:Math.max(h,k.maxZoom)}this._layersMaxZoom=h===-1/0?void 0:h,this._layersMinZoom=c===1/0?void 0:c,O!==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 Wl=ji.extend({initialize:function(c,h){y(this,h),this._layers={};var O,T;if(c)for(O=0,T=c.length;O<T;O++)this.addLayer(c[O])},addLayer:function(c){var h=this.getLayerId(c);return this._layers[h]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var h=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[h]&&this._map.removeLayer(this._layers[h]),delete this._layers[h],this},hasLayer:function(c){var h=typeof c=="number"?c:this.getLayerId(c);return h in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var h=Array.prototype.slice.call(arguments,1),O,T;for(O in this._layers)T=this._layers[O],T[c]&&T[c].apply(T,h);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,h){for(var O in this._layers)c.call(h,this._layers[O]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return l(c)}}),hH=function(c,h){return new Wl(c,h)},Co=Wl.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Wl.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),Wl.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new Y;for(var h in this._layers){var O=this._layers[h];c.extend(O.getBounds?O.getBounds():O.getLatLng())}return c}}),pH=function(c,h){return new Co(c,h)},Gl=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){y(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,h){var O=this._getIconUrl(c);if(!O){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var T=this._createImg(O,h&&h.tagName==="IMG"?h:null);return this._setIconStyles(T,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(T.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),T},_setIconStyles:function(c,h){var O=this.options,T=O[h+"Size"];typeof T=="number"&&(T=[T,T]);var k=F(T),G=F(h==="shadow"&&O.shadowAnchor||O.iconAnchor||k&&k.divideBy(2,!0));c.className="leaflet-marker-"+h+" "+(O.className||""),G&&(c.style.marginLeft=-G.x+"px",c.style.marginTop=-G.y+"px"),k&&(c.style.width=k.x+"px",c.style.height=k.y+"px")},_createImg:function(c,h){return h=h||document.createElement("img"),h.src=c,h},_getIconUrl:function(c){return Ue.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function mH(c){return new Gl(c)}var Rf=Gl.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof Rf.imagePath!="string"&&(Rf.imagePath=this._detectIconPath()),(this.options.imagePath||Rf.imagePath)+Gl.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var h=function(O,T,k){var G=T.exec(O);return G&&G[k]};return c=h(c,/^url\((['"])?(.+)\1\)$/,2),c&&h(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=ft("div","leaflet-default-icon-path",document.body),h=Tf(c,"background-image")||Tf(c,"backgroundImage");if(document.body.removeChild(c),h=this._stripUrl(h),h)return h;var O=document.querySelector('link[href$="leaflet.css"]');return O?O.href.substring(0,O.href.length-11-1):""}}),fA=Qi.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new ha(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Je(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Qt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var h=this._marker,O=h._map,T=this._marker.options.autoPanSpeed,k=this._marker.options.autoPanPadding,G=js(h._icon),re=O.getPixelBounds(),ue=O.getPixelOrigin(),de=ne(re.min._subtract(ue).add(k),re.max._subtract(ue).subtract(k));if(!de.contains(G)){var _e=F((Math.max(de.max.x,G.x)-de.max.x)/(re.max.x-de.max.x)-(Math.min(de.min.x,G.x)-de.min.x)/(re.min.x-de.min.x),(Math.max(de.max.y,G.y)-de.max.y)/(re.max.y-de.max.y)-(Math.min(de.min.y,G.y)-de.min.y)/(re.min.y-de.min.y)).multiplyBy(T);O.panBy(_e,{animate:!1}),this._draggable._newPos._add(_e),this._draggable._startPos._add(_e),on(h._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=D(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(z(this._panRequest),this._panRequest=D(this._adjustPan.bind(this,c)))},_onDrag:function(c){var h=this._marker,O=h._shadow,T=js(h._icon),k=h._map.layerPointToLatLng(T);O&&on(O,T),h._latlng=k,c.latlng=k,c.oldLatLng=this._oldLatLng,h.fire("move",c).fire("drag",c)},_onDragEnd:function(c){z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),gm=ji.extend({options:{icon:new Rf,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,h){y(this,h),this._latlng=oe(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var h=this._latlng;return this._latlng=oe(c),this.update(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,h="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),O=c.icon.createIcon(this._icon),T=!1;O!==this._icon&&(this._icon&&this._removeIcon(),T=!0,c.title&&(O.title=c.title),O.tagName==="IMG"&&(O.alt=c.alt||"")),Je(O,h),c.keyboard&&(O.tabIndex="0",O.setAttribute("role","button")),this._icon=O,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ke(O,"focus",this._panOnFocus,this);var k=c.icon.createShadow(this._shadow),G=!1;k!==this._shadow&&(this._removeShadow(),G=!0),k&&(Je(k,h),k.alt=""),this._shadow=k,c.opacity<1&&this._updateOpacity(),T&&this.getPane().appendChild(this._icon),this._initInteraction(),k&&G&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xt(this._icon,"focus",this._panOnFocus,this),Ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ut(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&on(this._icon,c),this._shadow&&on(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(h)},_initInteraction:function(){if(this.options.interactive&&(Je(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),fA)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new fA(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&qr(this._icon,c),this._shadow&&qr(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var h=this.options.icon.options,O=h.iconSize?F(h.iconSize):F(0,0),T=h.iconAnchor?F(h.iconAnchor):F(0,0);c.panInside(this._latlng,{paddingTopLeft:T,paddingBottomRight:O.subtract(T)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function vH(c,h){return new gm(c,h)}var pa=ji.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return y(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ym=pa.extend({options:{fill:!0,radius:10},initialize:function(c,h){y(this,h),this._latlng=oe(c),this._radius=this.options.radius},setLatLng:function(c){var h=this._latlng;return this._latlng=oe(c),this.redraw(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var h=c&&c.radius||this._radius;return pa.prototype.setStyle.call(this,c),this.setRadius(h),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,h=this._radiusY||c,O=this._clickTolerance(),T=[c+O,h+O];this._pxBounds=new H(this._point.subtract(T),this._point.add(T))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function gH(c,h){return new ym(c,h)}var w_=ym.extend({initialize:function(c,h,O){if(typeof h=="number"&&(h=i({},O,{radius:h})),y(this,h),this._latlng=oe(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new Y(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:pa.prototype.setStyle,_project:function(){var c=this._latlng.lng,h=this._latlng.lat,O=this._map,T=O.options.crs;if(T.distance===C.distance){var k=Math.PI/180,G=this._mRadius/C.R/k,re=O.project([h+G,c]),ue=O.project([h-G,c]),de=re.add(ue).divideBy(2),_e=O.unproject(de).lat,Le=Math.acos((Math.cos(G*k)-Math.sin(h*k)*Math.sin(_e*k))/(Math.cos(h*k)*Math.cos(_e*k)))/k;(isNaN(Le)||Le===0)&&(Le=G/Math.cos(Math.PI/180*h)),this._point=de.subtract(O.getPixelOrigin()),this._radius=isNaN(Le)?0:de.x-O.project([_e,c-Le]).x,this._radiusY=de.y-re.y}else{var Ve=T.unproject(T.project(this._latlng).subtract([this._mRadius,0]));this._point=O.latLngToLayerPoint(this._latlng),this._radius=this._point.x-O.latLngToLayerPoint(Ve).x}this._updateBounds()}});function yH(c,h,O){return new w_(c,h,O)}var Po=pa.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,h){y(this,h),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var h=1/0,O=null,T=Lf,k,G,re=0,ue=this._parts.length;re<ue;re++)for(var de=this._parts[re],_e=1,Le=de.length;_e<Le;_e++){k=de[_e-1],G=de[_e];var Ve=T(c,k,G,!0);Ve<h&&(h=Ve,O=T(c,k,G))}return O&&(O.distance=Math.sqrt(h)),O},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return uA(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,h){return h=h||this._defaultShape(),c=oe(c),h.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new Y,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return Zr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var h=[],O=Zr(c),T=0,k=c.length;T<k;T++)O?(h[T]=oe(c[T]),this._bounds.extend(h[T])):h[T]=this._convertLatLngs(c[T]);return h},_project:function(){var c=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),h=new K(c,c);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(h),this._rawPxBounds.max.add(h)]))},_projectLatlngs:function(c,h,O){var T=c[0]instanceof ae,k=c.length,G,re;if(T){for(re=[],G=0;G<k;G++)re[G]=this._map.latLngToLayerPoint(c[G]),O.extend(re[G]);h.push(re)}else for(G=0;G<k;G++)this._projectLatlngs(c[G],h,O)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var h=this._parts,O,T,k,G,re,ue,de;for(O=0,k=0,G=this._rings.length;O<G;O++)for(de=this._rings[O],T=0,re=de.length;T<re-1;T++)ue=sA(de[T],de[T+1],c,T,!0),ue&&(h[k]=h[k]||[],h[k].push(ue[0]),(ue[1]!==de[T+1]||T===re-2)&&(h[k].push(ue[1]),k++))}},_simplifyPoints:function(){for(var c=this._parts,h=this.options.smoothFactor,O=0,T=c.length;O<T;O++)c[O]=iA(c[O],h)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,h){var O,T,k,G,re,ue,de=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(O=0,G=this._parts.length;O<G;O++)for(ue=this._parts[O],T=0,re=ue.length,k=re-1;T<re;k=T++)if(!(!h&&T===0)&&oA(c,ue[k],ue[T])<=de)return!0;return!1}});function bH(c,h){return new Po(c,h)}Po._flat=lA;var ql=Po.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 rA(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var h=Po.prototype._convertLatLngs.call(this,c),O=h.length;return O>=2&&h[0]instanceof ae&&h[0].equals(h[O-1])&&h.pop(),h},_setLatLngs:function(c){Po.prototype._setLatLngs.call(this,c),Zr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,h=this.options.weight,O=new K(h,h);if(c=new H(c.min.subtract(O),c.max.add(O)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var T=0,k=this._rings.length,G;T<k;T++)G=nA(this._rings[T],c,!0),G.length&&this._parts.push(G)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var h=!1,O,T,k,G,re,ue,de,_e;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(G=0,de=this._parts.length;G<de;G++)for(O=this._parts[G],re=0,_e=O.length,ue=_e-1;re<_e;ue=re++)T=O[re],k=O[ue],T.y>c.y!=k.y>c.y&&c.x<(k.x-T.x)*(c.y-T.y)/(k.y-T.y)+T.x&&(h=!h);return h||Po.prototype._containsPoint.call(this,c,!0)}});function _H(c,h){return new ql(c,h)}var Ao=Co.extend({initialize:function(c,h){y(this,h),this._layers={},c&&this.addData(c)},addData:function(c){var h=_(c)?c:c.features,O,T,k;if(h){for(O=0,T=h.length;O<T;O++)k=h[O],(k.geometries||k.geometry||k.features||k.coordinates)&&this.addData(k);return this}var G=this.options;if(G.filter&&!G.filter(c))return this;var re=bm(c,G);return re?(re.feature=wm(c),re.defaultOptions=re.options,this.resetStyle(re),G.onEachFeature&&G.onEachFeature(c,re),this.addLayer(re)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=i({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(h){this._setLayerStyle(h,c)},this)},_setLayerStyle:function(c,h){c.setStyle&&(typeof h=="function"&&(h=h(c.feature)),c.setStyle(h))}});function bm(c,h){var O=c.type==="Feature"?c.geometry:c,T=O?O.coordinates:null,k=[],G=h&&h.pointToLayer,re=h&&h.coordsToLatLng||O_,ue,de,_e,Le;if(!T&&!O)return null;switch(O.type){case"Point":return ue=re(T),dA(G,c,ue,h);case"MultiPoint":for(_e=0,Le=T.length;_e<Le;_e++)ue=re(T[_e]),k.push(dA(G,c,ue,h));return new Co(k);case"LineString":case"MultiLineString":return de=_m(T,O.type==="LineString"?0:1,re),new Po(de,h);case"Polygon":case"MultiPolygon":return de=_m(T,O.type==="Polygon"?1:2,re),new ql(de,h);case"GeometryCollection":for(_e=0,Le=O.geometries.length;_e<Le;_e++){var Ve=bm({geometry:O.geometries[_e],type:"Feature",properties:c.properties},h);Ve&&k.push(Ve)}return new Co(k);case"FeatureCollection":for(_e=0,Le=O.features.length;_e<Le;_e++){var tt=bm(O.features[_e],h);tt&&k.push(tt)}return new Co(k);default:throw new Error("Invalid GeoJSON object.")}}function dA(c,h,O,T){return c?c(h,O):new gm(O,T&&T.markersInheritOptions&&T)}function O_(c){return new ae(c[1],c[0],c[2])}function _m(c,h,O){for(var T=[],k=0,G=c.length,re;k<G;k++)re=h?_m(c[k],h-1,O):(O||O_)(c[k]),T.push(re);return T}function S_(c,h){return c=oe(c),c.alt!==void 0?[p(c.lng,h),p(c.lat,h),p(c.alt,h)]:[p(c.lng,h),p(c.lat,h)]}function xm(c,h,O,T){for(var k=[],G=0,re=c.length;G<re;G++)k.push(h?xm(c[G],Zr(c[G])?0:h-1,O,T):S_(c[G],T));return!h&&O&&k.length>0&&k.push(k[0].slice()),k}function Zl(c,h){return c.feature?i({},c.feature,{geometry:h}):wm(h)}function wm(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var E_={toGeoJSON:function(c){return Zl(this,{type:"Point",coordinates:S_(this.getLatLng(),c)})}};gm.include(E_),w_.include(E_),ym.include(E_),Po.include({toGeoJSON:function(c){var h=!Zr(this._latlngs),O=xm(this._latlngs,h?1:0,!1,c);return Zl(this,{type:(h?"Multi":"")+"LineString",coordinates:O})}}),ql.include({toGeoJSON:function(c){var h=!Zr(this._latlngs),O=h&&!Zr(this._latlngs[0]),T=xm(this._latlngs,O?2:h?1:0,!0,c);return h||(T=[T]),Zl(this,{type:(O?"Multi":"")+"Polygon",coordinates:T})}}),Wl.include({toMultiPoint:function(c){var h=[];return this.eachLayer(function(O){h.push(O.toGeoJSON(c).geometry.coordinates)}),Zl(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(c){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(c);var O=h==="GeometryCollection",T=[];return this.eachLayer(function(k){if(k.toGeoJSON){var G=k.toGeoJSON(c);if(O)T.push(G.geometry);else{var re=wm(G);re.type==="FeatureCollection"?T.push.apply(T,re.features):T.push(re)}}}),O?Zl(this,{geometries:T,type:"GeometryCollection"}):{type:"FeatureCollection",features:T}}});function hA(c,h){return new Ao(c,h)}var xH=hA,Om=ji.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,h,O){this._url=c,this._bounds=ee(h),y(this,O)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Je(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ut(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&Vl(this._image),this},bringToBack:function(){return this._map&&Hl(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=ee(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",h=this._image=c?this._url:ft("img");if(Je(h,"leaflet-image-layer"),this._zoomAnimated&&Je(h,"leaflet-zoom-animated"),this.options.className&&Je(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onload=a(this.fire,this,"load"),h.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(c){var h=this._map.getZoomScale(c.zoom),O=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;Es(this._image,O,h)},_reset:function(){var c=this._image,h=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),O=h.getSize();on(c,h.min),c.style.width=O.x+"px",c.style.height=O.y+"px"},_updateOpacity:function(){qr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),wH=function(c,h,O){return new Om(c,h,O)},pA=Om.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",h=this._image=c?this._url:ft("video");if(Je(h,"leaflet-image-layer"),this._zoomAnimated&&Je(h,"leaflet-zoom-animated"),this.options.className&&Je(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onloadeddata=a(this.fire,this,"load"),c){for(var O=h.getElementsByTagName("source"),T=[],k=0;k<O.length;k++)T.push(O[k].src);this._url=O.length>0?T:[h.src];return}_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(h.style,"objectFit")&&(h.style.objectFit="fill"),h.autoplay=!!this.options.autoplay,h.loop=!!this.options.loop,h.muted=!!this.options.muted,h.playsInline=!!this.options.playsInline;for(var G=0;G<this._url.length;G++){var re=ft("source");re.src=this._url[G],h.appendChild(re)}}});function OH(c,h,O){return new pA(c,h,O)}var mA=Om.extend({_initImage:function(){var c=this._image=this._url;Je(c,"leaflet-image-layer"),this._zoomAnimated&&Je(c,"leaflet-zoom-animated"),this.options.className&&Je(c,this.options.className),c.onselectstart=d,c.onmousemove=d}});function SH(c,h,O){return new mA(c,h,O)}var Ji=ji.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,h){c&&(c instanceof ae||_(c))?(this._latlng=oe(c),y(this,h)):(y(this,c),this._source=h),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&qr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&qr(this._container,1),this.bringToFront(),this.options.interactive&&(Je(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(qr(this._container,0),this._removeTimeout=setTimeout(a(Ut,void 0,this._container),200)):Ut(this._container),this.options.interactive&&(Qt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=oe(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Vl(this._container),this},bringToBack:function(){return this._map&&Hl(this._container),this},_prepareOpen:function(c){var h=this._source;if(!h._map)return!1;if(h instanceof Co){h=null;var O=this._source._layers;for(var T in O)if(O[T]._map){h=O[T];break}if(!h)return!1;this._source=h}if(!c)if(h.getCenter)c=h.getCenter();else if(h.getLatLng)c=h.getLatLng();else if(h.getBounds)c=h.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,h=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof h=="string")c.innerHTML=h;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(h)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),h=F(this.options.offset),O=this._getAnchor();this._zoomAnimated?on(this._container,c.add(O)):h=h.add(c).add(O);var T=this._containerBottom=-h.y,k=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=T+"px",this._container.style.left=k+"px"}},_getAnchor:function(){return[0,0]}});lt.include({_initOverlay:function(c,h,O,T){var k=h;return k instanceof c||(k=new c(T).setContent(h)),O&&k.setLatLng(O),k}}),ji.include({_initOverlay:function(c,h,O,T){var k=O;return k instanceof c?(y(k,T),k._source=this):(k=h&&!T?h:new c(T,this),k.setContent(O)),k}});var Sm=Ji.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,Ji.prototype.openOn.call(this,c)},onAdd:function(c){Ji.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof pa||this._source.on("preclick",Ts))},onRemove:function(c){Ji.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof pa||this._source.off("preclick",Ts))},getEvents:function(){var c=Ji.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",h=this._container=ft("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),O=this._wrapper=ft("div",c+"-content-wrapper",h);if(this._contentNode=ft("div",c+"-content",O),kf(h),p_(this._contentNode),Ke(h,"contextmenu",Ts),this._tipContainer=ft("div",c+"-tip-container",h),this._tip=ft("div",c+"-tip",this._tipContainer),this.options.closeButton){var T=this._closeButton=ft("a",c+"-close-button",h);T.setAttribute("role","button"),T.setAttribute("aria-label","Close popup"),T.href="#close",T.innerHTML='<span aria-hidden="true">×</span>',Ke(T,"click",function(k){Mn(k),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,h=c.style;h.width="",h.whiteSpace="nowrap";var O=c.offsetWidth;O=Math.min(O,this.options.maxWidth),O=Math.max(O,this.options.minWidth),h.width=O+1+"px",h.whiteSpace="",h.height="";var T=c.offsetHeight,k=this.options.maxHeight,G="leaflet-popup-scrolled";k&&T>k?(h.height=k+"px",Je(c,G)):Qt(c,G),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),O=this._getAnchor();on(this._container,h.add(O))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,h=parseInt(Tf(this._container,"marginBottom"),10)||0,O=this._container.offsetHeight+h,T=this._containerWidth,k=new K(this._containerLeft,-O-this._containerBottom);k._add(js(this._container));var G=c.layerPointToContainerPoint(k),re=F(this.options.autoPanPadding),ue=F(this.options.autoPanPaddingTopLeft||re),de=F(this.options.autoPanPaddingBottomRight||re),_e=c.getSize(),Le=0,Ve=0;G.x+T+de.x>_e.x&&(Le=G.x+T-_e.x+de.x),G.x-Le-ue.x<0&&(Le=G.x-ue.x),G.y+O+de.y>_e.y&&(Ve=G.y+O-_e.y+de.y),G.y-Ve-ue.y<0&&(Ve=G.y-ue.y),(Le||Ve)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Le,Ve]))}},_getAnchor:function(){return F(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),EH=function(c,h){return new Sm(c,h)};lt.mergeOptions({closePopupOnClick:!0}),lt.include({openPopup:function(c,h,O){return this._initOverlay(Sm,c,h,O).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),ji.include({bindPopup:function(c,h){return this._popup=this._initOverlay(Sm,this._popup,c,h),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof Co||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){Cs(c);var h=c.layer||c.target;if(this._popup._source===h&&!(h instanceof pa)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=h,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Em=Ji.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){Ji.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){Ji.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=Ji.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",h=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var h,O,T=this._map,k=this._container,G=T.latLngToContainerPoint(T.getCenter()),re=T.layerPointToContainerPoint(c),ue=this.options.direction,de=k.offsetWidth,_e=k.offsetHeight,Le=F(this.options.offset),Ve=this._getAnchor();ue==="top"?(h=de/2,O=_e):ue==="bottom"?(h=de/2,O=0):ue==="center"?(h=de/2,O=_e/2):ue==="right"?(h=0,O=_e/2):ue==="left"?(h=de,O=_e/2):re.x<G.x?(ue="right",h=0,O=_e/2):(ue="left",h=de+(Le.x+Ve.x)*2,O=_e/2),c=c.subtract(F(h,O,!0)).add(Le).add(Ve),Qt(k,"leaflet-tooltip-right"),Qt(k,"leaflet-tooltip-left"),Qt(k,"leaflet-tooltip-top"),Qt(k,"leaflet-tooltip-bottom"),Je(k,"leaflet-tooltip-"+ue),on(k,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&qr(this._container,c)},_animateZoom:function(c){var h=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(h)},_getAnchor:function(){return F(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),jH=function(c,h){return new Em(c,h)};lt.include({openTooltip:function(c,h,O){return this._initOverlay(Em,c,h,O).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),ji.include({bindTooltip:function(c,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Em,this._tooltip,c,h),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var h=c?"off":"on",O={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?O.add=this._openTooltip:(O.mouseover=this._openTooltip,O.mouseout=this.closeTooltip,O.click=this._openTooltip,this._map?this._addFocusListeners():O.add=this._addFocusListeners),this._tooltip.options.sticky&&(O.mousemove=this._moveTooltip),this[h](O),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof Co||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var h=typeof c.getElement=="function"&&c.getElement();h&&(Ke(h,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),Ke(h,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var h=typeof c.getElement=="function"&&c.getElement();h&&h.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var h=this;this._map.once("moveend",function(){h._openOnceFlag=!1,h._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var h=c.latlng,O,T;this._tooltip.options.sticky&&c.originalEvent&&(O=this._map.mouseEventToContainerPoint(c.originalEvent),T=this._map.containerPointToLayerPoint(O),h=this._map.layerPointToLatLng(T)),this._tooltip.setLatLng(h)}});var vA=Gl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var h=c&&c.tagName==="DIV"?c:document.createElement("div"),O=this.options;if(O.html instanceof Element?(fm(h),h.appendChild(O.html)):h.innerHTML=O.html!==!1?O.html:"",O.bgPos){var T=F(O.bgPos);h.style.backgroundPosition=-T.x+"px "+-T.y+"px"}return this._setIconStyles(h,"icon"),h},createShadow:function(){return null}});function TH(c){return new vA(c)}Gl.Default=Rf;var Mf=ji.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ue.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){y(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),Ut(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Vl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Hl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof K?c:new K(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var h=this.getPane().children,O=-c(-1/0,1/0),T=0,k=h.length,G;T<k;T++)G=h[T].style.zIndex,h[T]!==this._container&&G&&(O=c(O,+G));isFinite(O)&&(this.options.zIndex=O+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ue.ielt9){qr(this._container,this.options.opacity);var c=+new Date,h=!1,O=!1;for(var T in this._tiles){var k=this._tiles[T];if(!(!k.current||!k.loaded)){var G=Math.min(1,(c-k.loaded)/200);qr(k.el,G),G<1?h=!0:(k.active?O=!0:this._onOpaqueTile(k),k.active=!0)}}O&&!this._noPrune&&this._pruneTiles(),h&&(z(this._fadeFrame),this._fadeFrame=D(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=ft("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,h=this.options.maxZoom;if(c!==void 0){for(var O in this._levels)O=Number(O),this._levels[O].el.children.length||O===c?(this._levels[O].el.style.zIndex=h-Math.abs(c-O),this._onUpdateLevel(O)):(Ut(this._levels[O].el),this._removeTilesAtZoom(O),this._onRemoveLevel(O),delete this._levels[O]);var T=this._levels[c],k=this._map;return T||(T=this._levels[c]={},T.el=ft("div","leaflet-tile-container leaflet-zoom-animated",this._container),T.el.style.zIndex=h,T.origin=k.project(k.unproject(k.getPixelOrigin()),c).round(),T.zoom=c,this._setZoomTransform(T,k.getCenter(),k.getZoom()),d(T.el.offsetWidth),this._onCreateLevel(T)),this._level=T,T}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var c,h,O=this._map.getZoom();if(O>this.options.maxZoom||O<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)h=this._tiles[c],h.retain=h.current;for(c in this._tiles)if(h=this._tiles[c],h.current&&!h.active){var T=h.coords;this._retainParent(T.x,T.y,T.z,T.z-5)||this._retainChildren(T.x,T.y,T.z,T.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var h in this._tiles)this._tiles[h].coords.z===c&&this._removeTile(h)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)Ut(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,h,O,T){var k=Math.floor(c/2),G=Math.floor(h/2),re=O-1,ue=new K(+k,+G);ue.z=+re;var de=this._tileCoordsToKey(ue),_e=this._tiles[de];return _e&&_e.active?(_e.retain=!0,!0):(_e&&_e.loaded&&(_e.retain=!0),re>T?this._retainParent(k,G,re,T):!1)},_retainChildren:function(c,h,O,T){for(var k=2*c;k<2*c+2;k++)for(var G=2*h;G<2*h+2;G++){var re=new K(k,G);re.z=O+1;var ue=this._tileCoordsToKey(re),de=this._tiles[ue];if(de&&de.active){de.retain=!0;continue}else de&&de.loaded&&(de.retain=!0);O+1<T&&this._retainChildren(k,G,O+1,T)}},_resetView:function(c){var h=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),h,h)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var h=this.options;return h.minNativeZoom!==void 0&&c<h.minNativeZoom?h.minNativeZoom:h.maxNativeZoom!==void 0&&h.maxNativeZoom<c?h.maxNativeZoom:c},_setView:function(c,h,O,T){var k=Math.round(h);this.options.maxZoom!==void 0&&k>this.options.maxZoom||this.options.minZoom!==void 0&&k<this.options.minZoom?k=void 0:k=this._clampZoom(k);var G=this.options.updateWhenZooming&&k!==this._tileZoom;(!T||G)&&(this._tileZoom=k,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),k!==void 0&&this._update(c),O||this._pruneTiles(),this._noPrune=!!O),this._setZoomTransforms(c,h)},_setZoomTransforms:function(c,h){for(var O in this._levels)this._setZoomTransform(this._levels[O],c,h)},_setZoomTransform:function(c,h,O){var T=this._map.getZoomScale(O,c.zoom),k=c.origin.multiplyBy(T).subtract(this._map._getNewPixelOrigin(h,O)).round();Ue.any3d?Es(c.el,k,T):on(c.el,k)},_resetGrid:function(){var c=this._map,h=c.options.crs,O=this._tileSize=this.getTileSize(),T=this._tileZoom,k=this._map.getPixelWorldBounds(this._tileZoom);k&&(this._globalTileRange=this._pxBoundsToTileRange(k)),this._wrapX=h.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,h.wrapLng[0]],T).x/O.x),Math.ceil(c.project([0,h.wrapLng[1]],T).x/O.y)],this._wrapY=h.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([h.wrapLat[0],0],T).y/O.x),Math.ceil(c.project([h.wrapLat[1],0],T).y/O.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var h=this._map,O=h._animatingZoom?Math.max(h._animateToZoom,h.getZoom()):h.getZoom(),T=h.getZoomScale(O,this._tileZoom),k=h.project(c,this._tileZoom).floor(),G=h.getSize().divideBy(T*2);return new H(k.subtract(G),k.add(G))},_update:function(c){var h=this._map;if(h){var O=this._clampZoom(h.getZoom());if(c===void 0&&(c=h.getCenter()),this._tileZoom!==void 0){var T=this._getTiledPixelBounds(c),k=this._pxBoundsToTileRange(T),G=k.getCenter(),re=[],ue=this.options.keepBuffer,de=new H(k.getBottomLeft().subtract([ue,-ue]),k.getTopRight().add([ue,-ue]));if(!(isFinite(k.min.x)&&isFinite(k.min.y)&&isFinite(k.max.x)&&isFinite(k.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var _e in this._tiles){var Le=this._tiles[_e].coords;(Le.z!==this._tileZoom||!de.contains(new K(Le.x,Le.y)))&&(this._tiles[_e].current=!1)}if(Math.abs(O-this._tileZoom)>1){this._setView(c,O);return}for(var Ve=k.min.y;Ve<=k.max.y;Ve++)for(var tt=k.min.x;tt<=k.max.x;tt++){var er=new K(tt,Ve);if(er.z=this._tileZoom,!!this._isValidTile(er)){var _n=this._tiles[this._tileCoordsToKey(er)];_n?_n.current=!0:re.push(er)}}if(re.sort(function(pr,Kl){return pr.distanceTo(G)-Kl.distanceTo(G)}),re.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Yr=document.createDocumentFragment();for(tt=0;tt<re.length;tt++)this._addTile(re[tt],Yr);this._level.el.appendChild(Yr)}}}},_isValidTile:function(c){var h=this._map.options.crs;if(!h.infinite){var O=this._globalTileRange;if(!h.wrapLng&&(c.x<O.min.x||c.x>O.max.x)||!h.wrapLat&&(c.y<O.min.y||c.y>O.max.y))return!1}if(!this.options.bounds)return!0;var T=this._tileCoordsToBounds(c);return ee(this.options.bounds).overlaps(T)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var h=this._map,O=this.getTileSize(),T=c.scaleBy(O),k=T.add(O),G=h.unproject(T,c.z),re=h.unproject(k,c.z);return[G,re]},_tileCoordsToBounds:function(c){var h=this._tileCoordsToNwSe(c),O=new Y(h[0],h[1]);return this.options.noWrap||(O=this._map.wrapLatLngBounds(O)),O},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var h=c.split(":"),O=new K(+h[0],+h[1]);return O.z=+h[2],O},_removeTile:function(c){var h=this._tiles[c];h&&(Ut(h.el),delete this._tiles[c],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){Je(c,"leaflet-tile");var h=this.getTileSize();c.style.width=h.x+"px",c.style.height=h.y+"px",c.onselectstart=d,c.onmousemove=d,Ue.ielt9&&this.options.opacity<1&&qr(c,this.options.opacity)},_addTile:function(c,h){var O=this._getTilePos(c),T=this._tileCoordsToKey(c),k=this.createTile(this._wrapCoords(c),a(this._tileReady,this,c));this._initTile(k),this.createTile.length<2&&D(a(this._tileReady,this,c,null,k)),on(k,O),this._tiles[T]={el:k,coords:c,current:!0},h.appendChild(k),this.fire("tileloadstart",{tile:k,coords:c})},_tileReady:function(c,h,O){h&&this.fire("tileerror",{error:h,tile:O,coords:c});var T=this._tileCoordsToKey(c);O=this._tiles[T],O&&(O.loaded=+new Date,this._map._fadeAnimated?(qr(O.el,0),z(this._fadeFrame),this._fadeFrame=D(this._updateOpacity,this)):(O.active=!0,this._pruneTiles()),h||(Je(O.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:O.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ue.ielt9||!this._map._fadeAnimated?D(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var h=new K(this._wrapX?f(c.x,this._wrapX):c.x,this._wrapY?f(c.y,this._wrapY):c.y);return h.z=c.z,h},_pxBoundsToTileRange:function(c){var h=this.getTileSize();return new H(c.min.unscaleBy(h).floor(),c.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function CH(c){return new Mf(c)}var Yl=Mf.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,h){this._url=c,h=y(this,h),h.detectRetina&&Ue.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,h){return this._url===c&&h===void 0&&(h=!0),this._url=c,h||this.redraw(),this},createTile:function(c,h){var O=document.createElement("img");return Ke(O,"load",a(this._tileOnLoad,this,h,O)),Ke(O,"error",a(this._tileOnError,this,h,O)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(O.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(O.referrerPolicy=this.options.referrerPolicy),O.alt="",O.src=this.getTileUrl(c),O},getTileUrl:function(c){var h={r:Ue.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var O=this._globalTileRange.max.y-c.y;this.options.tms&&(h.y=O),h["-y"]=O}return x(this._url,i(h,this.options))},_tileOnLoad:function(c,h){Ue.ielt9?setTimeout(a(c,this,null,h),0):c(null,h)},_tileOnError:function(c,h,O){var T=this.options.errorTileUrl;T&&h.getAttribute("src")!==T&&(h.src=T),c(O,h)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,h=this.options.maxZoom,O=this.options.zoomReverse,T=this.options.zoomOffset;return O&&(c=h-c),c+T},_getSubdomain:function(c){var h=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var c,h;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(h=this._tiles[c].el,h.onload=d,h.onerror=d,!h.complete)){h.src=j;var O=this._tiles[c].coords;Ut(h),delete this._tiles[c],this.fire("tileabort",{tile:h,coords:O})}},_removeTile:function(c){var h=this._tiles[c];if(h)return h.el.setAttribute("src",j),Mf.prototype._removeTile.call(this,c)},_tileReady:function(c,h,O){if(!(!this._map||O&&O.getAttribute("src")===j))return Mf.prototype._tileReady.call(this,c,h,O)}});function gA(c,h){return new Yl(c,h)}var yA=Yl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,h){this._url=c;var O=i({},this.defaultWmsParams);for(var T in h)T in this.options||(O[T]=h[T]);h=y(this,h);var k=h.detectRetina&&Ue.retina?2:1,G=this.getTileSize();O.width=G.x*k,O.height=G.y*k,this.wmsParams=O},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,Yl.prototype.onAdd.call(this,c)},getTileUrl:function(c){var h=this._tileCoordsToNwSe(c),O=this._crs,T=ne(O.project(h[0]),O.project(h[1])),k=T.min,G=T.max,re=(this._wmsVersion>=1.3&&this._crs===cA?[k.y,k.x,G.y,G.x]:[k.x,k.y,G.x,G.y]).join(","),ue=Yl.prototype.getTileUrl.call(this,c);return ue+w(this.wmsParams,ue,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+re},setParams:function(c,h){return i(this.wmsParams,c),h||this.redraw(),this}});function PH(c,h){return new yA(c,h)}Yl.WMS=yA,gA.wms=PH;var ko=ji.extend({options:{padding:.1},initialize:function(c){y(this,c),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,h){var O=this._map.getZoomScale(h,this._zoom),T=this._map.getSize().multiplyBy(.5+this.options.padding),k=this._map.project(this._center,h),G=T.multiplyBy(-O).add(k).subtract(this._map._getNewPixelOrigin(c,h));Ue.any3d?Es(this._container,G,O):on(this._container,G)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,h=this._map.getSize(),O=this._map.containerPointToLayerPoint(h.multiplyBy(-c)).round();this._bounds=new H(O,O.add(h.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),bA=ko.extend({options:{tolerance:0},getEvents:function(){var c=ko.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ko.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");Ke(c,"mousemove",this._onMouseMove,this),Ke(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ke(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,Ut(this._container),xt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var h in this._layers)c=this._layers[h],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ko.prototype._update.call(this);var c=this._bounds,h=this._container,O=c.getSize(),T=Ue.retina?2:1;on(h,c.min),h.width=T*O.x,h.height=T*O.y,h.style.width=O.x+"px",h.style.height=O.y+"px",Ue.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){ko.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[l(c)]=c;var h=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var h=c._order,O=h.next,T=h.prev;O?O.prev=T:this._drawLast=T,T?T.next=O:this._drawFirst=O,delete c._order,delete this._layers[l(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var h=c.options.dashArray.split(/[, ]+/),O=[],T,k;for(k=0;k<h.length;k++){if(T=Number(h[k]),isNaN(T))return;O.push(T)}c.options._dashArray=O}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||D(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var h=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(c._pxBounds.min.subtract([h,h])),this._redrawBounds.extend(c._pxBounds.max.add([h,h]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var h=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,h.x,h.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,h=this._redrawBounds;if(this._ctx.save(),h){var O=h.getSize();this._ctx.beginPath(),this._ctx.rect(h.min.x,h.min.y,O.x,O.y),this._ctx.clip()}this._drawing=!0;for(var T=this._drawFirst;T;T=T.next)c=T.layer,(!h||c._pxBounds&&c._pxBounds.intersects(h))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,h){if(this._drawing){var O,T,k,G,re=c._parts,ue=re.length,de=this._ctx;if(ue){for(de.beginPath(),O=0;O<ue;O++){for(T=0,k=re[O].length;T<k;T++)G=re[O][T],de[T?"lineTo":"moveTo"](G.x,G.y);h&&de.closePath()}this._fillStroke(de,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var h=c._point,O=this._ctx,T=Math.max(Math.round(c._radius),1),k=(Math.max(Math.round(c._radiusY),1)||T)/T;k!==1&&(O.save(),O.scale(1,k)),O.beginPath(),O.arc(h.x,h.y/k,T,0,Math.PI*2,!1),k!==1&&O.restore(),this._fillStroke(O,c)}},_fillStroke:function(c,h){var O=h.options;O.fill&&(c.globalAlpha=O.fillOpacity,c.fillStyle=O.fillColor||O.color,c.fill(O.fillRule||"evenodd")),O.stroke&&O.weight!==0&&(c.setLineDash&&c.setLineDash(h.options&&h.options._dashArray||[]),c.globalAlpha=O.opacity,c.lineWidth=O.weight,c.strokeStyle=O.color,c.lineCap=O.lineCap,c.lineJoin=O.lineJoin,c.stroke())},_onClick:function(c){for(var h=this._map.mouseEventToLayerPoint(c),O,T,k=this._drawFirst;k;k=k.next)O=k.layer,O.options.interactive&&O._containsPoint(h)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(O))&&(T=O);this._fireEvent(T?[T]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var h=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,h)}},_handleMouseOut:function(c){var h=this._hoveredLayer;h&&(Qt(this._container,"leaflet-interactive"),this._fireEvent([h],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,h){if(!this._mouseHoverThrottled){for(var O,T,k=this._drawFirst;k;k=k.next)O=k.layer,O.options.interactive&&O._containsPoint(h)&&(T=O);T!==this._hoveredLayer&&(this._handleMouseOut(c),T&&(Je(this._container,"leaflet-interactive"),this._fireEvent([T],c,"mouseover"),this._hoveredLayer=T)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,h,O){this._map._fireDOMEvent(h,O||h.type,c)},_bringToFront:function(c){var h=c._order;if(h){var O=h.next,T=h.prev;if(O)O.prev=T;else return;T?T.next=O:O&&(this._drawFirst=O),h.prev=this._drawLast,this._drawLast.next=h,h.next=null,this._drawLast=h,this._requestRedraw(c)}},_bringToBack:function(c){var h=c._order;if(h){var O=h.next,T=h.prev;if(T)T.next=O;else return;O?O.prev=T:T&&(this._drawLast=T),h.prev=null,h.next=this._drawFirst,this._drawFirst.prev=h,this._drawFirst=h,this._requestRedraw(c)}}});function _A(c){return Ue.canvas?new bA(c):null}var If=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),AH={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ko.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var h=c._container=If("shape");Je(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",c._path=If("path"),h.appendChild(c._path),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){var h=c._container;this._container.appendChild(h),c.options.interactive&&c.addInteractiveTarget(h)},_removePath:function(c){var h=c._container;Ut(h),c.removeInteractiveTarget(h),delete this._layers[l(c)]},_updateStyle:function(c){var h=c._stroke,O=c._fill,T=c.options,k=c._container;k.stroked=!!T.stroke,k.filled=!!T.fill,T.stroke?(h||(h=c._stroke=If("stroke")),k.appendChild(h),h.weight=T.weight+"px",h.color=T.color,h.opacity=T.opacity,T.dashArray?h.dashStyle=_(T.dashArray)?T.dashArray.join(" "):T.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=T.lineCap.replace("butt","flat"),h.joinstyle=T.lineJoin):h&&(k.removeChild(h),c._stroke=null),T.fill?(O||(O=c._fill=If("fill")),k.appendChild(O),O.color=T.fillColor||T.color,O.opacity=T.fillOpacity):O&&(k.removeChild(O),c._fill=null)},_updateCircle:function(c){var h=c._point.round(),O=Math.round(c._radius),T=Math.round(c._radiusY||O);this._setPath(c,c._empty()?"M0 0":"AL "+h.x+","+h.y+" "+O+","+T+" 0,"+65535*360)},_setPath:function(c,h){c._path.v=h},_bringToFront:function(c){Vl(c._container)},_bringToBack:function(c){Hl(c._container)}},jm=Ue.vml?If:Se,Df=ko.extend({_initContainer:function(){this._container=jm("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=jm("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ut(this._container),xt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ko.prototype._update.call(this);var c=this._bounds,h=c.getSize(),O=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,O.setAttribute("width",h.x),O.setAttribute("height",h.y)),on(O,c.min),O.setAttribute("viewBox",[c.min.x,c.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(c){var h=c._path=jm("path");c.options.className&&Je(h,c.options.className),c.options.interactive&&Je(h,"leaflet-interactive"),this._updateStyle(c),this._layers[l(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){Ut(c._path),c.removeInteractiveTarget(c._path),delete this._layers[l(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var h=c._path,O=c.options;h&&(O.stroke?(h.setAttribute("stroke",O.color),h.setAttribute("stroke-opacity",O.opacity),h.setAttribute("stroke-width",O.weight),h.setAttribute("stroke-linecap",O.lineCap),h.setAttribute("stroke-linejoin",O.lineJoin),O.dashArray?h.setAttribute("stroke-dasharray",O.dashArray):h.removeAttribute("stroke-dasharray"),O.dashOffset?h.setAttribute("stroke-dashoffset",O.dashOffset):h.removeAttribute("stroke-dashoffset")):h.setAttribute("stroke","none"),O.fill?(h.setAttribute("fill",O.fillColor||O.color),h.setAttribute("fill-opacity",O.fillOpacity),h.setAttribute("fill-rule",O.fillRule||"evenodd")):h.setAttribute("fill","none"))},_updatePoly:function(c,h){this._setPath(c,se(c._parts,h))},_updateCircle:function(c){var h=c._point,O=Math.max(Math.round(c._radius),1),T=Math.max(Math.round(c._radiusY),1)||O,k="a"+O+","+T+" 0 1,0 ",G=c._empty()?"M0 0":"M"+(h.x-O)+","+h.y+k+O*2+",0 "+k+-O*2+",0 ";this._setPath(c,G)},_setPath:function(c,h){c._path.setAttribute("d",h)},_bringToFront:function(c){Vl(c._path)},_bringToBack:function(c){Hl(c._path)}});Ue.vml&&Df.include(AH);function xA(c){return Ue.svg||Ue.vml?new Df(c):null}lt.include({getRenderer:function(c){var h=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var h=this._paneRenderers[c];return h===void 0&&(h=this._createRenderer({pane:c}),this._paneRenderers[c]=h),h},_createRenderer:function(c){return this.options.preferCanvas&&_A(c)||xA(c)}});var wA=ql.extend({initialize:function(c,h){ql.prototype.initialize.call(this,this._boundsToLatLngs(c),h)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=ee(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function kH(c,h){return new wA(c,h)}Df.create=jm,Df.pointsToPath=se,Ao.geometryToLayer=bm,Ao.coordsToLatLng=O_,Ao.coordsToLatLngs=_m,Ao.latLngToCoords=S_,Ao.latLngsToCoords=xm,Ao.getFeature=Zl,Ao.asFeature=wm,lt.mergeOptions({boxZoom:!0});var OA=Qi.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){Ke(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Cf(),a_(),this._startPoint=this._map.mouseEventToContainerPoint(c),Ke(document,{contextmenu:Cs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),Je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var h=new H(this._point,this._startPoint),O=h.getSize();on(this._box,h.min),this._box.style.width=O.x+"px",this._box.style.height=O.y+"px"},_finish:function(){this._moved&&(Ut(this._box),Qt(this._container,"leaflet-crosshair")),Pf(),s_(),xt(document,{contextmenu:Cs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var h=new Y(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});lt.addInitHook("addHandler","boxZoom",OA),lt.mergeOptions({doubleClickZoom:!0});var SA=Qi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var h=this._map,O=h.getZoom(),T=h.options.zoomDelta,k=c.originalEvent.shiftKey?O-T:O+T;h.options.doubleClickZoom==="center"?h.setZoom(k):h.setZoomAround(c.containerPoint,k)}});lt.addInitHook("addHandler","doubleClickZoom",SA),lt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var EA=Qi.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new ha(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}Je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qt(this._map._container,"leaflet-grab"),Qt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var h=ee(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(h.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(h.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var h=this._lastTime=+new Date,O=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(O),this._times.push(h),this._prunePositions(h)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,h){return c-(c-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;c.x<h.min.x&&(c.x=this._viscousLimit(c.x,h.min.x)),c.y<h.min.y&&(c.y=this._viscousLimit(c.y,h.min.y)),c.x>h.max.x&&(c.x=this._viscousLimit(c.x,h.max.x)),c.y>h.max.y&&(c.y=this._viscousLimit(c.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,h=Math.round(c/2),O=this._initialWorldOffset,T=this._draggable._newPos.x,k=(T-h+O)%c+h-O,G=(T+h+O)%c-h-O,re=Math.abs(k+O)<Math.abs(G+O)?k:G;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=re},_onDragEnd:function(c){var h=this._map,O=h.options,T=!O.inertia||c.noInertia||this._times.length<2;if(h.fire("dragend",c),T)h.fire("moveend");else{this._prunePositions(+new Date);var k=this._lastPos.subtract(this._positions[0]),G=(this._lastTime-this._times[0])/1e3,re=O.easeLinearity,ue=k.multiplyBy(re/G),de=ue.distanceTo([0,0]),_e=Math.min(O.inertiaMaxSpeed,de),Le=ue.multiplyBy(_e/de),Ve=_e/(O.inertiaDeceleration*re),tt=Le.multiplyBy(-Ve/2).round();!tt.x&&!tt.y?h.fire("moveend"):(tt=h._limitOffset(tt,h.options.maxBounds),D(function(){h.panBy(tt,{duration:Ve,easeLinearity:re,noMoveStart:!0,animate:!0})}))}}});lt.addInitHook("addHandler","dragging",EA),lt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var jA=Qi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),Ke(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,h=document.documentElement,O=c.scrollTop||h.scrollTop,T=c.scrollLeft||h.scrollLeft;this._map._container.focus(),window.scrollTo(T,O)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var h=this._panKeys={},O=this.keyCodes,T,k;for(T=0,k=O.left.length;T<k;T++)h[O.left[T]]=[-1*c,0];for(T=0,k=O.right.length;T<k;T++)h[O.right[T]]=[c,0];for(T=0,k=O.down.length;T<k;T++)h[O.down[T]]=[0,c];for(T=0,k=O.up.length;T<k;T++)h[O.up[T]]=[0,-1*c]},_setZoomDelta:function(c){var h=this._zoomKeys={},O=this.keyCodes,T,k;for(T=0,k=O.zoomIn.length;T<k;T++)h[O.zoomIn[T]]=c;for(T=0,k=O.zoomOut.length;T<k;T++)h[O.zoomOut[T]]=-c},_addHooks:function(){Ke(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var h=c.keyCode,O=this._map,T;if(h in this._panKeys){if(!O._panAnim||!O._panAnim._inProgress)if(T=this._panKeys[h],c.shiftKey&&(T=F(T).multiplyBy(3)),O.options.maxBounds&&(T=O._limitOffset(F(T),O.options.maxBounds)),O.options.worldCopyJump){var k=O.wrapLatLng(O.unproject(O.project(O.getCenter()).add(T)));O.panTo(k)}else O.panBy(T)}else if(h in this._zoomKeys)O.setZoom(O.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[h]);else if(h===27&&O._popup&&O._popup.options.closeOnEscapeKey)O.closePopup();else return;Cs(c)}}});lt.addInitHook("addHandler","keyboard",jA),lt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var TA=Qi.extend({addHooks:function(){Ke(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var h=XP(c),O=this._map.options.wheelDebounceTime;this._delta+=h,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var T=Math.max(O-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),T),Cs(c)},_performZoom:function(){var c=this._map,h=c.getZoom(),O=this._map.options.zoomSnap||0;c._stop();var T=this._delta/(this._map.options.wheelPxPerZoomLevel*4),k=4*Math.log(2/(1+Math.exp(-Math.abs(T))))/Math.LN2,G=O?Math.ceil(k/O)*O:k,re=c._limitZoom(h+(this._delta>0?G:-G))-h;this._delta=0,this._startTime=null,re&&(c.options.scrollWheelZoom==="center"?c.setZoom(h+re):c.setZoomAround(this._lastMousePos,h+re))}});lt.addInitHook("addHandler","scrollWheelZoom",TA);var NH=600;lt.mergeOptions({tapHold:Ue.touchNative&&Ue.safari&&Ue.mobile,tapTolerance:15});var CA=Qi.extend({addHooks:function(){Ke(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var h=c.touches[0];this._startPos=this._newPos=new K(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Ke(document,"touchend",Mn),Ke(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),NH),Ke(document,"touchend touchcancel contextmenu",this._cancel,this),Ke(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){xt(document,"touchend",Mn),xt(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),xt(document,"touchend touchcancel contextmenu",this._cancel,this),xt(document,"touchmove",this._onMove,this)},_onMove:function(c){var h=c.touches[0];this._newPos=new K(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,h){var O=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:h.screenX,screenY:h.screenY,clientX:h.clientX,clientY:h.clientY});O._simulated=!0,h.target.dispatchEvent(O)}});lt.addInitHook("addHandler","tapHold",CA),lt.mergeOptions({touchZoom:Ue.touch,bounceAtZoomLimits:!0});var PA=Qi.extend({addHooks:function(){Je(this._map._container,"leaflet-touch-zoom"),Ke(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qt(this._map._container,"leaflet-touch-zoom"),xt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var h=this._map;if(!(!c.touches||c.touches.length!==2||h._animatingZoom||this._zooming)){var O=h.mouseEventToContainerPoint(c.touches[0]),T=h.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(O.add(T)._divideBy(2))),this._startDist=O.distanceTo(T),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),Ke(document,"touchmove",this._onTouchMove,this),Ke(document,"touchend touchcancel",this._onTouchEnd,this),Mn(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var h=this._map,O=h.mouseEventToContainerPoint(c.touches[0]),T=h.mouseEventToContainerPoint(c.touches[1]),k=O.distanceTo(T)/this._startDist;if(this._zoom=h.getScaleZoom(k,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoom<h.getMinZoom()&&k<1||this._zoom>h.getMaxZoom()&&k>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,k===1)return}else{var G=O._add(T)._divideBy(2)._subtract(this._centerPoint);if(k===1&&G.x===0&&G.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(G),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var re=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=D(re,this,!0),Mn(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,z(this._animRequest),xt(document,"touchmove",this._onTouchMove,this),xt(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))}});lt.addInitHook("addHandler","touchZoom",PA),lt.BoxZoom=OA,lt.DoubleClickZoom=SA,lt.Drag=EA,lt.Keyboard=jA,lt.ScrollWheelZoom=TA,lt.TapHold=CA,lt.TouchZoom=PA,n.Bounds=H,n.Browser=Ue,n.CRS=fe,n.Canvas=bA,n.Circle=w_,n.CircleMarker=ym,n.Class=W,n.Control=Ei,n.DivIcon=vA,n.DivOverlay=Ji,n.DomEvent=KV,n.DomUtil=ZV,n.Draggable=ha,n.Evented=te,n.FeatureGroup=Co,n.GeoJSON=Ao,n.GridLayer=Mf,n.Handler=Qi,n.Icon=Gl,n.ImageOverlay=Om,n.LatLng=ae,n.LatLngBounds=Y,n.Layer=ji,n.LayerGroup=Wl,n.LineUtil=uH,n.Map=lt,n.Marker=gm,n.Mixin=rH,n.Path=pa,n.Point=K,n.PolyUtil=iH,n.Polygon=ql,n.Polyline=Po,n.Popup=Sm,n.PosAnimation=QP,n.Projection=cH,n.Rectangle=wA,n.Renderer=ko,n.SVG=Df,n.SVGOverlay=mA,n.TileLayer=Yl,n.Tooltip=Em,n.Transformation=Q,n.Util=q,n.VideoOverlay=pA,n.bind=a,n.bounds=ne,n.canvas=_A,n.circle=yH,n.circleMarker=gH,n.control=Nf,n.divIcon=TH,n.extend=i,n.featureGroup=pH,n.geoJSON=hA,n.geoJson=xH,n.gridLayer=CH,n.icon=mH,n.imageOverlay=wH,n.latLng=oe,n.latLngBounds=ee,n.layerGroup=hH,n.map=XV,n.marker=vH,n.point=F,n.polygon=_H,n.polyline=bH,n.popup=EH,n.rectangle=kH,n.setOptions=y,n.stamp=l,n.svg=xA,n.svgOverlay=SH,n.tileLayer=gA,n.tooltip=jH,n.transformation=Z,n.version=r,n.videoOverlay=OH;var LH=window.L;n.noConflict=function(){return window.L=LH,this},window.L=n})})(zE,zE.exports);var om=zE.exports;const _I=gt(om);function CP(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function PP(e,t){return t==null?function(n,r){const i=R.useRef();return i.current||(i.current=e(n,r)),i}:function(n,r){const i=R.useRef();i.current||(i.current=e(n,r));const o=R.useRef(n),{instance:a}=i.current;return R.useEffect(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,r]),i}}function o8e(e,t){R.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var n;(n=t.layerContainer)==null||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function Mz(e){return function(t){const n=Lz(),r=e(TP(t,n),n);return Az(n.map,t.attribution),Rz(r.current,t.eventHandlers),o8e(r.current,n),r}}function a8e(e,t){const n=PP(e,t),r=Mz(n);return t8e(r)}function s8e(e,t){const n=PP(e),r=i8e(n,t);return n8e(r)}function l8e(e,t){const n=PP(e,t),r=Mz(n);return r8e(r)}function u8e(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 VE(){return VE=Object.assign||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 c8e({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:u,...f},d){const[p]=R.useState({className:i,id:o,style:s}),[v,g]=R.useState(null);R.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const y=R.useCallback(b=>{if(b!==null&&v===null){const x=new om.Map(b,f);n!=null&&u!=null?x.setView(n,u):e!=null&&x.fitBounds(e,t),l!=null&&x.whenReady(l),g(JDe(x))}},[]);R.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const w=v?V.createElement(Nz,{value:v},r):a??null;return V.createElement("div",VE({},p,{ref:y}),w)}const f8e=R.forwardRef(c8e),d8e=a8e(function({position:e,...t},n){const r=new om.Marker(e,t);return CP(r,e8e(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),t.icon!=null&&t.icon!==n.icon&&e.setIcon(t.icon),t.zIndexOffset!=null&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),e.dragging!=null&&t.draggable!==n.draggable&&(t.draggable===!0?e.dragging.enable():e.dragging.disable())}),h8e=s8e(function(e,t){const n=new om.Popup(e,t.overlayContainer);return CP(n,t)},function(e,t,{position:n},r){R.useEffect(function(){const{instance:i}=e;function o(s){s.popup===i&&(i.update(),r(!0))}function a(s){s.popup===i&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),t.overlayContainer==null?(n!=null&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){var s;t.map.off({popupopen:o,popupclose:a}),(s=t.overlayContainer)==null||s.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])}),p8e=l8e(function({url:e,...t},n){const r=new om.TileLayer(e,TP(t,n));return CP(r,n)},function(e,t,n){u8e(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),m8e=()=>m.jsx(p8e,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),v8e=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}},Iz=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx(So,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(Wi,{className:"map-modal__modal-body",children:[m.jsxs("h3",{className:"map-modal__modal-title",children:[n,m.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),m.jsxs(f8e,{...v8e(r),children:[m.jsx(m8e,{}),r.map(({cityName:i,latLong:o,count:a},s)=>m.jsx(d8e,{position:o,children:m.jsxs(h8e,{children:[m.jsx("b",{children:a})," visit",a>1?"s":""," from ",m.jsx("b",{children:i})]})},s))]})]})}),g8e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Kt(),[a,s]=Kt(),[l,u]=R.useState([]),f=ab(),d=R.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return m.jsxs(m.Fragment,{children:[!t&&m.jsx(Ze,{color:"link",className:"open-map-modal-btn__btn",id:f,onClick:()=>d(),"aria-label":"Show in map",children:m.jsx(Te,{icon:m2})}),t&&m.jsxs(Rp,{isOpen:a,toggle:s,children:[m.jsx(Kc,{color:"link",className:"open-map-modal-btn__btn",id:f,children:m.jsx(Te,{icon:m2})}),m.jsxs(Yc,{end:!0,children:[m.jsx(ke,{onClick:()=>d(),children:"Show all locations"}),m.jsx(ke,{onClick:()=>d(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),m.jsx(Tr,{placement:"left",target:f,children:"Show in map"}),m.jsx(Iz,{toggle:o,isOpen:r,title:e,locations:l})]})},Dz=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:l=!1}=t,u=p=>({active:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=R.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=R.useCallback(()=>e({...t,loadPrevInterval:!l}),[l,e,t]);return m.jsxs(ua,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&m.jsxs(m.Fragment,{children:[m.jsx(ke,{active:l,onClick:d,children:"Compare with previous period"}),m.jsx(ke,{divider:!0,tag:"hr"})]}),m.jsx(ke,{header:!0,"aria-hidden":!0,children:"Bots:"}),m.jsx(ke,{active:s,onClick:f,children:"Exclude potential bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),m.jsx(ke,{...u("base_url"),children:"Base URL"}),m.jsx(ke,{...u("invalid_short_url"),children:"Invalid short URL"}),m.jsx(ke,{...u("regular_404"),children:"Regular 404"})]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{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:m.jsx("i",{children:"Reset to defaults"})})]})},$z=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return m.jsxs(m.Fragment,{children:[t&&r===null&&m.jsx(Jo,{loading:!0}),t&&r!==null&&m.jsxs(Jo,{loading:!0,children:["This is going to take a while... :S",m.jsx(a7,{value:r,striped:r>=100,className:"mt-3"})]}),n&&m.jsx(ur,{type:"error",children:m.jsx(_o,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},sg=({children:e,showFallback:t})=>m.jsxs(m.Fragment,{children:[t&&m.jsx(Jo,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&m.jsx(m.Fragment,{children:e})]}),y8e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Kt();return m.jsx(wt,{title:m.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:m.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[m.jsxs("dl",{className:"m-0 me-3",children:[m.jsx("dt",{children:"Delete visits."}),m.jsxs("dd",{className:"m-0",children:["This will delete ",m.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&m.jsx(Ze,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&m.jsxs(Ze,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&m.jsx(m.Fragment,{children:"Click again to confirm"}),n&&m.jsx(m.Fragment,{children:"Deleting..."})]})]})})},b8e={"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"},Fz={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"},Jt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},nr={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"},wa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class be{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=be.getVersionPrecision(t),o=be.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=be.map([t,n],u=>{const f=a-be.getVersionPrecision(u),d=u+new Array(f+1).join(".0");return be.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(s=>{r[s]=a[s]})}return t}static getBrowserAlias(t){return b8e[t]}static getBrowserTypeByAlias(t){return Fz[t]||""}}const bt=/version\/(\d+(\.?_?\d+)+)/i,_8e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=be.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=be.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=be.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=be.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=be.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=be.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=be.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=be.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=be.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=be.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=be.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=be.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=be.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=be.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=be.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=be.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=be.getFirstMatch(bt,e)||be.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=be.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=be.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=be.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=be.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=be.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=be.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=be.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=be.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=be.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(bt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:be.getFirstMatch(r,e),version:be.getSecondMatch(r,e)}}}],x8e=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:nr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:nr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=be.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=be.getWindowsVersionName(t);return{name:nr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:nr.iOS},n=be.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=be.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=be.getMacOSVersionName(t),r={name:nr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=be.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:nr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=be.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=be.getAndroidVersionName(t),r={name:nr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=be.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:nr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=be.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||be.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||be.getFirstMatch(/\bbb(\d+)/i,e);return{name:nr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:nr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:nr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:nr.Linux}}},{test:[/CrOS/],describe(){return{name:nr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:nr.PlayStation4,version:t}}}],w8e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=be.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Jt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Jt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Jt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Jt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Jt.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=be.getFirstMatch(/(ipod|iphone)/i,e);return{type:Jt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Jt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Jt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Jt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Jt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Jt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Jt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Jt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Jt.tv}}}],O8e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:wa.Blink};const t=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:wa.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:wa.Trident},n=be.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:wa.Presto},n=be.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:wa.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:wa.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:wa.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class xI{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=be.find(_8e,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=be.find(x8e,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=be.find(w8e,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=be.find(O8e,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 be.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const s=t[a];typeof s=="string"?(i[a]=s,o+=1):typeof s=="object"&&(n[a]=s,r+=1)}),r>0){const a=Object.keys(n),s=be.find(a,u=>this.isOS(u));if(s){const u=this.satisfies(n[s]);if(u!==void 0)return u}const l=be.find(a,u=>this.isPlatform(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}}if(o>0){const a=Object.keys(i),s=be.find(a,l=>this.isBrowser(l,!0));if(s!==void 0)return this.compareVersion(i[s])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=be.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(be.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class S8e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new xI(t,n)}static parse(t){return new xI(t).getResult()}static get BROWSER_MAP(){return Fz}static get ENGINE_MAP(){return wa}static get OS_MAP(){return nr}static get PLATFORMS_MAP(){return Jt}}const Pv="Others",E8e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],j8e=e=>{if(!qs(e))return{browser:Pv,os:Pv};const{browser:{name:t},os:{name:n}}=S8e.parse(e);return{os:n??Pv,browser:t&&E8e.includes(t)?t:Pv}},T8e=e=>{var t;return qs(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},Uz=(e,t)=>e[t]!==void 0,wI=e=>typeof e=="number"?e:e?parseFloat(e):0,C8e=(e,{os:t})=>{e[t]=(e[t]||0)+1},P8e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},A8e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},Bz=e=>(t,n)=>{const r=Uz(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},k8e=Bz("country"),N8e=Bz("city"),L8e=(e,t)=>{if(!Uz(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[wI(r),wI(i)]};o.count+=1,e[n]=o},R8e=(e,t)=>{if(!ede(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},HE=e=>e.reduce((t,n)=>(C8e(t.os,n),P8e(t.browsers,n),A8e(t.referrers,n),k8e(t.countries,n),N8e(t.cities,n),L8e(t.citiesForMap,n),R8e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),j0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t,s={date:r,potentialBot:a,...j8e(n),referer:T8e(i),country:(o==null?void 0:o.countryName)||"Unknown",city:(o==null?void 0:o.cityName)||"Unknown",latitude:o==null?void 0:o.latitude,longitude:o==null?void 0:o.longitude};return lC(t)?{...s,type:t.type,visitedUrl:t.visitedUrl}:s}),M8e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:j0,processStatsFromVisits:HE},Symbol.toStringTag,{value:"Module"})),xd=20,I8e=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),D8e=(e,t)=>t.filter(n=>I8e(n,e)),$8e=(e,t)=>B7(t,e),F8e=(e,t,n)=>{const r=t?D8e(t,e):[...e],i=$8e(n,r),o=i.length;return{visitsGroups:Zu(i,xd),total:o}},No="visits-table__header-cell visits-table__sticky",U8e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o;const a=fC(767,r),[s,l]=R.useState(void 0),u=R.useRef(s),[f,d]=R.useState({}),p=R.useMemo(()=>F8e(e,s,f),[e,s,f]),[v,g]=R.useState(1),y=v*xd,w=y-xd,b=8+Number(i),x=S=>()=>d({field:S,dir:lb(S,f.field,f.dir)}),_=S=>m.jsx(zd,{currentOrder:f,field:S,className:"visits-table__header-icon"});return R.useEffect(()=>{u.current!==s&&(g(1),n([])),u.current=s},[s,n]),m.jsx("div",{className:"table-responsive-md",children:m.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:`${No} text-center`,onClick:()=>n(t.length<p.total?p.visitsGroups.flat():[]),children:[m.jsx("span",{className:"sr-only",children:"Is selected"}),m.jsx(Te,{icon:gh,className:De({"text-primary":t.length>0})})]}),m.jsxs("th",{className:`${No} text-center`,onClick:x("potentialBot"),children:[m.jsx("span",{className:"sr-only",children:"Is bot"}),m.jsx(Te,{icon:l3}),_("potentialBot")]}),m.jsxs("th",{className:No,onClick:x("date"),children:["Date",_("date")]}),m.jsxs("th",{className:No,onClick:x("country"),children:["Country",_("country")]}),m.jsxs("th",{className:No,onClick:x("city"),children:["City",_("city")]}),m.jsxs("th",{className:No,onClick:x("browser"),children:["Browser",_("browser")]}),m.jsxs("th",{className:No,onClick:x("os"),children:["OS",_("os")]}),m.jsxs("th",{className:No,onClick:x("referer"),children:["Referrer",_("referer")]}),i&&m.jsxs("th",{className:No,onClick:x("visitedUrl"),children:["Visited URL",_("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:b,className:"p-0",children:m.jsx(Bp,{noBorder:!0,large:!1,onChange:l})})})]}),m.jsxs("tbody",{children:[p.total===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:b,className:"text-center",children:"There are no visits matching current filter"})}),(o=p.visitsGroups[v-1])==null?void 0:o.map((S,j)=>{const E=t.includes(S);return m.jsxs("tr",{style:{cursor:"pointer"},className:De({"table-active":E}),onClick:()=>n(E?t.filter(P=>P!==S):[...t,S]),children:[m.jsx("td",{className:"text-center",children:E&&m.jsx(Te,{icon:gh,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:S.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(Te,{icon:l3,id:`botIcon${j}`}),m.jsx(Tr,{placement:"right",target:`botIcon${j}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(Ey,{date:S.date})}),m.jsx("td",{children:S.country}),m.jsx("td",{children:S.city}),m.jsx("td",{children:S.browser}),m.jsx("td",{children:S.os}),m.jsx("td",{children:S.referer}),i&&m.jsx("td",{children:S.visitedUrl})]},j)})]}),p.total>xd&&m.jsx("tfoot",{children:m.jsx("tr",{children:m.jsx("td",{colSpan:b,className:"visits-table__footer-cell visits-table__sticky",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(bC,{pagesCount:Math.ceil(p.total/xd),currentPage:v,setCurrentPage:g,centered:a})}),m.jsx("div",{className:De("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:m.jsxs("div",{children:["Visits ",m.jsx("b",{children:Yt(w+1)})," to"," ",m.jsx("b",{children:Yt(Math.min(y,p.total))})," of"," ",m.jsx("b",{children:Yt(p.total)})]})})]})})})})]})})},Oa={byTime:{title:"By time",subPath:"by-time",icon:iK},byContext:{title:"By context",subPath:"by-context",icon:Qj},byLocation:{title:"By location",subPath:"by-location",icon:m2},list:{title:"List",subPath:"list",icon:B8},options:{title:"Options",subPath:"options",icon:H8,shouldRender:({deletion:e})=>!!e}};Object.freeze(Oa);const fw=({display:e})=>e&&m.jsx("div",{className:"mt-3 mx-auto w-75",children:m.jsx(wt,{children:m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(Te,{icon:nX,className:"mt-1"}),m.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let Av;const am=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:l,prevVisits:u,loading:f,errorData:d,fallbackInterval:p}=n,[{dateRange:v,visitsFilter:g,loadPrevInterval:y},w]=Pz(),b=ys("visits"),[x,_]=R.useState(),S=R.useCallback(({startDate:C,endDate:A},U)=>{w({dateRange:{startDate:C??void 0,endDate:A??void 0}}),_(U)},[w]),j=R.useRef(v??p??(b==null?void 0:b.defaultInterval)??"last30Days"),[E,P]=R.useState([]),[N,I]=R.useState(),M=R.useRef(!0),{search:D}=Xn(),z=R.useCallback(C=>C?`${C}${D}`:D,[D]),q=R.useMemo(()=>j0(l),[l]),W=R.useMemo(()=>u&&j0(u),[u]),{os:X,browsers:J,referrers:te,countries:K,cities:B,citiesForMap:F,visitedUrls:H}=R.useMemo(()=>HE(q),[q]),ne=R.useMemo(()=>HE(W??[]),[W]),Y=R.useMemo(()=>Object.fromEntries([["Visits",Object.assign(q,{type:"main"})],W&&["Previous period",Object.assign(W,{type:"previous"})],E.length>0&&[N??"Selected",Object.assign(E,{type:"highlighted"})]].filter(Boolean)),[N,E,W,q]),ee=R.useMemo(()=>({...g,excludeBots:g.excludeBots??(b==null?void 0:b.excludeBots),loadPrevInterval:y??(b==null?void 0:b.loadPrevInterval)}),[y,g,b==null?void 0:b.excludeBots,b==null?void 0:b.loadPrevInterval]),ae=R.useMemo(()=>Object.values(F),[F]),oe=R.useCallback(C=>{Av=void 0,P(C)},[]),fe=R.useCallback((C,A)=>{const U=`${C}_${A}`;Av===U?(P([]),I(void 0),Av=void 0):(P(q.filter(Q=>Q[C]===A)),I(A),Av=U)},[q]);return R.useEffect(()=>i,[i]),R.useEffect(()=>{const C=v??zF(j.current),{loadPrevInterval:A,...U}=ee,Q={doIntervalFallback:M.current,loadPrevInterval:A};r({dateRange:C,filter:U},Q),oe([]),M.current=!1},[v,g,r,ee,oe]),R.useEffect(()=>{p&&j.current===((b==null?void 0:b.defaultInterval)??"last30Days")&&(j.current=p)},[p,b==null?void 0:b.defaultInterval]),m.jsxs(m.Fragment,{children:[t,m.jsx("section",{className:"mt-3",children:m.jsxs("div",{className:"row flex-md-row-reverse",children:[m.jsx("div",{className:"col-lg-7 col-xl-6",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-grow-1",children:m.jsx(mC,{disabled:f,dateRangeOrInterval:x??v??j.current,defaultText:"All visits",onDatesChange:S})}),m.jsx(Dz,{disabled:f,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ee,onChange:({loadPrevInterval:C,...A})=>w({visitsFilter:A,loadPrevInterval:C})})]})}),l.length>0&&m.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:m.jsxs("div",{className:"d-flex",children:[m.jsx(u1,{className:"btn-md-block",amount:q.length,onClick:()=>a(q)}),m.jsxs(Ze,{outline:!0,disabled:E.length===0,className:"btn-md-block ms-2",onClick:()=>oe([]),children:["Clear selection ",E.length>0&&m.jsxs(m.Fragment,{children:["(",Yt(E.length),")"]})]})]})})]})}),m.jsxs("section",{className:"mt-3",children:[m.jsx($z,{info:n}),!f&&!d&&m.jsxs(m.Fragment,{children:[m.jsx(U7,{fill:!0,children:Object.values(Oa).map(({title:C,icon:A,subPath:U,shouldRender:Q},Z)=>!Q||Q(e)?m.jsxs(Ud,{to:z(U),replace:!0,children:[m.jsx(Te,{icon:A}),m.jsx("span",{className:"ms-2 d-none d-lg-inline",children:C})]},Z):void 0).filter(Boolean)}),m.jsx(ir,{children:m.jsxs(Z0,{children:[m.jsx(st,{path:Oa.byTime.subPath,element:m.jsxs(sg,{showFallback:l.length===0,children:[m.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:m.jsx(Cz,{visitsGroups:Y,setSelectedVisits:oe})}),m.jsx(fw,{display:!!ee.loadPrevInterval&&!u})]})}),m.jsx(st,{path:Oa.byContext.subPath,element:m.jsxs(sg,{showFallback:l.length===0,children:[m.jsx("div",{className:De("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(vI,{title:"Operating systems",stats:X,prevStats:ne.os})}),m.jsx("div",{className:De("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(vI,{title:"Browsers",stats:J,prevStats:ne.browsers})}),m.jsx("div",{className:De("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:m.jsx(Cv,{title:"Referrers",withPagination:!1,stats:te,prevStats:ne.referrers,highlightedStats:cv(E,"referer"),highlightedLabel:N,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:C=>fe("referer",C)})}),s&&m.jsx("div",{className:"mt-3 col-lg-6",children:m.jsx(Cv,{title:"Visited URLs",stats:H,prevStats:ne.visitedUrls,highlightedStats:cv(E,"visitedUrl"),highlightedLabel:N,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:C=>fe("visitedUrl",C)})}),m.jsx("div",{className:"col-12",children:m.jsx(fw,{display:!!ee.loadPrevInterval&&!u})})]})}),m.jsx(st,{path:Oa.byLocation.subPath,element:m.jsxs(sg,{showFallback:l.length===0,children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Cv,{title:"Countries",stats:K,prevStats:ne.countries,highlightedStats:cv(E,"country"),highlightedLabel:N,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:C=>fe("country",C)})}),m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Cv,{title:"Cities",stats:B,prevStats:ne.cities,highlightedStats:cv(E,"city"),highlightedLabel:N,extraHeaderContent:C=>ae.length>0&&m.jsx(g8e,{modalTitle:"Cities",locations:ae,activeCities:C}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:C=>fe("city",C)})}),m.jsx("div",{className:"col-12",children:m.jsx(fw,{display:!!ee.loadPrevInterval&&!u})})]})}),m.jsx(st,{path:Oa.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(U8e,{visits:q,selectedVisits:E,setSelectedVisits:oe,isOrphanVisits:s})})}),o&&m.jsx(st,{path:Oa.options.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(y8e,{...o})})}),m.jsx(st,{path:"*",element:m.jsx(Wj,{replace:!0,to:z(Oa.byTime.subPath)})})]})})]})]})]})},zz=Gi(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Dt(zz),{domain:i=""}=qc(),[o,a=o]=i.split("_"),s=R.useCallback((u,f)=>e({domain:a,options:f,params:u}),[a,e]),l=R.useCallback(u=>r.exportVisits(`domain_${o}_visits.csv`,u),[o,r]);return m.jsx(am,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:m.jsx(Zp,{visits:t.visits,title:`"${o}" visits`})})},()=>[cr.visits]),B8e=$t(zz,["ReportExporter"]),Vz=Gi(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Dt(Vz),i=R.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=R.useCallback((a,s)=>e({options:s,params:a}),[e]);return m.jsx(am,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:m.jsx(Zp,{title:"Non-orphan visits",visits:t.visits})})},()=>[cr.visits]),z8e=$t(Vz,["ReportExporter"]),Hz=Gi(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=Il("orphanVisitsDeletion"),{ReportExporter:a}=Dt(Hz),s=R.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),l=R.useCallback((f,d)=>{var p;return e({options:d,params:f,orphanVisitsType:(p=f.filter)==null?void 0:p.orphanVisitsType})},[e]),u=R.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return m.jsx(am,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:m.jsx(Zp,{title:"Orphan visits",visits:t.visits})})},()=>[cr.orphanVisits]),V8e=$t(Hz,["ReportExporter"]),Wz="shlink/orphanVisits",H8e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},W8e=e=>Gp({typePrefix:`${Wz}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=Wp(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),G8e=e=>qp({name:Wz,initialState:H8e,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>Hp(o.date,r,i))}}),Gz="shlink/orphanVisits",q8e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},Z8e=(e,t)=>!t||t===e.type,Y8e=({data:e,...t},n)=>{const r=e.filter(i=>lC(i)&&Z8e(i,n));return{...t,data:r}},K8e=e=>Gp({typePrefix:`${Gz}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits(s).then(l=>Y8e(l,t)),a=Wp(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),X8e=(e,t)=>qp({name:Gz,initialState:q8e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:a,shortUrl:s})=>!s&&Hp(a.date,i,o))}}),qz="shlink/orphanVisitsDeletion",OI={deletedVisits:0,deleting:!1,error:!1},Q8e=e=>gn(`${qz}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),J8e=e=>nn({name:qz,initialState:OI,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:Gr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...OI,deletedVisits:i}})}}),Zz="shlink/shortUrlVisits",e$e={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},t$e=e=>Gp({typePrefix:`${Zz}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=l=>i.getShortUrlVisits(t,{...l,domain:n}),s=Wp(o,l=>i.getShortUrlVisits(t,{...l,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),n$e=(e,t)=>qp({name:Zz,initialState:e$e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>HF(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),Yz="shlink/shortUrlVisitsDeletion",SI={shortCode:"",deletedVisits:0,deleting:!1,error:!1},r$e=e=>gn(`${Yz}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),i$e=e=>nn({name:Yz,initialState:SI,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:Gr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...SI,shortCode:i,domain:o,deletedVisits:a}})}}),Kz="shlink/tagVisits",o$e={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},a$e=e=>Gp({typePrefix:`${Kz}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=Wp(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),s$e=e=>qp({name:Kz,initialState:o$e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>GF(r,t,n==null?void 0:n.dateRange)}),Xz="shlink/visitsOverview",kv={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},EI=e=>e.filter(({visit:t})=>t.potentialBot).length,l$e=e=>gn(`${Xz}/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}}))),u$e=e=>nn({name:Xz,initialState:kv,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...kv,loading:!0})),t.addCase(e.rejected,()=>({...kv,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...kv,...r})),t.addCase(nf,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=tde(o.createdVisits),l=a.length,u=EI(a),f=l-u,d=s.length,p=EI(s),v=d-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+v}}})}}),c$e=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return m.jsxs(Zp,{title:m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(di,{href:i})]}),visits:r,shortUrl:e,children:[m.jsx("hr",{}),m.jsxs("div",{children:["Created: ",e?m.jsxs("span",{children:[m.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:m.jsx(Ey,{date:e.dateCreated,relative:!0})}),m.jsx(Tr,{placement:"bottom",target:"created",children:m.jsx(Ey,{date:e.dateCreated})})]}):m.jsx("small",{children:"Loading..."})]}),m.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&m.jsx("small",{children:"Loading..."}),!t&&m.jsx(di,{href:o,children:a??o})]})]})},Qz=Gi(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=Il("shortUrlVisitsDeletion"),{ReportExporter:l}=Dt(Qz),u=pC(),f=R.useMemo(()=>{var g;return(g=n.shortUrls)==null?void 0:g.get(u)},[u,n.shortUrls]),d=R.useCallback((g,y)=>r({...u,options:y,params:g}),[r,u]),p=R.useCallback(g=>l.exportVisits(`short-url_${f==null?void 0:f.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,g),[l,f==null?void 0:f.shortUrl]),v=R.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return R.useEffect(()=>{i([u])},[u,i]),m.jsx(am,{getVisits:d,cancelGetVisits:a,visitsInfo:e,exportCsv:p,deletion:v,children:m.jsx(c$e,{shortUrl:f,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[cr.shortUrlVisits(tC(e.shortCode))]:[]),f$e=$t(Qz,["ReportExporter"]),d$e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return m.jsx(Zp,{title:m.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[m.jsx("span",{className:"me-2",children:"Visits for"}),m.jsx(bb,{text:r,colorGenerator:t})]}),visits:n})},Jz=Gi(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Dt(Jz),{tag:o=""}=qc(),a=R.useCallback((l,u)=>e({tag:o,params:l,options:u}),[e,o]),s=R.useCallback(l=>i.exportVisits(`tag_${o}_visits.csv`,l),[i,o]);return m.jsx(am,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:m.jsx(d$e,{tagVisits:t,colorGenerator:r})})},()=>[cr.visits]),h$e=$t(Jz,["ColorGenerator","ReportExporter"]),AP=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=ys("visits"),l=R.useMemo(()=>Object.keys(a).reduce((x,_,S)=>(x[_]=Object.assign(j0(a[_]),{color:(t==null?void 0:t[_])??jz(S)}),x),{}),[t,a]),u=R.useMemo(()=>Object.values(a).every(x=>x.length===0),[a]),[{dateRange:f,visitsFilter:d},p]=Pz(),[v,g]=R.useState(),y=R.useCallback(({startDate:x,endDate:_},S)=>{p({dateRange:{startDate:x??void 0,endDate:_??void 0}}),g(S)},[p]),w=R.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),b=R.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return R.useEffect(()=>{const x=f??zF(w.current);return n({params:{dateRange:x,filter:b}}),i},[i,f,n,b]),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mb-3",children:m.jsxs(wt,{bodyClassName:"d-flex",children:[m.jsx(yb,{}),m.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),m.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-grow-1",children:m.jsx(mC,{disabled:o,defaultText:"All visits",dateRangeOrInterval:v??w.current,onDatesChange:y})}),m.jsx(Dz,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:b,onChange:({orphanVisitsType:x,excludeBots:_})=>p({visitsFilter:{orphanVisitsType:x,excludeBots:_}})})]})}),m.jsx($z,{info:r}),!o&&m.jsx(sg,{showFallback:u,children:m.jsx(Cz,{visitsGroups:l})})]})},p$e=Gi(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=cC("domains"),i=R.useCallback(o=>e({...o,domains:r}),[r,e]);return m.jsx(AP,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[cr.visits]),m$e=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(l=>[l,0])),a=(l,u)=>{o[l]=u;const f=Object.values(o),d=f.reduce((p,v)=>p+v,0);n(d/f.length)},s=Object.entries(e).map(([l,u])=>[l,qF({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:f=>a(l,f)})]);return async l=>{const u=await Promise.all(s.map(async([f,d])=>{const p=await d(l);return[f,p]}));return Object.fromEntries(u)}},kP=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=mn(`${e}/progressChanged`),i=gn(e,async(o,{getState:a,dispatch:s})=>{const l=t(o),u=await m$e({visitsLoaders:l,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(lS(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},NP=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:l,actions:u}=nn({name:e,initialState:n,reducers:{cancelGetVisits:d=>({...d,cancelLoad:!0})},extraReducers:d=>{d.addCase(i,()=>({...n,loading:!0})),d.addCase(o,(p,{error:v})=>({...n,errorData:Gr(v)??null})),d.addCase(a,(p,{payload:v})=>({...p,...v,loading:!1,progress:null,errorData:null})),d.addCase(s,(p,{payload:v})=>({...p,progress:v})),d.addCase(nf,(p,{payload:v})=>{const{visitsGroups:g,...y}=p,w=Object.keys(g).map(x=>{const _=r({...y,groupKey:x},v.createdVisits).map(({visit:S})=>S);return[x,[..._,...g[x]]]}),b=Object.fromEntries(w);return{...y,visitsGroups:b}})}}),{cancelGetVisits:f}=u;return{reducer:l,cancelGetVisits:f}},eV="shlink/domainVisitsComparison",v$e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},g$e=e=>kP({typePrefix:`${eV}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),y$e=e=>NP({name:eV,initialState:v$e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>WF(r,t,n==null?void 0:n.dateRange)}),tV="shlink/shortUrlVisitsComparison",b$e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},_$e=e=>kP({typePrefix:`${tV}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[nC(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),x$e=e=>NP({name:tV,initialState:b$e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>HF(r,EF(t),n==null?void 0:n.dateRange)}),nV="shlink/tagVisitsComparison",w$e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},O$e=e=>kP({typePrefix:`${nV}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),S$e=e=>NP({name:nV,initialState:w$e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>GF(r,t,n==null?void 0:n.dateRange)}),E$e=Gi(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=cC("short-urls"),a=R.useMemo(()=>o.map(EF),[o]),s=R.useCallback(f=>e({...f,shortUrls:a}),[e,a]),l=R.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),u=R.useMemo(()=>{const{visitsGroups:f,loading:d,...p}=t,v=l.reduce((g,y)=>(g[y.shortUrl]=f[nC(y)]??[],g),{});return{...p,visitsGroups:v,loading:d||r.loading}},[t,r.loading,l]);return R.useEffect(()=>{a.length>0&&i(a)},[i,a]),m.jsx(AP,{title:m.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${l.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[cr.visits]),rV=Gi(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Dt(rV),i=cC("tags"),o=R.useCallback(l=>e({...l,tags:i}),[e,i]),{visitsGroups:a}=t,s=R.useMemo(()=>Object.keys(a).reduce((l,u)=>(l[u]=r.getColorForKey(u),l),{}),[r,a]);return m.jsx(AP,{title:m.jsxs(m.Fragment,{children:["Comparing ",i.map(l=>m.jsx(bb,{colorGenerator:r,text:l},l))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[cr.visits]),j$e=$t(rV,["ColorGenerator"]),T$e=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>Iz),e.factory("ShortUrlVisits",f$e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",h$e),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",j$e),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>p$e),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>E$e),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",B8e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",V8e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",z8e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>M8e),e.serviceFactory("getShortUrlVisits",t$e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",_$e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",r$e,"apiClientFactory"),e.serviceFactory("getTagVisits",a$e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",O$e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",cde,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",g$e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",K8e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",Q8e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",W8e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>nf),e.serviceFactory("loadVisitsOverview",l$e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",u$e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",fde,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",G8e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",X8e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",J8e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",n$e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",i$e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",s$e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",S$e,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",y$e,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",x$e,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},ld=({children:e,to:t,className:n,...r})=>m.jsx(E8,{className:({isActive:i})=>De("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),C$e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Xn(),r=De("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return m.jsx("aside",{className:r,children:m.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[m.jsxs(ld,{to:i("/overview"),children:[m.jsx(Te,{fixedWidth:!0,icon:RK}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(ld,{to:i("/list-short-urls/1"),className:De({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[m.jsx(Te,{fixedWidth:!0,icon:B8}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(ld,{to:i("/create-short-url"),children:[m.jsx(Te,{fixedWidth:!0,icon:UK,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(ld,{to:i("/manage-tags"),children:[m.jsx(Te,{fixedWidth:!0,icon:z8}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(ld,{to:i("/manage-domains"),children:[m.jsx(Te,{fixedWidth:!0,icon:hK}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},iV=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:l,Overview:u,EditShortUrl:f,ManageDomains:d,TagVisitsComparison:p,DomainVisitsComparison:v,ShortUrlVisitsComparison:g,ShortUrlRedirectRules:y}=Dt(iV),w=Xn(),b=gs(),[x,_,S,j]=Kt();R.useEffect(()=>j(),[w,j]);const E=De("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":x}),P=jde(S,j),N=Il("shortUrlRedirectRules");return m.jsxs(m.Fragment,{children:[m.jsx(Te,{icon:lK,className:E,onClick:_}),m.jsx("div",{...P,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(C$e,{routePrefix:b,showOnMobile:x}),m.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>j(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(Z0,{children:[m.jsx(st,{index:!0,element:m.jsx(Wj,{replace:!0,to:"overview"})}),m.jsx(st,{path:"/overview",element:m.jsx(u,{})}),m.jsx(st,{path:"/list-short-urls/:page",element:m.jsx(n,{})}),m.jsx(st,{path:"/create-short-url",element:m.jsx(r,{})}),m.jsx(st,{path:"/short-code/:shortCode/visits/*",element:m.jsx(i,{})}),m.jsx(st,{path:"/short-code/:shortCode/edit",element:m.jsx(f,{})}),N&&m.jsx(st,{path:"/short-code/:shortCode/redirect-rules",element:m.jsx(y,{})}),m.jsx(st,{path:"/short-urls/compare-visits",element:m.jsx(g,{})}),m.jsx(st,{path:"/tag/:tag/visits/*",element:m.jsx(o,{})}),m.jsx(st,{path:"/tags/compare-visits",element:m.jsx(p,{})}),m.jsx(st,{path:"/domain/:domain/visits/*",element:m.jsx(a,{})}),m.jsx(st,{path:"/orphan-visits/*",element:m.jsx(s,{})}),m.jsx(st,{path:"/non-orphan-visits/*",element:m.jsx(l,{})}),m.jsx(st,{path:"/manage-tags",element:m.jsx(t,{})}),m.jsx(st,{path:"/manage-domains",element:m.jsx(d,{})}),m.jsx(st,{path:"/domains/compare-visits",element:m.jsx(v,{})}),e&&m.jsx(st,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},P$e=$t(iV,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),A$e=!0,k$e=e=>iF({devTools:!A$e,reducer:zT({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})}),N$e=e=>{e.factory("Main",P$e),e.factory("store",k$e)},Zi=new nce,{container:L$e}=Zi,R$e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),M$e=(e,t)=>(...n)=>e[t](...n),I$e=(e,t)=>({...e,[t]:M$e(L$e,t)}),wf=(e,t=[])=>d8(e?R$e(e):null,t.reduce(I$e,{}));N$e(Zi);spe(Zi,wf);Tme(Zi,wf);T$e(Zi,wf);Fde(Zi);Ide(Zi,wf);Jde(Zi,wf);Kme(Zi);hhe(Zi,wf);let jI;const D$e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=$he(t),l=R.useRef(),[u,f]=R.useState(),d=Ml(),p=R.useMemo(()=>d?R.Fragment:S8,[d]);return R.useEffect(()=>{jI=n,e.value("apiClientFactory",()=>jI),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:g,store:y,loadMercureInfo:w,listTags:b}=v;l.current=m.jsx(g,{createNotFound:o}),f(y),y.dispatch(w(r)),y.dispatch(b())},[n,o,r,a]),u?m.jsx(h8,{store:u,children:m.jsx(Xde,{value:r,children:m.jsx(Dhe,{value:s,children:m.jsx(sce,{value:i,children:m.jsx(p,{children:l.current})})})})}):m.jsx(m.Fragment,{})},$$e="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=",F$e="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==",U$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",B$e=()=>{delete _I.Icon.Default.prototype._getIconUrl,_I.Icon.Default.mergeOptions({iconRetinaUrl:F$e,iconUrl:$$e,shadowUrl:U$e})};B$e();const z$e=D$e(Zi);function T0(e){return t=>{const{resetSelectedServer:n}=t;return R.useEffect(()=>{n()},[n]),m.jsx(e,{...t})}}let V$e=class extends R.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 m.jsx("div",{className:"home",children:m.jsxs(wt,{className:"p-4",children:[m.jsx("h1",{children:"Oops! This is awkward :S"}),m.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),m.jsx("br",{}),m.jsx(Ze,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const oV=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),H$e=({id:e,name:t})=>m.jsxs(d7,{tag:Et,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(Te,{icon:GK,className:"servers-list__server-item-icon"})]}),aV=({servers:e,children:t,embedded:n=!1})=>m.jsxs(m.Fragment,{children:[t&&m.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&m.jsx(u7,{"data-testid":"list",tag:"div",className:ef("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>m.jsx(H$e,{id:r,name:i},r))})]}),sV=({color:e=Ph,className:t})=>m.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:m.jsxs("g",{fill:e,children:[m.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"}),m.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"}),m.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"}),m.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"})]})}),W$e=({servers:e})=>{const t=Oo(),n=Object.values(e),r=n.length>0;return R.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),m.jsx("div",{className:"home",children:m.jsx(Er,{className:"home__main-card",children:m.jsxs(ir,{className:"g-0",children:[m.jsx("div",{className:"col-md-5 d-none d-md-block",children:m.jsx("div",{className:"home__logo-wrapper",children:m.jsx("div",{className:"home__logo",children:m.jsx(sV,{})})})}),m.jsxs("div",{className:"col-md-7 home__servers-container",children:[m.jsx("div",{className:"home__title-wrapper",children:m.jsx("h1",{className:"home__title",children:"Welcome!"})}),m.jsx(aV,{embedded:!0,servers:n,children:!r&&m.jsxs("div",{className:"p-4 text-center",children:[m.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),m.jsx("p",{children:m.jsxs(Et,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(Te,{icon:Cp})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0 mt-5",children:m.jsx(oV,{href:"https://shlink.io/documentation",children:m.jsxs("small",{children:[m.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",m.jsx(Te,{icon:EK})]})})})]})})]})]})})})},lV=()=>{const{ServersDropdown:e}=_i(lV),[t,n,,r]=Kt(),i=Xn(),{pathname:o}=i;R.useEffect(r,[i,r]);const a="/settings",s=ef("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(P$,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(A$,{tag:Et,to:"/",children:[m.jsx(sV,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(k$,{onClick:n,children:m.jsx(Te,{icon:VK,className:s})}),m.jsx(qne,{navbar:!0,isOpen:t,children:m.jsxs(mT,{navbar:!0,className:"ms-auto",children:[m.jsx(vT,{children:m.jsxs(R$,{tag:Et,to:a,active:o.startsWith(a),children:[m.jsx(Te,{icon:YK})," Settings"]})}),m.jsx(e,{})]})})]})},G$e=xi(lV,["ServersDropdown"]),q$e=({children:e})=>{const t=Xn();return R.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},dw=e=>Object.prototype.toString.call(e)==="[object Object]",uV=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},cV=(e,t)=>{const n={...e};return!dw(e)||!dw(t)||Object.keys(t).forEach(r=>{dw(t[r])?n[r]=r in e&&e[r]!==void 0?cV(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},Z$e=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,TI=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Z$e);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},CI=e=>e==="*"||e==="x"||e==="X",PI=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Y$e=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],K$e=(e,t)=>{if(CI(e)||CI(t))return 0;const[n,r]=Y$e(PI(e),PI(t));return n>r?1:n<r?-1:0},AI=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=K$e(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},X$e=(e,t)=>{const n=TI(e),r=TI(t),i=n.pop(),o=r.pop(),a=AI(n,r);return a!==0?a:i&&o?AI(i.split("."),o.split(".")):i||o?i?-1:1:0},Q$e=(e,t,n)=>{J$e(n);const r=X$e(e,t);return fV[n].includes(r)},fV={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},kI=Object.keys(fV),J$e=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(kI.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${kI.join("|")}`)},dV=uV(e=>e,e=>{try{return Q$e(e,e,"=")}catch{return!1}}),hV=e=>dV(e)?`v${e}`:e,pV=(e,t="latest")=>dV(e)?e:t,e7e="%_VERSION_%",t7e=e=>hV(pV(e)),NI=({project:e,version:t})=>m.jsx(oV,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),n7e=({selectedServer:e,clientVersion:t=e7e})=>{const n=t7e(t);return m.jsxs("small",{className:"text-muted",children:[D8(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx(NI,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx(NI,{project:"shlink-web-client",version:n})]})},r7e=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,i7e=({selectedServer:e})=>{const{pathname:t}=Xn(),n=R.useMemo(()=>r7e.test(t),[t]),r=ef("text-center",{"shlink-versions-container--with-sidebar":n});return m.jsx("div",{className:r,children:m.jsx(n7e,{selectedServer:e})})},Of=({children:e})=>m.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function mV(e){const t=n=>{const{ServerError:r}=_i(t),i=qc(),{selectServer:o,selectedServer:a}=n;return R.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?KY(a)?m.jsx(r,{}):m.jsx(e,{...n}):m.jsx(Of,{children:m.jsx(Jo,{loading:!0})})};return t}const vV=mV(R.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=_i(vV);if(!D8(e))return m.jsx(o,{});const a=`/server/${e.id}`;return m.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>m.jsx(V7,{to:`${a}${s}`,children:"List short URLs"})})})),o7e=xi(vV,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),a7e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Pue,"fetch"),e.serviceFactory("ScrollToTop",()=>q$e),e.factory("MainHeader",G$e),e.serviceFactory("Home",()=>W$e),e.decorator("Home",T0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>z$e),e.factory("ShlinkWebComponentContainer",o7e),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>i7e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>V$e)};let Nv;const s7e=new Uint8Array(16);function l7e(){if(!Nv&&(Nv=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Nv))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nv(s7e)}const Dn=[];for(let e=0;e<256;++e)Dn.push((e+256).toString(16).slice(1));function u7e(e,t=0){return Dn[e[t+0]]+Dn[e[t+1]]+Dn[e[t+2]]+Dn[e[t+3]]+"-"+Dn[e[t+4]]+Dn[e[t+5]]+"-"+Dn[e[t+6]]+Dn[e[t+7]]+"-"+Dn[e[t+8]]+Dn[e[t+9]]+"-"+Dn[e[t+10]]+Dn[e[t+11]]+Dn[e[t+12]]+Dn[e[t+13]]+Dn[e[t+14]]+Dn[e[t+15]]}const c7e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),LI={randomUUID:c7e};function gV(e,t,n){if(LI.randomUUID&&!t&&!e)return LI.randomUUID();e=e||{};const r=e.random||(e.rng||l7e)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return u7e(r)}const yV=()=>{const e=Oo();return R.useCallback(()=>e(-1),[e])},f7e=()=>{const{search:e}=Xn();return R.useMemo(()=>$T(e),[e])},bV=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs(So,{centered:!0,isOpen:e,children:[m.jsxs(Eo,{children:["Duplicated server",i&&"s"]}),m.jsxs(Wi,{children:[m.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),m.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?m.jsxs("li",{children:[m.jsx("b",{children:o})," - ",m.jsx("b",{children:a})]},s):m.jsxs(R.Fragment,{children:[m.jsxs("li",{children:["URL: ",m.jsx("b",{children:o})]}),m.jsxs("li",{children:["API key: ",m.jsx("b",{children:a})]})]},s))}),m.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),m.jsxs(ms,{children:[m.jsx(Ze,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),m.jsx(Ze,{color:"primary",onClick:r,children:"Save anyway"})]})]})},d7e=e=>t=>{t.preventDefault(),e()},_V=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=R.useState(""),[a,s]=R.useState(""),[l,u]=R.useState(""),f=d7e(()=>e({name:i,url:a,apiKey:l}));return R.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&u(t.apiKey)},[t]),m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(wt,{className:"mb-3",title:r,children:[m.jsx(Qv,{value:i,onChange:o,children:"Name"}),m.jsx(Qv,{type:"url",value:a,onChange:s,children:"URL"}),m.jsx(Qv,{value:l,onChange:u,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},RI=4e3,MI=({type:e})=>m.jsx("div",{className:"mt-3",children:m.jsxs(ur,{type: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."]})}),xV=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=_i(xV),i=Oo(),o=yV(),a=!!Object.keys(e).length,[s,l]=r(!1,RI),[u,f]=r(!1,RI),[d,p]=Kt(),[v,g]=R.useState(),y=R.useCallback(w=>{const b=gV();t([{...w,id:b}]),i(`/server/${b}`)},[t,i]);return R.useEffect(()=>{if(!v)return;Object.values(e).some(({url:b,apiKey:x})=>(v==null?void 0:v.url)===b&&(v==null?void 0:v.apiKey)===x)?p():y(v)},[y,v,e,p]),m.jsxs(Of,{children:[m.jsxs(_V,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:g,children:[!a&&m.jsx(n,{tooltipPlacement:"top",onImport:l,onImportError:f}),a&&m.jsx(Ze,{outline:!0,onClick:o,children:"Cancel"}),m.jsx(Ze,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&m.jsx(MI,{type:"success"}),u&&m.jsx(MI,{type:"error"}),m.jsx(bV,{isOpen:d,duplicatedServers:v?[v]:[],onDiscard:o,onSave:()=>v&&y(v)})]})},h7e=xi(xV,["ImportServersBtn","useTimeoutToggle"]),wV=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=_i(wV),[o,,a,s]=Kt();return m.jsxs(m.Fragment,{children:[m.jsxs("button",{type:"button",className:ef(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&m.jsx(Te,{fixedWidth:!0,icon:Kj}),m.jsx("span",{className:r,children:n??"Remove this server"})]}),m.jsx(i,{server:e,isOpen:o,toggle:s})]})},p7e=xi(wV,["DeleteServerModal"]),m7e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Oo(),a=R.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return m.jsxs(So,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[m.jsx(Eo,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(Wi,{children:[m.jsxs("p",{children:["Are you sure you want to remove ",m.jsx("b",{children:e?e.name:""}),"?"]}),m.jsx("p",{children:m.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."})})]}),m.jsxs(ms,{children:[m.jsx(Ze,{color:"link",onClick:t,children:"Cancel"}),m.jsx(Ze,{color:"danger",onClick:s,children:"Delete"})]})]})},v7e=mV(({editServer:e,selectedServer:t,selectServer:n})=>{const r=yV(),{reconnect:i}=f7e();if(!kd(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return m.jsx(Of,{children:m.jsxs(_V,{title:m.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[m.jsx(Ze,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),m.jsx(Ze,{outline:!0,color:"primary",children:"Save"})]})})}),g7e=xi(v7e,["ServerError"]),II=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),OV=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=_i(OV),l=la(),[u,f]=R.useState([]),[d,,p,v]=Kt(),g=R.useRef([]),y=R.useCallback(_=>{e(_),r()},[e,r]),w=R.useCallback(async({target:_})=>{var S;return s.importServersFromFile((S=_.files)==null?void 0:S[0]).then(j=>{g.current=j;const E=Object.values(t),P=j.filter(I=>II(E,I)),N=!!P.length;N?f(P):y(j),N&&p()}).then(()=>{_.value=null}).catch(i)},[y,i,t,s,p]),b=R.useCallback(()=>{y(g.current),v()},[y,v,g]),x=R.useCallback(()=>{y(g.current.filter(_=>!II(u,_))),v()},[y,u,v]);return m.jsxs(m.Fragment,{children:[m.jsxs(Ze,{outline:!0,id:"importBtn",className:a,onClick:()=>{var _;return(_=l.current)==null?void 0:_.click()},children:[m.jsx(Te,{icon:vK,fixedWidth:!0})," ",n??"Import from file"]}),m.jsxs(Tr,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",m.jsx("b",{children:"name"}),", ",m.jsx("b",{children:"apiKey"})," and ",m.jsx("b",{children:"url"})," columns."]}),m.jsx("input",{type:"file",accept:"text/csv",className:"d-none",ref:l,onChange:w,"aria-hidden":!0}),m.jsx(bV,{isOpen:d,duplicatedServers:u,onDiscard:x,onSave:b})]})},y7e=xi(OV,["ServersImporter"]),SV=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=_i(SV);return m.jsx(Of,{children:m.jsxs("div",{className:"server-error__container flex-column",children:[m.jsxs(Jo,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!kd(t)&&"Could not find this Shlink server.",kd(t)&&m.jsxs(m.Fragment,{children:[m.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."]})]}),m.jsx(aV,{servers:Object.values(e),children:m.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",m.jsx(Et,{to:"/server/create",children:"add a new one"}),"."]})}),kd(t)&&m.jsx("div",{className:"container mt-3 mt-md-5",children:m.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",m.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",m.jsx(Et,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},b7e=xi(SV,["DeleteServerButton"]),_7e=4e3,EV=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=_i(EV),o=Object.values(e),[a,s]=R.useState(o),l=p=>s(o.filter(({name:v,url:g})=>`${v} ${g}`.toLowerCase().match(p.toLowerCase()))),u=a.some(({autoConnect:p})=>!!p),[f,d]=r(!1,_7e);return R.useEffect(()=>{s(Object.values(e))},[e]),m.jsxs(Of,{children:[m.jsx(Bp,{className:"mb-3",onChange:l}),m.jsxs(ir,{className:"mb-3",children:[m.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[m.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),o.length>0&&m.jsxs(Ze,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>t.exportServers(),children:[m.jsx(Te,{icon:V8,fixedWidth:!0})," Export servers"]})]}),m.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:m.jsxs(Ze,{outline:!0,color:"primary",className:"flex-fill",tag:Et,to:"/server/create",children:[m.jsx(Te,{icon:Cp,fixedWidth:!0})," Add a server"]})})]}),m.jsx(wt,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsxs("tr",{children:[u&&m.jsx("th",{style:{width:"50px"},children:m.jsx("span",{className:"sr-only",children:"Auto-connect"})}),m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Base URL"}),m.jsx("th",{children:m.jsx("span",{className:"sr-only",children:"Options"})})]})}),m.jsxs("tbody",{children:[!a.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>m.jsx(i,{server:p,hasAutoConnect:u},p.id))]})]})}),f&&m.jsx("div",{className:"mt-3",children:m.jsx(ur,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},x7e=xi(EV,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),jV=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=_i(jV);return m.jsxs("tr",{className:"responsive-table__row",children:[t&&m.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&m.jsxs(m.Fragment,{children:[m.jsx(Te,{icon:gh,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Tr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(Et,{to:`/server/${e.id}`,children:e.name})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(n,{server:e})})]})},w7e=xi(jV,["ManageServersRowDropdown"]),TV=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=_i(TV),[r,,i,o]=Kt(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?pK:Nue;return m.jsxs(sb,{minWidth:s?210:170,children:[m.jsxs(ke,{tag:Et,to:a,children:[m.jsx(Te,{icon:dK,fixedWidth:!0})," Connect"]}),m.jsxs(ke,{tag:Et,to:`${a}/edit`,children:[m.jsx(Te,{icon:Xj,fixedWidth:!0})," Edit server"]}),m.jsxs(ke,{onClick:()=>t(e,!s),children:[m.jsx(Te,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{className:"dropdown-item--danger",onClick:i,children:[m.jsx(Te,{icon:Kj,fixedWidth:!0})," Remove server"]}),m.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},O7e=xi(TV,["DeleteServerModal"]),CV=(e,t)=>sF(e,t,{serializeError:n=>n}),S7e={},E7e=e=>"id"in e?e:{...e,id:gV()},j7e=e=>e.reduce((t,n)=>({...t,[n.id]:n}),{}),{actions:T7e,reducer:C7e}=nn({name:"shlink/servers",initialState:S7e,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})=>{const{[t.id]:n,...r}=e;return r},setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:j7e(e.map(E7e))}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:P7e,deleteServer:A7e,setAutoConnect:k7e,createServers:PV}=T7e,N7e=C7e,L7e=e=>Array.isArray(e)?e.filter(I8):[],R7e=e=>CV("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${Ig.homepage}/servers.json`),i=L7e(r);n(PV(i))}),LP="shlink/selectedServer",M7e="1.0.0",I7e="999.999.999",D7e="latest",$7e=e=>pV(e===D7e?I7e:e,M7e),F7e=uV(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:$7e(n),printableVersion:hV(n)}))),DI=null,RP=mn(`${LP}/resetSelectedServer`),U7e=e=>CV(`${LP}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(RP());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await F7e(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),B7e=e=>nn({name:LP,initialState:DI,reducers:{},extraReducers:t=>{t.addCase(RP,()=>DI),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),z7e=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?m.jsxs(ke,{tag:Et,to:"/server/create",children:[m.jsx(Te,{icon:Cp})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]}):m.jsxs(m.Fragment,{children:[n.map(({name:i,id:o})=>m.jsx(ke,{tag:Et,to:`/server/${o}`,active:XY(t)===o,children:i},o)),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{tag:Et,to:"/manage-servers",children:[m.jsx(Te,{icon:a3})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs(Dp,{nav:!0,inNavbar:!0,children:[m.jsxs(Kc,{nav:!0,caret:!0,children:[m.jsx(Te,{icon:a3})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(Yc,{end:!0,style:{right:0},children:r()})]})},V7e=({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)},H7e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);V7e(e,i,n)},W7e="shlink-servers.csv";class G7e{constructor(t,n,r){Xl(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(QY);try{const n=this.jsonToCsv(t);H7e(this.window,n,W7e)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const q7e=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",Z7e=e=>Array.isArray(e)&&e.every(q7e);class Y7e{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!Z7e(r))throw new Error("Provided file does not have the right format.");return r}}const K7e=(e,t)=>{e.factory("ManageServers",x7e),e.decorator("ManageServers",T0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",w7e),e.factory("ManageServersRowDropdown",O7e),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",h7e),e.decorator("CreateServer",T0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",g7e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>z7e),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>m7e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",p7e),e.factory("ImportServersBtn",y7e),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",b7e),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",Y7e,"csvToJson"),e.service("ServersExporter",G7e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",U7e,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>PV),e.serviceFactory("deleteServer",()=>A7e),e.serviceFactory("editServer",()=>P7e),e.serviceFactory("setAutoConnect",()=>k7e),e.serviceFactory("fetchServers",R7e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>RP),e.serviceFactory("selectedServerReducerCreator",B7e,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},ml=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),X7e=e=>e?`${e}`:"",Q7e=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=ab();return m.jsxs(wt,{title:"Real-time updates",className:"h-100",children:[m.jsx(lo,{children:m.jsxs(Sl,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",m.jsxs(ml,{children:["Real-time updates are currently being ",m.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),m.jsxs(Jc,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ef("form-label",{"text-muted":!r.enabled}),id:i,children:[m.jsx(qn,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:X7e(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&m.jsxs(ml,{children:[r.interval!==void 0&&r.interval>0&&m.jsxs("span",{children:["Updates will be reflected in the UI every ",m.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},AV={field:"dateCreated",dir:"DESC"},J7e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:UT()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:AV}},eFe=(e,{payload:t})=>cV(e,t),Rs=e=>({reducer:eFe,prepare:e}),Ms=e=>({payload:e}),{reducer:tFe,actions:nFe}=nn({name:"shlink/settings",initialState:J7e,reducers:{toggleRealTimeUpdates:Rs(e=>Ms({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:Rs(e=>Ms({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:Rs(e=>Ms({shortUrlCreation:e})),setShortUrlsListSettings:Rs(e=>Ms({shortUrlsList:e})),setUiSettings:Rs(e=>Ms({ui:e})),setVisitsSettings:Rs(e=>Ms({visits:e})),setTagsSettings:Rs(e=>Ms({tags:e}))}}),{toggleRealTimeUpdates:rFe,setRealTimeUpdatesInterval:iFe,setShortUrlCreationSettings:oFe,setShortUrlsListSettings:aFe,setUiSettings:sFe,setVisitsSettings:lFe,setTagsSettings:uFe}=nFe,cFe=tFe,hw=({items:e})=>m.jsx(m.Fragment,{children:e.map((t,n)=>m.jsx("div",{className:"mb-3",children:t},n))}),kV=()=>{const{RealTimeUpdatesSettings:e,ShortUrlCreationSettings:t,ShortUrlsListSettings:n,UserInterfaceSettings:r,VisitsSettings:i,TagsSettings:o}=_i(kV);return m.jsxs(Of,{children:[m.jsxs(U7,{className:"mb-3",children:[m.jsx(Ud,{to:"general",children:"General"}),m.jsx(Ud,{to:"short-urls",children:"Short URLs"}),m.jsx(Ud,{to:"other-items",children:"Other items"})]}),m.jsxs(Z0,{children:[m.jsx(st,{path:"general",element:m.jsx(hw,{items:[m.jsx(r,{}),m.jsx(e,{})]})}),m.jsx(st,{path:"short-urls",element:m.jsx(hw,{items:[m.jsx(t,{}),m.jsx(n,{})]})}),m.jsx(st,{path:"other-items",element:m.jsx(hw,{items:[m.jsx(o,{}),m.jsx(i,{})]})}),m.jsx(st,{path:"*",element:m.jsx(Wj,{replace:!0,to:"general"})})]})]})},fFe=xi(kV,["RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"]),pw=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",dFe=e=>e==="includes"?m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"including"})," provided input."]}):m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"starting with"})," provided input."]}),hFe=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return m.jsxs(wt,{title:"Short URLs form",className:"h-100",children:[m.jsx(lo,{children:m.jsxs(Sl,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",m.jsxs(ml,{children:["The initial state of the ",m.jsx("b",{children:"Validate URL"})," checkbox will be ",m.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),m.jsx(lo,{children:m.jsxs(Sl,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",m.jsxs(ml,{children:["The initial state of the ",m.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",m.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),m.jsxs(Jc,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(ua,{text:pw(n.tagFilteringMode),children:[m.jsx(ke,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:pw("startsWith")}),m.jsx(ke,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:pw("includes")})]}),m.jsx(ml,{children:dFe(n.tagFilteringMode)})]})]})},pFe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},mFe=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>m.jsx(wt,{title:"Short URLs list",className:"h-100",children:m.jsx(Jc,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(zp,{items:pFe,order:(e==null?void 0:e.defaultOrdering)??AV,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),vFe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},gFe=({settings:{tags:e},setTagsSettings:t})=>m.jsx(wt,{title:"Tags",className:"h-100",children:m.jsx(Jc,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(zp,{items:vFe,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),yFe=({settings:{ui:e},setUiSettings:t,_matchMedia:n})=>{const r=R.useMemo(()=>(e==null?void 0:e.theme)??UT(n),[e==null?void 0:e.theme,n]);return m.jsxs(wt,{title:"User interface",className:"h-100",children:[m.jsx(Te,{icon:r==="dark"?XK:$K,className:"user-interface__theme-icon"}),m.jsx(Sl,{checked:r==="dark",onChange:i=>{t({...e,theme:i?"dark":"light"})},children:"Use dark theme."})]})},NV={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},bFe=(e,t)=>!e||e==="all"?t:NV[e],_Fe=({onChange:e,active:t,allText:n})=>m.jsxs(ua,{text:bFe(t,n),children:[m.jsx(ke,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(ke,{divider:!0}),Object.entries(NV).map(([r,i])=>m.jsx(ke,{active:t===r,onClick:()=>e(r),children:i},r))]}),$I=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},xFe=({settings:e,setVisitsSettings:t})=>{var r,i,o,a;const n=R.useCallback(({defaultInterval:s,...l})=>t({defaultInterval:s??$I(e),...l}),[t,e]);return m.jsxs(wt,{title:"Visits",className:"h-100",children:[m.jsx(lo,{children:m.jsxs(Sl,{checked:!!((r=e.visits)!=null&&r.excludeBots),onChange:s=>n({excludeBots:s}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",m.jsxs(ml,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:(i=e.visits)!=null&&i.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(lo,{children:m.jsxs(Sl,{checked:!!((o=e.visits)!=null&&o.loadPrevInterval),onChange:s=>n({loadPrevInterval:s}),children:["Compare visits with previous period.",m.jsxs(ml,{children:["When loading visits, previous period ",m.jsx("b",{children:(a=e.visits)!=null&&a.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),m.jsx(Jc,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(_Fe,{allText:"All visits",active:$I(e),onChange:s=>n({defaultInterval:s})})})]})},wFe=(e,t)=>{e.factory("Settings",fFe),e.decorator("Settings",T0),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>Q7e),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>hFe),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>yFe),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>xFe),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>gFe),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>mFe),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>rFe),e.serviceFactory("setRealTimeUpdatesInterval",()=>iFe),e.serviceFactory("setShortUrlCreationSettings",()=>oFe),e.serviceFactory("setShortUrlsListSettings",()=>aFe),e.serviceFactory("setUiSettings",()=>sFe),e.serviceFactory("setVisitsSettings",()=>lFe),e.serviceFactory("setTagsSettings",()=>uFe)};function mw(e){return e==null?"":`${e}`}function OFe(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 MP(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 SFe(e={stringFormatter:MP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function EFe(e={stringFormatter:MP()}){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 jFe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function TFe(e){var t,n,r;const i=[];let o;for(;o=jFe.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function FI(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:TFe(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function LV(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function WE(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var UI;(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"})(UI||(UI={}));class CFe{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||MP(),i=EFe({stringFormatter:r}),o={header:r,undefined:mw,boolean:mw,number:OFe(),bigint:mw,string:r,symbol:SFe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
|
||
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>FI(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>FI(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const u=s(l,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return WE(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(LV,[]),[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 WE(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 PFe extends CFe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),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(LV,[])}processData(t){return WE(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var wn;(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"})(wn||(wn={}));wn.QUOTATION_MARK+"",wn.QUOTATION_MARK,wn.REVERSE_SOLIDUS+"",wn.REVERSE_SOLIDUS,wn.SOLIDUS+"",wn.SOLIDUS,wn.LATIN_SMALL_LETTER_B+"",wn.BACKSPACE,wn.LATIN_SMALL_LETTER_F+"",wn.FORM_FEED,wn.LATIN_SMALL_LETTER_N+"",wn.NEWLINE,wn.LATIN_SMALL_LETTER_R+"",wn.CARRIAGE_RETURN,wn.LATIN_SMALL_LETTER_T+"",wn.TAB;var BI;(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"})(BI||(BI={}));var zI;(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"})(zI||(zI={}));var VI;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(VI||(VI={}));var HI;(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"})(HI||(HI={}));var AFe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(g){var y=[];for(var w in g)y.push(w);return y};e.exports=d;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(d,a);for(var l=i(s.prototype),u=0;u<l.length;u++){var f=l[u];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(g){if(!(this instanceof d))return new d(g);a.call(this,g),s.call(this,g),g&&g.readable===!1&&(this.readable=!1),g&&g.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,g&&g.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(v,this)}function v(g){g.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),d.prototype._destroy=function(g,y){this.push(null),this.end(),r.nextTick(y,g)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=n(38),o=n(39),a=n(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(C,A){if(s()<A)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(C=new Uint8Array(A)).__proto__=u.prototype:(C===null&&(C=new u(A)),C.length=A),C}function u(C,A,U){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(C,A,U);if(typeof C=="number"){if(typeof A=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,C)}return f(this,C,A,U)}function f(C,A,U,Q){if(typeof A=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&A instanceof ArrayBuffer?function(Z,ie,he,Se){if(ie.byteLength,he<0||ie.byteLength<he)throw new RangeError("'offset' is out of bounds");if(ie.byteLength<he+(Se||0))throw new RangeError("'length' is out of bounds");return ie=he===void 0&&Se===void 0?new Uint8Array(ie):Se===void 0?new Uint8Array(ie,he):new Uint8Array(ie,he,Se),u.TYPED_ARRAY_SUPPORT?(Z=ie).__proto__=u.prototype:Z=v(Z,ie),Z}(C,A,U,Q):typeof A=="string"?function(Z,ie,he){if(typeof he=="string"&&he!==""||(he="utf8"),!u.isEncoding(he))throw new TypeError('"encoding" must be a valid string encoding');var Se=0|y(ie,he),se=(Z=l(Z,Se)).write(ie,he);return se!==Se&&(Z=Z.slice(0,se)),Z}(C,A,U):function(Z,ie){if(u.isBuffer(ie)){var he=0|g(ie.length);return(Z=l(Z,he)).length===0||ie.copy(Z,0,0,he),Z}if(ie){if(typeof ArrayBuffer<"u"&&ie.buffer instanceof ArrayBuffer||"length"in ie)return typeof ie.length!="number"||function(Se){return Se!=Se}(ie.length)?l(Z,0):v(Z,ie);if(ie.type==="Buffer"&&a(ie.data))return v(Z,ie.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(C,A)}function d(C){if(typeof C!="number")throw new TypeError('"size" argument must be a number');if(C<0)throw new RangeError('"size" argument must not be negative')}function p(C,A){if(d(A),C=l(C,A<0?0:0|g(A)),!u.TYPED_ARRAY_SUPPORT)for(var U=0;U<A;++U)C[U]=0;return C}function v(C,A){var U=A.length<0?0:0|g(A.length);C=l(C,U);for(var Q=0;Q<U;Q+=1)C[Q]=255&A[Q];return C}function g(C){if(C>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|C}function y(C,A){if(u.isBuffer(C))return C.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(C)||C instanceof ArrayBuffer))return C.byteLength;typeof C!="string"&&(C=""+C);var U=C.length;if(U===0)return 0;for(var Q=!1;;)switch(A){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":case void 0:return ae(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return oe(C).length;default:if(Q)return ae(C).length;A=(""+A).toLowerCase(),Q=!0}}function w(C,A,U){var Q=C[A];C[A]=C[U],C[U]=Q}function b(C,A,U,Q,Z){if(C.length===0)return-1;if(typeof U=="string"?(Q=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,isNaN(U)&&(U=Z?0:C.length-1),U<0&&(U=C.length+U),U>=C.length){if(Z)return-1;U=C.length-1}else if(U<0){if(!Z)return-1;U=0}if(typeof A=="string"&&(A=u.from(A,Q)),u.isBuffer(A))return A.length===0?-1:x(C,A,U,Q,Z);if(typeof A=="number")return A&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Z?Uint8Array.prototype.indexOf.call(C,A,U):Uint8Array.prototype.lastIndexOf.call(C,A,U):x(C,[A],U,Q,Z);throw new TypeError("val must be string, number or Buffer")}function x(C,A,U,Q,Z){var ie,he=1,Se=C.length,se=A.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(C.length<2||A.length<2)return-1;he=2,Se/=2,se/=2,U/=2}function pe(je,Pe){return he===1?je[Pe]:je.readUInt16BE(Pe*he)}if(Z){var me=-1;for(ie=U;ie<Se;ie++)if(pe(C,ie)===pe(A,me===-1?0:ie-me)){if(me===-1&&(me=ie),ie-me+1===se)return me*he}else me!==-1&&(ie-=ie-me),me=-1}else for(U+se>Se&&(U=Se-se),ie=U;ie>=0;ie--){for(var xe=!0,Ce=0;Ce<se;Ce++)if(pe(C,ie+Ce)!==pe(A,Ce)){xe=!1;break}if(xe)return ie}return-1}function _(C,A,U,Q){U=Number(U)||0;var Z=C.length-U;Q?(Q=Number(Q))>Z&&(Q=Z):Q=Z;var ie=A.length;if(ie%2!=0)throw new TypeError("Invalid hex string");Q>ie/2&&(Q=ie/2);for(var he=0;he<Q;++he){var Se=parseInt(A.substr(2*he,2),16);if(isNaN(Se))return he;C[U+he]=Se}return he}function S(C,A,U,Q){return fe(ae(A,C.length-U),C,U,Q)}function j(C,A,U,Q){return fe(function(Z){for(var ie=[],he=0;he<Z.length;++he)ie.push(255&Z.charCodeAt(he));return ie}(A),C,U,Q)}function E(C,A,U,Q){return j(C,A,U,Q)}function P(C,A,U,Q){return fe(oe(A),C,U,Q)}function N(C,A,U,Q){return fe(function(Z,ie){for(var he,Se,se,pe=[],me=0;me<Z.length&&!((ie-=2)<0);++me)Se=(he=Z.charCodeAt(me))>>8,se=he%256,pe.push(se),pe.push(Se);return pe}(A,C.length-U),C,U,Q)}function I(C,A,U){return A===0&&U===C.length?i.fromByteArray(C):i.fromByteArray(C.slice(A,U))}function M(C,A,U){U=Math.min(C.length,U);for(var Q=[],Z=A;Z<U;){var ie,he,Se,se,pe=C[Z],me=null,xe=pe>239?4:pe>223?3:pe>191?2:1;if(Z+xe<=U)switch(xe){case 1:pe<128&&(me=pe);break;case 2:(192&(ie=C[Z+1]))==128&&(se=(31&pe)<<6|63&ie)>127&&(me=se);break;case 3:ie=C[Z+1],he=C[Z+2],(192&ie)==128&&(192&he)==128&&(se=(15&pe)<<12|(63&ie)<<6|63&he)>2047&&(se<55296||se>57343)&&(me=se);break;case 4:ie=C[Z+1],he=C[Z+2],Se=C[Z+3],(192&ie)==128&&(192&he)==128&&(192&Se)==128&&(se=(15&pe)<<18|(63&ie)<<12|(63&he)<<6|63&Se)>65535&&se<1114112&&(me=se)}me===null?(me=65533,xe=1):me>65535&&(me-=65536,Q.push(me>>>10&1023|55296),me=56320|1023&me),Q.push(me),Z+=xe}return function(Ce){var je=Ce.length;if(je<=D)return String.fromCharCode.apply(String,Ce);for(var Pe="",le=0;le<je;)Pe+=String.fromCharCode.apply(String,Ce.slice(le,le+=D));return Pe}(Q)}t.Buffer=u,t.SlowBuffer=function(C){return+C!=C&&(C=0),u.alloc(+C)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var C=new Uint8Array(1);return C.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},C.foo()===42&&typeof C.subarray=="function"&&C.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(C){return C.__proto__=u.prototype,C},u.from=function(C,A,U){return f(null,C,A,U)},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(C,A,U){return function(Q,Z,ie,he){return d(Z),Z<=0?l(Q,Z):ie!==void 0?typeof he=="string"?l(Q,Z).fill(ie,he):l(Q,Z).fill(ie):l(Q,Z)}(null,C,A,U)},u.allocUnsafe=function(C){return p(null,C)},u.allocUnsafeSlow=function(C){return p(null,C)},u.isBuffer=function(C){return!(C==null||!C._isBuffer)},u.compare=function(C,A){if(!u.isBuffer(C)||!u.isBuffer(A))throw new TypeError("Arguments must be Buffers");if(C===A)return 0;for(var U=C.length,Q=A.length,Z=0,ie=Math.min(U,Q);Z<ie;++Z)if(C[Z]!==A[Z]){U=C[Z],Q=A[Z];break}return U<Q?-1:Q<U?1:0},u.isEncoding=function(C){switch(String(C).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(C,A){if(!a(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return u.alloc(0);var U;if(A===void 0)for(A=0,U=0;U<C.length;++U)A+=C[U].length;var Q=u.allocUnsafe(A),Z=0;for(U=0;U<C.length;++U){var ie=C[U];if(!u.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(Q,Z),Z+=ie.length}return Q},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var A=0;A<C;A+=2)w(this,A,A+1);return this},u.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var A=0;A<C;A+=4)w(this,A,A+3),w(this,A+1,A+2);return this},u.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var A=0;A<C;A+=8)w(this,A,A+7),w(this,A+1,A+6),w(this,A+2,A+5),w(this,A+3,A+4);return this},u.prototype.toString=function(){var C=0|this.length;return C===0?"":arguments.length===0?M(this,0,C):(function(A,U,Q){var Z=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(U>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return W(this,U,Q);case"utf8":case"utf-8":return M(this,U,Q);case"ascii":return z(this,U,Q);case"latin1":case"binary":return q(this,U,Q);case"base64":return I(this,U,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,U,Q);default:if(Z)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),Z=!0}}).apply(this,arguments)},u.prototype.equals=function(C){if(!u.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||u.compare(this,C)===0},u.prototype.inspect=function(){var C="",A=t.INSPECT_MAX_BYTES;return this.length>0&&(C=this.toString("hex",0,A).match(/.{2}/g).join(" "),this.length>A&&(C+=" ... ")),"<Buffer "+C+">"},u.prototype.compare=function(C,A,U,Q,Z){if(!u.isBuffer(C))throw new TypeError("Argument must be a Buffer");if(A===void 0&&(A=0),U===void 0&&(U=C?C.length:0),Q===void 0&&(Q=0),Z===void 0&&(Z=this.length),A<0||U>C.length||Q<0||Z>this.length)throw new RangeError("out of range index");if(Q>=Z&&A>=U)return 0;if(Q>=Z)return-1;if(A>=U)return 1;if(A>>>=0,U>>>=0,Q>>>=0,Z>>>=0,this===C)return 0;for(var ie=Z-Q,he=U-A,Se=Math.min(ie,he),se=this.slice(Q,Z),pe=C.slice(A,U),me=0;me<Se;++me)if(se[me]!==pe[me]){ie=se[me],he=pe[me];break}return ie<he?-1:he<ie?1:0},u.prototype.includes=function(C,A,U){return this.indexOf(C,A,U)!==-1},u.prototype.indexOf=function(C,A,U){return b(this,C,A,U,!0)},u.prototype.lastIndexOf=function(C,A,U){return b(this,C,A,U,!1)},u.prototype.write=function(C,A,U,Q){if(A===void 0)Q="utf8",U=this.length,A=0;else if(U===void 0&&typeof A=="string")Q=A,U=this.length,A=0;else{if(!isFinite(A))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");A|=0,isFinite(U)?(U|=0,Q===void 0&&(Q="utf8")):(Q=U,U=void 0)}var Z=this.length-A;if((U===void 0||U>Z)&&(U=Z),C.length>0&&(U<0||A<0)||A>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var ie=!1;;)switch(Q){case"hex":return _(this,C,A,U);case"utf8":case"utf-8":return S(this,C,A,U);case"ascii":return j(this,C,A,U);case"latin1":case"binary":return E(this,C,A,U);case"base64":return P(this,C,A,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,C,A,U);default:if(ie)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),ie=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function z(C,A,U){var Q="";U=Math.min(C.length,U);for(var Z=A;Z<U;++Z)Q+=String.fromCharCode(127&C[Z]);return Q}function q(C,A,U){var Q="";U=Math.min(C.length,U);for(var Z=A;Z<U;++Z)Q+=String.fromCharCode(C[Z]);return Q}function W(C,A,U){var Q=C.length;(!A||A<0)&&(A=0),(!U||U<0||U>Q)&&(U=Q);for(var Z="",ie=A;ie<U;++ie)Z+=ee(C[ie]);return Z}function X(C,A,U){for(var Q=C.slice(A,U),Z="",ie=0;ie<Q.length;ie+=2)Z+=String.fromCharCode(Q[ie]+256*Q[ie+1]);return Z}function J(C,A,U){if(C%1!=0||C<0)throw new RangeError("offset is not uint");if(C+A>U)throw new RangeError("Trying to access beyond buffer length")}function te(C,A,U,Q,Z,ie){if(!u.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>Z||A<ie)throw new RangeError('"value" argument is out of bounds');if(U+Q>C.length)throw new RangeError("Index out of range")}function K(C,A,U,Q){A<0&&(A=65535+A+1);for(var Z=0,ie=Math.min(C.length-U,2);Z<ie;++Z)C[U+Z]=(A&255<<8*(Q?Z:1-Z))>>>8*(Q?Z:1-Z)}function B(C,A,U,Q){A<0&&(A=4294967295+A+1);for(var Z=0,ie=Math.min(C.length-U,4);Z<ie;++Z)C[U+Z]=A>>>8*(Q?Z:3-Z)&255}function F(C,A,U,Q,Z,ie){if(U+Q>C.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function H(C,A,U,Q,Z){return Z||F(C,0,U,4),o.write(C,A,U,Q,23,4),U+4}function ne(C,A,U,Q,Z){return Z||F(C,0,U,8),o.write(C,A,U,Q,52,8),U+8}u.prototype.slice=function(C,A){var U,Q=this.length;if(C=~~C,A=A===void 0?Q:~~A,C<0?(C+=Q)<0&&(C=0):C>Q&&(C=Q),A<0?(A+=Q)<0&&(A=0):A>Q&&(A=Q),A<C&&(A=C),u.TYPED_ARRAY_SUPPORT)(U=this.subarray(C,A)).__proto__=u.prototype;else{var Z=A-C;U=new u(Z,void 0);for(var ie=0;ie<Z;++ie)U[ie]=this[ie+C]}return U},u.prototype.readUIntLE=function(C,A,U){C|=0,A|=0,U||J(C,A,this.length);for(var Q=this[C],Z=1,ie=0;++ie<A&&(Z*=256);)Q+=this[C+ie]*Z;return Q},u.prototype.readUIntBE=function(C,A,U){C|=0,A|=0,U||J(C,A,this.length);for(var Q=this[C+--A],Z=1;A>0&&(Z*=256);)Q+=this[C+--A]*Z;return Q},u.prototype.readUInt8=function(C,A){return A||J(C,1,this.length),this[C]},u.prototype.readUInt16LE=function(C,A){return A||J(C,2,this.length),this[C]|this[C+1]<<8},u.prototype.readUInt16BE=function(C,A){return A||J(C,2,this.length),this[C]<<8|this[C+1]},u.prototype.readUInt32LE=function(C,A){return A||J(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},u.prototype.readUInt32BE=function(C,A){return A||J(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},u.prototype.readIntLE=function(C,A,U){C|=0,A|=0,U||J(C,A,this.length);for(var Q=this[C],Z=1,ie=0;++ie<A&&(Z*=256);)Q+=this[C+ie]*Z;return Q>=(Z*=128)&&(Q-=Math.pow(2,8*A)),Q},u.prototype.readIntBE=function(C,A,U){C|=0,A|=0,U||J(C,A,this.length);for(var Q=A,Z=1,ie=this[C+--Q];Q>0&&(Z*=256);)ie+=this[C+--Q]*Z;return ie>=(Z*=128)&&(ie-=Math.pow(2,8*A)),ie},u.prototype.readInt8=function(C,A){return A||J(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},u.prototype.readInt16LE=function(C,A){A||J(C,2,this.length);var U=this[C]|this[C+1]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt16BE=function(C,A){A||J(C,2,this.length);var U=this[C+1]|this[C]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt32LE=function(C,A){return A||J(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},u.prototype.readInt32BE=function(C,A){return A||J(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},u.prototype.readFloatLE=function(C,A){return A||J(C,4,this.length),o.read(this,C,!0,23,4)},u.prototype.readFloatBE=function(C,A){return A||J(C,4,this.length),o.read(this,C,!1,23,4)},u.prototype.readDoubleLE=function(C,A){return A||J(C,8,this.length),o.read(this,C,!0,52,8)},u.prototype.readDoubleBE=function(C,A){return A||J(C,8,this.length),o.read(this,C,!1,52,8)},u.prototype.writeUIntLE=function(C,A,U,Q){C=+C,A|=0,U|=0,Q||te(this,C,A,U,Math.pow(2,8*U)-1,0);var Z=1,ie=0;for(this[A]=255&C;++ie<U&&(Z*=256);)this[A+ie]=C/Z&255;return A+U},u.prototype.writeUIntBE=function(C,A,U,Q){C=+C,A|=0,U|=0,Q||te(this,C,A,U,Math.pow(2,8*U)-1,0);var Z=U-1,ie=1;for(this[A+Z]=255&C;--Z>=0&&(ie*=256);)this[A+Z]=C/ie&255;return A+U},u.prototype.writeUInt8=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,1,255,0),u.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),this[A]=255&C,A+1},u.prototype.writeUInt16LE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[A]=255&C,this[A+1]=C>>>8):K(this,C,A,!0),A+2},u.prototype.writeUInt16BE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[A]=C>>>8,this[A+1]=255&C):K(this,C,A,!1),A+2},u.prototype.writeUInt32LE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[A+3]=C>>>24,this[A+2]=C>>>16,this[A+1]=C>>>8,this[A]=255&C):B(this,C,A,!0),A+4},u.prototype.writeUInt32BE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[A]=C>>>24,this[A+1]=C>>>16,this[A+2]=C>>>8,this[A+3]=255&C):B(this,C,A,!1),A+4},u.prototype.writeIntLE=function(C,A,U,Q){if(C=+C,A|=0,!Q){var Z=Math.pow(2,8*U-1);te(this,C,A,U,Z-1,-Z)}var ie=0,he=1,Se=0;for(this[A]=255&C;++ie<U&&(he*=256);)C<0&&Se===0&&this[A+ie-1]!==0&&(Se=1),this[A+ie]=(C/he>>0)-Se&255;return A+U},u.prototype.writeIntBE=function(C,A,U,Q){if(C=+C,A|=0,!Q){var Z=Math.pow(2,8*U-1);te(this,C,A,U,Z-1,-Z)}var ie=U-1,he=1,Se=0;for(this[A+ie]=255&C;--ie>=0&&(he*=256);)C<0&&Se===0&&this[A+ie+1]!==0&&(Se=1),this[A+ie]=(C/he>>0)-Se&255;return A+U},u.prototype.writeInt8=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,1,127,-128),u.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),C<0&&(C=255+C+1),this[A]=255&C,A+1},u.prototype.writeInt16LE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[A]=255&C,this[A+1]=C>>>8):K(this,C,A,!0),A+2},u.prototype.writeInt16BE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[A]=C>>>8,this[A+1]=255&C):K(this,C,A,!1),A+2},u.prototype.writeInt32LE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[A]=255&C,this[A+1]=C>>>8,this[A+2]=C>>>16,this[A+3]=C>>>24):B(this,C,A,!0),A+4},u.prototype.writeInt32BE=function(C,A,U){return C=+C,A|=0,U||te(this,C,A,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),u.TYPED_ARRAY_SUPPORT?(this[A]=C>>>24,this[A+1]=C>>>16,this[A+2]=C>>>8,this[A+3]=255&C):B(this,C,A,!1),A+4},u.prototype.writeFloatLE=function(C,A,U){return H(this,C,A,!0,U)},u.prototype.writeFloatBE=function(C,A,U){return H(this,C,A,!1,U)},u.prototype.writeDoubleLE=function(C,A,U){return ne(this,C,A,!0,U)},u.prototype.writeDoubleBE=function(C,A,U){return ne(this,C,A,!1,U)},u.prototype.copy=function(C,A,U,Q){if(U||(U=0),Q||Q===0||(Q=this.length),A>=C.length&&(A=C.length),A||(A=0),Q>0&&Q<U&&(Q=U),Q===U||C.length===0||this.length===0)return 0;if(A<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("sourceStart out of bounds");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),C.length-A<Q-U&&(Q=C.length-A+U);var Z,ie=Q-U;if(this===C&&U<A&&A<Q)for(Z=ie-1;Z>=0;--Z)C[Z+A]=this[Z+U];else if(ie<1e3||!u.TYPED_ARRAY_SUPPORT)for(Z=0;Z<ie;++Z)C[Z+A]=this[Z+U];else Uint8Array.prototype.set.call(C,this.subarray(U,U+ie),A);return ie},u.prototype.fill=function(C,A,U,Q){if(typeof C=="string"){if(typeof A=="string"?(Q=A,A=0,U=this.length):typeof U=="string"&&(Q=U,U=this.length),C.length===1){var Z=C.charCodeAt(0);Z<256&&(C=Z)}if(Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!u.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q)}else typeof C=="number"&&(C&=255);if(A<0||this.length<A||this.length<U)throw new RangeError("Out of range index");if(U<=A)return this;var ie;if(A>>>=0,U=U===void 0?this.length:U>>>0,C||(C=0),typeof C=="number")for(ie=A;ie<U;++ie)this[ie]=C;else{var he=u.isBuffer(C)?C:ae(new u(C,Q).toString()),Se=he.length;for(ie=0;ie<U-A;++ie)this[ie+A]=he[ie%Se]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function ee(C){return C<16?"0"+C.toString(16):C.toString(16)}function ae(C,A){var U;A=A||1/0;for(var Q=C.length,Z=null,ie=[],he=0;he<Q;++he){if((U=C.charCodeAt(he))>55295&&U<57344){if(!Z){if(U>56319){(A-=3)>-1&&ie.push(239,191,189);continue}if(he+1===Q){(A-=3)>-1&&ie.push(239,191,189);continue}Z=U;continue}if(U<56320){(A-=3)>-1&&ie.push(239,191,189),Z=U;continue}U=65536+(Z-55296<<10|U-56320)}else Z&&(A-=3)>-1&&ie.push(239,191,189);if(Z=null,U<128){if((A-=1)<0)break;ie.push(U)}else if(U<2048){if((A-=2)<0)break;ie.push(U>>6|192,63&U|128)}else if(U<65536){if((A-=3)<0)break;ie.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;ie.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return ie}function oe(C){return i.toByteArray(function(A){if((A=function(U){return U.trim?U.trim():U.replace(/^\s+|\s+$/g,"")}(A).replace(Y,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(C))}function fe(C,A,U,Q){for(var Z=0;Z<Q&&!(Z+U>=A.length||Z>=C.length);++Z)A[Z+U]=C[Z];return Z}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var l,u=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?u=l.concat(u):d=-1,u.length&&v())}function v(){if(!f){var w=s(p);f=!0;for(var b=u.length;b;){for(l=u,u=[];++d<b;)l&&l[d].run();d=-1,b=u.length}l=null,f=!1,function(x){if(r===clearTimeout)return clearTimeout(x);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(x);try{r(x)}catch{try{return r.call(null,x)}catch{return r.call(this,x)}}}(w)}}function g(w,b){this.fun=w,this.array=b}function y(){}i.nextTick=function(w){var b=new Array(arguments.length-1);if(arguments.length>1)for(var x=1;x<arguments.length;x++)b[x-1]=arguments[x];u.push(new g(w,b)),u.length!==1||f||s(v)},g.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=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,u,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(f-1),u=0;u<l.length;)l[u++]=arguments[u];return r.nextTick(function(){i.apply(null,l)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,l){for(var u in s)l[u]=s[u]}function a(s,l,u){return i(s,l,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,l,u){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,u)},a.alloc=function(s,l,u){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return l!==void 0?typeof u=="string"?f.fill(l,u):f.fill(l):f.fill(0),f},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},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(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===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(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,u,f,d,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var v=new Error('Uncaught, unspecified "error" event. ('+s+")");throw v.context=s,v}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),u=(p=l.slice()).length,d=0;d<u;d++)p[d].apply(this,f);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function u(){this.removeListener(a,u),l||(l=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},n.prototype.removeListener=function(a,s){var l,u,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,u=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(d=f;d-- >0;)if(l[d]===s||l[d].listener&&l[d].listener===s){u=d;break}if(u<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(M){var D=this;this.next=null,this.entry=null,this.finish=function(){(function(z,q,W){var X=z.entry;for(z.entry=null;X;){var J=X.callback;q.pendingcb--,J(void 0),X=X.next}q.corkedRequestsFree?q.corkedRequestsFree.next=z:q.corkedRequestsFree=z})(D,M)}}e.exports=_;var l,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;_.WritableState=x;var f=n(5);f.inherits=n(2);var d,p={deprecate:n(44)},v=n(24),g=n(7).Buffer,y=o.Uint8Array||function(){},w=n(25);function b(){}function x(M,D){l=l||n(1),M=M||{};var z=D instanceof l;this.objectMode=!!M.objectMode,z&&(this.objectMode=this.objectMode||!!M.writableObjectMode);var q=M.highWaterMark,W=M.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:z&&(W||W===0)?W:X,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 J=M.decodeStrings===!1;this.decodeStrings=!J,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){(function(K,B){var F=K._writableState,H=F.sync,ne=F.writecb;if(function(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}(F),B)(function(ee,ae,oe,fe,C){--ae.pendingcb,oe?(a.nextTick(C,fe),a.nextTick(I,ee,ae),ee._writableState.errorEmitted=!0,ee.emit("error",fe)):(C(fe),ee._writableState.errorEmitted=!0,ee.emit("error",fe),I(ee,ae))})(K,F,H,B,ne);else{var Y=P(F);Y||F.corked||F.bufferProcessing||!F.bufferedRequest||E(K,F),H?u(j,K,F,Y,ne):j(K,F,Y,ne)}})(D,te)},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 s(this)}function _(M){if(l=l||n(1),!(d.call(_,this)||this instanceof l))return new _(M);this._writableState=new x(M,this),this.writable=!0,M&&(typeof M.write=="function"&&(this._write=M.write),typeof M.writev=="function"&&(this._writev=M.writev),typeof M.destroy=="function"&&(this._destroy=M.destroy),typeof M.final=="function"&&(this._final=M.final)),v.call(this)}function S(M,D,z,q,W,X,J){D.writelen=q,D.writecb=J,D.writing=!0,D.sync=!0,z?M._writev(W,D.onwrite):M._write(W,X,D.onwrite),D.sync=!1}function j(M,D,z,q){z||function(W,X){X.length===0&&X.needDrain&&(X.needDrain=!1,W.emit("drain"))}(M,D),D.pendingcb--,q(),I(M,D)}function E(M,D){D.bufferProcessing=!0;var z=D.bufferedRequest;if(M._writev&&z&&z.next){var q=D.bufferedRequestCount,W=new Array(q),X=D.corkedRequestsFree;X.entry=z;for(var J=0,te=!0;z;)W[J]=z,z.isBuf||(te=!1),z=z.next,J+=1;W.allBuffers=te,S(M,D,!0,D.length,W,"",X.finish),D.pendingcb++,D.lastBufferedRequest=null,X.next?(D.corkedRequestsFree=X.next,X.next=null):D.corkedRequestsFree=new s(D),D.bufferedRequestCount=0}else{for(;z;){var K=z.chunk,B=z.encoding,F=z.callback;if(S(M,D,!1,D.objectMode?1:K.length,K,B,F),z=z.next,D.bufferedRequestCount--,D.writing)break}z===null&&(D.lastBufferedRequest=null)}D.bufferedRequest=z,D.bufferProcessing=!1}function P(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function N(M,D){M._final(function(z){D.pendingcb--,z&&M.emit("error",z),D.prefinished=!0,M.emit("prefinish"),I(M,D)})}function I(M,D){var z=P(D);return z&&(function(q,W){W.prefinished||W.finalCalled||(typeof q._final=="function"?(W.pendingcb++,W.finalCalled=!0,a.nextTick(N,q,W)):(W.prefinished=!0,q.emit("prefinish")))}(M,D),D.pendingcb===0&&(D.finished=!0,M.emit("finish"))),z}f.inherits(_,v),x.prototype.getBuffer=function(){for(var M=this.bufferedRequest,D=[];M;)D.push(M),M=M.next;return D},function(){try{Object.defineProperty(x.prototype,"buffer",{get:p.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"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(M){return!!d.call(this,M)||this===_&&M&&M._writableState instanceof x}})):d=function(M){return M instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(M,D,z){var q=this._writableState,W=!1,X=!q.objectMode&&function(J){return g.isBuffer(J)||J instanceof y}(M);return X&&!g.isBuffer(M)&&(M=function(J){return g.from(J)}(M)),typeof D=="function"&&(z=D,D=null),X?D="buffer":D||(D=q.defaultEncoding),typeof z!="function"&&(z=b),q.ended?function(J,te){var K=new Error("write after end");J.emit("error",K),a.nextTick(te,K)}(this,z):(X||function(J,te,K,B){var F=!0,H=!1;return K===null?H=new TypeError("May not write null values to stream"):typeof K=="string"||K===void 0||te.objectMode||(H=new TypeError("Invalid non-string/buffer chunk")),H&&(J.emit("error",H),a.nextTick(B,H),F=!1),F}(this,q,M,z))&&(q.pendingcb++,W=function(J,te,K,B,F,H){if(!K){var ne=function(oe,fe,C){return oe.objectMode||oe.decodeStrings===!1||typeof fe!="string"||(fe=g.from(fe,C)),fe}(te,B,F);B!==ne&&(K=!0,F="buffer",B=ne)}var Y=te.objectMode?1:B.length;te.length+=Y;var ee=te.length<te.highWaterMark;if(ee||(te.needDrain=!0),te.writing||te.corked){var ae=te.lastBufferedRequest;te.lastBufferedRequest={chunk:B,encoding:F,isBuf:K,callback:H,next:null},ae?ae.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else S(J,te,!1,Y,B,F,H);return ee}(this,q,X,M,D,z)),W},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,M.writing||M.corked||M.finished||M.bufferProcessing||!M.bufferedRequest||E(this,M))},_.prototype.setDefaultEncoding=function(M){if(typeof M=="string"&&(M=M.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((M+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+M);return this._writableState.defaultEncoding=M,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(M,D,z){z(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(M,D,z){var q=this._writableState;typeof M=="function"?(z=M,M=null,D=null):typeof D=="function"&&(z=D,D=null),M!=null&&this.write(M,D),q.corked&&(q.corked=1,this.uncork()),q.ending||q.finished||function(W,X,J){X.ending=!0,I(W,X),J&&(X.finished?a.nextTick(J):W.once("finish",J)),X.ended=!0,W.writable=!1}(this,q,z)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(M){this._writableState&&(this._writableState.destroyed=M)}}),_.prototype.destroy=w.destroy,_.prototype._undestroy=w.undestroy,_.prototype._destroy=function(M,D){this.end(),D(M)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,u){function f(v,g){if(!l[v]){if(!s[v]){var y=typeof _dereq_=="function"&&_dereq_;if(!g&&y)return y(v,!0);if(d)return d(v,!0);var w=new Error("Cannot find module '"+v+"'");throw w.code="MODULE_NOT_FOUND",w}var b=l[v]={exports:{}};s[v][0].call(b.exports,function(x){return f(s[v][1][x]||x)},b,b.exports,a,s,l,u)}return l[v].exports}for(var d=typeof _dereq_=="function"&&_dereq_,p=0;p<u.length;p++)f(u[p]);return f}({1:[function(a,s,l){s.exports=function(u){var f=u._SomePromiseArray;function d(p){var v=new f(p),g=v.promise();return v.setHowMany(1),v.setUnwrap(),v.init(),g}u.any=function(p){return d(p)},u.prototype.any=function(){return d(this)}}},{}],2:[function(a,s,l){var u;try{throw new Error}catch(b){u=b}var f=a("./schedule"),d=a("./queue"),p=a("./util");function v(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new d(16),this._normalQueue=new d(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var b=this;this.drainQueues=function(){b._drainQueues()},this._schedule=f}function g(b,x,_){this._lateQueue.push(b,x,_),this._queueTick()}function y(b,x,_){this._normalQueue.push(b,x,_),this._queueTick()}function w(b){this._normalQueue._pushOne(b),this._queueTick()}v.prototype.setScheduler=function(b){var x=this._schedule;return this._schedule=b,this._customScheduler=!0,x},v.prototype.hasCustomScheduler=function(){return this._customScheduler},v.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},v.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},v.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},v.prototype.fatalError=function(b,x){x?(r.stderr.write("Fatal "+(b instanceof Error?b.stack:b)+`
|
||
`),r.exit(2)):this.throwLater(b)},v.prototype.throwLater=function(b,x){if(arguments.length===1&&(x=b,b=function(){throw x}),typeof setTimeout<"u")setTimeout(function(){b(x)},0);else try{this._schedule(function(){b(x)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(v.prototype.invokeLater=function(b,x,_){this._trampolineEnabled?g.call(this,b,x,_):this._schedule(function(){setTimeout(function(){b.call(x,_)},100)})},v.prototype.invoke=function(b,x,_){this._trampolineEnabled?y.call(this,b,x,_):this._schedule(function(){b.call(x,_)})},v.prototype.settlePromises=function(b){this._trampolineEnabled?w.call(this,b):this._schedule(function(){b._settlePromises()})}):(v.prototype.invokeLater=g,v.prototype.invoke=y,v.prototype.settlePromises=w),v.prototype._drainQueue=function(b){for(;b.length()>0;){var x=b.shift();if(typeof x=="function"){var _=b.shift(),S=b.shift();x.call(_,S)}else x._settlePromises()}},v.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},v.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},v.prototype._reset=function(){this._isTickUsed=!1},s.exports=v,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(u,f,d,p){var v=!1,g=function(x,_){this._reject(_)},y=function(x,_){_.promiseRejectionQueued=!0,_.bindingPromise._then(g,g,null,this,x)},w=function(x,_){!(50397184&this._bitField)&&this._resolveCallback(_.target)},b=function(x,_){_.promiseRejectionQueued||this._reject(x)};u.prototype.bind=function(x){v||(v=!0,u.prototype._propagateFrom=p.propagateFromFunction(),u.prototype._boundValue=p.boundValueFunction());var _=d(x),S=new u(f);S._propagateFrom(this,1);var j=this._target();if(S._setBoundTo(_),_ instanceof u){var E={promiseRejectionQueued:!1,promise:S,target:j,bindingPromise:_};j._then(f,y,void 0,S,E),_._then(w,b,void 0,S,E),S._setOnCancel(_)}else S._resolveCallback(j);return S},u.prototype._setBoundTo=function(x){x!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=x):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(x,_){return u.resolve(_).bind(x)}}},{}],4:[function(a,s,l){var u;typeof Promise<"u"&&(u=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=u)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var u=Object.create;if(u){var f=u(null),d=u(null);f[" size"]=d[" size"]=0}s.exports=function(p){var v=a("./util"),g=v.canEvaluate;function y(x){return function(_,S){var j;if(_!=null&&(j=_[S]),typeof j!="function"){var E="Object "+v.classString(_)+" has no method '"+v.toString(S)+"'";throw new p.TypeError(E)}return j}(x,this.pop()).apply(x,this)}function w(x){return x[this]}function b(x){var _=+this;return _<0&&(_=Math.max(0,_+x.length)),x[_]}v.isIdentifier,p.prototype.call=function(x){var _=[].slice.call(arguments,1);return _.push(x),this._then(y,void 0,void 0,_,void 0)},p.prototype.get=function(x){var _;if(typeof x=="number")_=b;else if(g){var S=(void 0)(x);_=S!==null?S:w}else _=w;return this._then(_,void 0,void 0,x,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(u,f,d,p){var v=a("./util"),g=v.tryCatch,y=v.errorObj,w=u._async;u.prototype.break=u.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var b=this,x=b;b._isCancellable();){if(!b._cancelBy(x)){x._isFollowing()?x._followee().cancel():x._cancelBranched();break}var _=b._cancellationParent;if(_==null||!_._isCancellable()){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}b._isFollowing()&&b._followee().cancel(),b._setWillBeCancelled(),x=b,b=_}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(b){return b===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(),w.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(b,x){if(v.isArray(b))for(var _=0;_<b.length;++_)this._doInvokeOnCancel(b[_],x);else if(b!==void 0)if(typeof b=="function"){if(!x){var S=g(b).call(this._boundValue());S===y&&(this._attachExtraTrace(S.e),w.throwLater(S.e))}}else b._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var b=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,b)},u.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},u.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=a("./es5").keys,p=f.tryCatch,v=f.errorObj;return function(g,y,w){return function(b){var x=w._boundValue();e:for(var _=0;_<g.length;++_){var S=g[_];if(S===Error||S!=null&&S.prototype instanceof Error){if(b instanceof S)return p(y).call(x,b)}else if(typeof S=="function"){var j=p(S).call(x,b);if(j===v)return j;if(j)return p(y).call(x,b)}else if(f.isObject(b)){for(var E=d(S),P=0;P<E.length;++P){var N=E[P];if(S[N]!=b[N])continue e}return p(y).call(x,b)}}return u}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(u){var f=!1,d=[];function p(){this._trace=new p.CapturedTrace(v())}function v(){var g=d.length-1;if(g>=0)return d[g]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,d.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var g=d.pop(),y=g._promiseCreated;return g._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var g=u.prototype._pushContext,y=u.prototype._popContext,w=u._peekContext,b=u.prototype._peekContext,x=u.prototype._promiseCreated;p.deactivateLongStackTraces=function(){u.prototype._pushContext=g,u.prototype._popContext=y,u._peekContext=w,u.prototype._peekContext=b,u.prototype._promiseCreated=x,f=!1},f=!0,u.prototype._pushContext=p.prototype._pushContext,u.prototype._popContext=p.prototype._popContext,u._peekContext=u.prototype._peekContext=v,u.prototype._promiseCreated=function(){var _=this._peekContext();_&&_._promiseCreated==null&&(_._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(u,f){var d,p,v,g=u._getDomain,y=u._async,w=a("./errors").Warning,b=a("./util"),x=b.canAttachTrace,_=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,S=/\((?:timers\.js):\d+:\d+\)/,j=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,E=null,P=null,N=!1,I=b.env("BLUEBIRD_DEBUG")!=0,M=!(b.env("BLUEBIRD_WARNINGS")==0||!I&&!b.env("BLUEBIRD_WARNINGS")),D=!(b.env("BLUEBIRD_LONG_STACK_TRACES")==0||!I&&!b.env("BLUEBIRD_LONG_STACK_TRACES")),z=b.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(M||!!b.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var le=this._target();le._bitField=-1048577&le._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var le=this;setTimeout(function(){le._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",d,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 le=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",p,le,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(le,ce,ye){return U(le,ce,ye||this)},u.onPossiblyUnhandledRejection=function(le){var ce=g();p=typeof le=="function"?ce===null?le:b.domainBind(ce,le):void 0},u.onUnhandledRejectionHandled=function(le){var ce=g();d=typeof le=="function"?ce===null?le:b.domainBind(ce,le):void 0};var q=function(){};u.longStackTraces=function(){if(y.haveItemsQueued()&&!Pe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Pe.longStackTraces&&se()){var le=u.prototype._captureStackTrace,ce=u.prototype._attachExtraTrace;Pe.longStackTraces=!0,q=function(){if(y.haveItemsQueued()&&!Pe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);u.prototype._captureStackTrace=le,u.prototype._attachExtraTrace=ce,f.deactivateLongStackTraces(),y.enableTrampoline(),Pe.longStackTraces=!1},u.prototype._captureStackTrace=C,u.prototype._attachExtraTrace=A,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return Pe.longStackTraces&&se()};var W=function(){try{if(typeof CustomEvent=="function"){var le=new CustomEvent("CustomEvent");return b.global.dispatchEvent(le),function(ce,ye){var ge=new CustomEvent(ce.toLowerCase(),{detail:ye,cancelable:!0});return!b.global.dispatchEvent(ge)}}return typeof Event=="function"?(le=new Event("CustomEvent"),b.global.dispatchEvent(le),function(ce,ye){var ge=new Event(ce.toLowerCase(),{cancelable:!0});return ge.detail=ye,!b.global.dispatchEvent(ge)}):((le=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),b.global.dispatchEvent(le),function(ce,ye){var ge=document.createEvent("CustomEvent");return ge.initCustomEvent(ce.toLowerCase(),!1,!0,ye),!b.global.dispatchEvent(ge)})}catch{}return function(){return!1}}(),X=b.isNode?function(){return r.emit.apply(r,arguments)}:b.global?function(le){var ce="on"+le.toLowerCase(),ye=b.global[ce];return!!ye&&(ye.apply(b.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function J(le,ce){return{promise:ce}}var te={promiseCreated:J,promiseFulfilled:J,promiseRejected:J,promiseResolved:J,promiseCancelled:J,promiseChained:function(le,ce,ye){return{promise:ce,child:ye}},warning:function(le,ce){return{warning:ce}},unhandledRejection:function(le,ce,ye){return{reason:ce,promise:ye}},rejectionHandled:J},K=function(le){var ce=!1;try{ce=X.apply(null,arguments)}catch(ge){y.throwLater(ge),ce=!0}var ye=!1;try{ye=W(le,te[le].apply(null,arguments))}catch(ge){y.throwLater(ge),ye=!0}return ye||ce};function B(){return!1}function F(le,ce,ye){var ge=this;try{le(ce,ye,function(we){if(typeof we!="function")throw new TypeError("onCancel must be a function, got: "+b.toString(we));ge._attachCancellationCallback(we)})}catch(we){return we}}function H(le){if(!this._isCancellable())return this;var ce=this._onCancel();ce!==void 0?b.isArray(ce)?ce.push(le):this._setOnCancel([ce,le]):this._setOnCancel(le)}function ne(){return this._onCancelField}function Y(le){this._onCancelField=le}function ee(){this._cancellationParent=void 0,this._onCancelField=void 0}function ae(le,ce){if(1&ce){this._cancellationParent=le;var ye=le._branchesRemainingToCancel;ye===void 0&&(ye=0),le._branchesRemainingToCancel=ye+1}2&ce&&le._isBound()&&this._setBoundTo(le._boundTo)}u.config=function(le){if("longStackTraces"in(le=Object(le))&&(le.longStackTraces?u.longStackTraces():!le.longStackTraces&&u.hasLongStackTraces()&&q()),"warnings"in le){var ce=le.warnings;Pe.warnings=!!ce,z=Pe.warnings,b.isObject(ce)&&"wForgottenReturn"in ce&&(z=!!ce.wForgottenReturn)}if("cancellation"in le&&le.cancellation&&!Pe.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=ee,u.prototype._propagateFrom=ae,u.prototype._onCancel=ne,u.prototype._setOnCancel=Y,u.prototype._attachCancellationCallback=H,u.prototype._execute=F,oe=ae,Pe.cancellation=!0}return"monitoring"in le&&(le.monitoring&&!Pe.monitoring?(Pe.monitoring=!0,u.prototype._fireEvent=K):!le.monitoring&&Pe.monitoring&&(Pe.monitoring=!1,u.prototype._fireEvent=B)),u},u.prototype._fireEvent=B,u.prototype._execute=function(le,ce,ye){try{le(ce,ye)}catch(ge){return ge}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(le){},u.prototype._attachCancellationCallback=function(le){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(le,ce){};var oe=function(le,ce){2&ce&&le._isBound()&&this._setBoundTo(le._boundTo)};function fe(){var le=this._boundTo;return le!==void 0&&le instanceof u?le.isFulfilled()?le.value():void 0:le}function C(){this._trace=new Ce(this._peekContext())}function A(le,ce){if(x(le)){var ye=this._trace;if(ye!==void 0&&ce&&(ye=ye._parent),ye!==void 0)ye.attachExtraTrace(le);else if(!le.__stackCleaned__){var ge=Z(le);b.notEnumerableProp(le,"stack",ge.message+`
|
||
`+ge.stack.join(`
|
||
`)),b.notEnumerableProp(le,"__stackCleaned__",!0)}}}function U(le,ce,ye){if(Pe.warnings){var ge,we=new w(le);if(ce)ye._attachExtraTrace(we);else if(Pe.longStackTraces&&(ge=u._peekContext()))ge.attachExtraTrace(we);else{var Ae=Z(we);we.stack=Ae.message+`
|
||
`+Ae.stack.join(`
|
||
`)}K("warning",we)||ie(we,"",!0)}}function Q(le){for(var ce=[],ye=0;ye<le.length;++ye){var ge=le[ye],we=ge===" (No stack trace)"||E.test(ge),Ae=we&&pe(ge);we&&!Ae&&(N&&ge.charAt(0)!==" "&&(ge=" "+ge),ce.push(ge))}return ce}function Z(le){var ce=le.stack,ye=le.toString();return ce=typeof ce=="string"&&ce.length>0?function(ge){for(var we=ge.stack.replace(/\s+$/g,"").split(`
|
||
`),Ae=0;Ae<we.length;++Ae){var Ne=we[Ae];if(Ne===" (No stack trace)"||E.test(Ne))break}return Ae>0&&ge.name!="SyntaxError"&&(we=we.slice(Ae)),we}(le):[" (No stack trace)"],{message:ye,stack:le.name=="SyntaxError"?ce:Q(ce)}}function ie(le,ce,ye){if(typeof console<"u"){var ge;if(b.isObject(le)){var we=le.stack;ge=ce+P(we,le)}else ge=ce+String(le);typeof v=="function"?v(ge,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ge)}}function he(le,ce,ye,ge){var we=!1;try{typeof ce=="function"&&(we=!0,le==="rejectionHandled"?ce(ge):ce(ye,ge))}catch(Ae){y.throwLater(Ae)}le==="unhandledRejection"?K(le,ye,ge)||we||ie(ye,"Unhandled rejection "):K(le,ge)}function Se(le){var ce;if(typeof le=="function")ce="[function "+(le.name||"anonymous")+"]";else{if(ce=le&&typeof le.toString=="function"?le.toString():b.toString(le),/\[object [a-zA-Z0-9$_]+\]/.test(ce))try{ce=JSON.stringify(le)}catch{}ce.length===0&&(ce="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(ce)+">, no stack trace)"}function se(){return typeof je=="function"}var pe=function(){return!1},me=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function xe(le){var ce=le.match(me);if(ce)return{fileName:ce[1],line:parseInt(ce[2],10)}}function Ce(le){this._parent=le,this._promisesCreated=0;var ce=this._length=1+(le===void 0?0:le._length);je(this,Ce),ce>32&&this.uncycle()}b.inherits(Ce,Error),f.CapturedTrace=Ce,Ce.prototype.uncycle=function(){var le=this._length;if(!(le<2)){for(var ce=[],ye={},ge=0,we=this;we!==void 0;++ge)ce.push(we),we=we._parent;for(ge=(le=this._length=ge)-1;ge>=0;--ge){var Ae=ce[ge].stack;ye[Ae]===void 0&&(ye[Ae]=ge)}for(ge=0;ge<le;++ge){var Ne=ye[ce[ge].stack];if(Ne!==void 0&&Ne!==ge){Ne>0&&(ce[Ne-1]._parent=void 0,ce[Ne-1]._length=1),ce[ge]._parent=void 0,ce[ge]._length=1;var et=ge>0?ce[ge-1]:this;Ne<le-1?(et._parent=ce[Ne+1],et._parent.uncycle(),et._length=et._parent._length+1):(et._parent=void 0,et._length=1);for(var nt=et._length+1,Ye=ge-2;Ye>=0;--Ye)ce[Ye]._length=nt,nt++;return}}}},Ce.prototype.attachExtraTrace=function(le){if(!le.__stackCleaned__){this.uncycle();for(var ce=Z(le),ye=ce.message,ge=[ce.stack],we=this;we!==void 0;)ge.push(Q(we.stack.split(`
|
||
`))),we=we._parent;(function(Ae){for(var Ne=Ae[0],et=1;et<Ae.length;++et){for(var nt=Ae[et],Ye=Ne.length-1,Gt=Ne[Ye],Ft=-1,bn=nt.length-1;bn>=0;--bn)if(nt[bn]===Gt){Ft=bn;break}for(bn=Ft;bn>=0;--bn){var Qn=nt[bn];if(Ne[Ye]!==Qn)break;Ne.pop(),Ye--}Ne=nt}})(ge),function(Ae){for(var Ne=0;Ne<Ae.length;++Ne)(Ae[Ne].length===0||Ne+1<Ae.length&&Ae[Ne][0]===Ae[Ne+1][0])&&(Ae.splice(Ne,1),Ne--)}(ge),b.notEnumerableProp(le,"stack",function(Ae,Ne){for(var et=0;et<Ne.length-1;++et)Ne[et].push("From previous event:"),Ne[et]=Ne[et].join(`
|
||
`);return et<Ne.length&&(Ne[et]=Ne[et].join(`
|
||
`)),Ae+`
|
||
`+Ne.join(`
|
||
`)}(ye,ge)),b.notEnumerableProp(le,"__stackCleaned__",!0)}};var je=function(){var le=/^\s*at\s*/,ce=function(Ae,Ne){return typeof Ae=="string"?Ae:Ne.name!==void 0&&Ne.message!==void 0?Ne.toString():Se(Ne)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,E=le,P=ce;var ye=Error.captureStackTrace;return pe=function(Ae){return _.test(Ae)},function(Ae,Ne){Error.stackTraceLimit+=6,ye(Ae,Ne),Error.stackTraceLimit-=6}}var ge,we=new Error;if(typeof we.stack=="string"&&we.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return E=/@/,P=ce,N=!0,function(Ae){Ae.stack=new Error().stack};try{throw new Error}catch(Ae){ge="stack"in Ae}return"stack"in we||!ge||typeof Error.stackTraceLimit!="number"?(P=function(Ae,Ne){return typeof Ae=="string"?Ae:typeof Ne!="object"&&typeof Ne!="function"||Ne.name===void 0||Ne.message===void 0?Se(Ne):Ne.toString()},null):(E=le,P=ce,function(Ae){Error.stackTraceLimit+=6;try{throw new Error}catch(Ne){Ae.stack=Ne.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(v=function(le){console.warn(le)},b.isNode&&r.stderr.isTTY?v=function(le,ce){var ye=ce?"\x1B[33m":"\x1B[31m";console.warn(ye+le+`\x1B[0m
|
||
`)}:b.isNode||typeof new Error().stack!="string"||(v=function(le,ce){console.warn("%c"+le,ce?"color: darkorange":"color: red")}));var Pe={warnings:M,longStackTraces:!1,cancellation:!1,monitoring:!1};return D&&u.longStackTraces(),{longStackTraces:function(){return Pe.longStackTraces},warnings:function(){return Pe.warnings},cancellation:function(){return Pe.cancellation},monitoring:function(){return Pe.monitoring},propagateFromFunction:function(){return oe},boundValueFunction:function(){return fe},checkForgottenReturns:function(le,ce,ye,ge,we){if(le===void 0&&ce!==null&&z){if(we!==void 0&&we._returnedNonUndefined()||!(65535&ge._bitField))return;ye&&(ye+=" ");var Ae="",Ne="";if(ce._trace){for(var et=ce._trace.stack.split(`
|
||
`),nt=Q(et),Ye=nt.length-1;Ye>=0;--Ye){var Gt=nt[Ye];if(!S.test(Gt)){var Ft=Gt.match(j);Ft&&(Ae="at "+Ft[1]+":"+Ft[2]+":"+Ft[3]+" ");break}}if(nt.length>0){var bn=nt[0];for(Ye=0;Ye<et.length;++Ye)if(et[Ye]===bn){Ye>0&&(Ne=`
|
||
`+et[Ye-1]);break}}}var Qn="a promise was created in a "+ye+"handler "+Ae+"but was not returned from it, see http://goo.gl/rRqMUw"+Ne;ge._warn(Qn,!0,ce)}},setBounds:function(le,ce){if(se()){for(var ye,ge,we=le.stack.split(`
|
||
`),Ae=ce.stack.split(`
|
||
`),Ne=-1,et=-1,nt=0;nt<we.length;++nt)if(Ye=xe(we[nt])){ye=Ye.fileName,Ne=Ye.line;break}for(nt=0;nt<Ae.length;++nt){var Ye;if(Ye=xe(Ae[nt])){ge=Ye.fileName,et=Ye.line;break}}Ne<0||et<0||!ye||!ge||ye!==ge||Ne>=et||(pe=function(Gt){if(_.test(Gt))return!0;var Ft=xe(Gt);return!!(Ft&&Ft.fileName===ye&&Ne<=Ft.line&&Ft.line<=et)})}},warn:U,deprecated:function(le,ce){var ye=le+" is deprecated and will be removed in a future version.";return ce&&(ye+=" Use "+ce+" instead."),U(ye)},CapturedTrace:Ce,fireDomEvent:W,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(u){function f(){return this.value}function d(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(p){return p instanceof u&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},u.prototype.throw=u.prototype.thenThrow=function(p){return this._then(d,void 0,void 0,{reason:p},void 0)},u.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,d,void 0,{reason:p},void 0);var v=arguments[1];return this.caught(p,function(){throw v})},u.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof u&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var v=arguments[1];return v instanceof u&&v.suppressUnhandledRejections(),this.caught(p,function(){return v})}}},{}],11:[function(a,s,l){s.exports=function(u,f){var d=u.reduce,p=u.all;function v(){return p(this)}u.prototype.each=function(g){return d(this,g,f,0)._then(v,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(g){return d(this,g,f,f)},u.each=function(g,y){return d(g,y,f,0)._then(v,void 0,void 0,g,void 0)},u.mapSeries=function(g,y){return d(g,y,f,f)}}},{}],12:[function(a,s,l){var u,f,d=a("./es5"),p=d.freeze,v=a("./util"),g=v.inherits,y=v.notEnumerableProp;function w(M,D){function z(q){if(!(this instanceof z))return new z(q);y(this,"message",typeof q=="string"?q:D),y(this,"name",M),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(z,Error),z}var b=w("Warning","warning"),x=w("CancellationError","cancellation error"),_=w("TimeoutError","timeout error"),S=w("AggregateError","aggregate error");try{u=TypeError,f=RangeError}catch{u=w("TypeError","type error"),f=w("RangeError","range error")}for(var j="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),E=0;E<j.length;++E)typeof Array.prototype[j[E]]=="function"&&(S.prototype[j[E]]=Array.prototype[j[E]]);d.defineProperty(S.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),S.prototype.isOperational=!0;var P=0;function N(M){if(!(this instanceof N))return new N(M);y(this,"name","OperationalError"),y(this,"message",M),this.cause=M,this.isOperational=!0,M instanceof Error?(y(this,"message",M.message),y(this,"stack",M.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}S.prototype.toString=function(){var M=Array(4*P+1).join(" "),D=`
|
||
`+M+`AggregateError of:
|
||
`;P++,M=Array(4*P+1).join(" ");for(var z=0;z<this.length;++z){for(var q=this[z]===this?"[Circular AggregateError]":this[z]+"",W=q.split(`
|
||
`),X=0;X<W.length;++X)W[X]=M+W[X];D+=(q=W.join(`
|
||
`))+`
|
||
`}return P--,D},g(N,Error);var I=Error.__BluebirdErrorTypes__;I||(I=p({CancellationError:x,TimeoutError:_,OperationalError:N,RejectionError:N,AggregateError:S}),d.defineProperty(Error,"__BluebirdErrorTypes__",{value:I,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:f,CancellationError:I.CancellationError,OperationalError:I.OperationalError,TimeoutError:I.TimeoutError,AggregateError:I.AggregateError,Warning:b}},{"./es5":13,"./util":36}],13:[function(a,s,l){var u=function(){return this===void 0}();if(u)s.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(g,y){var w=Object.getOwnPropertyDescriptor(g,y);return!(w&&!w.writable&&!w.set)}};else{var f={}.hasOwnProperty,d={}.toString,p={}.constructor.prototype,v=function(g){var y=[];for(var w in g)f.call(g,w)&&y.push(w);return y};s.exports={isArray:function(g){try{return d.call(g)==="[object Array]"}catch{return!1}},keys:v,names:v,defineProperty:function(g,y,w){return g[y]=w.value,g},getDescriptor:function(g,y){return{value:g[y]}},freeze:function(g){return g},getPrototypeOf:function(g){try{return Object(g).constructor.prototype}catch{return p}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(u,f){var d=u.map;u.prototype.filter=function(p,v){return d(this,p,v,f)},u.filter=function(p,v,g){return d(p,v,g,f)}}},{}],15:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),v=u.CancellationError,g=p.errorObj,y=a("./catch_filter")(d);function w(E,P,N){this.promise=E,this.type=P,this.handler=N,this.called=!1,this.cancelPromise=null}function b(E){this.finallyHandler=E}function x(E,P){return E.cancelPromise!=null&&(arguments.length>1?E.cancelPromise._reject(P):E.cancelPromise._cancel(),E.cancelPromise=null,!0)}function _(){return j.call(this,this.promise._target()._settledValue())}function S(E){if(!x(this,E))return g.e=E,g}function j(E){var P=this.promise,N=this.handler;if(!this.called){this.called=!0;var I=this.isFinallyHandler()?N.call(P._boundValue()):N.call(P._boundValue(),E);if(I===d)return I;if(I!==void 0){P._setReturnedNonUndefined();var M=f(I,P);if(M instanceof u){if(this.cancelPromise!=null){if(M._isCancelled()){var D=new v("late cancellation observer");return P._attachExtraTrace(D),g.e=D,g}M.isPending()&&M._attachCancellationCallback(new b(this))}return M._then(_,S,void 0,this,void 0)}}}return P.isRejected()?(x(this),g.e=E,g):(x(this),E)}return w.prototype.isFinallyHandler=function(){return this.type===0},b.prototype._resultCancelled=function(){x(this.finallyHandler)},u.prototype._passThrough=function(E,P,N,I){return typeof E!="function"?this.then():this._then(N,I,void 0,new w(this,P,E),void 0)},u.prototype.lastly=u.prototype.finally=function(E){return this._passThrough(E,0,j,j)},u.prototype.tap=function(E){return this._passThrough(E,1,j)},u.prototype.tapCatch=function(E){var P=arguments.length;if(P===1)return this._passThrough(E,1,void 0,j);var N,I=new Array(P-1),M=0;for(N=0;N<P-1;++N){var D=arguments[N];if(!p.isObject(D))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(D)));I[M++]=D}I.length=M;var z=arguments[N];return this._passThrough(y(I,z,this),1,void 0,j)},w}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(u,f,d,p,v,g){var y=a("./errors").TypeError,w=a("./util"),b=w.errorObj,x=w.tryCatch,_=[];function S(j,E,P,N){if(g.cancellation()){var I=new u(d),M=this._finallyPromise=new u(d);this._promise=I.lastly(function(){return M}),I._captureStackTrace(),I._setOnCancel(this)}else(this._promise=new u(d))._captureStackTrace();this._stack=N,this._generatorFunction=j,this._receiver=E,this._generator=void 0,this._yieldHandlers=typeof P=="function"?[P].concat(_):_,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(S,v),S.prototype._isResolved=function(){return this._promise===null},S.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},S.prototype._promiseCancelled=function(){if(!this._isResolved()){var j;if(this._generator.return!==void 0)this._promise._pushContext(),j=x(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var E=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=E,this._promise._attachExtraTrace(E),this._promise._pushContext(),j=x(this._generator.throw).call(this._generator,E),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(j)}},S.prototype._promiseFulfilled=function(j){this._yieldedPromise=null,this._promise._pushContext();var E=x(this._generator.next).call(this._generator,j);this._promise._popContext(),this._continue(E)},S.prototype._promiseRejected=function(j){this._yieldedPromise=null,this._promise._attachExtraTrace(j),this._promise._pushContext();var E=x(this._generator.throw).call(this._generator,j);this._promise._popContext(),this._continue(E)},S.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var j=this._yieldedPromise;this._yieldedPromise=null,j.cancel()}},S.prototype.promise=function(){return this._promise},S.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},S.prototype._continue=function(j){var E=this._promise;if(j===b)return this._cleanup(),this._cancellationPhase?E.cancel():E._rejectCallback(j.e,!1);var P=j.value;if(j.done===!0)return this._cleanup(),this._cancellationPhase?E.cancel():E._resolveCallback(P);var N=p(P,this._promise);if(N instanceof u||(N=function(M,D,z){for(var q=0;q<D.length;++q){z._pushContext();var W=x(D[q])(M);if(z._popContext(),W===b){z._pushContext();var X=u.reject(b.e);return z._popContext(),X}var J=p(W,z);if(J instanceof u)return J}return null}(N,this._yieldHandlers,this._promise))!==null){var I=(N=N._target())._bitField;50397184&I?33554432&I?u._async.invoke(this._promiseFulfilled,this,N._value()):16777216&I?u._async.invoke(this._promiseRejected,this,N._reason()):this._promiseCancelled():(this._yieldedPromise=N,N._proxy(this,null))}else this._promiseRejected(new y(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(P))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},u.coroutine=function(j,E){if(typeof j!="function")throw new y(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=Object(E).yieldHandler,N=S,I=new Error().stack;return function(){var M=j.apply(this,arguments),D=new N(void 0,void 0,P,I),z=D.promise();return D._generator=M,D._promiseFulfilled(void 0),z}},u.coroutine.addYieldHandler=function(j){if(typeof j!="function")throw new y("expecting a function but got "+w.classString(j));_.push(j)},u.spawn=function(j){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),typeof j!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var E=new S(j,this),P=E.promise();return E._run(u.spawn),P}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(u,f,d,p,v,g){var y=a("./util");y.canEvaluate,y.tryCatch,y.errorObj,u.join=function(){var w,b=arguments.length-1;b>0&&typeof arguments[b]=="function"&&(w=arguments[b]);var x=[].slice.call(arguments);w&&x.pop();var _=new f(x).promise();return w!==void 0?_.spread(w):_}}},{"./util":36}],18:[function(a,s,l){s.exports=function(u,f,d,p,v,g){var y=u._getDomain,w=a("./util"),b=w.tryCatch,x=w.errorObj,_=u._async;function S(E,P,N,I){this.constructor$(E),this._promise._captureStackTrace();var M=y();this._callback=M===null?P:w.domainBind(M,P),this._preservedValues=I===v?new Array(this.length()):null,this._limit=N,this._inFlight=0,this._queue=[],_.invoke(this._asyncInit,this,void 0)}function j(E,P,N,I){if(typeof P!="function")return d("expecting a function but got "+w.classString(P));var M=0;if(N!==void 0){if(typeof N!="object"||N===null)return u.reject(new TypeError("options argument must be an object but it is "+w.classString(N)));if(typeof N.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(N.concurrency)));M=N.concurrency}return new S(E,P,M=typeof M=="number"&&isFinite(M)&&M>=1?M:0,I).promise()}w.inherits(S,f),S.prototype._asyncInit=function(){this._init$(void 0,-2)},S.prototype._init=function(){},S.prototype._promiseFulfilled=function(E,P){var N=this._values,I=this.length(),M=this._preservedValues,D=this._limit;if(P<0){if(N[P=-1*P-1]=E,D>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(D>=1&&this._inFlight>=D)return N[P]=E,this._queue.push(P),!1;M!==null&&(M[P]=E);var z=this._promise,q=this._callback,W=z._boundValue();z._pushContext();var X=b(q).call(W,E,P,I),J=z._popContext();if(g.checkForgottenReturns(X,J,M!==null?"Promise.filter":"Promise.map",z),X===x)return this._reject(X.e),!0;var te=p(X,this._promise);if(te instanceof u){var K=(te=te._target())._bitField;if(!(50397184&K))return D>=1&&this._inFlight++,N[P]=te,te._proxy(this,-1*(P+1)),!1;if(!(33554432&K))return 16777216&K?(this._reject(te._reason()),!0):(this._cancel(),!0);X=te._value()}N[P]=X}return++this._totalResolved>=I&&(M!==null?this._filter(N,M):this._resolve(N),!0)},S.prototype._drainQueue=function(){for(var E=this._queue,P=this._limit,N=this._values;E.length>0&&this._inFlight<P;){if(this._isResolved())return;var I=E.pop();this._promiseFulfilled(N[I],I)}},S.prototype._filter=function(E,P){for(var N=P.length,I=new Array(N),M=0,D=0;D<N;++D)E[D]&&(I[M++]=P[D]);I.length=M,this._resolve(I)},S.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(E,P){return j(this,E,P,null)},u.map=function(E,P,N,I){return j(E,P,N,I)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(u,f,d,p,v){var g=a("./util"),y=g.tryCatch;u.method=function(w){if(typeof w!="function")throw new u.TypeError("expecting a function but got "+g.classString(w));return function(){var b=new u(f);b._captureStackTrace(),b._pushContext();var x=y(w).apply(this,arguments),_=b._popContext();return v.checkForgottenReturns(x,_,"Promise.method",b),b._resolveFromSyncValue(x),b}},u.attempt=u.try=function(w){if(typeof w!="function")return p("expecting a function but got "+g.classString(w));var b,x=new u(f);if(x._captureStackTrace(),x._pushContext(),arguments.length>1){v.deprecated("calling Promise.try with more than 1 argument");var _=arguments[1],S=arguments[2];b=g.isArray(_)?y(w).apply(S,_):y(w).call(S,_)}else b=y(w)();var j=x._popContext();return v.checkForgottenReturns(b,j,"Promise.try",x),x._resolveFromSyncValue(b),x},u.prototype._resolveFromSyncValue=function(w){w===g.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,l){var u=a("./util"),f=u.maybeWrapAsError,d=a("./errors").OperationalError,p=a("./es5"),v=/^(?:name|message|stack|cause)$/;function g(y){var w;if(function(S){return S instanceof Error&&p.getPrototypeOf(S)===Error.prototype}(y)){(w=new d(y)).name=y.name,w.message=y.message,w.stack=y.stack;for(var b=p.keys(y),x=0;x<b.length;++x){var _=b[x];v.test(_)||(w[_]=y[_])}return w}return u.markAsOriginatingFromRejection(y),y}s.exports=function(y,w){return function(b,x){if(y!==null){if(b){var _=g(f(b));y._attachExtraTrace(_),y._reject(_)}else if(w){var S=[].slice.call(arguments,1);y._fulfill(S)}else y._fulfill(x);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(u){var f=a("./util"),d=u._async,p=f.tryCatch,v=f.errorObj;function g(b,x){if(!f.isArray(b))return y.call(this,b,x);var _=p(x).apply(this._boundValue(),[null].concat(b));_===v&&d.throwLater(_.e)}function y(b,x){var _=this._boundValue(),S=b===void 0?p(x).call(_,null):p(x).call(_,null,b);S===v&&d.throwLater(S.e)}function w(b,x){if(!b){var _=new Error(b+"");_.cause=b,b=_}var S=p(x).call(this._boundValue(),b);S===v&&d.throwLater(S.e)}u.prototype.asCallback=u.prototype.nodeify=function(b,x){if(typeof b=="function"){var _=y;x!==void 0&&Object(x).spread&&(_=g),this._then(_,w,void 0,this,b)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var u=function(){return new S(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new B.PromiseInspection(this._target())},d=function(Y){return B.reject(new S(Y))};function p(){}var v,g={},y=a("./util");v=y.isNode?function(){var Y=r.domain;return Y===void 0&&(Y=null),Y}:function(){return null},y.notEnumerableProp(B,"_getDomain",v);var w=a("./es5"),b=a("./async"),x=new b;w.defineProperty(B,"_async",{value:x});var _=a("./errors"),S=B.TypeError=_.TypeError;B.RangeError=_.RangeError;var j=B.CancellationError=_.CancellationError;B.TimeoutError=_.TimeoutError,B.OperationalError=_.OperationalError,B.RejectionError=_.OperationalError,B.AggregateError=_.AggregateError;var E=function(){},P={},N={},I=a("./thenables")(B,E),M=a("./promise_array")(B,E,I,d,p),D=a("./context")(B),z=D.create,q=a("./debuggability")(B,D),W=(q.CapturedTrace,a("./finally")(B,I,N)),X=a("./catch_filter")(N),J=a("./nodeback"),te=y.errorObj,K=y.tryCatch;function B(Y){Y!==E&&function(ee,ae){if(ee==null||ee.constructor!==B)throw new S(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ae!="function")throw new S("expecting a function but got "+y.classString(ae))}(this,Y),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(Y),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function F(Y){this.promise._resolveCallback(Y)}function H(Y){this.promise._rejectCallback(Y,!1)}function ne(Y){var ee=new B(E);ee._fulfillmentHandler0=Y,ee._rejectionHandler0=Y,ee._promise0=Y,ee._receiver0=Y}return B.prototype.toString=function(){return"[object Promise]"},B.prototype.caught=B.prototype.catch=function(Y){var ee=arguments.length;if(ee>1){var ae,oe=new Array(ee-1),fe=0;for(ae=0;ae<ee-1;++ae){var C=arguments[ae];if(!y.isObject(C))return d("Catch statement predicate: expecting an object but got "+y.classString(C));oe[fe++]=C}return oe.length=fe,Y=arguments[ae],this.then(void 0,X(oe,Y,this))}return this.then(void 0,Y)},B.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},B.prototype.then=function(Y,ee){if(q.warnings()&&arguments.length>0&&typeof Y!="function"&&typeof ee!="function"){var ae=".then() only accepts functions but was passed: "+y.classString(Y);arguments.length>1&&(ae+=", "+y.classString(ee)),this._warn(ae)}return this._then(Y,ee,void 0,void 0,void 0)},B.prototype.done=function(Y,ee){this._then(Y,ee,void 0,void 0,void 0)._setIsFinal()},B.prototype.spread=function(Y){return typeof Y!="function"?d("expecting a function but got "+y.classString(Y)):this.all()._then(Y,void 0,void 0,P,void 0)},B.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},B.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new M(this).promise()},B.prototype.error=function(Y){return this.caught(y.originatesFromRejection,Y)},B.getNewLibraryCopy=s.exports,B.is=function(Y){return Y instanceof B},B.fromNode=B.fromCallback=function(Y){var ee=new B(E);ee._captureStackTrace();var ae=arguments.length>1&&!!Object(arguments[1]).multiArgs,oe=K(Y)(J(ee,ae));return oe===te&&ee._rejectCallback(oe.e,!0),ee._isFateSealed()||ee._setAsyncGuaranteed(),ee},B.all=function(Y){return new M(Y).promise()},B.cast=function(Y){var ee=I(Y);return ee instanceof B||((ee=new B(E))._captureStackTrace(),ee._setFulfilled(),ee._rejectionHandler0=Y),ee},B.resolve=B.fulfilled=B.cast,B.reject=B.rejected=function(Y){var ee=new B(E);return ee._captureStackTrace(),ee._rejectCallback(Y,!0),ee},B.setScheduler=function(Y){if(typeof Y!="function")throw new S("expecting a function but got "+y.classString(Y));return x.setScheduler(Y)},B.prototype._then=function(Y,ee,ae,oe,fe){var C=fe!==void 0,A=C?fe:new B(E),U=this._target(),Q=U._bitField;C||(A._propagateFrom(this,3),A._captureStackTrace(),oe===void 0&&2097152&this._bitField&&(oe=50397184&Q?this._boundValue():U===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,A));var Z=v();if(50397184&Q){var ie,he,Se=U._settlePromiseCtx;33554432&Q?(he=U._rejectionHandler0,ie=Y):16777216&Q?(he=U._fulfillmentHandler0,ie=ee,U._unsetRejectionIsUnhandled()):(Se=U._settlePromiseLateCancellationObserver,he=new j("late cancellation observer"),U._attachExtraTrace(he),ie=ee),x.invoke(Se,U,{handler:Z===null?ie:typeof ie=="function"&&y.domainBind(Z,ie),promise:A,receiver:oe,value:he})}else U._addCallbacks(Y,ee,A,oe,Z);return A},B.prototype._length=function(){return 65535&this._bitField},B.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},B.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},B.prototype._setLength=function(Y){this._bitField=-65536&this._bitField|65535&Y},B.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},B.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},B.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},B.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},B.prototype._isFinal=function(){return(4194304&this._bitField)>0},B.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},B.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},B.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},B.prototype._setAsyncGuaranteed=function(){x.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},B.prototype._receiverAt=function(Y){var ee=Y===0?this._receiver0:this[4*Y-4+3];if(ee!==g)return ee===void 0&&this._isBound()?this._boundValue():ee},B.prototype._promiseAt=function(Y){return this[4*Y-4+2]},B.prototype._fulfillmentHandlerAt=function(Y){return this[4*Y-4+0]},B.prototype._rejectionHandlerAt=function(Y){return this[4*Y-4+1]},B.prototype._boundValue=function(){},B.prototype._migrateCallback0=function(Y){Y._bitField;var ee=Y._fulfillmentHandler0,ae=Y._rejectionHandler0,oe=Y._promise0,fe=Y._receiverAt(0);fe===void 0&&(fe=g),this._addCallbacks(ee,ae,oe,fe,null)},B.prototype._migrateCallbackAt=function(Y,ee){var ae=Y._fulfillmentHandlerAt(ee),oe=Y._rejectionHandlerAt(ee),fe=Y._promiseAt(ee),C=Y._receiverAt(ee);C===void 0&&(C=g),this._addCallbacks(ae,oe,fe,C,null)},B.prototype._addCallbacks=function(Y,ee,ae,oe,fe){var C=this._length();if(C>=65531&&(C=0,this._setLength(0)),C===0)this._promise0=ae,this._receiver0=oe,typeof Y=="function"&&(this._fulfillmentHandler0=fe===null?Y:y.domainBind(fe,Y)),typeof ee=="function"&&(this._rejectionHandler0=fe===null?ee:y.domainBind(fe,ee));else{var A=4*C-4;this[A+2]=ae,this[A+3]=oe,typeof Y=="function"&&(this[A+0]=fe===null?Y:y.domainBind(fe,Y)),typeof ee=="function"&&(this[A+1]=fe===null?ee:y.domainBind(fe,ee))}return this._setLength(C+1),C},B.prototype._proxy=function(Y,ee){this._addCallbacks(void 0,void 0,ee,Y,null)},B.prototype._resolveCallback=function(Y,ee){if(!(117506048&this._bitField)){if(Y===this)return this._rejectCallback(u(),!1);var ae=I(Y,this);if(!(ae instanceof B))return this._fulfill(Y);ee&&this._propagateFrom(ae,2);var oe=ae._target();if(oe!==this){var fe=oe._bitField;if(50397184&fe)if(33554432&fe)this._fulfill(oe._value());else if(16777216&fe)this._reject(oe._reason());else{var U=new j("late cancellation observer");oe._attachExtraTrace(U),this._reject(U)}else{var C=this._length();C>0&&oe._migrateCallback0(this);for(var A=1;A<C;++A)oe._migrateCallbackAt(this,A);this._setFollowing(),this._setLength(0),this._setFollowee(oe)}}else this._reject(u())}},B.prototype._rejectCallback=function(Y,ee,ae){var oe=y.ensureErrorObject(Y),fe=oe===Y;if(!fe&&!ae&&q.warnings()){var C="a promise was rejected with a non-error: "+y.classString(Y);this._warn(C,!0)}this._attachExtraTrace(oe,!!ee&&fe),this._reject(Y)},B.prototype._resolveFromExecutor=function(Y){if(Y!==E){var ee=this;this._captureStackTrace(),this._pushContext();var ae=!0,oe=this._execute(Y,function(fe){ee._resolveCallback(fe)},function(fe){ee._rejectCallback(fe,ae)});ae=!1,this._popContext(),oe!==void 0&&ee._rejectCallback(oe,!0)}},B.prototype._settlePromiseFromHandler=function(Y,ee,ae,oe){var fe=oe._bitField;if(!(65536&fe)){var C;oe._pushContext(),ee===P?ae&&typeof ae.length=="number"?C=K(Y).apply(this._boundValue(),ae):(C=te).e=new S("cannot .spread() a non-array: "+y.classString(ae)):C=K(Y).call(ee,ae);var A=oe._popContext();!(65536&(fe=oe._bitField))&&(C===N?oe._reject(ae):C===te?oe._rejectCallback(C.e,!1):(q.checkForgottenReturns(C,A,"",oe,this),oe._resolveCallback(C)))}},B.prototype._target=function(){for(var Y=this;Y._isFollowing();)Y=Y._followee();return Y},B.prototype._followee=function(){return this._rejectionHandler0},B.prototype._setFollowee=function(Y){this._rejectionHandler0=Y},B.prototype._settlePromise=function(Y,ee,ae,oe){var fe=Y instanceof B,C=this._bitField,A=(134217728&C)!=0;65536&C?(fe&&Y._invokeInternalOnCancel(),ae instanceof W&&ae.isFinallyHandler()?(ae.cancelPromise=Y,K(ee).call(ae,oe)===te&&Y._reject(te.e)):ee===f?Y._fulfill(f.call(ae)):ae instanceof p?ae._promiseCancelled(Y):fe||Y instanceof M?Y._cancel():ae.cancel()):typeof ee=="function"?fe?(A&&Y._setAsyncGuaranteed(),this._settlePromiseFromHandler(ee,ae,oe,Y)):ee.call(ae,oe,Y):ae instanceof p?ae._isResolved()||(33554432&C?ae._promiseFulfilled(oe,Y):ae._promiseRejected(oe,Y)):fe&&(A&&Y._setAsyncGuaranteed(),33554432&C?Y._fulfill(oe):Y._reject(oe))},B.prototype._settlePromiseLateCancellationObserver=function(Y){var ee=Y.handler,ae=Y.promise,oe=Y.receiver,fe=Y.value;typeof ee=="function"?ae instanceof B?this._settlePromiseFromHandler(ee,oe,fe,ae):ee.call(oe,fe,ae):ae instanceof B&&ae._reject(fe)},B.prototype._settlePromiseCtx=function(Y){this._settlePromise(Y.promise,Y.handler,Y.receiver,Y.value)},B.prototype._settlePromise0=function(Y,ee,ae){var oe=this._promise0,fe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(oe,Y,fe,ee)},B.prototype._clearCallbackDataAtIndex=function(Y){var ee=4*Y-4;this[ee+2]=this[ee+3]=this[ee+0]=this[ee+1]=void 0},B.prototype._fulfill=function(Y){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(Y===this){var ae=u();return this._attachExtraTrace(ae),this._reject(ae)}this._setFulfilled(),this._rejectionHandler0=Y,(65535&ee)>0&&(134217728&ee?this._settlePromises():x.settlePromises(this))}},B.prototype._reject=function(Y){var ee=this._bitField;if(!((117506048&ee)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Y,this._isFinal())return x.fatalError(Y,y.isNode);(65535&ee)>0?x.settlePromises(this):this._ensurePossibleRejectionHandled()}},B.prototype._fulfillPromises=function(Y,ee){for(var ae=1;ae<Y;ae++){var oe=this._fulfillmentHandlerAt(ae),fe=this._promiseAt(ae),C=this._receiverAt(ae);this._clearCallbackDataAtIndex(ae),this._settlePromise(fe,oe,C,ee)}},B.prototype._rejectPromises=function(Y,ee){for(var ae=1;ae<Y;ae++){var oe=this._rejectionHandlerAt(ae),fe=this._promiseAt(ae),C=this._receiverAt(ae);this._clearCallbackDataAtIndex(ae),this._settlePromise(fe,oe,C,ee)}},B.prototype._settlePromises=function(){var Y=this._bitField,ee=65535&Y;if(ee>0){if(16842752&Y){var ae=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ae,Y),this._rejectPromises(ee,ae)}else{var oe=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,oe,Y),this._fulfillPromises(ee,oe)}this._setLength(0)}this._clearCancellationData()},B.prototype._settledValue=function(){var Y=this._bitField;return 33554432&Y?this._rejectionHandler0:16777216&Y?this._fulfillmentHandler0:void 0},B.defer=B.pending=function(){return q.deprecated("Promise.defer","new Promise"),{promise:new B(E),resolve:F,reject:H}},y.notEnumerableProp(B,"_makeSelfResolutionError",u),a("./method")(B,E,I,d,q),a("./bind")(B,E,I,q),a("./cancel")(B,M,d,q),a("./direct_resolve")(B),a("./synchronous_inspection")(B),a("./join")(B,M,I,E,x,v),B.Promise=B,B.version="3.5.1",a("./map.js")(B,M,d,I,E,q),a("./call_get.js")(B),a("./using.js")(B,d,I,z,E,q),a("./timers.js")(B,E,q),a("./generators.js")(B,d,E,I,p,q),a("./nodeify.js")(B),a("./promisify.js")(B,E),a("./props.js")(B,M,I,d),a("./race.js")(B,E,I,d),a("./reduce.js")(B,M,d,I,E,q),a("./settle.js")(B,M,q),a("./some.js")(B,M,d),a("./filter.js")(B,E),a("./each.js")(B,E),a("./any.js")(B),y.toFastProperties(B),y.toFastProperties(B.prototype),ne({a:1}),ne({b:2}),ne({c:3}),ne(1),ne(function(){}),ne(void 0),ne(!1),ne(new B(E)),q.setBounds(b.firstLineError,y.lastLineError),B}},{"./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(a,s,l){s.exports=function(u,f,d,p,v){var g=a("./util");function y(w){var b=this._promise=new u(f);w instanceof u&&b._propagateFrom(w,3),b._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(y,v),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function w(b,x){var _=d(this._values,this._promise);if(_ instanceof u){var S=(_=_._target())._bitField;if(this._values=_,(50397184&S)==0)return this._promise._setAsyncGuaranteed(),_._then(w,this._reject,void 0,this,x);if(!(33554432&S))return 16777216&S?this._reject(_._reason()):this._cancel();_=_._value()}if((_=g.asArray(_))!==null)_.length!==0?this._iterate(_):x===-5?this._resolveEmptyArray():this._resolve(function(E){switch(x){case-2:return[];case-3:return{};case-6:return new Map}}());else{var j=p("expecting an array or an iterable object but got "+g.classString(_)).reason();this._promise._rejectCallback(j,!1)}},y.prototype._iterate=function(w){var b=this.getActualLength(w.length);this._length=b,this._values=this.shouldCopyValues()?new Array(b):this._values;for(var x=this._promise,_=!1,S=null,j=0;j<b;++j){var E=d(w[j],x);S=E instanceof u?(E=E._target())._bitField:null,_?S!==null&&E.suppressUnhandledRejections():S!==null?50397184&S?_=33554432&S?this._promiseFulfilled(E._value(),j):16777216&S?this._promiseRejected(E._reason(),j):this._promiseCancelled(j):(E._proxy(this,j),this._values[j]=E):_=this._promiseFulfilled(E,j)}_||x._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},y.prototype._promiseFulfilled=function(w,b){return this._values[b]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof u)w.cancel();else for(var b=0;b<w.length;++b)w[b]instanceof u&&w[b].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(w){return w},y}},{"./util":36}],24:[function(a,s,l){s.exports=function(u,f){var d={},p=a("./util"),v=a("./nodeback"),g=p.withAppended,y=p.maybeWrapAsError,w=p.canEvaluate,b=a("./errors").TypeError,x={__isPromisified__:!0},_=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),S=function(z){return p.isIdentifier(z)&&z.charAt(0)!=="_"&&z!=="constructor"};function j(z){return!_.test(z)}function E(z){try{return z.__isPromisified__===!0}catch{return!1}}function P(z,q,W){var X=p.getDataPropertyOrDefault(z,q+W,x);return!!X&&E(X)}function N(z,q,W,X){for(var J=p.inheritedDataKeys(z),te=[],K=0;K<J.length;++K){var B=J[K],F=z[B],H=X===S||S(B);typeof F!="function"||E(F)||P(z,B,q)||!X(B,F,z,H)||te.push(B,F)}return function(ne,Y,ee){for(var ae=0;ae<ne.length;ae+=2){var oe=ne[ae];if(ee.test(oe)){for(var fe=oe.replace(ee,""),C=0;C<ne.length;C+=2)if(ne[C]===fe)throw new b(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",Y))}}}(te,q,W),te}var I=function(z){return z.replace(/([$])/,"\\$")},M=w?void 0:function(z,q,W,X,J,te){var K=function(){return this}(),B=z;function F(){var H=q;q===d&&(H=this);var ne=new u(f);ne._captureStackTrace();var Y=typeof B=="string"&&this!==K?this[B]:z,ee=v(ne,te);try{Y.apply(H,g(arguments,ee))}catch(ae){ne._rejectCallback(y(ae),!0,!0)}return ne._isFateSealed()||ne._setAsyncGuaranteed(),ne}return typeof B=="string"&&(z=X),p.notEnumerableProp(F,"__isPromisified__",!0),F};function D(z,q,W,X,J){for(var te=new RegExp(I(q)+"$"),K=N(z,q,te,W),B=0,F=K.length;B<F;B+=2){var H=K[B],ne=K[B+1],Y=H+q;if(X===M)z[Y]=M(H,d,H,ne,q,J);else{var ee=X(ne,function(){return M(H,d,H,ne,q,J)});p.notEnumerableProp(ee,"__isPromisified__",!0),z[Y]=ee}}return p.toFastProperties(z),z}u.promisify=function(z,q){if(typeof z!="function")throw new b("expecting a function but got "+p.classString(z));if(E(z))return z;var W=(q=Object(q)).context===void 0?d:q.context,X=!!q.multiArgs,J=function(te,K,B){return M(te,K,void 0,te,null,X)}(z,W);return p.copyDescriptors(z,J,j),J},u.promisifyAll=function(z,q){if(typeof z!="function"&&typeof z!="object")throw new b(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var W=!!(q=Object(q)).multiArgs,X=q.suffix;typeof X!="string"&&(X="Async");var J=q.filter;typeof J!="function"&&(J=S);var te=q.promisifier;if(typeof te!="function"&&(te=M),!p.isIdentifier(X))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var K=p.inheritedDataKeys(z),B=0;B<K.length;++B){var F=z[K[B]];K[B]!=="constructor"&&p.isClass(F)&&(D(F.prototype,X,J,te,W),D(F,X,J,te,W))}return D(z,X,J,te,W)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(u,f,d,p){var v,g=a("./util"),y=g.isObject,w=a("./es5");typeof Map=="function"&&(v=Map);var b=function(){var S=0,j=0;function E(P,N){this[S]=P,this[S+j]=N,S++}return function(P){j=P.size,S=0;var N=new Array(2*P.size);return P.forEach(E,N),N}}();function x(S){var j,E=!1;if(v!==void 0&&S instanceof v)j=b(S),E=!0;else{var P=w.keys(S),N=P.length;j=new Array(2*N);for(var I=0;I<N;++I){var M=P[I];j[I]=S[M],j[I+N]=M}}this.constructor$(j),this._isMap=E,this._init$(void 0,E?-6:-3)}function _(S){var j,E=d(S);return y(E)?(j=E instanceof u?E._then(u.props,void 0,void 0,void 0,void 0):new x(E).promise(),E instanceof u&&j._propagateFrom(E,2),j):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}g.inherits(x,f),x.prototype._init=function(){},x.prototype._promiseFulfilled=function(S,j){if(this._values[j]=S,++this._totalResolved>=this._length){var E;if(this._isMap)E=function(M){for(var D=new v,z=M.length/2|0,q=0;q<z;++q){var W=M[z+q],X=M[q];D.set(W,X)}return D}(this._values);else{E={};for(var P=this.length(),N=0,I=this.length();N<I;++N)E[this._values[N+P]]=this._values[N]}return this._resolve(E),!0}return!1},x.prototype.shouldCopyValues=function(){return!1},x.prototype.getActualLength=function(S){return S>>1},u.prototype.props=function(){return _(this)},u.props=function(S){return _(S)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function u(f){this._capacity=f,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(f){return this._capacity<f},u.prototype._pushOne=function(f){var d=this.length();this._checkCapacity(d+1),this[this._front+d&this._capacity-1]=f,this._length=d+1},u.prototype.push=function(f,d,p){var v=this.length()+3;if(this._willBeOverCapacity(v))return this._pushOne(f),this._pushOne(d),void this._pushOne(p);var g=this._front+v-3;this._checkCapacity(v);var y=this._capacity-1;this[g+0&y]=f,this[g+1&y]=d,this[g+2&y]=p,this._length=v},u.prototype.shift=function(){var f=this._front,d=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,d},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(f){var d=this._capacity;this._capacity=f,function(p,v,g,y,w){for(var b=0;b<w;++b)g[b+y]=p[b+0],p[b+0]=void 0}(this,0,this,d,this._front+this._length&d-1)},s.exports=u},{}],27:[function(a,s,l){s.exports=function(u,f,d,p){var v=a("./util"),g=function(w){return w.then(function(b){return y(b,w)})};function y(w,b){var x=d(w);if(x instanceof u)return g(x);if((w=v.asArray(w))===null)return p("expecting an array or an iterable object but got "+v.classString(w));var _=new u(f);b!==void 0&&_._propagateFrom(b,3);for(var S=_._fulfill,j=_._reject,E=0,P=w.length;E<P;++E){var N=w[E];(N!==void 0||E in w)&&u.cast(N)._then(S,j,void 0,_,null)}return _}u.race=function(w){return y(w,void 0)},u.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(u,f,d,p,v,g){var y=u._getDomain,w=a("./util"),b=w.tryCatch;function x(P,N,I,M){this.constructor$(P);var D=y();this._fn=D===null?N:w.domainBind(D,N),I!==void 0&&(I=u.resolve(I))._attachCancellationCallback(this),this._initialValue=I,this._currentCancellable=null,this._eachValues=M===v?Array(this._length):M===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function _(P,N){this.isFulfilled()?N._resolve(P):N._reject(P)}function S(P,N,I,M){return typeof N!="function"?d("expecting a function but got "+w.classString(N)):new x(P,N,I,M).promise()}function j(P){this.accum=P,this.array._gotAccum(P);var N=p(this.value,this.array._promise);return N instanceof u?(this.array._currentCancellable=N,N._then(E,void 0,void 0,this,void 0)):E.call(this,N)}function E(P){var N,I=this.array,M=I._promise,D=b(I._fn);M._pushContext(),(N=I._eachValues!==void 0?D.call(M._boundValue(),P,this.index,this.length):D.call(M._boundValue(),this.accum,P,this.index,this.length))instanceof u&&(I._currentCancellable=N);var z=M._popContext();return g.checkForgottenReturns(N,z,I._eachValues!==void 0?"Promise.each":"Promise.reduce",M),N}w.inherits(x,f),x.prototype._gotAccum=function(P){this._eachValues!==void 0&&this._eachValues!==null&&P!==v&&this._eachValues.push(P)},x.prototype._eachComplete=function(P){return this._eachValues!==null&&this._eachValues.push(P),this._eachValues},x.prototype._init=function(){},x.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},x.prototype.shouldCopyValues=function(){return!1},x.prototype._resolve=function(P){this._promise._resolveCallback(P),this._values=null},x.prototype._resultCancelled=function(P){if(P===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},x.prototype._iterate=function(P){var N,I;this._values=P;var M=P.length;if(this._initialValue!==void 0?(N=this._initialValue,I=0):(N=u.resolve(P[0]),I=1),this._currentCancellable=N,!N.isRejected())for(;I<M;++I){var D={accum:null,value:P[I],index:I,length:M,array:this};N=N._then(j,void 0,void 0,D,void 0)}this._eachValues!==void 0&&(N=N._then(this._eachComplete,void 0,void 0,this,void 0)),N._then(_,_,void 0,N,this)},u.prototype.reduce=function(P,N){return S(this,P,N,null)},u.reduce=function(P,N,I,M){return S(P,N,I,M)}}},{"./util":36}],29:[function(a,s,l){var u,f=a("./util"),d=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,v=r.nextTick;u=f.isRecentNode?function(y){p.call(i,y)}:function(y){v.call(r,y)}}else if(typeof d=="function"&&typeof d.resolve=="function"){var g=d.resolve();u=function(y){g.then(y)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var y=document.createElement("div"),w={attributes:!0},b=!1,x=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),b=!1}).observe(x,w),function(_){var S=new MutationObserver(function(){S.disconnect(),_()});S.observe(y,w),b||(b=!0,x.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,l){s.exports=function(u,f,d){var p=u.PromiseInspection;function v(g){this.constructor$(g)}a("./util").inherits(v,f),v.prototype._promiseResolved=function(g,y){return this._values[g]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseFulfilled=function(g,y){var w=new p;return w._bitField=33554432,w._settledValueField=g,this._promiseResolved(y,w)},v.prototype._promiseRejected=function(g,y){var w=new p;return w._bitField=16777216,w._settledValueField=g,this._promiseResolved(y,w)},u.settle=function(g){return d.deprecated(".settle()",".reflect()"),new v(g).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),v=a("./errors").RangeError,g=a("./errors").AggregateError,y=p.isArray,w={};function b(_){this.constructor$(_),this._howMany=0,this._unwrap=!1,this._initialized=!1}function x(_,S){if((0|S)!==S||S<0)return d(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var j=new b(_),E=j.promise();return j.setHowMany(S),j.init(),E}p.inherits(b,f),b.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var _=y(this._values);!this._isResolved()&&_&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},b.prototype.init=function(){this._initialized=!0,this._init()},b.prototype.setUnwrap=function(){this._unwrap=!0},b.prototype.howMany=function(){return this._howMany},b.prototype.setHowMany=function(_){this._howMany=_},b.prototype._promiseFulfilled=function(_){return this._addFulfilled(_),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},b.prototype._promiseRejected=function(_){return this._addRejected(_),this._checkOutcome()},b.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},b.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var _=new g,S=this.length();S<this._values.length;++S)this._values[S]!==w&&_.push(this._values[S]);return _.length>0?this._reject(_):this._cancel(),!0}return!1},b.prototype._fulfilled=function(){return this._totalResolved},b.prototype._rejected=function(){return this._values.length-this.length()},b.prototype._addRejected=function(_){this._values.push(_)},b.prototype._addFulfilled=function(_){this._values[this._totalResolved++]=_},b.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},b.prototype._getRangeError=function(_){var S="Input array must contain at least "+this._howMany+" items but contains only "+_+" items";return new v(S)},b.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(_,S){return x(_,S)},u.prototype.some=function(_){return x(this,_)},u._SomePromiseArray=b}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(u){function f(b){b!==void 0?(b=b._target(),this._bitField=b._bitField,this._settledValueField=b._isFateSealed()?b._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var d=f.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()},p=f.prototype.error=f.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()},v=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},g=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=f.prototype.isPending=function(){return(50397184&this._bitField)==0},w=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.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 y.call(this._target())},u.prototype.isRejected=function(){return g.call(this._target())},u.prototype.isFulfilled=function(){return v.call(this._target())},u.prototype.isResolved=function(){return w.call(this._target())},u.prototype.value=function(){return d.call(this._target())},u.prototype.reason=function(){var b=this._target();return b._unsetRejectionIsUnhandled(),p.call(b)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(u,f){var d=a("./util"),p=d.errorObj,v=d.isObject,g={}.hasOwnProperty;return function(y,w){if(v(y)){if(y instanceof u)return y;var b=function(_){try{return function(S){return S.then}(_)}catch(S){return p.e=S,p}}(y);if(b===p){w&&w._pushContext();var x=u.reject(b.e);return w&&w._popContext(),x}if(typeof b=="function")return function(_){try{return g.call(_,"_promise0")}catch{return!1}}(y)?(x=new u(f),y._then(x._fulfill,x._reject,void 0,x,null),x):function(_,S,j){var E=new u(f),P=E;j&&j._pushContext(),E._captureStackTrace(),j&&j._popContext();var N=!0,I=d.tryCatch(S).call(_,function(M){E&&(E._resolveCallback(M),E=null)},function(M){E&&(E._rejectCallback(M,N,!0),E=null)});return N=!1,E&&I===p&&(E._rejectCallback(I.e,!0,!0),E=null),P}(y,b,w)}return y}}},{"./util":36}],34:[function(a,s,l){s.exports=function(u,f,d){var p=a("./util"),v=u.TimeoutError;function g(_){this.handle=_}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(_){return w(+this).thenReturn(_)},w=u.delay=function(_,S){var j,E;return S!==void 0?(j=u.resolve(S)._then(y,null,null,_,void 0),d.cancellation()&&S instanceof u&&j._setOnCancel(S)):(j=new u(f),E=setTimeout(function(){j._fulfill()},+_),d.cancellation()&&j._setOnCancel(new g(E)),j._captureStackTrace()),j._setAsyncGuaranteed(),j};function b(_){return clearTimeout(this.handle),_}function x(_){throw clearTimeout(this.handle),_}u.prototype.delay=function(_){return w(_,this)},u.prototype.timeout=function(_,S){var j,E;_=+_;var P=new g(setTimeout(function(){j.isPending()&&function(N,I,M){var D;D=typeof I!="string"?I instanceof Error?I:new v("operation timed out"):new v(I),p.markAsOriginatingFromRejection(D),N._attachExtraTrace(D),N._reject(D),M!=null&&M.cancel()}(j,S,E)},_));return d.cancellation()?(E=this.then(),(j=E._then(b,x,void 0,P,void 0))._setOnCancel(P)):j=this._then(b,x,void 0,P,void 0),j}}},{"./util":36}],35:[function(a,s,l){s.exports=function(u,f,d,p,v,g){var y=a("./util"),w=a("./errors").TypeError,b=a("./util").inherits,x=y.errorObj,_=y.tryCatch,S={};function j(D){setTimeout(function(){throw D},0)}function E(D,z){var q=0,W=D.length,X=new u(v);return function J(){if(q>=W)return X._fulfill();var te=function(K){var B=d(K);return B!==K&&typeof K._isDisposable=="function"&&typeof K._getDisposer=="function"&&K._isDisposable()&&B._setDisposable(K._getDisposer()),B}(D[q++]);if(te instanceof u&&te._isDisposable()){try{te=d(te._getDisposer().tryDispose(z),D.promise)}catch(K){return j(K)}if(te instanceof u)return te._then(J,j,null,null,null)}J()}(),X}function P(D,z,q){this._data=D,this._promise=z,this._context=q}function N(D,z,q){this.constructor$(D,z,q)}function I(D){return P.isDisposer(D)?(this.resources[this.index]._setDisposable(D),D.promise()):D}function M(D){this.length=D,this.promise=null,this[D-1]=null}P.prototype.data=function(){return this._data},P.prototype.promise=function(){return this._promise},P.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():S},P.prototype.tryDispose=function(D){var z=this.resource(),q=this._context;q!==void 0&&q._pushContext();var W=z!==S?this.doDispose(z,D):null;return q!==void 0&&q._popContext(),this._promise._unsetDisposable(),this._data=null,W},P.isDisposer=function(D){return D!=null&&typeof D.resource=="function"&&typeof D.tryDispose=="function"},b(N,P),N.prototype.doDispose=function(D,z){return this.data().call(D,D,z)},M.prototype._resultCancelled=function(){for(var D=this.length,z=0;z<D;++z){var q=this[z];q instanceof u&&q.cancel()}},u.using=function(){var D=arguments.length;if(D<2)return f("you must pass at least 2 arguments to Promise.using");var z,q=arguments[D-1];if(typeof q!="function")return f("expecting a function but got "+y.classString(q));var W=!0;D===2&&Array.isArray(arguments[0])?(D=(z=arguments[0]).length,W=!1):(z=arguments,D--);for(var X=new M(D),J=0;J<D;++J){var te=z[J];if(P.isDisposer(te)){var K=te;(te=te.promise())._setDisposable(K)}else{var B=d(te);B instanceof u&&(te=B._then(I,null,null,{resources:X,index:J},void 0))}X[J]=te}var F=new Array(X.length);for(J=0;J<F.length;++J)F[J]=u.resolve(X[J]).reflect();var H=u.all(F).then(function(Y){for(var ee=0;ee<Y.length;++ee){var ae=Y[ee];if(ae.isRejected())return x.e=ae.error(),x;if(!ae.isFulfilled())return void H.cancel();Y[ee]=ae.value()}ne._pushContext(),q=_(q);var oe=W?q.apply(void 0,Y):q(Y),fe=ne._popContext();return g.checkForgottenReturns(oe,fe,"Promise.using",ne),oe}),ne=H.lastly(function(){var Y=new u.PromiseInspection(H);return E(X,Y)});return X.promise=ne,ne._setOnCancel(X),ne},u.prototype._setDisposable=function(D){this._bitField=131072|this._bitField,this._disposer=D},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(D){if(typeof D=="function")return new N(D,this,p());throw new w}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var u,f=a("./es5"),d=typeof navigator>"u",p={e:{}},v=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function g(){try{var W=u;return u=null,W.apply(this,arguments)}catch(X){return p.e=X,p}}function y(W){return W==null||W===!0||W===!1||typeof W=="string"||typeof W=="number"}function w(W,X,J){if(y(W))return W;var te={value:J,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(W,X,te),W}var b=function(){var W=[Array.prototype,Object.prototype,Function.prototype],X=function(K){for(var B=0;B<W.length;++B)if(W[B]===K)return!0;return!1};if(f.isES5){var J=Object.getOwnPropertyNames;return function(K){for(var B=[],F=Object.create(null);K!=null&&!X(K);){var H;try{H=J(K)}catch{return B}for(var ne=0;ne<H.length;++ne){var Y=H[ne];if(!F[Y]){F[Y]=!0;var ee=Object.getOwnPropertyDescriptor(K,Y);ee!=null&&ee.get==null&&ee.set==null&&B.push(Y)}}K=f.getPrototypeOf(K)}return B}}var te={}.hasOwnProperty;return function(K){if(X(K))return[];var B=[];e:for(var F in K)if(te.call(K,F))B.push(F);else{for(var H=0;H<W.length;++H)if(te.call(W[H],F))continue e;B.push(F)}return B}}(),x=/this\s*\.\s*\S+\s*=/,_=/^[a-z$_][a-z$_0-9]*$/i;function S(W){try{return W+""}catch{return"[no string representation]"}}function j(W){return W instanceof Error||W!==null&&typeof W=="object"&&typeof W.message=="string"&&typeof W.name=="string"}function E(W){return j(W)&&f.propertyIsWritable(W,"stack")}var P="stack"in new Error?function(W){return E(W)?W:new Error(S(W))}:function(W){if(E(W))return W;try{throw new Error(S(W))}catch(X){return X}};function N(W){return{}.toString.call(W)}var I=function(W){return f.isArray(W)?W:null};if(typeof Symbol<"u"&&Symbol.iterator){var M=typeof Array.from=="function"?function(W){return Array.from(W)}:function(W){for(var X,J=[],te=W[Symbol.iterator]();!(X=te.next()).done;)J.push(X.value);return J};I=function(W){return f.isArray(W)?W:W!=null&&typeof W[Symbol.iterator]=="function"?M(W):null}}var D=r!==void 0&&N(r).toLowerCase()==="[object process]",z=r!==void 0&&r.env!==void 0,q={isClass:function(W){try{if(typeof W=="function"){var X=f.names(W.prototype),J=f.isES5&&X.length>1,te=X.length>0&&!(X.length===1&&X[0]==="constructor"),K=x.test(W+"")&&f.names(W).length>0;if(J||te||K)return!0}return!1}catch{return!1}},isIdentifier:function(W){return _.test(W)},inheritedDataKeys:b,getDataPropertyOrDefault:function(W,X,J){if(!f.isES5)return{}.hasOwnProperty.call(W,X)?W[X]:void 0;var te=Object.getOwnPropertyDescriptor(W,X);return te!=null?te.get==null&&te.set==null?te.value:J:void 0},thrower:function(W){throw W},isArray:f.isArray,asArray:I,notEnumerableProp:w,isPrimitive:y,isObject:function(W){return typeof W=="function"||typeof W=="object"&&W!==null},isError:j,canEvaluate:d,errorObj:p,tryCatch:function(W){return u=W,g},inherits:function(W,X){var J={}.hasOwnProperty;function te(){for(var K in this.constructor=W,this.constructor$=X,X.prototype)J.call(X.prototype,K)&&K.charAt(K.length-1)!=="$"&&(this[K+"$"]=X.prototype[K])}return te.prototype=X.prototype,W.prototype=new te,W.prototype},withAppended:function(W,X){var J,te=W.length,K=new Array(te+1);for(J=0;J<te;++J)K[J]=W[J];return K[J]=X,K},maybeWrapAsError:function(W){return y(W)?new Error(S(W)):W},toFastProperties:function(W){return W},filledRange:function(W,X,J){for(var te=new Array(W),K=0;K<W;++K)te[K]=X+K+J;return te},toString:S,canAttachTrace:E,ensureErrorObject:P,originatesFromRejection:function(W){return W!=null&&(W instanceof Error.__BluebirdErrorTypes__.OperationalError||W.isOperational===!0)},markAsOriginatingFromRejection:function(W){try{w(W,"isOperational",!0)}catch{}},classString:N,copyDescriptors:function(W,X,J){for(var te=f.names(W),K=0;K<te.length;++K){var B=te[K];if(J(B))try{f.defineProperty(X,B,f.getDescriptor(W,B))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:D,hasEnvVariables:z,env:function(W){return z?r.env[W]:void 0},global:v,getNativePromise:function(){if(typeof Promise=="function")try{var W=new Promise(function(){});if({}.toString.call(W)==="[object Promise]")return Promise}catch{}},domainBind:function(W,X){return W.bind(X)}};q.isRecentNode=q.isNode&&function(){var W=r.versions.node.split(".").map(Number);return W[0]===0&&W[1]>10||W[0]>0}(),q.isNode&&q.toFastProperties(r);try{throw new Error}catch(W){q.lastLineError=W}s.exports=q},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o<a;o++)if(r[o]==="\r"){if(r[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,a){var s=i(o,a);return r(s)?s:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=S;var a,s=n(37);S.ReadableState=_,n(12).EventEmitter;var l=function(F,H){return F.listeners(H).length},u=n(24),f=n(7).Buffer,d=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var v=n(41),g=void 0;g=v&&v.debuglog?v.debuglog("stream"):function(){};var y,w=n(42),b=n(25);p.inherits(S,u);var x=["error","close","destroy","pause","resume"];function _(F,H){a=a||n(1),F=F||{};var ne=H instanceof a;this.objectMode=!!F.objectMode,ne&&(this.objectMode=this.objectMode||!!F.readableObjectMode);var Y=F.highWaterMark,ee=F.readableHighWaterMark,ae=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:ne&&(ee||ee===0)?ee:ae,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(y||(y=n(26).StringDecoder),this.decoder=new y(F.encoding),this.encoding=F.encoding)}function S(F){if(a=a||n(1),!(this instanceof S))return new S(F);this._readableState=new _(F,this),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),u.call(this)}function j(F,H,ne,Y,ee){var ae,oe=F._readableState;return H===null?(oe.reading=!1,function(fe,C){if(!C.ended){if(C.decoder){var A=C.decoder.end();A&&A.length&&(C.buffer.push(A),C.length+=C.objectMode?1:A.length)}C.ended=!0,I(fe)}}(F,oe)):(ee||(ae=function(fe,C){var A;return function(U){return f.isBuffer(U)||U instanceof d}(C)||typeof C=="string"||C===void 0||fe.objectMode||(A=new TypeError("Invalid non-string/buffer chunk")),A}(oe,H)),ae?F.emit("error",ae):oe.objectMode||H&&H.length>0?(typeof H=="string"||oe.objectMode||Object.getPrototypeOf(H)===f.prototype||(H=function(fe){return f.from(fe)}(H)),Y?oe.endEmitted?F.emit("error",new Error("stream.unshift() after end event")):E(F,oe,H,!0):oe.ended?F.emit("error",new Error("stream.push() after EOF")):(oe.reading=!1,oe.decoder&&!ne?(H=oe.decoder.write(H),oe.objectMode||H.length!==0?E(F,oe,H,!1):D(F,oe)):E(F,oe,H,!1))):Y||(oe.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.length<fe.highWaterMark||fe.length===0)}(oe)}function E(F,H,ne,Y){H.flowing&&H.length===0&&!H.sync?(F.emit("data",ne),F.read(0)):(H.length+=H.objectMode?1:ne.length,Y?H.buffer.unshift(ne):H.buffer.push(ne),H.needReadable&&I(F)),D(F,H)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(F,H){this.push(null),H(F)},S.prototype.push=function(F,H){var ne,Y=this._readableState;return Y.objectMode?ne=!0:typeof F=="string"&&((H=H||Y.defaultEncoding)!==Y.encoding&&(F=f.from(F,H),H=""),ne=!0),j(this,F,H,!1,ne)},S.prototype.unshift=function(F){return j(this,F,null,!0,!1)},S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(F){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(F),this._readableState.encoding=F,this};var P=8388608;function N(F,H){return F<=0||H.length===0&&H.ended?0:H.objectMode?1:F!=F?H.flowing&&H.length?H.buffer.head.data.length:H.length:(F>H.highWaterMark&&(H.highWaterMark=function(ne){return ne>=P?ne=P:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(F)),F<=H.length?F:H.ended?H.length:(H.needReadable=!0,0))}function I(F){var H=F._readableState;H.needReadable=!1,H.emittedReadable||(g("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(M,F):M(F))}function M(F){g("emit readable"),F.emit("readable"),X(F)}function D(F,H){H.readingMore||(H.readingMore=!0,o.nextTick(z,F,H))}function z(F,H){for(var ne=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(g("maybeReadMore read 0"),F.read(0),ne!==H.length);)ne=H.length;H.readingMore=!1}function q(F){g("readable nexttick read 0"),F.read(0)}function W(F,H){H.reading||(g("resume read 0"),F.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,F.emit("resume"),X(F),H.flowing&&!H.reading&&F.read(0)}function X(F){var H=F._readableState;for(g("flow",H.flowing);H.flowing&&F.read()!==null;);}function J(F,H){return H.length===0?null:(H.objectMode?ne=H.buffer.shift():!F||F>=H.length?(ne=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear()):ne=function(Y,ee,ae){var oe;return Y<ee.head.data.length?(oe=ee.head.data.slice(0,Y),ee.head.data=ee.head.data.slice(Y)):oe=Y===ee.head.data.length?ee.shift():ae?function(fe,C){var A=C.head,U=1,Q=A.data;for(fe-=Q.length;A=A.next;){var Z=A.data,ie=fe>Z.length?Z.length:fe;if(ie===Z.length?Q+=Z:Q+=Z.slice(0,fe),(fe-=ie)==0){ie===Z.length?(++U,A.next?C.head=A.next:C.head=C.tail=null):(C.head=A,A.data=Z.slice(ie));break}++U}return C.length-=U,Q}(Y,ee):function(fe,C){var A=f.allocUnsafe(fe),U=C.head,Q=1;for(U.data.copy(A),fe-=U.data.length;U=U.next;){var Z=U.data,ie=fe>Z.length?Z.length:fe;if(Z.copy(A,A.length-fe,0,ie),(fe-=ie)==0){ie===Z.length?(++Q,U.next?C.head=U.next:C.head=C.tail=null):(C.head=U,U.data=Z.slice(ie));break}++Q}return C.length-=Q,A}(Y,ee),oe}(F,H.buffer,H.decoder),ne);var ne}function te(F){var H=F._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,o.nextTick(K,H,F))}function K(F,H){F.endEmitted||F.length!==0||(F.endEmitted=!0,H.readable=!1,H.emit("end"))}function B(F,H){for(var ne=0,Y=F.length;ne<Y;ne++)if(F[ne]===H)return ne;return-1}S.prototype.read=function(F){g("read",F),F=parseInt(F,10);var H=this._readableState,ne=F;if(F!==0&&(H.emittedReadable=!1),F===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return g("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?te(this):I(this),null;if((F=N(F,H))===0&&H.ended)return H.length===0&&te(this),null;var Y,ee=H.needReadable;return g("need readable",ee),(H.length===0||H.length-F<H.highWaterMark)&&g("length less than watermark",ee=!0),H.ended||H.reading?g("reading or ended",ee=!1):ee&&(g("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(F=N(ne,H))),(Y=F>0?J(F,H):null)===null?(H.needReadable=!0,F=0):H.length-=F,H.length===0&&(H.ended||(H.needReadable=!0),ne!==F&&H.ended&&te(this)),Y!==null&&this.emit("data",Y),Y},S.prototype._read=function(F){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(F,H){var ne=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=F;break;case 1:Y.pipes=[Y.pipes,F];break;default:Y.pipes.push(F)}Y.pipesCount+=1,g("pipe count=%d opts=%j",Y.pipesCount,H);var ee=H&&H.end===!1||F===i.stdout||F===i.stderr?ie:ae;function ae(){g("onend"),F.end()}Y.endEmitted?o.nextTick(ee):ne.once("end",ee),F.on("unpipe",function he(Se,se){g("onunpipe"),Se===ne&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,g("cleanup"),F.removeListener("close",Q),F.removeListener("finish",Z),F.removeListener("drain",oe),F.removeListener("error",U),F.removeListener("unpipe",he),ne.removeListener("end",ae),ne.removeListener("end",ie),ne.removeListener("data",A),fe=!0,!Y.awaitDrain||F._writableState&&!F._writableState.needDrain||oe())});var oe=function(he){return function(){var Se=he._readableState;g("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&l(he,"data")&&(Se.flowing=!0,X(he))}}(ne);F.on("drain",oe);var fe=!1,C=!1;function A(he){g("ondata"),C=!1,F.write(he)!==!1||C||((Y.pipesCount===1&&Y.pipes===F||Y.pipesCount>1&&B(Y.pipes,F)!==-1)&&!fe&&(g("false write response, pause",ne._readableState.awaitDrain),ne._readableState.awaitDrain++,C=!0),ne.pause())}function U(he){g("onerror",he),ie(),F.removeListener("error",U),l(F,"error")===0&&F.emit("error",he)}function Q(){F.removeListener("finish",Z),ie()}function Z(){g("onfinish"),F.removeListener("close",Q),ie()}function ie(){g("unpipe"),ne.unpipe(F)}return ne.on("data",A),function(he,Se,se){if(typeof he.prependListener=="function")return he.prependListener(Se,se);he._events&&he._events[Se]?s(he._events[Se])?he._events[Se].unshift(se):he._events[Se]=[se,he._events[Se]]:he.on(Se,se)}(F,"error",U),F.once("close",Q),F.once("finish",Z),F.emit("pipe",ne),Y.flowing||(g("pipe resume"),ne.resume()),F},S.prototype.unpipe=function(F){var H=this._readableState,ne={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return F&&F!==H.pipes?this:(F||(F=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,F&&F.emit("unpipe",this,ne),this);if(!F){var Y=H.pipes,ee=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var ae=0;ae<ee;ae++)Y[ae].emit("unpipe",this,ne);return this}var oe=B(H.pipes,F);return oe===-1?this:(H.pipes.splice(oe,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),F.emit("unpipe",this,ne),this)},S.prototype.on=function(F,H){var ne=u.prototype.on.call(this,F,H);if(F==="data")this._readableState.flowing!==!1&&this.resume();else if(F==="readable"){var Y=this._readableState;Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&I(this):o.nextTick(q,this))}return ne},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var F=this._readableState;return F.flowing||(g("resume"),F.flowing=!0,function(H,ne){ne.resumeScheduled||(ne.resumeScheduled=!0,o.nextTick(W,H,ne))}(this,F)),this},S.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},S.prototype.wrap=function(F){var H=this,ne=this._readableState,Y=!1;for(var ee in F.on("end",function(){if(g("wrapped end"),ne.decoder&&!ne.ended){var oe=ne.decoder.end();oe&&oe.length&&H.push(oe)}H.push(null)}),F.on("data",function(oe){g("wrapped data"),ne.decoder&&(oe=ne.decoder.write(oe)),(!ne.objectMode||oe!=null)&&(ne.objectMode||oe&&oe.length)&&(H.push(oe)||(Y=!0,F.pause()))}),F)this[ee]===void 0&&typeof F[ee]=="function"&&(this[ee]=function(oe){return function(){return F[oe].apply(F,arguments)}}(ee));for(var ae=0;ae<x.length;ae++)F.on(x[ae],this.emit.bind(this,x[ae]));return this._read=function(oe){g("wrapped _read",oe),Y&&(Y=!1,F.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=J}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!a&&f?(r.nextTick(i,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(f)}),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(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(g){var y;switch(this.encoding=function(w){var b=function(x){if(!x)return"utf8";for(var _;;)switch(x){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 x;default:if(_)return;x=(""+x).toLowerCase(),_=!0}}(w);if(typeof b!="string"&&(r.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return b||w}(g),this.encoding){case"utf16le":this.text=l,this.end=u,y=4;break;case"utf8":this.fillLast=s,y=4;break;case"base64":this.text=f,this.end=d,y=3;break;default:return this.write=p,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function s(g){var y=this.lastTotal-this.lastNeed,w=function(b,x,_){if((192&x[0])!=128)return b.lastNeed=0,"<22>";if(b.lastNeed>1&&x.length>1){if((192&x[1])!=128)return b.lastNeed=1,"<22>";if(b.lastNeed>2&&x.length>2&&(192&x[2])!=128)return b.lastNeed=2,"<22>"}}(this,g);return w!==void 0?w:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function l(g,y){if((g.length-y)%2==0){var w=g.toString("utf16le",y);if(w){var b=w.charCodeAt(w.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function u(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,w)}return y}function f(g,y){var w=(g.length-y)%3;return w===0?g.toString("base64",y):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",y,g.length-w))}function d(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(g){return g.toString(this.encoding)}function v(g){return g&&g.length?this.write(g):""}t.StringDecoder=o,o.prototype.write=function(g){if(g.length===0)return"";var y,w;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<g.length?y?y+this.text(g,w):this.text(g,w):y||""},o.prototype.end=function(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+"<22>":y},o.prototype.text=function(g,y){var w=function(x,_,S){var j=_.length-1;if(j<S)return 0;var E=a(_[j]);return E>=0?(E>0&&(x.lastNeed=E-1),E):--j<S||E===-2?0:(E=a(_[j]))>=0?(E>0&&(x.lastNeed=E-2),E):--j<S||E===-2?0:(E=a(_[j]))>=0?(E>0&&(E===2?E=0:x.lastNeed=E-3),E):0}(this,g,y);if(!this.lastNeed)return g.toString("utf8",y);this.lastTotal=w;var b=g.length-(w-this.lastNeed);return g.copy(this.lastChar,0,b),g.toString("utf8",y,b)},o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:(function(u,f){var d=this._transformState;d.transforming=!1;var p=d.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,f!=null&&this.push(f),p(u);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(u,f){s(l,u,f)}):s(this,null,null)}function s(l,u,f){if(u)return l.emit("error",u);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,u){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,u)},o.prototype._transform=function(l,u,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,u,f){var d=this._transformState;if(d.writecb=f,d.writechunk=l,d.writeencoding=u,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(l){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},o.prototype._destroy=function(l,u){var f=this;r.prototype._destroy.call(this,l,function(d){u(d),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,u){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(u?" near: "+u:""))||this;return f.err=s,f.line=l,f.extra=u,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var w in y)y.hasOwnProperty(w)&&(g[w]=y[w])};return function(g,y){function w(){this.constructor=g}v(g,y),g.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),o=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),u=o(n(15)),f=n(52),d=n(105),p=function(v){function g(y,w){w===void 0&&(w={});var b=v.call(this,w)||this;return b.options=w,b.params=s.mergeParams(y),b.runtime=l.initParseRuntime(b),b.result=new d.Result(b),b.processor=new f.ProcessorLocal(b),b.once("error",function(x){r(function(){b.result.processError(x),b.emit("done",x)})}),b.once("done",function(){b.processor.destroy()}),b}return i(g,v),g.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},g.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},g.prototype.subscribe=function(y,w,b){return this.parseRuntime.subscribe={onNext:y,onError:w,onCompleted:b},this},g.prototype.fromFile=function(y,w){var b=this,x=n(!function(){var _=new Error("Cannot find module 'fs'");throw _.code="MODULE_NOT_FOUND",_}());return x.exists(y,function(_){_?x.createReadStream(y,w).pipe(b):b.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},g.prototype.fromStream=function(y){return y.pipe(this),this},g.prototype.fromString=function(y){y.toString();var w=new a.Readable,b=0;return w._read=function(x){if(b>=y.length)this.push(null);else{var _=y.substr(b,x);this.push(_),b+=x}},this.fromStream(w)},g.prototype.then=function(y,w){var b=this;return new u.default(function(x,_){b.parseRuntime.then={onfulfilled:function(S){x(y?y(S):S)},onrejected:function(S){w?x(w(S)):_(S)}}})},Object.defineProperty(g.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),g.prototype._transform=function(y,w,b){var x=this;this.processor.process(y).then(function(_){if(_.length>0)return x.runtime.started=!0,x.result.processResult(_)}).then(function(){x.emit("drained"),b()},function(_){x.runtime.hasError=!0,x.runtime.error=_,x.emit("error",_),b()})},g.prototype._flush=function(y){var w=this;this.processor.flush().then(function(b){if(b.length>0)return w.result.processResult(b)}).then(function(){w.processEnd(y)},function(b){w.emit("error",b),y()})},g.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(g.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),g}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,u={},f=!1,d=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(y){i.nextTick(function(){g(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,w=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=w,y}}()?function(){var y="setImmediate$"+Math.random()+"$",w=function(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(y)===0&&g(+b.data.slice(y.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(b){o.postMessage(y+b,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(w){g(w.data)},s=function(w){y.port2.postMessage(w)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var y=d.documentElement;s=function(w){var b=d.createElement("script");b.onreadystatechange=function(){g(w),b.onreadystatechange=null,y.removeChild(b),b=null},y.appendChild(b)}}():s=function(y){setTimeout(g,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var w=new Array(arguments.length-1),b=0;b<w.length;b++)w[b]=arguments[b+1];var x={callback:y,args:w};return u[l]=x,s(l),l++},p.clearImmediate=v}function v(y){delete u[y]}function g(y){if(f)setTimeout(g,0,y);else{var w=u[y];if(w){f=!0;try{(function(b){var x=b.callback,_=b.args;switch(_.length){case 0:x();break;case 1:x(_[0]);break;case 2:x(_[0],_[1]);break;case 3:x(_[0],_[1],_[2]);break;default:x.apply(a,_)}})(w)}finally{v(y),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function l(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",d),s.on("close",p));var f=!1;function d(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function v(y){if(g(),r.listenerCount(this,"error")===0)throw y}function g(){s.removeListener("data",l),o.removeListener("drain",u),s.removeListener("end",d),s.removeListener("close",p),s.removeListener("error",v),o.removeListener("error",v),s.removeListener("end",g),s.removeListener("close",g),o.removeListener("close",g)}return s.on("error",v),o.on("error",v),s.on("end",g),s.on("close",g),o.on("close",g),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var v=u(p),g=v[0],y=v[1];return 3*(g+y)/4-y},t.toByteArray=function(p){for(var v,g=u(p),y=g[0],w=g[1],b=new o(3*(y+w)/4-w),x=0,_=w>0?y-4:y,S=0;S<_;S+=4)v=i[p.charCodeAt(S)]<<18|i[p.charCodeAt(S+1)]<<12|i[p.charCodeAt(S+2)]<<6|i[p.charCodeAt(S+3)],b[x++]=v>>16&255,b[x++]=v>>8&255,b[x++]=255&v;return w===2&&(v=i[p.charCodeAt(S)]<<2|i[p.charCodeAt(S+1)]>>4,b[x++]=255&v),w===1&&(v=i[p.charCodeAt(S)]<<10|i[p.charCodeAt(S+1)]<<4|i[p.charCodeAt(S+2)]>>2,b[x++]=v>>8&255,b[x++]=255&v),b},t.fromByteArray=function(p){for(var v,g=p.length,y=g%3,w=[],b=0,x=g-y;b<x;b+=16383)w.push(d(p,b,b+16383>x?x:b+16383));return y===1?(v=p[g-1],w.push(r[v>>2]+r[v<<4&63]+"==")):y===2&&(v=(p[g-2]<<8)+p[g-1],w.push(r[v>>10]+r[v>>4&63]+r[v<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");return g===-1&&(g=v),[g,g===v?0:4-g%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function d(p,v,g){for(var y,w=[],b=v;b<g;b+=3)y=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(255&p[b+2]),w.push(f(y));return w.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,a){var s,l,u=8*a-o-1,f=(1<<u)-1,d=f>>1,p=-7,v=i?a-1:0,g=i?-1:1,y=n[r+v];for(v+=g,s=y&(1<<-p)-1,y>>=-p,p+=u;p>0;s=256*s+n[r+v],v+=g,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+v],v+=g,p-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),s-=d}return(y?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,u,f,d=8*s-a-1,p=(1<<d)-1,v=p>>1,g=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:s-1,w=o?1:-1,b=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+v>=1?g/f:g*Math.pow(2,1-v))*f>=2&&(l++,f/=2),l+v>=p?(u=0,l=p):l+v>=1?(u=(r*f-1)*Math.pow(2,a),l+=v):(u=r*Math.pow(2,v-1)*Math.pow(2,a),l=0));a>=8;n[i+y]=255&u,y+=w,u/=256,a-=8);for(l=l<<a|u,d+=a;d>0;n[i+y]=255&l,y+=w,l/=256,d-=8);n[i+y-w]|=128*b}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,u=""+l.data;l=l.next;)u+=s+l.data;return u},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),u=this.head,f=0;u;)o(u.data,l,f),f+=u.data.length,u=u.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var _ in x)x.hasOwnProperty(_)&&(b[_]=x[_])};return function(b,x){function _(){this.constructor=b}w(b,x),b.prototype=x===null?Object.create(x):(_.prototype=x.prototype,new _)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),u=o(n(16)),f=n(57),d=n(28),p=n(58),v=o(n(59)),g=o(n(29)),y=function(w){function b(){var x=w!==null&&w.apply(this,arguments)||this;return x.rowSplit=new p.RowSplit(x.converter),x.eolEmitted=!1,x._needEmitEol=void 0,x.headEmitted=!1,x._needEmitHead=void 0,x}return i(b,w),b.prototype.flush=function(){var x=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var _=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(_,!0).then(function(S){return x.runtime.csvLineBuffer&&x.runtime.csvLineBuffer.length>0?s.default.reject(g.default.unclosed_quote(x.runtime.parsedLineNumber,x.runtime.csvLineBuffer.toString())):s.default.resolve(S)})}return s.default.resolve([])},b.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(b.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(b.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),b.prototype.process=function(x,_){var S,j=this;return _===void 0&&(_=!1),S=_?x.toString():l.prepareData(x,this.converter.parseRuntime),s.default.resolve().then(function(){return j.runtime.preRawDataHook?j.runtime.preRawDataHook(S):S}).then(function(E){return E&&E.length>0?j.processCSV(E,_):s.default.resolve([])})},b.prototype.processCSV=function(x,_){var S=this,j=this.params,E=this.runtime;E.eol||u.default(x,E),this.needEmitEol&&!this.eolEmitted&&E.eol&&(this.converter.emit("eol",E.eol),this.eolEmitted=!0),j.ignoreEmpty&&!E.started&&(x=d.trimLeft(x));var P=f.stringToLines(x,E);return _?(P.lines.push(P.partial),P.partial=""):this.prependLeftBuf(d.bufFromString(P.partial)),P.lines.length>0?(E.preFileLineHook?this.runPreLineHook(P.lines):s.default.resolve(P.lines)).then(function(N){return E.started||S.runtime.headers?S.processCSVBody(N):S.processDataWithHead(N)}):s.default.resolve([])},b.prototype.processDataWithHead=function(x){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var _="",S=[];x.length;){var j=_+x.shift(),E=this.rowSplit.parse(j);if(E.closed){S=E.cells,_="";break}_=j+u.default(j,this.runtime)}if(this.prependLeftBuf(d.bufFromString(_)),S.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=S}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(x)},b.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var x=this.runtime.headers,_=0;_<x.length;_++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(x[_])){if(!this.params.includeColumns||!this.params.includeColumns.test(x[_]))continue;this.runtime.selectedColumns.push(_)}else this.runtime.selectedColumns.push(_);else this.params.includeColumns?this.params.includeColumns.test(x[_])&&this.runtime.selectedColumns.push(_):this.runtime.selectedColumns.push(_);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},b.prototype.processCSVBody=function(x){if(this.params.output==="line")return x;var _=this.rowSplit.parseMultiLines(x);return this.prependLeftBuf(d.bufFromString(_.partial)),this.params.output==="csv"?_.rowsCells:v.default(_.rowsCells,this.converter)},b.prototype.prependLeftBuf=function(x){x&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([x,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=x)},b.prototype.runPreLineHook=function(x){var _=this;return new s.default(function(S,j){(function E(P,N,I,M){if(I>=P.length)M();else if(N.preFileLineHook){var D=P[I],z=N.preFileLineHook(D,N.parsedLineNumber+I);if(I++,z&&z.then)z.then(function(q){P[I-1]=q,E(P,N,I,M)});else{for(P[I-1]=z;I<P.length;)P[I]=N.preFileLineHook(P[I],N.parsedLineNumber+I),I++;M()}}else M()})(x,_.runtime,0,function(E){E?j(E):S(x)})})},b}(a.Processor);t.ProcessorLocal=y}).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(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var l=function(f,d){return d.csvLineBuffer&&d.csvLineBuffer.length>0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var u=function(f,d){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(d.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,a){var s=i.default(o,a),l=o.split(s);return{lines:l,partial:l.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function l(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(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var f=this.quote,d=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 p=this.conv.parseRuntime.delimiter,v=u.split(p);if(f==="off"){if(d)for(var g=0;g<v.length;g++)v[g]=v[g].trim();return{cells:v,closed:!0}}return this.toCSVRow(v,d,f,p)},l.prototype.toCSVRow=function(u,f,d,p){for(var v=[],g=!1,y="",w=0,b=u.length;w<b;w++){var x=u[w];!g&&f&&(x=o.trimLeft(x));var _=x.length;if(g)this.isQuoteClose(x)?(g=!1,y+=p+(x=x.substr(0,_-1)),y=this.escapeQuote(y),f&&(y=o.trimRight(y)),v.push(y),y=""):y+=p+x;else{if(_===2&&x===this.quote+this.quote){v.push("");continue}if(this.isQuoteOpen(x)){if(x=x.substr(1),this.isQuoteClose(x)){x=x.substring(0,x.lastIndexOf(d)),x=this.escapeQuote(x),v.push(x);continue}if(x.indexOf(d)!==-1){for(var S=0,j="",E=0,P=x;E<P.length;E++){var N=P[E];N===d&&j!==this.escape?(S++,j=""):j=N}if(S%2==1){f&&(x=o.trimRight(x)),v.push(d+x);continue}g=!0,y+=x;continue}g=!0,y+=x;continue}f&&(x=o.trimRight(x)),v.push(x)}}return{cells:v,closed:!g}},l.prototype.getDelimiter=function(u){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var d=0,p=",";return f.forEach(function(v){var g=u.split(v).length;g>d&&(p=v,d=g)}),p},l.prototype.isQuoteOpen=function(u){var f=this.quote,d=this.escape;return u[0]===f&&(u[1]!==f||u[1]===d&&(u[2]===f||u.length===2))},l.prototype.isQuoteClose=function(u){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var p=0,v=u.length-1;u[v]===f||u[v]===d;)v--,p++;return p%2!=0},l.prototype.escapeQuote=function(u){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var d=this.cachedRegExp[f];return u.replace(d,this.quote)},l.prototype.parseMultiLines=function(u){for(var f=[],d="";u.length;){var p=d+u.shift(),v=this.parse(p);v.cells.length===0&&this.conv.parseParam.ignoreEmpty||(v.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(v.cells,this.conv.parseRuntime.selectedColumns)):f.push(v.cells),d=""):d=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:d}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(b,x,_){if(x.parseParam.checkColumn&&x.parseRuntime.headers&&b.length!==x.parseRuntime.headers.length)throw i.default.column_mismatched(x.parseRuntime.parsedLineNumber+_);return function(S,j,E){for(var P=!1,N={},I=0,M=S.length;I<M;I++){var D=S[I];if(!E.parseParam.ignoreEmpty||D!==""){P=!0;var z=j[I];z&&z!==""||(z=j[I]="field"+(I+1));var q=u(z,I,E);if(q){var W=q(D,z,N,S,I);W!==void 0&&f(N,z,W,E,I)}else E.parseParam.checkType&&(D=v(D,z,I,E)(D)),D!==void 0&&f(N,z,D,E,I)}}return P?N:null}(b,x.parseRuntime.headers||[],x)||null}t.default=function(b,x){for(var _=[],S=0,j=b.length;S<j;S++){var E=s(b[S],x,S);E&&_.push(E)}return _};var l={string:y,number:g,omit:function(){}};function u(b,x,_){if(_.parseRuntime.columnConv[x]!==void 0)return _.parseRuntime.columnConv[x];var S=_.parseParam.colParser[b];if(S===void 0)return _.parseRuntime.columnConv[x]=null;if(typeof S=="object"&&(S=S.cellParser||"string"),typeof S=="string"){S=S.trim().toLowerCase();var j=l[S];return _.parseRuntime.columnConv[x]=j||null}return _.parseRuntime.columnConv[x]=typeof S=="function"?S:null}function f(b,x,_,S,j){if(!S.parseRuntime.columnValueSetter[j])if(S.parseParam.flatKeys)S.parseRuntime.columnValueSetter[j]=d;else if(x.indexOf(".")>-1){for(var E=x.split("."),P=!0;E.length>0;)if(E.shift().length===0){P=!1;break}!P||S.parseParam.colParser[x]&&S.parseParam.colParser[x].flat?S.parseRuntime.columnValueSetter[j]=d:S.parseRuntime.columnValueSetter[j]=p}else S.parseRuntime.columnValueSetter[j]=d;S.parseParam.nullObject===!0&&_==="null"&&(_=null),S.parseRuntime.columnValueSetter[j](b,x,_)}function d(b,x,_){b[x]=_}function p(b,x,_){o.default(b,x,_)}function v(b,x,_,S){return S.parseRuntime.headerType[_]?S.parseRuntime.headerType[_]:x.indexOf("number#!")>-1?S.parseRuntime.headerType[_]=g:x.indexOf("string#!")>-1?S.parseRuntime.headerType[_]=y:S.parseParam.checkType?S.parseRuntime.headerType[_]=w:S.parseRuntime.headerType[_]=y}function g(b){var x=parseFloat(b);return isNaN(x)?b:x}function y(b){return b.toString()}function w(b){var x=b.trim();return x===""?y(b):a.test(x)?g(b):x.length===5&&x.toLowerCase()==="false"||x.length===4&&x.toLowerCase()==="true"?function(_){var S=_.trim();return S.length!==5||S.toLowerCase()!=="false"}(b):x[0]==="{"&&x[x.length-1]==="}"||x[0]==="["&&x[x.length-1]==="]"?function(_){try{return JSON.parse(_)}catch{return _}}(b):y(b)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,u,f,d){if(!a(l))return l;for(var p=-1,v=(u=i(u,l)).length,g=v-1,y=l;y!=null&&++p<v;){var w=s(u[p]),b=f;if(p!=g){var x=y[w];(b=d?d(x,w,y):void 0)===void 0&&(b=a(x)?x:o(u[p+1])?[]:{})}r(y,w,b),y=y[w]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,l){var u=a[s];o.call(a,s)&&i(u,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,f=l.toString,d=u.hasOwnProperty,p=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(v){return!(!o(v)||i(v))&&(r(v)?p:s).test(a(v))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var u=o.call(l,s),f=l[s];try{l[s]=void 0;var d=!0}catch{}var p=a.call(l);return d&&(u?l[s]=f:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,l){if(r(s))return!1;var u=typeof s;return!(u!="number"&&u!="symbol"&&u!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s in Object(l)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,u,f,d){s.push(f?d.replace(i,"$1"):u||l)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var u=arguments,f=s?s.apply(this,u):u[0],d=l.cache;if(d.has(f))return d.get(f);var p=a.apply(this,u);return l.cache=d.set(f,p)||d,p};return l.cache=new(o.Cache||r),l}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var p=u[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var p=u[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(u){var f=-1,d=u==null?0:u.length;for(this.clear();++f<d;){var p=u[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function u(f){if(typeof f=="string")return f;if(o(f))return i(f,u)+"";if(a(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function l(u){this.converter=u,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(u){var f=this,d=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&d===0&&s(this.converter,"["+o.EOL),new i.default(function(p,v){f.needEmitLine?function g(y,w,b,x,_){if(b>=y.length)_();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var S=w.parseRuntime.subscribe.onNext,j=y[b],E=S(j,w.parseRuntime.parsedLineNumber+b);if(b++,E&&E.then)E.then(function(){(function(N,I,M,D,z,q,W){z&&s(M,W),g(N,M,D,z,q)})(y,0,w,b,x,_,j)},_);else{for(x&&s(w,j);b<y.length;){var P=y[b];S(P,w.parseRuntime.parsedLineNumber+b),b++,x&&s(w,P)}_()}}else{if(x)for(;b<y.length;)P=y[b++],s(w,P);_()}}(u,f.converter,0,f.needPushDownstream,function(g){g?v(g):(f.appendFinalResult(u),p())}):(f.appendFinalResult(u),p())})},l.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},l.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)},l.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"&&s(this.converter,"]"+o.EOL)},l}();function s(l,u){if(typeof u!="object"||l.options.objectMode)l.push(u);else{var f=JSON.stringify(u);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},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"/"}}]);const kFe=Nl(AFe),NFe=e=>new Promise(t=>{kFe().fromString(e).then(t)}),LFe=new PFe,RFe=e=>LFe.parse(e),MFe="shlink",WI=e=>`${MFe}.${e}`;class IFe{constructor(t){Xl(this,"get",t=>{const n=this.localStorage.getItem(WI(t));return n?JSON.parse(n):void 0});Xl(this,"set",(t,n)=>this.localStorage.setItem(WI(t),JSON.stringify(n)));this.localStorage=t}}class DFe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const $Fe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",IFe,"localStorage"),e.service("TagColorsStorage",DFe,"Storage"),e.constant("csvToJson",NFe),e.constant("jsonToCsv",RFe),e.serviceFactory("useTimeoutToggle",()=>D7)},Bl=new UY,{container:IP}=Bl,FFe=(e,t)=>(...n)=>e[t](...n),UFe=(e,t)=>({...e,[t]:FFe(IP,t)}),BFe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),e_=(e,t=[])=>d8(e?BFe(e):null,t.reduce(UFe,{}));Cue(Bl,e_);a7e(Bl,e_);nK(Bl);K7e(Bl,e_);$Fe(Bl);wFe(Bl,e_);var DP={},GE={exports:{}};(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=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return r.apply(void 0,u)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l(u[0]===!0,!1,u)}t.merge=r;function i(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return l(u[0]===!0,!0,u)}t.recursive=i;function o(u){if(Array.isArray(u)){for(var f=[],d=0;d<u.length;++d)f.push(o(u[d]));return f}else if(a(u)){var f={};for(var d in u)f[d]=o(u[d]);return f}else return u}t.clone=o;function a(u){return u&&typeof u=="object"&&!Array.isArray(u)}t.isPlainObject=a;function s(u,f){if(!a(u))return f;for(var d in f)d==="__proto__"||d==="constructor"||d==="prototype"||(u[d]=a(u[d])&&a(f[d])?s(u[d],f[d]):f[d]);return u}function l(u,f,d){var p;(u||!a(p=d.shift()))&&(p={});for(var v=0;v<d.length;++v){var g=d[v];if(a(g)){for(var y in g)if(!(y==="__proto__"||y==="constructor"||y==="prototype")){var w=u?o(g[y]):g[y];p[y]=f?s(p[y],w):w}}}return p}})(GE,GE.exports);var zFe=GE.exports;(function(e){var t=n(zFe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=q,e.combineLoads=z,e.load=D,e.save=M;function n(B){return B&&B.__esModule?B:{default:B}}function r(B,F){return l(B)||s(B,F)||o(B,F)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(B,F){if(B){if(typeof B=="string")return a(B,F);var H=Object.prototype.toString.call(B).slice(8,-1);return H==="Object"&&B.constructor&&(H=B.constructor.name),H==="Map"||H==="Set"?Array.from(B):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?a(B,F):void 0}}function a(B,F){(F==null||F>B.length)&&(F=B.length);for(var H=0,ne=Array(F);H<F;H++)ne[H]=B[H];return ne}function s(B,F){var H=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(H!=null){var ne,Y,ee=[],ae=!0,oe=!1;try{for(H=H.call(B);!(ae=(ne=H.next()).done)&&(ee.push(ne.value),!(F&&ee.length===F));ae=!0);}catch(fe){oe=!0,Y=fe}finally{try{ae||H.return==null||H.return()}finally{if(oe)throw Y}}return ee}}function l(B){if(Array.isArray(B))return B}function u(B){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},u(B)}function f(B,F,H){return F in B?Object.defineProperty(B,F,{value:H,enumerable:!0,configurable:!0,writable:!0}):B[F]=H,B}var d="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",v="_",g=[],y=[],w=0,b=!1,x=!1,_=new Map;function S(B){console.warn(d,B)}function j(){}var E=function(B){return B?j:S};function P(B,F){return F===void 0?null:B.length===1?F[B[0]]:P(B.slice(1),F[B[0]])}function N(B){function F(ne,Y){return ne.length===0?Y:F(ne.slice(1),f({},ne[0],Y))}var H=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return F(B.split(".").reverse(),H)}function I(B){this.warnFn=B||S}Object.defineProperty(I.prototype,"length",{get:function(){try{return localStorage.length}catch(B){this.warnFn(B)}return 0},configurable:!0,enumerable:!0}),I.prototype.key=function(B){try{return localStorage.key(B)}catch(F){this.warnFn(F)}return null},I.prototype.setItem=function(B,F){try{localStorage.setItem(B,JSON.stringify(F))}catch(H){this.warnFn(H)}},I.prototype.getItem=function(B){try{return JSON.parse(localStorage.getItem(B))}catch(F){this.warnFn(F)}return null},I.prototype.removeItem=function(B){try{localStorage.removeItem(B)}catch(F){this.warnFn(F)}};function M(){var B=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},F=B.states,H=F===void 0?g:F,ne=B.ignoreStates,Y=ne===void 0?y:ne,ee=B.namespace,ae=ee===void 0?p:ee,oe=B.namespaceSeparator,fe=oe===void 0?v:oe,C=B.debounce,A=C===void 0?w:C,U=B.disableWarnings,Q=U===void 0?x:U;return function(Z){return function(ie){return function(he){function Se(je,Pe){return 1<je.split(".").length?P(je.split("."),Pe):P([je],Pe)}function se(){H.length===0?Ce.setItem(ae,pe):H.forEach(function(je){var Pe=ae+fe+je,le=Se(je,pe);le?Ce.setItem(Pe,le):Ce.removeItem(Pe)})}var pe,me=E(Q),xe=ie(he);W(H)||(console.error(d,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),H=g),W(Y)||(console.error(d,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),Y=y),0<Y.length&&(Y=Y.filter(function(je){return X(je)?je:void console.error(d,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),X(ae)||(console.error(d,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ae=p),X(fe)||(console.error(d,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),fe=v),J(A)||(console.error(d,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),A=w),pe=0<Y.length?K(Y,Z.getState()):Z.getState();var Ce=new I(me);return A?(_.get(H+ae)&&clearTimeout(_.get(H+ae)),_.set(H+ae,setTimeout(function(){se()},A))):se(),xe}}}}function D(){var B=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},F=B.states,H=F===void 0?g:F,ne=B.immutablejs,Y=ne===void 0?b:ne,ee=B.namespace,ae=ee===void 0?p:ee,oe=B.namespaceSeparator,fe=oe===void 0?v:oe,C=B.preloadedState,A=C===void 0?{}:C,U=B.disableWarnings,Q=U===void 0?x:U,Z=E(Q);W(H)||(console.error(d,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),H=g),X(ae)||(console.error(d,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ae=p),X(fe)||(console.error(d,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),fe=v),Y===!0&&Z("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 ie=new I(Z),he=A;if(H.length===0){var Se=ie.getItem(ae);Se&&(he=Se)}else H.forEach(function(se){var pe=ae+fe+se,me=ie.getItem(pe);me?he=t.default.recursive(he,N(se,me)):Z("Invalid load '"+pe+"' 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 he}function z(){for(var B={},F=arguments.length,H=Array(F),ne=0;ne<F;ne++)H[ne]=arguments[ne];return H.forEach(function(Y){for(var ee in te(Y)||(console.error(d,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),Y={}),Y)B[ee]=Y[ee]}),B}function q(){var B=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},F=B.namespace,H=F===void 0?p:F,ne=B.disableWarnings,Y=ne===void 0?x:ne,ee=E(Y);X(H)||(console.error(d,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),H=p);for(var ae,oe=new I(ee),fe=oe.length,C=0;C<fe;C++)ae=oe.key(C),ae&&ae.slice(0,H.length)===H&&oe.removeItem(ae)}function W(B){return Object.prototype.toString.call(B)==="[object Array]"}function X(B){return typeof B=="string"}function J(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function te(B){return B!==null&&u(B)==="object"}function K(B,F){var H=Object.entries(F).reduce(function(ne,Y){var ee=r(Y,2),ae=ee[0];return ee[1],B.indexOf(ae)===-1&&(ne[ae]=F[ae]),ne},{});return H}})(DP);const VFe=e=>zT({appUpdated:Tue,servers:N7e,selectedServer:e.selectedServerReducer,settings:cFe}),HFe=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},WFe=!0,RV={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},GFe=HFe(DP.load(RV)),qFe=e=>iF({devTools:!WFe,reducer:VFe(e),preloadedState:GFe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(DP.save(RV))}),ZFe=!!(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 YFe(e){if("serviceWorker"in navigator){if(new URL(Ig.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Ig.homepage}/service-worker.js`;ZFe?(KFe(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")})):MV(n,e)})}}function MV(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 KFe(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()})}):MV(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const IV=qFe(IP),{App:XFe,ScrollToTop:QFe,ErrorHandler:JFe,appUpdateAvailable:e1e}=IP;o8(document.getElementById("root")).render(m.jsx(h8,{store:IV,children:m.jsx(S8,{basename:Ig.homepage,children:m.jsx(JFe,{children:m.jsx(QFe,{children:m.jsx(XFe,{})})})})}));YFe({onUpdate(){IV.dispatch(e1e())}});
|