mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
840 lines
1.5 MiB
840 lines
1.5 MiB
var zz=Object.defineProperty;var Vz=(e,t,n)=>t in e?zz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ml=(e,t,n)=>Vz(e,typeof t!="symbol"?t+"":t,n);function Wz(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)}})();var Zl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function st(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZR={exports:{}},Ty={},XR={exports:{}},it={};/**
|
||
* @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 Dh=Symbol.for("react.element"),Hz=Symbol.for("react.portal"),Gz=Symbol.for("react.fragment"),Kz=Symbol.for("react.strict_mode"),qz=Symbol.for("react.profiler"),Yz=Symbol.for("react.provider"),Zz=Symbol.for("react.context"),Xz=Symbol.for("react.forward_ref"),Qz=Symbol.for("react.suspense"),Jz=Symbol.for("react.memo"),eV=Symbol.for("react.lazy"),kT=Symbol.iterator;function tV(e){return e===null||typeof e!="object"?null:(e=kT&&e[kT]||e["@@iterator"],typeof e=="function"?e:null)}var QR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JR=Object.assign,e4={};function Su(e,t,n){this.props=e,this.context=t,this.refs=e4,this.updater=n||QR}Su.prototype.isReactComponent={};Su.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")};Su.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function t4(){}t4.prototype=Su.prototype;function eS(e,t,n){this.props=e,this.context=t,this.refs=e4,this.updater=n||QR}var tS=eS.prototype=new t4;tS.constructor=eS;JR(tS,Su.prototype);tS.isPureReactComponent=!0;var NT=Array.isArray,n4=Object.prototype.hasOwnProperty,nS={current:null},r4={key:!0,ref:!0,__self:!0,__source:!0};function i4(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)n4.call(t,r)&&!r4.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Dh,type:e,key:o,ref:a,props:i,_owner:nS.current}}function nV(e,t){return{$$typeof:Dh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dh}function rV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var MT=/\/+/g;function Ub(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rV(""+e.key):t.toString(36)}function Mm(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 Dh:case Hz:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Ub(a,0):r,NT(i)?(n="",e!=null&&(n=e.replace(MT,"$&/")+"/"),Mm(i,t,n,"",function(l){return l})):i!=null&&(rS(i)&&(i=nV(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(MT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",NT(e))for(var s=0;s<e.length;s++){o=e[s];var c=r+Ub(o,s);a+=Mm(o,t,n,c,i)}else if(c=tV(e),typeof c=="function")for(e=c.call(e),s=0;!(o=e.next()).done;)o=o.value,c=r+Ub(o,s++),a+=Mm(o,t,n,c,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 Up(e,t,n){if(e==null)return e;var r=[],i=0;return Mm(e,r,"","",function(o){return t.call(n,o,i++)}),r}function iV(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 tr={current:null},Lm={transition:null},oV={ReactCurrentDispatcher:tr,ReactCurrentBatchConfig:Lm,ReactCurrentOwner:nS};function o4(){throw Error("act(...) is not supported in production builds of React.")}it.Children={map:Up,forEach:function(e,t,n){Up(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Up(e,function(){t++}),t},toArray:function(e){return Up(e,function(t){return t})||[]},only:function(e){if(!rS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=Su;it.Fragment=Gz;it.Profiler=qz;it.PureComponent=eS;it.StrictMode=Kz;it.Suspense=Qz;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oV;it.act=o4;it.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=JR({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=nS.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)n4.call(t,c)&&!r4.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:Dh,type:e.type,key:i,ref:o,props:r,_owner:a}};it.createContext=function(e){return e={$$typeof:Zz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Yz,_context:e},e.Consumer=e};it.createElement=i4;it.createFactory=function(e){var t=i4.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:Xz,render:e}};it.isValidElement=rS;it.lazy=function(e){return{$$typeof:eV,_payload:{_status:-1,_result:e},_init:iV}};it.memo=function(e,t){return{$$typeof:Jz,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Lm.transition;Lm.transition={};try{e()}finally{Lm.transition=t}};it.unstable_act=o4;it.useCallback=function(e,t){return tr.current.useCallback(e,t)};it.useContext=function(e){return tr.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return tr.current.useDeferredValue(e)};it.useEffect=function(e,t){return tr.current.useEffect(e,t)};it.useId=function(){return tr.current.useId()};it.useImperativeHandle=function(e,t,n){return tr.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return tr.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return tr.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return tr.current.useMemo(e,t)};it.useReducer=function(e,t,n){return tr.current.useReducer(e,t,n)};it.useRef=function(e){return tr.current.useRef(e)};it.useState=function(e){return tr.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return tr.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return tr.current.useTransition()};it.version="18.3.1";XR.exports=it;var N=XR.exports;const V=st(N),g_=Wz({__proto__:null,default:V},[N]);/**
|
||
* @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 aV=N,sV=Symbol.for("react.element"),lV=Symbol.for("react.fragment"),cV=Object.prototype.hasOwnProperty,uV=aV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fV={key:!0,ref:!0,__self:!0,__source:!0};function a4(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)cV.call(t,r)&&!fV.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:sV,type:e,key:o,ref:a,props:i,_owner:uV.current}}Ty.Fragment=lV;Ty.jsx=a4;Ty.jsxs=a4;ZR.exports=Ty;var m=ZR.exports,s4={exports:{}},Lr={},l4={exports:{}},c4={};/**
|
||
* @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(X,U){var B=X.length;X.push(U);e:for(;0<B;){var W=B-1>>>1,ee=X[W];if(0<i(ee,U))X[W]=U,X[B]=ee,B=W;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var U=X[0],B=X.pop();if(B!==U){X[0]=B;e:for(var W=0,ee=X.length,G=ee>>>1;W<G;){var ne=2*(W+1)-1,re=X[ne],ae=ne+1,fe=X[ae];if(0>i(re,B))ae<ee&&0>i(fe,re)?(X[W]=fe,X[ae]=B,W=ae):(X[W]=re,X[ne]=B,W=ne);else if(ae<ee&&0>i(fe,B))X[W]=fe,X[ae]=B,W=ae;else break e}}return U}function i(X,U){var B=X.sortIndex-U.sortIndex;return B!==0?B:X.id-U.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 c=[],l=[],f=1,d=null,p=3,v=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(X){for(var U=n(l);U!==null;){if(U.callback===null)r(l);else if(U.startTime<=X)r(l),U.sortIndex=U.expirationTime,t(c,U);else break;U=n(l)}}function S(X){if(y=!1,w(X),!g)if(n(c)!==null)g=!0,Q(C);else{var U=n(l);U!==null&&te(S,U.startTime-X)}}function C(X,U){g=!1,y&&(y=!1,b(j),j=-1),v=!0;var B=p;try{for(w(U),d=n(c);d!==null&&(!(d.expirationTime>U)||X&&!I());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var ee=W(d.expirationTime<=U);U=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(c)&&r(c),w(U)}else r(c);d=n(c)}if(d!==null)var G=!0;else{var ne=n(l);ne!==null&&te(S,ne.startTime-U),G=!1}return G}finally{d=null,p=B,v=!1}}var P=!1,T=null,j=-1,$=5,M=-1;function I(){return!(e.unstable_now()-M<$)}function F(){if(T!==null){var X=e.unstable_now();M=X;var U=!0;try{U=T(!0,X)}finally{U?q():(P=!1,T=null)}}else P=!1}var q;if(typeof _=="function")q=function(){_(F)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Z=H.port2;H.port1.onmessage=F,q=function(){Z.postMessage(null)}}else q=function(){x(F,0)};function Q(X){T=X,P||(P=!0,q())}function te(X,U){j=x(function(){X(e.unstable_now())},U)}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(X){X.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,Q(C))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(X){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var B=p;p=U;try{return X()}finally{p=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,U){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var B=p;p=X;try{return U()}finally{p=B}},e.unstable_scheduleCallback=function(X,U,B){var W=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,X){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=B+ee,X={id:f++,callback:U,priorityLevel:X,startTime:B,expirationTime:ee,sortIndex:-1},B>W?(X.sortIndex=B,t(l,X),n(c)===null&&X===n(l)&&(y?(b(j),j=-1):y=!0,te(S,B-W))):(X.sortIndex=ee,t(c,X),g||v||(g=!0,Q(C))),X},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(X){var U=p;return function(){var B=p;p=U;try{return X.apply(this,arguments)}finally{p=B}}}})(c4);l4.exports=c4;var dV=l4.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 hV=N,jr=dV;function Pe(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 u4=new Set,wd={};function pl(e,t){Ac(e,t),Ac(e+"Capture",t)}function Ac(e,t){for(wd[e]=t,e=0;e<t.length;e++)u4.add(t[e])}var Ro=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y_=Object.prototype.hasOwnProperty,pV=/^[: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]*$/,LT={},RT={};function mV(e){return y_.call(RT,e)?!0:y_.call(LT,e)?!1:pV.test(e)?RT[e]=!0:(LT[e]=!0,!1)}function vV(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 gV(e,t,n,r){if(t===null||typeof t>"u"||vV(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 nr(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 Nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nn[e]=new nr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nn[t]=new nr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nn[e]=new nr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nn[e]=new nr(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){Nn[e]=new nr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nn[e]=new nr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nn[e]=new nr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nn[e]=new nr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nn[e]=new nr(e,5,!1,e.toLowerCase(),null,!1,!1)});var iS=/[\-:]([a-z])/g;function oS(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(iS,oS);Nn[t]=new nr(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(iS,oS);Nn[t]=new nr(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(iS,oS);Nn[t]=new nr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nn[e]=new nr(e,1,!1,e.toLowerCase(),null,!1,!1)});Nn.xlinkHref=new nr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nn[e]=new nr(e,1,!1,e.toLowerCase(),null,!0,!0)});function aS(e,t,n,r){var i=Nn.hasOwnProperty(t)?Nn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gV(t,n,i,r)&&(n=null),r||i===null?mV(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 qo=hV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zp=Symbol.for("react.element"),Xl=Symbol.for("react.portal"),Ql=Symbol.for("react.fragment"),sS=Symbol.for("react.strict_mode"),b_=Symbol.for("react.profiler"),f4=Symbol.for("react.provider"),d4=Symbol.for("react.context"),lS=Symbol.for("react.forward_ref"),__=Symbol.for("react.suspense"),x_=Symbol.for("react.suspense_list"),cS=Symbol.for("react.memo"),pa=Symbol.for("react.lazy"),h4=Symbol.for("react.offscreen"),$T=Symbol.iterator;function pf(e){return e===null||typeof e!="object"?null:(e=$T&&e[$T]||e["@@iterator"],typeof e=="function"?e:null)}var Vt=Object.assign,zb;function Df(e){if(zb===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zb=t&&t[1]||""}return`
|
||
`+zb+e}var Vb=!1;function Wb(e,t){if(!e||Vb)return"";Vb=!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(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.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 c=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{Vb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Df(e):""}function yV(e){switch(e.tag){case 5:return Df(e.type);case 16:return Df("Lazy");case 13:return Df("Suspense");case 19:return Df("SuspenseList");case 0:case 2:case 15:return e=Wb(e.type,!1),e;case 11:return e=Wb(e.type.render,!1),e;case 1:return e=Wb(e.type,!0),e;default:return""}}function w_(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 Ql:return"Fragment";case Xl:return"Portal";case b_:return"Profiler";case sS:return"StrictMode";case __:return"Suspense";case x_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d4:return(e.displayName||"Context")+".Consumer";case f4:return(e._context.displayName||"Context")+".Provider";case lS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cS:return t=e.displayName||null,t!==null?t:w_(e.type)||"Memo";case pa:t=e._payload,e=e._init;try{return w_(e(t))}catch{}}return null}function bV(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 w_(t);case 8:return t===sS?"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 Ua(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function p4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _V(e){var t=p4(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 Vp(e){e._valueTracker||(e._valueTracker=_V(e))}function m4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=p4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nv(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 O_(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function IT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ua(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 v4(e,t){t=t.checked,t!=null&&aS(e,"checked",t,!1)}function S_(e,t){v4(e,t);var n=Ua(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")?P_(e,t.type,n):t.hasOwnProperty("defaultValue")&&P_(e,t.type,Ua(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function DT(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 P_(e,t,n){(t!=="number"||nv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ff=Array.isArray;function yc(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=""+Ua(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 C_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Pe(91));return Vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function FT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Pe(92));if(Ff(n)){if(1<n.length)throw Error(Pe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ua(n)}}function g4(e,t){var n=Ua(t.value),r=Ua(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 BT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function y4(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 E_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?y4(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wp,b4=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(Wp=Wp||document.createElement("div"),Wp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Od(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qf={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},xV=["Webkit","ms","Moz","O"];Object.keys(qf).forEach(function(e){xV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qf[t]=qf[e]})});function _4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qf.hasOwnProperty(e)&&qf[e]?(""+t).trim():t+"px"}function x4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=_4(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wV=Vt({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 T_(e,t){if(t){if(wV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Pe(62))}}function j_(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 A_=null;function uS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var k_=null,bc=null,_c=null;function UT(e){if(e=Uh(e)){if(typeof k_!="function")throw Error(Pe(280));var t=e.stateNode;t&&(t=My(t),k_(e.stateNode,e.type,t))}}function w4(e){bc?_c?_c.push(e):_c=[e]:bc=e}function O4(){if(bc){var e=bc,t=_c;if(_c=bc=null,UT(e),t)for(e=0;e<t.length;e++)UT(t[e])}}function S4(e,t){return e(t)}function P4(){}var Hb=!1;function C4(e,t,n){if(Hb)return e(t,n);Hb=!0;try{return S4(e,t,n)}finally{Hb=!1,(bc!==null||_c!==null)&&(P4(),O4())}}function Sd(e,t){var n=e.stateNode;if(n===null)return null;var r=My(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(Pe(231,t,typeof n));return n}var N_=!1;if(Ro)try{var mf={};Object.defineProperty(mf,"passive",{get:function(){N_=!0}}),window.addEventListener("test",mf,mf),window.removeEventListener("test",mf,mf)}catch{N_=!1}function OV(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(f){this.onError(f)}}var Yf=!1,rv=null,iv=!1,M_=null,SV={onError:function(e){Yf=!0,rv=e}};function PV(e,t,n,r,i,o,a,s,c){Yf=!1,rv=null,OV.apply(SV,arguments)}function CV(e,t,n,r,i,o,a,s,c){if(PV.apply(this,arguments),Yf){if(Yf){var l=rv;Yf=!1,rv=null}else throw Error(Pe(198));iv||(iv=!0,M_=l)}}function ml(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 E4(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 zT(e){if(ml(e)!==e)throw Error(Pe(188))}function EV(e){var t=e.alternate;if(!t){if(t=ml(e),t===null)throw Error(Pe(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 zT(i),e;if(o===r)return zT(i),t;o=o.sibling}throw Error(Pe(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(Pe(189))}}if(n.alternate!==r)throw Error(Pe(190))}if(n.tag!==3)throw Error(Pe(188));return n.stateNode.current===n?e:t}function T4(e){return e=EV(e),e!==null?j4(e):null}function j4(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=j4(e);if(t!==null)return t;e=e.sibling}return null}var A4=jr.unstable_scheduleCallback,VT=jr.unstable_cancelCallback,TV=jr.unstable_shouldYield,jV=jr.unstable_requestPaint,Xt=jr.unstable_now,AV=jr.unstable_getCurrentPriorityLevel,fS=jr.unstable_ImmediatePriority,k4=jr.unstable_UserBlockingPriority,ov=jr.unstable_NormalPriority,kV=jr.unstable_LowPriority,N4=jr.unstable_IdlePriority,jy=null,to=null;function NV(e){if(to&&typeof to.onCommitFiberRoot=="function")try{to.onCommitFiberRoot(jy,e,void 0,(e.current.flags&128)===128)}catch{}}var ji=Math.clz32?Math.clz32:RV,MV=Math.log,LV=Math.LN2;function RV(e){return e>>>=0,e===0?32:31-(MV(e)/LV|0)|0}var Hp=64,Gp=4194304;function Bf(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 av(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=Bf(s):(o&=a,o!==0&&(r=Bf(o)))}else a=n&~i,a!==0?r=Bf(a):o!==0&&(r=Bf(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-ji(t),i=1<<n,r|=e[n],t&=~i;return r}function $V(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 IV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-ji(o),s=1<<a,c=i[a];c===-1?(!(s&n)||s&r)&&(i[a]=$V(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}}function L_(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function M4(){var e=Hp;return Hp<<=1,!(Hp&4194240)&&(Hp=64),e}function Gb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ji(t),e[t]=n}function DV(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-ji(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function dS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ji(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pt=0;function L4(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var R4,hS,$4,I4,D4,R_=!1,Kp=[],Ea=null,Ta=null,ja=null,Pd=new Map,Cd=new Map,ga=[],FV="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 WT(e,t){switch(e){case"focusin":case"focusout":Ea=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":Pd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cd.delete(t.pointerId)}}function vf(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=Uh(t),t!==null&&hS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function BV(e,t,n,r,i){switch(t){case"focusin":return Ea=vf(Ea,e,t,n,r,i),!0;case"dragenter":return Ta=vf(Ta,e,t,n,r,i),!0;case"mouseover":return ja=vf(ja,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Pd.set(o,vf(Pd.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Cd.set(o,vf(Cd.get(o)||null,e,t,n,r,i)),!0}return!1}function F4(e){var t=Ns(e.target);if(t!==null){var n=ml(t);if(n!==null){if(t=n.tag,t===13){if(t=E4(n),t!==null){e.blockedOn=t,D4(e.priority,function(){$4(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 Rm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);A_=r,n.target.dispatchEvent(r),A_=null}else return t=Uh(n),t!==null&&hS(t),e.blockedOn=n,!1;t.shift()}return!0}function HT(e,t,n){Rm(e)&&n.delete(t)}function UV(){R_=!1,Ea!==null&&Rm(Ea)&&(Ea=null),Ta!==null&&Rm(Ta)&&(Ta=null),ja!==null&&Rm(ja)&&(ja=null),Pd.forEach(HT),Cd.forEach(HT)}function gf(e,t){e.blockedOn===t&&(e.blockedOn=null,R_||(R_=!0,jr.unstable_scheduleCallback(jr.unstable_NormalPriority,UV)))}function Ed(e){function t(i){return gf(i,e)}if(0<Kp.length){gf(Kp[0],e);for(var n=1;n<Kp.length;n++){var r=Kp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ea!==null&&gf(Ea,e),Ta!==null&&gf(Ta,e),ja!==null&&gf(ja,e),Pd.forEach(t),Cd.forEach(t),n=0;n<ga.length;n++)r=ga[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ga.length&&(n=ga[0],n.blockedOn===null);)F4(n),n.blockedOn===null&&ga.shift()}var xc=qo.ReactCurrentBatchConfig,sv=!0;function zV(e,t,n,r){var i=pt,o=xc.transition;xc.transition=null;try{pt=1,pS(e,t,n,r)}finally{pt=i,xc.transition=o}}function VV(e,t,n,r){var i=pt,o=xc.transition;xc.transition=null;try{pt=4,pS(e,t,n,r)}finally{pt=i,xc.transition=o}}function pS(e,t,n,r){if(sv){var i=$_(e,t,n,r);if(i===null)n1(e,t,r,lv,n),WT(e,r);else if(BV(i,e,t,n,r))r.stopPropagation();else if(WT(e,r),t&4&&-1<FV.indexOf(e)){for(;i!==null;){var o=Uh(i);if(o!==null&&R4(o),o=$_(e,t,n,r),o===null&&n1(e,t,r,lv,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else n1(e,t,r,null,n)}}var lv=null;function $_(e,t,n,r){if(lv=null,e=uS(r),e=Ns(e),e!==null)if(t=ml(e),t===null)e=null;else if(n=t.tag,n===13){if(e=E4(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 lv=e,null}function B4(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(AV()){case fS:return 1;case k4:return 4;case ov:case kV:return 16;case N4:return 536870912;default:return 16}default:return 16}}var _a=null,mS=null,$m=null;function U4(){if($m)return $m;var e,t=mS,n=t.length,r,i="value"in _a?_a.value:_a.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 $m=i.slice(e,1<r?1-r:void 0)}function Im(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 qp(){return!0}function GT(){return!1}function Rr(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)?qp:GT,this.isPropagationStopped=GT,this}return Vt(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=qp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qp)},persist:function(){},isPersistent:qp}),t}var Pu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vS=Rr(Pu),Bh=Vt({},Pu,{view:0,detail:0}),WV=Rr(Bh),Kb,qb,yf,Ay=Vt({},Bh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gS,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!==yf&&(yf&&e.type==="mousemove"?(Kb=e.screenX-yf.screenX,qb=e.screenY-yf.screenY):qb=Kb=0,yf=e),Kb)},movementY:function(e){return"movementY"in e?e.movementY:qb}}),KT=Rr(Ay),HV=Vt({},Ay,{dataTransfer:0}),GV=Rr(HV),KV=Vt({},Bh,{relatedTarget:0}),Yb=Rr(KV),qV=Vt({},Pu,{animationName:0,elapsedTime:0,pseudoElement:0}),YV=Rr(qV),ZV=Vt({},Pu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XV=Rr(ZV),QV=Vt({},Pu,{data:0}),qT=Rr(QV),JV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eW={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"},tW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tW[e])?!!t[e]:!1}function gS(){return nW}var rW=Vt({},Bh,{key:function(e){if(e.key){var t=JV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Im(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gS,charCode:function(e){return e.type==="keypress"?Im(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Im(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iW=Rr(rW),oW=Vt({},Ay,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),YT=Rr(oW),aW=Vt({},Bh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gS}),sW=Rr(aW),lW=Vt({},Pu,{propertyName:0,elapsedTime:0,pseudoElement:0}),cW=Rr(lW),uW=Vt({},Ay,{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}),fW=Rr(uW),dW=[9,13,27,32],yS=Ro&&"CompositionEvent"in window,Zf=null;Ro&&"documentMode"in document&&(Zf=document.documentMode);var hW=Ro&&"TextEvent"in window&&!Zf,z4=Ro&&(!yS||Zf&&8<Zf&&11>=Zf),ZT=" ",XT=!1;function V4(e,t){switch(e){case"keyup":return dW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function pW(e,t){switch(e){case"compositionend":return W4(t);case"keypress":return t.which!==32?null:(XT=!0,ZT);case"textInput":return e=t.data,e===ZT&&XT?null:e;default:return null}}function mW(e,t){if(Jl)return e==="compositionend"||!yS&&V4(e,t)?(e=U4(),$m=mS=_a=null,Jl=!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 z4&&t.locale!=="ko"?null:t.data;default:return null}}var vW={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 QT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vW[e.type]:t==="textarea"}function H4(e,t,n,r){w4(r),t=cv(t,"onChange"),0<t.length&&(n=new vS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xf=null,Td=null;function gW(e){n$(e,0)}function ky(e){var t=nc(e);if(m4(t))return e}function yW(e,t){if(e==="change")return t}var G4=!1;if(Ro){var Zb;if(Ro){var Xb="oninput"in document;if(!Xb){var JT=document.createElement("div");JT.setAttribute("oninput","return;"),Xb=typeof JT.oninput=="function"}Zb=Xb}else Zb=!1;G4=Zb&&(!document.documentMode||9<document.documentMode)}function ej(){Xf&&(Xf.detachEvent("onpropertychange",K4),Td=Xf=null)}function K4(e){if(e.propertyName==="value"&&ky(Td)){var t=[];H4(t,Td,e,uS(e)),C4(gW,t)}}function bW(e,t,n){e==="focusin"?(ej(),Xf=t,Td=n,Xf.attachEvent("onpropertychange",K4)):e==="focusout"&&ej()}function _W(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ky(Td)}function xW(e,t){if(e==="click")return ky(t)}function wW(e,t){if(e==="input"||e==="change")return ky(t)}function OW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mi=typeof Object.is=="function"?Object.is:OW;function jd(e,t){if(Mi(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(!y_.call(t,i)||!Mi(e[i],t[i]))return!1}return!0}function tj(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nj(e,t){var n=tj(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=tj(n)}}function q4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?q4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Y4(){for(var e=window,t=nv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nv(e.document)}return t}function bS(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 SW(e){var t=Y4(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&q4(n.ownerDocument.documentElement,n)){if(r!==null&&bS(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=nj(n,o);var a=nj(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 PW=Ro&&"documentMode"in document&&11>=document.documentMode,ec=null,I_=null,Qf=null,D_=!1;function rj(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;D_||ec==null||ec!==nv(r)||(r=ec,"selectionStart"in r&&bS(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}),Qf&&jd(Qf,r)||(Qf=r,r=cv(I_,"onSelect"),0<r.length&&(t=new vS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ec)))}function Yp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tc={animationend:Yp("Animation","AnimationEnd"),animationiteration:Yp("Animation","AnimationIteration"),animationstart:Yp("Animation","AnimationStart"),transitionend:Yp("Transition","TransitionEnd")},Qb={},Z4={};Ro&&(Z4=document.createElement("div").style,"AnimationEvent"in window||(delete tc.animationend.animation,delete tc.animationiteration.animation,delete tc.animationstart.animation),"TransitionEvent"in window||delete tc.transitionend.transition);function Ny(e){if(Qb[e])return Qb[e];if(!tc[e])return e;var t=tc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Z4)return Qb[e]=t[n];return e}var X4=Ny("animationend"),Q4=Ny("animationiteration"),J4=Ny("animationstart"),e$=Ny("transitionend"),t$=new Map,ij="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 Xa(e,t){t$.set(e,t),pl(t,[e])}for(var Jb=0;Jb<ij.length;Jb++){var e1=ij[Jb],CW=e1.toLowerCase(),EW=e1[0].toUpperCase()+e1.slice(1);Xa(CW,"on"+EW)}Xa(X4,"onAnimationEnd");Xa(Q4,"onAnimationIteration");Xa(J4,"onAnimationStart");Xa("dblclick","onDoubleClick");Xa("focusin","onFocus");Xa("focusout","onBlur");Xa(e$,"onTransitionEnd");Ac("onMouseEnter",["mouseout","mouseover"]);Ac("onMouseLeave",["mouseout","mouseover"]);Ac("onPointerEnter",["pointerout","pointerover"]);Ac("onPointerLeave",["pointerout","pointerover"]);pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pl("onBeforeInput",["compositionend","keypress","textInput","paste"]);pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uf="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(" "),TW=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uf));function oj(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,CV(r,t,void 0,e),e.currentTarget=null}function n$(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],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;oj(i,s,l),o=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;oj(i,s,l),o=c}}}if(iv)throw e=M_,iv=!1,M_=null,e}function Ct(e,t){var n=t[V_];n===void 0&&(n=t[V_]=new Set);var r=e+"__bubble";n.has(r)||(r$(t,e,2,!1),n.add(r))}function t1(e,t,n){var r=0;t&&(r|=4),r$(n,e,r,t)}var Zp="_reactListening"+Math.random().toString(36).slice(2);function Ad(e){if(!e[Zp]){e[Zp]=!0,u4.forEach(function(n){n!=="selectionchange"&&(TW.has(n)||t1(n,!1,e),t1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zp]||(t[Zp]=!0,t1("selectionchange",!1,t))}}function r$(e,t,n,r){switch(B4(t)){case 1:var i=zV;break;case 4:i=VV;break;default:i=pS}n=i.bind(null,t,n,e),i=void 0,!N_||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 n1(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 c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Ns(s),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}s=s.parentNode}}r=r.return}C4(function(){var l=o,f=uS(n),d=[];e:{var p=t$.get(e);if(p!==void 0){var v=vS,g=e;switch(e){case"keypress":if(Im(n)===0)break e;case"keydown":case"keyup":v=iW;break;case"focusin":g="focus",v=Yb;break;case"focusout":g="blur",v=Yb;break;case"beforeblur":case"afterblur":v=Yb;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=KT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=GV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=sW;break;case X4:case Q4:case J4:v=YV;break;case e$:v=cW;break;case"scroll":v=WV;break;case"wheel":v=fW;break;case"copy":case"cut":case"paste":v=XV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=YT}var y=(t&4)!==0,x=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var _=l,w;_!==null;){w=_;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,b!==null&&(S=Sd(_,b),S!=null&&y.push(kd(_,S,w)))),x)break;_=_.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!==A_&&(g=n.relatedTarget||n.fromElement)&&(Ns(g)||g[$o]))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=l,g=g?Ns(g):null,g!==null&&(x=ml(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=l),v!==g)){if(y=KT,S="onMouseLeave",b="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(y=YT,S="onPointerLeave",b="onPointerEnter",_="pointer"),x=v==null?p:nc(v),w=g==null?p:nc(g),p=new y(S,_+"leave",v,n,f),p.target=x,p.relatedTarget=w,S=null,Ns(f)===l&&(y=new y(b,_+"enter",g,n,f),y.target=w,y.relatedTarget=x,S=y),x=S,v&&g)t:{for(y=v,b=g,_=0,w=y;w;w=Ll(w))_++;for(w=0,S=b;S;S=Ll(S))w++;for(;0<_-w;)y=Ll(y),_--;for(;0<w-_;)b=Ll(b),w--;for(;_--;){if(y===b||b!==null&&y===b.alternate)break t;y=Ll(y),b=Ll(b)}y=null}else y=null;v!==null&&aj(d,p,v,y,!1),g!==null&&x!==null&&aj(d,x,g,y,!0)}}e:{if(p=l?nc(l):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var C=yW;else if(QT(p))if(G4)C=wW;else{C=_W;var P=bW}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=xW);if(C&&(C=C(e,l))){H4(d,C,n,f);break e}P&&P(e,p,l),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&P_(p,"number",p.value)}switch(P=l?nc(l):window,e){case"focusin":(QT(P)||P.contentEditable==="true")&&(ec=P,I_=l,Qf=null);break;case"focusout":Qf=I_=ec=null;break;case"mousedown":D_=!0;break;case"contextmenu":case"mouseup":case"dragend":D_=!1,rj(d,n,f);break;case"selectionchange":if(PW)break;case"keydown":case"keyup":rj(d,n,f)}var T;if(yS)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Jl?V4(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(z4&&n.locale!=="ko"&&(Jl||j!=="onCompositionStart"?j==="onCompositionEnd"&&Jl&&(T=U4()):(_a=f,mS="value"in _a?_a.value:_a.textContent,Jl=!0)),P=cv(l,j),0<P.length&&(j=new qT(j,e,null,n,f),d.push({event:j,listeners:P}),T?j.data=T:(T=W4(n),T!==null&&(j.data=T)))),(T=hW?pW(e,n):mW(e,n))&&(l=cv(l,"onBeforeInput"),0<l.length&&(f=new qT("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:l}),f.data=T))}n$(d,t)})}function kd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function cv(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Sd(e,n),o!=null&&r.unshift(kd(e,o,i)),o=Sd(e,t),o!=null&&r.push(kd(e,o,i))),e=e.return}return r}function Ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function aj(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Sd(n,o),c!=null&&a.unshift(kd(n,c,s))):i||(c=Sd(n,o),c!=null&&a.push(kd(n,c,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var jW=/\r\n?/g,AW=/\u0000|\uFFFD/g;function sj(e){return(typeof e=="string"?e:""+e).replace(jW,`
|
||
`).replace(AW,"")}function Xp(e,t,n){if(t=sj(t),sj(e)!==t&&n)throw Error(Pe(425))}function uv(){}var F_=null,B_=null;function U_(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 z_=typeof setTimeout=="function"?setTimeout:void 0,kW=typeof clearTimeout=="function"?clearTimeout:void 0,lj=typeof Promise=="function"?Promise:void 0,NW=typeof queueMicrotask=="function"?queueMicrotask:typeof lj<"u"?function(e){return lj.resolve(null).then(e).catch(MW)}:z_;function MW(e){setTimeout(function(){throw e})}function r1(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),Ed(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ed(t)}function Aa(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 cj(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 Cu=Math.random().toString(36).slice(2),Zi="__reactFiber$"+Cu,Nd="__reactProps$"+Cu,$o="__reactContainer$"+Cu,V_="__reactEvents$"+Cu,LW="__reactListeners$"+Cu,RW="__reactHandles$"+Cu;function Ns(e){var t=e[Zi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$o]||n[Zi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cj(e);e!==null;){if(n=e[Zi])return n;e=cj(e)}return t}e=n,n=e.parentNode}return null}function Uh(e){return e=e[Zi]||e[$o],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Pe(33))}function My(e){return e[Nd]||null}var W_=[],rc=-1;function Qa(e){return{current:e}}function At(e){0>rc||(e.current=W_[rc],W_[rc]=null,rc--)}function Ot(e,t){rc++,W_[rc]=e.current,e.current=t}var za={},Fn=Qa(za),cr=Qa(!1),Ys=za;function kc(e,t){var n=e.type.contextTypes;if(!n)return za;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 ur(e){return e=e.childContextTypes,e!=null}function fv(){At(cr),At(Fn)}function uj(e,t,n){if(Fn.current!==za)throw Error(Pe(168));Ot(Fn,t),Ot(cr,n)}function i$(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(Pe(108,bV(e)||"Unknown",i));return Vt({},n,r)}function dv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||za,Ys=Fn.current,Ot(Fn,e),Ot(cr,cr.current),!0}function fj(e,t,n){var r=e.stateNode;if(!r)throw Error(Pe(169));n?(e=i$(e,t,Ys),r.__reactInternalMemoizedMergedChildContext=e,At(cr),At(Fn),Ot(Fn,e)):At(cr),Ot(cr,n)}var So=null,Ly=!1,i1=!1;function o$(e){So===null?So=[e]:So.push(e)}function $W(e){Ly=!0,o$(e)}function Ja(){if(!i1&&So!==null){i1=!0;var e=0,t=pt;try{var n=So;for(pt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}So=null,Ly=!1}catch(i){throw So!==null&&(So=So.slice(e+1)),A4(fS,Ja),i}finally{pt=t,i1=!1}}return null}var ic=[],oc=0,hv=null,pv=0,Yr=[],Zr=0,Zs=null,Po=1,Co="";function _s(e,t){ic[oc++]=pv,ic[oc++]=hv,hv=e,pv=t}function a$(e,t,n){Yr[Zr++]=Po,Yr[Zr++]=Co,Yr[Zr++]=Zs,Zs=e;var r=Po;e=Co;var i=32-ji(r)-1;r&=~(1<<i),n+=1;var o=32-ji(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Po=1<<32-ji(t)+i|n<<i|r,Co=o+e}else Po=1<<o|n<<i|r,Co=e}function _S(e){e.return!==null&&(_s(e,1),a$(e,1,0))}function xS(e){for(;e===hv;)hv=ic[--oc],ic[oc]=null,pv=ic[--oc],ic[oc]=null;for(;e===Zs;)Zs=Yr[--Zr],Yr[Zr]=null,Co=Yr[--Zr],Yr[Zr]=null,Po=Yr[--Zr],Yr[Zr]=null}var Er=null,Pr=null,Nt=!1,Pi=null;function s$(e,t){var n=Jr(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 dj(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,Er=e,Pr=Aa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Er=e,Pr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Zs!==null?{id:Po,overflow:Co}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Er=e,Pr=null,!0):!1;default:return!1}}function H_(e){return(e.mode&1)!==0&&(e.flags&128)===0}function G_(e){if(Nt){var t=Pr;if(t){var n=t;if(!dj(e,t)){if(H_(e))throw Error(Pe(418));t=Aa(n.nextSibling);var r=Er;t&&dj(e,t)?s$(r,n):(e.flags=e.flags&-4097|2,Nt=!1,Er=e)}}else{if(H_(e))throw Error(Pe(418));e.flags=e.flags&-4097|2,Nt=!1,Er=e}}}function hj(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Er=e}function Qp(e){if(e!==Er)return!1;if(!Nt)return hj(e),Nt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!U_(e.type,e.memoizedProps)),t&&(t=Pr)){if(H_(e))throw l$(),Error(Pe(418));for(;t;)s$(e,t),t=Aa(t.nextSibling)}if(hj(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Pe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Pr=Aa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pr=null}}else Pr=Er?Aa(e.stateNode.nextSibling):null;return!0}function l$(){for(var e=Pr;e;)e=Aa(e.nextSibling)}function Nc(){Pr=Er=null,Nt=!1}function wS(e){Pi===null?Pi=[e]:Pi.push(e)}var IW=qo.ReactCurrentBatchConfig;function bf(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(Pe(309));var r=n.stateNode}if(!r)throw Error(Pe(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;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Pe(284));if(!n._owner)throw Error(Pe(290,e))}return e}function Jp(e,t){throw e=Object.prototype.toString.call(t),Error(Pe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pj(e){var t=e._init;return t(e._payload)}function c$(e){function t(b,_){if(e){var w=b.deletions;w===null?(b.deletions=[_],b.flags|=16):w.push(_)}}function n(b,_){if(!e)return null;for(;_!==null;)t(b,_),_=_.sibling;return null}function r(b,_){for(b=new Map;_!==null;)_.key!==null?b.set(_.key,_):b.set(_.index,_),_=_.sibling;return b}function i(b,_){return b=La(b,_),b.index=0,b.sibling=null,b}function o(b,_,w){return b.index=w,e?(w=b.alternate,w!==null?(w=w.index,w<_?(b.flags|=2,_):w):(b.flags|=2,_)):(b.flags|=1048576,_)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,_,w,S){return _===null||_.tag!==6?(_=f1(w,b.mode,S),_.return=b,_):(_=i(_,w),_.return=b,_)}function c(b,_,w,S){var C=w.type;return C===Ql?f(b,_,w.props.children,S,w.key):_!==null&&(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===pa&&pj(C)===_.type)?(S=i(_,w.props),S.ref=bf(b,_,w),S.return=b,S):(S=Wm(w.type,w.key,w.props,null,b.mode,S),S.ref=bf(b,_,w),S.return=b,S)}function l(b,_,w,S){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=d1(w,b.mode,S),_.return=b,_):(_=i(_,w.children||[]),_.return=b,_)}function f(b,_,w,S,C){return _===null||_.tag!==7?(_=Vs(w,b.mode,S,C),_.return=b,_):(_=i(_,w),_.return=b,_)}function d(b,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return _=f1(""+_,b.mode,w),_.return=b,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case zp:return w=Wm(_.type,_.key,_.props,null,b.mode,w),w.ref=bf(b,null,_),w.return=b,w;case Xl:return _=d1(_,b.mode,w),_.return=b,_;case pa:var S=_._init;return d(b,S(_._payload),w)}if(Ff(_)||pf(_))return _=Vs(_,b.mode,w,null),_.return=b,_;Jp(b,_)}return null}function p(b,_,w,S){var C=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:s(b,_,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zp:return w.key===C?c(b,_,w,S):null;case Xl:return w.key===C?l(b,_,w,S):null;case pa:return C=w._init,p(b,_,C(w._payload),S)}if(Ff(w)||pf(w))return C!==null?null:f(b,_,w,S,null);Jp(b,w)}return null}function v(b,_,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(w)||null,s(_,b,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case zp:return b=b.get(S.key===null?w:S.key)||null,c(_,b,S,C);case Xl:return b=b.get(S.key===null?w:S.key)||null,l(_,b,S,C);case pa:var P=S._init;return v(b,_,w,P(S._payload),C)}if(Ff(S)||pf(S))return b=b.get(w)||null,f(_,b,S,C,null);Jp(_,S)}return null}function g(b,_,w,S){for(var C=null,P=null,T=_,j=_=0,$=null;T!==null&&j<w.length;j++){T.index>j?($=T,T=null):$=T.sibling;var M=p(b,T,w[j],S);if(M===null){T===null&&(T=$);break}e&&T&&M.alternate===null&&t(b,T),_=o(M,_,j),P===null?C=M:P.sibling=M,P=M,T=$}if(j===w.length)return n(b,T),Nt&&_s(b,j),C;if(T===null){for(;j<w.length;j++)T=d(b,w[j],S),T!==null&&(_=o(T,_,j),P===null?C=T:P.sibling=T,P=T);return Nt&&_s(b,j),C}for(T=r(b,T);j<w.length;j++)$=v(T,b,j,w[j],S),$!==null&&(e&&$.alternate!==null&&T.delete($.key===null?j:$.key),_=o($,_,j),P===null?C=$:P.sibling=$,P=$);return e&&T.forEach(function(I){return t(b,I)}),Nt&&_s(b,j),C}function y(b,_,w,S){var C=pf(w);if(typeof C!="function")throw Error(Pe(150));if(w=C.call(w),w==null)throw Error(Pe(151));for(var P=C=null,T=_,j=_=0,$=null,M=w.next();T!==null&&!M.done;j++,M=w.next()){T.index>j?($=T,T=null):$=T.sibling;var I=p(b,T,M.value,S);if(I===null){T===null&&(T=$);break}e&&T&&I.alternate===null&&t(b,T),_=o(I,_,j),P===null?C=I:P.sibling=I,P=I,T=$}if(M.done)return n(b,T),Nt&&_s(b,j),C;if(T===null){for(;!M.done;j++,M=w.next())M=d(b,M.value,S),M!==null&&(_=o(M,_,j),P===null?C=M:P.sibling=M,P=M);return Nt&&_s(b,j),C}for(T=r(b,T);!M.done;j++,M=w.next())M=v(T,b,j,M.value,S),M!==null&&(e&&M.alternate!==null&&T.delete(M.key===null?j:M.key),_=o(M,_,j),P===null?C=M:P.sibling=M,P=M);return e&&T.forEach(function(F){return t(b,F)}),Nt&&_s(b,j),C}function x(b,_,w,S){if(typeof w=="object"&&w!==null&&w.type===Ql&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case zp:e:{for(var C=w.key,P=_;P!==null;){if(P.key===C){if(C=w.type,C===Ql){if(P.tag===7){n(b,P.sibling),_=i(P,w.props.children),_.return=b,b=_;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===pa&&pj(C)===P.type){n(b,P.sibling),_=i(P,w.props),_.ref=bf(b,P,w),_.return=b,b=_;break e}n(b,P);break}else t(b,P);P=P.sibling}w.type===Ql?(_=Vs(w.props.children,b.mode,S,w.key),_.return=b,b=_):(S=Wm(w.type,w.key,w.props,null,b.mode,S),S.ref=bf(b,_,w),S.return=b,b=S)}return a(b);case Xl:e:{for(P=w.key;_!==null;){if(_.key===P)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(b,_.sibling),_=i(_,w.children||[]),_.return=b,b=_;break e}else{n(b,_);break}else t(b,_);_=_.sibling}_=d1(w,b.mode,S),_.return=b,b=_}return a(b);case pa:return P=w._init,x(b,_,P(w._payload),S)}if(Ff(w))return g(b,_,w,S);if(pf(w))return y(b,_,w,S);Jp(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(b,_.sibling),_=i(_,w),_.return=b,b=_):(n(b,_),_=f1(w,b.mode,S),_.return=b,b=_),a(b)):n(b,_)}return x}var Mc=c$(!0),u$=c$(!1),mv=Qa(null),vv=null,ac=null,OS=null;function SS(){OS=ac=vv=null}function PS(e){var t=mv.current;At(mv),e._currentValue=t}function K_(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 wc(e,t){vv=e,OS=ac=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ar=!0),e.firstContext=null)}function oi(e){var t=e._currentValue;if(OS!==e)if(e={context:e,memoizedValue:t,next:null},ac===null){if(vv===null)throw Error(Pe(308));ac=e,vv.dependencies={lanes:0,firstContext:e}}else ac=ac.next=e;return t}var Ms=null;function CS(e){Ms===null?Ms=[e]:Ms.push(e)}function f$(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,CS(t)):(n.next=i.next,i.next=n),t.interleaved=n,Io(e,r)}function Io(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 ma=!1;function ES(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d$(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 Ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ka(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,Io(e,n)}return i=r.interleaved,i===null?(t.next=t,CS(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function Dm(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,dS(e,n)}}function mj(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 gv(e,t,n,r){var i=e.updateQueue;ma=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?o=l:a.next=l,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=l:s.next=l,f.lastBaseUpdate=c))}if(o!==null){var d=i.baseState;a=0,f=l=c=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=Vt({},d,p);break e;case 2:ma=!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?(l=f=v,c=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&&(c=d),i.baseState=c,i.firstBaseUpdate=l,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);Qs|=a,e.lanes=a,e.memoizedState=d}}function vj(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(Pe(191,i));i.call(r)}}}var zh={},no=Qa(zh),Md=Qa(zh),Ld=Qa(zh);function Ls(e){if(e===zh)throw Error(Pe(174));return e}function TS(e,t){switch(Ot(Ld,t),Ot(Md,e),Ot(no,zh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:E_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=E_(t,e)}At(no),Ot(no,t)}function Lc(){At(no),At(Md),At(Ld)}function h$(e){Ls(Ld.current);var t=Ls(no.current),n=E_(t,e.type);t!==n&&(Ot(Md,e),Ot(no,n))}function jS(e){Md.current===e&&(At(no),At(Md))}var Ft=Qa(0);function yv(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 o1=[];function AS(){for(var e=0;e<o1.length;e++)o1[e]._workInProgressVersionPrimary=null;o1.length=0}var Fm=qo.ReactCurrentDispatcher,a1=qo.ReactCurrentBatchConfig,Xs=0,Ut=null,ln=null,gn=null,bv=!1,Jf=!1,Rd=0,DW=0;function Ln(){throw Error(Pe(321))}function kS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mi(e[n],t[n]))return!1;return!0}function NS(e,t,n,r,i,o){if(Xs=o,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Fm.current=e===null||e.memoizedState===null?zW:VW,e=n(r,i),Jf){o=0;do{if(Jf=!1,Rd=0,25<=o)throw Error(Pe(301));o+=1,gn=ln=null,t.updateQueue=null,Fm.current=WW,e=n(r,i)}while(Jf)}if(Fm.current=_v,t=ln!==null&&ln.next!==null,Xs=0,gn=ln=Ut=null,bv=!1,t)throw Error(Pe(300));return e}function MS(){var e=Rd!==0;return Rd=0,e}function qi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gn===null?Ut.memoizedState=gn=e:gn=gn.next=e,gn}function ai(){if(ln===null){var e=Ut.alternate;e=e!==null?e.memoizedState:null}else e=ln.next;var t=gn===null?Ut.memoizedState:gn.next;if(t!==null)gn=t,ln=e;else{if(e===null)throw Error(Pe(310));ln=e,e={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},gn===null?Ut.memoizedState=gn=e:gn=gn.next=e}return gn}function $d(e,t){return typeof t=="function"?t(e):t}function s1(e){var t=ai(),n=t.queue;if(n===null)throw Error(Pe(311));n.lastRenderedReducer=e;var r=ln,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,c=null,l=o;do{var f=l.lane;if((Xs&f)===f)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,a=r):c=c.next=d,Ut.lanes|=f,Qs|=f}l=l.next}while(l!==null&&l!==o);c===null?a=r:c.next=s,Mi(r,t.memoizedState)||(ar=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ut.lanes|=o,Qs|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function l1(e){var t=ai(),n=t.queue;if(n===null)throw Error(Pe(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);Mi(o,t.memoizedState)||(ar=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function p$(){}function m$(e,t){var n=Ut,r=ai(),i=t(),o=!Mi(r.memoizedState,i);if(o&&(r.memoizedState=i,ar=!0),r=r.queue,LS(y$.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||gn!==null&&gn.memoizedState.tag&1){if(n.flags|=2048,Id(9,g$.bind(null,n,r,i,t),void 0,null),_n===null)throw Error(Pe(349));Xs&30||v$(n,t,i)}return i}function v$(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function g$(e,t,n,r){t.value=n,t.getSnapshot=r,b$(t)&&_$(e)}function y$(e,t,n){return n(function(){b$(t)&&_$(e)})}function b$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mi(e,n)}catch{return!0}}function _$(e){var t=Io(e,1);t!==null&&Ai(t,e,1,-1)}function gj(e){var t=qi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$d,lastRenderedState:e},t.queue=e,e=e.dispatch=UW.bind(null,Ut,e),[t.memoizedState,e]}function Id(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.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 x$(){return ai().memoizedState}function Bm(e,t,n,r){var i=qi();Ut.flags|=e,i.memoizedState=Id(1|t,n,void 0,r===void 0?null:r)}function Ry(e,t,n,r){var i=ai();r=r===void 0?null:r;var o=void 0;if(ln!==null){var a=ln.memoizedState;if(o=a.destroy,r!==null&&kS(r,a.deps)){i.memoizedState=Id(t,n,o,r);return}}Ut.flags|=e,i.memoizedState=Id(1|t,n,o,r)}function yj(e,t){return Bm(8390656,8,e,t)}function LS(e,t){return Ry(2048,8,e,t)}function w$(e,t){return Ry(4,2,e,t)}function O$(e,t){return Ry(4,4,e,t)}function S$(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 P$(e,t,n){return n=n!=null?n.concat([e]):null,Ry(4,4,S$.bind(null,t,e),n)}function RS(){}function C$(e,t){var n=ai();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&kS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function E$(e,t){var n=ai();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&kS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function T$(e,t,n){return Xs&21?(Mi(n,t)||(n=M4(),Ut.lanes|=n,Qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ar=!0),e.memoizedState=n)}function FW(e,t){var n=pt;pt=n!==0&&4>n?n:4,e(!0);var r=a1.transition;a1.transition={};try{e(!1),t()}finally{pt=n,a1.transition=r}}function j$(){return ai().memoizedState}function BW(e,t,n){var r=Ma(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},A$(e))k$(t,n);else if(n=f$(e,t,n,r),n!==null){var i=Zn();Ai(n,e,r,i),N$(n,t,r)}}function UW(e,t,n){var r=Ma(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(A$(e))k$(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,Mi(s,a)){var c=t.interleaved;c===null?(i.next=i,CS(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=f$(e,t,i,r),n!==null&&(i=Zn(),Ai(n,e,r,i),N$(n,t,r))}}function A$(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function k$(e,t){Jf=bv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function N$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dS(e,n)}}var _v={readContext:oi,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useInsertionEffect:Ln,useLayoutEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useMutableSource:Ln,useSyncExternalStore:Ln,useId:Ln,unstable_isNewReconciler:!1},zW={readContext:oi,useCallback:function(e,t){return qi().memoizedState=[e,t===void 0?null:t],e},useContext:oi,useEffect:yj,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bm(4194308,4,S$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bm(4,2,e,t)},useMemo:function(e,t){var n=qi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qi();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=BW.bind(null,Ut,e),[r.memoizedState,e]},useRef:function(e){var t=qi();return e={current:e},t.memoizedState=e},useState:gj,useDebugValue:RS,useDeferredValue:function(e){return qi().memoizedState=e},useTransition:function(){var e=gj(!1),t=e[0];return e=FW.bind(null,e[1]),qi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ut,i=qi();if(Nt){if(n===void 0)throw Error(Pe(407));n=n()}else{if(n=t(),_n===null)throw Error(Pe(349));Xs&30||v$(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,yj(y$.bind(null,r,o,e),[e]),r.flags|=2048,Id(9,g$.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=qi(),t=_n.identifierPrefix;if(Nt){var n=Co,r=Po;n=(r&~(1<<32-ji(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DW++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VW={readContext:oi,useCallback:C$,useContext:oi,useEffect:LS,useImperativeHandle:P$,useInsertionEffect:w$,useLayoutEffect:O$,useMemo:E$,useReducer:s1,useRef:x$,useState:function(){return s1($d)},useDebugValue:RS,useDeferredValue:function(e){var t=ai();return T$(t,ln.memoizedState,e)},useTransition:function(){var e=s1($d)[0],t=ai().memoizedState;return[e,t]},useMutableSource:p$,useSyncExternalStore:m$,useId:j$,unstable_isNewReconciler:!1},WW={readContext:oi,useCallback:C$,useContext:oi,useEffect:LS,useImperativeHandle:P$,useInsertionEffect:w$,useLayoutEffect:O$,useMemo:E$,useReducer:l1,useRef:x$,useState:function(){return l1($d)},useDebugValue:RS,useDeferredValue:function(e){var t=ai();return ln===null?t.memoizedState=e:T$(t,ln.memoizedState,e)},useTransition:function(){var e=l1($d)[0],t=ai().memoizedState;return[e,t]},useMutableSource:p$,useSyncExternalStore:m$,useId:j$,unstable_isNewReconciler:!1};function xi(e,t){if(e&&e.defaultProps){t=Vt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function q_(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Vt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $y={isMounted:function(e){return(e=e._reactInternals)?ml(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zn(),i=Ma(e),o=Ao(r,i);o.payload=t,n!=null&&(o.callback=n),t=ka(e,o,i),t!==null&&(Ai(t,e,i,r),Dm(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zn(),i=Ma(e),o=Ao(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ka(e,o,i),t!==null&&(Ai(t,e,i,r),Dm(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zn(),r=Ma(e),i=Ao(n,r);i.tag=2,t!=null&&(i.callback=t),t=ka(e,i,r),t!==null&&(Ai(t,e,r,n),Dm(t,e,r))}};function bj(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?!jd(n,r)||!jd(i,o):!0}function M$(e,t,n){var r=!1,i=za,o=t.contextType;return typeof o=="object"&&o!==null?o=oi(o):(i=ur(t)?Ys:Fn.current,r=t.contextTypes,o=(r=r!=null)?kc(e,i):za),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$y,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _j(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&&$y.enqueueReplaceState(t,t.state,null)}function Y_(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ES(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=oi(o):(o=ur(t)?Ys:Fn.current,i.context=kc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(q_(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&&$y.enqueueReplaceState(i,i.state,null),gv(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rc(e,t){try{var n="",r=t;do n+=yV(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 c1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Z_(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HW=typeof WeakMap=="function"?WeakMap:Map;function L$(e,t,n){n=Ao(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wv||(wv=!0,ax=r),Z_(e,t)},n}function R$(e,t,n){n=Ao(-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(){Z_(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Z_(e,t),typeof r!="function"&&(Na===null?Na=new Set([this]):Na.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function xj(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HW;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=oH.bind(null,e,t,n),t.then(e,e))}function wj(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 Oj(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=Ao(-1,1),t.tag=2,ka(n,t,1))),n.lanes|=1),e)}var GW=qo.ReactCurrentOwner,ar=!1;function Gn(e,t,n,r){t.child=e===null?u$(t,null,n,r):Mc(t,e.child,n,r)}function Sj(e,t,n,r,i){n=n.render;var o=t.ref;return wc(t,i),r=NS(e,t,n,r,o,i),n=MS(),e!==null&&!ar?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Do(e,t,i)):(Nt&&n&&_S(t),t.flags|=1,Gn(e,t,r,i),t.child)}function Pj(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!VS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$$(e,t,o,r,i)):(e=Wm(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:jd,n(a,r)&&e.ref===t.ref)return Do(e,t,i)}return t.flags|=1,e=La(o,r),e.ref=t.ref,e.return=t,t.child=e}function $$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(jd(o,r)&&e.ref===t.ref)if(ar=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ar=!0);else return t.lanes=e.lanes,Do(e,t,i)}return X_(e,t,n,r,i)}function I$(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(lc,wr),wr|=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(lc,wr),wr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ot(lc,wr),wr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ot(lc,wr),wr|=r;return Gn(e,t,i,n),t.child}function D$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function X_(e,t,n,r,i){var o=ur(n)?Ys:Fn.current;return o=kc(t,o),wc(t,i),n=NS(e,t,n,r,o,i),r=MS(),e!==null&&!ar?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Do(e,t,i)):(Nt&&r&&_S(t),t.flags|=1,Gn(e,t,n,i),t.child)}function Cj(e,t,n,r,i){if(ur(n)){var o=!0;dv(t)}else o=!1;if(wc(t,i),t.stateNode===null)Um(e,t),M$(t,n,r),Y_(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=oi(l):(l=ur(n)?Ys:Fn.current,l=kc(t,l));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||c!==l)&&_j(t,a,r,l),ma=!1;var p=t.memoizedState;a.state=p,gv(t,r,a,i),c=t.memoizedState,s!==r||p!==c||cr.current||ma?(typeof f=="function"&&(q_(t,n,f,r),c=t.memoizedState),(s=ma||bj(t,n,s,r,p,c,l))?(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=c),a.props=r,a.state=c,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,d$(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:xi(t.type,s),a.props=l,d=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=oi(c):(c=ur(n)?Ys:Fn.current,c=kc(t,c));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==c)&&_j(t,a,r,c),ma=!1,p=t.memoizedState,a.state=p,gv(t,r,a,i);var g=t.memoizedState;s!==d||p!==g||cr.current||ma?(typeof v=="function"&&(q_(t,n,v,r),g=t.memoizedState),(l=ma||bj(t,n,l,r,p,g,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,c)),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=c,r=l):(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 Q_(e,t,n,r,o,i)}function Q_(e,t,n,r,i,o){D$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&fj(t,n,!1),Do(e,t,o);r=t.stateNode,GW.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Mc(t,e.child,null,o),t.child=Mc(t,null,s,o)):Gn(e,t,s,o),t.memoizedState=r.state,i&&fj(t,n,!0),t.child}function F$(e){var t=e.stateNode;t.pendingContext?uj(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uj(e,t.context,!1),TS(e,t.containerInfo)}function Ej(e,t,n,r,i){return Nc(),wS(i),t.flags|=256,Gn(e,t,n,r),t.child}var J_={dehydrated:null,treeContext:null,retryLane:0};function ex(e){return{baseLanes:e,cachePool:null,transitions:null}}function B$(e,t,n){var r=t.pendingProps,i=Ft.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(Ft,i&1),e===null)return G_(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=Fy(a,r,0,null),e=Vs(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ex(n),t.memoizedState=J_,e):$S(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return KW(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=La(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=La(s,o):(o=Vs(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?ex(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=J_,r}return o=e.child,e=o.sibling,r=La(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 $S(e,t){return t=Fy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function em(e,t,n,r){return r!==null&&wS(r),Mc(t,e.child,null,n),e=$S(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KW(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=c1(Error(Pe(422))),em(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Fy({mode:"visible",children:r.children},i,0,null),o=Vs(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Mc(t,e.child,null,a),t.child.memoizedState=ex(a),t.memoizedState=J_,o);if(!(t.mode&1))return em(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Pe(419)),r=c1(o,r,void 0),em(e,t,a,r)}if(s=(a&e.childLanes)!==0,ar||s){if(r=_n,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,Io(e,i),Ai(r,e,i,-1))}return zS(),r=c1(Error(Pe(421))),em(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=aH.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Pr=Aa(i.nextSibling),Er=t,Nt=!0,Pi=null,e!==null&&(Yr[Zr++]=Po,Yr[Zr++]=Co,Yr[Zr++]=Zs,Po=e.id,Co=e.overflow,Zs=t),t=$S(t,r.children),t.flags|=4096,t)}function Tj(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),K_(e.return,t,n)}function u1(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 U$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Gn(e,t,r.children,n),r=Ft.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&&Tj(e,n,t);else if(e.tag===19)Tj(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(Ft,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&&yv(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),u1(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&&yv(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}u1(t,!0,n,null,o);break;case"together":u1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Um(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Do(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Pe(153));if(t.child!==null){for(e=t.child,n=La(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=La(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qW(e,t,n){switch(t.tag){case 3:F$(t),Nc();break;case 5:h$(t);break;case 1:ur(t.type)&&dv(t);break;case 4:TS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ot(mv,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ot(Ft,Ft.current&1),t.flags|=128,null):n&t.child.childLanes?B$(e,t,n):(Ot(Ft,Ft.current&1),e=Do(e,t,n),e!==null?e.sibling:null);Ot(Ft,Ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return U$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(Ft,Ft.current),r)break;return null;case 22:case 23:return t.lanes=0,I$(e,t,n)}return Do(e,t,n)}var z$,tx,V$,W$;z$=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}};tx=function(){};V$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ls(no.current);var o=null;switch(n){case"input":i=O_(e,i),r=O_(e,r),o=[];break;case"select":i=Vt({},i,{value:void 0}),r=Vt({},r,{value:void 0}),o=[];break;case"textarea":i=C_(e,i),r=C_(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=uv)}T_(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(wd.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var c=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(l,n)),n=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(wd.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Ct("scroll",e),o||s===c||(o=[])):(o=o||[]).push(l,c))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};W$=function(e,t,n,r){n!==r&&(t.flags|=4)};function _f(e,t){if(!Nt)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 Rn(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 YW(e,t,n){var r=t.pendingProps;switch(xS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(t),null;case 1:return ur(t.type)&&fv(),Rn(t),null;case 3:return r=t.stateNode,Lc(),At(cr),At(Fn),AS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pi!==null&&(cx(Pi),Pi=null))),tx(e,t),Rn(t),null;case 5:jS(t);var i=Ls(Ld.current);if(n=t.type,e!==null&&t.stateNode!=null)V$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Pe(166));return Rn(t),null}if(e=Ls(no.current),Qp(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Zi]=t,r[Nd]=o,e=(t.mode&1)!==0,n){case"dialog":Ct("cancel",r),Ct("close",r);break;case"iframe":case"object":case"embed":Ct("load",r);break;case"video":case"audio":for(i=0;i<Uf.length;i++)Ct(Uf[i],r);break;case"source":Ct("error",r);break;case"img":case"image":case"link":Ct("error",r),Ct("load",r);break;case"details":Ct("toggle",r);break;case"input":IT(r,o),Ct("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ct("invalid",r);break;case"textarea":FT(r,o),Ct("invalid",r)}T_(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&&Xp(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Xp(r.textContent,s,e),i=["children",""+s]):wd.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ct("scroll",r)}switch(n){case"input":Vp(r),DT(r,o,!0);break;case"textarea":Vp(r),BT(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=uv)}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=y4(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[Zi]=t,e[Nd]=r,z$(e,t,!1,!1),t.stateNode=e;e:{switch(a=j_(n,r),n){case"dialog":Ct("cancel",e),Ct("close",e),i=r;break;case"iframe":case"object":case"embed":Ct("load",e),i=r;break;case"video":case"audio":for(i=0;i<Uf.length;i++)Ct(Uf[i],e);i=r;break;case"source":Ct("error",e),i=r;break;case"img":case"image":case"link":Ct("error",e),Ct("load",e),i=r;break;case"details":Ct("toggle",e),i=r;break;case"input":IT(e,r),i=O_(e,r),Ct("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Vt({},r,{value:void 0}),Ct("invalid",e);break;case"textarea":FT(e,r),i=C_(e,r),Ct("invalid",e);break;default:i=r}T_(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var c=s[o];o==="style"?x4(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&b4(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Od(e,c):typeof c=="number"&&Od(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(wd.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Ct("scroll",e):c!=null&&aS(e,o,c,a))}switch(n){case"input":Vp(e),DT(e,r,!1);break;case"textarea":Vp(e),BT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ua(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?yc(e,!!r.multiple,o,!1):r.defaultValue!=null&&yc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=uv)}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 Rn(t),null;case 6:if(e&&t.stateNode!=null)W$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Pe(166));if(n=Ls(Ld.current),Ls(no.current),Qp(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zi]=t,(o=r.nodeValue!==n)&&(e=Er,e!==null))switch(e.tag){case 3:Xp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xp(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zi]=t,t.stateNode=r}return Rn(t),null;case 13:if(At(Ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Nt&&Pr!==null&&t.mode&1&&!(t.flags&128))l$(),Nc(),t.flags|=98560,o=!1;else if(o=Qp(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Pe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Pe(317));o[Zi]=t}else Nc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rn(t),o=!1}else Pi!==null&&(cx(Pi),Pi=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||Ft.current&1?cn===0&&(cn=3):zS())),t.updateQueue!==null&&(t.flags|=4),Rn(t),null);case 4:return Lc(),tx(e,t),e===null&&Ad(t.stateNode.containerInfo),Rn(t),null;case 10:return PS(t.type._context),Rn(t),null;case 17:return ur(t.type)&&fv(),Rn(t),null;case 19:if(At(Ft),o=t.memoizedState,o===null)return Rn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)_f(o,!1);else{if(cn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=yv(e),a!==null){for(t.flags|=128,_f(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(Ft,Ft.current&1|2),t.child}e=e.sibling}o.tail!==null&&Xt()>$c&&(t.flags|=128,r=!0,_f(o,!1),t.lanes=4194304)}else{if(!r)if(e=yv(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_f(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Nt)return Rn(t),null}else 2*Xt()-o.renderingStartTime>$c&&n!==1073741824&&(t.flags|=128,r=!0,_f(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=Xt(),t.sibling=null,n=Ft.current,Ot(Ft,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return US(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wr&1073741824&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(Pe(156,t.tag))}function ZW(e,t){switch(xS(t),t.tag){case 1:return ur(t.type)&&fv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lc(),At(cr),At(Fn),AS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jS(t),null;case 13:if(At(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Pe(340));Nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Ft),null;case 4:return Lc(),null;case 10:return PS(t.type._context),null;case 22:case 23:return US(),null;case 24:return null;default:return null}}var tm=!1,In=!1,XW=typeof WeakSet=="function"?WeakSet:Set,$e=null;function sc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ht(e,t,r)}else n.current=null}function nx(e,t,n){try{n()}catch(r){Ht(e,t,r)}}var jj=!1;function QW(e,t){if(F_=sv,e=Y4(),bS(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,c=-1,l=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||(c=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&&++l===i&&(s=a),p===o&&++f===r&&(c=a),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(B_={focusedElem:e,selectionRange:n},sv=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;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,x=g.memoizedState,b=t.stateNode,_=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:xi(t.type,y),x);b.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Pe(163))}}catch(S){Ht(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return g=jj,jj=!1,g}function ed(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&&nx(t,n,o)}i=i.next}while(i!==r)}}function Iy(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 rx(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 H$(e){var t=e.alternate;t!==null&&(e.alternate=null,H$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zi],delete t[Nd],delete t[V_],delete t[LW],delete t[RW])),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 G$(e){return e.tag===5||e.tag===3||e.tag===4}function Aj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G$(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 ix(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=uv));else if(r!==4&&(e=e.child,e!==null))for(ix(e,t,n),e=e.sibling;e!==null;)ix(e,t,n),e=e.sibling}function ox(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(ox(e,t,n),e=e.sibling;e!==null;)ox(e,t,n),e=e.sibling}var An=null,wi=!1;function aa(e,t,n){for(n=n.child;n!==null;)K$(e,t,n),n=n.sibling}function K$(e,t,n){if(to&&typeof to.onCommitFiberUnmount=="function")try{to.onCommitFiberUnmount(jy,n)}catch{}switch(n.tag){case 5:In||sc(n,t);case 6:var r=An,i=wi;An=null,aa(e,t,n),An=r,wi=i,An!==null&&(wi?(e=An,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):An.removeChild(n.stateNode));break;case 18:An!==null&&(wi?(e=An,n=n.stateNode,e.nodeType===8?r1(e.parentNode,n):e.nodeType===1&&r1(e,n),Ed(e)):r1(An,n.stateNode));break;case 4:r=An,i=wi,An=n.stateNode.containerInfo,wi=!0,aa(e,t,n),An=r,wi=i;break;case 0:case 11:case 14:case 15:if(!In&&(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)&&nx(n,t,a),i=i.next}while(i!==r)}aa(e,t,n);break;case 1:if(!In&&(sc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ht(n,t,s)}aa(e,t,n);break;case 21:aa(e,t,n);break;case 22:n.mode&1?(In=(r=In)||n.memoizedState!==null,aa(e,t,n),In=r):aa(e,t,n);break;default:aa(e,t,n)}}function kj(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new XW),t.forEach(function(r){var i=sH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yi(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:An=s.stateNode,wi=!1;break e;case 3:An=s.stateNode.containerInfo,wi=!0;break e;case 4:An=s.stateNode.containerInfo,wi=!0;break e}s=s.return}if(An===null)throw Error(Pe(160));K$(o,a,i),An=null,wi=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(l){Ht(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)q$(t,e),t=t.sibling}function q$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yi(t,e),Gi(e),r&4){try{ed(3,e,e.return),Iy(3,e)}catch(y){Ht(e,e.return,y)}try{ed(5,e,e.return)}catch(y){Ht(e,e.return,y)}}break;case 1:yi(t,e),Gi(e),r&512&&n!==null&&sc(n,n.return);break;case 5:if(yi(t,e),Gi(e),r&512&&n!==null&&sc(n,n.return),e.flags&32){var i=e.stateNode;try{Od(i,"")}catch(y){Ht(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,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&v4(i,o),j_(s,a);var l=j_(s,o);for(a=0;a<c.length;a+=2){var f=c[a],d=c[a+1];f==="style"?x4(i,d):f==="dangerouslySetInnerHTML"?b4(i,d):f==="children"?Od(i,d):aS(i,f,d,l)}switch(s){case"input":S_(i,o);break;case"textarea":g4(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?yc(i,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?yc(i,!!o.multiple,o.defaultValue,!0):yc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Nd]=o}catch(y){Ht(e,e.return,y)}}break;case 6:if(yi(t,e),Gi(e),r&4){if(e.stateNode===null)throw Error(Pe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Ht(e,e.return,y)}}break;case 3:if(yi(t,e),Gi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ed(t.containerInfo)}catch(y){Ht(e,e.return,y)}break;case 4:yi(t,e),Gi(e);break;case 13:yi(t,e),Gi(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(FS=Xt())),r&4&&kj(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(In=(l=In)||f,yi(t,e),In=l):yi(t,e),Gi(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!f&&e.mode&1)for($e=e,f=e.child;f!==null;){for(d=$e=f;$e!==null;){switch(p=$e,v=p.child,p.tag){case 0:case 11:case 14:case 15:ed(4,p,p.return);break;case 1:sc(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){Ht(r,n,y)}}break;case 5:sc(p,p.return);break;case 22:if(p.memoizedState!==null){Mj(d);continue}}v!==null?(v.return=p,$e=v):Mj(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=_4("display",a))}catch(y){Ht(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){Ht(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:yi(t,e),Gi(e),r&4&&kj(e);break;case 21:break;default:yi(t,e),Gi(e)}}function Gi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(G$(n)){var r=n;break e}n=n.return}throw Error(Pe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Od(i,""),r.flags&=-33);var o=Aj(e);ox(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=Aj(e);ix(e,s,a);break;default:throw Error(Pe(161))}}catch(c){Ht(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JW(e,t,n){$e=e,Y$(e)}function Y$(e,t,n){for(var r=(e.mode&1)!==0;$e!==null;){var i=$e,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||tm;if(!a){var s=i.alternate,c=s!==null&&s.memoizedState!==null||In;s=tm;var l=In;if(tm=a,(In=c)&&!l)for($e=i;$e!==null;)a=$e,c=a.child,a.tag===22&&a.memoizedState!==null?Lj(i):c!==null?(c.return=a,$e=c):Lj(i);for(;o!==null;)$e=o,Y$(o),o=o.sibling;$e=i,tm=s,In=l}Nj(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):Nj(e)}}function Nj(e){for(;$e!==null;){var t=$e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:In||Iy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!In)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:xi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&vj(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}vj(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var f=l.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Ed(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Pe(163))}In||t.flags&512&&rx(t)}catch(p){Ht(t,t.return,p)}}if(t===e){$e=null;break}if(n=t.sibling,n!==null){n.return=t.return,$e=n;break}$e=t.return}}function Mj(e){for(;$e!==null;){var t=$e;if(t===e){$e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$e=n;break}$e=t.return}}function Lj(e){for(;$e!==null;){var t=$e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Iy(4,t)}catch(c){Ht(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Ht(t,i,c)}}var o=t.return;try{rx(t)}catch(c){Ht(t,o,c)}break;case 5:var a=t.return;try{rx(t)}catch(c){Ht(t,a,c)}}}catch(c){Ht(t,t.return,c)}if(t===e){$e=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$e=s;break}$e=t.return}}var eH=Math.ceil,xv=qo.ReactCurrentDispatcher,IS=qo.ReactCurrentOwner,ni=qo.ReactCurrentBatchConfig,ct=0,_n=null,rn=null,kn=0,wr=0,lc=Qa(0),cn=0,Dd=null,Qs=0,Dy=0,DS=0,td=null,or=null,FS=0,$c=1/0,wo=null,wv=!1,ax=null,Na=null,nm=!1,xa=null,Ov=0,nd=0,sx=null,zm=-1,Vm=0;function Zn(){return ct&6?Xt():zm!==-1?zm:zm=Xt()}function Ma(e){return e.mode&1?ct&2&&kn!==0?kn&-kn:IW.transition!==null?(Vm===0&&(Vm=M4()),Vm):(e=pt,e!==0||(e=window.event,e=e===void 0?16:B4(e.type)),e):1}function Ai(e,t,n,r){if(50<nd)throw nd=0,sx=null,Error(Pe(185));Fh(e,n,r),(!(ct&2)||e!==_n)&&(e===_n&&(!(ct&2)&&(Dy|=n),cn===4&&ya(e,kn)),fr(e,r),n===1&&ct===0&&!(t.mode&1)&&($c=Xt()+500,Ly&&Ja()))}function fr(e,t){var n=e.callbackNode;IV(e,t);var r=av(e,e===_n?kn:0);if(r===0)n!==null&&VT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&VT(n),t===1)e.tag===0?$W(Rj.bind(null,e)):o$(Rj.bind(null,e)),NW(function(){!(ct&6)&&Ja()}),n=null;else{switch(L4(r)){case 1:n=fS;break;case 4:n=k4;break;case 16:n=ov;break;case 536870912:n=N4;break;default:n=ov}n=rI(n,Z$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Z$(e,t){if(zm=-1,Vm=0,ct&6)throw Error(Pe(327));var n=e.callbackNode;if(Oc()&&e.callbackNode!==n)return null;var r=av(e,e===_n?kn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Sv(e,r);else{t=r;var i=ct;ct|=2;var o=Q$();(_n!==e||kn!==t)&&(wo=null,$c=Xt()+500,zs(e,t));do try{rH();break}catch(s){X$(e,s)}while(!0);SS(),xv.current=o,ct=i,rn!==null?t=0:(_n=null,kn=0,t=cn)}if(t!==0){if(t===2&&(i=L_(e),i!==0&&(r=i,t=lx(e,i))),t===1)throw n=Dd,zs(e,0),ya(e,r),fr(e,Xt()),n;if(t===6)ya(e,r);else{if(i=e.current.alternate,!(r&30)&&!tH(i)&&(t=Sv(e,r),t===2&&(o=L_(e),o!==0&&(r=o,t=lx(e,o))),t===1))throw n=Dd,zs(e,0),ya(e,r),fr(e,Xt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Pe(345));case 2:xs(e,or,wo);break;case 3:if(ya(e,r),(r&130023424)===r&&(t=FS+500-Xt(),10<t)){if(av(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Zn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=z_(xs.bind(null,e,or,wo),t);break}xs(e,or,wo);break;case 4:if(ya(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-ji(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eH(r/1960))-r,10<r){e.timeoutHandle=z_(xs.bind(null,e,or,wo),r);break}xs(e,or,wo);break;case 5:xs(e,or,wo);break;default:throw Error(Pe(329))}}}return fr(e,Xt()),e.callbackNode===n?Z$.bind(null,e):null}function lx(e,t){var n=td;return e.current.memoizedState.isDehydrated&&(zs(e,t).flags|=256),e=Sv(e,t),e!==2&&(t=or,or=n,t!==null&&cx(t)),e}function cx(e){or===null?or=e:or.push.apply(or,e)}function tH(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(!Mi(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 ya(e,t){for(t&=~DS,t&=~Dy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ji(t),r=1<<n;e[n]=-1,t&=~r}}function Rj(e){if(ct&6)throw Error(Pe(327));Oc();var t=av(e,0);if(!(t&1))return fr(e,Xt()),null;var n=Sv(e,t);if(e.tag!==0&&n===2){var r=L_(e);r!==0&&(t=r,n=lx(e,r))}if(n===1)throw n=Dd,zs(e,0),ya(e,t),fr(e,Xt()),n;if(n===6)throw Error(Pe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,or,wo),fr(e,Xt()),null}function BS(e,t){var n=ct;ct|=1;try{return e(t)}finally{ct=n,ct===0&&($c=Xt()+500,Ly&&Ja())}}function Js(e){xa!==null&&xa.tag===0&&!(ct&6)&&Oc();var t=ct;ct|=1;var n=ni.transition,r=pt;try{if(ni.transition=null,pt=1,e)return e()}finally{pt=r,ni.transition=n,ct=t,!(ct&6)&&Ja()}}function US(){wr=lc.current,At(lc)}function zs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kW(n)),rn!==null)for(n=rn.return;n!==null;){var r=n;switch(xS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&fv();break;case 3:Lc(),At(cr),At(Fn),AS();break;case 5:jS(r);break;case 4:Lc();break;case 13:At(Ft);break;case 19:At(Ft);break;case 10:PS(r.type._context);break;case 22:case 23:US()}n=n.return}if(_n=e,rn=e=La(e.current,null),kn=wr=t,cn=0,Dd=null,DS=Dy=Qs=0,or=td=null,Ms!==null){for(t=0;t<Ms.length;t++)if(n=Ms[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}Ms=null}return e}function X$(e,t){do{var n=rn;try{if(SS(),Fm.current=_v,bv){for(var r=Ut.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}bv=!1}if(Xs=0,gn=ln=Ut=null,Jf=!1,Rd=0,IS.current=null,n===null||n.return===null){cn=1,Dd=t,rn=null;break}e:{var o=e,a=n.return,s=n,c=t;if(t=kn,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,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=wj(a);if(v!==null){v.flags&=-257,Oj(v,a,s,o,t),v.mode&1&&xj(o,l,t),t=v,c=l;var g=t.updateQueue;if(g===null){var y=new Set;y.add(c),t.updateQueue=y}else g.add(c);break e}else{if(!(t&1)){xj(o,l,t),zS();break e}c=Error(Pe(426))}}else if(Nt&&s.mode&1){var x=wj(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Oj(x,a,s,o,t),wS(Rc(c,s));break e}}o=c=Rc(c,s),cn!==4&&(cn=2),td===null?td=[o]:td.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=L$(o,c,t);mj(o,b);break e;case 1:s=c;var _=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Na===null||!Na.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=R$(o,s,t);mj(o,S);break e}}o=o.return}while(o!==null)}eI(n)}catch(C){t=C,rn===n&&n!==null&&(rn=n=n.return);continue}break}while(!0)}function Q$(){var e=xv.current;return xv.current=_v,e===null?_v:e}function zS(){(cn===0||cn===3||cn===2)&&(cn=4),_n===null||!(Qs&268435455)&&!(Dy&268435455)||ya(_n,kn)}function Sv(e,t){var n=ct;ct|=2;var r=Q$();(_n!==e||kn!==t)&&(wo=null,zs(e,t));do try{nH();break}catch(i){X$(e,i)}while(!0);if(SS(),ct=n,xv.current=r,rn!==null)throw Error(Pe(261));return _n=null,kn=0,cn}function nH(){for(;rn!==null;)J$(rn)}function rH(){for(;rn!==null&&!TV();)J$(rn)}function J$(e){var t=nI(e.alternate,e,wr);e.memoizedProps=e.pendingProps,t===null?eI(e):rn=t,IS.current=null}function eI(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ZW(n,t),n!==null){n.flags&=32767,rn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{cn=6,rn=null;return}}else if(n=YW(n,t,wr),n!==null){rn=n;return}if(t=t.sibling,t!==null){rn=t;return}rn=t=e}while(t!==null);cn===0&&(cn=5)}function xs(e,t,n){var r=pt,i=ni.transition;try{ni.transition=null,pt=1,iH(e,t,n,r)}finally{ni.transition=i,pt=r}return null}function iH(e,t,n,r){do Oc();while(xa!==null);if(ct&6)throw Error(Pe(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(Pe(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(DV(e,o),e===_n&&(rn=_n=null,kn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nm||(nm=!0,rI(ov,function(){return Oc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ni.transition,ni.transition=null;var a=pt;pt=1;var s=ct;ct|=4,IS.current=null,QW(e,n),q$(n,e),SW(B_),sv=!!F_,B_=F_=null,e.current=n,JW(n),jV(),ct=s,pt=a,ni.transition=o}else e.current=n;if(nm&&(nm=!1,xa=e,Ov=i),o=e.pendingLanes,o===0&&(Na=null),NV(n.stateNode),fr(e,Xt()),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(wv)throw wv=!1,e=ax,ax=null,e;return Ov&1&&e.tag!==0&&Oc(),o=e.pendingLanes,o&1?e===sx?nd++:(nd=0,sx=e):nd=0,Ja(),null}function Oc(){if(xa!==null){var e=L4(Ov),t=ni.transition,n=pt;try{if(ni.transition=null,pt=16>e?16:e,xa===null)var r=!1;else{if(e=xa,xa=null,Ov=0,ct&6)throw Error(Pe(331));var i=ct;for(ct|=4,$e=e.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for($e=l;$e!==null;){var f=$e;switch(f.tag){case 0:case 11:case 15:ed(8,f,o)}var d=f.child;if(d!==null)d.return=f,$e=d;else for(;$e!==null;){f=$e;var p=f.sibling,v=f.return;if(H$(f),f===l){$e=null;break}if(p!==null){p.return=v,$e=p;break}$e=v}}}var g=o.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}$e=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,$e=a;else e:for(;$e!==null;){if(o=$e,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ed(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,$e=b;break e}$e=o.return}}var _=e.current;for($e=_;$e!==null;){a=$e;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,$e=w;else e:for(a=_;$e!==null;){if(s=$e,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Iy(9,s)}}catch(C){Ht(s,s.return,C)}if(s===a){$e=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,$e=S;break e}$e=s.return}}if(ct=i,Ja(),to&&typeof to.onPostCommitFiberRoot=="function")try{to.onPostCommitFiberRoot(jy,e)}catch{}r=!0}return r}finally{pt=n,ni.transition=t}}return!1}function $j(e,t,n){t=Rc(n,t),t=L$(e,t,1),e=ka(e,t,1),t=Zn(),e!==null&&(Fh(e,1,t),fr(e,t))}function Ht(e,t,n){if(e.tag===3)$j(e,e,n);else for(;t!==null;){if(t.tag===3){$j(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Na===null||!Na.has(r))){e=Rc(n,e),e=R$(t,e,1),t=ka(t,e,1),e=Zn(),t!==null&&(Fh(t,1,e),fr(t,e));break}}t=t.return}}function oH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Zn(),e.pingedLanes|=e.suspendedLanes&n,_n===e&&(kn&n)===n&&(cn===4||cn===3&&(kn&130023424)===kn&&500>Xt()-FS?zs(e,0):DS|=n),fr(e,t)}function tI(e,t){t===0&&(e.mode&1?(t=Gp,Gp<<=1,!(Gp&130023424)&&(Gp=4194304)):t=1);var n=Zn();e=Io(e,t),e!==null&&(Fh(e,t,n),fr(e,n))}function aH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tI(e,n)}function sH(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(Pe(314))}r!==null&&r.delete(t),tI(e,n)}var nI;nI=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||cr.current)ar=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ar=!1,qW(e,t,n);ar=!!(e.flags&131072)}else ar=!1,Nt&&t.flags&1048576&&a$(t,pv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Um(e,t),e=t.pendingProps;var i=kc(t,Fn.current);wc(t,n),i=NS(null,t,r,e,i,n);var o=MS();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,ur(r)?(o=!0,dv(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ES(t),i.updater=$y,t.stateNode=i,i._reactInternals=t,Y_(t,r,e,n),t=Q_(null,t,r,!0,o,n)):(t.tag=0,Nt&&o&&_S(t),Gn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Um(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=cH(r),e=xi(r,e),i){case 0:t=X_(null,t,r,e,n);break e;case 1:t=Cj(null,t,r,e,n);break e;case 11:t=Sj(null,t,r,e,n);break e;case 14:t=Pj(null,t,r,xi(r.type,e),n);break e}throw Error(Pe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xi(r,i),X_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xi(r,i),Cj(e,t,r,i,n);case 3:e:{if(F$(t),e===null)throw Error(Pe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,d$(e,t),gv(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(Pe(423)),t),t=Ej(e,t,r,n,i);break e}else if(r!==i){i=Rc(Error(Pe(424)),t),t=Ej(e,t,r,n,i);break e}else for(Pr=Aa(t.stateNode.containerInfo.firstChild),Er=t,Nt=!0,Pi=null,n=u$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nc(),r===i){t=Do(e,t,n);break e}Gn(e,t,r,n)}t=t.child}return t;case 5:return h$(t),e===null&&G_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,U_(r,i)?a=null:o!==null&&U_(r,o)&&(t.flags|=32),D$(e,t),Gn(e,t,a,n),t.child;case 6:return e===null&&G_(t),null;case 13:return B$(e,t,n);case 4:return TS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mc(t,null,r,n):Gn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xi(r,i),Sj(e,t,r,i,n);case 7:return Gn(e,t,t.pendingProps,n),t.child;case 8:return Gn(e,t,t.pendingProps.children,n),t.child;case 12:return Gn(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(mv,r._currentValue),r._currentValue=a,o!==null)if(Mi(o.value,a)){if(o.children===i.children&&!cr.current){t=Do(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 c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Ao(-1,n&-n),c.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),K_(o.return,n,t),s.lanes|=n;break}c=c.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(Pe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),K_(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}Gn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wc(t,n),i=oi(i),r=r(i),t.flags|=1,Gn(e,t,r,n),t.child;case 14:return r=t.type,i=xi(r,t.pendingProps),i=xi(r.type,i),Pj(e,t,r,i,n);case 15:return $$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xi(r,i),Um(e,t),t.tag=1,ur(r)?(e=!0,dv(t)):e=!1,wc(t,n),M$(t,r,i),Y_(t,r,i,n),Q_(null,t,r,!0,e,n);case 19:return U$(e,t,n);case 22:return I$(e,t,n)}throw Error(Pe(156,t.tag))};function rI(e,t){return A4(e,t)}function lH(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 Jr(e,t,n,r){return new lH(e,t,n,r)}function VS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cH(e){if(typeof e=="function")return VS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lS)return 11;if(e===cS)return 14}return 2}function La(e,t){var n=e.alternate;return n===null?(n=Jr(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 Wm(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")VS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ql:return Vs(n.children,i,o,t);case sS:a=8,i|=8;break;case b_:return e=Jr(12,n,t,i|2),e.elementType=b_,e.lanes=o,e;case __:return e=Jr(13,n,t,i),e.elementType=__,e.lanes=o,e;case x_:return e=Jr(19,n,t,i),e.elementType=x_,e.lanes=o,e;case h4:return Fy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case f4:a=10;break e;case d4:a=9;break e;case lS:a=11;break e;case cS:a=14;break e;case pa:a=16,r=null;break e}throw Error(Pe(130,e==null?e:typeof e,""))}return t=Jr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Vs(e,t,n,r){return e=Jr(7,e,r,t),e.lanes=n,e}function Fy(e,t,n,r){return e=Jr(22,e,r,t),e.elementType=h4,e.lanes=n,e.stateNode={isHidden:!1},e}function f1(e,t,n){return e=Jr(6,e,null,t),e.lanes=n,e}function d1(e,t,n){return t=Jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uH(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=Gb(0),this.expirationTimes=Gb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gb(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function WS(e,t,n,r,i,o,a,s,c){return e=new uH(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Jr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ES(o),e}function fH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function iI(e){if(!e)return za;e=e._reactInternals;e:{if(ml(e)!==e||e.tag!==1)throw Error(Pe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ur(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Pe(171))}if(e.tag===1){var n=e.type;if(ur(n))return i$(e,n,t)}return t}function oI(e,t,n,r,i,o,a,s,c){return e=WS(n,r,!0,e,i,o,a,s,c),e.context=iI(null),n=e.current,r=Zn(),i=Ma(n),o=Ao(r,i),o.callback=t??null,ka(n,o,i),e.current.lanes=i,Fh(e,i,r),fr(e,r),e}function By(e,t,n,r){var i=t.current,o=Zn(),a=Ma(i);return n=iI(n),t.context===null?t.context=n:t.pendingContext=n,t=Ao(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ka(i,t,a),e!==null&&(Ai(e,i,a,o),Dm(e,i,a)),a}function Pv(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 Ij(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function HS(e,t){Ij(e,t),(e=e.alternate)&&Ij(e,t)}function dH(){return null}var aI=typeof reportError=="function"?reportError:function(e){console.error(e)};function GS(e){this._internalRoot=e}Uy.prototype.render=GS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Pe(409));By(e,t,null,null)};Uy.prototype.unmount=GS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Js(function(){By(null,e,null,null)}),t[$o]=null}};function Uy(e){this._internalRoot=e}Uy.prototype.unstable_scheduleHydration=function(e){if(e){var t=I4();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ga.length&&t!==0&&t<ga[n].priority;n++);ga.splice(n,0,e),n===0&&F4(e)}};function KS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dj(){}function hH(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=Pv(a);o.call(l)}}var a=oI(t,r,e,0,null,!1,!1,"",Dj);return e._reactRootContainer=a,e[$o]=a.current,Ad(e.nodeType===8?e.parentNode:e),Js(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=Pv(c);s.call(l)}}var c=WS(e,0,!1,null,null,!1,!1,"",Dj);return e._reactRootContainer=c,e[$o]=c.current,Ad(e.nodeType===8?e.parentNode:e),Js(function(){By(t,c,n,r)}),c}function Vy(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var c=Pv(a);s.call(c)}}By(t,a,e,i)}else a=hH(n,t,e,i,r);return Pv(a)}R4=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bf(t.pendingLanes);n!==0&&(dS(t,n|1),fr(t,Xt()),!(ct&6)&&($c=Xt()+500,Ja()))}break;case 13:Js(function(){var r=Io(e,1);if(r!==null){var i=Zn();Ai(r,e,1,i)}}),HS(e,1)}};hS=function(e){if(e.tag===13){var t=Io(e,134217728);if(t!==null){var n=Zn();Ai(t,e,134217728,n)}HS(e,134217728)}};$4=function(e){if(e.tag===13){var t=Ma(e),n=Io(e,t);if(n!==null){var r=Zn();Ai(n,e,t,r)}HS(e,t)}};I4=function(){return pt};D4=function(e,t){var n=pt;try{return pt=e,t()}finally{pt=n}};k_=function(e,t,n){switch(t){case"input":if(S_(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=My(r);if(!i)throw Error(Pe(90));m4(r),S_(r,i)}}}break;case"textarea":g4(e,n);break;case"select":t=n.value,t!=null&&yc(e,!!n.multiple,t,!1)}};S4=BS;P4=Js;var pH={usingClientEntryPoint:!1,Events:[Uh,nc,My,w4,O4,BS]},xf={findFiberByHostInstance:Ns,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mH={bundleType:xf.bundleType,version:xf.version,rendererPackageName:xf.rendererPackageName,rendererConfig:xf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=T4(e),e===null?null:e.stateNode},findFiberByHostInstance:xf.findFiberByHostInstance||dH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rm.isDisabled&&rm.supportsFiber)try{jy=rm.inject(mH),to=rm}catch{}}Lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pH;Lr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!KS(t))throw Error(Pe(200));return fH(e,t,null,n)};Lr.createRoot=function(e,t){if(!KS(e))throw Error(Pe(299));var n=!1,r="",i=aI;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=WS(e,1,!1,null,null,n,!1,r,i),e[$o]=t.current,Ad(e.nodeType===8?e.parentNode:e),new GS(t)};Lr.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(Pe(188)):(e=Object.keys(e).join(","),Error(Pe(268,e)));return e=T4(t),e=e===null?null:e.stateNode,e};Lr.flushSync=function(e){return Js(e)};Lr.hydrate=function(e,t,n){if(!zy(t))throw Error(Pe(200));return Vy(null,e,t,!0,n)};Lr.hydrateRoot=function(e,t,n){if(!KS(e))throw Error(Pe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=aI;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=oI(t,null,e,1,n??null,i,!1,o,a),e[$o]=t.current,Ad(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 Uy(t)};Lr.render=function(e,t,n){if(!zy(t))throw Error(Pe(200));return Vy(null,e,t,!1,n)};Lr.unmountComponentAtNode=function(e){if(!zy(e))throw Error(Pe(40));return e._reactRootContainer?(Js(function(){Vy(null,null,e,!1,function(){e._reactRootContainer=null,e[$o]=null})}),!0):!1};Lr.unstable_batchedUpdates=BS;Lr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zy(n))throw Error(Pe(200));if(e==null||e._reactInternals===void 0)throw Error(Pe(38));return Vy(e,t,n,!1,r)};Lr.version="18.3.1-next-f1338f8080-20240426";function sI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sI)}catch(e){console.error(e)}}sI(),s4.exports=Lr;var Wy=s4.exports;const Rs=st(Wy);var lI,Fj=Wy;lI=Fj.createRoot,Fj.hydrateRoot;var vH={};/**
|
||
* @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 Vh=N;function gH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yH=typeof Object.is=="function"?Object.is:gH,bH=Vh.useSyncExternalStore,_H=Vh.useRef,xH=Vh.useEffect,wH=Vh.useMemo,OH=Vh.useDebugValue;vH.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=_H(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=wH(function(){function c(v){if(!l){if(l=!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,yH(f,v))return g;var y=r(v);return i!==void 0&&i(g,y)?g:(f=v,d=y)}var l=!1,f,d,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,i]);var s=bH(e,o[0],o[1]);return xH(function(){a.hasValue=!0,a.value=s},[s]),OH(s),s};var dt="default"in g_?V:g_,Bj=Symbol.for("react-redux-context"),Uj=typeof globalThis<"u"?globalThis:{};function SH(){if(!dt.createContext)return{};const e=Uj[Bj]??(Uj[Bj]=new Map);let t=e.get(dt.createContext);return t||(t=dt.createContext(null),e.set(dt.createContext,t)),t}var cI=SH(),PH=()=>{throw new Error("uSES not initialized!")},CH=Symbol.for("react.element"),EH=Symbol.for("react.portal"),TH=Symbol.for("react.fragment"),jH=Symbol.for("react.strict_mode"),AH=Symbol.for("react.profiler"),kH=Symbol.for("react.provider"),NH=Symbol.for("react.context"),MH=Symbol.for("react.server_context"),uI=Symbol.for("react.forward_ref"),LH=Symbol.for("react.suspense"),RH=Symbol.for("react.suspense_list"),qS=Symbol.for("react.memo"),$H=Symbol.for("react.lazy"),IH=uI,DH=qS;function FH(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case CH:{const n=e.type;switch(n){case TH:case AH:case jH:case LH:case RH:return n;default:{const r=n&&n.$$typeof;switch(r){case MH:case NH:case uI:case $H:case qS:case kH:return r;default:return t}}}}case EH:return t}}}function BH(e){return FH(e)===qS}function UH(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,l,f,d,p;function v(_,w){return c=_,l=w,f=e(c,l),d=t(r,l),p=n(f,d,l),s=!0,p}function g(){return f=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),p=n(f,d,l),p}function y(){return e.dependsOnOwnProps&&(f=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),p=n(f,d,l),p}function x(){const _=e(c,l),w=!a(_,f);return f=_,w&&(p=n(f,d,l)),p}function b(_,w){const S=!o(w,l),C=!i(_,c,w,l);return c=_,l=w,S&&C?g():S?y():C?x():p}return function(w,S){return s?b(w,S):v(w,S)}}function zH(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return UH(o,a,s,e,i)}function VH(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 ux(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function zj(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function fI(e,t){return function(r,{displayName:i}){const o=function(s,c){return o.dependsOnOwnProps?o.mapToProps(s,c):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,c){o.mapToProps=e,o.dependsOnOwnProps=zj(e);let l=o(s,c);return typeof l=="function"&&(o.mapToProps=l,o.dependsOnOwnProps=zj(l),l=o(s,c)),l},o}}function YS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function WH(e){return e&&typeof e=="object"?ux(t=>VH(e,t)):e?typeof e=="function"?fI(e):YS(e,"mapDispatchToProps"):ux(t=>({dispatch:t}))}function HH(e){return e?typeof e=="function"?fI(e):YS(e,"mapStateToProps"):ux(()=>({}))}function GH(e,t,n){return{...n,...e,...t}}function KH(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(c,l,f){const d=e(c,l,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function qH(e){return e?typeof e=="function"?KH(e):YS(e,"mergeProps"):()=>GH}function YH(e){e()}function ZH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){YH(()=>{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 Vj={notify(){},get:()=>[]};function dI(e,t){let n,r=Vj,i=0,o=!1;function a(y){f();const x=r.subscribe(y);let b=!1;return()=>{b||(b=!0,x(),d())}}function s(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function l(){return o}function f(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=ZH())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Vj)}function p(){o||(o=!0,f())}function v(){o&&(o=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return g}var XH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QH=typeof navigator<"u"&&navigator.product==="ReactNative",Cv=XH||QH?dt.useLayoutEffect:dt.useEffect;function Wj(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function h1(e,t){if(Wj(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])||!Wj(e[n[i]],t[n[i]]))return!1;return!0}var JH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nG={[IH]:tG,[DH]:hI};function Hj(e){return BH(e)?hI:nG[e.$$typeof]||JH}var rG=Object.defineProperty,iG=Object.getOwnPropertyNames,Gj=Object.getOwnPropertySymbols,oG=Object.getOwnPropertyDescriptor,aG=Object.getPrototypeOf,Kj=Object.prototype;function fx(e,t){if(typeof t!="string"){if(Kj){const o=aG(t);o&&o!==Kj&&fx(e,o)}let n=iG(t);Gj&&(n=n.concat(Gj(t)));const r=Hj(e),i=Hj(t);for(let o=0;o<n.length;++o){const a=n[o];if(!eG[a]&&!(i&&i[a])&&!(r&&r[a])){const s=oG(t,a);try{rG(e,a,s)}catch{}}}}return e}var pI=PH,sG=e=>{pI=e},lG=[null,null];function cG(e,t,n){Cv(()=>e(...t),n)}function uG(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function fG(e,t,n,r,i,o,a,s,c,l,f){if(!e)return()=>{};let d=!1,p=null;const v=()=>{if(d||!s.current)return;const y=t.getState();let x,b;try{x=r(y,i.current)}catch(_){b=_,p=_}b||(p=null),x===o.current?a.current||l():(o.current=x,c.current=x,a.current=!0,f())};return n.onStateChange=v,n.trySubscribe(),v(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function dG(e,t){return e===t}function hG(e,t,n,{pure:r,areStatesEqual:i=dG,areOwnPropsEqual:o=h1,areStatePropsEqual:a=h1,areMergedPropsEqual:s=h1,forwardRef:c=!1,context:l=cI}={}){const f=l,d=HH(e),p=WH(t),v=qH(n),g=!!e;return x=>{const b=x.displayName||x.name||"Component",_=`Connect(${b})`,w={shouldHandleStateChanges:g,displayName:_,wrappedComponentName:b,WrappedComponent:x,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function S(T){const[j,$,M]=dt.useMemo(()=>{const{reactReduxForwardedRef:Y,...ie}=T;return[T.context,Y,ie]},[T]),I=dt.useMemo(()=>{let Y=f;return j!=null&&j.Consumer,Y},[j,f]),F=dt.useContext(I),q=!!T.store&&!!T.store.getState&&!!T.store.dispatch,H=!!F&&!!F.store,Z=q?T.store:F.store,Q=H?F.getServerState:Z.getState,te=dt.useMemo(()=>zH(Z.dispatch,w),[Z]),[X,U]=dt.useMemo(()=>{if(!g)return lG;const Y=dI(Z,q?void 0:F.subscription),ie=Y.notifyNestedSubs.bind(Y);return[Y,ie]},[Z,q,F]),B=dt.useMemo(()=>q?F:{...F,subscription:X},[q,F,X]),W=dt.useRef(void 0),ee=dt.useRef(M),G=dt.useRef(void 0),ne=dt.useRef(!1),re=dt.useRef(!1),ae=dt.useRef(void 0);Cv(()=>(re.current=!0,()=>{re.current=!1}),[]);const fe=dt.useMemo(()=>()=>G.current&&M===ee.current?G.current:te(Z.getState(),M),[Z,M]),A=dt.useMemo(()=>ie=>X?fG(g,Z,X,te,ee,W,ne,re,G,U,ie):()=>{},[X]);cG(uG,[ee,W,ne,M,G,U]);let k;try{k=pI(A,fe,Q?()=>te(Q(),M):fe)}catch(Y){throw ae.current&&(Y.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ae.current.stack}
|
||
|
||
`),Y}Cv(()=>{ae.current=void 0,G.current=void 0,W.current=k});const z=dt.useMemo(()=>dt.createElement(x,{...k,ref:$}),[$,x,k]);return dt.useMemo(()=>g?dt.createElement(I.Provider,{value:B},z):z,[I,z,B])}const P=dt.memo(S);if(P.WrappedComponent=x,P.displayName=S.displayName=_,c){const j=dt.forwardRef(function(M,I){return dt.createElement(P,{...M,reactReduxForwardedRef:I})});return j.displayName=_,j.WrappedComponent=x,fx(j,x)}return fx(P,x)}}var mI=hG;function pG({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=dt.useMemo(()=>{const l=dI(e);return{store:e,subscription:l,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=dt.useMemo(()=>e.getState(),[e]);Cv(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const c=t||cI;return dt.createElement(c.Provider,{value:a},n)}var vI=pG;sG(N.useSyncExternalStore);/**
|
||
* @remix-run/router v1.21.0
|
||
*
|
||
* 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 Fd(){return Fd=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},Fd.apply(this,arguments)}var wa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wa||(wa={}));const qj="popstate";function mG(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return dx("",{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:Ev(i)}return gG(t,n,null,e)}function zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gI(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vG(){return Math.random().toString(36).substr(2,8)}function Yj(e,t){return{usr:e.state,key:e.key,idx:t}}function dx(e,t,n,r){return n===void 0&&(n=null),Fd({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Eu(t):t,{state:n,key:t&&t.key||r||vG()})}function Ev(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 Eu(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 gG(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=wa.Pop,c=null,l=f();l==null&&(l=0,a.replaceState(Fd({},a.state,{idx:l}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=wa.Pop;let x=f(),b=x==null?null:x-l;l=x,c&&c({action:s,location:y.location,delta:b})}function p(x,b){s=wa.Push;let _=dx(y.location,x,b);l=f()+1;let w=Yj(_,l),S=y.createHref(_);try{a.pushState(w,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}o&&c&&c({action:s,location:y.location,delta:1})}function v(x,b){s=wa.Replace;let _=dx(y.location,x,b);l=f();let w=Yj(_,l),S=y.createHref(_);a.replaceState(w,"",S),o&&c&&c({action:s,location:y.location,delta:0})}function g(x){let b=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof x=="string"?x:Ev(x);return _=_.replace(/ $/,"%20"),zt(b,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,b)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(qj,d),c=x,()=>{i.removeEventListener(qj,d),c=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let b=g(x);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:v,go(x){return a.go(x)}};return y}var Zj;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zj||(Zj={}));function yG(e,t,n){return n===void 0&&(n="/"),bG(e,t,n,!1)}function bG(e,t,n,r){let i=typeof t=="string"?Eu(t):t,o=Ic(i.pathname||"/",n);if(o==null)return null;let a=yI(e);_G(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let l=kG(o);s=jG(a[c],l,r)}return s}function yI(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(zt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=Ra([r,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(zt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),yI(o.children,t,f,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:EG(l,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 c of bI(o.path))i(o,a,c)}),t}function bI(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=bI(r.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function _G(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TG(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xG=/^:[\w-]+$/,wG=3,OG=2,SG=1,PG=10,CG=-2,Xj=e=>e==="*";function EG(e,t){let n=e.split("/"),r=n.length;return n.some(Xj)&&(r+=CG),t&&(r+=OG),n.filter(i=>!Xj(i)).reduce((i,o)=>i+(xG.test(o)?wG:o===""?SG:PG),r)}function TG(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 jG(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let c=r[s],l=s===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",d=Tv({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},f),p=c.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=Tv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Ra([o,d.pathname]),pathnameBase:RG(Ra([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=Ra([o,d.pathnameBase]))}return a}function Tv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=AG(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((l,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?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:a,pattern:e}}function AG(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gI(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,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function kG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gI(!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 Ic(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 NG(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Eu(e):e;return{pathname:n?n.startsWith("/")?n:MG(n,t):t,search:$G(r),hash:IG(i)}}function MG(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 p1(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 LG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ZS(e,t){let n=LG(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function XS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Eu(e):(i=Fd({},e),zt(!i.pathname||!i.pathname.includes("?"),p1("?","pathname","search",i)),zt(!i.pathname||!i.pathname.includes("#"),p1("#","pathname","hash",i)),zt(!i.search||!i.search.includes("#"),p1("#","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 c=NG(i,s),l=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Ra=e=>e.join("/").replace(/\/\/+/g,"/"),RG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$G=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,IG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _I=["post","put","patch","delete"];new Set(_I);const FG=["get",..._I];new Set(FG);/**
|
||
* React Router v6.28.0
|
||
*
|
||
* 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 Bd(){return Bd=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},Bd.apply(this,arguments)}const Hy=N.createContext(null),xI=N.createContext(null),Yo=N.createContext(null),Gy=N.createContext(null),Zo=N.createContext({outlet:null,matches:[],isDataRoute:!1}),wI=N.createContext(null);function BG(e,t){let{relative:n}=t===void 0?{}:t;vl()||zt(!1);let{basename:r,navigator:i}=N.useContext(Yo),{hash:o,pathname:a,search:s}=Ky(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Ra([r,a])),i.createHref({pathname:c,search:s,hash:o})}function vl(){return N.useContext(Gy)!=null}function mr(){return vl()||zt(!1),N.useContext(Gy).location}function OI(e){N.useContext(Yo).static||N.useLayoutEffect(e)}function ho(){let{isDataRoute:e}=N.useContext(Zo);return e?JG():UG()}function UG(){vl()||zt(!1);let e=N.useContext(Hy),{basename:t,future:n,navigator:r}=N.useContext(Yo),{matches:i}=N.useContext(Zo),{pathname:o}=mr(),a=JSON.stringify(ZS(i,n.v7_relativeSplatPath)),s=N.useRef(!1);return OI(()=>{s.current=!0}),N.useCallback(function(l,f){if(f===void 0&&(f={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=XS(l,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ra([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function Tu(){let{matches:e}=N.useContext(Zo),t=e[e.length-1];return t?t.params:{}}function Ky(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=N.useContext(Yo),{matches:i}=N.useContext(Zo),{pathname:o}=mr(),a=JSON.stringify(ZS(i,r.v7_relativeSplatPath));return N.useMemo(()=>XS(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function zG(e,t){return VG(e,t)}function VG(e,t,n,r){vl()||zt(!1);let{navigator:i}=N.useContext(Yo),{matches:o}=N.useContext(Zo),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let l=mr(),f;if(t){var d;let x=typeof t=="string"?Eu(t):t;c==="/"||(d=x.pathname)!=null&&d.startsWith(c)||zt(!1),f=x}else f=l;let p=f.pathname||"/",v=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=yG(e,{pathname:v}),y=qG(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Ra([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:Ra([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?N.createElement(Gy.Provider,{value:{location:Bd({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:wa.Pop}},y):y}function WG(){let e=QG(),t=DG(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 N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,null)}const HG=N.createElement(WG,null);class GG extends N.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?N.createElement(Zo.Provider,{value:this.props.routeContext},N.createElement(wI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function KG(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(Hy);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(Zo.Provider,{value:t},r)}function qG(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(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)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])!==void 0);f>=0||zt(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,l=-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)&&(l=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){c=!0,l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let v,g=!1,y=null,x=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||HG,c&&(l<0&&p===0?(g=!0,x=null):l===p&&(g=!0,x=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),_=()=>{let w;return v?w=y:g?w=x:d.route.Component?w=N.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,N.createElement(KG,{match:d,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?N.createElement(GG,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:_(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):_()},null)}var SI=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(SI||{}),jv=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}(jv||{});function YG(e){let t=N.useContext(Hy);return t||zt(!1),t}function ZG(e){let t=N.useContext(xI);return t||zt(!1),t}function XG(e){let t=N.useContext(Zo);return t||zt(!1),t}function PI(e){let t=XG(),n=t.matches[t.matches.length-1];return n.route.id||zt(!1),n.route.id}function QG(){var e;let t=N.useContext(wI),n=ZG(jv.UseRouteError),r=PI(jv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function JG(){let{router:e}=YG(SI.UseNavigateStable),t=PI(jv.UseNavigateStable),n=N.useRef(!1);return OI(()=>{n.current=!0}),N.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Bd({fromRouteId:t},o)))},[e,t])}const Qj={};function eK(e,t){Qj[t]||(Qj[t]=!0,console.warn(t))}const Jj=(e,t,n)=>eK(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function tK(e,t){e!=null&&e.v7_startTransition||Jj("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&Jj("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function QS(e){let{to:t,replace:n,state:r,relative:i}=e;vl()||zt(!1);let{future:o,static:a}=N.useContext(Yo),{matches:s}=N.useContext(Zo),{pathname:c}=mr(),l=ho(),f=XS(t,ZS(s,o.v7_relativeSplatPath),c,i==="path"),d=JSON.stringify(f);return N.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function at(e){zt(!1)}function nK(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wa.Pop,navigator:o,static:a=!1,future:s}=e;vl()&&zt(!1);let c=t.replace(/^\/*/,"/"),l=N.useMemo(()=>({basename:c,navigator:o,static:a,future:Bd({v7_relativeSplatPath:!1},s)}),[c,s,o,a]);typeof r=="string"&&(r=Eu(r));let{pathname:f="/",search:d="",hash:p="",state:v=null,key:g="default"}=r,y=N.useMemo(()=>{let x=Ic(f,c);return x==null?null:{location:{pathname:x,search:d,hash:p,state:v,key:g},navigationType:i}},[c,f,d,p,v,g,i]);return y==null?null:N.createElement(Yo.Provider,{value:l},N.createElement(Gy.Provider,{children:n,value:y}))}function qy(e){let{children:t,location:n}=e;return zG(hx(t),n)}new Promise(()=>{});function hx(e,t){t===void 0&&(t=[]);let n=[];return N.Children.forEach(e,(r,i)=>{if(!N.isValidElement(r))return;let o=[...t,i];if(r.type===N.Fragment){n.push.apply(n,hx(r.props.children,o));return}r.type!==at&&zt(!1),!r.props.index||!r.props.children||zt(!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=hx(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.28.0
|
||
*
|
||
* 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 Av(){return Av=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},Av.apply(this,arguments)}function CI(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 rK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iK(e,t){return e.button===0&&(!t||t==="_self")&&!rK(e)}const oK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],aK=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],sK="6";try{window.__reactRouterVersion=sK}catch{}const lK=N.createContext({isTransitioning:!1}),cK="startTransition",eA=g_[cK];function EI(e){let{basename:t,children:n,future:r,window:i}=e,o=N.useRef();o.current==null&&(o.current=mG({window:i,v5Compat:!0}));let a=o.current,[s,c]=N.useState({action:a.action,location:a.location}),{v7_startTransition:l}=r||{},f=N.useCallback(d=>{l&&eA?eA(()=>c(d)):c(d)},[c,l]);return N.useLayoutEffect(()=>a.listen(f),[a,f]),N.useEffect(()=>tK(r),[r]),N.createElement(nK,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const uK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=N.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:c,to:l,preventScrollReset:f,viewTransition:d}=t,p=CI(t,oK),{basename:v}=N.useContext(Yo),g,y=!1;if(typeof l=="string"&&fK.test(l)&&(g=l,uK))try{let w=new URL(window.location.href),S=l.startsWith("//")?new URL(w.protocol+l):new URL(l),C=Ic(S.pathname,v);S.origin===w.origin&&C!=null?l=C+S.search+S.hash:y=!0}catch{}let x=BG(l,{relative:i}),b=hK(l,{replace:a,state:s,target:c,preventScrollReset:f,relative:i,viewTransition:d});function _(w){r&&r(w),w.defaultPrevented||b(w)}return N.createElement("a",Av({},p,{href:g||x,onClick:y||o?r:_,ref:n,target:c}))}),TI=N.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:c,viewTransition:l,children:f}=t,d=CI(t,aK),p=Ky(c,{relative:d.relative}),v=mr(),g=N.useContext(xI),{navigator:y,basename:x}=N.useContext(Yo),b=g!=null&&pK(p)&&l===!0,_=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=v.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,_=_.toLowerCase()),S&&x&&(S=Ic(S,x)||S);const C=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let P=w===_||!a&&w.startsWith(_)&&w.charAt(C)==="/",T=S!=null&&(S===_||!a&&S.startsWith(_)&&S.charAt(_.length)==="/"),j={isActive:P,isPending:T,isTransitioning:b},$=P?r:void 0,M;typeof o=="function"?M=o(j):M=[o,P?"active":null,T?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let I=typeof s=="function"?s(j):s;return N.createElement(Pt,Av({},d,{"aria-current":$,className:M,ref:n,style:I,to:c,viewTransition:l}),typeof f=="function"?f(j):f)});var px;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(px||(px={}));var tA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tA||(tA={}));function dK(e){let t=N.useContext(Hy);return t||zt(!1),t}function hK(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,c=ho(),l=mr(),f=Ky(e,{relative:a});return N.useCallback(d=>{if(iK(d,n)){d.preventDefault();let p=r!==void 0?r:Ev(l)===Ev(f);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[l,c,f,r,i,n,e,o,a,s])}function pK(e,t){t===void 0&&(t={});let n=N.useContext(lK);n==null&&zt(!1);let{basename:r}=dK(px.useViewTransitionState),i=Ky(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ic(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Ic(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Tv(i.pathname,a)!=null||Tv(i.pathname,o)!=null}const mK="shlink-web-client",vK="A React-based progressive web application for shlink",gK="/shlink-web-client/dependabot/npm_and_yarn/shlink-780c1165f6",yK="https://github.com/shlinkio/shlink-web-client",bK="MIT",_K="module",xK={lint:"node --run lint:css && node --run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint src test config/test","lint:fix":"node --run lint:css:fix && node --run lint:js:fix","lint:css:fix":"node --run lint:css -- --fix","lint:js:fix":"node --run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"node --run types && vite build && node scripts/replace-version.mjs","build:dist":"node --run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"node --run test -- --coverage","test:verbose":"node --run test -- --verbose"},wK={"@fortawesome/fontawesome-free":"^6.7.1","@fortawesome/fontawesome-svg-core":"^6.7.1","@fortawesome/free-brands-svg-icons":"^6.7.1","@fortawesome/free-regular-svg-icons":"^6.7.1","@fortawesome/free-solid-svg-icons":"^6.7.1","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.4.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.6.0","@shlinkio/shlink-js-sdk":"^1.3.0","@shlinkio/shlink-web-component":"^0.11.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.3.1","react-redux":"^9.1.2","react-router-dom":"^6.28.0",reactstrap:"^9.2.3","redux-localstorage-simple":"^2.5.1","workbox-core":"^7.3.0","workbox-expiration":"^7.3.0","workbox-precaching":"^7.3.0","workbox-routing":"^7.3.0","workbox-strategies":"^7.3.0"},OK={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.11.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.3","@vitest/coverage-v8":"^2.1.6","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.3.0",eslint:"^9.15.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.81.0",stylelint:"^15.11.0",typescript:"^5.7.2","typescript-eslint":"^8.15.0",vite:"^5.4.11","vite-plugin-pwa":"^0.21.1",vitest:"^2.0.2"},SK=[">0.2%","not dead","not ie <= 11","not op_mini all"],kv={name:mK,description:vK,private:!1,homepage:gK,repository:yK,license:bK,type:_K,scripts:xK,dependencies:wK,devDependencies:OK,browserslist:SK};var Li,so=".",jI="function",AI="string",kI="__global__",JS="Provider",PK=0,eP=Array.prototype.slice,CK=function(t,n){var r=t[n];if(r===void 0&&Li.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Yy=function(t){var n;return this.nested[t]||(n=Li.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},NI=function(t){return t.split(so).reduce(CK,this)},EK=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,c=function(f){if(f)throw f;t[s]&&t[s++](r,c)};return c(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},TK=function(t,n){var r,i;return typeof t===jI&&(n=t,t=kI),r=t.split(so),i=r.shift(),r.length?Yy.call(this,i).middleware(r.join(so),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},jK=function(t,n){return n(t)},nA=function(t,n){return(t[n]||[]).concat(t.__global__||[])},AK=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+JS,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var l=new n;return delete o[r],o[r]=l,l}},i[t]={configurable:!0,enumerable:!0,get:function(){var l=o[r],f;return l&&(f=nA(a,t).reduce(jK,l.$get(o)),delete o[r],delete o[t]),f===void 0?f:EK(nA(s,t),t,f,o)}},Object.defineProperties(o,i),this},MI=function(t,n){var r,i;return r=t.split(so),this.providerMap[t]&&r.length===1&&!this.container[t+JS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Yy.call(this,i).provider(r.join(so),n),this):AK.call(this,i,n))},tP=function(t,n){return MI.call(this,t,function(){this.$get=n})},LI=function(t,n,r){var i=arguments.length>3?eP.call(arguments,3):[],o=this;return tP.call(this,t,function(){var s=n,c=i.map(NI,o.container);return r?new(n.bind.apply(n,[null].concat(c))):s.apply(null,c)})},kK=function(t,n){return LI.apply(this,[t,n,!0].concat(eP.call(arguments,2)))},NK=function(t,n){return LI.apply(this,[t,n,!1].concat(eP.call(arguments,2)))},RI=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},$I=function(t,n){var r=t[n];return r||(r={},RI.call(t,n,r)),r},MK=function(t,n){var r;return r=t.split(so),t=r.pop(),RI.call(r.reduce($I,this.container),t,n),this},LK=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},RK=function(t,n){var r=t.split(so);return t=r.pop(),LK.call(r.reduce($I,this.container),t,n),this},II=function(t,n){var r,i;return typeof t===jI&&(n=t,t=kI),r=t.split(so),i=r.shift(),r.length?Yy.call(this,i).decorator(r.join(so),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},$K=function(t){return this.deferred.push(t),this},IK=function(t){return(t||[]).map(NI,this.container)},DK=function(t,n){return tP.call(this,t,function(i){return{instance:n.bind(n,i)}})},FK=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},nP=function(t){return Object.keys(t||this.container||{}).filter(FK)},Nv={},BK=function(t){var n;return typeof t===AI?(n=Nv[t],n||(Nv[t]=n=new Li,n.constant("BOTTLE_NAME",t)),n):new Li},UK=function(t){typeof t===AI?delete Nv[t]:Nv={}},DI=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},rA=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+JS]},zK=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(so);a.length>1&&a.forEach(rA,Yy.call(this,a[0])),rA.call(this,o),this.provider(o,n[o])}},this)},VK=function(t){return this.deferred.forEach(function(r){r(t)}),this};Li=function e(t){if(!(this instanceof e))return e.pop(t);this.id=PK++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:II.bind(this),$register:DI.bind(this),$list:nP.bind(this)}};Li.prototype={constant:RK,decorator:II,defer:$K,digest:IK,factory:tP,instanceFactory:DK,list:nP,middleware:TK,provider:MI,resetProviders:zK,register:DI,resolve:VK,service:kK,serviceFactory:NK,value:MK};Li.pop=BK;Li.clear=UK;Li.list=nP;Li.config={strict:!1};const FI=Li;var WK=Object.defineProperty,HK=(e,t,n)=>t in e?WK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GK=(e,t,n)=>HK(e,t+"",n);const KK=(e,t)=>`${e}/rest/v${t}`,qK=e=>e.dir?`${e.field}-${e.dir}`:void 0,YK=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:qK(e)}),ZK=(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}`},XK=(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 QK{constructor(t,n){GK(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:YK(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=XK(r),s=a?`?${a}`:"",c=o?ZK(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${KK(c,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const BI=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),rd=e=>!!(e!=null&&e.id),rP=e=>!!(e!=null&&e.version),JK=e=>!!(e!=null&&e.serverNotFound),eq=e=>rd(e)?e.id:"",tq=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),iA={},nq=e=>typeof e=="function",rq=e=>{const{selectedServer:t}=e();if(!BI(t))throw new Error("There's no selected server or it is not found");return t},iq=e=>t=>{const{url:n,apiKey:r}=nq(t)?rq(t):t,i=`${r}_${n}`,o=iA[i]??new QK(e,{apiKey:r,baseUrl:n});return iA[i]=o,o},oq=e=>{e.serviceFactory("buildShlinkApiClient",iq,"HttpClient")};/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const aq={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},sq={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},lq={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},cq=lq,uq={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},iP=uq,fq={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},dq={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},UI=dq,zI={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"]},hq={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},oP={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},pq={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"]},mq=pq,vq={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},aP=vq,gq={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},yq={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},bq={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"]},oA={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},_q={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},xq=_q,wq={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},mx=wq,Oq={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},Sq={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Pq={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},Cq=Pq,sP={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},Zy={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},VI={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},aA={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},Eq={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},Tq={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"]},jq={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},Aq=jq,kq={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Nq={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},lP=Nq,cP={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},Mq=cP,Lq={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},Rq={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"]},$q={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"]},Iq=$q,Dq={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},Fq=Dq,Bq={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},Uq=Bq,zq={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},WI=zq,Vq={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"]},Wq={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"]},Hq={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"]},Gq={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"]},Kq=Gq,qq={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"]},Yq={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Wh={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},HI={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"]},vx=HI,Zq={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"]},Xq={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},Qq=Xq,sA={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},GI={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},Jq=GI,eY={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},tY={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"]},nY={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},rY={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},iY={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Ud={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"]},KI={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},oY={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},aY=oY;/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/function sY(e,t,n){return(t=cY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){sY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cY(e){var t=lY(e,"string");return typeof t=="symbol"?t:t+""}const cA=()=>{};let uP={},qI={},YI=null,ZI={mark:cA,measure:cA};try{typeof window<"u"&&(uP=window),typeof document<"u"&&(qI=document),typeof MutationObserver<"u"&&(YI=MutationObserver),typeof performance<"u"&&(ZI=performance)}catch{}const{userAgent:uA=""}=uP.navigator||{},Va=uP,kt=qI,fA=YI,im=ZI;Va.document;const Xo=!!kt.documentElement&&!!kt.head&&typeof kt.addEventListener=="function"&&typeof kt.createElement=="function",XI=~uA.indexOf("MSIE")||~uA.indexOf("Trident/");var uY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,fY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,QI={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},dY={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},JI=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Bn="classic",Xy="duotone",hY="sharp",pY="sharp-duotone",e6=[Bn,Xy,hY,pY],mY={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},vY={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},gY=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),yY={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},bY=["fak","fa-kit","fakd","fa-kit-duotone"],dA={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},_Y=["kit"],xY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},wY=["fak","fakd"],OY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},hA={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},om={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},SY=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],PY=["fak","fa-kit","fakd","fa-kit-duotone"],CY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},EY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},TY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},gx={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},jY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],yx=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...SY,...jY],AY=["solid","regular","light","thin","duotone","brands"],t6=[1,2,3,4,5,6,7,8,9,10],kY=t6.concat([11,12,13,14,15,16,17,18,19,20]),NY=[...Object.keys(TY),...AY,"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",om.GROUP,om.SWAP_OPACITY,om.PRIMARY,om.SECONDARY].concat(t6.map(e=>"".concat(e,"x"))).concat(kY.map(e=>"w-".concat(e))),MY={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Fo="___FONT_AWESOME___",bx=16,n6="fa",r6="svg-inline--fa",el="data-fa-i2svg",_x="data-fa-pseudo-element",LY="data-fa-pseudo-element-pending",fP="data-prefix",dP="data-icon",pA="fontawesome-i2svg",RY="async",$Y=["HTML","HEAD","STYLE","SCRIPT"],i6=(()=>{try{return!0}catch{return!1}})();function Hh(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Bn]}})}const o6=Se({},QI);o6[Bn]=Se(Se(Se(Se({},{"fa-duotone":"duotone"}),QI[Bn]),dA.kit),dA["kit-duotone"]);const IY=Hh(o6),xx=Se({},yY);xx[Bn]=Se(Se(Se(Se({},{duotone:"fad"}),xx[Bn]),hA.kit),hA["kit-duotone"]);const mA=Hh(xx),wx=Se({},gx);wx[Bn]=Se(Se({},wx[Bn]),OY.kit);const hP=Hh(wx),Ox=Se({},EY);Ox[Bn]=Se(Se({},Ox[Bn]),xY.kit);Hh(Ox);const DY=uY,a6="fa-layers-text",FY=fY,BY=Se({},mY);Hh(BY);const UY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],m1=dY,zY=[..._Y,...NY],id=Va.FontAwesomeConfig||{};function VY(e){var t=kt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function WY(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}kt&&typeof kt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=WY(VY(n));i!=null&&(id[r]=i)});const s6={styleDefault:"solid",familyDefault:Bn,cssPrefix:n6,replacementClass:r6,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};id.familyPrefix&&(id.cssPrefix=id.familyPrefix);const Dc=Se(Se({},s6),id);Dc.autoReplaceSvg||(Dc.observeMutations=!1);const Fe={};Object.keys(s6).forEach(e=>{Object.defineProperty(Fe,e,{enumerable:!0,set:function(t){Dc[e]=t,od.forEach(n=>n(Fe))},get:function(){return Dc[e]}})});Object.defineProperty(Fe,"familyPrefix",{enumerable:!0,set:function(e){Dc.cssPrefix=e,od.forEach(t=>t(Fe))},get:function(){return Dc.cssPrefix}});Va.FontAwesomeConfig=Fe;const od=[];function HY(e){return od.push(e),()=>{od.splice(od.indexOf(e),1)}}const sa=bx,Xi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function GY(e){if(!e||!Xo)return;const t=kt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=kt.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return kt.head.insertBefore(t,r),e}const KY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zd(){let e=12,t="";for(;e-- >0;)t+=KY[Math.random()*62|0];return t}function ju(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function pP(e){return e.classList?ju(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function l6(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function qY(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(l6(e[n]),'" '),"").trim()}function Qy(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function mP(e){return e.size!==Xi.size||e.x!==Xi.x||e.y!==Xi.y||e.rotate!==Xi.rotate||e.flipX||e.flipY}function YY(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const 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)"),c={transform:"".concat(o," ").concat(a," ").concat(s)},l={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:l}}function ZY(e){let{transform:t,width:n=bx,height:r=bx,startCentered:i=!1}=e,o="";return i&&XI?o+="translate(".concat(t.x/sa-n/2,"em, ").concat(t.y/sa-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/sa,"em), calc(-50% + ").concat(t.y/sa,"em)) "):o+="translate(".concat(t.x/sa,"em, ").concat(t.y/sa,"em) "),o+="scale(".concat(t.size/sa*(t.flipX?-1:1),", ").concat(t.size/sa*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var XY=`:root, :host {
|
||
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
||
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
||
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
||
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
||
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
||
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
||
}
|
||
|
||
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
||
overflow: visible;
|
||
box-sizing: content-box;
|
||
}
|
||
|
||
.svg-inline--fa {
|
||
display: var(--fa-display, inline-block);
|
||
height: 1em;
|
||
overflow: visible;
|
||
vertical-align: -0.125em;
|
||
}
|
||
.svg-inline--fa.fa-2xs {
|
||
vertical-align: 0.1em;
|
||
}
|
||
.svg-inline--fa.fa-xs {
|
||
vertical-align: 0em;
|
||
}
|
||
.svg-inline--fa.fa-sm {
|
||
vertical-align: -0.0714285705em;
|
||
}
|
||
.svg-inline--fa.fa-lg {
|
||
vertical-align: -0.2em;
|
||
}
|
||
.svg-inline--fa.fa-xl {
|
||
vertical-align: -0.25em;
|
||
}
|
||
.svg-inline--fa.fa-2xl {
|
||
vertical-align: -0.3125em;
|
||
}
|
||
.svg-inline--fa.fa-pull-left {
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-pull-right {
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
width: auto;
|
||
}
|
||
.svg-inline--fa.fa-li {
|
||
width: var(--fa-li-width, 2em);
|
||
top: 0.25em;
|
||
}
|
||
.svg-inline--fa.fa-fw {
|
||
width: var(--fa-fw-width, 1.25em);
|
||
}
|
||
|
||
.fa-layers svg.svg-inline--fa {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.fa-layers-counter, .fa-layers-text {
|
||
display: inline-block;
|
||
position: absolute;
|
||
text-align: center;
|
||
}
|
||
|
||
.fa-layers {
|
||
display: inline-block;
|
||
height: 1em;
|
||
position: relative;
|
||
text-align: center;
|
||
vertical-align: -0.125em;
|
||
width: 1em;
|
||
}
|
||
.fa-layers svg.svg-inline--fa {
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-text {
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
transform-origin: center center;
|
||
}
|
||
|
||
.fa-layers-counter {
|
||
background-color: var(--fa-counter-background-color, #ff253a);
|
||
border-radius: var(--fa-counter-border-radius, 1em);
|
||
box-sizing: border-box;
|
||
color: var(--fa-inverse, #fff);
|
||
line-height: var(--fa-counter-line-height, 1);
|
||
max-width: var(--fa-counter-max-width, 5em);
|
||
min-width: var(--fa-counter-min-width, 1.5em);
|
||
overflow: hidden;
|
||
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
||
right: var(--fa-right, 0);
|
||
text-overflow: ellipsis;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-counter-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-bottom-right {
|
||
bottom: var(--fa-bottom, 0);
|
||
right: var(--fa-right, 0);
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom right;
|
||
}
|
||
|
||
.fa-layers-bottom-left {
|
||
bottom: var(--fa-bottom, 0);
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: auto;
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: bottom left;
|
||
}
|
||
|
||
.fa-layers-top-right {
|
||
top: var(--fa-top, 0);
|
||
right: var(--fa-right, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top right;
|
||
}
|
||
|
||
.fa-layers-top-left {
|
||
left: var(--fa-left, 0);
|
||
right: auto;
|
||
top: var(--fa-top, 0);
|
||
transform: scale(var(--fa-layers-scale, 0.25));
|
||
transform-origin: top left;
|
||
}
|
||
|
||
.fa-1x {
|
||
font-size: 1em;
|
||
}
|
||
|
||
.fa-2x {
|
||
font-size: 2em;
|
||
}
|
||
|
||
.fa-3x {
|
||
font-size: 3em;
|
||
}
|
||
|
||
.fa-4x {
|
||
font-size: 4em;
|
||
}
|
||
|
||
.fa-5x {
|
||
font-size: 5em;
|
||
}
|
||
|
||
.fa-6x {
|
||
font-size: 6em;
|
||
}
|
||
|
||
.fa-7x {
|
||
font-size: 7em;
|
||
}
|
||
|
||
.fa-8x {
|
||
font-size: 8em;
|
||
}
|
||
|
||
.fa-9x {
|
||
font-size: 9em;
|
||
}
|
||
|
||
.fa-10x {
|
||
font-size: 10em;
|
||
}
|
||
|
||
.fa-2xs {
|
||
font-size: 0.625em;
|
||
line-height: 0.1em;
|
||
vertical-align: 0.225em;
|
||
}
|
||
|
||
.fa-xs {
|
||
font-size: 0.75em;
|
||
line-height: 0.0833333337em;
|
||
vertical-align: 0.125em;
|
||
}
|
||
|
||
.fa-sm {
|
||
font-size: 0.875em;
|
||
line-height: 0.0714285718em;
|
||
vertical-align: 0.0535714295em;
|
||
}
|
||
|
||
.fa-lg {
|
||
font-size: 1.25em;
|
||
line-height: 0.05em;
|
||
vertical-align: -0.075em;
|
||
}
|
||
|
||
.fa-xl {
|
||
font-size: 1.5em;
|
||
line-height: 0.0416666682em;
|
||
vertical-align: -0.125em;
|
||
}
|
||
|
||
.fa-2xl {
|
||
font-size: 2em;
|
||
line-height: 0.03125em;
|
||
vertical-align: -0.1875em;
|
||
}
|
||
|
||
.fa-fw {
|
||
text-align: center;
|
||
width: 1.25em;
|
||
}
|
||
|
||
.fa-ul {
|
||
list-style-type: none;
|
||
margin-left: var(--fa-li-margin, 2.5em);
|
||
padding-left: 0;
|
||
}
|
||
.fa-ul > li {
|
||
position: relative;
|
||
}
|
||
|
||
.fa-li {
|
||
left: calc(-1 * var(--fa-li-width, 2em));
|
||
position: absolute;
|
||
text-align: center;
|
||
width: var(--fa-li-width, 2em);
|
||
line-height: inherit;
|
||
}
|
||
|
||
.fa-border {
|
||
border-color: var(--fa-border-color, #eee);
|
||
border-radius: var(--fa-border-radius, 0.1em);
|
||
border-style: var(--fa-border-style, solid);
|
||
border-width: var(--fa-border-width, 0.08em);
|
||
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
||
}
|
||
|
||
.fa-pull-left {
|
||
float: left;
|
||
margin-right: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-pull-right {
|
||
float: right;
|
||
margin-left: var(--fa-pull-margin, 0.3em);
|
||
}
|
||
|
||
.fa-beat {
|
||
animation-name: fa-beat;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-bounce {
|
||
animation-name: fa-bounce;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
||
}
|
||
|
||
.fa-fade {
|
||
animation-name: fa-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-beat-fade {
|
||
animation-name: fa-beat-fade;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
||
}
|
||
|
||
.fa-flip {
|
||
animation-name: fa-flip;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
||
}
|
||
|
||
.fa-shake {
|
||
animation-name: fa-shake;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin {
|
||
animation-name: fa-spin;
|
||
animation-delay: var(--fa-animation-delay, 0s);
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 2s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, linear);
|
||
}
|
||
|
||
.fa-spin-reverse {
|
||
--fa-animation-direction: reverse;
|
||
}
|
||
|
||
.fa-pulse,
|
||
.fa-spin-pulse {
|
||
animation-name: fa-spin;
|
||
animation-direction: var(--fa-animation-direction, normal);
|
||
animation-duration: var(--fa-animation-duration, 1s);
|
||
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
||
animation-timing-function: var(--fa-animation-timing, steps(8));
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.fa-beat,
|
||
.fa-bounce,
|
||
.fa-fade,
|
||
.fa-beat-fade,
|
||
.fa-flip,
|
||
.fa-pulse,
|
||
.fa-shake,
|
||
.fa-spin,
|
||
.fa-spin-pulse {
|
||
animation-delay: -1ms;
|
||
animation-duration: 1ms;
|
||
animation-iteration-count: 1;
|
||
transition-delay: 0s;
|
||
transition-duration: 0s;
|
||
}
|
||
}
|
||
@keyframes fa-beat {
|
||
0%, 90% {
|
||
transform: scale(1);
|
||
}
|
||
45% {
|
||
transform: scale(var(--fa-beat-scale, 1.25));
|
||
}
|
||
}
|
||
@keyframes fa-bounce {
|
||
0% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
10% {
|
||
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
||
}
|
||
30% {
|
||
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
||
}
|
||
50% {
|
||
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
||
}
|
||
57% {
|
||
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
||
}
|
||
64% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
100% {
|
||
transform: scale(1, 1) translateY(0);
|
||
}
|
||
}
|
||
@keyframes fa-fade {
|
||
50% {
|
||
opacity: var(--fa-fade-opacity, 0.4);
|
||
}
|
||
}
|
||
@keyframes fa-beat-fade {
|
||
0%, 100% {
|
||
opacity: var(--fa-beat-fade-opacity, 0.4);
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
||
}
|
||
}
|
||
@keyframes fa-flip {
|
||
50% {
|
||
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
||
}
|
||
}
|
||
@keyframes fa-shake {
|
||
0% {
|
||
transform: rotate(-15deg);
|
||
}
|
||
4% {
|
||
transform: rotate(15deg);
|
||
}
|
||
8%, 24% {
|
||
transform: rotate(-18deg);
|
||
}
|
||
12%, 28% {
|
||
transform: rotate(18deg);
|
||
}
|
||
16% {
|
||
transform: rotate(-22deg);
|
||
}
|
||
20% {
|
||
transform: rotate(22deg);
|
||
}
|
||
32% {
|
||
transform: rotate(-12deg);
|
||
}
|
||
36% {
|
||
transform: rotate(12deg);
|
||
}
|
||
40%, 100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
@keyframes fa-spin {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
.fa-rotate-90 {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.fa-rotate-180 {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
.fa-rotate-270 {
|
||
transform: rotate(270deg);
|
||
}
|
||
|
||
.fa-flip-horizontal {
|
||
transform: scale(-1, 1);
|
||
}
|
||
|
||
.fa-flip-vertical {
|
||
transform: scale(1, -1);
|
||
}
|
||
|
||
.fa-flip-both,
|
||
.fa-flip-horizontal.fa-flip-vertical {
|
||
transform: scale(-1, -1);
|
||
}
|
||
|
||
.fa-rotate-by {
|
||
transform: rotate(var(--fa-rotate-angle, 0));
|
||
}
|
||
|
||
.fa-stack {
|
||
display: inline-block;
|
||
vertical-align: middle;
|
||
height: 2em;
|
||
position: relative;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-stack-1x,
|
||
.fa-stack-2x {
|
||
bottom: 0;
|
||
left: 0;
|
||
margin: auto;
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
z-index: var(--fa-stack-z-index, auto);
|
||
}
|
||
|
||
.svg-inline--fa.fa-stack-1x {
|
||
height: 1em;
|
||
width: 1.25em;
|
||
}
|
||
.svg-inline--fa.fa-stack-2x {
|
||
height: 2em;
|
||
width: 2.5em;
|
||
}
|
||
|
||
.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}
|
||
|
||
.sr-only,
|
||
.fa-sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.sr-only-focusable:not(:focus),
|
||
.fa-sr-only-focusable:not(:focus) {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
white-space: nowrap;
|
||
border-width: 0;
|
||
}
|
||
|
||
.svg-inline--fa .fa-primary {
|
||
fill: var(--fa-primary-color, currentColor);
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa .fa-secondary {
|
||
fill: var(--fa-secondary-color, currentColor);
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
||
opacity: var(--fa-secondary-opacity, 0.4);
|
||
}
|
||
|
||
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
||
opacity: var(--fa-primary-opacity, 1);
|
||
}
|
||
|
||
.svg-inline--fa mask .fa-primary,
|
||
.svg-inline--fa mask .fa-secondary {
|
||
fill: black;
|
||
}`;function c6(){const e=n6,t=r6,n=Fe.cssPrefix,r=Fe.replacementClass;let i=XY;if(n!==e||r!==t){const 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}let vA=!1;function v1(){Fe.autoAddCss&&!vA&&(GY(c6()),vA=!0)}var QY={mixout(){return{dom:{css:c6,insertCss:v1}}},hooks(){return{beforeDOMElementCreation(){v1()},beforeI2svg(){v1()}}}};const Bo=Va||{};Bo[Fo]||(Bo[Fo]={});Bo[Fo].styles||(Bo[Fo].styles={});Bo[Fo].hooks||(Bo[Fo].hooks={});Bo[Fo].shims||(Bo[Fo].shims=[]);var Qi=Bo[Fo];const u6=[],f6=function(){kt.removeEventListener("DOMContentLoaded",f6),Mv=1,u6.map(e=>e())};let Mv=!1;Xo&&(Mv=(kt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(kt.readyState),Mv||kt.addEventListener("DOMContentLoaded",f6));function JY(e){Xo&&(Mv?setTimeout(e,0):u6.push(e))}function Gh(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?l6(e):"<".concat(t," ").concat(qY(n),">").concat(r.map(Gh).join(""),"</").concat(t,">")}function gA(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var g1=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,c,l,f;for(r===void 0?(c=1,f=t[o[0]]):(c=0,f=r);c<a;c++)l=o[c],f=s(f,t[l],l,t);return f};function eZ(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const 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 Sx(e){const t=eZ(e);return t.length===1?t[0].toString(16):null}function tZ(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function yA(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Px(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=yA(t);typeof Qi.hooks.addPack=="function"&&!r?Qi.hooks.addPack(e,yA(t)):Qi.styles[e]=Se(Se({},Qi.styles[e]||{}),i),e==="fas"&&Px("fa",t)}const{styles:Vd,shims:nZ}=Qi,d6=Object.keys(hP),rZ=d6.reduce((e,t)=>(e[t]=Object.keys(hP[t]),e),{});let vP=null,h6={},p6={},m6={},v6={},g6={};function iZ(e){return~zY.indexOf(e)}function oZ(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!iZ(i)?i:null}const y6=()=>{const e=r=>g1(Vd,(i,o,a)=>(i[a]=g1(o,r,{}),i),{});h6=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=o}),r)),p6=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),g6=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Vd||Fe.autoFetchSvg,n=g1(nZ,(r,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});m6=n.names,v6=n.unicodes,vP=Jy(Fe.styleDefault,{family:Fe.familyDefault})};HY(e=>{vP=Jy(e.styleDefault,{family:Fe.familyDefault})});y6();function gP(e,t){return(h6[e]||{})[t]}function aZ(e,t){return(p6[e]||{})[t]}function $s(e,t){return(g6[e]||{})[t]}function b6(e){return m6[e]||{prefix:null,iconName:null}}function sZ(e){const t=v6[e],n=gP("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Wa(){return vP}const _6=()=>({prefix:null,iconName:null,rest:[]});function lZ(e){let t=Bn;const n=d6.reduce((r,i)=>(r[i]="".concat(Fe.cssPrefix,"-").concat(i),r),{});return e6.forEach(r=>{(e.includes(n[r])||e.some(i=>rZ[r].includes(i)))&&(t=r)}),t}function Jy(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Bn}=t,r=IY[n][e];if(n===Xy&&!e)return"fad";const i=mA[n][e]||mA[n][r],o=e in Qi.styles?e:null;return i||o||null}function cZ(e){let t=[],n=null;return e.forEach(r=>{const i=oZ(Fe.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function bA(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function e0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=yx.concat(PY),o=bA(e.filter(d=>i.includes(d))),a=bA(e.filter(d=>!yx.includes(d))),s=o.filter(d=>(r=d,!JI.includes(d))),[c=null]=s,l=lZ(o),f=Se(Se({},cZ(a)),{},{prefix:Jy(c,{family:l})});return Se(Se(Se({},f),hZ({values:e,family:l,styles:Vd,config:Fe,canonical:f,givenPrefix:r})),uZ(n,r,f))}function uZ(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?b6(i):{},a=$s(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Vd.far&&Vd.fas&&!Fe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const fZ=e6.filter(e=>e!==Bn||e!==Xy),dZ=Object.keys(gx).filter(e=>e!==Bn).map(e=>Object.keys(gx[e])).flat();function hZ(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,s=n===Xy,c=t.includes("fa-duotone")||t.includes("fad"),l=a.familyDefault==="duotone",f=r.prefix==="fad"||r.prefix==="fa-duotone";if(!s&&(c||l||f)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&fZ.includes(n)&&(Object.keys(o).find(p=>dZ.includes(p))||a.autoFetchSvg)){const p=gY.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=$s(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=Wa()||"fas"),r}class pZ{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=Se(Se({},this.definitions[o]||{}),i[o]),Px(o,i[o]);const a=hP[Bn][o];a&&Px(a,i[o]),y6()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:s}=r[i],c=s[2];t[o]||(t[o]={}),c.length>0&&c.forEach(l=>{typeof l=="string"&&(t[o][l]=s)}),t[o][a]=s}),t}}let _A=[],cc={};const Sc={},mZ=Object.keys(Sc);function vZ(e,t){let{mixoutsTo:n}=t;return _A=e,cc={},Object.keys(Sc).forEach(r=>{mZ.indexOf(r)===-1&&delete Sc[r]}),_A.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{cc[a]||(cc[a]=[]),cc[a].push(o[a])})}r.provides&&r.provides(Sc)}),n}function Cx(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(cc[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function tl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(cc[e]||[]).forEach(o=>{o.apply(null,n)})}function Ha(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Sc[e]?Sc[e].apply(null,t):void 0}function Ex(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Wa();if(t)return t=$s(n,t)||t,gA(x6.definitions,n,t)||gA(Qi.styles,n,t)}const x6=new pZ,gZ=()=>{Fe.autoReplaceSvg=!1,Fe.observeMutations=!1,tl("noAuto")},yZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Xo?(tl("beforeI2svg",e),Ha("pseudoElements2svg",e),Ha("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;Fe.autoReplaceSvg===!1&&(Fe.autoReplaceSvg=!0),Fe.observeMutations=!0,JY(()=>{_Z({autoReplaceSvgRoot:t}),tl("watch",e)})}},bZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:$s(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Jy(e[0]);return{prefix:n,iconName:$s(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(Fe.cssPrefix,"-"))>-1||e.match(DY))){const t=e0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Wa(),iconName:$s(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Wa();return{prefix:t,iconName:$s(t,e)||e}}}},$r={noAuto:gZ,config:Fe,dom:yZ,parse:bZ,library:x6,findIconDefinition:Ex,toHtml:Gh},_Z=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=kt}=e;(Object.keys(Qi.styles).length>0||Fe.autoFetchSvg)&&Xo&&Fe.autoReplaceSvg&&$r.dom.i2svg({node:t})};function t0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Gh(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Xo)return;const n=kt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function xZ(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(mP(a)&&n.found&&!r.found){const{width:s,height:c}=n,l={x:s/c/2,y:.5};i.style=Qy(Se(Se({},o),{},{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function wZ(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(Fe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Se(Se({},i),{},{id:a}),children:r}]}]}function yP(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:c,titleId:l,extra:f,watchable:d=!1}=e,{width:p,height:v}=n.found?n:t,g=wY.includes(r),y=[Fe.replacementClass,i?"".concat(Fe.cssPrefix,"-").concat(i):""].filter(C=>f.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(f.classes).join(" ");let x={children:[],attributes:Se(Se({},f.attributes),{},{"data-prefix":r,"data-icon":i,class:y,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)})};const b=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};d&&(x.attributes[el]=""),s&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(l||zd())},children:[s]}),delete x.attributes.title);const _=Se(Se({},x),{},{prefix:r,iconName:i,main:t,mask:n,maskId:c,transform:o,symbol:a,styles:Se(Se({},b),f.styles)}),{children:w,attributes:S}=n.found&&t.found?Ha("generateAbstractMask",_)||{children:[],attributes:{}}:Ha("generateAbstractIcon",_)||{children:[],attributes:{}};return _.children=w,_.attributes=S,a?wZ(_):xZ(_)}function xA(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,c=Se(Se(Se({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(c[el]="");const l=Se({},a.styles);mP(i)&&(l.transform=ZY({transform:i,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);const f=Qy(l);f.length>0&&(c.style=f);const d=[];return d.push({tag:"span",attributes:c,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function OZ(e){const{content:t,title:n,extra:r}=e,i=Se(Se(Se({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Qy(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:y1}=Qi;function Tx(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(m1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(m1.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Fe.cssPrefix,"-").concat(m1.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const SZ={found:!1,width:512,height:512};function PZ(e,t){!i6&&!Fe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function jx(e,t){let n=t;return t==="fa"&&Fe.styleDefault!==null&&(t=Wa()),new Promise((r,i)=>{if(n==="fa"){const o=b6(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&y1[t]&&y1[t][e]){const o=y1[t][e];return r(Tx(o))}PZ(e,t),r(Se(Se({},SZ),{},{icon:Fe.showMissingIcons&&e?Ha("missingIconAbstract")||{}:{}}))})}const wA=()=>{},Ax=Fe.measurePerformance&&im&&im.mark&&im.measure?im:{mark:wA,measure:wA},zf='FA "6.7.1"',CZ=e=>(Ax.mark("".concat(zf," ").concat(e," begins")),()=>w6(e)),w6=e=>{Ax.mark("".concat(zf," ").concat(e," ends")),Ax.measure("".concat(zf," ").concat(e),"".concat(zf," ").concat(e," begins"),"".concat(zf," ").concat(e," ends"))};var bP={begin:CZ,end:w6};const Hm=()=>{};function OA(e){return typeof(e.getAttribute?e.getAttribute(el):null)=="string"}function EZ(e){const t=e.getAttribute?e.getAttribute(fP):null,n=e.getAttribute?e.getAttribute(dP):null;return t&&n}function TZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Fe.replacementClass)}function jZ(){return Fe.autoReplaceSvg===!0?Gm.replace:Gm[Fe.autoReplaceSvg]||Gm.replace}function AZ(e){return kt.createElementNS("http://www.w3.org/2000/svg",e)}function kZ(e){return kt.createElement(e)}function O6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?AZ:kZ}=t;if(typeof e=="string")return kt.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(O6(o,{ceFn:n}))}),r}function NZ(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Gm={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(O6(n),t)}),t.getAttribute(el)===null&&Fe.keepOriginalSource){let n=kt.createComment(NZ(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~pP(t).indexOf(Fe.replacementClass))return Gm.replace(e);const r=new RegExp("".concat(Fe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===Fe.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Gh(o)).join(`
|
||
`);t.setAttribute(el,""),t.innerHTML=i}};function SA(e){e()}function S6(e,t){const n=typeof t=="function"?t:Hm;if(e.length===0)n();else{let r=SA;Fe.mutateApproach===RY&&(r=Va.requestAnimationFrame||SA),r(()=>{const i=jZ(),o=bP.begin("mutate");e.map(i),o(),n()})}}let _P=!1;function P6(){_P=!0}function kx(){_P=!1}let Lv=null;function PA(e){if(!fA||!Fe.observeMutations)return;const{treeCallback:t=Hm,nodeCallback:n=Hm,pseudoElementsCallback:r=Hm,observeMutationsRoot:i=kt}=e;Lv=new fA(o=>{if(_P)return;const a=Wa();ju(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!OA(s.addedNodes[0])&&(Fe.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&Fe.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&OA(s.target)&&~UY.indexOf(s.attributeName))if(s.attributeName==="class"&&EZ(s.target)){const{prefix:c,iconName:l}=e0(pP(s.target));s.target.setAttribute(fP,c||a),l&&s.target.setAttribute(dP,l)}else TZ(s.target)&&n(s.target)})}),Xo&&Lv.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function MZ(){Lv&&Lv.disconnect()}function LZ(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function RZ(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=e0(pP(e));return i.prefix||(i.prefix=Wa()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=aZ(i.prefix,e.innerText)||gP(i.prefix,Sx(e.innerText))),!i.iconName&&Fe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function $Z(e){const t=ju(e.attributes).reduce((i,o)=>(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||zd()):(t["aria-hidden"]="true",t.focusable="false")),t}function IZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function CA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=RZ(e),o=$Z(e),a=Cx("parseNodeAttributes",{},e);let s=t.styleParser?LZ(e):[];return Se({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Xi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:DZ}=Qi;function C6(e){const t=Fe.autoReplaceSvg==="nest"?CA(e,{styleParser:!1}):CA(e);return~t.extra.classes.indexOf(a6)?Ha("generateLayersText",e,t):Ha("generateSvgReplacementMutation",e,t)}function FZ(){return[...bY,...yx]}function EA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Xo)return Promise.resolve();const n=kt.documentElement.classList,r=f=>n.add("".concat(pA,"-").concat(f)),i=f=>n.remove("".concat(pA,"-").concat(f)),o=Fe.autoFetchSvg?FZ():JI.concat(Object.keys(DZ));o.includes("fa")||o.push("fa");const a=[".".concat(a6,":not([").concat(el,"])")].concat(o.map(f=>".".concat(f,":not([").concat(el,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=ju(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const c=bP.begin("onTree"),l=s.reduce((f,d)=>{try{const p=C6(d);p&&f.push(p)}catch(p){i6||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise((f,d)=>{Promise.all(l).then(p=>{S6(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),f()})}).catch(p=>{c(),d(p)})})}function BZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;C6(e).then(n=>{n&&S6([n],t)})}function UZ(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Ex(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Ex(i||{})),e(r,Se(Se({},n),{},{mask:i}))}}const zZ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Xi,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:c=[],attributes:l={},styles:f={}}=t;if(!e)return;const{prefix:d,iconName:p,icon:v}=e;return t0(Se({type:"icon"},e),()=>(tl("beforeDOMElementCreation",{iconDefinition:e,params:t}),Fe.autoA11y&&(a?l["aria-labelledby"]="".concat(Fe.replacementClass,"-title-").concat(s||zd()):(l["aria-hidden"]="true",l.focusable="false")),yP({icons:{main:Tx(v),mask:i?Tx(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:p,transform:Se(Se({},Xi),n),symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:l,styles:f,classes:c}})))};var VZ={mixout(){return{icon:UZ(zZ)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=EA,e.nodeCallback=BZ,e}}},provides(e){e.i2svg=function(t){const{node:n=kt,callback:r=()=>{}}=t;return EA(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:c,mask:l,maskId:f,extra:d}=n;return new Promise((p,v)=>{Promise.all([jx(r,a),l.iconName?jx(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[y,x]=g;p([t,yP({icons:{main:y,mask:x},prefix:a,iconName:r,transform:s,symbol:c,maskId:f,title:i,titleId:o,extra:d,watchable:!0})])}).catch(v)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const s=Qy(a);s.length>0&&(r.style=s);let c;return mP(o)&&(c=Ha("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(c||i.icon),{children:n,attributes:r}}}},WZ={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return t0({type:"layer"},()=>{tl("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(Fe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},HZ={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return t0({type:"counter",content:e},()=>(tl("beforeDOMElementCreation",{content:e,params:t}),OZ({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(Fe.cssPrefix,"-layers-counter"),...r]}})))}}}},GZ={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Xi,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return t0({type:"text",content:e},()=>(tl("beforeDOMElementCreation",{content:e,params:t}),xA({content:e,transform:Se(Se({},Xi),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(Fe.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,s=null;if(XI){const c=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();a=l.width/c,s=l.height/c}return Fe.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,xA({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const KZ=new RegExp('"',"ug"),TA=[1105920,1112319],jA=Se(Se(Se(Se({},{FontAwesome:{normal:"fas",400:"fas"}}),vY),MY),CY),Nx=Object.keys(jA).reduce((e,t)=>(e[t.toLowerCase()]=jA[t],e),{}),qZ=Object.keys(Nx).reduce((e,t)=>{const n=Nx[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function YZ(e){const t=e.replace(KZ,""),n=tZ(t,0),r=n>=TA[0]&&n<=TA[1],i=t.length===2?t[0]===t[1]:!1;return{value:Sx(i?t[0]:t),isSecondary:r||i}}function ZZ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Nx[n]||{})[i]||qZ[n]}function AA(e,t){const n="".concat(LY).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=ju(e.children).filter(p=>p.getAttribute(_x)===t)[0],s=Va.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),l=c.match(FY),f=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&d!=="none"&&d!==""){const p=s.getPropertyValue("content");let v=ZZ(c,f);const{value:g,isSecondary:y}=YZ(p),x=l[0].startsWith("FontAwesome");let b=gP(v,g),_=b;if(x){const w=sZ(g);w.iconName&&w.prefix&&(b=w.iconName,v=w.prefix)}if(b&&!y&&(!a||a.getAttribute(fP)!==v||a.getAttribute(dP)!==_)){e.setAttribute(n,_),a&&e.removeChild(a);const w=IZ(),{extra:S}=w;S.attributes[_x]=t,jx(b,v).then(C=>{const P=yP(Se(Se({},w),{},{icons:{main:C,mask:_6()},prefix:v,iconName:_,extra:S,watchable:!0})),T=kt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(T,e.firstChild):e.appendChild(T),T.outerHTML=P.map(j=>Gh(j)).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function XZ(e){return Promise.all([AA(e,"::before"),AA(e,"::after")])}function QZ(e){return e.parentNode!==document.head&&!~$Y.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(_x)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function kA(e){if(Xo)return new Promise((t,n)=>{const r=ju(e.querySelectorAll("*")).filter(QZ).map(XZ),i=bP.begin("searchPseudoElements");P6(),Promise.all(r).then(()=>{i(),kx(),t()}).catch(()=>{i(),kx(),n()})})}var JZ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=kA,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=kt}=t;Fe.searchPseudoElements&&kA(n)}}};let NA=!1;var eX={mixout(){return{dom:{unwatch(){P6(),NA=!0}}}},hooks(){return{bootstrap(){PA(Cx("mutationObserverCallbacks",{}))},noAuto(){MZ()},watch(e){const{observeMutationsRoot:t}=e;NA?kx():PA(Cx("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const MA=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var tX={mixout(){return{parse:{transform:e=>MA(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=MA(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(s," ").concat(c," ").concat(l)},d={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:f,path:d};return{tag:"g",attributes:Se({},p.outer),children:[{tag:"g",attributes:Se({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Se(Se({},n.icon.attributes),p.path)}]}]}}}};const b1={x:0,y:0,width:"100%",height:"100%"};function LA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function nX(e){return e.tag==="g"?e.children:[e]}var rX={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?e0(n.split(" ").map(i=>i.trim())):_6();return r.prefix||(r.prefix=Wa()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:s}=t;const{width:c,icon:l}=i,{width:f,icon:d}=o,p=YY({transform:s,containerWidth:f,iconWidth:c}),v={tag:"rect",attributes:Se(Se({},b1),{},{fill:"white"})},g=l.children?{children:l.children.map(LA)}:{},y={tag:"g",attributes:Se({},p.inner),children:[LA(Se({tag:l.tag,attributes:Se(Se({},l.attributes),p.path)},g))]},x={tag:"g",attributes:Se({},p.outer),children:[y]},b="mask-".concat(a||zd()),_="clip-".concat(a||zd()),w={tag:"mask",attributes:Se(Se({},b1),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,x]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:nX(d)},w]};return n.push(S,{tag:"rect",attributes:Se({fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(b,")")},b1)}),{children:n,attributes:r}}}},iX={provides(e){let t=!1;Va.matchMedia&&(t=Va.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Se(Se({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=Se(Se({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Se(Se({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Se(Se({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Se(Se({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:Se(Se({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Se(Se({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Se(Se({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Se(Se({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},oX={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},aX=[QY,VZ,WZ,HZ,GZ,JZ,eX,tX,rX,iX,oX];vZ(aX,{mixoutsTo:$r});$r.noAuto;$r.config;$r.library;$r.dom;const Mx=$r.parse;$r.findIconDefinition;$r.toHtml;const sX=$r.icon;$r.layer;$r.text;$r.counter;var E6={exports:{}},lX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cX=lX,uX=cX;function T6(){}function j6(){}j6.resetWarningCache=T6;var fX=function(){function e(r,i,o,a,s,c){if(c!==uX){var l=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 l.name="Invariant Violation",l}}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:j6,resetWarningCache:T6};return n.PropTypes=n,n};E6.exports=fX();var dX=E6.exports;const D=st(dX);function RA(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 Yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(n),!0).forEach(function(r){uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rv(e){"@babel/helpers - typeof";return Rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rv(e)}function uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hX(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 pX(e,t){if(e==null)return{};var n=hX(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 Lx(e){return mX(e)||vX(e)||gX(e)||yX()}function mX(e){if(Array.isArray(e))return Rx(e)}function vX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gX(e,t){if(e){if(typeof e=="string")return Rx(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 Rx(e,t)}}function Rx(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 yX(){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 bX(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,c=e.spin,l=e.spinPulse,f=e.spinReverse,d=e.pulse,p=e.fixedWidth,v=e.inverse,g=e.border,y=e.listItem,x=e.flip,b=e.size,_=e.rotation,w=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":c,"fa-spin-reverse":f,"fa-spin-pulse":l,"fa-pulse":d,"fa-fw":p,"fa-inverse":v,"fa-border":g,"fa-li":y,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},uc(t,"fa-".concat(b),typeof b<"u"&&b!==null),uc(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),uc(t,"fa-pull-".concat(w),typeof w<"u"&&w!==null),uc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(S).map(function(C){return S[C]?C:null}).filter(function(C){return C})}function _X(e){return e=e-0,e===e}function A6(e){return _X(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var xX=["style"];function wX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function OX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=A6(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[wX(i)]=o:t[i]=o,t},{})}function k6(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(c){return k6(e,c)}),i=Object.keys(t.attributes||{}).reduce(function(c,l){var f=t.attributes[l];switch(l){case"class":c.attrs.className=f,delete t.attributes.class;break;case"style":c.attrs.style=OX(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?c.attrs[l.toLowerCase()]=f:c.attrs[A6(l)]=f}return c},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=pX(n,xX);return i.attrs.style=Yi(Yi({},i.attrs.style),a),e.apply(void 0,[t.tag,Yi(Yi({},i.attrs),s)].concat(Lx(r)))}var N6=!1;try{N6=!0}catch{}function SX(){if(!N6&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function $A(e){if(e&&Rv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Mx.icon)return Mx.icon(e);if(e===null)return null;if(e&&Rv(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 _1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?uc({},e,t):{}}var IA={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},je=V.forwardRef(function(e,t){var n=Yi(Yi({},IA),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,c=n.titleId,l=n.maskId,f=$A(r),d=_1("classes",[].concat(Lx(bX(n)),Lx((a||"").split(" ")))),p=_1("transform",typeof n.transform=="string"?Mx.transform(n.transform):n.transform),v=_1("mask",$A(i)),g=sX(f,Yi(Yi(Yi(Yi({},d),p),v),{},{symbol:o,title:s,titleId:c,maskId:l}));if(!g)return SX("Could not find icon",f),null;var y=g.abstract,x={ref:t};return Object.keys(n).forEach(function(b){IA.hasOwnProperty(b)||(x[b]=n[b])}),PX(y[0],x)});je.displayName="FontAwesomeIcon";je.propTypes={beat:D.bool,border:D.bool,beatFade:D.bool,bounce:D.bool,className:D.string,fade:D.bool,flash:D.bool,mask:D.oneOfType([D.object,D.array,D.string]),maskId:D.string,fixedWidth:D.bool,inverse:D.bool,flip:D.oneOf([!0,!1,"horizontal","vertical","both"]),icon:D.oneOfType([D.object,D.array,D.string]),listItem:D.bool,pull:D.oneOf(["right","left"]),pulse:D.bool,rotation:D.oneOf([0,90,180,270]),shake:D.bool,size:D.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:D.bool,spinPulse:D.bool,spinReverse:D.bool,symbol:D.oneOfType([D.bool,D.string]),title:D.string,titleId:D.string,transform:D.oneOfType([D.string,D.object]),swapOpacity:D.bool};var PX=k6.bind(null,V.createElement);function M6(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=M6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Oe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=M6(e))&&(r&&(r+=" "),r+=t);return r}var L6={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 c in o)t.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(L6);var CX=L6.exports;const Ge=st(CX);function DA(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 EX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(n),!0).forEach(function(r){TX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function jX(){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 R6(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function AX(){return document.body.clientWidth<window.innerWidth}function kX(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function NX(){var e=jX(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;AX()&&R6(n+e)}var MX;function Ue(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:MX;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function es(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function $6(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 FA={};function $x(e){FA[e]||(typeof console<"u"&&console.error(e),FA[e]=!0)}function I6(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&$x('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];return e.apply(void 0,[r,i,o].concat(s))}}var LX=(typeof window>"u"?"undefined":nl(window))==="object"&&window.Element||function(){};function xP(e,t,n){if(!(e[t]instanceof LX))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var Fc=D.oneOfType([D.string,D.func,xP,D.shape({current:D.any})]),ot=D.oneOfType([D.func,D.string,D.shape({$$typeof:D.symbol,render:D.func}),D.arrayOf(D.oneOfType([D.func,D.string,D.shape({$$typeof:D.symbol,render:D.func})]))]),$v={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Iv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],am={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},ht={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},RX=["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"],wP=!!(typeof window<"u"&&window.document&&window.document.createElement);function $X(e){return e&&nl(e)==="object"?"current"in e:!1}function D6(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Ix(e){var t=nl(e);return e!=null&&(t==="object"||t==="function")}function BA(e){var t=nl(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&D6(e)==="[object Symbol]")return n;if(Ix(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Ix(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 IX(e){if(!Ix(e))return!1;var t=D6(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function DX(e){if($X(e))return e.current;if(IX(e))return e();if(typeof e=="string"&&wP){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 UA(e){return e===null?!1:Array.isArray(e)||wP&&typeof e.length=="number"}function Wd(e,t){var n=DX(e);return t?UA(n)?n:n===null?[]:[n]:UA(n)?n[0]:n}var FX=["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"])'];function OP(e,t){if(!e||!t)return t;var n=EX({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&nl(e[r])==="object"&&OP(e[r],n)}),n}var BX=["className","cssModule","noGutters","tag","widths"];function Dx(){return Dx=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},Dx.apply(this,arguments)}function UX(e,t){if(e==null)return{};var n=zX(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 zX(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 VX=["xs","sm","md","lg","xl","xxl"],Rl=D.oneOfType([D.number,D.string]),WX={tag:ot,noGutters:I6(D.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:D.string,cssModule:D.object,xs:Rl,sm:Rl,md:Rl,lg:Rl,xl:Rl,xxl:Rl,widths:D.array};function ei(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?VX:a,c=UX(e,BX),l=[];s.forEach(function(d,p){var v=e[d];if(delete c[d],!!v){var g=!p;l.push(g?"row-cols-".concat(v):"row-cols-".concat(d,"-").concat(v))}});var f=Ue(Ge(t,r?"gx-0":null,"row",l),n);return V.createElement(o,Dx({},c,{className:f}))}ei.propTypes=WX;var HX=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function Fx(){return Fx=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},Fx.apply(this,arguments)}function x1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GX(e,t){if(e==null)return{};var n=KX(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 KX(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 qX={children:D.node,className:D.string,color:D.string,container:D.oneOfType([D.bool,D.string]),cssModule:D.object,dark:D.bool,expand:D.oneOfType([D.bool,D.string]),fixed:D.string,light:D.bool,role:D.string,sticky:D.string,tag:ot},YX=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function F6(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,c=e.fixed,l=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,x=GX(e,HX),b=Ue(Ge(i,"navbar",YX(r),(t={"navbar-light":a,"navbar-dark":s},x1(t,"bg-".concat(f),f),x1(t,"fixed-".concat(c),c),x1(t,"sticky-".concat(l),l),t)),o),_=p&&p===!0?"container":"container-".concat(p);return V.createElement(g,Fx({},x,{className:b}),p?V.createElement("div",{className:_},y):y)}F6.propTypes=qX;var ZX=["className","cssModule","tag"];function Bx(){return Bx=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},Bx.apply(this,arguments)}function XX(e,t){if(e==null)return{};var n=QX(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 QX(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 JX={className:D.string,cssModule:D.object,tag:ot};function B6(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=XX(e,ZX),a=Ue(Ge(t,"navbar-brand"),n);return V.createElement(i,Bx({},o,{className:a}))}B6.propTypes=JX;var eQ=["className","cssModule","children","tag"];function Ux(){return Ux=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},Ux.apply(this,arguments)}function zA(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 tQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zA(Object(n),!0).forEach(function(r){nQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rQ(e,t){if(e==null)return{};var n=iQ(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 iQ(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 oQ={className:D.string,cssModule:D.object,tag:ot,type:D.string,children:D.node};function U6(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=rQ(e,eQ),s=Ue(Ge(t,"navbar-toggler"),n);return V.createElement(o,Ux({"aria-label":"Toggle navigation"},tQ({type:"button"},a),{className:s}),r||V.createElement("span",{className:Ue("navbar-toggler-icon",n)}))}U6.propTypes=oQ;var aQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function zx(){return zx=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},zx.apply(this,arguments)}function sQ(e,t){if(e==null)return{};var n=lQ(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 lQ(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 cQ={card:D.bool,className:D.string,cssModule:D.object,fill:D.bool,horizontal:D.oneOf(["center","end"]),justified:D.bool,navbar:D.bool,pills:D.bool,tabs:D.bool,tag:ot,vertical:D.oneOfType([D.bool,D.string])},uQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function SP(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,c=e.justified,l=e.fill,f=e.navbar,d=e.card,p=e.tag,v=p===void 0?"ul":p,g=sQ(e,aQ),y=Ue(Ge(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,uQ(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":c,"nav-fill":l}),n);return V.createElement(v,zx({},g,{className:y}))}SP.propTypes=cQ;var fQ=["className","cssModule","active","tag"];function Vx(){return Vx=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},Vx.apply(this,arguments)}function dQ(e,t){if(e==null)return{};var n=hQ(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 hQ(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 pQ={active:D.bool,className:D.string,cssModule:D.object,tag:ot};function PP(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=dQ(e,fQ),s=Ue(Ge(t,"nav-item",r?"active":!1),n);return V.createElement(o,Vx({},a,{className:s}))}PP.propTypes=pQ;function Wx(e){"@babel/helpers - typeof";return Wx=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},Wx(e)}var mQ=["className","cssModule","active","tag","innerRef"];function Hx(){return Hx=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},Hx.apply(this,arguments)}function vQ(e,t){if(e==null)return{};var n=gQ(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 gQ(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 yQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bQ(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 _Q(e,t,n){return t&&bQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xQ(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&&Gx(e,t)}function Gx(e,t){return Gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gx(e,t)}function wQ(e){var t=SQ();return function(){var r=Dv(e),i;if(t){var o=Dv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return OQ(this,i)}}function OQ(e,t){if(t&&(Wx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z6(e)}function z6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SQ(){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 Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}var PQ={active:D.bool,className:D.string,cssModule:D.object,disabled:D.bool,href:D.any,innerRef:D.oneOfType([D.object,D.func,D.string]),onClick:D.func,tag:ot},CP=function(e){xQ(n,e);var t=wQ(n);function n(r){var i;return yQ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(z6(i)),i}return _Q(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,c=i.tag,l=c===void 0?"a":c,f=i.innerRef,d=vQ(i,mQ),p=Ue(Ge(o,"nav-link",{disabled:d.disabled,active:s}),a);return V.createElement(l,Hx({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(V.Component);CP.propTypes=PQ;var CQ=["className","cssModule","variant","innerRef"];function Kx(){return Kx=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},Kx.apply(this,arguments)}function VA(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 EQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(n),!0).forEach(function(r){TQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jQ(e,t){if(e==null)return{};var n=AQ(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 AQ(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 kQ={active:D.bool,"aria-label":D.string,onClick:D.func,variant:D.oneOf(["white"]),className:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func])};function V6(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=jQ(e,CQ),o=Ue(Ge(t,"btn-close",n&&"btn-close-".concat(n)));return V.createElement("button",Kx({ref:r,type:"button",className:o},EQ({"aria-label":"close"},i)))}V6.propTypes=kQ;var NQ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function qx(){return qx=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},qx.apply(this,arguments)}function MQ(e,t){if(e==null)return{};var n=LQ(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 LQ(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 RQ={active:D.bool,"aria-label":D.string,block:D.bool,children:D.node,className:D.string,cssModule:D.object,close:D.bool,color:D.string,disabled:D.bool,innerRef:D.oneOfType([D.object,D.func,D.string]),onClick:D.func,outline:D.bool,size:D.string,tag:ot};function qe(e){var t=N.useCallback(function(_){if(e.disabled){_.preventDefault();return}if(e.onClick)return e.onClick(_)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,c=e.color,l=c===void 0?"secondary":c,f=e.outline,d=e.size,p=e.tag,v=p===void 0?"button":p,g=e.innerRef,y=MQ(e,NQ);if(a)return V.createElement(V6,y);var x="btn".concat(f?"-outline":"","-").concat(l),b=Ue(Ge(o,"btn",x,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,qx({type:v==="button"&&y.onClick?"button":void 0},y,{className:b,ref:g,onClick:t,"aria-label":r}))}qe.propTypes=RQ;var W6=N.createContext(),H6=N.createContext();function WA(e){var t=e.children,n=N.useState(null),r=n[0],i=n[1],o=N.useRef(!1);N.useEffect(function(){return function(){o.current=!0}},[]);var a=N.useCallback(function(s){o.current||i(s)},[]);return N.createElement(W6.Provider,{value:r},N.createElement(H6.Provider,{value:a},t))}var G6=function(t){return Array.isArray(t)?t[0]:t},K6=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)}},Yx=function(t,n){if(typeof t=="function")return K6(t,n);t!=null&&(t.current=n)},HA=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},GA=typeof window<"u"&&window.document&&window.document.createElement?N.useLayoutEffect:N.useEffect,dr="top",si="bottom",li="right",hr="left",EP="auto",Kh=[dr,si,li,hr],Bc="start",Hd="end",$Q="clippingParents",q6="viewport",wf="popper",IQ="reference",KA=Kh.reduce(function(e,t){return e.concat([t+"-"+Bc,t+"-"+Hd])},[]),Y6=[].concat(Kh,[EP]).reduce(function(e,t){return e.concat([t,t+"-"+Bc,t+"-"+Hd])},[]),DQ="beforeRead",FQ="read",BQ="afterRead",UQ="beforeMain",zQ="main",VQ="afterMain",WQ="beforeWrite",HQ="write",GQ="afterWrite",KQ=[DQ,FQ,BQ,UQ,zQ,VQ,WQ,HQ,GQ];function lo(e){return e?(e.nodeName||"").toLowerCase():null}function Ar(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rl(e){var t=Ar(e).Element;return e instanceof t||e instanceof Element}function ri(e){var t=Ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function TP(e){if(typeof ShadowRoot>"u")return!1;var t=Ar(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qQ(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];!ri(o)||!lo(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 YQ(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(c,l){return c[l]="",c},{});!ri(i)||!lo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const ZQ={name:"applyStyles",enabled:!0,phase:"write",fn:qQ,effect:YQ,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ws=Math.max,Fv=Math.min,Uc=Math.round;function Zx(){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 Z6(){return!/^((?!chrome|android).)*safari/i.test(Zx())}function zc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ri(e)&&(i=e.offsetWidth>0&&Uc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Uc(r.height)/e.offsetHeight||1);var a=rl(e)?Ar(e):window,s=a.visualViewport,c=!Z6()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/i,f=(r.top+(c&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:l+d,bottom:f+p,left:l,x:l,y:f}}function jP(e){var t=zc(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 X6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&TP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Uo(e){return Ar(e).getComputedStyle(e)}function XQ(e){return["table","td","th"].indexOf(lo(e))>=0}function ts(e){return((rl(e)?e.ownerDocument:e.document)||window.document).documentElement}function n0(e){return lo(e)==="html"?e:e.assignedSlot||e.parentNode||(TP(e)?e.host:null)||ts(e)}function qA(e){return!ri(e)||Uo(e).position==="fixed"?null:e.offsetParent}function QQ(e){var t=/firefox/i.test(Zx()),n=/Trident/i.test(Zx());if(n&&ri(e)){var r=Uo(e);if(r.position==="fixed")return null}var i=n0(e);for(TP(i)&&(i=i.host);ri(i)&&["html","body"].indexOf(lo(i))<0;){var o=Uo(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 qh(e){for(var t=Ar(e),n=qA(e);n&&XQ(n)&&Uo(n).position==="static";)n=qA(n);return n&&(lo(n)==="html"||lo(n)==="body"&&Uo(n).position==="static")?t:n||QQ(e)||t}function AP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ad(e,t,n){return Ws(e,Fv(t,n))}function JQ(e,t,n){var r=ad(e,t,n);return r>n?n:r}function Q6(){return{top:0,right:0,bottom:0,left:0}}function J6(e){return Object.assign({},Q6(),e)}function eD(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var eJ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,J6(typeof t!="number"?t:eD(t,Kh))};function tJ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ro(n.placement),c=AP(s),l=[hr,li].indexOf(s)>=0,f=l?"height":"width";if(!(!o||!a)){var d=eJ(i.padding,n),p=jP(o),v=c==="y"?dr:hr,g=c==="y"?si:li,y=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],x=a[c]-n.rects.reference[c],b=qh(o),_=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,w=y/2-x/2,S=d[v],C=_-p[f]-d[g],P=_/2-p[f]/2+w,T=ad(S,P,C),j=c;n.modifiersData[r]=(t={},t[j]=T,t.centerOffset=T-P,t)}}function nJ(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)||X6(t.elements.popper,i)&&(t.elements.arrow=i))}const rJ={name:"arrow",enabled:!0,phase:"main",fn:tJ,effect:nJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vc(e){return e.split("-")[1]}var iJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oJ(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Uc(n*i)/i||0,y:Uc(r*i)/i||0}}function YA(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=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,x=typeof f=="function"?f({x:v,y}):{x:v,y};v=x.x,y=x.y;var b=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=hr,S=dr,C=window;if(l){var P=qh(n),T="clientHeight",j="clientWidth";if(P===Ar(n)&&(P=ts(n),Uo(P).position!=="static"&&s==="absolute"&&(T="scrollHeight",j="scrollWidth")),P=P,i===dr||(i===hr||i===li)&&o===Hd){S=si;var $=d&&P===C&&C.visualViewport?C.visualViewport.height:P[T];y-=$-r.height,y*=c?1:-1}if(i===hr||(i===dr||i===si)&&o===Hd){w=li;var M=d&&P===C&&C.visualViewport?C.visualViewport.width:P[j];v-=M-r.width,v*=c?1:-1}}var I=Object.assign({position:s},l&&iJ),F=f===!0?oJ({x:v,y},Ar(n)):{x:v,y};if(v=F.x,y=F.y,c){var q;return Object.assign({},I,(q={},q[S]=_?"0":"",q[w]=b?"0":"",q.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",q))}return Object.assign({},I,(t={},t[S]=_?y+"px":"",t[w]=b?v+"px":"",t.transform="",t))}function aJ(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,c=s===void 0?!0:s,l={placement:ro(t.placement),variation:Vc(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,YA(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,YA(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aJ,data:{}};var sm={passive:!0};function lJ(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,c=Ar(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(f){f.addEventListener("scroll",n.update,sm)}),s&&c.addEventListener("resize",n.update,sm),function(){o&&l.forEach(function(f){f.removeEventListener("scroll",n.update,sm)}),s&&c.removeEventListener("resize",n.update,sm)}}const cJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lJ,data:{}};var uJ={left:"right",right:"left",bottom:"top",top:"bottom"};function Km(e){return e.replace(/left|right|bottom|top/g,function(t){return uJ[t]})}var fJ={start:"end",end:"start"};function ZA(e){return e.replace(/start|end/g,function(t){return fJ[t]})}function kP(e){var t=Ar(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function NP(e){return zc(ts(e)).left+kP(e).scrollLeft}function dJ(e,t){var n=Ar(e),r=ts(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=Z6();(l||!l&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+NP(e),y:c}}function hJ(e){var t,n=ts(e),r=kP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ws(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ws(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+NP(e),c=-r.scrollTop;return Uo(i||n).direction==="rtl"&&(s+=Ws(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function MP(e){var t=Uo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function tD(e){return["html","body","#document"].indexOf(lo(e))>=0?e.ownerDocument.body:ri(e)&&MP(e)?e:tD(n0(e))}function sd(e,t){var n;t===void 0&&(t=[]);var r=tD(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ar(r),a=i?[o].concat(o.visualViewport||[],MP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(sd(n0(a)))}function Xx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pJ(e,t){var n=zc(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 XA(e,t,n){return t===q6?Xx(dJ(e,n)):rl(t)?pJ(t,n):Xx(hJ(ts(e)))}function mJ(e){var t=sd(n0(e)),n=["absolute","fixed"].indexOf(Uo(e).position)>=0,r=n&&ri(e)?qh(e):e;return rl(r)?t.filter(function(i){return rl(i)&&X6(i,r)&&lo(i)!=="body"}):[]}function vJ(e,t,n,r){var i=t==="clippingParents"?mJ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,l){var f=XA(e,l,r);return c.top=Ws(f.top,c.top),c.right=Fv(f.right,c.right),c.bottom=Fv(f.bottom,c.bottom),c.left=Ws(f.left,c.left),c},XA(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 nD(e){var t=e.reference,n=e.element,r=e.placement,i=r?ro(r):null,o=r?Vc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case dr:c={x:a,y:t.y-n.height};break;case si:c={x:a,y:t.y+t.height};break;case li:c={x:t.x+t.width,y:s};break;case hr:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?AP(i):null;if(l!=null){var f=l==="y"?"height":"width";switch(o){case Bc:c[l]=c[l]-(t[f]/2-n[f]/2);break;case Hd:c[l]=c[l]+(t[f]/2-n[f]/2);break}}return c}function Gd(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,c=s===void 0?$Q:s,l=n.rootBoundary,f=l===void 0?q6:l,d=n.elementContext,p=d===void 0?wf:d,v=n.altBoundary,g=v===void 0?!1:v,y=n.padding,x=y===void 0?0:y,b=J6(typeof x!="number"?x:eD(x,Kh)),_=p===wf?IQ:wf,w=e.rects.popper,S=e.elements[g?_:p],C=vJ(rl(S)?S:S.contextElement||ts(e.elements.popper),c,f,a),P=zc(e.elements.reference),T=nD({reference:P,element:w,strategy:"absolute",placement:i}),j=Xx(Object.assign({},w,T)),$=p===wf?j:P,M={top:C.top-$.top+b.top,bottom:$.bottom-C.bottom+b.bottom,left:C.left-$.left+b.left,right:$.right-C.right+b.right},I=e.modifiersData.offset;if(p===wf&&I){var F=I[i];Object.keys(M).forEach(function(q){var H=[li,si].indexOf(q)>=0?1:-1,Z=[dr,si].indexOf(q)>=0?"y":"x";M[q]+=F[Z]*H})}return M}function gJ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Y6:c,f=Vc(r),d=f?s?KA:KA.filter(function(g){return Vc(g)===f}):Kh,p=d.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=d);var v=p.reduce(function(g,y){return g[y]=Gd(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function yJ(e){if(ro(e)===EP)return[];var t=Km(e);return[ZA(e),t,ZA(t)]}function bJ(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,c=n.fallbackPlacements,l=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,y=n.allowedAutoPlacements,x=t.options.placement,b=ro(x),_=b===x,w=c||(_||!g?[Km(x)]:yJ(x)),S=[x].concat(w).reduce(function(ne,re){return ne.concat(ro(re)===EP?gJ(t,{placement:re,boundary:f,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:y}):re)},[]),C=t.rects.reference,P=t.rects.popper,T=new Map,j=!0,$=S[0],M=0;M<S.length;M++){var I=S[M],F=ro(I),q=Vc(I)===Bc,H=[dr,si].indexOf(F)>=0,Z=H?"width":"height",Q=Gd(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:l}),te=H?q?li:hr:q?si:dr;C[Z]>P[Z]&&(te=Km(te));var X=Km(te),U=[];if(o&&U.push(Q[F]<=0),s&&U.push(Q[te]<=0,Q[X]<=0),U.every(function(ne){return ne})){$=I,j=!1;break}T.set(I,U)}if(j)for(var B=g?3:1,W=function(re){var ae=S.find(function(fe){var A=T.get(fe);if(A)return A.slice(0,re).every(function(k){return k})});if(ae)return $=ae,"break"},ee=B;ee>0;ee--){var G=W(ee);if(G==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const _J={name:"flip",enabled:!0,phase:"main",fn:bJ,requiresIfExists:["offset"],data:{_skip:!1}};function QA(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 JA(e){return[dr,li,si,hr].some(function(t){return e[t]>=0})}function xJ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Gd(t,{elementContext:"reference"}),s=Gd(t,{altBoundary:!0}),c=QA(a,r),l=QA(s,i,o),f=JA(c),d=JA(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const wJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xJ};function OJ(e,t,n){var r=ro(e),i=[hr,dr].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,[hr,li].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function SJ(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Y6.reduce(function(f,d){return f[d]=OJ(d,t.rects,o),f},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const PJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SJ};function CJ(e){var t=e.state,n=e.name;t.modifiersData[n]=nD({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const EJ={name:"popperOffsets",enabled:!0,phase:"read",fn:CJ,data:{}};function TJ(e){return e==="x"?"y":"x"}function jJ(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,c=n.boundary,l=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,x=Gd(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:f}),b=ro(t.placement),_=Vc(t.placement),w=!_,S=AP(b),C=TJ(S),P=t.modifiersData.popperOffsets,T=t.rects.reference,j=t.rects.popper,$=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(o){var q,H=S==="y"?dr:hr,Z=S==="y"?si:li,Q=S==="y"?"height":"width",te=P[S],X=te+x[H],U=te-x[Z],B=v?-j[Q]/2:0,W=_===Bc?T[Q]:j[Q],ee=_===Bc?-j[Q]:-T[Q],G=t.elements.arrow,ne=v&&G?jP(G):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Q6(),ae=re[H],fe=re[Z],A=ad(0,T[Q],ne[Q]),k=w?T[Q]/2-B-A-ae-M.mainAxis:W-A-ae-M.mainAxis,z=w?-T[Q]/2+B+A+fe+M.mainAxis:ee+A+fe+M.mainAxis,J=t.elements.arrow&&qh(t.elements.arrow),Y=J?S==="y"?J.clientTop||0:J.clientLeft||0:0,ie=(q=I==null?void 0:I[S])!=null?q:0,de=te+k-ie-Y,Ce=te+z-ie,se=ad(v?Fv(X,de):X,te,v?Ws(U,Ce):U);P[S]=se,F[S]=se-te}if(s){var pe,ve=S==="x"?dr:hr,xe=S==="x"?si:li,Ne=P[C],Te=C==="y"?"height":"width",Ae=Ne+x[ve],le=Ne-x[xe],ue=[dr,hr].indexOf(b)!==-1,ge=(pe=I==null?void 0:I[C])!=null?pe:0,ye=ue?Ae:Ne-T[Te]-j[Te]-ge+M.altAxis,we=ue?Ne+T[Te]+j[Te]-ge-M.altAxis:le,Me=v&&ue?JQ(ye,Ne,we):ad(v?ye:Ae,Ne,v?we:le);P[C]=Me,F[C]=Me-Ne}t.modifiersData[r]=F}}const AJ={name:"preventOverflow",enabled:!0,phase:"main",fn:jJ,requiresIfExists:["offset"]};function kJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function NJ(e){return e===Ar(e)||!ri(e)?kP(e):kJ(e)}function MJ(e){var t=e.getBoundingClientRect(),n=Uc(t.width)/e.offsetWidth||1,r=Uc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function LJ(e,t,n){n===void 0&&(n=!1);var r=ri(t),i=ri(t)&&MJ(t),o=ts(t),a=zc(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((lo(t)!=="body"||MP(o))&&(s=NJ(t)),ri(t)?(c=zc(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=NP(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function RJ(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 c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function $J(e){var t=RJ(e);return KQ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function IJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DJ(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 e3={placement:"bottom",modifiers:[],strategy:"absolute"};function t3(){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 FJ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?e3:i;return function(s,c,l){l===void 0&&(l=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},e3,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},d=[],p=!1,v={state:f,setOptions:function(b){var _=typeof b=="function"?b(f.options):b;y(),f.options=Object.assign({},o,f.options,_),f.scrollParents={reference:rl(s)?sd(s):s.contextElement?sd(s.contextElement):[],popper:sd(c)};var w=$J(DJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(S){return S.enabled}),g(),v.update()},forceUpdate:function(){if(!p){var b=f.elements,_=b.reference,w=b.popper;if(t3(_,w)){f.rects={reference:LJ(_,qh(w),f.options.strategy==="fixed"),popper:jP(w)},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 C=f.orderedModifiers[S],P=C.fn,T=C.options,j=T===void 0?{}:T,$=C.name;typeof P=="function"&&(f=P({state:f,options:j,name:$,instance:v})||f)}}}},update:IJ(function(){return new Promise(function(x){v.forceUpdate(),x(f)})}),destroy:function(){y(),p=!0}};if(!t3(s,c))return v;v.setOptions(l).then(function(x){!p&&l.onFirstUpdate&&l.onFirstUpdate(x)});function g(){f.orderedModifiers.forEach(function(x){var b=x.name,_=x.options,w=_===void 0?{}:_,S=x.effect;if(typeof S=="function"){var C=S({state:f,name:b,instance:v,options:w}),P=function(){};d.push(C||P)}})}function y(){d.forEach(function(x){return x()}),d=[]}return v}}var BJ=[cJ,EJ,sJ,ZQ,PJ,_J,AJ,rJ,wJ],UJ=FJ({defaultModifiers:BJ}),zJ=typeof Element<"u",VJ=typeof Map=="function",WJ=typeof Set=="function",HJ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function qm(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(!qm(e[r],t[r]))return!1;return!0}var o;if(VJ&&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(!qm(r.value[1],t.get(r.value[0])))return!1;return!0}if(WJ&&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(HJ&&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(zJ&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!qm(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var GJ=function(t,n){try{return qm(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 KJ=st(GJ);var qJ=[],YJ=function(t,n,r){r===void 0&&(r={});var i=N.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||qJ},a=N.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],l=N.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var g=v.state,y=Object.keys(g.elements);Wy.flushSync(function(){c({styles:HA(y.map(function(x){return[x,g.styles[x]||{}]})),attributes:HA(y.map(function(x){return[x,g.attributes[x]]}))})})},requires:["computeStyles"]}},[]),f=N.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return KJ(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=N.useRef();return GA(function(){d.current&&d.current.setOptions(f)},[f]),GA(function(){if(!(t==null||n==null)){var p=r.createPopper||UJ,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}},ZJ=function(){},XJ=function(){return Promise.resolve(null)},QJ=[];function rD(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?QJ:o,s=e.referenceElement,c=e.onFirstUpdate,l=e.innerRef,f=e.children,d=N.useContext(W6),p=N.useState(null),v=p[0],g=p[1],y=N.useState(null),x=y[0],b=y[1];N.useEffect(function(){Yx(l,v)},[l,v]);var _=N.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,c,a,x]),w=YJ(s||d,v,_),S=w.state,C=w.styles,P=w.forceUpdate,T=w.update,j=N.useMemo(function(){return{ref:g,style:C.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:C.arrow,ref:b},forceUpdate:P||ZJ,update:T||XJ}},[g,b,n,S,C,T,P]);return G6(f)(j)}var JJ=function(){},eee=JJ;const tee=st(eee);function nee(e){var t=e.children,n=e.innerRef,r=N.useContext(H6),i=N.useCallback(function(o){Yx(n,o),K6(r,o)},[n,r]);return N.useEffect(function(){return function(){return Yx(n,null)}},[]),N.useEffect(function(){tee(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),G6(t)({ref:i})}var Kd=V.createContext({}),iD=V.createContext({});function Qx(e){"@babel/helpers - typeof";return Qx=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},Qx(e)}var ree=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function Jx(){return Jx=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},Jx.apply(this,arguments)}function la(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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}function aee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function see(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 lee(e,t,n){return t&&see(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cee(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&&ew(e,t)}function ew(e,t){return ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ew(e,t)}function uee(e){var t=dee();return function(){var r=Bv(e),i;if(t){var o=Bv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fee(this,i)}}function fee(e,t){if(t&&(Qx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ua(e)}function ua(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dee(){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 Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}var hee={a11y:D.bool,disabled:D.bool,direction:D.oneOf(["up","down","start","end","left","right"]),group:D.bool,isOpen:D.bool,nav:D.bool,active:D.bool,size:D.string,tag:ot,toggle:D.func,children:D.node,className:D.string,cssModule:D.object,dropup:D.bool,inNavbar:D.bool,setActiveFromChild:D.bool,menuRole:D.oneOf(["listbox","menu"])},pee={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},mee=[ht.space,ht.enter,ht.up,ht.down,ht.end,ht.home],ns=function(e){cee(n,e);var t=uee(n);function n(r){var i;return aee(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(ua(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ua(i)),i.handleKeyDown=i.handleKeyDown.bind(ua(i)),i.removeEvents=i.removeEvents.bind(ua(i)),i.toggle=i.toggle.bind(ua(i)),i.handleMenuRef=i.handleMenuRef.bind(ua(i)),i.handleToggleRef=i.handleToggleRef.bind(ua(i)),i.containerRef=V.createRef(),i.menuRef=V.createRef(),i.toggleRef=V.createRef(),i}return lee(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!==ht.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var c=s.contains(i.target),l=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"),!((c&&!f||l)&&(i.type!=="keyup"||i.which===ht.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,c=ht.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((mee.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([ht.space,ht.enter,ht.up,ht.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var _;return(_=o.getMenuItems()[0])===null||_===void 0?void 0:_.focus()});else if(this.props.isOpen&&c){var l;i.preventDefault(),(l=this.getMenuItems()[0])===null||l===void 0||l.focus()}else this.props.isOpen&&i.which===ht.esc&&this.toggle(i);if(this.props.isOpen&&a){if([ht.tab,ht.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([ht.space,ht.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([ht.down,ht.up].indexOf(i.which)>-1||[ht.n,ht.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);ht.up===i.which||ht.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(ht.down===i.which||ht.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(ht.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(ht.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(),x=0;x<g.length;x+=1){var b=g[x].textContent&&g[x].textContent[0].toLowerCase();if(b===y){g[x].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=es(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,c=a.cssModule,l=a.direction,f=a.isOpen,d=a.group,p=a.size,v=a.nav,g=a.setActiveFromChild,y=a.active,x=a.tag;a.menuRole;var b=iee(a,ree),_=x||(v?"li":"div"),w=!1;g&&V.Children.map(this.props.children[1].props.children,function(C){C&&C.props.active&&(w=!0)});var S=Ue(Ge(s,v&&y?"active":!1,g&&w?"active":!1,(i={"btn-group":d},la(i,"btn-group-".concat(p),!!p),la(i,"dropdown",!d),la(i,"dropup",l==="up"),la(i,"dropstart",l==="start"||l==="left"),la(i,"dropend",l==="end"||l==="right"),la(i,"show",f),la(i,"nav-item",v),i)),c);return this.context.insideInputGroup?V.createElement(Kd.Provider,{value:this.getContextValue()},V.createElement(WA,null,V.Children.map(this.props.children,function(C){return V.cloneElement(C,{onKeyDown:o.handleKeyDown})}))):V.createElement(Kd.Provider,{value:this.getContextValue()},V.createElement(WA,null,V.createElement(_,Jx({},b,la({},typeof _=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:S}))))}}]),n}(V.Component);ns.propTypes=hee;ns.defaultProps=pee;ns.contextType=iD;function tw(e){"@babel/helpers - typeof";return tw=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},tw(e)}var vee=["className","cssModule","divider","tag","header","active","text"];function nw(){return nw=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},nw.apply(this,arguments)}function gee(e,t){if(e==null)return{};var n=yee(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 yee(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 bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ee(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 xee(e,t,n){return t&&_ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rw(e,t)}function rw(e,t){return rw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rw(e,t)}function Oee(e){var t=Pee();return function(){var r=Uv(e),i;if(t){var o=Uv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return See(this,i)}}function See(e,t){if(t&&(tw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iw(e)}function iw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pee(){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 Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}var Cee={children:D.node,active:D.bool,disabled:D.bool,divider:D.bool,tag:ot,header:D.bool,onClick:D.func,className:D.string,cssModule:D.object,toggle:D.bool,text:D.bool},ke=function(e){wee(n,e);var t=Oee(n);function n(r){var i;return bee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(iw(i)),i.getTabIndex=i.getTabIndex.bind(iw(i)),i}return xee(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,c=a.header,l=a.divider,f=a.text;if(s||c||l||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,c=i.text;return o||a||s||c?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=es(this.props,["toggle"]),s=a.className,c=a.cssModule,l=a.divider,f=a.tag,d=f===void 0?"button":f,p=a.header,v=a.active,g=a.text,y=gee(a,vee),x=Ue(Ge(s,{disabled:y.disabled,"dropdown-item":!l&&!p&&!g,active:v,"dropdown-header":p,"dropdown-divider":l,"dropdown-item-text":g}),c);return d==="button"&&(p?d="h6":l?d="div":y.href?d="a":g&&(d="span")),V.createElement(d,nw({type:d==="button"&&(y.onClick||this.props.toggle)?"button":void 0},y,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(V.Component);ke.propTypes=Cee;ke.contextType=Kd;function ow(e){"@babel/helpers - typeof";return ow=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},ow(e)}var Eee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function zv(){return zv=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},zv.apply(this,arguments)}function n3(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 w1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n3(Object(n),!0).forEach(function(r){Tee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jee(e){return Mee(e)||Nee(e)||kee(e)||Aee()}function Aee(){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 kee(e,t){if(e){if(typeof e=="string")return aw(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 aw(e,t)}}function Nee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mee(e){if(Array.isArray(e))return aw(e)}function aw(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 Lee(e,t){if(e==null)return{};var n=Ree(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 Ree(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 $ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iee(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 Dee(e,t,n){return t&&Iee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),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&&sw(e,t)}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sw(e,t)}function Bee(e){var t=Vee();return function(){var r=Vv(e),i;if(t){var o=Vv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Uee(this,i)}}function Uee(e,t){if(t&&(ow(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zee(e)}function zee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vee(){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 Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}var Wee={tag:ot,children:D.node.isRequired,dark:D.bool,end:D.bool,flip:D.bool,modifiers:D.array,className:D.string,cssModule:D.object,style:D.object,persist:D.bool,strategy:D.string,container:Fc,updateOnSelect:D.bool,right:I6(D.bool,'Please use "end" instead.')},Hee={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},rs=function(e){Fee(n,e);var t=Bee(n);function n(){return $ee(this,n),t.apply(this,arguments)}return Dee(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,c=o.dark,l=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,x=y===void 0?[]:y,b=o.persist,_=o.strategy,w=o.container,S=o.updateOnSelect,C=Lee(o,Eee),P=Ue(Ge(a,"dropdown-menu",{"dropdown-menu-dark":c,"dropdown-menu-end":l||f,show:this.context.isOpen}),s),T=p;if(b||this.context.isOpen&&!this.context.inNavbar){var j=Hee[this.context.direction]||"bottom",$=l||f?"end":"start",M="".concat(j,"-").concat($),I=[].concat(jee(x),[{name:"flip",enabled:!!g}]),F={};b&&(F.display="block",F.visibility=this.context.isOpen?"visible":"hidden");var q=V.createElement(rD,{placement:M,modifiers:I,strategy:_},function(Z){var Q=Z.ref,te=Z.style,X=Z.placement,U=Z.update,B=w1(w1(w1({},i.props.style),F),te),W=function(G){Q(G);var ne=i.context.onMenuRef;ne&&ne(G)};return V.createElement(T,zv({tabIndex:"-1",role:i.getRole(),ref:W},C,{style:B,"aria-hidden":!i.context.isOpen,className:P,"data-popper-placement":X,onClick:function(){return S&&U()}}))});return w?Rs.createPortal(q,Wd(w)):q}var H=this.context.onMenuRef;return V.createElement(T,zv({tabIndex:"-1",role:this.getRole()},C,{ref:H,"aria-hidden":!this.context.isOpen,className:P,"data-popper-placement":C.placement,"data-bs-popper":"static"}))}}]),n}(V.Component);rs.propTypes=Wee;rs.contextType=Kd;function lw(e){"@babel/helpers - typeof";return lw=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},lw(e)}var Gee=["className","color","cssModule","caret","split","nav","tag","innerRef"];function cw(){return cw=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},cw.apply(this,arguments)}function Kee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e,t){if(e==null)return{};var n=Yee(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 Yee(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 Zee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xee(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 Qee(e,t,n){return t&&Xee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jee(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&&uw(e,t)}function uw(e,t){return uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uw(e,t)}function ete(e){var t=nte();return function(){var r=Wv(e),i;if(t){var o=Wv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return tte(this,i)}}function tte(e,t){if(t&&(lw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oD(e)}function oD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nte(){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 Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wv(e)}var rte={caret:D.bool,color:D.string,children:D.node,className:D.string,cssModule:D.object,disabled:D.bool,onClick:D.func,"aria-haspopup":D.bool,split:D.bool,tag:ot,nav:D.bool,innerRef:D.oneOfType([D.object,D.string,D.func])},ite={color:"secondary","aria-haspopup":!0},Qo=function(e){Jee(n,e);var t=ete(n);function n(r){var i;return Zee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(oD(i)),i}return Qee(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,c=o.cssModule,l=o.caret,f=o.split,d=o.nav,p=o.tag,v=o.innerRef,g=qee(o,Gee),y=g["aria-label"]||"Toggle Dropdown",x=Ue(Ge(a,{"dropdown-toggle":l||f,"dropdown-toggle-split":f,"nav-link":d}),c),b=typeof g.children<"u"?g.children:V.createElement("span",{className:"visually-hidden"},y),_;d&&!p?(_="a",g.href="#"):p?_=p:(_=qe,g.color=s,g.cssModule=c);var w=function(C){var P=C.ref,T=function($){P($);var M=i.context.onToggleRef;M&&M($)};return V.createElement(_,cw({},g,Kee({},typeof _=="string"?"ref":"innerRef",T),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:b}))};return this.context.inNavbar?V.createElement(V.Fragment,null,w({ref:this.context.onToggleRef})):V.createElement(nee,{innerRef:v},w)}}]),n}(V.Component);Qo.propTypes=rte;Qo.defaultProps=ite;Qo.contextType=Kd;function ote(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fw(e,t){return fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fw(e,t)}function ate(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fw(e,t)}const r3={disabled:!1},aD=V.createContext(null);var ste=function(t){return t.scrollTop},Vf="unmounted",ws="exited",Os="entering",Kl="entered",dw="exiting",vr=function(e){ate(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,c;return o.appearStatus=null,r.in?s?(c=ws,o.appearStatus=Os):c=Kl:r.unmountOnExit||r.mountOnEnter?c=Vf:c=ws,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Vf?{status:ws}: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!==Os&&a!==Kl&&(o=Os):(a===Os||a===Kl)&&(o=dw)}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===Os){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Rs.findDOMNode(this);a&&ste(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ws&&this.setState({status:Vf})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[Rs.findDOMNode(this),s],l=c[0],f=c[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||r3.disabled){this.safeSetState({status:Kl},function(){o.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:Os},function(){o.props.onEntering(l,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Kl},function(){o.props.onEntered(l,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Rs.findDOMNode(this);if(!o||r3.disabled){this.safeSetState({status:ws},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:dw},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ws},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:Rs.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],f=c[1];this.props.addEndListener(l,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Vf)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=ote(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(aD.Provider,{value:null},typeof a=="function"?a(i,s):V.cloneElement(V.Children.only(a),s))},t}(V.Component);vr.contextType=aD;vr.propTypes={};function $l(){}vr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$l,onEntering:$l,onEntered:$l,onExit:$l,onExiting:$l,onExited:$l};vr.UNMOUNTED=Vf;vr.EXITED=ws;vr.ENTERING=Os;vr.ENTERED=Kl;vr.EXITING=dw;var lte=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Hv(){return Hv=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},Hv.apply(this,arguments)}function cte(e,t){if(e==null)return{};var n=ute(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 ute(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 i3(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 qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i3(Object(n),!0).forEach(function(r){fte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dte=qd(qd({},vr.propTypes),{},{children:D.oneOfType([D.arrayOf(D.node),D.node]),tag:ot,baseClass:D.string,baseClassActive:D.string,className:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func])}),o3=qd(qd({},vr.defaultProps),{},{timeout:$v.Fade,appear:!0,enter:!0,exit:!0,in:!0});function sr(e){var t=N.useRef(null),n=OP(o3,e),r=n.tag,i=r===void 0?"div":r,o=n.baseClass,a=o===void 0?"fade":o,s=n.baseClassActive,c=s===void 0?"show":s,l=n.className,f=n.cssModule,d=n.children,p=n.innerRef,v=p===void 0?t:p,g=cte(n,lte),y=$6(qd({defaultProps:o3},g),Iv),x=es(g,Iv);return V.createElement(vr,Hv({nodeRef:v},y),function(b){var _=b==="entered",w=Ue(Ge(l,a,_&&c),f);return V.createElement(i,Hv({className:w},x,{ref:v}),d)})}sr.propTypes=dte;function hw(e){"@babel/helpers - typeof";return hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hw(e)}var hte=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Il;function Gv(){return Gv=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},Gv.apply(this,arguments)}function pte(e,t){if(e==null)return{};var n=mte(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 mte(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 gte(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 yte(e,t,n){return t&>e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bte(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&&pw(e,t)}function pw(e,t){return pw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pw(e,t)}function _te(e){var t=wte();return function(){var r=Kv(e),i;if(t){var o=Kv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return xte(this,i)}}function xte(e,t){if(t&&(hw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sD(e)}function sD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wte(){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 Kv(e){return Kv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kv(e)}function a3(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 Wc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a3(Object(n),!0).forEach(function(r){fc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ote=Wc(Wc({},vr.propTypes),{},{horizontal:D.bool,isOpen:D.bool,children:D.oneOfType([D.arrayOf(D.node),D.node]),tag:ot,className:D.node,navbar:D.bool,cssModule:D.object,innerRef:D.shape({current:D.object})}),Ste=Wc(Wc({},vr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:$v.Collapse}),Pte=(Il={},fc(Il,am.ENTERING,"collapsing"),fc(Il,am.ENTERED,"collapse show"),fc(Il,am.EXITING,"collapsing"),fc(Il,am.EXITED,"collapse"),Il);function Cte(e){return Pte[e]||"collapse"}var LP=function(e){bte(n,e);var t=_te(n);function n(r){var i;return vte(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(sD(i))}),i}return yte(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,c=o.isOpen,l=o.className,f=o.navbar,d=o.cssModule,p=o.children;o.innerRef;var v=pte(o,hte),g=this.state.dimension,y=$6(v,Iv),x=es(v,Iv);return V.createElement(vr,Gv({},y,{in:c,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(b){var _=Cte(b),w=Ue(Ge(l,s&&"collapse-horizontal",_,f&&"navbar-collapse"),d),S=g===null?null:fc({},s?"width":"height",g);return V.createElement(a,Gv({},x,{style:Wc(Wc({},x.style),S),className:w,ref:i.nodeRef}),p)})}}]),n}(N.Component);LP.propTypes=Ote;LP.defaultProps=Ste;var Ete=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function mw(){return mw=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},mw.apply(this,arguments)}function Tte(e,t){if(e==null)return{};var n=jte(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 jte(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 Ate={body:D.bool,className:D.string,color:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func]),inverse:D.bool,outline:D.bool,tag:ot};function Ir(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,c=s===void 0?"div":s,l=e.innerRef,f=Tte(e,Ete),d=Ue(Ge(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return V.createElement(c,mw({},f,{className:d,ref:l}))}Ir.propTypes=Ate;var kte=["className","cssModule","innerRef","tag"];function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vw.apply(this,arguments)}function Nte(e,t){if(e==null)return{};var n=Mte(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 Mte(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 Lte={className:D.string,cssModule:D.object,innerRef:D.oneOfType([D.object,D.string,D.func]),tag:ot};function Yh(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Nte(e,kte),s=Ue(Ge(t,"card-body"),n);return V.createElement(o,vw({},a,{className:s,ref:r}))}Yh.propTypes=Lte;var Rte=["className","cssModule","tag"];function gw(){return gw=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},gw.apply(this,arguments)}function $te(e,t){if(e==null)return{};var n=Ite(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 Ite(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 Dte={className:D.string,cssModule:D.object,tag:ot};function lD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=$te(e,Rte),a=Ue(Ge(t,"card-footer"),n);return V.createElement(i,gw({},o,{className:a}))}lD.propTypes=Dte;var Fte=["className","cssModule","tag"];function yw(){return yw=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},yw.apply(this,arguments)}function Bte(e,t){if(e==null)return{};var n=Ute(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 Ute(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 zte={className:D.string,cssModule:D.object,tag:ot};function Zh(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Bte(e,Fte),a=Ue(Ge(t,"card-header"),n);return V.createElement(i,yw({},o,{className:a}))}Zh.propTypes=zte;var Vte=["className","cssModule","tag"];function bw(){return bw=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},bw.apply(this,arguments)}function Wte(e,t){if(e==null)return{};var n=Hte(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 Hte(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 Gte={className:D.string,cssModule:D.object,tag:ot};function cD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=Wte(e,Vte),a=Ue(Ge(t,"card-text"),n);return V.createElement(i,bw({},o,{className:a}))}cD.propTypes=Gte;var Kte=["className","cssModule","tag"];function _w(){return _w=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},_w.apply(this,arguments)}function qte(e,t){if(e==null)return{};var n=Yte(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 Yte(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 Zte={className:D.string,cssModule:D.object,tag:ot};function uD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=qte(e,Kte),a=Ue(Ge(t,"card-title"),n);return V.createElement(i,_w({},o,{className:a}))}uD.propTypes=Zte;function xw(e){"@babel/helpers - typeof";return xw=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},xw(e)}var Xte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function ww(){return ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ww.apply(this,arguments)}function s3(e){return tne(e)||ene(e)||Jte(e)||Qte()}function Qte(){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 Jte(e,t){if(e){if(typeof e=="string")return Ow(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 Ow(e,t)}}function ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tne(e){if(Array.isArray(e))return Ow(e)}function Ow(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 nne(e,t){if(e==null)return{};var n=rne(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 rne(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 ine(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l3(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 one(e,t,n){return t&&l3(e.prototype,t),n&&l3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ane(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&&Sw(e,t)}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sw(e,t)}function sne(e){var t=cne();return function(){var r=qv(e),i;if(t){var o=qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return lne(this,i)}}function lne(e,t){if(t&&(xw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wf(e)}function Wf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cne(){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 qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qv(e)}function c3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ym(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c3(Object(n),!0).forEach(function(r){une(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function une(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fne(){}var dne={children:D.oneOfType([D.node,D.func]).isRequired,popperClassName:D.string,placement:D.string,placementPrefix:D.string,arrowClassName:D.string,hideArrow:D.bool,tag:ot,isOpen:D.bool,cssModule:D.object,offset:D.arrayOf(D.number),fallbackPlacements:D.array,flip:D.bool,container:Fc,target:Fc.isRequired,modifiers:D.array,strategy:D.string,boundariesElement:D.oneOfType([D.string,xP]),onClosed:D.func,fade:D.bool,transition:D.shape(sr.propTypes)},hne={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:fne,fade:!0,transition:Ym({},sr.defaultProps)},RP=function(e){ane(n,e);var t=sne(n);function n(r){var i;return ine(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(Wf(i)),i.getTargetNode=i.getTargetNode.bind(Wf(i)),i.getRef=i.getRef.bind(Wf(i)),i.onClosed=i.onClosed.bind(Wf(i)),i.state={isOpen:r.isOpen},i}return one(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 Wd(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Wd(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,c=i.flip;i.target;var l=i.offset,f=i.fallbackPlacements,d=i.placementPrefix,p=i.arrowClassName,v=i.hideArrow,g=i.popperClassName,y=i.tag;i.container;var x=i.modifiers,b=i.strategy,_=i.boundariesElement;i.onClosed;var w=i.fade,S=i.transition,C=i.placement,P=nne(i,Xte),T=Ue(Ge("arrow",p),o),j=Ue(Ge(g,d?"".concat(d,"-auto"):""),this.props.cssModule),$=x.map(function(q){return q.name}),M=[{name:"offset",options:{offset:l}},{name:"flip",enabled:c,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:_}}].filter(function(q){return!$.includes(q.name)}),I=[].concat(s3(M),s3(x)),F=Ym(Ym(Ym({},sr.defaultProps),S),{},{baseClass:w?S.baseClass:"",timeout:w?S.timeout:0});return V.createElement(sr,ww({},F,P,{in:s,onExited:this.onClosed,tag:y}),V.createElement(rD,{referenceElement:this.targetNode,modifiers:I,placement:C,strategy:b},function(q){var H=q.ref,Z=q.style,Q=q.placement,te=q.isReferenceHidden,X=q.arrowProps,U=q.update;return V.createElement("div",{ref:H,style:Z,className:j,"data-popper-placement":Q,"data-popper-reference-hidden":te?"true":void 0},typeof a=="function"?a({update:U}):a,!v&&V.createElement("span",{ref:X.ref,className:T,style:X.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Rs.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);RP.propTypes=dne;RP.defaultProps=hne;function Pw(){return Pw=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},Pw.apply(this,arguments)}function Yd(e){"@babel/helpers - typeof";return Yd=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},Yd(e)}function pne(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 mne(e,t,n){return t&&u3(e.prototype,t),n&&u3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vne(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&&Cw(e,t)}function Cw(e,t){return Cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cw(e,t)}function gne(e){var t=bne();return function(){var r=Yv(e),i;if(t){var o=Yv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yne(this,i)}}function yne(e,t){if(t&&(Yd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return br(e)}function br(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bne(){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 Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}var $P={children:D.oneOfType([D.node,D.func]),placement:D.oneOf(RX),target:Fc.isRequired,container:Fc,isOpen:D.bool,disabled:D.bool,hideArrow:D.bool,boundariesElement:D.oneOfType([D.string,xP]),className:D.string,innerClassName:D.string,arrowClassName:D.string,popperClassName:D.string,cssModule:D.object,toggle:D.func,autohide:D.bool,placementPrefix:D.string,delay:D.oneOfType([D.shape({show:D.number,hide:D.number}),D.number]),modifiers:D.array,strategy:D.string,offset:D.arrayOf(D.number),innerRef:D.oneOfType([D.func,D.string,D.object]),trigger:D.string,fade:D.bool,flip:D.bool},fD={show:0,hide:50},_ne={isOpen:!1,hideArrow:!1,autohide:!1,delay:fD,toggle:function(){},trigger:"click",fade:!0};function dD(e,t){return t&&(e===t||t.contains(e))}function f3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return dD(e,n)})[0]}var IP=function(e){vne(n,e);var t=gne(n);function n(r){var i;return pne(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(br(i)),i.handleDocumentClick=i.handleDocumentClick.bind(br(i)),i.removeTargetEvents=i.removeTargetEvents.bind(br(i)),i.toggle=i.toggle.bind(br(i)),i.showWithDelay=i.showWithDelay.bind(br(i)),i.hideWithDelay=i.hideWithDelay.bind(br(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(br(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(br(i)),i.show=i.show.bind(br(i)),i.hide=i.hide.bind(br(i)),i.onEscKeyDown=i.onEscKeyDown.bind(br(i)),i.getRef=i.getRef.bind(br(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return mne(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||f3(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!dD(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&f3(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):Yd(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return Yd(o)==="object"?isNaN(o[i])?fD[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=Wd(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,c=a.cssModule,l=a.innerClassName,f=a.isOpen,d=a.hideArrow,p=a.boundariesElement,v=a.placement,g=a.placementPrefix,y=a.arrowClassName,x=a.popperClassName,b=a.container,_=a.modifiers,w=a.strategy,S=a.offset,C=a.fade,P=a.flip,T=a.children,j=es(this.props,Object.keys($P)),$=Ue(x,c),M=Ue(l,c);return V.createElement(RP,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:v,placementPrefix:g,arrowClassName:y,popperClassName:$,container:b,modifiers:_,strategy:w,offset:S,cssModule:c,fade:C,flip:P},function(I){var F=I.update;return V.createElement("div",Pw({},j,{ref:i.getRef,className:M,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof T=="function"?T({update:F}):T)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);IP.propTypes=$P;IP.defaultProps=_ne;var xne=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Zv(){return Zv=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},Zv.apply(this,arguments)}function d3(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 O1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d3(Object(n),!0).forEach(function(r){wne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function One(e,t){if(e==null)return{};var n=Sne(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 Sne(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 Pne={animated:D.bool,bar:D.bool,barAriaLabelledBy:D.string,barAriaValueText:D.string,barClassName:D.string,barStyle:D.object,children:D.node,className:D.string,cssModule:D.object,color:D.string,max:D.oneOfType([D.string,D.number]),min:D.oneOfType([D.string,D.number]),multi:D.bool,striped:D.bool,style:D.object,tag:ot,value:D.oneOfType([D.string,D.number])};function hD(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,c=s===void 0?0:s,l=e.max,f=l===void 0?100:l,d=e.animated,p=e.striped,v=e.color,g=e.bar,y=e.multi,x=e.tag,b=x===void 0?"div":x,_=e.style,w=_===void 0?{}:_,S=e.barStyle,C=S===void 0?{}:S,P=e.barAriaValueText,T=e.barAriaLabelledBy,j=One(e,xne),$=BA(a)/BA(f)*100,M=Ue(Ge(n,"progress"),i),I=Ue(Ge("progress-bar",g&&n||r,d?"progress-bar-animated":null,v?"bg-".concat(v):null,p||d?"progress-bar-striped":null),i),F={className:I,style:O1(O1(O1({},g?w:{}),C),{},{width:"".concat($,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":f,"aria-valuetext":P,"aria-labelledby":T,children:t};return g?V.createElement(b,Zv({},j,F)):V.createElement(b,Zv({},j,{style:w,className:M}),y?t:V.createElement("div",F))}hD.propTypes=Pne;function Ew(e){"@babel/helpers - typeof";return Ew=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},Ew(e)}function Cne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ene(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 Tne(e,t,n){return t&&Ene(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jne(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&&Tw(e,t)}function Tw(e,t){return Tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Tw(e,t)}function Ane(e){var t=Mne();return function(){var r=Xv(e),i;if(t){var o=Xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kne(this,i)}}function kne(e,t){if(t&&(Ew(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nne(e)}function Nne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mne(){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 Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}var Lne={children:D.node.isRequired,node:D.any},pD=function(e){jne(n,e);var t=Ane(n);function n(){return Cne(this,n),t.apply(this,arguments)}return Tne(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return wP?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Rs.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(V.Component);pD.propTypes=Lne;function jw(e){"@babel/helpers - typeof";return jw=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},jw(e)}function h3(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 Dl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h3(Object(n),!0).forEach(function(r){ql(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ld(){return ld=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},ld.apply(this,arguments)}function ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ne(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 Ine(e,t,n){return t&&$ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dne(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&&Aw(e,t)}function Aw(e,t){return Aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Aw(e,t)}function Fne(e){var t=Une();return function(){var r=Qv(e),i;if(t){var o=Qv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bne(this,i)}}function Bne(e,t){if(t&&(jw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gr(e)}function Gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Une(){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 Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qv(e)}function Jv(){}var p3=D.shape(sr.propTypes),mD={autoFocus:D.bool,backdrop:D.oneOfType([D.bool,D.oneOf(["static"])]),backdropClassName:D.string,backdropTransition:p3,centered:D.bool,children:D.node,contentClassName:D.string,className:D.string,container:Fc,cssModule:D.object,external:D.node,fade:D.bool,fullscreen:D.oneOfType([D.bool,D.oneOf(["sm","md","lg","xl"])]),innerRef:D.oneOfType([D.object,D.string,D.func]),isOpen:D.bool,keyboard:D.bool,labelledBy:D.string,modalClassName:D.string,modalTransition:p3,onClosed:D.func,onEnter:D.func,onExit:D.func,onOpened:D.func,returnFocusAfterClose:D.bool,role:D.string,scrollable:D.bool,size:D.string,toggle:D.func,trapFocus:D.bool,unmountOnClose:D.bool,wrapClassName:D.string,zIndex:D.oneOfType([D.number,D.string])},zne=Object.keys(mD),Vne={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Jv,onClosed:Jv,modalTransition:{timeout:$v.Modal},backdropTransition:{mountOnEnter:!0,timeout:$v.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},gr=function(e){Dne(n,e);var t=Fne(n);function n(r){var i;return Rne(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Gr(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Gr(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Gr(i)),i.handleEscape=i.handleEscape.bind(Gr(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Gr(i)),i.handleTab=i.handleTab.bind(Gr(i)),i.onOpened=i.onOpened.bind(Gr(i)),i.onClosed=i.onClosed.bind(Gr(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Gr(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Gr(i)),i.trapFocus=i.trapFocus.bind(Gr(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Ine(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(),c=0,l=0;l<a;l+=1)if(o[l]===s){c=l;break}i.shiftKey&&c===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&c===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===ht.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||Jv)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Jv)(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(FX.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=Wd(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=kX(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),NX(),n.openCount===0&&(document.body.className=Ge(document.body.className,Ue("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=Ue("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),R6(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=es(this.props,zne),s="modal-dialog";return V.createElement("div",ld({},a,{className:Ue(Ge(s,this.props.className,(i={},ql(i,"modal-".concat(this.props.size),this.props.size),ql(i,"".concat(s,"-centered"),this.props.centered),ql(i,"".concat(s,"-scrollable"),this.props.scrollable),ql(i,"modal-fullscreen",this.props.fullscreen===!0),ql(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(l){o._dialog=l}}),V.createElement("div",{className:Ue(Ge("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,c=a.modalClassName,l=a.backdropClassName,f=a.cssModule,d=a.isOpen,p=a.backdrop,v=a.role,g=a.labelledBy,y=a.external,x=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"},_=this.props.fade,w=Dl(Dl(Dl({},sr.defaultProps),this.props.modalTransition),{},{baseClass:_?this.props.modalTransition.baseClass:"",timeout:_?this.props.modalTransition.timeout:0}),S=Dl(Dl(Dl({},sr.defaultProps),this.props.backdropTransition),{},{baseClass:_?this.props.backdropTransition.baseClass:"",timeout:_?this.props.backdropTransition.timeout:0}),C=p&&(_?V.createElement(sr,ld({},S,{in:d&&!!p,cssModule:f,className:Ue(Ge("modal-backdrop",l),f)})):V.createElement("div",{className:Ue(Ge("modal-backdrop","show",l),f)}));return V.createElement(pD,{node:this._element},V.createElement("div",{className:Ue(s)},V.createElement(sr,ld({},b,w,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:Ue(Ge("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),y,this.renderModalDialog()),C))}return null}}]),n}(V.Component);gr.propTypes=mD;gr.defaultProps=Vne;gr.openCount=0;gr.originalBodyOverflow=null;var Wne=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function kw(){return kw=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},kw.apply(this,arguments)}function Hne(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}var Kne={children:D.node,className:D.string,close:D.object,closeAriaLabel:D.string,cssModule:D.object,tag:ot,toggle:D.func,wrapTag:ot};function po(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,c=e.wrapTag,l=c===void 0?"div":c,f=e.closeAriaLabel,d=f===void 0?"Close":f,p=e.close,v=Hne(e,Wne),g=Ue(Ge(n,"modal-header"),r);return!p&&o&&(t=V.createElement("button",{type:"button",onClick:o,className:Ue("btn-close",r),"aria-label":d})),V.createElement(l,kw({},v,{className:g}),V.createElement(s,{className:Ue("modal-title",r)},i),p||t)}po.propTypes=Kne;var qne=["className","cssModule","tag"];function Nw(){return Nw=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},Nw.apply(this,arguments)}function Yne(e,t){if(e==null)return{};var n=Zne(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 Zne(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={className:D.string,cssModule:D.object,tag:ot};function Ri(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Yne(e,qne),a=Ue(Ge(t,"modal-body"),n);return V.createElement(i,Nw({},o,{className:a}))}Ri.propTypes=Xne;var Qne=["className","cssModule","tag"];function Mw(){return Mw=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},Mw.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:D.string,cssModule:D.object,tag:ot};function Jo(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Jne(e,Qne),a=Ue(Ge(t,"modal-footer"),n);return V.createElement(i,Mw({},o,{className:a}))}Jo.propTypes=tre;function Lw(){return Lw=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},Lw.apply(this,arguments)}var nre={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function r0(e){var t=Ge("tooltip-arrow",e.arrowClassName),n=Ge("tooltip","show",e.popperClassName),r=Ge("tooltip-inner",e.innerClassName),i=OP(nre,e);return V.createElement(IP,Lw({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}r0.propTypes=$P;var rre=["className","cssModule","tag","flush","horizontal","numbered"];function Rw(){return Rw=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},Rw.apply(this,arguments)}function ire(e,t){if(e==null)return{};var n=ore(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 ore(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 are={className:D.string,cssModule:D.object,flush:D.bool,horizontal:D.oneOfType([D.bool,D.string]),numbered:D.bool,tag:ot},sre=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function vD(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,c=e.numbered,l=c===void 0?!1:c,f=ire(e,rre),d=Ue(Ge(t,"list-group",o?"list-group-flush":sre(s),{"list-group-numbered":l}),n);return V.createElement(i,Rw({},f,{className:d}))}vD.propTypes=are;var lre=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function $w(){return $w=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},$w.apply(this,arguments)}function cre(e,t){if(e==null)return{};var n=ure(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 ure(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 fre={children:D.node,row:D.bool,check:D.bool,switch:D.bool,inline:D.bool,floating:D.bool,noMargin:D.bool,disabled:D.bool,tag:ot,className:D.string,cssModule:D.object};function eg(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,c=e.noMargin,l=e.tag,f=l===void 0?"div":l,d=e.switch,p=cre(e,lre),v=o||d,g=Ue(Ge(t,r?"row":!1,v?"form-check":!1,d?"form-switch":!1,v||c?!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,$w({},p,{className:g}))}eg.propTypes=fre;function Iw(e){"@babel/helpers - typeof";return Iw=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},Iw(e)}var dre=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function Dw(){return Dw=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},Dw.apply(this,arguments)}function hre(e,t){if(e==null)return{};var n=pre(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 pre(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 mre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vre(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 gre(e,t,n){return t&&vre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yre(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&&Fw(e,t)}function Fw(e,t){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fw(e,t)}function bre(e){var t=xre();return function(){var r=tg(e),i;if(t){var o=tg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _re(this,i)}}function _re(e,t){if(t&&(Iw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bw(e)}function Bw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xre(){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 tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tg(e)}var wre={children:D.node,type:D.string,size:D.oneOfType([D.number,D.string]),bsSize:D.string,valid:D.bool,invalid:D.bool,tag:ot,innerRef:D.oneOfType([D.object,D.func,D.string]),plaintext:D.bool,addon:D.bool,className:D.string,cssModule:D.object},yn=function(e){yre(n,e);var t=bre(n);function n(r){var i;return mre(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(Bw(i)),i.focus=i.focus.bind(Bw(i)),i}return gre(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,c=s===void 0?"text":s,l=i.bsSize,f=i.valid,d=i.invalid,p=i.tag,v=i.addon,g=i.plaintext,y=i.innerRef,x=hre(i,dre),b=["switch","radio","checkbox"].indexOf(c)>-1,_=/\D/g,w=c==="textarea",S=c==="select",C=c==="range",P=p||(S||w?c:"input"),T="form-control";g?(T="".concat(T,"-plaintext"),P=p||"input"):C?T="form-range":S?T="form-select":b&&(v?T=null:T="form-check-input"),x.size&&_.test(x.size)&&($x(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),l=x.size,delete x.size);var j=Ue(Ge(o,d&&"is-invalid",f&&"is-valid",l?S?"form-select-".concat(l):"form-control-".concat(l):!1,T),a);return(P==="input"||p&&typeof p=="function")&&(x.type=c==="switch"?"checkbox":c),x.children&&!(g||c==="select"||typeof P!="string"||P==="select")&&($x('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),V.createElement(P,Dw({},x,{ref:y,className:j,"aria-invalid":d}))}}]),n}(V.Component);yn.propTypes=wre;var Ore=["className","cssModule","tag","type","size"];function ng(){return ng=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},ng.apply(this,arguments)}function Sre(e,t){if(e==null)return{};var n=Pre(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 Pre(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 Cre={className:D.string,cssModule:D.object,size:D.string,tag:ot,type:D.string};function Xh(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=Sre(e,Ore),s=Ue(Ge(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?V.createElement(ns,ng({},a,{className:s})):V.createElement(iD.Provider,{value:{insideInputGroup:!0}},V.createElement(i,ng({},a,{className:s})))}Xh.propTypes=Cre;var Ere=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function Uw(){return Uw=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},Uw.apply(this,arguments)}function Tre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jre(e,t){if(e==null)return{};var n=Are(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 Are(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 kre={children:D.node,className:D.string,listClassName:D.string,cssModule:D.object,size:D.string,tag:ot,listTag:ot,"aria-label":D.string};function DP(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,c=s===void 0?"ul":s,l=e["aria-label"],f=l===void 0?"pagination":l,d=jre(e,Ere),p=Ue(Ge(t),r),v=Ue(Ge(n,"pagination",Tre({},"pagination-".concat(i),!!i)),r);return V.createElement(a,{className:p,"aria-label":f},V.createElement(c,Uw({},d,{className:v})))}DP.propTypes=kre;var Nre=["active","className","cssModule","disabled","tag"];function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function Mre(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 Rre={active:D.bool,children:D.node,className:D.string,cssModule:D.object,disabled:D.bool,tag:ot};function Hs(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Mre(e,Nre),c=Ue(Ge(n,"page-item",{active:t,disabled:i}),r);return V.createElement(a,zw({},s,{className:c}))}Hs.propTypes=Rre;var $re=["className","cssModule","next","previous","first","last","tag"];function Vw(){return Vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vw.apply(this,arguments)}function Ire(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 Fre={"aria-label":D.string,children:D.node,className:D.string,cssModule:D.object,next:D.bool,previous:D.bool,first:D.bool,last:D.bool,tag:ot};function Gs(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,c=s===void 0?"a":s,l=Ire(e,$re),f=Ue(Ge(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),!l.href&&c==="a"&&(c="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(c,Vw({},l,{className:f,"aria-label":p}),g)}Gs.propTypes=Fre;var Bre=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ww.apply(this,arguments)}function m3(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 Of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m3(Object(n),!0).forEach(function(r){Ure(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ure(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zre(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 Wre={children:D.node,className:D.string,closeClassName:D.string,closeAriaLabel:D.string,color:D.string,cssModule:D.object,fade:D.bool,innerRef:D.oneOfType([D.object,D.string,D.func]),isOpen:D.bool,tag:ot,toggle:D.func,transition:D.shape(sr.propTypes)};function gD(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,c=e.color,l=c===void 0?"success":c,f=e.isOpen,d=f===void 0?!0:f,p=e.toggle,v=e.children,g=e.transition,y=g===void 0?Of(Of({},sr.defaultProps),{},{unmountOnExit:!0}):g,x=e.fade,b=x===void 0?!0:x,_=e.innerRef,w=zre(e,Bre),S=Ue(Ge(t,"alert","alert-".concat(l),{"alert-dismissible":p}),o),C=Ue(Ge("btn-close",n),o),P=Of(Of(Of({},sr.defaultProps),y),{},{baseClass:b?y.baseClass:"",timeout:b?y.timeout:0});return V.createElement(sr,Ww({},w,P,{tag:s,className:S,in:d,role:"alert",innerRef:_}),p?V.createElement("button",{type:"button",className:C,"aria-label":i,onClick:p}):null,v)}gD.propTypes=Wre;var Hre=["className","cssModule","tag","active","disabled","action","color"];function Hw(){return Hw=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},Hw.apply(this,arguments)}function Gre(e,t){if(e==null)return{};var n=Kre(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 Kre(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 qre={action:D.bool,active:D.bool,className:D.string,cssModule:D.object,color:D.string,disabled:D.bool,tag:ot},Yre=function(t){t.preventDefault()};function yD(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,c=e.color,l=Gre(e,Hre),f=Ue(Ge(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,c?"list-group-item-".concat(c):!1,"list-group-item"),n);return a&&(l.onClick=Yre),V.createElement(i,Hw({},l,{className:f}))}yD.propTypes=qre;function Gw(e){"@babel/helpers - typeof";return Gw=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},Gw(e)}function v3(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 Zre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(r){Xre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kw(){return Kw=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},Kw.apply(this,arguments)}function Qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jre(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 eie(e,t,n){return t&&Jre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tie(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&&qw(e,t)}function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qw(e,t)}function nie(e){var t=iie();return function(){var r=rg(e),i;if(t){var o=rg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rie(this,i)}}function rie(e,t){if(t&&(Gw(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 bD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iie(){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 rg(e){return rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rg(e)}var oie=["defaultOpen"],Qh=function(e){tie(n,e);var t=nie(n);function n(r){var i;return Qre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(bD(i)),i}return eie(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(ns,Kw({isOpen:this.state.isOpen,toggle:this.toggle},es(this.props,oie)))}}]),n}(N.Component);Qh.propTypes=Zre({defaultOpen:D.bool,onToggle:D.func},ns.propTypes);function Yw(e){"@babel/helpers - typeof";return Yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yw(e)}function g3(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 aie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g3(Object(n),!0).forEach(function(r){sie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(this,arguments)}function lie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cie(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 uie(e,t,n){return t&&cie(e.prototype,t),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&&Xw(e,t)}function Xw(e,t){return Xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xw(e,t)}function die(e){var t=pie();return function(){var r=ig(e),i;if(t){var o=ig(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hie(this,i)}}function hie(e,t){if(t&&(Yw(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 _D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pie(){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 ig(e){return ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ig(e)}var mie=["defaultOpen"],Dr=function(e){fie(n,e);var t=die(n);function n(r){var i;return lie(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(_D(i)),i}return uie(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return V.createElement(r0,Zw({isOpen:this.state.isOpen,toggle:this.toggle},es(this.props,mie)))}}]),n}(N.Component);Dr.propTypes=aie({defaultOpen:D.bool},r0.propTypes);const vie=e=>({error:"border-danger",default:""})[e],gie=e=>({error:"text-danger",default:"text-muted"})[e],zo=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Oe({"col-md-12":i,"col-md-10 offset-md-1":!i});return m.jsx(ei,{className:Oe("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(Ir,{className:vie(r),body:!0,children:m.jsxs("h3",{className:Oe("text-center mb-0",gie(r)),children:[n&&m.jsx(je,{icon:zI,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},yt=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(Ir,{...r,children:[e&&m.jsx(Zh,{role:"heading","aria-level":4,children:e}),m.jsx(Yh,{className:n,children:t})]}),Xn=({children:e,type:t,className:n,small:r=!1})=>m.jsx(ei,{className:n,children:m.jsx("div",{className:Oe({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(yt,{role:"document",className:Oe("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Oe({"p-2":r}),children:e})})}),xD=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=N.useId(),s=f=>t==null?void 0:t(f.target.checked,f),c={"form-switch":i==="switch","form-checkbox":i==="checkbox"},l=o?{display:"inline-block"}:{};return m.jsxs("span",{className:Oe("form-check",c,n),style:l,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})]})},wD=e=>m.jsx(xD,{type:"checkbox",...e}),Vo=e=>m.jsx(xD,{type:"switch",...e}),Au=({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]}),Zm=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=N.useId();return m.jsx(Au,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:c,children:m.jsx("input",{id:c,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:l=>n(l.target.value)})})},yie=500;let Xm;const y3=()=>{Xm!==null&&clearTimeout(Xm),Xm=null},Jh=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=N.useState(i),c=(l,f=yie)=>{s(l),y3(),Xm=o(()=>{e(l),y3()},f)};return m.jsxs("div",{className:Oe("search-field",t),children:[m.jsx("input",{type:"text",className:Oe("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:l=>c(l.target.value)}),m.jsx(je,{icon:Kq,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:()=>c("",0)})]})},OD=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);n[o]??(n[o]=[]),n[o].push(r)}else n[i]=r}),n},i0=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},Lt=(e=!1)=>{const[t,n]=N.useState(e),r=N.useCallback(()=>n(a=>!a),[]),i=N.useCallback(()=>n(!0),[]),o=N.useCallback(()=>n(!1),[]);return[t,r,i,o]},SD=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=N.useState(e),a=N.useRef(e),s=N.useRef(),c=N.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,c]},ci=()=>N.useRef(null),ku=()=>{const{search:e}=mr();return N.useMemo(()=>OD(e),[e])},ea=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:c,size:l,...f})=>{const[d,p]=Lt(),v=Oe("dropdown-btn__toggle",n,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:s&&`${s}px`};return m.jsxs(ns,{isOpen:d,toggle:p,disabled:t,className:i,children:[m.jsx(Qo,{size:l,caret:!o,className:v,color:"primary",...f,children:e}),m.jsx(rs,{className:"w-100",end:a,style:g,children:r})]})},o0=({children:e,minWidth:t,label:n="Options"})=>m.jsx(ea,{text:m.jsx(je,{className:"px-1",icon:Iq}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),cd=({children:e,...t})=>m.jsx(PP,{children:m.jsx(CP,{className:"nav-pills__nav-link",tag:TI,...t,children:e})}),PD=({children:e,fill:t=!1,className:n=""})=>m.jsx(Ir,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(SP,{pills:!0,fill:t,children:N.Children.map(e,r=>{if(!N.isValidElement(r)||r.type!==cd)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),a0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",CD=(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}),bie=e=>e.dir?`${e.field}-${e.dir}`:void 0,_ie=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function ep({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=a0(s,t.field,t.dir);n(c?s:void 0,c)};return m.jsxs(Qh,{children:[m.jsxs(Qo,{caret:!0,color:r?"primary":"link",className:Oe({"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(rs,{end:i,className:Oe("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,c])=>m.jsxs(ke,{active:t.field===s,onClick:a(s),children:[c,t.field===s&&m.jsx(je,{icon:t.dir==="ASC"?Uq:Cq,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 Zd="#4696e5",xie="rgba(70, 150, 229, 0.4)",Qw="#f77f28",wie="rgba(247, 127, 40, 0.4)",Oie="white",Sie="#161b22",Pie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},tp=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},FP=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",Cie=N.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=Lt(),a=N.useCallback(()=>{o(),n()},[n,o]);return m.jsxs(gD,{className:"app-update-banner",isOpen:e,toggle:t,tag:yt,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(qe,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(je,{icon:Qq,className:"ms-1"})]}),i&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})}),ED=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(yt,{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(Pt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function $i(e){return N.useRef(e).current}function Ii(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const Eie=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"})})},TD=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:c,EditServer:l,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=$i(TD),v=mr(),g=N.useRef(t),y=v.pathname==="/";return N.useEffect(()=>{Object.keys(g.current).length===0&&e()},[e]),N.useEffect(()=>{var b;Pie(((b=n.ui)==null?void 0:b.theme)??FP())},[(x=n.ui)==null?void 0:x.theme]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(o,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:Oe("shlink-wrapper",{"d-flex align-items-center pt-3":y}),children:m.jsxs(qy,{children:[m.jsx(at,{index:!0,element:m.jsx(a,{})}),m.jsx(at,{path:"/settings/*",element:m.jsx(f,{})}),m.jsx(at,{path:"/manage-servers",element:m.jsx(d,{})}),m.jsx(at,{path:"/server/create",element:m.jsx(c,{})}),m.jsx(at,{path:"/server/:serverId/edit",element:m.jsx(l,{})}),m.jsx(at,{path:"/server/:serverId/*",element:m.jsx(s,{})}),m.jsx(at,{path:"*",element:m.jsx(ED,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(p,{})})]}),m.jsx(Cie,{isOpen:r,toggle:i,forceUpdate:Eie})]})},Tie=Ii(TD,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function Tn(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 jie=typeof Symbol=="function"&&Symbol.observable||"@@observable",b3=jie,S1=()=>Math.random().toString(36).substring(7).split("").join("."),Aie={INIT:`@@redux/INIT${S1()}`,REPLACE:`@@redux/REPLACE${S1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${S1()}`},og=Aie;function BP(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 jD(e,t,n){if(typeof e!="function")throw new Error(Tn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Tn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Tn(1));return n(jD)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,c=!1;function l(){a===o&&(a=new Map,o.forEach((x,b)=>{a.set(b,x)}))}function f(){if(c)throw new Error(Tn(3));return i}function d(x){if(typeof x!="function")throw new Error(Tn(4));if(c)throw new Error(Tn(5));let b=!0;l();const _=s++;return a.set(_,x),function(){if(b){if(c)throw new Error(Tn(6));b=!1,l(),a.delete(_),o=null}}}function p(x){if(!BP(x))throw new Error(Tn(7));if(typeof x.type>"u")throw new Error(Tn(8));if(typeof x.type!="string")throw new Error(Tn(17));if(c)throw new Error(Tn(9));try{c=!0,i=r(i,x)}finally{c=!1}return(o=a).forEach(_=>{_()}),x}function v(x){if(typeof x!="function")throw new Error(Tn(10));r=x,p({type:og.REPLACE})}function g(){const x=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(Tn(11));function _(){const S=b;S.next&&S.next(f())}return _(),{unsubscribe:x(_)}},[b3](){return this}}}return p({type:og.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:v,[b3]:g}}function kie(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:og.INIT})>"u")throw new Error(Tn(12));if(typeof n(void 0,{type:og.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Tn(13))})}function UP(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{kie(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let c=!1;const l={};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(Tn(14));l[d]=g,c=c||g!==v}return c=c||r.length!==Object.keys(a).length,c?l:a}}function ag(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Nie(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Tn(15))};const a={getState:i.getState,dispatch:(c,...l)=>o(c,...l)},s=e.map(c=>c(a));return o=ag(...s)(i.dispatch),{...i,dispatch:o}}}function Mie(e){return BP(e)&&"type"in e&&typeof e.type=="string"}var AD=Symbol.for("immer-nothing"),_3=Symbol.for("immer-draftable"),kr=Symbol.for("immer-state");function Ci(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Hc=Object.getPrototypeOf;function il(e){return!!e&&!!e[kr]}function Wo(e){var t;return e?kD(e)||Array.isArray(e)||!!e[_3]||!!((t=e.constructor)!=null&&t[_3])||l0(e)||c0(e):!1}var Lie=Object.prototype.constructor.toString();function kD(e){if(!e||typeof e!="object")return!1;const t=Hc(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)===Lie}function Xd(e,t){s0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function s0(e){const t=e[kr];return t?t.type_:Array.isArray(e)?1:l0(e)?2:c0(e)?3:0}function Jw(e,t){return s0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ND(e,t,n){const r=s0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Rie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function l0(e){return e instanceof Map}function c0(e){return e instanceof Set}function Ss(e){return e.copy_||e.base_}function e2(e,t){if(l0(e))return new Map(e);if(c0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&kD(e))return Hc(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[kr];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(Hc(e),n)}function zP(e,t=!1){return u0(e)||il(e)||!Wo(e)||(s0(e)>1&&(e.set=e.add=e.clear=e.delete=$ie),Object.freeze(e),t&&Xd(e,(n,r)=>zP(r,!0))),e}function $ie(){Ci(2)}function u0(e){return Object.isFrozen(e)}var Iie={};function ol(e){const t=Iie[e];return t||Ci(0,e),t}var Qd;function MD(){return Qd}function Die(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function x3(e,t){t&&(ol("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function t2(e){n2(e),e.drafts_.forEach(Fie),e.drafts_=null}function n2(e){e===Qd&&(Qd=e.parent_)}function w3(e){return Qd=Die(Qd,e)}function Fie(e){const t=e[kr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function O3(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[kr].modified_&&(t2(t),Ci(4)),Wo(e)&&(e=sg(t,e),t.parent_||lg(t,e)),t.patches_&&ol("Patches").generateReplacementPatches_(n[kr].base_,e,t.patches_,t.inversePatches_)):e=sg(t,n,[]),t2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AD?e:void 0}function sg(e,t,n){if(u0(t))return t;const r=t[kr];if(!r)return Xd(t,(i,o)=>S3(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return lg(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),Xd(o,(s,c)=>S3(e,r,i,s,c,n,a)),lg(e,i,!1),n&&e.patches_&&ol("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function S3(e,t,n,r,i,o,a){if(il(i)){const s=o&&t&&t.type_!==3&&!Jw(t.assigned_,r)?o.concat(r):void 0,c=sg(e,i,s);if(ND(n,r,c),il(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Wo(i)&&!u0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;sg(e,i),(!t||!t.scope_.parent_)&&lg(e,i)}}function lg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zP(t,n)}function Bie(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:MD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=VP;n&&(i=[r],o=Jd);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var VP={get(e,t){if(t===kr)return e;const n=Ss(e);if(!Jw(n,t))return Uie(e,n,t);const r=n[t];return e.finalized_||!Wo(r)?r:r===P1(e.base_,t)?(C1(e),e.copy_[t]=i2(r,e)):r},has(e,t){return t in Ss(e)},ownKeys(e){return Reflect.ownKeys(Ss(e))},set(e,t,n){const r=LD(Ss(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=P1(Ss(e),t),o=i==null?void 0:i[kr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Rie(n,i)&&(n!==void 0||Jw(e.base_,t)))return!0;C1(e),r2(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 P1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,C1(e),r2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ss(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ci(11)},getPrototypeOf(e){return Hc(e.base_)},setPrototypeOf(){Ci(12)}},Jd={};Xd(VP,(e,t)=>{Jd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Jd.deleteProperty=function(e,t){return Jd.set.call(this,e,t,void 0)};Jd.set=function(e,t,n){return VP.set.call(this,e[0],t,n,e[0])};function P1(e,t){const n=e[kr];return(n?Ss(n):e)[t]}function Uie(e,t,n){var i;const r=LD(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function LD(e,t){if(!(t in e))return;let n=Hc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Hc(n)}}function r2(e){e.modified_||(e.modified_=!0,e.parent_&&r2(e.parent_))}function C1(e){e.copy_||(e.copy_=e2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zie=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(c=o,...l){return a.produce(c,f=>n.call(this,f,...l))}}typeof n!="function"&&Ci(6),r!==void 0&&typeof r!="function"&&Ci(7);let i;if(Wo(t)){const o=w3(this),a=i2(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?t2(o):n2(o)}return x3(o,r),O3(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===AD&&(i=void 0),this.autoFreeze_&&zP(i,!0),r){const o=[],a=[];ol("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Ci(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...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){Wo(e)||Ci(8),il(e)&&(e=Vie(e));const t=w3(this),n=i2(e,void 0);return n[kr].isManual_=!0,n2(t),n}finishDraft(e,t){const n=e&&e[kr];(!n||!n.isManual_)&&Ci(9);const{scope_:r}=n;return x3(r,t),O3(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=ol("Patches").applyPatches_;return il(e)?r(e,t):this.produce(e,i=>r(i,t))}};function i2(e,t){const n=l0(e)?ol("MapSet").proxyMap_(e,t):c0(e)?ol("MapSet").proxySet_(e,t):Bie(e,t);return(t?t.scope_:MD()).drafts_.push(n),n}function Vie(e){return il(e)||Ci(10,e),RD(e)}function RD(e){if(!Wo(e)||u0(e))return e;const t=e[kr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=e2(e,t.scope_.immer_.useStrictShallowCopy_)}else n=e2(e,!0);return Xd(n,(r,i)=>{ND(n,r,RD(i))}),t&&(t.finalized_=!1),n}var Nr=new zie,$D=Nr.produce;Nr.produceWithPatches.bind(Nr);Nr.setAutoFreeze.bind(Nr);Nr.setUseStrictShallowCopy.bind(Nr);Nr.applyPatches.bind(Nr);Nr.createDraft.bind(Nr);Nr.finishDraft.bind(Nr);function ID(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Wie=ID(),Hie=ID,Gie=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ag:ag.apply(null,arguments)},Kie=e=>e&&typeof e.match=="function";function Qn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(ko(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=>Mie(r)&&r.type===e,n}var DD=class Hf extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Hf.prototype)}static get[Symbol.species](){return Hf}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Hf(...t[0].concat(this)):new Hf(...t.concat(this))}};function P3(e){return Wo(e)?$D(e,()=>{}):e}function C3(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function qie(e){return typeof e=="boolean"}var Yie=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new DD;return n&&(qie(n)?a.push(Wie):a.push(Hie(n.extraArgument))),a},Zie="RTK_autoBatch",E3=e=>t=>{setTimeout(t,e)},Xie=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:E3(10):e.type==="callback"?e.queueNotification:E3(e.timeout),l=()=>{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[Zie]),o=!i,o&&(a||(a=!0,c(l))),r.dispatch(f)}finally{i=!0}}})},Qie=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new DD(e);return r&&i.push(Xie(typeof r=="object"?r:void 0)),i};function FD(e){const t=Yie(),{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(BP(n))s=UP(n);else throw new Error(ko(1));let c;typeof r=="function"?c=r(t):c=t();let l=ag;i&&(l=Gie({trace:!1,...typeof i=="object"&&i}));const f=Nie(...c),d=Qie(f);let p=typeof a=="function"?a(d):d();const v=l(...p);return jD(s,o,v)}function BD(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(ko(28));if(s in t)throw new Error(ko(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 Jie(e){return typeof e=="function"}function eoe(e,t){let[n,r,i]=BD(t),o;if(Jie(e))o=()=>P3(e());else{const s=P3(e);o=()=>s}function a(s=o(),c){let l=[n[c.type],...r.filter(({matcher:f})=>f(c)).map(({reducer:f})=>f)];return l.filter(f=>!!f).length===0&&(l=[i]),l.reduce((f,d)=>{if(d)if(il(f)){const v=d(f,c);return v===void 0?f:v}else{if(Wo(f))return $D(f,p=>d(p,c));{const p=d(f,c);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},s)}return a.getInitialState=o,a}var toe=(e,t)=>Kie(e)?e.match(t):e(t);function noe(...e){return t=>e.some(n=>toe(n,t))}var roe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ioe=(e=21)=>{let t="",n=e;for(;n--;)t+=roe[Math.random()*64|0];return t},ooe=["name","message","stack","code"],E1=class{constructor(e,t){Ml(this,"_type");this.payload=e,this.meta=t}},T3=class{constructor(e,t){Ml(this,"_type");this.payload=e,this.meta=t}},aoe=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of ooe)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},UD=(()=>{function e(t,n,r){const i=Qn(t+"/fulfilled",(c,l,f,d)=>({payload:c,meta:{...d||{},arg:f,requestId:l,requestStatus:"fulfilled"}})),o=Qn(t+"/pending",(c,l,f)=>({payload:void 0,meta:{...f||{},arg:l,requestId:c,requestStatus:"pending"}})),a=Qn(t+"/rejected",(c,l,f,d,p)=>({payload:d,error:(r&&r.serializeError||aoe)(c||"Rejected"),meta:{...p||{},arg:f,requestId:l,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function s(c){return(l,f,d)=>{const p=r!=null&&r.idGenerator?r.idGenerator(c):ioe(),v=new AbortController;let g,y;function x(_){y=_,v.abort()}const b=async function(){var S,C;let _;try{let P=(S=r==null?void 0:r.condition)==null?void 0:S.call(r,c,{getState:f,extra:d});if(loe(P)&&(P=await P),P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((j,$)=>{g=()=>{$({name:"AbortError",message:y||"Aborted"})},v.signal.addEventListener("abort",g)});l(o(p,c,(C=r==null?void 0:r.getPendingMeta)==null?void 0:C.call(r,{requestId:p,arg:c},{getState:f,extra:d}))),_=await Promise.race([T,Promise.resolve(n(c,{dispatch:l,getState:f,extra:d,requestId:p,signal:v.signal,abort:x,rejectWithValue:(j,$)=>new E1(j,$),fulfillWithValue:(j,$)=>new T3(j,$)})).then(j=>{if(j instanceof E1)throw j;return j instanceof T3?i(j.payload,p,c,j.meta):i(j,p,c)})])}catch(P){_=P instanceof E1?a(null,p,c,P.payload,P.meta):a(P,p,c)}finally{g&&v.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&a.match(_)&&_.meta.condition||l(_),_}();return Object.assign(b,{abort:x,requestId:p,arg:c,unwrap(){return b.then(soe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:noe(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function soe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function loe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var coe=Symbol.for("rtk-slice-createasyncthunk");function uoe(e,t){return`${e}/${t}`}function foe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[coe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(ko(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(hoe()):i.reducers)||{},c=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,S){const C=typeof w=="string"?w:w.type;if(!C)throw new Error(ko(12));if(C in l.sliceCaseReducersByType)throw new Error(ko(13));return l.sliceCaseReducersByType[C]=S,f},addMatcher(w,S){return l.sliceMatchers.push({matcher:w,reducer:S}),f},exposeAction(w,S){return l.actionCreators[w]=S,f},exposeCaseReducer(w,S){return l.sliceCaseReducersByName[w]=S,f}};c.forEach(w=>{const S=s[w],C={reducerName:w,type:uoe(o,w),createNotation:typeof i.reducers=="function"};moe(S)?goe(C,S,f,t):poe(C,S,f)});function d(){const[w={},S=[],C=void 0]=typeof i.extraReducers=="function"?BD(i.extraReducers):[i.extraReducers],P={...w,...l.sliceCaseReducersByType};return eoe(i.initialState,T=>{for(let j in P)T.addCase(j,P[j]);for(let j of l.sliceMatchers)T.addMatcher(j.matcher,j.reducer);for(let j of S)T.addMatcher(j.matcher,j.reducer);C&&T.addDefaultCase(C)})}const p=w=>w,v=new Map;let g;function y(w,S){return g||(g=d()),g(w,S)}function x(){return g||(g=d()),g.getInitialState()}function b(w,S=!1){function C(T){let j=T[w];return typeof j>"u"&&S&&(j=x()),j}function P(T=p){const j=C3(v,S,()=>new WeakMap);return C3(j,T,()=>{const $={};for(const[M,I]of Object.entries(i.selectors??{}))$[M]=doe(I,T,x,S);return $})}return{reducerPath:w,getSelectors:P,get selectors(){return P(C)},selectSlice:C}}const _={name:o,reducer:y,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...b(a),injectInto(w,{reducerPath:S,...C}={}){const P=S??a;return w.inject({reducerPath:P,reducer:y},C),{..._,...b(P,!0)}}};return _}}function doe(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 Qt=foe();function hoe(){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 poe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!voe(r))throw new Error(ko(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Qn(e,a):Qn(e))}function moe(e){return e._reducerDefinitionType==="asyncThunk"}function voe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function goe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(ko(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:c,settled:l,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:a||lm,pending:s||lm,rejected:c||lm,settled:l||lm})}function lm(){}function ko(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:yoe,reducer:boe}=Qt({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:_oe,resetAppUpdate:xoe}=yoe,woe=boe,Ooe=(e,t)=>{e.factory("App",Tie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>_oe),e.serviceFactory("resetAppUpdate",()=>xoe)},j3={"Content-Type":"application/json"},A3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...j3}}:{headers:j3}:e;let Soe=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,A3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,A3(n)).then(async r=>{if(!r.ok)throw await r.json()})}};var WP=(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))(WP||{});const Poe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,k3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Poe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},N3=e=>e==="*"||e==="x"||e==="X",M3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Coe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Eoe=(e,t)=>{if(N3(e)||N3(t))return 0;const[n,r]=Coe(M3(e),M3(t));return n>r?1:n<r?-1:0},L3=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Eoe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},Toe=(e,t)=>{const n=k3(e),r=k3(t),i=n.pop(),o=r.pop(),a=L3(n,r);return a!==0?a:i&&o?L3(i.split("."),o.split(".")):i||o?i?-1:1:0},o2=(e,t,n)=>{joe(n);const r=Toe(e,t);return zD[n].includes(r)},zD={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},R3=Object.keys(zD),joe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(R3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${R3.join("|")}`)},VD=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),WD=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),T1=e=>Object.prototype.toString.call(e)==="[object Object]",HD=(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}},f0=(e,t)=>{const n={...e};return!T1(e)||!T1(t)||Object.keys(t).forEach(r=>{T1(t[r])?n[r]=r in e&&e[r]!==void 0?f0(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},HP=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Aoe=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Pc=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},$3=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),pr=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),koe="Left",Noe="Right",Moe="Up",Loe="Down",dc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},a2={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},I3="mousemove",D3="mouseup",Roe="touchend",$oe="touchmove",Ioe="touchstart";function Doe(e,t,n,r){return e>t?n>0?Noe:koe:r>0?Loe:Moe}function F3(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 Foe(e,t){const n=f=>{const d="touches"in f;d&&f.touches.length>1||e((p,v)=>{v.trackMouse&&!d&&(document.addEventListener(I3,r),document.addEventListener(D3,a));const{clientX:g,clientY:y}=d?f.touches[0]:f,x=F3([g,y],v.rotationAngle);return v.onTouchStartOrOnMouseDown&&v.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),a2),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((d,p)=>{const v="touches"in f;if(v&&f.touches.length>1)return d;if(f.timeStamp-d.start>p.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:g,clientY:y}=v?f.touches[0]:f,[x,b]=F3([g,y],p.rotationAngle),_=x-d.xy[0],w=b-d.xy[1],S=Math.abs(_),C=Math.abs(w),P=(f.timeStamp||0)-d.start,T=Math.sqrt(S*S+C*C)/(P||1),j=[_/(P||1),w/(P||1)],$=Doe(S,C,_,w),M=typeof p.delta=="number"?p.delta:p.delta[$.toLowerCase()]||dc.delta;if(S<M&&C<M&&!d.swiping)return d;const I={absX:S,absY:C,deltaX:_,deltaY:w,dir:$,event:f,first:d.first,initial:d.initial,velocity:T,vxvy:j};I.first&&p.onSwipeStart&&p.onSwipeStart(I),p.onSwiping&&p.onSwiping(I);let F=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${$}`])&&(F=!0),F&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:I,swiping:!0})})},i=f=>{e((d,p)=>{let v;if(d.swiping&&d.eventData){if(f.timeStamp-d.start<p.swipeDuration){v=Object.assign(Object.assign({},d.eventData),{event:f}),p.onSwiped&&p.onSwiped(v);const g=p[`onSwiped${v.dir}`];g&&g(v)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},d),a2),{eventData:v})})},o=()=>{document.removeEventListener(I3,r),document.removeEventListener(D3,a)},a=f=>{o(),i(f)},s=(f,d)=>{let p=()=>{};if(f&&f.addEventListener){const v=Object.assign(Object.assign({},dc.touchEventOptions),d.touchEventOptions),g=[[Ioe,n,v],[$oe,r,Object.assign(Object.assign({},v),d.preventScrollOnSwipe?{passive:!1}:{})],[Roe,i,v]];g.forEach(([y,x,b])=>f.addEventListener(y,x,b)),p=()=>g.forEach(([y,x])=>f.removeEventListener(y,x))}return p},l={ref:f=>{f!==null&&e((d,p)=>{if(d.el===f)return d;const v={};return d.el&&d.el!==f&&d.cleanUpTouch&&(d.cleanUpTouch(),v.cleanUpTouch=void 0),p.trackTouch&&f&&(v.cleanUpTouch=s(f,p)),Object.assign(Object.assign(Object.assign({},d),{el:f}),v)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function Boe(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 Uoe(e){const{trackMouse:t}=e,n=N.useRef(Object.assign({},a2)),r=N.useRef(Object.assign({},dc)),i=N.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},dc),e);let o;for(o in dc)r.current[o]===void 0&&(r.current[o]=dc[o]);const[a,s]=N.useMemo(()=>Foe(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=Boe(n.current,r.current,i.current,s),a}var s2={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,c=n.EventSource,l=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 l<"u"&&!("readyState"in l)&&l.body==null&&(l.readyState="loading",window.addEventListener("load",function(se){l.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 x=d;d=function(se,pe){var ve=pe.signal;return x(se,{headers:pe.headers,credentials:pe.credentials,cache:pe.cache}).then(function(xe){var Ne=xe.body.getReader();return ve._reader=Ne,ve._aborted&&ve._reader.cancel(),{status:xe.status,statusText:xe.statusText,headers:xe.headers,body:{getReader:function(){return Ne}}}})},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(ge,ye,we){if(we===1)return ge>=128>>ye&&ge<<ye<=2047;if(we===2)return ge>=2048>>ye&&ge<<ye<=55295||ge>=57344>>ye&&ge<<ye<=65535;if(we===3)return ge>=65536>>ye&&ge<<ye<=1114111;throw new Error}function ve(ge,ye){if(ge===6*1)return ye>>6>15?3:ye>31?2:1;if(ge===6*2)return ye>15?3:2;if(ge===6*3)return 3;throw new Error}for(var xe=65533,Ne="",Te=this.bitsNeeded,Ae=this.codePoint,le=0;le<se.length;le+=1){var ue=se[le];Te!==0&&(ue<128||ue>191||!pe(Ae<<6|ue&63,Te-6,ve(Te,Ae)))&&(Te=0,Ae=xe,Ne+=String.fromCharCode(Ae)),Te===0?(ue>=0&&ue<=127?(Te=0,Ae=ue):ue>=192&&ue<=223?(Te=6*1,Ae=ue&31):ue>=224&&ue<=239?(Te=6*2,Ae=ue&15):ue>=240&&ue<=247?(Te=6*3,Ae=ue&7):(Te=0,Ae=xe),Te!==0&&!pe(Ae,Te,ve(Te,Ae))&&(Te=0,Ae=xe)):(Te-=6,Ae=Ae<<6|ue&63),Te===0&&(Ae<=65535?Ne+=String.fromCharCode(Ae):(Ne+=String.fromCharCode(55296+(Ae-65535-1>>10)),Ne+=String.fromCharCode(56320+(Ae-65535-1&1023))))}return this.bitsNeeded=Te,this.codePoint=Ae,Ne};var _=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||!_())&&(v=b);var w=function(){};function S(se){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=se,this._sendTimeout=0,this._abort=w}S.prototype.open=function(se,pe){this._abort(!0);var ve=this,xe=this._xhr,Ne=1,Te=0;this._abort=function(we){ve._sendTimeout!==0&&(i(ve._sendTimeout),ve._sendTimeout=0),(Ne===1||Ne===2||Ne===3)&&(Ne=4,xe.onload=w,xe.onerror=w,xe.onabort=w,xe.onprogress=w,xe.onreadystatechange=w,xe.abort(),Te!==0&&(i(Te),Te=0),we||(ve.readyState=4,ve.onabort(null),ve.onreadystatechange())),Ne=0};var Ae=function(){if(Ne===1){var we=0,Me="",Le=void 0;if("contentType"in xe)we=200,Me="OK",Le=xe.contentType;else try{we=xe.status,Me=xe.statusText,Le=xe.getResponseHeader("Content-Type")}catch{we=0,Me="",Le=void 0}we!==0&&(Ne=2,ve.readyState=2,ve.status=we,ve.statusText=Me,ve._contentType=Le,ve.onreadystatechange())}},le=function(){if(Ae(),Ne===2||Ne===3){Ne=3;var we="";try{we=xe.responseText}catch{}ve.readyState=3,ve.responseText=we,ve.onprogress()}},ue=function(we,Me){if((Me==null||Me.preventDefault==null)&&(Me={preventDefault:w}),le(),Ne===1||Ne===2||Ne===3){if(Ne=4,Te!==0&&(i(Te),Te=0),ve.readyState=4,we==="load")ve.onload(Me);else if(we==="error")ve.onerror(Me);else if(we==="abort")ve.onabort(Me);else throw new TypeError;ve.onreadystatechange()}},ge=function(we){xe!=null&&(xe.readyState===4?(!("onload"in xe)||!("onerror"in xe)||!("onabort"in xe))&&ue(xe.responseText===""?"error":"load",we):xe.readyState===3?"onprogress"in xe||le():xe.readyState===2&&Ae())},ye=function(){Te=r(function(){ye()},500),xe.readyState===3&&le()};"onload"in xe&&(xe.onload=function(we){ue("load",we)}),"onerror"in xe&&(xe.onerror=function(we){ue("error",we)}),"onabort"in xe&&(xe.onabort=function(we){ue("abort",we)}),"onprogress"in xe&&(xe.onprogress=le),"onreadystatechange"in xe&&(xe.onreadystatechange=function(we){ge(we)}),("contentType"in xe||!("ontimeout"in o.prototype))&&(pe+=(pe.indexOf("?")===-1?"?":"&")+"padding=true"),xe.open(se,pe,!0),"readyState"in xe&&(Te=r(function(){ye()},0))},S.prototype.abort=function(){this._abort(!1)},S.prototype.getResponseHeader=function(se){return this._contentType},S.prototype.setRequestHeader=function(se,pe){var ve=this._xhr;"setRequestHeader"in ve&&ve.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))&&l!=null&&l.readyState!=null&&l.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(ve){throw ve}};function C(se){return se.replace(/[A-Z]/g,function(pe){return String.fromCharCode(pe.charCodeAt(0)+32)})}function P(se){for(var pe=Object.create(null),ve=se.split(`\r
|
||
`),xe=0;xe<ve.length;xe+=1){var Ne=ve[xe],Te=Ne.split(": "),Ae=Te.shift(),le=Te.join(": ");pe[C(Ae)]=le}this._map=pe}P.prototype.get=function(se){return this._map[C(se)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function T(){}T.prototype.open=function(se,pe,ve,xe,Ne,Te,Ae){se.open("GET",Ne);var le=0;se.onprogress=function(){var ge=se.responseText,ye=ge.slice(le);le+=ye.length,ve(ye)},se.onerror=function(ge){ge.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 ge=se.status,ye=se.statusText,we=se.getResponseHeader("Content-Type"),Me=se.getAllResponseHeaders();pe(ge,ye,we,new P(Me))}},se.withCredentials=Te;for(var ue in Ae)Object.prototype.hasOwnProperty.call(Ae,ue)&&se.setRequestHeader(ue,Ae[ue]);return se.send(),se};function j(se){this._headers=se}j.prototype.get=function(se){return this._headers.get(se)};function $(){}$.prototype.open=function(se,pe,ve,xe,Ne,Te,Ae){var le=null,ue=new y,ge=ue.signal,ye=new v;return d(Ne,{headers:Ae,credentials:Te?"include":"same-origin",signal:ge,cache:"no-store"}).then(function(we){return le=we.body.getReader(),pe(we.status,we.statusText,we.headers.get("Content-Type"),new j(we.headers)),new f(function(Me,Le){var Je=function(){le.read().then(function(tt){if(tt.done)Me(void 0);else{var Ye=ye.decode(tt.value,{stream:!0});ve(Ye),Je()}}).catch(function(tt){Le(tt)})};Je()})}).catch(function(we){if(we.name!=="AbortError")return we}).then(function(we){xe(we)}),{abort:function(){le!=null&&le.cancel(),ue.abort()}}};function M(){this._listeners=Object.create(null)}function I(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 ve=pe.length,xe=0;xe<ve;xe+=1){var Ne=pe[xe];try{typeof Ne.handleEvent=="function"?Ne.handleEvent(se):Ne.call(this,se)}catch(Te){I(Te)}}},M.prototype.addEventListener=function(se,pe){se=String(se);var ve=this._listeners,xe=ve[se];xe==null&&(xe=[],ve[se]=xe);for(var Ne=!1,Te=0;Te<xe.length;Te+=1)xe[Te]===pe&&(Ne=!0);Ne||xe.push(pe)},M.prototype.removeEventListener=function(se,pe){se=String(se);var ve=this._listeners,xe=ve[se];if(xe!=null){for(var Ne=[],Te=0;Te<xe.length;Te+=1)xe[Te]!==pe&&Ne.push(xe[Te]);Ne.length===0?delete ve[se]:ve[se]=Ne}};function F(se){this.type=se,this.target=void 0}function q(se,pe){F.call(this,se),this.data=pe.data,this.lastEventId=pe.lastEventId}q.prototype=Object.create(F.prototype);function H(se,pe){F.call(this,se),this.status=pe.status,this.statusText=pe.statusText,this.headers=pe.headers}H.prototype=Object.create(F.prototype);function Z(se,pe){F.call(this,se),this.error=pe.error}Z.prototype=Object.create(F.prototype);var Q=-1,te=0,X=1,U=2,B=-1,W=0,ee=1,G=2,ne=3,re=/^text\/event\-stream(;.*)?$/i,ae=1e3,fe=18e6,A=function(se,pe){var ve=se==null?pe:parseInt(se,10);return ve!==ve&&(ve=pe),k(ve)},k=function(se){return Math.min(Math.max(se,ae),fe)},z=function(se,pe,ve){try{typeof pe=="function"&&pe.call(se,ve)}catch(xe){I(xe)}};function J(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,de(this,se,pe)}function Y(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var ie=d!=null&&p!=null&&"body"in p.prototype;function de(se,pe,ve){pe=String(pe);var xe=!!ve.withCredentials,Ne=ve.lastEventIdQueryParameterName||"lastEventId",Te=k(1e3),Ae=A(ve.heartbeatTimeout,45e3),le="",ue=Te,ge=!1,ye=0,we=ve.headers||{},Me=ve.Transport,Le=ie&&Me==null?void 0:new S(Me!=null?new Me:Y()),Je=Me!=null&&typeof Me!="string"?new Me:Le==null?new $:new T,tt=void 0,Ye=0,Wt=Q,It="",hn="",Un="",Ui="",On=W,Ju=0,zi=0,_p=function(Jt,qt,zn,Sn){if(Wt===te)if(Jt===200&&zn!=null&&re.test(zn)){Wt=X,ge=Date.now(),ue=Te,se.readyState=X;var Pn=new H("open",{status:Jt,statusText:qt,headers:Sn});se.dispatchEvent(Pn),z(se,se.onopen,Pn)}else{var an="";Jt!==200?(qt&&(qt=qt.replace(/\s+/g," ")),an="EventSource's response has a status "+Jt+" "+qt+" that is not 200. Aborting the connection."):an="EventSource's response has a Content-Type specifying an unsupported type: "+(zn==null?"-":zn.replace(/\s+/g," "))+". Aborting the connection.",ef();var Pn=new H("error",{status:Jt,statusText:qt,headers:Sn});se.dispatchEvent(Pn),z(se,se.onerror,Pn),console.error(an)}},xp=function(Jt){if(Wt===X){for(var qt=-1,zn=0;zn<Jt.length;zn+=1){var Sn=Jt.charCodeAt(zn);(Sn===10||Sn===13)&&(qt=zn)}var Pn=(qt!==-1?Ui:"")+Jt.slice(0,qt+1);Ui=(qt===-1?Ui:"")+Jt.slice(qt+1),Jt!==""&&(ge=Date.now(),ye+=Jt.length);for(var an=0;an<Pn.length;an+=1){var Sn=Pn.charCodeAt(an);if(On===B&&Sn===10)On=W;else if(On===B&&(On=W),Sn===13||Sn===10){if(On!==W){On===ee&&(zi=an+1);var pi=Pn.slice(Ju,zi-1),mi=Pn.slice(zi+(zi<an&&Pn.charCodeAt(zi)===32?1:0),an);pi==="data"?(It+=`
|
||
`,It+=mi):pi==="id"?hn=mi:pi==="event"?Un=mi:pi==="retry"?(Te=A(mi,Te),ue=Te):pi==="heartbeatTimeout"&&(Ae=A(mi,Ae),Ye!==0&&(i(Ye),Ye=r(function(){us()},Ae)))}if(On===W){if(It!==""){le=hn,Un===""&&(Un="message");var Cn=new q(Un,{data:It.slice(1),lastEventId:hn});if(se.dispatchEvent(Cn),Un==="open"?z(se,se.onopen,Cn):Un==="message"?z(se,se.onmessage,Cn):Un==="error"&&z(se,se.onerror,Cn),Wt===U)return}It="",Un=""}On=Sn===13?B:W}else On===W&&(Ju=an,On=ee),On===ee?Sn===58&&(zi=an+1,On=G):On===G&&(On=ne)}}},wp=function(Jt){if(Wt===X||Wt===te){Wt=Q,Ye!==0&&(i(Ye),Ye=0),Ye=r(function(){us()},ue),ue=k(Math.min(Te*16,ue*2)),se.readyState=te;var qt=new Z("error",{error:Jt});se.dispatchEvent(qt),z(se,se.onerror,qt),Jt!=null&&console.error(Jt)}},ef=function(){Wt=U,tt!=null&&(tt.abort(),tt=void 0),Ye!==0&&(i(Ye),Ye=0),se.readyState=U},us=function(){if(Ye=0,Wt!==Q){if(!ge&&tt!=null)wp(new Error("No activity within "+Ae+" milliseconds. "+(Wt===te?"No response received.":ye+" chars received.")+" Reconnecting.")),tt!=null&&(tt.abort(),tt=void 0);else{var Jt=Math.max((ge||Date.now())+Ae-Date.now(),1);ge=!1,Ye=r(function(){us()},Jt)}return}ge=!1,ye=0,Ye=r(function(){us()},Ae),Wt=te,It="",Un="",hn=le,Ui="",Ju=0,zi=0,On=W;var qt=pe;if(pe.slice(0,5)!=="data:"&&pe.slice(0,5)!=="blob:"&&le!==""){var zn=pe.indexOf("?");qt=zn===-1?pe:pe.slice(0,zn+1)+pe.slice(zn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(mi,Cn){return Cn===Ne?"":mi}),qt+=(pe.indexOf("?")===-1?"?":"&")+Ne+"="+encodeURIComponent(le)}var Sn=se.withCredentials,Pn={};Pn.Accept="text/event-stream";var an=se.headers;if(an!=null)for(var pi in an)Object.prototype.hasOwnProperty.call(an,pi)&&(Pn[pi]=an[pi]);try{tt=Je.open(Le,_p,xp,wp,qt,Sn,Pn)}catch(mi){throw ef(),mi}};se.url=pe,se.readyState=te,se.withCredentials=xe,se.headers=we,se._close=ef,us()}J.prototype=Object.create(M.prototype),J.prototype.CONNECTING=te,J.prototype.OPEN=X,J.prototype.CLOSED=U,J.prototype.close=function(){this._close()},J.CONNECTING=te,J.OPEN=X,J.CLOSED=U,J.prototype.withCredentials=void 0;var Ce=c;o!=null&&(c==null||!("withCredentials"in c.prototype))&&(Ce=J),function(se){{var pe=se(t);pe!==void 0&&(e.exports=pe)}}(function(se){se.EventSourcePolyfill=J,se.NativeEventSource=c,se.EventSource=Ce})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Zl:globalThis)})(s2,s2.exports);var zoe=s2.exports;const $a=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),Voe=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=rr("realTimeUpdates",{enabled:!0}),i=N.useId();return m.jsxs(yt,{title:"Real-time updates",className:"h-100",children:[m.jsx(eg,{children:m.jsxs(Vo,{checked:n,onChange:e,children:["Enable or disable real-time updates.",m.jsxs($a,{children:["Real-time updates are currently being ",m.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),m.jsxs(Au,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Oe("form-label",{"text-muted":!n}),id:i,children:[m.jsx(yn,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),n&&m.jsx($a,{children:r?m.jsxs("span",{children:["Updates will be reflected in the UI every ",m.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},j1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Woe=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."]}),Hoe=({updateShortUrlCreationSettings:e})=>{const t=rr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return m.jsxs(yt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[m.jsxs(Vo,{checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),children:["Request validation on long URLs when creating new short URLs."," ",m.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),m.jsxs($a,{children:["The initial state of the ",m.jsx("b",{children:"Validate URL"})," checkbox will be ",m.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),m.jsxs(Vo,{checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),children:["Make all new short URLs forward their query params to the long URL.",m.jsxs($a,{children:["The initial state of the ",m.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",m.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),m.jsxs(Au,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(ea,{text:j1(t.tagFilteringMode),children:[m.jsx(ke,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:j1("startsWith")}),m.jsx(ke,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:j1("includes")})]}),m.jsx($a,{children:Woe(t.tagFilteringMode)})]})]})},Goe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Koe=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=rr("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return m.jsxs(yt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[m.jsxs(Vo,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",m.jsxs($a,{children:["When deleting a short URL, confirmation ",m.jsx("b",{children:r?"will":"won't"})," be required."]})]}),m.jsx(Au,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(ep,{items:Goe,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},qoe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Yoe=({updateTagsSettings:e})=>{const t=rr("tags",{});return m.jsx(yt,{title:"Tags",className:"h-100",children:m.jsx(Au,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(ep,{items:qoe,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},Zoe=({updateUiSettings:e,_matchMedia:t})=>{const n=rr("ui"),r=N.useMemo(()=>(n==null?void 0:n.theme)??FP(t),[n==null?void 0:n.theme,t]);return m.jsxs(yt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[m.jsx(Vo,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."}),m.jsx(je,{icon:r==="dark"?tY:Vq})]})},GD={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Xoe=(e,t)=>!e||e==="all"?t:GD[e],Qoe=({onChange:e,active:t,allText:n})=>m.jsxs(ea,{text:Xoe(t,n),children:[m.jsx(ke,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(ke,{divider:!0}),Object.entries(GD).map(([r,i])=>m.jsx(ke,{active:t===r,onClick:()=>e(r),children:i},r))]}),B3=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Joe=({updateVisitsSettings:e})=>{const t=rr("visits"),n=N.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??B3(t),...i}),[e,t]);return m.jsxs(yt,{title:"Visits",className:"h-100",children:[m.jsx(eg,{children:m.jsxs(Vo,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",m.jsxs($a,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(eg,{children:m.jsxs(Vo,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",m.jsxs($a,{children:["When loading visits, previous period ",m.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),m.jsx(Au,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(Qoe,{allText:"All visits",active:B3(t),onChange:r=>n({defaultInterval:r})})})]})},A1=({children:e})=>N.Children.map(e,(t,n)=>m.jsx("div",{className:"mb-3",children:t},n)),eae=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=N.useCallback(s=>t(f0(e,s)),[e,t]),i=N.useCallback(s=>r({realTimeUpdates:{enabled:s}}),[r]),o=N.useCallback(s=>r({realTimeUpdates:{interval:s}}),[r]),a=N.useCallback((s,c)=>r({[s]:c}),[r]);return m.jsxs(YD,{value:e,children:[m.jsxs(PD,{className:"mb-3",children:[m.jsx(cd,{to:"general",children:"General"}),m.jsx(cd,{to:"short-urls",children:"Short URLs"}),m.jsx(cd,{to:"other-items",children:"Other items"})]}),m.jsxs(qy,{children:[m.jsx(at,{path:"general",element:m.jsxs(A1,{children:[m.jsx(Zoe,{updateUiSettings:s=>a("ui",s)}),m.jsx(Voe,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),m.jsx(at,{path:"short-urls",element:m.jsxs(A1,{children:[m.jsx(Hoe,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),m.jsx(Koe,{defaultOrdering:n,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),m.jsx(at,{path:"other-items",element:m.jsxs(A1,{children:[m.jsx(Yoe,{updateTagsSettings:s=>a("tags",s)}),m.jsx(Joe,{updateVisitsSettings:s=>a("visits",s)})]})}),m.jsx(at,{path:"*",element:m.jsx(QS,{replace:!0,to:"general"})})]})]})},KD={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},qD=N.createContext(KD),{Provider:YD}=qD,GP=()=>N.useContext(qD)??KD;function rr(e,t){return GP()[e]??t}/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const tae={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},nae=tae,rae={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"]},ZD={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},KP=6048e5,iae=864e5,XD=6e4,qP=36e5,cm=43200,U3=1440,z3=Symbol.for("constructDateFrom");function Mn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&z3 in e?e[z3](t):e instanceof Date?new e.constructor(t):new Date(t)}function rt(e,t){return Mn(t||e,e)}function YP(e,t,n){const r=rt(e,n==null?void 0:n.in);return isNaN(t)?Mn(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function oae(e,t,n){const r=rt(e,n==null?void 0:n.in);if(isNaN(t))return Mn(e,NaN);if(!t)return r;const i=r.getDate(),o=Mn(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function aae(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:c=0,seconds:l=0}=t,f=rt(e,n==null?void 0:n.in),d=i||r?oae(f,i+r*12):f,p=a||o?YP(d,a+o*7):d,v=c+s*60,y=(l+v*60)*1e3;return Mn(e,+p+y)}let sae={};function np(){return sae}function al(e,t){var s,c,l,f;const n=np(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(l=n.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??0,i=rt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function eh(e,t){return al(e,{...t,weekStartsOn:1})}function QD(e,t){const n=rt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Mn(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=eh(i),a=Mn(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=eh(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Gc(e){const t=rt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function gl(e,...t){const n=Mn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function sl(e,t){const n=rt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function d0(e,t,n){const[r,i]=gl(n==null?void 0:n.in,e,t),o=sl(r),a=sl(i),s=+o-Gc(o),c=+a-Gc(a);return Math.round((s-c)/iae)}function lae(e,t){const n=QD(e,t),r=Mn(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),eh(r)}function JD(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Mn.bind(null,i));const o=rt(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),Mn(r,n||NaN)}function cae(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Mn.bind(null,i));const o=rt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),Mn(r,n||NaN)}function Qm(e,t){const n=+rt(e)-+rt(t);return n<0?-1:n>0?1:n}function uae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function fae(e){return!(!uae(e)&&typeof e!="number"||isNaN(+rt(e)))}function cg(e,t,n){const[r,i]=gl(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return o*12+a}function dae(e,t,n){const[r,i]=gl(n==null?void 0:n.in,e,t),o=al(r,n),a=al(i,n),s=+o-Gc(o),c=+a-Gc(a);return Math.round((s-c)/KP)}function e5(e,t,n){const[r,i]=gl(n==null?void 0:n.in,e,t),o=V3(r,i),a=Math.abs(d0(r,i));r.setDate(r.getDate()-o*a);const s=+(V3(r,i)===-o),c=o*(a-s);return c===0?0:c}function V3(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 t5(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function hae(e,t,n){const[r,i]=gl(n==null?void 0:n.in,e,t),o=(+r-+i)/qP;return t5(n==null?void 0:n.roundingMethod)(o)}function pae(e,t){return+rt(e)-+rt(t)}function Kc(e,t){const n=rt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function mae(e,t){const n=rt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function vae(e,t){const n=rt(e,t==null?void 0:t.in);return+Kc(n,t)==+mae(n,t)}function gae(e,t,n){const[r,i,o]=gl(n==null?void 0:n.in,e,e,t),a=Qm(i,o),s=Math.abs(cg(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=Qm(i,o)===-a;vae(r)&&s===1&&Qm(r,o)===1&&(c=!1);const l=a*(s-+c);return l===0?0:l}function yae(e,t,n){const r=pae(e,t)/1e3;return t5(n==null?void 0:n.roundingMethod)(r)}function bae(e,t){const n=rt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _ae(e,t){const n=t==null?void 0:t.weekStartsOn,r=rt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function xae(e,t){return _ae(e,{...t,weekStartsOn:1})}const wae={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"}},Oae=(e,t,n)=>{let r;const i=wae[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 k1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Sae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Eae={date:k1({formats:Sae,defaultWidth:"full"}),time:k1({formats:Pae,defaultWidth:"full"}),dateTime:k1({formats:Cae,defaultWidth:"full"})},Tae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jae=(e,t,n,r)=>Tae[e];function Sf(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 Aae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Nae={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"]},Mae={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"]},Lae={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"}},Rae={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"}},$ae=(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"},Iae={ordinalNumber:$ae,era:Sf({values:Aae,defaultWidth:"wide"}),quarter:Sf({values:kae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Sf({values:Nae,defaultWidth:"wide"}),day:Sf({values:Mae,defaultWidth:"wide"}),dayPeriod:Sf({values:Lae,defaultWidth:"wide",formattingValues:Rae,defaultFormattingWidth:"wide"})};function Pf(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],c=Array.isArray(s)?Fae(s,d=>d.test(a)):Dae(s,d=>d.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const f=t.slice(a.length);return{value:l,rest:f}}}function Dae(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fae(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Bae(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 Uae=/^(\d+)(th|st|nd|rd)?/i,zae=/\d+/i,Vae={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},Wae={any:[/^b/i,/^(a|c)/i]},Hae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gae={any:[/1/i,/2/i,/3/i,/4/i]},Kae={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},qae={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]},Yae={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},Zae={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]},Xae={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},Qae={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}},Jae={ordinalNumber:Bae({matchPattern:Uae,parsePattern:zae,valueCallback:e=>parseInt(e,10)}),era:Pf({matchPatterns:Vae,defaultMatchWidth:"wide",parsePatterns:Wae,defaultParseWidth:"any"}),quarter:Pf({matchPatterns:Hae,defaultMatchWidth:"wide",parsePatterns:Gae,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pf({matchPatterns:Kae,defaultMatchWidth:"wide",parsePatterns:qae,defaultParseWidth:"any"}),day:Pf({matchPatterns:Yae,defaultMatchWidth:"wide",parsePatterns:Zae,defaultParseWidth:"any"}),dayPeriod:Pf({matchPatterns:Xae,defaultMatchWidth:"any",parsePatterns:Qae,defaultParseWidth:"any"})},n5={code:"en-US",formatDistance:Oae,formatLong:Eae,formatRelative:jae,localize:Iae,match:Jae,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ese(e,t){const n=rt(e,t==null?void 0:t.in);return d0(n,bae(n))+1}function tse(e,t){const n=rt(e,t==null?void 0:t.in),r=+eh(n)-+lae(n);return Math.round(r/KP)+1}function r5(e,t){var f,d,p,v;const n=rt(e,t==null?void 0:t.in),r=n.getFullYear(),i=np(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=Mn((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=al(a,t),c=Mn((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const l=al(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function nse(e,t){var s,c,l,f;const n=np(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(l=n.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??1,i=r5(e,t),o=Mn((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),al(o,t)}function rse(e,t){const n=rt(e,t==null?void 0:t.in),r=+al(n,t)-+nse(n,t);return Math.round(r/KP)+1}function nt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ca={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return nt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):nt(n+1,2)},d(e,t){return nt(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 nt(e.getHours()%12||12,t.length)},H(e,t){return nt(e.getHours(),t.length)},m(e,t){return nt(e.getMinutes(),t.length)},s(e,t){return nt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return nt(i,t.length)}},Fl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},W3={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 ca.y(e,t)},Y:function(e,t,n,r){const i=r5(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return nt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):nt(o,t.length)},R:function(e,t){const n=QD(e);return nt(n,t.length)},u:function(e,t){const n=e.getFullYear();return nt(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 nt(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 nt(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 ca.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 nt(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=rse(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):nt(i,t.length)},I:function(e,t,n){const r=tse(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ca.d(e,t)},D:function(e,t,n){const r=ese(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):nt(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 nt(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 nt(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 nt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Fl.noon:r===0?i=Fl.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=Fl.evening:r>=12?i=Fl.afternoon:r>=4?i=Fl.morning:i=Fl.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 ca.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ca.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ca.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ca.s(e,t)},S:function(e,t){return ca.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return G3(r);case"XXXX":case"XX":return Ps(r);case"XXXXX":case"XXX":default:return Ps(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return G3(r);case"xxxx":case"xx":return Ps(r);case"xxxxx":case"xxx":default:return Ps(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+H3(r,":");case"OOOO":default:return"GMT"+Ps(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+H3(r,":");case"zzzz":default:return"GMT"+Ps(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return nt(r,t.length)},T:function(e,t,n){return nt(+e,t.length)}};function H3(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+nt(o,2)}function G3(e,t){return e%60===0?(e>0?"-":"+")+nt(Math.abs(e)/60,2):Ps(e,t)}function Ps(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=nt(Math.trunc(r/60),2),o=nt(r%60,2);return n+i+t+o}const K3=(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"})}},i5=(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"})}},ise=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return K3(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}}",K3(r,t)).replace("{{time}}",i5(i,t))},ose={p:i5,P:ise},ase=/^D+$/,sse=/^Y+$/,lse=["D","DD","YY","YYYY"];function cse(e){return ase.test(e)}function use(e){return sse.test(e)}function fse(e,t,n){const r=dse(e,t,n);if(console.warn(r),lse.includes(e))throw new RangeError(r)}function dse(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 hse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mse=/^'([^]*?)'?$/,vse=/''/g,gse=/[a-zA-Z]/;function ug(e,t,n){var f,d,p,v;const r=np(),i=r.locale??n5,o=r.firstWeekContainsDate??((d=(f=r.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,s=rt(e,n==null?void 0:n.in);if(!fae(s))throw new RangeError("Invalid time value");let c=t.match(pse).map(g=>{const y=g[0];if(y==="p"||y==="P"){const x=ose[y];return x(g,i.formatLong)}return g}).join("").match(hse).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const y=g[0];if(y==="'")return{isToken:!1,value:yse(g)};if(W3[y])return{isToken:!0,value:g};if(y.match(gse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(g=>{if(!g.isToken)return g.value;const y=g.value;(use(y)||cse(y))&&fse(y,t,String(e));const x=W3[y[0]];return x(s,y,i.localize,l)}).join("")}function yse(e){const t=e.match(mse);return t?t[1].replace(vse,"'"):e}function bse(e,t,n){const r=np(),i=(n==null?void 0:n.locale)??r.locale??n5,o=2520,a=Qm(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}),[c,l]=gl(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),f=yae(l,c),d=(Gc(l)-Gc(c))/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<U3){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,s)}else{if(p<o)return i.formatDistance("xDays",1,s);if(p<cm){const g=Math.round(p/U3);return i.formatDistance("xDays",g,s)}else if(p<cm*2)return v=Math.round(p/cm),i.formatDistance("aboutXMonths",v,s)}if(v=gae(l,c),v<12){const g=Math.round(p/cm);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 _se(e,t){const n=rt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const o="-",a=":";{const s=nt(n.getDate(),2),c=nt(n.getMonth()+1,2);r=`${nt(n.getFullYear(),4)}${o}${c}${o}${s}`}{const s=n.getTimezoneOffset();if(s!==0){const v=Math.abs(s),g=nt(Math.trunc(v/60),2),y=nt(v%60,2);i=`${s<0?"+":"-"}${g}:${y}`}else i="Z";const c=nt(n.getHours(),2),l=nt(n.getMinutes(),2),f=nt(n.getSeconds(),2),d=r===""?"":"T",p=[c,l,f].join(a);r=`${r}${d}${p}${i}`}return r}function xse(e){return Math.trunc(+rt(e)/1e3)}function wse(e,t){return+rt(e)>+rt(t)}function fg(e,t){return+rt(e)<+rt(t)}function l2(e,t){return+rt(e)==+rt(t)}function Ose(e,t,n){const r=+rt(e,n==null?void 0:n.in),[i,o]=[+rt(t.start,n==null?void 0:n.in),+rt(t.end,n==null?void 0:n.in)].sort((a,s)=>a-s);return r>=i&&r<=o}function dg(e,t,n){return YP(e,-t,n)}function Ga(e,t){const n=()=>Mn(t==null?void 0:t.in,NaN),i=Ese(e);let o;if(i.date){const l=Tse(i.date,2);o=jse(l.restDateString,l.year)}if(!o||isNaN(+o))return n();const a=+o;let s=0,c;if(i.time&&(s=Ase(i.time),isNaN(s)))return n();if(i.timezone){if(c=kse(i.timezone),isNaN(c))return n()}else{const l=new Date(a+s),f=rt(0,t==null?void 0:t.in);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return rt(a+s+c,t==null?void 0:t.in)}const um={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Sse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pse=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Cse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ese(e){const t={},n=e.split(um.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],um.timeZoneDelimiter.test(t.date)&&(t.date=e.split(um.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=um.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Tse(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 jse(e,t){if(t===null)return new Date(NaN);const n=e.match(Sse);if(!n)return new Date(NaN);const r=!!n[4],i=Cf(n[1]),o=Cf(n[2])-1,a=Cf(n[3]),s=Cf(n[4]),c=Cf(n[5])-1;if(r)return $se(t,s,c)?Nse(t,s,c):new Date(NaN);{const l=new Date(0);return!Lse(t,o,a)||!Rse(t,i)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(i,a)),l)}}function Cf(e){return e?parseInt(e):1}function Ase(e){const t=e.match(Pse);if(!t)return NaN;const n=N1(t[1]),r=N1(t[2]),i=N1(t[3]);return Ise(n,r,i)?n*qP+r*XD+i*1e3:NaN}function N1(e){return e&&parseFloat(e.replace(",","."))||0}function kse(e){if(e==="Z")return 0;const t=e.match(Cse);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Dse(r,i)?n*(r*qP+i*XD):NaN}function Nse(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 Mse=[31,null,31,30,31,30,31,31,30,31,30,31];function o5(e){return e%400===0||e%4===0&&e%100!==0}function Lse(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Mse[t]||(o5(e)?29:28))}function Rse(e,t){return t>=1&&t<=(o5(e)?366:365)}function $se(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ise(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Dse(e,t){return t>=0&&t<=59}/*!
|
||
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
|
||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||
* Copyright 2024 Fonticons, Inc.
|
||
*/const Fse={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"]},Bse={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"]},Cs={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},ZP=Symbol("Create new tag"),a5=Symbol("No options"),Yl=()=>{},xn=V.createContext(void 0);function q3(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Use(e){return e.selectionStart===0&&e.selectionEnd===0}function zse(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function h0(e){return`${e}-label`}function Vse(e){return`${e}-combobox`}function Wse(e){return`${e}-input`}function s5(e){return`${e}-listbox`}function l5(e,t){return`${e}-option-${Xse(t)}`}function Hse(e,t){if((e==null?void 0:e.value)===ZP&&e.disabled===!1)return{value:t,label:t}}function Gse(e){const t=Hse(e.activeOption,e.value)||e.activeOption||tle(e.value,e.options);return t&&!t.disabled?t:void 0}function Kse(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const qse=/%value%/;function hg(e,t){return e.replace(qse,t)}function Yse(e,t){const n=u5(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 Zse=/\s+/g;function c2(e){return`${String(e.value)}-${e.label}`}function Xse(e){return c2(e).replace(Zse,"_")}function u2(e,t){return t.findIndex(({value:n})=>n===e.value)}const Qse=/[-\\^$*+?.()|[\]{}]/g;function c5(e){return e.replace(Qse,"\\$&")}function u5(e){return new RegExp(c5(e),"i")}function Jse(e){return new RegExp(`^${c5(e)}$`,"i")}function ele(e,t){if(e){const n=u5(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function tle(e,t){const n=Jse(e);return t.find(r=>n.test(r.label))||null}const nle={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function rle({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:l}=N.useContext(xn),f=N.useMemo(()=>{const g=M=>{const I=M.currentTarget.value;l.current.updateInputValue(I),document.activeElement===a.current&&l.current.listBoxExpand(I)},y=()=>{l.current.listBoxExpand()},x=M=>{var I;((I=o.current)==null?void 0:I.contains(M.relatedTarget))===!1&&l.current.listBoxCollapse()},b=()=>{l.current.listBoxExpand()},_=M=>{const{activeIndex:I,isExpanded:F}=l.current.state;F?(M.preventDefault(),l.current.updateActiveIndex(I+1)):(zse(M.currentTarget)||M.altKey)&&(M.preventDefault(),l.current.listBoxExpand())},w=M=>{const{activeIndex:I,isExpanded:F}=l.current.state;F?(M.preventDefault(),l.current.updateActiveIndex(I-1)):Use(M.currentTarget)&&(M.preventDefault(),l.current.listBoxExpand())},S=M=>{const{isExpanded:I,options:F}=l.current.state;I&&(M.preventDefault(),l.current.updateActiveIndex(F.length-1))},C=M=>{l.current.state.isExpanded&&(M.preventDefault(),l.current.updateActiveIndex(0))},P=()=>{l.current.state.isExpanded?l.current.listBoxCollapse():l.current.updateInputValue("")},T=()=>{if(e){const{value:M,selected:I}=l.current.state,F=I[I.length-1];M===""&&F&&l.current.selectTag(F)}},j=M=>{l.current.state.isExpanded&&(M.preventDefault(),l.current.selectTag())};return{onBlur:x,onChange:g,onClick:b,onFocus:y,onKeyDown:M=>{if(M.key===Cs.UpArrow)return w(M);if(M.key===Cs.DownArrow)return _(M);if(M.key===Cs.PageUp)return C(M);if(M.key===Cs.PageDown)return S(M);if(M.key===Cs.Escape)return P();if(M.key===Cs.Backspace)return T();if(r.includes(M.key))return j(M)}}},[e,o,r,a,l]),{activeOption:d,isExpanded:p,value:v}=l.current.state;return{...nle,"aria-autocomplete":"list","aria-activedescendant":d?l5(i,d):void 0,"aria-controls":s5(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&n||void 0,"aria-invalid":c,"aria-labelledby":h0(i),"aria-expanded":p,id:Wse(i),onBlur:s?Yl:f.onBlur,onChange:s?Yl:f.onChange,onClick:s?Yl:f.onClick,onFocus:s?Yl:f.onFocus,onKeyDown:s?Yl:f.onKeyDown,ref:a,role:"combobox",type:"text",value:v}}const ile={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ole=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function ale({allowResize:e=!0,text:t}){const n=N.useRef(null),{inputRef:r}=N.useContext(xn),[i,o]=N.useState(null);return N.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);ole.forEach(s=>{const c=a.getPropertyValue(s);n.current.style.setProperty(s,c)})}},[e,r,n]),N.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:ile}}}function sle(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=N.useContext(xn),i=r.current.state.activeIndex===-1,o=N.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return N.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":h0(e),id:s5(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function lle({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionPosition:r,newOptionText:i,noOptionsText:o,onAdd:a,onDelete:s,onCollapse:c,onExpand:l,onInput:f,onShouldCollapse:d,onShouldExpand:p,onValidate:v,selected:g,suggestions:y,suggestionsTransform:x}){const b=N.useRef(),[_,w]=N.useState(null),[S,C]=N.useState(!1),[P,T]=N.useState(""),j=N.useMemo(()=>{const Z=x(P,y);return P&&(t&&Z[r==="first"?"unshift":"push"]({disabled:v?!v(P):!1,label:i,value:ZP}),Z.length===0&&Z.push({disabled:!0,label:o,value:a5})),Z},[t,r,i,o,v,y,x,P]),$=_?u2(_,j):-1,M=e?Math.max($,0):$,I=j[M],F={activeIndex:M,activeOption:I,isExpanded:S,options:j,selected:g,value:P},q={tagsAdded:b.current?q3(g,b.current.state.selected):[],tagsDeleted:b.current?q3(b.current.state.selected,g):[]},H={listBoxCollapse(Z){S&&(!d||d(Z??F.value))&&(C(!1),w(null),c==null||c())},listBoxExpand(Z){S||(!p||p(Z??F.value))&&(C(!0),w(j[M]),l==null||l())},updateActiveIndex(Z){const Q=Kse(Z,j.length,e?0:-1);w(j[Q])},updateInputValue(Z){P!==Z&&(T(Z),f==null||f(Z))},selectTag(Z){if(Z??(Z=Gse(F)),Z){const Q=u2(Z,F.selected);Q>-1?s(Q):a(Z),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return b.current={...H,flags:q,state:F},b}function cle(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=N.useContext(xn),o=N.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,l=u2(a,i.current.state.selected)>-1,f=N.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=N.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return dle(o,r,s),{option:{...a,active:s,disabled:c,index:e,selected:l},optionProps:{"aria-disabled":c,"aria-posinset":e+1,"aria-selected":c?void 0:l,"aria-setsize":i.current.state.options.length,id:l5(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function ule({inputRef:e,managerRef:t}){return N.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function fle({onBlur:e,onFocus:t}){const[n,r]=N.useState(!1),{id:i,inputRef:o,rootRef:a}=N.useContext(xn),s=N.useMemo(()=>({"aria-describedby":h0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var c;(c=a.current)!=null&&c.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var c;document.activeElement===a.current&&((c=o.current)==null||c.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function dle(e,t,n){N.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,c=(i=e.current)==null?void 0:i.offsetTop,l=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;c<f&&t.current.scrollTo(0,c),c+s>f+l&&t.current.scrollTo(0,c+s-l)}},[n,t,e])}function hle(e,t){const{isDisabled:n,managerRef:r}=N.useContext(xn),i=r.current.state.selected[e],o=N.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:hg(t,i.label),onClick:n?Yl:o}}}function ple({label:e}){var t;const{rootRef:n,managerRef:r}=N.useContext(xn),i=N.useRef(),o=r.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return N.useLayoutEffect(()=>{var s,c;if(o){const l=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!l&&((c=n.current)==null||c.focus({preventScroll:!0}))}},[a,i,n,o]),{ref:i,"aria-label":e}}const mle={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function vle({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=N.useContext(xn),r=N.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(hg(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(hg(t,i.label))}),V.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:mle},r.current.join(`
|
||
`))}function gle({children:e}){const{classNames:t,comboBoxRef:n,id:r}=N.useContext(xn);return V.createElement("div",{className:t.comboBox,id:Vse(r),ref:n},e)}const yle=({classNames:e,text:t})=>V.createElement("mark",{className:e.highlight},t);function ble({option:e,query:t,render:n=yle}){const{classNames:r}=N.useContext(xn);if(e.value===ZP||e.value===a5)return V.createElement(V.Fragment,null,hg(e.label,t));if(t){const i=Yse(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 _le=V.memo(ble),xle=({classNames:e,inputWidth:t,...n})=>V.createElement("input",{className:e.input,style:{width:t},...n});function wle({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=xle}){const{classNames:s}=N.useContext(xn),{value:c,...l}=rle({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=c.length<o.length?o:c,{width:d,sizerProps:p}=ale({allowResize:t,text:f});return V.createElement(V.Fragment,null,a({classNames:s,inputWidth:d,placeholder:o,value:c,...l}),t?V.createElement("div",{...p},f):null)}const Ole=({children:e,classNames:t,id:n})=>V.createElement("div",{className:t.label,id:n},e);function Sle({children:e,render:t=Ole}){const{classNames:n,id:r}=N.useContext(xn);return t({children:e,classNames:n,id:h0(r)})}const Ple=({children:e,classNames:t,...n})=>V.createElement("div",{className:t.listBox,...n},e);function Cle({children:e,render:t=Ple}){const{classNames:n,managerRef:r}=N.useContext(xn),i=sle();return!r.current.state.isExpanded||V.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Ele=({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 Tle({children:e,index:t,render:n=Ele}){const{classNames:r}=N.useContext(xn),{option:i,optionProps:o}=cle(t);return n({classNames:r,children:e,option:i,...o})}const jle=({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 Ale({children:e,onBlur:t,onFocus:n,render:r=jle}){const{classNames:i,isDisabled:o,isInvalid:a}=N.useContext(xn),{isActive:s,rootProps:c}=fle({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const kle=({classNames:e,tag:t,...n})=>V.createElement("button",{type:"button",className:e.tag,...n},V.createElement("span",{className:e.tagName},t.label));function Nle({render:e=kle,index:t,title:n}){const{classNames:r}=N.useContext(xn),{tag:i,tagProps:o}=hle(t,n);return e({classNames:r,tag:i,...o})}const Mle=({children:e,classNames:t,...n})=>V.createElement("ul",{className:t.tagList,...n,role:"list"},V.Children.map(e,r=>{if(V.isValidElement(r))return V.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function Lle({children:e,label:t,render:n=Mle}){const{classNames:r}=N.useContext(xn),i=ple({label:t});return n({classNames:r,children:e,...i})}const Rle={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"},$le=[Cs.Enter];function Ile({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:c=Rle,collapseOnSelect:l=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=$le,id:p="react-tags",isDisabled:v=!1,isInvalid:g=!1,labelText:y="Select tags",newOptionPosition:x="last",newOptionText:b="Add %value%",noOptionsText:_="No options found for %value%",onAdd:w,onBlur:S,onCollapse:C,onDelete:P,onExpand:T,onFocus:j,onInput:$,onShouldCollapse:M,onShouldExpand:I,onValidate:F,placeholderText:q="Add a tag",renderHighlight:H,renderInput:Z,renderLabel:Q,renderListBox:te,renderOption:X,renderRoot:U,renderTag:B,renderTagList:W,selected:ee=[],suggestions:G=[],suggestionsTransform:ne=ele,tagListLabelText:re="Selected tags"},ae){const fe=N.useRef(null),A=N.useRef(null),k=N.useRef(null),z=N.useRef(null),J=lle({activateFirstOption:e,allowNew:n,collapseOnSelect:l,newOptionPosition:x,newOptionText:b,noOptionsText:_,onAdd:w,onDelete:P,onCollapse:C,onExpand:T,onInput:$,onShouldCollapse:M,onShouldExpand:I,onValidate:F,selected:ee,suggestions:G,suggestionsTransform:ne}),Y=ule({inputRef:A,managerRef:J});return ae&&(typeof ae=="function"?ae(Y):ae.current=Y),V.createElement(xn.Provider,{value:{classNames:c,comboBoxRef:fe,id:p,inputRef:A,isDisabled:v,isInvalid:g,listBoxRef:k,managerRef:J,rootRef:z}},V.createElement(Ale,{onBlur:S,onFocus:j,render:U},V.createElement(Sle,{render:Q},y),V.createElement(Lle,{render:W,label:re},J.current.state.selected.map((ie,de)=>V.createElement(Nle,{key:c2(ie),index:de,render:B,title:f}))),V.createElement(gle,null,V.createElement(wle,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:q,render:Z}),V.createElement(Cle,{render:te},J.current.state.options.map((ie,de)=>V.createElement(Tle,{key:c2(ie),index:de,render:X},V.createElement(_le,{option:ie,query:J.current.state.value,render:H}))))),V.createElement(vle,{ariaAddedText:i,ariaDeletedText:s})))}const Dle=V.forwardRef(Ile);function M1(e){return e==null?"":`${e}`}function Fle(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 XP(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 Ble(e={stringFormatter:XP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Ule(e={stringFormatter:XP()}){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 zle=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Vle(e){var t,n,r;const i=[];let o;for(;o=zle.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 Y3(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:Vle(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 f5(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function f2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var Z3;(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"})(Z3||(Z3={}));class Wle{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||XP(),i=Ule({stringFormatter:r}),o={header:r,undefined:M1,boolean:M1,number:Fle(),bigint:M1,string:r,symbol:Ble({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=>Y3(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=>Y3(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(c){const l=s(c,a);return l===void 0?i:l}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return f2(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(f5,[]),[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 f2(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 d5 extends Wle{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(c=>{a.includes(c)||a.push(c)}),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(f5,[])}processData(t){return f2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var mn;(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"})(mn||(mn={}));mn.QUOTATION_MARK+"",mn.QUOTATION_MARK,mn.REVERSE_SOLIDUS+"",mn.REVERSE_SOLIDUS,mn.SOLIDUS+"",mn.SOLIDUS,mn.LATIN_SMALL_LETTER_B+"",mn.BACKSPACE,mn.LATIN_SMALL_LETTER_F+"",mn.FORM_FEED,mn.LATIN_SMALL_LETTER_N+"",mn.NEWLINE,mn.LATIN_SMALL_LETTER_R+"",mn.CARRIAGE_RETURN,mn.LATIN_SMALL_LETTER_T+"",mn.TAB;var X3;(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"})(X3||(X3={}));var Q3;(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"})(Q3||(Q3={}));var J3;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(J3||(J3={}));var ek;(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"})(ek||(ek={}));var Hle=Array.isArray,yr=Hle,Gle=typeof Zl=="object"&&Zl&&Zl.Object===Object&&Zl,h5=Gle,Kle=h5,qle=typeof self=="object"&&self&&self.Object===Object&&self,Yle=Kle||qle||Function("return this")(),mo=Yle,Zle=mo,Xle=Zle.Symbol,rp=Xle,tk=rp,p5=Object.prototype,Qle=p5.hasOwnProperty,Jle=p5.toString,Ef=tk?tk.toStringTag:void 0;function ece(e){var t=Qle.call(e,Ef),n=e[Ef];try{e[Ef]=void 0;var r=!0}catch{}var i=Jle.call(e);return r&&(t?e[Ef]=n:delete e[Ef]),i}var tce=ece,nce=Object.prototype,rce=nce.toString;function ice(e){return rce.call(e)}var oce=ice,nk=rp,ace=tce,sce=oce,lce="[object Null]",cce="[object Undefined]",rk=nk?nk.toStringTag:void 0;function uce(e){return e==null?e===void 0?cce:lce:rk&&rk in Object(e)?ace(e):sce(e)}var ta=uce;function fce(e){return e!=null&&typeof e=="object"}var na=fce,dce=ta,hce=na,pce="[object Symbol]";function mce(e){return typeof e=="symbol"||hce(e)&&dce(e)==pce}var Nu=mce,vce=yr,gce=Nu,yce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bce=/^\w*$/;function _ce(e,t){if(vce(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||gce(e)?!0:bce.test(e)||!yce.test(e)||t!=null&&e in Object(t)}var QP=_ce;function xce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var is=xce;const Mu=st(is);var wce=ta,Oce=is,Sce="[object AsyncFunction]",Pce="[object Function]",Cce="[object GeneratorFunction]",Ece="[object Proxy]";function Tce(e){if(!Oce(e))return!1;var t=wce(e);return t==Pce||t==Cce||t==Sce||t==Ece}var JP=Tce;const We=st(JP);var jce=mo,Ace=jce["__core-js_shared__"],kce=Ace,L1=kce,ik=function(){var e=/[^.]+$/.exec(L1&&L1.keys&&L1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Nce(e){return!!ik&&ik in e}var Mce=Nce,Lce=Function.prototype,Rce=Lce.toString;function $ce(e){if(e!=null){try{return Rce.call(e)}catch{}try{return e+""}catch{}}return""}var m5=$ce,Ice=JP,Dce=Mce,Fce=is,Bce=m5,Uce=/[\\^$.*+?()[\]{}|]/g,zce=/^\[object .+?Constructor\]$/,Vce=Function.prototype,Wce=Object.prototype,Hce=Vce.toString,Gce=Wce.hasOwnProperty,Kce=RegExp("^"+Hce.call(Gce).replace(Uce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qce(e){if(!Fce(e)||Dce(e))return!1;var t=Ice(e)?Kce:zce;return t.test(Bce(e))}var Yce=qce;function Zce(e,t){return e==null?void 0:e[t]}var Xce=Zce,Qce=Yce,Jce=Xce;function eue(e,t){var n=Jce(e,t);return Qce(n)?n:void 0}var yl=eue,tue=yl,nue=tue(Object,"create"),p0=nue,ok=p0;function rue(){this.__data__=ok?ok(null):{},this.size=0}var iue=rue;function oue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var aue=oue,sue=p0,lue="__lodash_hash_undefined__",cue=Object.prototype,uue=cue.hasOwnProperty;function fue(e){var t=this.__data__;if(sue){var n=t[e];return n===lue?void 0:n}return uue.call(t,e)?t[e]:void 0}var due=fue,hue=p0,pue=Object.prototype,mue=pue.hasOwnProperty;function vue(e){var t=this.__data__;return hue?t[e]!==void 0:mue.call(t,e)}var gue=vue,yue=p0,bue="__lodash_hash_undefined__";function _ue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yue&&t===void 0?bue:t,this}var xue=_ue,wue=iue,Oue=aue,Sue=due,Pue=gue,Cue=xue;function Lu(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])}}Lu.prototype.clear=wue;Lu.prototype.delete=Oue;Lu.prototype.get=Sue;Lu.prototype.has=Pue;Lu.prototype.set=Cue;var Eue=Lu;function Tue(){this.__data__=[],this.size=0}var jue=Tue;function Aue(e,t){return e===t||e!==e&&t!==t}var eC=Aue,kue=eC;function Nue(e,t){for(var n=e.length;n--;)if(kue(e[n][0],t))return n;return-1}var m0=Nue,Mue=m0,Lue=Array.prototype,Rue=Lue.splice;function $ue(e){var t=this.__data__,n=Mue(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rue.call(t,n,1),--this.size,!0}var Iue=$ue,Due=m0;function Fue(e){var t=this.__data__,n=Due(t,e);return n<0?void 0:t[n][1]}var Bue=Fue,Uue=m0;function zue(e){return Uue(this.__data__,e)>-1}var Vue=zue,Wue=m0;function Hue(e,t){var n=this.__data__,r=Wue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Gue=Hue,Kue=jue,que=Iue,Yue=Bue,Zue=Vue,Xue=Gue;function Ru(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])}}Ru.prototype.clear=Kue;Ru.prototype.delete=que;Ru.prototype.get=Yue;Ru.prototype.has=Zue;Ru.prototype.set=Xue;var v0=Ru,Que=yl,Jue=mo,efe=Que(Jue,"Map"),tC=efe,ak=Eue,tfe=v0,nfe=tC;function rfe(){this.size=0,this.__data__={hash:new ak,map:new(nfe||tfe),string:new ak}}var ife=rfe;function ofe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var afe=ofe,sfe=afe;function lfe(e,t){var n=e.__data__;return sfe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var g0=lfe,cfe=g0;function ufe(e){var t=cfe(this,e).delete(e);return this.size-=t?1:0,t}var ffe=ufe,dfe=g0;function hfe(e){return dfe(this,e).get(e)}var pfe=hfe,mfe=g0;function vfe(e){return mfe(this,e).has(e)}var gfe=vfe,yfe=g0;function bfe(e,t){var n=yfe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var _fe=bfe,xfe=ife,wfe=ffe,Ofe=pfe,Sfe=gfe,Pfe=_fe;function $u(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])}}$u.prototype.clear=xfe;$u.prototype.delete=wfe;$u.prototype.get=Ofe;$u.prototype.has=Sfe;$u.prototype.set=Pfe;var nC=$u,v5=nC,Cfe="Expected a function";function rC(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cfe);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(rC.Cache||v5),n}rC.Cache=v5;var g5=rC;const Efe=st(g5);var Tfe=g5,jfe=500;function Afe(e){var t=Tfe(e,function(r){return n.size===jfe&&n.clear(),r}),n=t.cache;return t}var kfe=Afe,Nfe=kfe,Mfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lfe=/\\(\\)?/g,Rfe=Nfe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mfe,function(n,r,i,o){t.push(i?o.replace(Lfe,"$1"):r||n)}),t}),$fe=Rfe;function Ife(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 iC=Ife,sk=rp,Dfe=iC,Ffe=yr,Bfe=Nu,Ufe=1/0,lk=sk?sk.prototype:void 0,ck=lk?lk.toString:void 0;function y5(e){if(typeof e=="string")return e;if(Ffe(e))return Dfe(e,y5)+"";if(Bfe(e))return ck?ck.call(e):"";var t=e+"";return t=="0"&&1/e==-Ufe?"-0":t}var zfe=y5,Vfe=zfe;function Wfe(e){return e==null?"":Vfe(e)}var b5=Wfe,Hfe=yr,Gfe=QP,Kfe=$fe,qfe=b5;function Yfe(e,t){return Hfe(e)?e:Gfe(e,t)?[e]:Kfe(qfe(e))}var _5=Yfe,Zfe=Nu,Xfe=1/0;function Qfe(e){if(typeof e=="string"||Zfe(e))return e;var t=e+"";return t=="0"&&1/e==-Xfe?"-0":t}var y0=Qfe,Jfe=_5,ede=y0;function tde(e,t){t=Jfe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ede(t[n++])];return n&&n==r?e:void 0}var oC=tde,nde=oC;function rde(e,t,n){var r=e==null?void 0:nde(e,t);return r===void 0?n:r}var x5=rde;const Tr=st(x5);function ide(e){return e==null}var ode=ide;const ze=st(ode);var ade=ta,sde=yr,lde=na,cde="[object String]";function ude(e){return typeof e=="string"||!sde(e)&&lde(e)&&ade(e)==cde}var fde=ude;const ip=st(fde);var w5={exports:{}},mt={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var aC=Symbol.for("react.element"),sC=Symbol.for("react.portal"),b0=Symbol.for("react.fragment"),_0=Symbol.for("react.strict_mode"),x0=Symbol.for("react.profiler"),w0=Symbol.for("react.provider"),O0=Symbol.for("react.context"),dde=Symbol.for("react.server_context"),S0=Symbol.for("react.forward_ref"),P0=Symbol.for("react.suspense"),C0=Symbol.for("react.suspense_list"),E0=Symbol.for("react.memo"),T0=Symbol.for("react.lazy"),hde=Symbol.for("react.offscreen"),O5;O5=Symbol.for("react.module.reference");function di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case aC:switch(e=e.type,e){case b0:case x0:case _0:case P0:case C0:return e;default:switch(e=e&&e.$$typeof,e){case dde:case O0:case S0:case T0:case E0:case w0:return e;default:return t}}case sC:return t}}}mt.ContextConsumer=O0;mt.ContextProvider=w0;mt.Element=aC;mt.ForwardRef=S0;mt.Fragment=b0;mt.Lazy=T0;mt.Memo=E0;mt.Portal=sC;mt.Profiler=x0;mt.StrictMode=_0;mt.Suspense=P0;mt.SuspenseList=C0;mt.isAsyncMode=function(){return!1};mt.isConcurrentMode=function(){return!1};mt.isContextConsumer=function(e){return di(e)===O0};mt.isContextProvider=function(e){return di(e)===w0};mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===aC};mt.isForwardRef=function(e){return di(e)===S0};mt.isFragment=function(e){return di(e)===b0};mt.isLazy=function(e){return di(e)===T0};mt.isMemo=function(e){return di(e)===E0};mt.isPortal=function(e){return di(e)===sC};mt.isProfiler=function(e){return di(e)===x0};mt.isStrictMode=function(e){return di(e)===_0};mt.isSuspense=function(e){return di(e)===P0};mt.isSuspenseList=function(e){return di(e)===C0};mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===b0||e===x0||e===_0||e===P0||e===C0||e===hde||typeof e=="object"&&e!==null&&(e.$$typeof===T0||e.$$typeof===E0||e.$$typeof===w0||e.$$typeof===O0||e.$$typeof===S0||e.$$typeof===O5||e.getModuleId!==void 0)};mt.typeOf=di;w5.exports=mt;var pde=w5.exports,mde=ta,vde=na,gde="[object Number]";function yde(e){return typeof e=="number"||vde(e)&&mde(e)==gde}var S5=yde;const bde=st(S5);var _de=S5;function xde(e){return _de(e)&&e!=+e}var wde=xde;const Iu=st(wde);var Kn=function(t){return t===0?0:t>0?1:-1},Is=function(t){return ip(t)&&t.indexOf("%")===t.length-1},Ee=function(t){return bde(t)&&!Iu(t)},un=function(t){return Ee(t)||ip(t)},Ode=0,os=function(t){var n=++Ode;return"".concat(t||"").concat(n)},qn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ee(t)&&!ip(t))return r;var o;if(Is(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Iu(o)&&(o=r),i&&o>n&&(o=n),o},ba=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Sde=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Bt=function(t,n){return Ee(t)&&Ee(n)?function(r){return t+r*(n-t)}:function(){return n}};function pg(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Tr(r,t))===n})}var Pde=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,o=0,a=0,s=1/0,c=-1/0,l=0,f=0,d=0;d<n;d++)l=t[d].cx||0,f=t[d].cy||0,r+=l,i+=f,o+=l*f,a+=l*l,s=Math.min(s,l),c=Math.max(c,l);var p=n*a!==r*r?(n*o-r*i)/(n*a-r*r):0;return{xmin:s,xmax:c,a:p,b:(i-p*r)/n}};function Cc(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 d2(e){"@babel/helpers - typeof";return d2=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},d2(e)}var Cde=["viewBox","children"],Ede=["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"],uk=["points","pathLength"],R1={svg:Cde,polygon:uk,polyline:uk},lC=["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"],mg=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(N.isValidElement(t)&&(r=t.props),!Mu(r))return null;var i={};return Object.keys(r).forEach(function(o){lC.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},Tde=function(t,n,r){return function(i){return t(n,r,i),null}},Ka=function(t,n,r){if(!Mu(t)||d2(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];lC.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=Tde(a,n,r))}),i},jde=["children"],Ade=["children"];function fk(e,t){if(e==null)return{};var n=kde(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 kde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function h2(e){"@babel/helpers - typeof";return h2=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},h2(e)}var dk={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},No=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},hk=null,$1=null,cC=function e(t){if(t===hk&&Array.isArray($1))return $1;var n=[];return N.Children.forEach(t,function(r){ze(r)||(pde.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),$1=n,hk=t,n};function Jn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return No(i)}):r=[No(t)],cC(e).forEach(function(i){var o=Tr(i,"type.displayName")||Tr(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Or(e,t){var n=Jn(e,t);return n&&n[0]}var pk=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ee(r)||r<=0||!Ee(i)||i<=0)},Nde=["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"],Mde=function(t){return t&&t.type&&ip(t.type)&&Nde.indexOf(t.type)>=0},P5=function(t){return t&&h2(t)==="object"&&"clipDot"in t},Lde=function(t,n,r,i){var o,a=(o=R1==null?void 0:R1[i])!==null&&o!==void 0?o:[];return!We(t)&&(i&&a.includes(n)||Ede.includes(n))||r&&lC.includes(n)},De=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Mu(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;Lde((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},p2=function e(t,n){if(t===n)return!0;var r=N.Children.count(t);if(r!==N.Children.count(n))return!1;if(r===0)return!0;if(r===1)return mk(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(!mk(o,a))return!1}return!0},mk=function(t,n){if(ze(t)&&ze(n))return!0;if(!ze(t)&&!ze(n)){var r=t.props||{},i=r.children,o=fk(r,jde),a=n.props||{},s=a.children,c=fk(a,Ade);return i&&s?Cc(o,c)&&p2(i,s):!i&&!s?Cc(o,c):!1}return!1},vk=function(t,n){var r=[],i={};return cC(t).forEach(function(o,a){if(Mde(o))r.push(o);else if(o){var s=No(o.type),c=n[s]||{},l=c.handler,f=c.once;if(l&&(!f||!i[s])){var d=l(o,s,a);r.push(d),i[s]=!0}}}),r},Rde=function(t){var n=t&&t.type;return n&&dk[n]?dk[n]:null},$de=function(t,n){return cC(n).indexOf(t)},Ide=["children","width","height","viewBox","className","style","title","desc"];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 Dde(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={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function v2(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,c=e.desc,l=Dde(e,Ide),f=i||{width:n,height:r,x:0,y:0},d=Oe("recharts-surface",o);return V.createElement("svg",m2({},De(l,!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,c),t)}var Bde=["children","className"];function g2(){return g2=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},g2.apply(this,arguments)}function Ude(e,t){if(e==null)return{};var n=zde(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 zde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Xe=V.forwardRef(function(e,t){var n=e.children,r=e.className,i=Ude(e,Bde),o=Oe("recharts-layer",r);return V.createElement("g",g2({className:o},De(i,!0),{ref:t}),n)}),ki=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function Vde(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 Wde=Vde,Hde=Wde;function Gde(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Hde(e,t,n)}var Kde=Gde,qde="\\ud800-\\udfff",Yde="\\u0300-\\u036f",Zde="\\ufe20-\\ufe2f",Xde="\\u20d0-\\u20ff",Qde=Yde+Zde+Xde,Jde="\\ufe0e\\ufe0f",ehe="\\u200d",the=RegExp("["+ehe+qde+Qde+Jde+"]");function nhe(e){return the.test(e)}var C5=nhe;function rhe(e){return e.split("")}var ihe=rhe,E5="\\ud800-\\udfff",ohe="\\u0300-\\u036f",ahe="\\ufe20-\\ufe2f",she="\\u20d0-\\u20ff",lhe=ohe+ahe+she,che="\\ufe0e\\ufe0f",uhe="["+E5+"]",y2="["+lhe+"]",b2="\\ud83c[\\udffb-\\udfff]",fhe="(?:"+y2+"|"+b2+")",T5="[^"+E5+"]",j5="(?:\\ud83c[\\udde6-\\uddff]){2}",A5="[\\ud800-\\udbff][\\udc00-\\udfff]",dhe="\\u200d",k5=fhe+"?",N5="["+che+"]?",hhe="(?:"+dhe+"(?:"+[T5,j5,A5].join("|")+")"+N5+k5+")*",phe=N5+k5+hhe,mhe="(?:"+[T5+y2+"?",y2,j5,A5,uhe].join("|")+")",vhe=RegExp(b2+"(?="+b2+")|"+mhe+phe,"g");function ghe(e){return e.match(vhe)||[]}var yhe=ghe,bhe=ihe,_he=C5,xhe=yhe;function whe(e){return _he(e)?xhe(e):bhe(e)}var Ohe=whe,She=Kde,Phe=C5,Che=Ohe,Ehe=b5;function The(e){return function(t){t=Ehe(t);var n=Phe(t)?Che(t):void 0,r=n?n[0]:t.charAt(0),i=n?She(n,1).join(""):t.slice(1);return r[e]()+i}}var jhe=The,Ahe=jhe,khe=Ahe("toUpperCase"),Nhe=khe;const j0=st(Nhe);function wt(e){return function(){return e}}const M5=Math.cos,vg=Math.sin,Di=Math.sqrt,gg=Math.PI,A0=2*gg,_2=Math.PI,x2=2*_2,Es=1e-6,Mhe=x2-Es;function L5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Lhe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return L5;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 Rhe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?L5:Lhe(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,c=r-t,l=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>Es)if(!(Math.abs(d*c-l*f)>Es)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,g=i-s,y=c*c+l*l,x=v*v+g*g,b=Math.sqrt(y),_=Math.sqrt(p),w=o*Math.tan((_2-Math.acos((y+p-x)/(2*b*_)))/2),S=w/_,C=w/b;Math.abs(S-1)>Es&&this._append`L${t+S*f},${n+S*d}`,this._append`A${o},${o},0,0,${+(d*v>f*g)},${this._x1=t+C*c},${this._y1=n+C*l}`}}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),c=r*Math.sin(i),l=t+s,f=n+c,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>Es||Math.abs(this._y1-f)>Es)&&this._append`L${l},${f}`,r&&(p<0&&(p=p%x2+x2),p>Mhe?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=l},${this._y1=f}`:p>Es&&this._append`A${r},${r},0,${+(p>=_2)},${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 uC(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 Rhe(t)}function fC(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function R5(e){this._context=e}R5.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 k0(e){return new R5(e)}function $5(e){return e[0]}function I5(e){return e[1]}function D5(e,t){var n=wt(!0),r=null,i=k0,o=null,a=uC(s);e=typeof e=="function"?e:e===void 0?$5:wt(e),t=typeof t=="function"?t:t===void 0?I5:wt(t);function s(c){var l,f=(c=fC(c)).length,d,p=!1,v;for(r==null&&(o=i(v=a())),l=0;l<=f;++l)!(l<f&&n(d=c[l],l,c))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,l,c),+t(d,l,c));if(v)return o=null,v+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:wt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:wt(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:wt(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),s):r},s}function fm(e,t,n){var r=null,i=wt(!0),o=null,a=k0,s=null,c=uC(l);e=typeof e=="function"?e:e===void 0?$5:wt(+e),t=typeof t=="function"?t:wt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?I5:wt(+n);function l(d){var p,v,g,y=(d=fC(d)).length,x,b=!1,_,w=new Array(y),S=new Array(y);for(o==null&&(s=a(_=c())),p=0;p<=y;++p){if(!(p<y&&i(x=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(w[g],S[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(x,p,d),S[p]=+t(x,p,d),s.point(r?+r(x,p,d):w[p],n?+n(x,p,d):S[p]))}if(_)return s=null,_+""||null}function f(){return D5().defined(i).curve(a).context(o)}return l.x=function(d){return arguments.length?(e=typeof d=="function"?d:wt(+d),r=null,l):e},l.x0=function(d){return arguments.length?(e=typeof d=="function"?d:wt(+d),l):e},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:wt(+d),l):r},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:wt(+d),n=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:wt(+d),l):t},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:wt(+d),l):n},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(n)},l.lineX1=function(){return f().x(r).y(t)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:wt(!!d),l):i},l.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),l):a},l.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),l):o},l}class F5{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 $he(e){return new F5(e,!0)}function Ihe(e){return new F5(e,!1)}const dC={draw(e,t){const n=Di(t/gg);e.moveTo(n,0),e.arc(0,0,n,0,A0)}},Dhe={draw(e,t){const n=Di(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()}},B5=Di(1/3),Fhe=B5*2,Bhe={draw(e,t){const n=Di(t/Fhe),r=n*B5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Uhe={draw(e,t){const n=Di(t),r=-n/2;e.rect(r,r,n,n)}},zhe=.8908130915292852,U5=vg(gg/10)/vg(7*gg/10),Vhe=vg(A0/10)*U5,Whe=-M5(A0/10)*U5,Hhe={draw(e,t){const n=Di(t*zhe),r=Vhe*n,i=Whe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=A0*o/5,s=M5(a),c=vg(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*i,c*r+s*i)}e.closePath()}},I1=Di(3),Ghe={draw(e,t){const n=-Di(t/(I1*3));e.moveTo(0,n*2),e.lineTo(-I1*n,-n),e.lineTo(I1*n,-n),e.closePath()}},Vr=-.5,Wr=Di(3)/2,w2=1/Di(12),Khe=(w2/2+1)*3,qhe={draw(e,t){const n=Di(t/Khe),r=n/2,i=n*w2,o=r,a=n*w2+n,s=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Vr*r-Wr*i,Wr*r+Vr*i),e.lineTo(Vr*o-Wr*a,Wr*o+Vr*a),e.lineTo(Vr*s-Wr*c,Wr*s+Vr*c),e.lineTo(Vr*r+Wr*i,Vr*i-Wr*r),e.lineTo(Vr*o+Wr*a,Vr*a-Wr*o),e.lineTo(Vr*s+Wr*c,Vr*c-Wr*s),e.closePath()}};function Yhe(e,t){let n=null,r=uC(i);e=typeof e=="function"?e:wt(e||dC),t=typeof t=="function"?t:wt(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:wt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:wt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function yg(){}function bg(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 z5(e){this._context=e}z5.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:bg(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:bg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zhe(e){return new z5(e)}function V5(e){this._context=e}V5.prototype={areaStart:yg,areaEnd:yg,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:bg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xhe(e){return new V5(e)}function W5(e){this._context=e}W5.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:bg(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qhe(e){return new W5(e)}function H5(e){this._context=e}H5.prototype={areaStart:yg,areaEnd:yg,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 Jhe(e){return new H5(e)}function gk(e){return e<0?-1:1}function yk(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(gk(o)+gk(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function bk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function D1(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 _g(e){this._context=e}_g.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:D1(this,this._t0,bk(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,D1(this,bk(this,n=yk(this,e,t)),n);break;default:D1(this,this._t0,n=yk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function G5(e){this._context=new K5(e)}(G5.prototype=Object.create(_g.prototype)).point=function(e,t){_g.prototype.point.call(this,t,e)};function K5(e){this._context=e}K5.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 epe(e){return new _g(e)}function tpe(e){return new G5(e)}function q5(e){this._context=e}q5.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=_k(e),i=_k(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 _k(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 npe(e){return new q5(e)}function N0(e,t){this._context=e,this._t=t}N0.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 rpe(e){return new N0(e,.5)}function ipe(e){return new N0(e,0)}function ope(e){return new N0(e,1)}function qc(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 O2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ape(e,t){return e[t]}function spe(e){const t=[];return t.key=e,t}function lpe(){var e=wt([]),t=O2,n=qc,r=ape;function i(o){var a=Array.from(e.apply(this,arguments),spe),s,c=a.length,l=-1,f;for(const d of o)for(s=0,++l;s<c;++s)(a[s][l]=[0,+r(d,a[s].key,l,o)]).data=d;for(s=0,f=fC(t(a));s<c;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:wt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:wt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?O2:typeof o=="function"?o:wt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??qc,i):n},i}function cpe(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}qc(e,t)}}function upe(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}qc(e,t)}}function fpe(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,c=0,l=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]],x=y[r][1]||0,b=y[r-1][1]||0;v+=x-b}c+=d,l+=v*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,qc(e,t)}}function th(e){"@babel/helpers - typeof";return th=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},th(e)}var dpe=["type","size","sizeType"];function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S2.apply(this,arguments)}function xk(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 wk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xk(Object(n),!0).forEach(function(r){hpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hpe(e,t,n){return t=ppe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ppe(e){var t=mpe(e,"string");return th(t)=="symbol"?t:t+""}function mpe(e,t){if(th(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vpe(e,t){if(e==null)return{};var n=gpe(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 gpe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Y5={symbolCircle:dC,symbolCross:Dhe,symbolDiamond:Bhe,symbolSquare:Uhe,symbolStar:Hhe,symbolTriangle:Ghe,symbolWye:qhe},ype=Math.PI/180,bpe=function(t){var n="symbol".concat(j0(t));return Y5[n]||dC},_pe=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*ype;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},xpe=function(t,n){Y5["symbol".concat(j0(t))]=n},M0=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,c=vpe(t,dpe),l=wk(wk({},c),{},{type:r,size:o,sizeType:s}),f=function(){var x=bpe(r),b=Yhe().type(x).size(_pe(o,s,r));return b()},d=l.className,p=l.cx,v=l.cy,g=De(l,!0);return p===+p&&v===+v&&o===+o?V.createElement("path",S2({},g,{className:Oe("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:f()})):null};M0.registerSymbol=xpe;function Yc(e){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yc(e)}function P2(){return P2=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},P2.apply(this,arguments)}function Ok(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 wpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ok(Object(n),!0).forEach(function(r){nh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ope(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Spe(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,X5(r.key),r)}}function Ppe(e,t,n){return t&&Spe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cpe(e,t,n){return t=xg(t),Epe(e,Z5()?Reflect.construct(t,n||[],xg(e).constructor):t.apply(e,n))}function Epe(e,t){if(t&&(Yc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tpe(e)}function Tpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z5=function(){return!!e})()}function xg(e){return xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xg(e)}function jpe(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&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},C2(e,t)}function nh(e,t,n){return t=X5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X5(e){var t=Ape(e,"string");return Yc(t)=="symbol"?t:t+""}function Ape(e,t){if(Yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hr=32,hC=function(e){function t(){return Ope(this,t),Cpe(this,t,arguments)}return jpe(t,e),Ppe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Hr/2,a=Hr/6,s=Hr/3,c=r.inactive?i:r.color;if(r.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Hr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(s,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
|
||
H`).concat(Hr,"M").concat(2*s,",").concat(o,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return V.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Hr/8,"h").concat(Hr,"v").concat(Hr*3/4,"h").concat(-Hr,"z"),className:"recharts-legend-icon"});if(V.isValidElement(r.legendIcon)){var l=wpe({},r);return delete l.legendIcon,V.cloneElement(r.legendIcon,l)}return V.createElement(M0,{fill:c,cx:o,cy:o,size:Hr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,c=i.formatter,l=i.inactiveColor,f={x:0,y:0,width:Hr,height:Hr},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,g){var y=v.formatter||c,x=Oe(nh(nh({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",v.inactive));if(v.type==="none")return null;var b=We(v.value)?null:v.value;ki(!We(v.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 _=v.inactive?l:v.color;return V.createElement("li",P2({className:x,style:d,key:"legend-item-".concat(g)},Ka(r.props,v,g)),V.createElement(v2,{width:a,height:a,viewBox:f,style:p},r.renderIcon(v)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},y?y(b,v,g):b))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(N.PureComponent);nh(hC,"displayName","Legend");nh(hC,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var kpe=v0;function Npe(){this.__data__=new kpe,this.size=0}var Mpe=Npe;function Lpe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Rpe=Lpe;function $pe(e){return this.__data__.get(e)}var Ipe=$pe;function Dpe(e){return this.__data__.has(e)}var Fpe=Dpe,Bpe=v0,Upe=tC,zpe=nC,Vpe=200;function Wpe(e,t){var n=this.__data__;if(n instanceof Bpe){var r=n.__data__;if(!Upe||r.length<Vpe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zpe(r)}return n.set(e,t),this.size=n.size,this}var Hpe=Wpe,Gpe=v0,Kpe=Mpe,qpe=Rpe,Ype=Ipe,Zpe=Fpe,Xpe=Hpe;function Du(e){var t=this.__data__=new Gpe(e);this.size=t.size}Du.prototype.clear=Kpe;Du.prototype.delete=qpe;Du.prototype.get=Ype;Du.prototype.has=Zpe;Du.prototype.set=Xpe;var Q5=Du,Qpe="__lodash_hash_undefined__";function Jpe(e){return this.__data__.set(e,Qpe),this}var eme=Jpe;function tme(e){return this.__data__.has(e)}var nme=tme,rme=nC,ime=eme,ome=nme;function wg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new rme;++t<n;)this.add(e[t])}wg.prototype.add=wg.prototype.push=ime;wg.prototype.has=ome;var J5=wg;function ame(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 e8=ame;function sme(e,t){return e.has(t)}var t8=sme,lme=J5,cme=e8,ume=t8,fme=1,dme=2;function hme(e,t,n,r,i,o){var a=n&fme,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),f=o.get(t);if(l&&f)return l==t&&f==e;var d=-1,p=!0,v=n&dme?new lme:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var g=e[d],y=t[d];if(r)var x=a?r(y,g,d,t,e,o):r(g,y,d,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(v){if(!cme(t,function(b,_){if(!ume(v,_)&&(g===b||i(g,b,n,r,o)))return v.push(_)})){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 n8=hme,pme=mo,mme=pme.Uint8Array,vme=mme;function gme(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var yme=gme;function bme(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var pC=bme,Sk=rp,Pk=vme,_me=eC,xme=n8,wme=yme,Ome=pC,Sme=1,Pme=2,Cme="[object Boolean]",Eme="[object Date]",Tme="[object Error]",jme="[object Map]",Ame="[object Number]",kme="[object RegExp]",Nme="[object Set]",Mme="[object String]",Lme="[object Symbol]",Rme="[object ArrayBuffer]",$me="[object DataView]",Ck=Sk?Sk.prototype:void 0,F1=Ck?Ck.valueOf:void 0;function Ime(e,t,n,r,i,o,a){switch(n){case $me:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Rme:return!(e.byteLength!=t.byteLength||!o(new Pk(e),new Pk(t)));case Cme:case Eme:case Ame:return _me(+e,+t);case Tme:return e.name==t.name&&e.message==t.message;case kme:case Mme:return e==t+"";case jme:var s=wme;case Nme:var c=r&Sme;if(s||(s=Ome),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=Pme,a.set(e,t);var f=xme(s(e),s(t),r,i,o,a);return a.delete(e),f;case Lme:if(F1)return F1.call(e)==F1.call(t)}return!1}var Dme=Ime;function Fme(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var r8=Fme,Bme=r8,Ume=yr;function zme(e,t,n){var r=t(e);return Ume(e)?r:Bme(r,n(e))}var Vme=zme;function Wme(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 Hme=Wme;function Gme(){return[]}var Kme=Gme,qme=Hme,Yme=Kme,Zme=Object.prototype,Xme=Zme.propertyIsEnumerable,Ek=Object.getOwnPropertySymbols,Qme=Ek?function(e){return e==null?[]:(e=Object(e),qme(Ek(e),function(t){return Xme.call(e,t)}))}:Yme,Jme=Qme;function eve(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var tve=eve,nve=ta,rve=na,ive="[object Arguments]";function ove(e){return rve(e)&&nve(e)==ive}var ave=ove,Tk=ave,sve=na,i8=Object.prototype,lve=i8.hasOwnProperty,cve=i8.propertyIsEnumerable,uve=Tk(function(){return arguments}())?Tk:function(e){return sve(e)&&lve.call(e,"callee")&&!cve.call(e,"callee")},mC=uve,Og={exports:{}};function fve(){return!1}var dve=fve;Og.exports;(function(e,t){var n=mo,r=dve,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l})(Og,Og.exports);var o8=Og.exports,hve=9007199254740991,pve=/^(?:0|[1-9]\d*)$/;function mve(e,t){var n=typeof e;return t=t??hve,!!t&&(n=="number"||n!="symbol"&&pve.test(e))&&e>-1&&e%1==0&&e<t}var vC=mve,vve=9007199254740991;function gve(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vve}var gC=gve,yve=ta,bve=gC,_ve=na,xve="[object Arguments]",wve="[object Array]",Ove="[object Boolean]",Sve="[object Date]",Pve="[object Error]",Cve="[object Function]",Eve="[object Map]",Tve="[object Number]",jve="[object Object]",Ave="[object RegExp]",kve="[object Set]",Nve="[object String]",Mve="[object WeakMap]",Lve="[object ArrayBuffer]",Rve="[object DataView]",$ve="[object Float32Array]",Ive="[object Float64Array]",Dve="[object Int8Array]",Fve="[object Int16Array]",Bve="[object Int32Array]",Uve="[object Uint8Array]",zve="[object Uint8ClampedArray]",Vve="[object Uint16Array]",Wve="[object Uint32Array]",Et={};Et[$ve]=Et[Ive]=Et[Dve]=Et[Fve]=Et[Bve]=Et[Uve]=Et[zve]=Et[Vve]=Et[Wve]=!0;Et[xve]=Et[wve]=Et[Lve]=Et[Ove]=Et[Rve]=Et[Sve]=Et[Pve]=Et[Cve]=Et[Eve]=Et[Tve]=Et[jve]=Et[Ave]=Et[kve]=Et[Nve]=Et[Mve]=!1;function Hve(e){return _ve(e)&&bve(e.length)&&!!Et[yve(e)]}var Gve=Hve;function Kve(e){return function(t){return e(t)}}var a8=Kve,Sg={exports:{}};Sg.exports;(function(e,t){var n=h5,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 c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Sg,Sg.exports);var qve=Sg.exports,Yve=Gve,Zve=a8,jk=qve,Ak=jk&&jk.isTypedArray,Xve=Ak?Zve(Ak):Yve,s8=Xve,Qve=tve,Jve=mC,ege=yr,tge=o8,nge=vC,rge=s8,ige=Object.prototype,oge=ige.hasOwnProperty;function age(e,t){var n=ege(e),r=!n&&Jve(e),i=!n&&!r&&tge(e),o=!n&&!r&&!i&&rge(e),a=n||r||i||o,s=a?Qve(e.length,String):[],c=s.length;for(var l in e)(t||oge.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||nge(l,c)))&&s.push(l);return s}var sge=age,lge=Object.prototype;function cge(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lge;return e===n}var uge=cge;function fge(e,t){return function(n){return e(t(n))}}var l8=fge,dge=l8,hge=dge(Object.keys,Object),pge=hge,mge=uge,vge=pge,gge=Object.prototype,yge=gge.hasOwnProperty;function bge(e){if(!mge(e))return vge(e);var t=[];for(var n in Object(e))yge.call(e,n)&&n!="constructor"&&t.push(n);return t}var _ge=bge,xge=JP,wge=gC;function Oge(e){return e!=null&&wge(e.length)&&!xge(e)}var op=Oge,Sge=sge,Pge=_ge,Cge=op;function Ege(e){return Cge(e)?Sge(e):Pge(e)}var L0=Ege,Tge=Vme,jge=Jme,Age=L0;function kge(e){return Tge(e,Age,jge)}var Nge=kge,kk=Nge,Mge=1,Lge=Object.prototype,Rge=Lge.hasOwnProperty;function $ge(e,t,n,r,i,o){var a=n&Mge,s=kk(e),c=s.length,l=kk(t),f=l.length;if(c!=f&&!a)return!1;for(var d=c;d--;){var p=s[d];if(!(a?p in t:Rge.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 x=a;++d<c;){p=s[d];var b=e[p],_=t[p];if(r)var w=a?r(_,b,p,t,e,o):r(b,_,p,e,t,o);if(!(w===void 0?b===_||i(b,_,n,r,o):w)){y=!1;break}x||(x=p=="constructor")}if(y&&!x){var S=e.constructor,C=t.constructor;S!=C&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(y=!1)}return o.delete(e),o.delete(t),y}var Ige=$ge,Dge=yl,Fge=mo,Bge=Dge(Fge,"DataView"),Uge=Bge,zge=yl,Vge=mo,Wge=zge(Vge,"Promise"),Hge=Wge,Gge=yl,Kge=mo,qge=Gge(Kge,"Set"),c8=qge,Yge=yl,Zge=mo,Xge=Yge(Zge,"WeakMap"),Qge=Xge,E2=Uge,T2=tC,j2=Hge,A2=c8,k2=Qge,u8=ta,Fu=m5,Nk="[object Map]",Jge="[object Object]",Mk="[object Promise]",Lk="[object Set]",Rk="[object WeakMap]",$k="[object DataView]",eye=Fu(E2),tye=Fu(T2),nye=Fu(j2),rye=Fu(A2),iye=Fu(k2),Ts=u8;(E2&&Ts(new E2(new ArrayBuffer(1)))!=$k||T2&&Ts(new T2)!=Nk||j2&&Ts(j2.resolve())!=Mk||A2&&Ts(new A2)!=Lk||k2&&Ts(new k2)!=Rk)&&(Ts=function(e){var t=u8(e),n=t==Jge?e.constructor:void 0,r=n?Fu(n):"";if(r)switch(r){case eye:return $k;case tye:return Nk;case nye:return Mk;case rye:return Lk;case iye:return Rk}return t});var oye=Ts,B1=Q5,aye=n8,sye=Dme,lye=Ige,Ik=oye,Dk=yr,Fk=o8,cye=s8,uye=1,Bk="[object Arguments]",Uk="[object Array]",dm="[object Object]",fye=Object.prototype,zk=fye.hasOwnProperty;function dye(e,t,n,r,i,o){var a=Dk(e),s=Dk(t),c=a?Uk:Ik(e),l=s?Uk:Ik(t);c=c==Bk?dm:c,l=l==Bk?dm:l;var f=c==dm,d=l==dm,p=c==l;if(p&&Fk(e)){if(!Fk(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new B1),a||cye(e)?aye(e,t,n,r,i,o):sye(e,t,c,n,r,i,o);if(!(n&uye)){var v=f&&zk.call(e,"__wrapped__"),g=d&&zk.call(t,"__wrapped__");if(v||g){var y=v?e.value():e,x=g?t.value():t;return o||(o=new B1),i(y,x,n,r,o)}}return p?(o||(o=new B1),lye(e,t,n,r,i,o)):!1}var hye=dye,pye=hye,Vk=na;function f8(e,t,n,r,i){return e===t?!0:e==null||t==null||!Vk(e)&&!Vk(t)?e!==e&&t!==t:pye(e,t,n,r,f8,i)}var yC=f8,mye=Q5,vye=yC,gye=1,yye=2;function bye(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 c=s[0],l=e[c],f=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new mye;if(r)var p=r(l,f,c,e,t,d);if(!(p===void 0?vye(f,l,gye|yye,r,d):p))return!1}}return!0}var _ye=bye,xye=is;function wye(e){return e===e&&!xye(e)}var d8=wye,Oye=d8,Sye=L0;function Pye(e){for(var t=Sye(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Oye(i)]}return t}var Cye=Pye;function Eye(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var h8=Eye,Tye=_ye,jye=Cye,Aye=h8;function kye(e){var t=jye(e);return t.length==1&&t[0][2]?Aye(t[0][0],t[0][1]):function(n){return n===e||Tye(n,e,t)}}var Nye=kye;function Mye(e,t){return e!=null&&t in Object(e)}var Lye=Mye,Rye=_5,$ye=mC,Iye=yr,Dye=vC,Fye=gC,Bye=y0;function Uye(e,t,n){t=Rye(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Bye(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&&Fye(i)&&Dye(a,i)&&(Iye(e)||$ye(e)))}var zye=Uye,Vye=Lye,Wye=zye;function Hye(e,t){return e!=null&&Wye(e,t,Vye)}var Gye=Hye,Kye=yC,qye=x5,Yye=Gye,Zye=QP,Xye=d8,Qye=h8,Jye=y0,e0e=1,t0e=2;function n0e(e,t){return Zye(e)&&Xye(t)?Qye(Jye(e),t):function(n){var r=qye(n,e);return r===void 0&&r===t?Yye(n,e):Kye(t,r,e0e|t0e)}}var r0e=n0e;function i0e(e){return e}var Bu=i0e;function o0e(e){return function(t){return t==null?void 0:t[e]}}var a0e=o0e,s0e=oC;function l0e(e){return function(t){return s0e(t,e)}}var c0e=l0e,u0e=a0e,f0e=c0e,d0e=QP,h0e=y0;function p0e(e){return d0e(e)?u0e(h0e(e)):f0e(e)}var m0e=p0e,v0e=Nye,g0e=r0e,y0e=Bu,b0e=yr,_0e=m0e;function x0e(e){return typeof e=="function"?e:e==null?y0e:typeof e=="object"?b0e(e)?g0e(e[0],e[1]):v0e(e):_0e(e)}var vo=x0e;function w0e(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 p8=w0e;function O0e(e){return e!==e}var S0e=O0e;function P0e(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var C0e=P0e,E0e=p8,T0e=S0e,j0e=C0e;function A0e(e,t,n){return t===t?j0e(e,t,n):E0e(e,T0e,n)}var k0e=A0e,N0e=k0e;function M0e(e,t){var n=e==null?0:e.length;return!!n&&N0e(e,t,0)>-1}var L0e=M0e;function R0e(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 $0e=R0e;function I0e(){}var D0e=I0e,U1=c8,F0e=D0e,B0e=pC,U0e=1/0,z0e=U1&&1/B0e(new U1([,-0]))[1]==U0e?function(e){return new U1(e)}:F0e,V0e=z0e,W0e=J5,H0e=L0e,G0e=$0e,K0e=t8,q0e=V0e,Y0e=pC,Z0e=200;function X0e(e,t,n){var r=-1,i=H0e,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=G0e;else if(o>=Z0e){var l=t?null:q0e(e);if(l)return Y0e(l);a=!1,i=K0e,c=new W0e}else c=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=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),s.push(f)}else i(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}var Q0e=X0e,J0e=vo,ebe=Q0e;function tbe(e,t){return e&&e.length?ebe(e,J0e(t)):[]}var nbe=tbe;const Wk=st(nbe);function m8(e,t,n){return t===!0?Wk(e,n):We(t)?Wk(e,t):e}function Zc(e){"@babel/helpers - typeof";return Zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zc(e)}var rbe=["ref"];function Hk(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 xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hk(Object(n),!0).forEach(function(r){R0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ibe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gk(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,g8(r.key),r)}}function obe(e,t,n){return t&&Gk(e.prototype,t),n&&Gk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function abe(e,t,n){return t=Pg(t),sbe(e,v8()?Reflect.construct(t,n||[],Pg(e).constructor):t.apply(e,n))}function sbe(e,t){if(t&&(Zc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lbe(e)}function lbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v8=function(){return!!e})()}function Pg(e){return Pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pg(e)}function cbe(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&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N2(e,t)}function R0(e,t,n){return t=g8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g8(e){var t=ube(e,"string");return Zc(t)=="symbol"?t:t+""}function ube(e,t){if(Zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fbe(e,t){if(e==null)return{};var n=dbe(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 dbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hbe(e){return e.value}function pbe(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var n=fbe(t,rbe);return V.createElement(hC,n)}var Kk=1,Ec=function(e){function t(){var n;ibe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=abe(this,t,[].concat(i)),R0(n,"lastBoundingBox",{width:-1,height:-1}),n}return cbe(t,e),obe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Kk||Math.abs(i.height-this.lastBoundingBox.height)>Kk)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?xo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,c=i.margin,l=i.chartWidth,f=i.chartHeight,d,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();d={left:((l||0)-v.width)/2}}else d=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();p={top:((f||0)-g.height)/2}}else p=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return xo(xo({},d),p)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,c=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,d=xo(xo({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return V.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},pbe(o,xo(xo({},this.props),{},{payload:m8(f,l,hbe)})))}}],[{key:"getWithHeight",value:function(r,i){var o=xo(xo({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&Ee(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(N.PureComponent);R0(Ec,"displayName","Legend");R0(Ec,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var qk=rp,mbe=mC,vbe=yr,Yk=qk?qk.isConcatSpreadable:void 0;function gbe(e){return vbe(e)||mbe(e)||!!(Yk&&e&&e[Yk])}var ybe=gbe,bbe=r8,_be=ybe;function y8(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=_be),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?y8(s,t-1,n,r,i):bbe(i,s):r||(i[i.length]=s)}return i}var b8=y8;function xbe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(n(o[c],c,o)===!1)break}return t}}var wbe=xbe,Obe=wbe,Sbe=Obe(),Pbe=Sbe,Cbe=Pbe,Ebe=L0;function Tbe(e,t){return e&&Cbe(e,t,Ebe)}var _8=Tbe,jbe=op;function Abe(e,t){return function(n,r){if(n==null)return n;if(!jbe(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 kbe=Abe,Nbe=_8,Mbe=kbe,Lbe=Mbe(Nbe),bC=Lbe,Rbe=bC,$be=op;function Ibe(e,t){var n=-1,r=$be(e)?Array(e.length):[];return Rbe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var x8=Ibe;function Dbe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Fbe=Dbe,Zk=Nu;function Bbe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Zk(e),a=t!==void 0,s=t===null,c=t===t,l=Zk(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}var Ube=Bbe,zbe=Ube;function Vbe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var c=zbe(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*(l=="desc"?-1:1)}}return e.index-t.index}var Wbe=Vbe,z1=iC,Hbe=oC,Gbe=vo,Kbe=x8,qbe=Fbe,Ybe=a8,Zbe=Wbe,Xbe=Bu,Qbe=yr;function Jbe(e,t,n){t.length?t=z1(t,function(o){return Qbe(o)?function(a){return Hbe(a,o.length===1?o[0]:o)}:o}):t=[Xbe];var r=-1;t=z1(t,Ybe(Gbe));var i=Kbe(e,function(o,a,s){var c=z1(t,function(l){return l(o)});return{criteria:c,index:++r,value:o}});return qbe(i,function(o,a){return Zbe(o,a,n)})}var e1e=Jbe;function t1e(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 n1e=t1e,r1e=n1e,Xk=Math.max;function i1e(e,t,n){return t=Xk(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Xk(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),r1e(e,this,s)}}var o1e=i1e;function a1e(e){return function(){return e}}var s1e=a1e,l1e=yl,c1e=function(){try{var e=l1e(Object,"defineProperty");return e({},"",{}),e}catch{}}(),w8=c1e,u1e=s1e,Qk=w8,f1e=Bu,d1e=Qk?function(e,t){return Qk(e,"toString",{configurable:!0,enumerable:!1,value:u1e(t),writable:!0})}:f1e,h1e=d1e,p1e=800,m1e=16,v1e=Date.now;function g1e(e){var t=0,n=0;return function(){var r=v1e(),i=m1e-(r-n);if(n=r,i>0){if(++t>=p1e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var y1e=g1e,b1e=h1e,_1e=y1e,x1e=_1e(b1e),w1e=x1e,O1e=Bu,S1e=o1e,P1e=w1e;function C1e(e,t){return P1e(S1e(e,t,O1e),e+"")}var E1e=C1e,T1e=eC,j1e=op,A1e=vC,k1e=is;function N1e(e,t,n){if(!k1e(n))return!1;var r=typeof t;return(r=="number"?j1e(n)&&A1e(t,n.length):r=="string"&&t in n)?T1e(n[t],e):!1}var $0=N1e,M1e=b8,L1e=e1e,R1e=E1e,Jk=$0,$1e=R1e(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Jk(e,t[0],t[1])?t=[]:n>2&&Jk(t[0],t[1],t[2])&&(t=[t[0]]),L1e(e,M1e(t,1),[])}),I1e=$1e;const _C=st(I1e);function rh(e){"@babel/helpers - typeof";return rh=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},rh(e)}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 D1e(e,t){return z1e(e)||U1e(e,t)||B1e(e,t)||F1e()}function F1e(){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 B1e(e,t){if(e){if(typeof e=="string")return eN(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 eN(e,t)}}function eN(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 U1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function z1e(e){if(Array.isArray(e))return e}function tN(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 V1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(n),!0).forEach(function(r){V1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V1e(e,t,n){return t=W1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W1e(e){var t=H1e(e,"string");return rh(t)=="symbol"?t:t+""}function H1e(e,t){if(rh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G1e(e){return Array.isArray(e)&&un(e[0])&&un(e[1])?e.join(" ~ "):e}var K1e=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,c=t.labelStyle,l=c===void 0?{}:c,f=t.payload,d=t.formatter,p=t.itemSorter,v=t.wrapperClassName,g=t.labelClassName,y=t.label,x=t.labelFormatter,b=t.accessibilityLayer,_=b===void 0?!1:b,w=function(){if(f&&f.length){var F={padding:0,margin:0},q=(p?_C(f,p):f).map(function(H,Z){if(H.type==="none")return null;var Q=V1({display:"block",paddingTop:4,paddingBottom:4,color:H.color||"#000"},s),te=H.formatter||d||G1e,X=H.value,U=H.name,B=X,W=U;if(te&&B!=null&&W!=null){var ee=te(X,U,H,Z,f);if(Array.isArray(ee)){var G=D1e(ee,2);B=G[0],W=G[1]}else B=ee}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Z),style:Q},un(W)?V.createElement("span",{className:"recharts-tooltip-item-name"},W):null,un(W)?V.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,V.createElement("span",{className:"recharts-tooltip-item-value"},B),V.createElement("span",{className:"recharts-tooltip-item-unit"},H.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:F},q)}return null},S=V1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),C=V1({margin:0},l),P=!ze(y),T=P?y:"",j=Oe("recharts-default-tooltip",v),$=Oe("recharts-tooltip-label",g);P&&x&&f!==void 0&&f!==null&&(T=x(y,f));var M=_?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",M2({className:j,style:S},M),V.createElement("p",{className:$,style:C},V.isValidElement(T)?T:"".concat(T)),w())};function ih(e){"@babel/helpers - typeof";return ih=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},ih(e)}function hm(e,t,n){return t=q1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q1e(e){var t=Y1e(e,"string");return ih(t)=="symbol"?t:t+""}function Y1e(e,t){if(ih(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ih(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tf="recharts-tooltip-wrapper",Z1e={visibility:"hidden"};function X1e(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Oe(Tf,hm(hm(hm(hm({},"".concat(Tf,"-right"),Ee(n)&&t&&Ee(t.x)&&n>=t.x),"".concat(Tf,"-left"),Ee(n)&&t&&Ee(t.x)&&n<t.x),"".concat(Tf,"-bottom"),Ee(r)&&t&&Ee(t.y)&&r>=t.y),"".concat(Tf,"-top"),Ee(r)&&t&&Ee(t.y)&&r<t.y))}function nN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=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=c[r];return p<v?Math.max(d,c[r]):Math.max(f,c[r])}var g=d+s,y=c[r]+l;return g>y?Math.max(f,c[r]):Math.max(d,c[r])}function Q1e(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 J1e(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,f,d;return a.height>0&&a.width>0&&n?(f=nN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),d=nN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),l=Q1e({translateX:f,translateY:d,useTranslate3d:s})):l=Z1e,{cssProperties:l,cssClasses:X1e({translateX:f,translateY:d,coordinate:n})}}function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}function rN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rN(Object(n),!0).forEach(function(r){R2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t_e(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,S8(r.key),r)}}function n_e(e,t,n){return t&&t_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r_e(e,t,n){return t=Cg(t),i_e(e,O8()?Reflect.construct(t,n||[],Cg(e).constructor):t.apply(e,n))}function i_e(e,t){if(t&&(Xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o_e(e)}function o_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O8=function(){return!!e})()}function Cg(e){return Cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cg(e)}function a_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&&L2(e,t)}function L2(e,t){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L2(e,t)}function R2(e,t,n){return t=S8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S8(e){var t=s_e(e,"string");return Xc(t)=="symbol"?t:t+""}function s_e(e,t){if(Xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oN=1,l_e=function(e){function t(){var n;e_e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=r_e(this,t,[].concat(i)),R2(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),R2(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,l,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(l=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&l!==void 0?l:0}})}}),n}return a_e(t,e),n_e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>oN||Math.abs(r.height-this.state.lastBoundingBox.height)>oN)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,l=i.children,f=i.coordinate,d=i.hasPayload,p=i.isAnimationActive,v=i.offset,g=i.position,y=i.reverseDirection,x=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,w=J1e({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:v,position:g,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:b}),S=w.cssClasses,C=w.cssProperties,P=iN(iN({transition:p&&o?"transform ".concat(s,"ms ").concat(c):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},_);return V.createElement("div",{tabIndex:-1,className:S,style:P,ref:function(j){r.wrapperNode=j}},l)}}])}(N.PureComponent),c_e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ii={isSsr:c_e(),get:function(t){return ii[t]},set:function(t,n){if(typeof t=="string")ii[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ii[i]=t[i]})}}};function Qc(e){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(e)}function 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 sN(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){xC(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 u_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f_e(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,C8(r.key),r)}}function d_e(e,t,n){return t&&f_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h_e(e,t,n){return t=Eg(t),p_e(e,P8()?Reflect.construct(t,n||[],Eg(e).constructor):t.apply(e,n))}function p_e(e,t){if(t&&(Qc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m_e(e)}function m_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P8=function(){return!!e})()}function Eg(e){return Eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eg(e)}function v_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&&$2(e,t)}function $2(e,t){return $2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$2(e,t)}function xC(e,t,n){return t=C8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C8(e){var t=g_e(e,"string");return Qc(t)=="symbol"?t:t+""}function g_e(e,t){if(Qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y_e(e){return e.dataKey}function b_e(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(K1e,t)}var qr=function(e){function t(){return u_e(this,t),h_e(this,t,arguments)}return v_e(t,e),d_e(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,l=i.content,f=i.coordinate,d=i.filterNull,p=i.isAnimationActive,v=i.offset,g=i.payload,y=i.payloadUniqBy,x=i.position,b=i.reverseDirection,_=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,C=g??[];d&&C.length&&(C=m8(g.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),y,y_e));var P=C.length>0;return V.createElement(l_e,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:p,active:o,coordinate:f,hasPayload:P,offset:v,position:x,reverseDirection:b,useTranslate3d:_,viewBox:w,wrapperStyle:S},b_e(l,sN(sN({},this.props),{},{payload:C})))}}])}(N.PureComponent);xC(qr,"displayName","Tooltip");xC(qr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ii.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 __e=mo,x_e=function(){return __e.Date.now()},w_e=x_e,O_e=/\s/;function S_e(e){for(var t=e.length;t--&&O_e.test(e.charAt(t)););return t}var P_e=S_e,C_e=P_e,E_e=/^\s+/;function T_e(e){return e&&e.slice(0,C_e(e)+1).replace(E_e,"")}var j_e=T_e,A_e=j_e,lN=is,k_e=Nu,cN=NaN,N_e=/^[-+]0x[0-9a-f]+$/i,M_e=/^0b[01]+$/i,L_e=/^0o[0-7]+$/i,R_e=parseInt;function $_e(e){if(typeof e=="number")return e;if(k_e(e))return cN;if(lN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=A_e(e);var n=M_e.test(e);return n||L_e.test(e)?R_e(e.slice(2),n?2:8):N_e.test(e)?cN:+e}var E8=$_e,I_e=is,W1=w_e,uN=E8,D_e="Expected a function",F_e=Math.max,B_e=Math.min;function U_e(e,t,n){var r,i,o,a,s,c,l=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(D_e);t=uN(t)||0,I_e(n)&&(f=!!n.leading,d="maxWait"in n,o=d?F_e(uN(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function v(P){var T=r,j=i;return r=i=void 0,l=P,a=e.apply(j,T),a}function g(P){return l=P,s=setTimeout(b,t),f?v(P):a}function y(P){var T=P-c,j=P-l,$=t-T;return d?B_e($,o-j):$}function x(P){var T=P-c,j=P-l;return c===void 0||T>=t||T<0||d&&j>=o}function b(){var P=W1();if(x(P))return _(P);s=setTimeout(b,y(P))}function _(P){return s=void 0,p&&r?v(P):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function S(){return s===void 0?a:_(W1())}function C(){var P=W1(),T=x(P);if(r=arguments,i=this,c=P,T){if(s===void 0)return g(c);if(d)return clearTimeout(s),s=setTimeout(b,t),v(c)}return s===void 0&&(s=setTimeout(b,t)),a}return C.cancel=w,C.flush=S,C}var z_e=U_e,V_e=z_e,W_e=is,H_e="Expected a function";function G_e(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(H_e);return W_e(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),V_e(e,t,{leading:r,maxWait:t,trailing:i})}var K_e=G_e;const T8=st(K_e);function oh(e){"@babel/helpers - typeof";return oh=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},oh(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 pm(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){q_e(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 q_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=Z_e(e,"string");return oh(t)=="symbol"?t:t+""}function Z_e(e,t){if(oh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X_e(e,t){return txe(e)||exe(e,t)||J_e(e,t)||Q_e()}function Q_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J_e(e,t){if(e){if(typeof e=="string")return dN(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 dN(e,t)}}function dN(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 exe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function txe(e){if(Array.isArray(e))return e}var wC=N.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,c=s===void 0?"100%":s,l=e.minWidth,f=l===void 0?0:l,d=e.minHeight,p=e.maxHeight,v=e.children,g=e.debounce,y=g===void 0?0:g,x=e.id,b=e.className,_=e.onResize,w=e.style,S=w===void 0?{}:w,C=N.useRef(null),P=N.useRef();P.current=_,N.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var T=N.useState({containerWidth:i.width,containerHeight:i.height}),j=X_e(T,2),$=j[0],M=j[1],I=N.useCallback(function(q,H){M(function(Z){var Q=Math.round(q),te=Math.round(H);return Z.containerWidth===Q&&Z.containerHeight===te?Z:{containerWidth:Q,containerHeight:te}})},[]);N.useEffect(function(){var q=function(U){var B,W=U[0].contentRect,ee=W.width,G=W.height;I(ee,G),(B=P.current)===null||B===void 0||B.call(P,ee,G)};y>0&&(q=T8(q,y,{trailing:!0,leading:!1}));var H=new ResizeObserver(q),Z=C.current.getBoundingClientRect(),Q=Z.width,te=Z.height;return I(Q,te),H.observe(C.current),function(){H.disconnect()}},[I,y]);var F=N.useMemo(function(){var q=$.containerWidth,H=$.containerHeight;if(q<0||H<0)return null;ki(Is(a)||Is(c),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,a,c),ki(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Z=Is(a)?q:a,Q=Is(c)?H:c;n&&n>0&&(Z?Q=Z/n:Q&&(Z=Q*n),p&&Q>p&&(Q=p)),ki(Z>0||Q>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.`,Z,Q,a,c,f,d,n);var te=!Array.isArray(v)&&No(v.type).endsWith("Chart");return V.Children.map(v,function(X){return V.isValidElement(X)?N.cloneElement(X,pm({width:Z,height:Q},te?{style:pm({height:"100%",width:"100%",maxHeight:Q,maxWidth:Z},X.props.style)}:{})):X})},[n,v,c,p,d,f,$,a]);return V.createElement("div",{id:x?"".concat(x):void 0,className:Oe("recharts-responsive-container",b),style:pm(pm({},S),{},{width:a,height:c,minWidth:f,minHeight:d,maxHeight:p}),ref:C},F)}),Ia=function(t){return null};Ia.displayName="Cell";function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(n),!0).forEach(function(r){nxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nxe(e,t,n){return t=rxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rxe(e){var t=ixe(e,"string");return ah(t)=="symbol"?t:t+""}function ixe(e,t){if(ah(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ah(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bl={widthCache:{},cacheCount:0},oxe=2e3,axe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pN="recharts_measurement_span";function sxe(e){var t=I2({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var ud=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ii.isSsr)return{width:0,height:0};var r=sxe(n),i=JSON.stringify({text:t,copyStyle:r});if(Bl.widthCache[i])return Bl.widthCache[i];try{var o=document.getElementById(pN);o||(o=document.createElement("span"),o.setAttribute("id",pN),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=I2(I2({},axe),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Bl.widthCache[i]=c,++Bl.cacheCount>oxe&&(Bl.cacheCount=0,Bl.widthCache={}),c}catch{return{width:0,height:0}}},lxe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function sh(e){"@babel/helpers - typeof";return sh=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},sh(e)}function Tg(e,t){return dxe(e)||fxe(e,t)||uxe(e,t)||cxe()}function cxe(){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 uxe(e,t){if(e){if(typeof e=="string")return mN(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 mN(e,t)}}function mN(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 fxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function dxe(e){if(Array.isArray(e))return e}function hxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vN(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,mxe(r.key),r)}}function pxe(e,t,n){return t&&vN(e.prototype,t),n&&vN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mxe(e){var t=vxe(e,"string");return sh(t)=="symbol"?t:t+""}function vxe(e,t){if(sh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gxe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,yxe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,j8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},bxe=Object.keys(j8),hc="NaN";function _xe(e,t){return e*j8[t]}var mm=function(){function e(t,n){hxe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!gxe.test(n)&&(this.num=NaN,this.unit=""),bxe.includes(n)&&(this.num=_xe(t,n),this.unit="px")}return pxe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=yxe.exec(n))!==null&&r!==void 0?r:[],o=Tg(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function A8(e){if(e.includes(hc))return hc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=gN.exec(t))!==null&&n!==void 0?n:[],i=Tg(r,4),o=i[1],a=i[2],s=i[3],c=mm.parse(o??""),l=mm.parse(s??""),f=a==="*"?c.multiply(l):c.divide(l);if(f.isNaN())return hc;t=t.replace(gN,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=yN.exec(t))!==null&&d!==void 0?d:[],v=Tg(p,4),g=v[1],y=v[2],x=v[3],b=mm.parse(g??""),_=mm.parse(x??""),w=y==="+"?b.add(_):b.subtract(_);if(w.isNaN())return hc;t=t.replace(yN,w.toString())}return t}var bN=/\(([^()]*)\)/;function xxe(e){for(var t=e;t.includes("(");){var n=bN.exec(t),r=Tg(n,2),i=r[1];t=t.replace(bN,A8(i))}return t}function wxe(e){var t=e.replace(/\s+/g,"");return t=xxe(t),t=A8(t),t}function Oxe(e){try{return wxe(e)}catch{return hc}}function H1(e){var t=Oxe(e.slice(5,-1));return t===hc?"":t}var Sxe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Pxe=["dx","dy","angle","className","breakAll"];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 _N(e,t){if(e==null)return{};var n=Cxe(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 Cxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xN(e,t){return Axe(e)||jxe(e,t)||Txe(e,t)||Exe()}function Exe(){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 Txe(e,t){if(e){if(typeof e=="string")return wN(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 wN(e,t)}}function wN(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 jxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Axe(e){if(Array.isArray(e))return e}var k8=/[ \f\n\r\t\v\u2028\u2029]+/,N8=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];ze(n)||(r?o=n.toString().split(""):o=n.toString().split(k8));var a=o.map(function(c){return{word:c,width:ud(c,i).width}}),s=r?0:ud(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},kxe=function(t,n,r,i,o){var a=t.maxLines,s=t.children,c=t.style,l=t.breakAll,f=Ee(a),d=s,p=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Z.reduce(function(Q,te){var X=te.word,U=te.width,B=Q[Q.length-1];if(B&&(i==null||o||B.width+U+r<Number(i)))B.words.push(X),B.width+=U+r;else{var W={words:[X],width:U};Q.push(W)}return Q},[])},v=p(n),g=function(Z){return Z.reduce(function(Q,te){return Q.width>te.width?Q:te})};if(!f)return v;for(var y="…",x=function(Z){var Q=d.slice(0,Z),te=N8({breakAll:l,style:c,children:Q+y}).wordsWithComputedWidth,X=p(te),U=X.length>a||g(X).width>Number(i);return[U,X]},b=0,_=d.length-1,w=0,S;b<=_&&w<=d.length-1;){var C=Math.floor((b+_)/2),P=C-1,T=x(P),j=xN(T,2),$=j[0],M=j[1],I=x(C),F=xN(I,1),q=F[0];if(!$&&!q&&(b=C+1),$&&q&&(_=C-1),!$&&q){S=M;break}w++}return S||v},ON=function(t){var n=ze(t)?[]:t.toString().split(k8);return[{words:n}]},Nxe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!ii.isSsr){var c,l,f=N8({breakAll:a,children:i,style:o});if(f){var d=f.wordsWithComputedWidth,p=f.spaceWidth;c=d,l=p}else return ON(i);return kxe({breakAll:a,children:i,maxLines:s,style:o},c,l,n,r)}return ON(i)},SN="#808080",ll=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,c=t.capHeight,l=c===void 0?"0.71em":c,f=t.scaleToFit,d=f===void 0?!1:f,p=t.textAnchor,v=p===void 0?"start":p,g=t.verticalAnchor,y=g===void 0?"end":g,x=t.fill,b=x===void 0?SN:x,_=_N(t,Sxe),w=N.useMemo(function(){return Nxe({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:d,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,d,_.style,_.width]),S=_.dx,C=_.dy,P=_.angle,T=_.className,j=_.breakAll,$=_N(_,Pxe);if(!un(r)||!un(o))return null;var M=r+(Ee(S)?S:0),I=o+(Ee(C)?C:0),F;switch(y){case"start":F=H1("calc(".concat(l,")"));break;case"middle":F=H1("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:F=H1("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(d){var H=w[0].width,Z=_.width;q.push("scale(".concat((Ee(Z)?Z/H:1)/H,")"))}return P&&q.push("rotate(".concat(P,", ").concat(M,", ").concat(I,")")),q.length&&($.transform=q.join(" ")),V.createElement("text",D2({},De($,!0),{x:M,y:I,className:Oe("recharts-text",T),textAnchor:v,fill:b.includes("url")?SN:b}),w.map(function(Q,te){var X=Q.words.join(j?"":" ");return V.createElement("tspan",{x:M,dy:te===0?F:s,key:"".concat(X,"-").concat(te)},X)}))};function Da(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Mxe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function OC(e){let t,n,r;e.length!==2?(t=Da,n=(s,c)=>Da(e(s),c),r=(s,c)=>e(s)-c):(t=e===Da||e===Mxe?e:Lxe,n=e,r=e);function i(s,c,l=0,f=s.length){if(l<f){if(t(c,c)!==0)return f;do{const d=l+f>>>1;n(s[d],c)<0?l=d+1:f=d}while(l<f)}return l}function o(s,c,l=0,f=s.length){if(l<f){if(t(c,c)!==0)return f;do{const d=l+f>>>1;n(s[d],c)<=0?l=d+1:f=d}while(l<f)}return l}function a(s,c,l=0,f=s.length){const d=i(s,c,l,f-1);return d>l&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:a,right:o}}function Lxe(){return 0}function M8(e){return e===null?NaN:+e}function*Rxe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const $xe=OC(Da),ap=$xe.right;OC(M8).center;class PN extends Map{constructor(t,n=Fxe){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(CN(this,t))}has(t){return super.has(CN(this,t))}set(t,n){return super.set(Ixe(this,t),n)}delete(t){return super.delete(Dxe(this,t))}}function CN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ixe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dxe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Fxe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Bxe(e=Da){if(e===Da)return L8;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 L8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Uxe=Math.sqrt(50),zxe=Math.sqrt(10),Vxe=Math.sqrt(2);function jg(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>=Uxe?10:o>=zxe?5:o>=Vxe?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=Math.pow(10,i)*a,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?jg(e,t,n*2):[s,c,l]}function F2(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?jg(t,e,n):jg(e,t,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let l=0;l<s;++l)c[l]=(o-l)/-a;else for(let l=0;l<s;++l)c[l]=(o-l)*a;else if(a<0)for(let l=0;l<s;++l)c[l]=(i+l)/-a;else for(let l=0;l<s;++l)c[l]=(i+l)*a;return c}function B2(e,t,n){return t=+t,e=+e,n=+n,jg(e,t,n)[2]}function U2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?B2(t,e,n):B2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function EN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function TN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function R8(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?L8:Bxe(i);r>n;){if(r-n>600){const c=r-n+1,l=t-n+1,f=Math.log(c),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(c-d)/c)*(l-c/2<0?-1:1),v=Math.max(n,Math.floor(t-l*d/c+p)),g=Math.min(r,Math.floor(t+(c-l)*d/c+p));R8(e,t,v,g,i)}const o=e[t];let a=n,s=r;for(jf(e,n,t),i(e[r],o)>0&&jf(e,n,r);a<s;){for(jf(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?jf(e,n,s):(++s,jf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function jf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Wxe(e,t,n){if(e=Float64Array.from(Rxe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return TN(e);if(t>=1)return EN(e);var r,i=(r-1)*t,o=Math.floor(i),a=EN(R8(e,o).subarray(0,o+1)),s=TN(e.subarray(o+1));return a+(s-a)*(i-o)}}function Hxe(e,t,n=M8){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 Gxe(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 hi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ra(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 z2=Symbol("implicit");function SC(){var e=new PN,t=[],n=[],r=z2;function i(o){let a=e.get(o);if(a===void 0){if(r!==z2)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 PN;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 SC(t,n).unknown(r)},hi.apply(i,arguments),i}function lh(){var e=SC().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,c=0,l=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-c+l*2),s&&(o=Math.floor(o)),g+=(y-g-o*(p-c))*f,a=o*(1-c),s&&(g=Math.round(g),a=Math.round(a));var x=Gxe(p).map(function(b){return g+o*b});return n(v?x.reverse():x)}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?(c=Math.min(1,l=+p),d()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),d()):c},e.paddingOuter=function(p){return arguments.length?(l=+p,d()):l},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return lh(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(f)},hi.apply(d(),arguments)}function $8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $8(t())},e}function fd(){return $8(lh.apply(null,arguments).paddingInner(1))}function PC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function I8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sp(){}var ch=.7,Ag=1/ch,Tc="\\s*([+-]?\\d+)\\s*",uh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kxe=/^#([0-9a-f]{3,8})$/,qxe=new RegExp(`^rgb\\(${Tc},${Tc},${Tc}\\)$`),Yxe=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),Zxe=new RegExp(`^rgba\\(${Tc},${Tc},${Tc},${uh}\\)$`),Xxe=new RegExp(`^rgba\\(${io},${io},${io},${uh}\\)$`),Qxe=new RegExp(`^hsl\\(${uh},${io},${io}\\)$`),Jxe=new RegExp(`^hsla\\(${uh},${io},${io},${uh}\\)$`),jN={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};PC(sp,fh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:AN,formatHex:AN,formatHex8:ewe,formatHsl:twe,formatRgb:kN,toString:kN});function AN(){return this.rgb().formatHex()}function ewe(){return this.rgb().formatHex8()}function twe(){return D8(this).formatHsl()}function kN(){return this.rgb().formatRgb()}function fh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Kxe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?NN(t):n===3?new lr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?vm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?vm(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=qxe.exec(e))?new lr(t[1],t[2],t[3],1):(t=Yxe.exec(e))?new lr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Zxe.exec(e))?vm(t[1],t[2],t[3],t[4]):(t=Xxe.exec(e))?vm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qxe.exec(e))?RN(t[1],t[2]/100,t[3]/100,1):(t=Jxe.exec(e))?RN(t[1],t[2]/100,t[3]/100,t[4]):jN.hasOwnProperty(e)?NN(jN[e]):e==="transparent"?new lr(NaN,NaN,NaN,0):null}function NN(e){return new lr(e>>16&255,e>>8&255,e&255,1)}function vm(e,t,n,r){return r<=0&&(e=t=n=NaN),new lr(e,t,n,r)}function nwe(e){return e instanceof sp||(e=fh(e)),e?(e=e.rgb(),new lr(e.r,e.g,e.b,e.opacity)):new lr}function V2(e,t,n,r){return arguments.length===1?nwe(e):new lr(e,t,n,r??1)}function lr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}PC(lr,V2,I8(sp,{brighter(e){return e=e==null?Ag:Math.pow(Ag,e),new lr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ch:Math.pow(ch,e),new lr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lr(Ks(this.r),Ks(this.g),Ks(this.b),kg(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:MN,formatHex:MN,formatHex8:rwe,formatRgb:LN,toString:LN}));function MN(){return`#${Ds(this.r)}${Ds(this.g)}${Ds(this.b)}`}function rwe(){return`#${Ds(this.r)}${Ds(this.g)}${Ds(this.b)}${Ds((isNaN(this.opacity)?1:this.opacity)*255)}`}function LN(){const e=kg(this.opacity);return`${e===1?"rgb(":"rgba("}${Ks(this.r)}, ${Ks(this.g)}, ${Ks(this.b)}${e===1?")":`, ${e})`}`}function kg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ks(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ds(e){return e=Ks(e),(e<16?"0":"")+e.toString(16)}function RN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ei(e,t,n,r)}function D8(e){if(e instanceof Ei)return new Ei(e.h,e.s,e.l,e.opacity);if(e instanceof sp||(e=fh(e)),!e)return new Ei;if(e instanceof Ei)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,c=(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/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new Ei(a,s,c,e.opacity)}function iwe(e,t,n,r){return arguments.length===1?D8(e):new Ei(e,t,n,r??1)}function Ei(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}PC(Ei,iwe,I8(sp,{brighter(e){return e=e==null?Ag:Math.pow(Ag,e),new Ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ch:Math.pow(ch,e),new Ei(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 lr(G1(e>=240?e-240:e+120,i,r),G1(e,i,r),G1(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ei($N(this.h),gm(this.s),gm(this.l),kg(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=kg(this.opacity);return`${e===1?"hsl(":"hsla("}${$N(this.h)}, ${gm(this.s)*100}%, ${gm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $N(e){return e=(e||0)%360,e<0?e+360:e}function gm(e){return Math.max(0,Math.min(1,e||0))}function G1(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 CC=e=>()=>e;function owe(e,t){return function(n){return e+n*t}}function awe(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 swe(e){return(e=+e)==1?F8:function(t,n){return n-t?awe(t,n,e):CC(isNaN(t)?n:t)}}function F8(e,t){var n=t-e;return n?owe(e,n):CC(isNaN(e)?t:e)}const IN=function e(t){var n=swe(t);function r(i,o){var a=n((i=V2(i)).r,(o=V2(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),l=F8(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=c(f),i.opacity=l(f),i+""}}return r.gamma=e,r}(1);function lwe(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 cwe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function uwe(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]=Uu(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 fwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ng(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function dwe(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]=Uu(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var W2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,K1=new RegExp(W2.source,"g");function hwe(e){return function(){return e}}function pwe(e){return function(t){return e(t)+""}}function mwe(e,t){var n=W2.lastIndex=K1.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=W2.exec(e))&&(i=K1.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,c.push({i:a,x:Ng(r,i)})),n=K1.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?pwe(c[0].x):hwe(t):(t=c.length,function(l){for(var f=0,d;f<t;++f)s[(d=c[f]).i]=d.x(l);return s.join("")})}function Uu(e,t){var n=typeof t,r;return t==null||n==="boolean"?CC(t):(n==="number"?Ng:n==="string"?(r=fh(t))?(t=r,IN):mwe:t instanceof fh?IN:t instanceof Date?fwe:cwe(t)?lwe:Array.isArray(t)?uwe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dwe:Ng)(e,t)}function EC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function vwe(e,t){t===void 0&&(t=e,e=Uu);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 gwe(e){return function(){return e}}function Mg(e){return+e}var DN=[0,1];function Yn(e){return e}function H2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gwe(isNaN(t)?NaN:.5)}function ywe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bwe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=H2(i,r),o=n(a,o)):(r=H2(r,i),o=n(o,a)),function(s){return o(r(s))}}function _we(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]=H2(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var c=ap(e,s,1,r)-1;return o[c](i[c](s))}}function lp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function I0(){var e=DN,t=DN,n=Uu,r,i,o,a=Yn,s,c,l;function f(){var p=Math.min(e.length,t.length);return a!==Yn&&(a=ywe(e[0],e[p-1])),s=p>2?_we:bwe,c=l=null,d}function d(p){return p==null||isNaN(p=+p)?o:(c||(c=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((l||(l=s(t,e.map(r),Ng)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Mg),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=EC,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Yn,f()):a!==Yn},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 TC(){return I0()(Yn,Yn)}function xwe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lg(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=Lg(Math.abs(e)),e?e[1]:NaN}function wwe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Owe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Swe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dh(e){if(!(t=Swe.exec(e)))throw new Error("invalid format: "+e);var t;return new jC({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]})}dh.prototype=jC.prototype;function jC(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+""}jC.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 Pwe(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 B8;function Cwe(e,t){var n=Lg(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(B8=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")+Lg(e,Math.max(0,t+o-1))[0]}function FN(e,t){var n=Lg(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 BN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:xwe,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)=>FN(e*100,t),r:FN,s:Cwe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function UN(e){return e}var zN=Array.prototype.map,VN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ewe(e){var t=e.grouping===void 0||e.thousands===void 0?UN:wwe(zN.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?UN:Owe(zN.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(d){d=dh(d);var p=d.fill,v=d.align,g=d.sign,y=d.symbol,x=d.zero,b=d.width,_=d.comma,w=d.precision,S=d.trim,C=d.type;C==="n"?(_=!0,C="g"):BN[C]||(w===void 0&&(w=12),S=!0,C="g"),(x||p==="0"&&v==="=")&&(x=!0,p="0",v="=");var P=y==="$"?n:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",T=y==="$"?r:/[%p]/.test(C)?a:"",j=BN[C],$=/[defgprs%]/.test(C);w=w===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(I){var F=P,q=T,H,Z,Q;if(C==="c")q=j(I)+q,I="";else{I=+I;var te=I<0||1/I<0;if(I=isNaN(I)?c:j(Math.abs(I),w),S&&(I=Pwe(I)),te&&+I==0&&g!=="+"&&(te=!1),F=(te?g==="("?g:s:g==="-"||g==="("?"":g)+F,q=(C==="s"?VN[8+B8/3]:"")+q+(te&&g==="("?")":""),$){for(H=-1,Z=I.length;++H<Z;)if(Q=I.charCodeAt(H),48>Q||Q>57){q=(Q===46?i+I.slice(H+1):I.slice(H))+q,I=I.slice(0,H);break}}}_&&!x&&(I=t(I,1/0));var X=F.length+I.length+q.length,U=X<b?new Array(b-X+1).join(p):"";switch(_&&x&&(I=t(U+I,U.length?b-q.length:1/0),U=""),v){case"<":I=F+I+q+U;break;case"=":I=F+U+I+q;break;case"^":I=U.slice(0,X=U.length>>1)+F+I+q+U.slice(X);break;default:I=U+F+I+q;break}return o(I)}return M.toString=function(){return d+""},M}function f(d,p){var v=l((d=dh(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Jc(p)/3)))*3,y=Math.pow(10,-g),x=VN[8+g/3];return function(b){return v(y*b)+x}}return{format:l,formatPrefix:f}}var ym,AC,U8;Twe({thousands:",",grouping:[3],currency:["$",""]});function Twe(e){return ym=Ewe(e),AC=ym.format,U8=ym.formatPrefix,ym}function jwe(e){return Math.max(0,-Jc(Math.abs(e)))}function Awe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jc(t)/3)))*3-Jc(Math.abs(e)))}function kwe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Jc(t)-Jc(e))+1}function z8(e,t,n,r){var i=U2(e,t,n),o;switch(r=dh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Awe(i,a))&&(r.precision=o),U8(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=kwe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=jwe(i))&&(r.precision=o-(r.type==="%")*2);break}}return AC(r)}function as(e){var t=e.domain;return e.ticks=function(n){var r=t();return F2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return z8(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],c,l,f=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);f-- >0;){if(l=B2(a,s,n),l===c)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function Rg(){var e=TC();return e.copy=function(){return lp(e,Rg())},hi.apply(e,arguments),as(e)}function V8(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,Mg),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return V8(e).unknown(t)},e=arguments.length?Array.from(e,Mg):[0,1],as(n)}function W8(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 WN(e){return Math.log(e)}function HN(e){return Math.exp(e)}function Nwe(e){return-Math.log(-e)}function Mwe(e){return-Math.exp(-e)}function Lwe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Rwe(e){return e===10?Lwe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $we(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 GN(e){return(t,n)=>-e(-t,n)}function kC(e){const t=e(WN,HN),n=t.domain;let r=10,i,o;function a(){return i=$we(r),o=Rwe(r),n()[0]<0?(i=GN(i),o=GN(o),e(Nwe,Mwe)):e(WN,HN),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 c=n();let l=c[0],f=c[c.length-1];const d=f<l;d&&([l,f]=[f,l]);let p=i(l),v=i(f),g,y;const x=s==null?10:+s;let b=[];if(!(r%1)&&v-p<x){if(p=Math.floor(p),v=Math.ceil(v),l>0){for(;p<=v;++p)for(g=1;g<r;++g)if(y=p<0?g/o(-p):g*o(p),!(y<l)){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<l)){if(y>f)break;b.push(y)}b.length*2<x&&(b=F2(l,f,x))}else b=F2(p,v,Math.min(v-p,x)).map(o);return d?b.reverse():b},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=dh(c)).precision==null&&(c.trim=!0),c=AC(c)),s===1/0)return c;const l=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<=l?c(f):""}},t.nice=()=>n(W8(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function H8(){const e=kC(I0()).domain([1,10]);return e.copy=()=>lp(e,H8()).base(e.base()),hi.apply(e,arguments),e}function KN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function qN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function NC(e){var t=1,n=e(KN(t),qN(t));return n.constant=function(r){return arguments.length?e(KN(t=+r),qN(t)):t},as(n)}function G8(){var e=NC(I0());return e.copy=function(){return lp(e,G8()).constant(e.constant())},hi.apply(e,arguments)}function YN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Iwe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Dwe(e){return e<0?-e*e:e*e}function MC(e){var t=e(Yn,Yn),n=1;function r(){return n===1?e(Yn,Yn):n===.5?e(Iwe,Dwe):e(YN(n),YN(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},as(t)}function LC(){var e=MC(I0());return e.copy=function(){return lp(e,LC()).exponent(e.exponent())},hi.apply(e,arguments),e}function Fwe(){return LC.apply(null,arguments).exponent(.5)}function ZN(e){return Math.sign(e)*e*e}function Bwe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function K8(){var e=TC(),t=[0,1],n=!1,r;function i(o){var a=Bwe(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(ZN(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,Mg)).map(ZN)),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 K8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},hi.apply(i,arguments),as(i)}function q8(){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]=Hxe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[ap(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(Da),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 q8().domain(e).range(t).unknown(r)},hi.apply(o,arguments)}function Y8(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[ap(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var l=i.indexOf(c);return l<0?[NaN,NaN]:l<1?[e,r[0]]:l>=n?[r[n-1],t]:[r[l-1],r[l]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Y8().domain([e,t]).range(i).unknown(o)},hi.apply(as(a),arguments)}function Z8(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[ap(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 Z8().domain(e).range(t).unknown(n)},hi.apply(i,arguments)}const q1=new Date,Y1=new Date;function dn(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 c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let l;do c.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return c},i.filter=o=>dn(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)=>(q1.setTime(+o),Y1.setTime(+a),e(q1),e(Y1),Math.floor(n(q1,Y1))),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 $g=dn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$g.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):$g);$g.range;const Eo=1e3,ti=Eo*60,To=ti*60,Ho=To*24,RC=Ho*7,XN=Ho*30,Z1=Ho*365,Fs=dn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Eo)},(e,t)=>(t-e)/Eo,e=>e.getUTCSeconds());Fs.range;const $C=dn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo)},(e,t)=>{e.setTime(+e+t*ti)},(e,t)=>(t-e)/ti,e=>e.getMinutes());$C.range;const IC=dn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ti)},(e,t)=>(t-e)/ti,e=>e.getUTCMinutes());IC.range;const DC=dn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo-e.getMinutes()*ti)},(e,t)=>{e.setTime(+e+t*To)},(e,t)=>(t-e)/To,e=>e.getHours());DC.range;const FC=dn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*To)},(e,t)=>(t-e)/To,e=>e.getUTCHours());FC.range;const cp=dn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ti)/Ho,e=>e.getDate()-1);cp.range;const D0=dn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ho,e=>e.getUTCDate()-1);D0.range;const X8=dn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ho,e=>Math.floor(e/Ho));X8.range;function bl(e){return dn(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())*ti)/RC)}const F0=bl(0),Ig=bl(1),Uwe=bl(2),zwe=bl(3),eu=bl(4),Vwe=bl(5),Wwe=bl(6);F0.range;Ig.range;Uwe.range;zwe.range;eu.range;Vwe.range;Wwe.range;function _l(e){return dn(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)/RC)}const B0=_l(0),Dg=_l(1),Hwe=_l(2),Gwe=_l(3),tu=_l(4),Kwe=_l(5),qwe=_l(6);B0.range;Dg.range;Hwe.range;Gwe.range;tu.range;Kwe.range;qwe.range;const BC=dn(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());BC.range;const UC=dn(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());UC.range;const Go=dn(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());Go.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:dn(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)});Go.range;const Ko=dn(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());Ko.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:dn(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)});Ko.range;function Q8(e,t,n,r,i,o){const a=[[Fs,1,Eo],[Fs,5,5*Eo],[Fs,15,15*Eo],[Fs,30,30*Eo],[o,1,ti],[o,5,5*ti],[o,15,15*ti],[o,30,30*ti],[i,1,To],[i,3,3*To],[i,6,6*To],[i,12,12*To],[r,1,Ho],[r,2,2*Ho],[n,1,RC],[t,1,XN],[t,3,3*XN],[e,1,Z1]];function s(l,f,d){const p=f<l;p&&([l,f]=[f,l]);const v=d&&typeof d.range=="function"?d:c(l,f,d),g=v?v.range(l,+f+1):[];return p?g.reverse():g}function c(l,f,d){const p=Math.abs(f-l)/d,v=OC(([,,x])=>x).right(a,p);if(v===a.length)return e.every(U2(l/Z1,f/Z1,d));if(v===0)return $g.every(Math.max(U2(l,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,c]}const[Ywe,Zwe]=Q8(Ko,UC,B0,X8,FC,IC),[Xwe,Qwe]=Q8(Go,BC,F0,cp,DC,$C);function X1(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 Q1(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 Af(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Jwe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,l=kf(i),f=Nf(i),d=kf(o),p=Nf(o),v=kf(a),g=Nf(a),y=kf(s),x=Nf(s),b=kf(c),_=Nf(c),w={a:te,A:X,b:U,B,c:null,d:rM,e:rM,f:w2e,g:N2e,G:L2e,H:b2e,I:_2e,j:x2e,L:J8,m:O2e,M:S2e,p:W,q:ee,Q:aM,s:sM,S:P2e,u:C2e,U:E2e,V:T2e,w:j2e,W:A2e,x:null,X:null,y:k2e,Y:M2e,Z:R2e,"%":oM},S={a:G,A:ne,b:re,B:ae,c:null,d:iM,e:iM,f:F2e,g:Y2e,G:X2e,H:$2e,I:I2e,j:D2e,L:tF,m:B2e,M:U2e,p:fe,q:A,Q:aM,s:sM,S:z2e,u:V2e,U:W2e,V:H2e,w:G2e,W:K2e,x:null,X:null,y:q2e,Y:Z2e,Z:Q2e,"%":oM},C={a:M,A:I,b:F,B:q,c:H,d:tM,e:tM,f:m2e,g:eM,G:JN,H:nM,I:nM,j:f2e,L:p2e,m:u2e,M:d2e,p:$,q:c2e,Q:g2e,s:y2e,S:h2e,u:i2e,U:o2e,V:a2e,w:r2e,W:s2e,x:Z,X:Q,y:eM,Y:JN,Z:l2e,"%":v2e};w.x=P(n,w),w.X=P(r,w),w.c=P(t,w),S.x=P(n,S),S.X=P(r,S),S.c=P(t,S);function P(k,z){return function(J){var Y=[],ie=-1,de=0,Ce=k.length,se,pe,ve;for(J instanceof Date||(J=new Date(+J));++ie<Ce;)k.charCodeAt(ie)===37&&(Y.push(k.slice(de,ie)),(pe=QN[se=k.charAt(++ie)])!=null?se=k.charAt(++ie):pe=se==="e"?" ":"0",(ve=z[se])&&(se=ve(J,pe)),Y.push(se),de=ie+1);return Y.push(k.slice(de,ie)),Y.join("")}}function T(k,z){return function(J){var Y=Af(1900,void 0,1),ie=j(Y,k,J+="",0),de,Ce;if(ie!=J.length)return null;if("Q"in Y)return new Date(Y.Q);if("s"in Y)return new Date(Y.s*1e3+("L"in Y?Y.L:0));if(z&&!("Z"in Y)&&(Y.Z=0),"p"in Y&&(Y.H=Y.H%12+Y.p*12),Y.m===void 0&&(Y.m="q"in Y?Y.q:0),"V"in Y){if(Y.V<1||Y.V>53)return null;"w"in Y||(Y.w=1),"Z"in Y?(de=Q1(Af(Y.y,0,1)),Ce=de.getUTCDay(),de=Ce>4||Ce===0?Dg.ceil(de):Dg(de),de=D0.offset(de,(Y.V-1)*7),Y.y=de.getUTCFullYear(),Y.m=de.getUTCMonth(),Y.d=de.getUTCDate()+(Y.w+6)%7):(de=X1(Af(Y.y,0,1)),Ce=de.getDay(),de=Ce>4||Ce===0?Ig.ceil(de):Ig(de),de=cp.offset(de,(Y.V-1)*7),Y.y=de.getFullYear(),Y.m=de.getMonth(),Y.d=de.getDate()+(Y.w+6)%7)}else("W"in Y||"U"in Y)&&("w"in Y||(Y.w="u"in Y?Y.u%7:"W"in Y?1:0),Ce="Z"in Y?Q1(Af(Y.y,0,1)).getUTCDay():X1(Af(Y.y,0,1)).getDay(),Y.m=0,Y.d="W"in Y?(Y.w+6)%7+Y.W*7-(Ce+5)%7:Y.w+Y.U*7-(Ce+6)%7);return"Z"in Y?(Y.H+=Y.Z/100|0,Y.M+=Y.Z%100,Q1(Y)):X1(Y)}}function j(k,z,J,Y){for(var ie=0,de=z.length,Ce=J.length,se,pe;ie<de;){if(Y>=Ce)return-1;if(se=z.charCodeAt(ie++),se===37){if(se=z.charAt(ie++),pe=C[se in QN?z.charAt(ie++):se],!pe||(Y=pe(k,J,Y))<0)return-1}else if(se!=J.charCodeAt(Y++))return-1}return Y}function $(k,z,J){var Y=l.exec(z.slice(J));return Y?(k.p=f.get(Y[0].toLowerCase()),J+Y[0].length):-1}function M(k,z,J){var Y=v.exec(z.slice(J));return Y?(k.w=g.get(Y[0].toLowerCase()),J+Y[0].length):-1}function I(k,z,J){var Y=d.exec(z.slice(J));return Y?(k.w=p.get(Y[0].toLowerCase()),J+Y[0].length):-1}function F(k,z,J){var Y=b.exec(z.slice(J));return Y?(k.m=_.get(Y[0].toLowerCase()),J+Y[0].length):-1}function q(k,z,J){var Y=y.exec(z.slice(J));return Y?(k.m=x.get(Y[0].toLowerCase()),J+Y[0].length):-1}function H(k,z,J){return j(k,t,z,J)}function Z(k,z,J){return j(k,n,z,J)}function Q(k,z,J){return j(k,r,z,J)}function te(k){return a[k.getDay()]}function X(k){return o[k.getDay()]}function U(k){return c[k.getMonth()]}function B(k){return s[k.getMonth()]}function W(k){return i[+(k.getHours()>=12)]}function ee(k){return 1+~~(k.getMonth()/3)}function G(k){return a[k.getUTCDay()]}function ne(k){return o[k.getUTCDay()]}function re(k){return c[k.getUTCMonth()]}function ae(k){return s[k.getUTCMonth()]}function fe(k){return i[+(k.getUTCHours()>=12)]}function A(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var z=P(k+="",w);return z.toString=function(){return k},z},parse:function(k){var z=T(k+="",!1);return z.toString=function(){return k},z},utcFormat:function(k){var z=P(k+="",S);return z.toString=function(){return k},z},utcParse:function(k){var z=T(k+="",!0);return z.toString=function(){return k},z}}}var QN={"-":"",_:" ",0:"0"},wn=/^\s*\d+/,e2e=/^%/,t2e=/[\\^$*+?|[\]().{}]/g;function ft(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 n2e(e){return e.replace(t2e,"\\$&")}function kf(e){return new RegExp("^(?:"+e.map(n2e).join("|")+")","i")}function Nf(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function r2e(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function i2e(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function o2e(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function a2e(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function s2e(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function JN(e,t,n){var r=wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eM(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function l2e(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 c2e(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function u2e(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tM(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function f2e(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nM(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function d2e(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function h2e(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function p2e(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function m2e(e,t,n){var r=wn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function v2e(e,t,n){var r=e2e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function g2e(e,t,n){var r=wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function y2e(e,t,n){var r=wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rM(e,t){return ft(e.getDate(),t,2)}function b2e(e,t){return ft(e.getHours(),t,2)}function _2e(e,t){return ft(e.getHours()%12||12,t,2)}function x2e(e,t){return ft(1+cp.count(Go(e),e),t,3)}function J8(e,t){return ft(e.getMilliseconds(),t,3)}function w2e(e,t){return J8(e,t)+"000"}function O2e(e,t){return ft(e.getMonth()+1,t,2)}function S2e(e,t){return ft(e.getMinutes(),t,2)}function P2e(e,t){return ft(e.getSeconds(),t,2)}function C2e(e){var t=e.getDay();return t===0?7:t}function E2e(e,t){return ft(F0.count(Go(e)-1,e),t,2)}function eF(e){var t=e.getDay();return t>=4||t===0?eu(e):eu.ceil(e)}function T2e(e,t){return e=eF(e),ft(eu.count(Go(e),e)+(Go(e).getDay()===4),t,2)}function j2e(e){return e.getDay()}function A2e(e,t){return ft(Ig.count(Go(e)-1,e),t,2)}function k2e(e,t){return ft(e.getFullYear()%100,t,2)}function N2e(e,t){return e=eF(e),ft(e.getFullYear()%100,t,2)}function M2e(e,t){return ft(e.getFullYear()%1e4,t,4)}function L2e(e,t){var n=e.getDay();return e=n>=4||n===0?eu(e):eu.ceil(e),ft(e.getFullYear()%1e4,t,4)}function R2e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ft(t/60|0,"0",2)+ft(t%60,"0",2)}function iM(e,t){return ft(e.getUTCDate(),t,2)}function $2e(e,t){return ft(e.getUTCHours(),t,2)}function I2e(e,t){return ft(e.getUTCHours()%12||12,t,2)}function D2e(e,t){return ft(1+D0.count(Ko(e),e),t,3)}function tF(e,t){return ft(e.getUTCMilliseconds(),t,3)}function F2e(e,t){return tF(e,t)+"000"}function B2e(e,t){return ft(e.getUTCMonth()+1,t,2)}function U2e(e,t){return ft(e.getUTCMinutes(),t,2)}function z2e(e,t){return ft(e.getUTCSeconds(),t,2)}function V2e(e){var t=e.getUTCDay();return t===0?7:t}function W2e(e,t){return ft(B0.count(Ko(e)-1,e),t,2)}function nF(e){var t=e.getUTCDay();return t>=4||t===0?tu(e):tu.ceil(e)}function H2e(e,t){return e=nF(e),ft(tu.count(Ko(e),e)+(Ko(e).getUTCDay()===4),t,2)}function G2e(e){return e.getUTCDay()}function K2e(e,t){return ft(Dg.count(Ko(e)-1,e),t,2)}function q2e(e,t){return ft(e.getUTCFullYear()%100,t,2)}function Y2e(e,t){return e=nF(e),ft(e.getUTCFullYear()%100,t,2)}function Z2e(e,t){return ft(e.getUTCFullYear()%1e4,t,4)}function X2e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?tu(e):tu.ceil(e),ft(e.getUTCFullYear()%1e4,t,4)}function Q2e(){return"+0000"}function oM(){return"%"}function aM(e){return+e}function sM(e){return Math.floor(+e/1e3)}var Ul,rF,iF;J2e({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 J2e(e){return Ul=Jwe(e),rF=Ul.format,Ul.parse,iF=Ul.utcFormat,Ul.utcParse,Ul}function eOe(e){return new Date(e)}function tOe(e){return e instanceof Date?+e:+new Date(+e)}function zC(e,t,n,r,i,o,a,s,c,l){var f=TC(),d=f.invert,p=f.domain,v=l(".%L"),g=l(":%S"),y=l("%I:%M"),x=l("%I %p"),b=l("%a %d"),_=l("%b %d"),w=l("%B"),S=l("%Y");function C(P){return(c(P)<P?v:s(P)<P?g:a(P)<P?y:o(P)<P?x:r(P)<P?i(P)<P?b:_:n(P)<P?w:S)(P)}return f.invert=function(P){return new Date(d(P))},f.domain=function(P){return arguments.length?p(Array.from(P,tOe)):p().map(eOe)},f.ticks=function(P){var T=p();return e(T[0],T[T.length-1],P??10)},f.tickFormat=function(P,T){return T==null?C:l(T)},f.nice=function(P){var T=p();return(!P||typeof P.range!="function")&&(P=t(T[0],T[T.length-1],P??10)),P?p(W8(T,P)):f},f.copy=function(){return lp(f,zC(e,t,n,r,i,o,a,s,c,l))},f}function nOe(){return hi.apply(zC(Xwe,Qwe,Go,BC,F0,cp,DC,$C,Fs,rF).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rOe(){return hi.apply(zC(Ywe,Zwe,Ko,UC,B0,D0,FC,IC,Fs,iF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function U0(){var e=0,t=1,n,r,i,o,a=Yn,s=!1,c;function l(d){return d==null||isNaN(d=+d)?c:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}l.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(d){return arguments.length?(s=!!d,l):s},l.interpolator=function(d){return arguments.length?(a=d,l):a};function f(d){return function(p){var v,g;return arguments.length?([v,g]=p,a=d(v,g),l):[a(0),a(1)]}}return l.range=f(Uu),l.rangeRound=f(EC),l.unknown=function(d){return arguments.length?(c=d,l):c},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),l}}function ss(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function oF(){var e=as(U0()(Yn));return e.copy=function(){return ss(e,oF())},ra.apply(e,arguments)}function aF(){var e=kC(U0()).domain([1,10]);return e.copy=function(){return ss(e,aF()).base(e.base())},ra.apply(e,arguments)}function sF(){var e=NC(U0());return e.copy=function(){return ss(e,sF()).constant(e.constant())},ra.apply(e,arguments)}function VC(){var e=MC(U0());return e.copy=function(){return ss(e,VC()).exponent(e.exponent())},ra.apply(e,arguments)}function iOe(){return VC.apply(null,arguments).exponent(.5)}function lF(){var e=[],t=Yn;function n(r){if(r!=null&&!isNaN(r=+r))return t((ap(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(Da),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)=>Wxe(e,o/r))},n.copy=function(){return lF(t).domain(e)},ra.apply(n,arguments)}function z0(){var e=0,t=.5,n=1,r=1,i,o,a,s,c,l=Yn,f,d=!1,p;function v(y){return isNaN(y=+y)?p:(y=.5+((y=+f(y))-o)*(r*y<r*o?s:c),l(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),c=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?(l=y,v):l};function g(y){return function(x){var b,_,w;return arguments.length?([b,_,w]=x,l=vwe(y,[b,_,w]),v):[l(0),l(.5),l(1)]}}return v.range=g(Uu),v.rangeRound=g(EC),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),c=o===a?0:.5/(a-o),r=o<i?-1:1,v}}function cF(){var e=as(z0()(Yn));return e.copy=function(){return ss(e,cF())},ra.apply(e,arguments)}function uF(){var e=kC(z0()).domain([.1,1,10]);return e.copy=function(){return ss(e,uF()).base(e.base())},ra.apply(e,arguments)}function fF(){var e=NC(z0());return e.copy=function(){return ss(e,fF()).constant(e.constant())},ra.apply(e,arguments)}function WC(){var e=MC(z0());return e.copy=function(){return ss(e,WC()).exponent(e.exponent())},ra.apply(e,arguments)}function oOe(){return WC.apply(null,arguments).exponent(.5)}const lM=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:lh,scaleDiverging:cF,scaleDivergingLog:uF,scaleDivergingPow:WC,scaleDivergingSqrt:oOe,scaleDivergingSymlog:fF,scaleIdentity:V8,scaleImplicit:z2,scaleLinear:Rg,scaleLog:H8,scaleOrdinal:SC,scalePoint:fd,scalePow:LC,scaleQuantile:q8,scaleQuantize:Y8,scaleRadial:K8,scaleSequential:oF,scaleSequentialLog:aF,scaleSequentialPow:VC,scaleSequentialQuantile:lF,scaleSequentialSqrt:iOe,scaleSequentialSymlog:sF,scaleSqrt:Fwe,scaleSymlog:G8,scaleThreshold:Z8,scaleTime:nOe,scaleUtc:rOe,tickFormat:z8},Symbol.toStringTag,{value:"Module"}));var aOe=Nu;function sOe(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&&!aOe(a):n(a,s)))var s=a,c=o}return c}var V0=sOe;function lOe(e,t){return e>t}var dF=lOe,cOe=V0,uOe=dF,fOe=Bu;function dOe(e){return e&&e.length?cOe(e,fOe,uOe):void 0}var hOe=dOe;const Oa=st(hOe);function pOe(e,t){return e<t}var hF=pOe,mOe=V0,vOe=hF,gOe=Bu;function yOe(e){return e&&e.length?mOe(e,gOe,vOe):void 0}var bOe=yOe;const W0=st(bOe);var _Oe=iC,xOe=vo,wOe=x8,OOe=yr;function SOe(e,t){var n=OOe(e)?_Oe:wOe;return n(e,xOe(t))}var POe=SOe,COe=b8,EOe=POe;function TOe(e,t){return COe(EOe(e,t),1)}var jOe=TOe;const AOe=st(jOe);var kOe=yC;function NOe(e,t){return kOe(e,t)}var MOe=NOe;const qa=st(MOe);var zu=1e9,LOe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},GC,Mt=!0,ui="[DecimalError] ",qs=ui+"Invalid argument: ",HC=ui+"Exponent out of range: ",Vu=Math.floor,js=Math.pow,ROe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Sr,vn=1e7,Tt=7,pF=9007199254740991,Fg=Vu(pF/Tt),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)*Tt;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 Mo(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,n=t.constructor;return bt(Mo(t,new n(e),0,1),n.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return on(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(Sr))throw Error(ui+"NaN");if(n.s<1)throw Error(ui+(n.s?"NaN":"-Infinity"));return n.eq(Sr)?new r(0):(Mt=!1,t=Mo(hh(n,o),hh(e,o),o),Mt=!0,bt(t,i))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?gF(t,e):mF(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(ui+"NaN");return n.s?(Mt=!1,t=Mo(n,e,0,1).times(e),Mt=!0,n.minus(t)):bt(new r(n),i)};Ie.naturalExponential=Ie.exp=function(){return vF(this)};Ie.naturalLogarithm=Ie.ln=function(){return hh(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?mF(t,e):gF(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(qs+e);if(t=on(i)+1,r=i.d.length-1,n=r*Tt+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,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(ui+"NaN")}for(e=on(s),Mt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ji(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vu((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 c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(Mo(s,o,a+2)).times(.5),Ji(o.d).slice(0,a)===(t=Ji(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(bt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Mt=!0,bt(r,n)};Ie.times=Ie.mul=function(e){var t,n,r,i,o,a,s,c,l,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,c=p.length,l=v.length,c<l&&(o=p,p=v,v=o,a=c,c=l,l=a),o=[],a=c+l,r=a;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+v[r]*p[i-r-1]+t,o[i--]=s%vn|0,t=s/vn|0;o[i]=(o[i]+t)%vn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Mt?bt(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:(co(e,0,zu),t===void 0?t=r.rounding:co(t,0,8),bt(n,e+on(n)+1,t))};Ie.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=cl(r,!0):(co(e,0,zu),t===void 0?t=i.rounding:co(t,0,8),r=bt(new i(r),e+1,t),n=cl(r,!0,e+1)),n};Ie.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?cl(i):(co(e,0,zu),t===void 0?t=o.rounding:co(t,0,8),r=bt(new o(i),e+on(i)+1,t),n=cl(r.abs(),!1,e+on(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return bt(new t(e),on(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,l=12,f=+(e=new c(e));if(!e.s)return new c(Sr);if(s=new c(s),!s.s){if(e.s<1)throw Error(ui+"Infinity");return s}if(s.eq(Sr))return s;if(r=c.precision,e.eq(Sr))return bt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=pF){for(i=new c(Sr),t=Math.ceil(r/Tt+4),Mt=!1;n%2&&(i=i.times(s),uM(i.d,t)),n=Vu(n/2),n!==0;)s=s.times(s),uM(s.d,t);return Mt=!0,e.s<0?new c(Sr).div(i):bt(i,r)}}else if(o<0)throw Error(ui+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Mt=!1,i=e.times(hh(s,r+l)),Mt=!0,i=vF(i),i.s=o,i};Ie.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=on(i),r=cl(i,n<=o.toExpNeg||n>=o.toExpPos)):(co(e,1,zu),t===void 0?t=o.rounding:co(t,0,8),i=bt(new o(i),e,t),n=on(i),r=cl(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):(co(e,1,zu),t===void 0?t=r.rounding:co(t,0,8)),bt(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=on(e),n=e.constructor;return cl(e,t<=n.toExpNeg||t>=n.toExpPos)};function mF(e,t){var n,r,i,o,a,s,c,l,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Mt?bt(t,d):t;if(c=e.d,l=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,s=l.length):(r=l,i=a,s=c.length),a=Math.ceil(d/Tt),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=c.length,o=l.length,s-o<0&&(o=s,r=l,l=c,c=r),n=0;o;)n=(c[--o]=c[o]+l[o]+n)/vn|0,c[o]%=vn;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,Mt?bt(t,d):t}function co(e,t,n){if(e!==~~e||e<t||e>n)throw Error(qs+e)}function Ji(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=Tt-r.length,n&&(o+=va(n)),o+=r;a=e[t],r=a+"",n=Tt-r.length,n&&(o+=va(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Mo=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%vn|0,a=o/vn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,c;if(o!=a)c=o>a?1:-1;else for(s=c=0;s<o;s++)if(r[s]!=i[s]){c=r[s]>i[s]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*vn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,c,l,f,d,p,v,g,y,x,b,_,w,S,C,P,T,j,$=r.constructor,M=r.s==i.s?1:-1,I=r.d,F=i.d;if(!r.s)return new $(r);if(!i.s)throw Error(ui+"Division by zero");for(c=r.e-i.e,T=F.length,C=I.length,v=new $(M),g=v.d=[],l=0;F[l]==(I[l]||0);)++l;if(F[l]>(I[l]||0)&&--c,o==null?_=o=$.precision:a?_=o+(on(r)-on(i))+1:_=o,_<0)return new $(0);if(_=_/Tt+2|0,l=0,T==1)for(f=0,F=F[0],_++;(l<C||f)&&_--;l++)w=f*vn+(I[l]||0),g[l]=w/F|0,f=w%F|0;else{for(f=vn/(F[0]+1)|0,f>1&&(F=e(F,f),I=e(I,f),T=F.length,C=I.length),S=T,y=I.slice(0,T),x=y.length;x<T;)y[x++]=0;j=F.slice(),j.unshift(0),P=F[0],F[1]>=vn/2&&++P;do f=0,s=t(F,y,T,x),s<0?(b=y[0],T!=x&&(b=b*vn+(y[1]||0)),f=b/P|0,f>1?(f>=vn&&(f=vn-1),d=e(F,f),p=d.length,x=y.length,s=t(d,y,p,x),s==1&&(f--,n(d,T<p?j:F,p))):(f==0&&(s=f=1),d=F.slice()),p=d.length,p<x&&d.unshift(0),n(y,d,x),s==-1&&(x=y.length,s=t(F,y,T,x),s<1&&(f++,n(y,T<x?j:F,x))),x=y.length):s===0&&(f++,y=[0]),g[l++]=f,s&&y[0]?y[x++]=I[S]||0:(y=[I[S]],x=1);while((S++<C||y[0]!==void 0)&&_--)}return g[0]||g.shift(),v.e=c,bt(v,a?o+on(v)+1:o)}}();function vF(e,t){var n,r,i,o,a,s,c=0,l=0,f=e.constructor,d=f.precision;if(on(e)>16)throw Error(HC+on(e));if(!e.s)return new f(Sr);for(t==null?(Mt=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(r=Math.log(js(2,l))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Sr),f.precision=s;;){if(i=bt(i.times(e),s),n=n.times(++c),a=o.plus(Mo(i,n,s)),Ji(a.d).slice(0,s)===Ji(o.d).slice(0,s)){for(;l--;)o=bt(o.times(o),s);return f.precision=d,t==null?(Mt=!0,bt(o,d)):o}o=a}}function on(e){for(var t=e.e*Tt,n=e.d[0];n>=10;n/=10)t++;return t}function J1(e,t,n){if(t>e.LN10.sd())throw Mt=!0,n&&(e.precision=n),Error(ui+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function va(e){for(var t="";e--;)t+="0";return t}function hh(e,t){var n,r,i,o,a,s,c,l,f,d=1,p=10,v=e,g=v.d,y=v.constructor,x=y.precision;if(v.s<1)throw Error(ui+(v.s?"NaN":"-Infinity"));if(v.eq(Sr))return new y(0);if(t==null?(Mt=!1,l=x):l=t,v.eq(10))return t==null&&(Mt=!0),J1(y,l);if(l+=p,y.precision=l,n=Ji(g),r=n.charAt(0),o=on(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Ji(v.d),r=n.charAt(0),d++;o=on(v),r>1?(v=new y("0."+n),o++):v=new y(r+"."+n.slice(1))}else return c=J1(y,l+2,x).times(o+""),v=hh(new y(r+"."+n.slice(1)),l-p).plus(c),y.precision=x,t==null?(Mt=!0,bt(v,x)):v;for(s=a=v=Mo(v.minus(Sr),v.plus(Sr),l),f=bt(v.times(v),l),i=3;;){if(a=bt(a.times(f),l),c=s.plus(Mo(a,new y(i),l)),Ji(c.d).slice(0,l)===Ji(s.d).slice(0,l))return s=s.times(2),o!==0&&(s=s.plus(J1(y,l+2,x).times(o+""))),s=Mo(s,new y(d),l),y.precision=x,t==null?(Mt=!0,bt(s,x)):s;s=c,i+=2}}function cM(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=Vu(n/Tt),e.d=[],r=(n+1)%Tt,n<0&&(r+=Tt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Tt;r<i;)e.d.push(+t.slice(r,r+=Tt));t=t.slice(r),r=Tt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Mt&&(e.e>Fg||e.e<-Fg))throw Error(HC+n)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,n){var r,i,o,a,s,c,l,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Tt,i=t,l=d[f=0];else{if(f=Math.ceil((r+1)/Tt),o=d.length,f>=o)return e;for(l=o=d[f],a=1;o>=10;o/=10)a++;r%=Tt,i=r-Tt+a}if(n!==void 0&&(o=js(10,a-i-1),s=l/o%10|0,c=t<0||d[f+1]!==void 0||l%o,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/js(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(o=on(e),d.length=1,t=t-o-1,d[0]=js(10,(Tt-t%Tt)%Tt),e.e=Vu(-t/Tt)||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=js(10,Tt-r),d[f]=i>0?(l/js(10,a-i)%js(10,i)|0)*o:0),c)for(;;)if(f==0){(d[0]+=o)==vn&&(d[0]=1,++e.e);break}else{if(d[f]+=o,d[f]!=vn)break;d[f--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(Mt&&(e.e>Fg||e.e<-Fg))throw Error(HC+on(e));return e}function gF(e,t){var n,r,i,o,a,s,c,l,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Mt?bt(t,v):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r,a){for(f=a<0,f?(n=c,a=-a,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(v/Tt),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}a=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),s=c.length,i=d.length-s;i>0;--i)c[s++]=0;for(i=d.length;i>a;){if(c[--i]<d[i]){for(o=i;o&&c[--o]===0;)c[o]=vn-1;--c[o],c[i]+=vn}c[i]-=d[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,Mt?bt(t,v):t):new p(0)}function cl(e,t,n){var r,i=on(e),o=Ji(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+va(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+va(-i-1)+o,n&&(r=n-a)>0&&(o+=va(r))):i>=a?(o+=va(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+va(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=va(r))),e.s<0?"-"+o:o}function uM(e,t){if(e.length>t)return e.length=t,!0}function yF(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(qs+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 cM(a,o.toString())}else if(typeof o!="string")throw Error(qs+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,ROe.test(o))cM(a,o);else throw Error(qs+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=yF,i.config=i.set=$Oe,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 $Oe(e){if(!e||typeof e!="object")throw Error(ui+"Object expected");var t,n,r,i=["precision",1,zu,"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(Vu(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(qs+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(qs+n+": "+r);return this}var GC=yF(LOe);Sr=new GC(1);const vt=GC;function IOe(e){return UOe(e)||BOe(e)||FOe(e)||DOe()}function DOe(){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 FOe(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 BOe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function UOe(e){if(Array.isArray(e))return G2(e)}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}var zOe=function(t){return t},bF={"@@functional/placeholder":!0},_F=function(t){return t===bF},fM=function(t){return function n(){return arguments.length===0||arguments.length===1&&_F(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},VOe=function e(t,n){return t===1?n:fM(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!==bF}).length;return a>=t?n.apply(void 0,i):e(t-a,fM(function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var f=i.map(function(d){return _F(d)?c.shift():d});return n.apply(void 0,IOe(f).concat(c))}))})},H0=function(t){return VOe(t.length,t)},K2=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},WOe=H0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),HOe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return zOe;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,c){return c(s)},o.apply(void 0,arguments))}},q2=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},xF=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(s,c){return s===n[c]})||(n=o,r=t.apply(void 0,o)),r}};function GOe(e){var t;return e===0?t=1:t=Math.floor(new vt(e).abs().log(10).toNumber())+1,t}function KOe(e,t,n){for(var r=new vt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var qOe=H0(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),YOe=H0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),ZOe=H0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const G0={rangeStep:KOe,getDigitCount:GOe,interpolateNumber:qOe,uninterpolateNumber:YOe,uninterpolateTruncation:ZOe};function Y2(e){return JOe(e)||QOe(e)||wF(e)||XOe()}function XOe(){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 QOe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JOe(e){if(Array.isArray(e))return Z2(e)}function ph(e,t){return nSe(e)||tSe(e,t)||wF(e,t)||eSe()}function eSe(){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 wF(e,t){if(e){if(typeof e=="string")return Z2(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 Z2(e,t)}}function Z2(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 tSe(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(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function nSe(e){if(Array.isArray(e))return e}function OF(e){var t=ph(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function SF(e,t,n){if(e.lte(0))return new vt(0);var r=G0.getDigitCount(e.toNumber()),i=new vt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new vt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=s.mul(i);return t?c:new vt(Math.ceil(c))}function rSe(e,t,n){var r=1,i=new vt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new vt(10).pow(G0.getDigitCount(e)-1),i=new vt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new vt(Math.floor(e)))}else e===0?i=new vt(Math.floor((t-1)/2)):n||(i=new vt(Math.floor(e)));var a=Math.floor((t-1)/2),s=HOe(WOe(function(c){return i.add(new vt(c-a).mul(r)).toNumber()}),K2);return s(0,t)}function PF(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new vt(0),tickMin:new vt(0),tickMax:new vt(0)};var o=SF(new vt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new vt(0):(a=new vt(e).add(t).div(2),a=a.sub(new vt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new vt(t).sub(a).div(o).toNumber()),l=s+c+1;return l>n?PF(e,t,n,r,i+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:o,tickMin:a.sub(new vt(s).mul(o)),tickMax:a.add(new vt(c).mul(o))})}function iSe(e){var t=ph(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=OF([n,r]),c=ph(s,2),l=c[0],f=c[1];if(l===-1/0||f===1/0){var d=f===1/0?[l].concat(Y2(K2(0,i-1).map(function(){return 1/0}))):[].concat(Y2(K2(0,i-1).map(function(){return-1/0})),[f]);return n>r?q2(d):d}if(l===f)return rSe(l,i,o);var p=PF(l,f,a,o),v=p.step,g=p.tickMin,y=p.tickMax,x=G0.rangeStep(g,y.add(new vt(.1).mul(v)),v);return n>r?q2(x):x}function oSe(e,t){var n=ph(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=OF([r,i]),s=ph(a,2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[r,i];if(c===l)return[c];var f=Math.max(t,2),d=SF(new vt(l).sub(c).div(f-1),o,0),p=[].concat(Y2(G0.rangeStep(new vt(c),new vt(l).sub(new vt(.99).mul(d)),d)),[l]);return r>i?q2(p):p}var aSe=xF(iSe),sSe=xF(oSe),lSe="Invariant failed";function ul(e,t){throw new Error(lSe)}var cSe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function nu(e){"@babel/helpers - typeof";return nu=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},nu(e)}function Bg(){return Bg=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},Bg.apply(this,arguments)}function uSe(e,t){return pSe(e)||hSe(e,t)||dSe(e,t)||fSe()}function fSe(){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 dSe(e,t){if(e){if(typeof e=="string")return dM(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 dM(e,t)}}function dM(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 hSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function pSe(e){if(Array.isArray(e))return e}function mSe(e,t){if(e==null)return{};var n=vSe(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 vSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ySe(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,TF(r.key),r)}}function bSe(e,t,n){return t&&ySe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Se(e,t,n){return t=Ug(t),xSe(e,CF()?Reflect.construct(t,n||[],Ug(e).constructor):t.apply(e,n))}function xSe(e,t){if(t&&(nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wSe(e)}function wSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CF=function(){return!!e})()}function Ug(e){return Ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ug(e)}function OSe(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&&X2(e,t)}function X2(e,t){return X2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},X2(e,t)}function EF(e,t,n){return t=TF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TF(e){var t=SSe(e,"string");return nu(t)=="symbol"?t:t+""}function SSe(e,t){if(nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wu=function(e){function t(){return gSe(this,t),_Se(this,t,arguments)}return OSe(t,e),bSe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,s=r.dataKey,c=r.data,l=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,p=mSe(r,cSe),v=De(p,!1);this.props.direction==="x"&&f.type!=="number"&&ul();var g=c.map(function(y){var x=l(y,s),b=x.x,_=x.y,w=x.value,S=x.errorVal;if(!S)return null;var C=[],P,T;if(Array.isArray(S)){var j=uSe(S,2);P=j[0],T=j[1]}else P=T=S;if(o==="vertical"){var $=f.scale,M=_+i,I=M+a,F=M-a,q=$(w-P),H=$(w+T);C.push({x1:H,y1:I,x2:H,y2:F}),C.push({x1:q,y1:M,x2:H,y2:M}),C.push({x1:q,y1:I,x2:q,y2:F})}else if(o==="horizontal"){var Z=d.scale,Q=b+i,te=Q-a,X=Q+a,U=Z(w-P),B=Z(w+T);C.push({x1:te,y1:B,x2:X,y2:B}),C.push({x1:Q,y1:U,x2:Q,y2:B}),C.push({x1:te,y1:U,x2:X,y2:U})}return V.createElement(Xe,Bg({className:"recharts-errorBar",key:"bar-".concat(C.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},v),C.map(function(W){return V.createElement("line",Bg({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return V.createElement(Xe,{className:"recharts-errorBars"},g)}}])}(V.Component);EF(Wu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});EF(Wu,"displayName","ErrorBar");function mh(e){"@babel/helpers - typeof";return mh=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},mh(e)}function hM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hM(Object(n),!0).forEach(function(r){PSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PSe(e,t,n){return t=CSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CSe(e){var t=ESe(e,"string");return mh(t)=="symbol"?t:t+""}function ESe(e,t){if(mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jF=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Or(n,Ec);if(!a)return null;var s=Ec.defaultProps,c=s!==void 0?vs(vs({},s),a.props):{},l;return a.props&&a.props.payload?l=a.props&&a.props.payload:o==="children"?l=(r||[]).reduce(function(f,d){var p=d.item,v=d.props,g=v.sectors||v.data||[];return f.concat(g.map(function(y){return{type:a.props.iconType||p.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):l=(r||[]).map(function(f){var d=f.item,p=d.type.defaultProps,v=p!==void 0?vs(vs({},p),d.props):{},g=v.dataKey,y=v.name,x=v.legendType,b=v.hide;return{inactive:b,dataKey:g,type:c.iconType||x||"square",color:KC(d),value:y||g,payload:v}}),vs(vs(vs({},c),Ec.getWithHeight(a,i)),{},{payload:l,item:a})};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 pM(e){return kSe(e)||ASe(e)||jSe(e)||TSe()}function TSe(){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 jSe(e,t){if(e){if(typeof e=="string")return Q2(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 Q2(e,t)}}function ASe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kSe(e){if(Array.isArray(e))return Q2(e)}function Q2(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 mM(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mM(Object(n),!0).forEach(function(r){jc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jc(e,t,n){return t=NSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NSe(e){var t=MSe(e,"string");return vh(t)=="symbol"?t:t+""}function MSe(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)}function jt(e,t,n){return ze(e)||ze(t)?n:un(t)?Tr(e,t,n):We(t)?t(e):n}function dd(e,t,n,r){var i=AOe(e,function(s){return jt(s,t)});if(n==="number"){var o=i.filter(function(s){return Ee(s)||parseFloat(s)});return o.length?[W0(o),Oa(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!ze(s)}):i;return a.map(function(s){return un(s)||s instanceof Date?s:""})}var LSe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,l=0;l<s;l++){var f=l>0?i[l-1].coordinate:i[s-1].coordinate,d=i[l].coordinate,p=l>=s-1?i[0].coordinate:i[l+1].coordinate,v=void 0;if(Kn(d-f)!==Kn(p-d)){var g=[];if(Kn(p-d)===Kn(c[1]-c[0])){v=p;var y=d+c[1]-c[0];g[0]=Math.min(y,(y+f)/2),g[1]=Math.max(y,(y+f)/2)}else{v=f;var x=p+c[1]-c[0];g[0]=Math.min(d,(x+d)/2),g[1]=Math.max(d,(x+d)/2)}var b=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>b[0]&&t<=b[1]||t>=g[0]&&t<=g[1]){a=i[l].index;break}}else{var _=Math.min(f,p),w=Math.max(f,p);if(t>(_+d)/2&&t<=(w+d)/2){a=i[l].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<s-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===s-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){a=r[S].index;break}return a},KC=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Gt(Gt({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:s;break;default:c=s;break}return c},RSe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),c=0,l=s.length;c<l;c++)for(var f=o[s[c]].stackGroups,d=Object.keys(f),p=0,v=d.length;p<v;p++){var g=f[d[p]],y=g.items,x=g.cateAxisId,b=y.filter(function(T){return No(T.type).indexOf("Bar")>=0});if(b&&b.length){var _=b[0].type.defaultProps,w=_!==void 0?Gt(Gt({},_),b[0].props):b[0].props,S=w.barSize,C=w[x];a[C]||(a[C]=[]);var P=ze(S)?n:S;a[C].push({item:b[0],stackList:b.slice(1),barSize:ze(P)?void 0:qn(P,r,0)})}}return a},$Se=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,c=a.length;if(c<1)return null;var l=qn(n,i,0,!0),f,d=[];if(a[0].barSize===+a[0].barSize){var p=!1,v=i/c,g=a.reduce(function(S,C){return S+C.barSize||0},0);g+=(c-1)*l,g>=i&&(g-=(c-1)*l,l=0),g>=i&&v>0&&(p=!0,v*=.9,g=c*v);var y=(i-g)/2>>0,x={offset:y-l,size:0};f=a.reduce(function(S,C){var P={item:C.item,position:{offset:x.offset+x.size+l,size:p?v:C.barSize}},T=[].concat(pM(S),[P]);return x=T[T.length-1].position,C.stackList&&C.stackList.length&&C.stackList.forEach(function(j){T.push({item:j,position:x})}),T},d)}else{var b=qn(r,i,0,!0);i-2*b-(c-1)*l<=0&&(l=0);var _=(i-2*b-(c-1)*l)/c;_>1&&(_>>=0);var w=s===+s?Math.min(_,s):_;f=a.reduce(function(S,C,P){var T=[].concat(pM(S),[{item:C.item,position:{offset:b+(_+l)*P+(_-w)/2,size:w}}]);return C.stackList&&C.stackList.length&&C.stackList.forEach(function(j){T.push({item:j,position:T[T.length-1].position})}),T},d)}return f},ISe=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,c=a-(s.left||0)-(s.right||0),l=jF({children:o,legendWidth:c});if(l){var f=i||{},d=f.width,p=f.height,v=l.align,g=l.verticalAlign,y=l.layout;if((y==="vertical"||y==="horizontal"&&g==="middle")&&v!=="center"&&Ee(t[v]))return Gt(Gt({},t),{},jc({},v,t[v]+(d||0)));if((y==="horizontal"||y==="vertical"&&v==="center")&&g!=="middle"&&Ee(t[g]))return Gt(Gt({},t),{},jc({},g,t[g]+(p||0)))}return t},DSe=function(t,n,r){return ze(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},AF=function(t,n,r,i,o){var a=n.props.children,s=Jn(a,Wu).filter(function(l){return DSe(i,o,l.props.direction)});if(s&&s.length){var c=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var d=jt(f,r);if(ze(d))return l;var p=Array.isArray(d)?[W0(d),Oa(d)]:[d,d],v=c.reduce(function(g,y){var x=jt(f,y,0),b=p[0]-Math.abs(Array.isArray(x)?x[0]:x),_=p[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(b,g[0]),Math.max(_,g[1])]},[1/0,-1/0]);return[Math.min(v[0],l[0]),Math.max(v[1],l[1])]},[1/0,-1/0])}return null},FSe=function(t,n,r,i,o){var a=n.map(function(s){return AF(t,s,r,o,i)}).filter(function(s){return!ze(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},kF=function(t,n,r,i,o){var a=n.map(function(c){var l=c.props.dataKey;return r==="number"&&l&&AF(t,c,l,i)||dd(t,l,r,o)});if(r==="number")return a.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,l){for(var f=0,d=l.length;f<d;f++)s[l[f]]||(s[l[f]]=!0,c.push(l[f]));return c},[])},NF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},MF=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var o,a,s=t.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(a=!0),c.coordinate});return o||s.push(n),a||s.push(r),s},jo=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(l=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Kn(s[0]-s[1])*2*l:l,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var p=o?o.indexOf(d):d;return{coordinate:i(p)+l,value:d,offset:l}});return f.filter(function(d){return!Iu(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,p){return{coordinate:i(d)+l,value:d,index:p,offset:l}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+l,value:d,offset:l}}):i.domain().map(function(d,p){return{coordinate:i(d)+l,value:o?o[d]:d,index:p,offset:l}})},e_=new WeakMap,bm=function(t,n){if(typeof n!="function")return t;e_.has(t)||e_.set(t,new WeakMap);var r=e_.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},LF=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:lh(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Rg(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:fd(),realScaleType:"point"}:o==="category"?{scale:lh(),realScaleType:"band"}:{scale:Rg(),realScaleType:"linear"};if(ip(i)){var c="scale".concat(j0(i));return{scale:(lM[c]||fd)(),realScaleType:lM[c]?c:"point"}}return We(i)?{scale:i}:{scale:fd(),realScaleType:"point"}},vM=1e-4,RF=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-vM,a=Math.max(i[0],i[1])+vM,s=t(n[0]),c=t(n[r-1]);(s<o||s>a||c<o||c>a)&&t.domain([n[0],n[r-1]])}},BSe=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},USe=function(t,n){if(!n||n.length!==2||!Ee(n[0])||!Ee(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!Ee(t[0])||t[0]<r)&&(o[0]=r),(!Ee(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},zSe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,s=0;s<n;++s){var c=Iu(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=o,t[s][r][1]=o+c,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+c,a=t[s][r][1])}},VSe=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var s=Iu(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},WSe={sign:zSe,expand:cpe,none:qc,silhouette:upe,wiggle:fpe,positive:VSe},HSe=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=WSe[r],a=lpe().keys(i).value(function(s,c){return+jt(s,c,0)}).order(O2).offset(o);return a(t)},GSe=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,c={},l=s.reduce(function(d,p){var v,g=(v=p.type)!==null&&v!==void 0&&v.defaultProps?Gt(Gt({},p.type.defaultProps),p.props):p.props,y=g.stackId,x=g.hide;if(x)return d;var b=g[r],_=d[b]||{hasStack:!1,stackGroups:{}};if(un(y)){var w=_.stackGroups[y]||{numericAxisId:r,cateAxisId:i,items:[]};w.items.push(p),_.hasStack=!0,_.stackGroups[y]=w}else _.stackGroups[os("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[p]};return Gt(Gt({},d),{},jc({},b,_))},c),f={};return Object.keys(l).reduce(function(d,p){var v=l[p];if(v.hasStack){var g={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(y,x){var b=v.stackGroups[x];return Gt(Gt({},y),{},jc({},x,{numericAxisId:r,cateAxisId:i,items:b.items,stackedData:HSe(t,b.items,o)}))},g)}return Gt(Gt({},d),{},jc({},p,v))},f)},$F=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=aSe(l,o,s);return t.domain([W0(f),Oa(f)]),{niceTicks:f}}if(o&&i==="number"){var d=t.domain(),p=sSe(d,o,s);return{niceTicks:p}}return null};function ru(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=pg(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=jt(i,ze(a)?t.dataKey:a);return ze(c)?null:t.scale(c)}var gM=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var c=jt(a,n.dataKey,n.domain[s]);return ze(c)?null:n.scale(c)-o/2+i},KSe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},qSe=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Gt(Gt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(un(o)){var a=n[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},YSe=function(t){return t.reduce(function(n,r){return[W0(r.concat([n[0]]).filter(Ee)),Oa(r.concat([n[1]]).filter(Ee))]},[1/0,-1/0])},IF=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,c=s.reduce(function(l,f){var d=YSe(f.slice(n,r+1));return[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},yM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,J2=function(t,n,r){if(We(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ee(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(yM.test(t[0])){var o=+yM.exec(t[0])[1];i[0]=n[0]-o}else We(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ee(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(bM.test(t[1])){var a=+bM.exec(t[1])[1];i[1]=n[1]+a}else We(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},zg=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=_C(n,function(d){return d.coordinate}),a=1/0,s=1,c=o.length;s<c;s++){var l=o[s],f=o[s-1];a=Math.min((l.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},_M=function(t,n,r){return!t||!t.length||qa(t,Tr(r,"type.defaultProps.domain"))?n:t},DF=function(t,n){var r=t.type.defaultProps?Gt(Gt({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,s=r.formatter,c=r.tooltipType,l=r.chartType,f=r.hide;return Gt(Gt({},De(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:KC(t),value:jt(n,i),type:c,payload:n,chartType:l,hide:f})};function gh(e){"@babel/helpers - typeof";return gh=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},gh(e)}function xM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){FF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FF(e,t,n){return t=ZSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZSe(e){var t=XSe(e,"string");return gh(t)=="symbol"?t:t+""}function XSe(e,t){if(gh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QSe(e,t){return nPe(e)||tPe(e,t)||ePe(e,t)||JSe()}function JSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ePe(e,t){if(e){if(typeof e=="string")return wM(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 wM(e,t)}}function wM(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 tPe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function nPe(e){if(Array.isArray(e))return e}var Vg=Math.PI/180,rPe=function(t){return t*180/Math.PI},St=function(t,n,r,i){return{x:t+Math.cos(-Vg*i)*r,y:n+Math.sin(-Vg*i)*r}},BF=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},iPe=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.startAngle,l=t.endAngle,f=qn(t.cx,a,a/2),d=qn(t.cy,s,s/2),p=BF(a,s,r),v=qn(t.innerRadius,p,0),g=qn(t.outerRadius,p,p*.8),y=Object.keys(n);return y.reduce(function(x,b){var _=n[b],w=_.domain,S=_.reversed,C;if(ze(_.range))i==="angleAxis"?C=[c,l]:i==="radiusAxis"&&(C=[v,g]),S&&(C=[C[1],C[0]]);else{C=_.range;var P=C,T=QSe(P,2);c=T[0],l=T[1]}var j=LF(_,o),$=j.realScaleType,M=j.scale;M.domain(w).range(C),RF(M);var I=$F(M,Oo(Oo({},_),{},{realScaleType:$})),F=Oo(Oo(Oo({},_),I),{},{range:C,radius:g,realScaleType:$,scale:M,cx:f,cy:d,innerRadius:v,outerRadius:g,startAngle:c,endAngle:l});return Oo(Oo({},x),{},FF({},b,F))},{})},oPe=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},aPe=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=oPe({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var c=(r-o)/s,l=Math.acos(c);return i>a&&(l=2*Math.PI-l),{radius:s,angle:rPe(l),angleInRadian:l}},sPe=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},lPe=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},OM=function(t,n){var r=t.x,i=t.y,o=aPe({x:r,y:i},n),a=o.radius,s=o.angle,c=n.innerRadius,l=n.outerRadius;if(a<c||a>l)return!1;if(a===0)return!0;var f=sPe(n),d=f.startAngle,p=f.endAngle,v=s,g;if(d<=p){for(;v>p;)v-=360;for(;v<d;)v+=360;g=v>=d&&v<=p}else{for(;v>d;)v-=360;for(;v<p;)v+=360;g=v>=p&&v<=d}return g?Oo(Oo({},n),{},{radius:a,angle:lPe(v,n)}):null},UF=function(t){return!N.isValidElement(t)&&!We(t)&&typeof t!="boolean"?t.className:""};function yh(e){"@babel/helpers - typeof";return yh=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},yh(e)}var cPe=["offset"];function uPe(e){return pPe(e)||hPe(e)||dPe(e)||fPe()}function fPe(){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 dPe(e,t){if(e){if(typeof e=="string")return eO(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 eO(e,t)}}function hPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pPe(e){if(Array.isArray(e))return eO(e)}function eO(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 mPe(e,t){if(e==null)return{};var n=vPe(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 vPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function SM(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 sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(r){gPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gPe(e,t,n){return t=yPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yPe(e){var t=bPe(e,"string");return yh(t)=="symbol"?t:t+""}function bPe(e,t){if(yh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bh(){return bh=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},bh.apply(this,arguments)}var _Pe=function(t){var n=t.value,r=t.formatter,i=ze(t.children)?n:t.children;return We(r)?r(i):i},xPe=function(t,n){var r=Kn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},wPe=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,c=o,l=c.cx,f=c.cy,d=c.innerRadius,p=c.outerRadius,v=c.startAngle,g=c.endAngle,y=c.clockWise,x=(d+p)/2,b=xPe(v,g),_=b>=0?1:-1,w,S;i==="insideStart"?(w=v+_*a,S=y):i==="insideEnd"?(w=g-_*a,S=!y):i==="end"&&(w=g+_*a,S=y),S=b<=0?S:!S;var C=St(l,f,x,w),P=St(l,f,x,w+(S?1:-1)*359),T="M".concat(C.x,",").concat(C.y,`
|
||
A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`,
|
||
`).concat(P.x,",").concat(P.y),j=ze(t.id)?os("recharts-radial-line-"):t.id;return V.createElement("text",bh({},r,{dominantBaseline:"central",className:Oe("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:j,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(j)},n))},OPe=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,c=o.innerRadius,l=o.outerRadius,f=o.startAngle,d=o.endAngle,p=(f+d)/2;if(i==="outside"){var v=St(a,s,l+r,p),g=v.x,y=v.y;return{x:g,y,textAnchor:g>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var x=(c+l)/2,b=St(a,s,x,p),_=b.x,w=b.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},SPe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,c=a.y,l=a.width,f=a.height,d=f>=0?1:-1,p=d*i,v=d>0?"end":"start",g=d>0?"start":"end",y=l>=0?1:-1,x=y*i,b=y>0?"end":"start",_=y>0?"start":"end";if(o==="top"){var w={x:s+l/2,y:c-d*i,textAnchor:"middle",verticalAnchor:v};return sn(sn({},w),r?{height:Math.max(c-r.y,0),width:l}:{})}if(o==="bottom"){var S={x:s+l/2,y:c+f+p,textAnchor:"middle",verticalAnchor:g};return sn(sn({},S),r?{height:Math.max(r.y+r.height-(c+f),0),width:l}:{})}if(o==="left"){var C={x:s-x,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return sn(sn({},C),r?{width:Math.max(C.x-r.x,0),height:f}:{})}if(o==="right"){var P={x:s+l+x,y:c+f/2,textAnchor:_,verticalAnchor:"middle"};return sn(sn({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:f}:{})}var T=r?{width:l,height:f}:{};return o==="insideLeft"?sn({x:s+x,y:c+f/2,textAnchor:_,verticalAnchor:"middle"},T):o==="insideRight"?sn({x:s+l-x,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},T):o==="insideTop"?sn({x:s+l/2,y:c+p,textAnchor:"middle",verticalAnchor:g},T):o==="insideBottom"?sn({x:s+l/2,y:c+f-p,textAnchor:"middle",verticalAnchor:v},T):o==="insideTopLeft"?sn({x:s+x,y:c+p,textAnchor:_,verticalAnchor:g},T):o==="insideTopRight"?sn({x:s+l-x,y:c+p,textAnchor:b,verticalAnchor:g},T):o==="insideBottomLeft"?sn({x:s+x,y:c+f-p,textAnchor:_,verticalAnchor:v},T):o==="insideBottomRight"?sn({x:s+l-x,y:c+f-p,textAnchor:b,verticalAnchor:v},T):Mu(o)&&(Ee(o.x)||Is(o.x))&&(Ee(o.y)||Is(o.y))?sn({x:s+qn(o.x,l),y:c+qn(o.y,f),textAnchor:"end",verticalAnchor:"end"},T):sn({x:s+l/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},T)},PPe=function(t){return"cx"in t&&Ee(t.cx)};function bn(e){var t=e.offset,n=t===void 0?5:t,r=mPe(e,cPe),i=sn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,c=i.children,l=i.content,f=i.className,d=f===void 0?"":f,p=i.textBreakAll;if(!o||ze(s)&&ze(c)&&!N.isValidElement(l)&&!We(l))return null;if(N.isValidElement(l))return N.cloneElement(l,i);var v;if(We(l)){if(v=N.createElement(l,i),N.isValidElement(v))return v}else v=_Pe(i);var g=PPe(o),y=De(i,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return wPe(i,v,y);var x=g?OPe(i):SPe(i);return V.createElement(ll,bh({className:Oe("recharts-label",d)},y,x,{breakAll:p}),v)}bn.displayName="Label";var zF=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,l=t.innerRadius,f=t.outerRadius,d=t.x,p=t.y,v=t.top,g=t.left,y=t.width,x=t.height,b=t.clockWise,_=t.labelViewBox;if(_)return _;if(Ee(y)&&Ee(x)){if(Ee(d)&&Ee(p))return{x:d,y:p,width:y,height:x};if(Ee(v)&&Ee(g))return{x:v,y:g,width:y,height:x}}return Ee(d)&&Ee(p)?{x:d,y:p,width:0,height:0}:Ee(n)&&Ee(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:l||0,outerRadius:f||c||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},CPe=function(t,n){return t?t===!0?V.createElement(bn,{key:"label-implicit",viewBox:n}):un(t)?V.createElement(bn,{key:"label-implicit",viewBox:n,value:t}):N.isValidElement(t)?t.type===bn?N.cloneElement(t,{key:"label-implicit",viewBox:n}):V.createElement(bn,{key:"label-implicit",content:t,viewBox:n}):We(t)?V.createElement(bn,{key:"label-implicit",content:t,viewBox:n}):Mu(t)?V.createElement(bn,bh({viewBox:n},t,{key:"label-implicit"})):null:null},EPe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=zF(t),a=Jn(i,bn).map(function(c,l){return N.cloneElement(c,{viewBox:n||o,key:"label-".concat(l)})});if(!r)return a;var s=CPe(t.label,n||o);return[s].concat(uPe(a))};bn.parseViewBox=zF;bn.renderCallByParent=EPe;function TPe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var jPe=TPe;const APe=st(jPe);function _h(e){"@babel/helpers - typeof";return _h=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},_h(e)}var kPe=["valueAccessor"],NPe=["data","dataKey","clockWise","id","textBreakAll"];function MPe(e){return IPe(e)||$Pe(e)||RPe(e)||LPe()}function LPe(){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 RPe(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 $Pe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IPe(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 Wg(){return Wg=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},Wg.apply(this,arguments)}function PM(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 CM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PM(Object(n),!0).forEach(function(r){DPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DPe(e,t,n){return t=FPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FPe(e){var t=BPe(e,"string");return _h(t)=="symbol"?t:t+""}function BPe(e,t){if(_h(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_h(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EM(e,t){if(e==null)return{};var n=UPe(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 UPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var zPe=function(t){return Array.isArray(t.value)?APe(t.value):t.value};function Ni(e){var t=e.valueAccessor,n=t===void 0?zPe:t,r=EM(e,kPe),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,c=r.textBreakAll,l=EM(r,NPe);return!i||!i.length?null:V.createElement(Xe,{className:"recharts-label-list"},i.map(function(f,d){var p=ze(o)?n(f,d):jt(f&&f.payload,o),v=ze(s)?{}:{id:"".concat(s,"-").concat(d)};return V.createElement(bn,Wg({},De(f,!0),l,v,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:bn.parseViewBox(ze(a)?f:CM(CM({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Ni.displayName="LabelList";function VPe(e,t){return e?e===!0?V.createElement(Ni,{key:"labelList-implicit",data:t}):V.isValidElement(e)||We(e)?V.createElement(Ni,{key:"labelList-implicit",data:t,content:e}):Mu(e)?V.createElement(Ni,Wg({data:t},e,{key:"labelList-implicit"})):null:null}function WPe(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=Jn(r,Ni).map(function(a,s){return N.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=VPe(e.label,t);return[o].concat(MPe(i))}Ni.renderCallByParent=WPe;function xh(e){"@babel/helpers - typeof";return xh=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},xh(e)}function nO(){return nO=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},nO.apply(this,arguments)}function TM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TM(Object(n),!0).forEach(function(r){HPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HPe(e,t,n){return t=GPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GPe(e){var t=KPe(e,"string");return xh(t)=="symbol"?t:t+""}function KPe(e,t){if(xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qPe=function(t,n){var r=Kn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},_m=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,c=t.cornerRadius,l=t.cornerIsExternal,f=c*(s?1:-1)+i,d=Math.asin(c/f)/Vg,p=l?o:o+a*d,v=St(n,r,f,p),g=St(n,r,i,p),y=l?o-a*d:o,x=St(n,r,f*Math.cos(d*Vg),y);return{center:v,circleTangency:g,lineTangency:x,theta:d}},VF=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,c=qPe(a,s),l=a+c,f=St(n,r,o,a),d=St(n,r,o,l),p="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(a>l),`,
|
||
`).concat(d.x,",").concat(d.y,`
|
||
`);if(i>0){var v=St(n,r,i,a),g=St(n,r,i,l);p+="L ".concat(g.x,",").concat(g.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(a<=l),`,
|
||
`).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},YPe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,d=Kn(f-l),p=_m({cx:n,cy:r,radius:o,angle:l,sign:d,cornerRadius:a,cornerIsExternal:c}),v=p.circleTangency,g=p.lineTangency,y=p.theta,x=_m({cx:n,cy:r,radius:o,angle:f,sign:-d,cornerRadius:a,cornerIsExternal:c}),b=x.circleTangency,_=x.lineTangency,w=x.theta,S=c?Math.abs(l-f):Math.abs(l-f)-y-w;if(S<0)return s?"M ".concat(g.x,",").concat(g.y,`
|
||
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
||
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
||
`):VF({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:f});var C="M ".concat(g.x,",").concat(g.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(S>180),",").concat(+(d<0),",").concat(b.x,",").concat(b.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(_.x,",").concat(_.y,`
|
||
`);if(i>0){var P=_m({cx:n,cy:r,radius:i,angle:l,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),T=P.circleTangency,j=P.lineTangency,$=P.theta,M=_m({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),I=M.circleTangency,F=M.lineTangency,q=M.theta,H=c?Math.abs(l-f):Math.abs(l-f)-$-q;if(H<0&&a===0)return"".concat(C,"L").concat(n,",").concat(r,"Z");C+="L".concat(F.x,",").concat(F.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(I.x,",").concat(I.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(H>180),",").concat(+(d>0),",").concat(T.x,",").concat(T.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(j.x,",").concat(j.y,"Z")}else C+="L".concat(n,",").concat(r,"Z");return C},ZPe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},WF=function(t){var n=jM(jM({},ZPe),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,p=n.className;if(a<o||f===d)return null;var v=Oe("recharts-sector",p),g=a-o,y=qn(s,g,0,!0),x;return y>0&&Math.abs(f-d)<360?x=YPe({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(y,g/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:f,endAngle:d}):x=VF({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:d}),V.createElement("path",nO({},De(n,!0),{className:v,d:x,role:"img"}))};function wh(e){"@babel/helpers - typeof";return wh=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},wh(e)}function rO(){return rO=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},rO.apply(this,arguments)}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 kM(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){XPe(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 XPe(e,t,n){return t=QPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QPe(e){var t=JPe(e,"string");return wh(t)=="symbol"?t:t+""}function JPe(e,t){if(wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NM={curveBasisClosed:Xhe,curveBasisOpen:Qhe,curveBasis:Zhe,curveBumpX:$he,curveBumpY:Ihe,curveLinearClosed:Jhe,curveLinear:k0,curveMonotoneX:epe,curveMonotoneY:tpe,curveNatural:npe,curveStep:rpe,curveStepAfter:ope,curveStepBefore:ipe},xm=function(t){return t.x===+t.x&&t.y===+t.y},Mf=function(t){return t.x},Lf=function(t){return t.y},eCe=function(t,n){if(We(t))return t;var r="curve".concat(j0(t));return(r==="curveMonotone"||r==="curveBump")&&n?NM["".concat(r).concat(n==="vertical"?"Y":"X")]:NM[r]||k0},tCe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,c=t.connectNulls,l=c===void 0?!1:c,f=eCe(r,s),d=l?o.filter(function(y){return xm(y)}):o,p;if(Array.isArray(a)){var v=l?a.filter(function(y){return xm(y)}):a,g=d.map(function(y,x){return kM(kM({},y),{},{base:v[x]})});return s==="vertical"?p=fm().y(Lf).x1(Mf).x0(function(y){return y.base.x}):p=fm().x(Mf).y1(Lf).y0(function(y){return y.base.y}),p.defined(xm).curve(f),p(g)}return s==="vertical"&&Ee(a)?p=fm().y(Lf).x1(Mf).x0(a):Ee(a)?p=fm().x(Mf).y1(Lf).y0(a):p=D5().x(Mf).y(Lf),p.defined(xm).curve(f),p(d)},Fa=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?tCe(t):i;return V.createElement("path",rO({},De(t,!1),mg(t),{className:Oe("recharts-curve",n),d:a,ref:o}))},nCe=Object.getOwnPropertyNames,rCe=Object.getOwnPropertySymbols,iCe=Object.prototype.hasOwnProperty;function MM(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function wm(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var o=i.cache,a=o.get(n),s=o.get(r);if(a&&s)return a===r&&s===n;o.set(n,r),o.set(r,n);var c=e(n,r,i);return o.delete(n),o.delete(r),c}}function LM(e){return nCe(e).concat(rCe(e))}var HF=Object.hasOwn||function(e,t){return iCe.call(e,t)};function Hu(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var GF="_owner",RM=Object.getOwnPropertyDescriptor,$M=Object.keys;function oCe(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 aCe(e,t){return Hu(e.getTime(),t.getTime())}function IM(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 c=t.entries(),l=!1,f=0;(s=c.next())&&!s.done;){var d=a.value,p=d[0],v=d[1],g=s.value,y=g[0],x=g[1];!l&&!r[f]&&(l=n.equals(p,y,o,f,e,t,n)&&n.equals(v,x,p,y,e,t,n))&&(r[f]=!0),f++}if(!l)return!1;o++}return!0}function sCe(e,t,n){var r=$M(e),i=r.length;if($M(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===GF&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!HF(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function Rf(e,t,n){var r=LM(e),i=r.length;if(LM(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===GF&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!HF(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=RM(e,o),s=RM(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function lCe(e,t){return Hu(e.valueOf(),t.valueOf())}function cCe(e,t){return e.source===t.source&&e.flags===t.flags}function DM(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(),c=!1,l=0;(a=s.next())&&!a.done;)!c&&!r[l]&&(c=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[l]=!0),l++;if(!c)return!1}return!0}function uCe(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 fCe="[object Arguments]",dCe="[object Boolean]",hCe="[object Date]",pCe="[object Map]",mCe="[object Number]",vCe="[object Object]",gCe="[object RegExp]",yCe="[object Set]",bCe="[object String]",_Ce=Array.isArray,FM=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,BM=Object.assign,xCe=Object.prototype.toString.call.bind(Object.prototype.toString);function wCe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(f,d,p){if(f===d)return!0;if(f==null||d==null||typeof f!="object"||typeof d!="object")return f!==f&&d!==d;var v=f.constructor;if(v!==d.constructor)return!1;if(v===Object)return i(f,d,p);if(_Ce(f))return t(f,d,p);if(FM!=null&&FM(f))return c(f,d,p);if(v===Date)return n(f,d,p);if(v===RegExp)return a(f,d,p);if(v===Map)return r(f,d,p);if(v===Set)return s(f,d,p);var g=xCe(f);return g===hCe?n(f,d,p):g===gCe?a(f,d,p):g===pCe?r(f,d,p):g===yCe?s(f,d,p):g===vCe?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,p):g===fCe?i(f,d,p):g===dCe||g===mCe||g===bCe?o(f,d,p):!1}}function OCe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Rf:oCe,areDatesEqual:aCe,areMapsEqual:r?MM(IM,Rf):IM,areObjectsEqual:r?Rf:sCe,arePrimitiveWrappersEqual:lCe,areRegExpsEqual:cCe,areSetsEqual:r?MM(DM,Rf):DM,areTypedArraysEqual:r?Rf:uCe};if(n&&(i=BM({},i,n(i))),t){var o=wm(i.areArraysEqual),a=wm(i.areMapsEqual),s=wm(i.areObjectsEqual),c=wm(i.areSetsEqual);i=BM({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function SCe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function PCe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(c,l){var f=r(),d=f.cache,p=d===void 0?t?new WeakMap:void 0:d,v=f.meta;return n(c,l,{cache:p,equals:i,meta:v,strict:o})};if(t)return function(c,l){return n(c,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(c,l){return n(c,l,a)}}var CCe=ls();ls({strict:!0});ls({circular:!0});ls({circular:!0,strict:!0});ls({createInternalComparator:function(){return Hu}});ls({strict:!0,createInternalComparator:function(){return Hu}});ls({circular:!0,createInternalComparator:function(){return Hu}});ls({circular:!0,createInternalComparator:function(){return Hu},strict:!0});function ls(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=OCe(e),c=wCe(s),l=r?r(c):SCe(c);return PCe({circular:n,comparator:c,createState:i,equals:l,strict:a})}function ECe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function UM(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):ECe(i)};requestAnimationFrame(r)}function iO(e){"@babel/helpers - typeof";return iO=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},iO(e)}function TCe(e){return NCe(e)||kCe(e)||ACe(e)||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 ACe(e,t){if(e){if(typeof e=="string")return zM(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 zM(e,t)}}function zM(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 kCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NCe(e){if(Array.isArray(e))return e}function MCe(){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=TCe(a),c=s[0],l=s.slice(1);if(typeof c=="number"){UM(i.bind(null,l),c);return}i(c),UM(i.bind(null,l));return}iO(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Oh(e){"@babel/helpers - typeof";return Oh=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},Oh(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 WM(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){KF(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 KF(e,t,n){return t=LCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LCe(e){var t=RCe(e,"string");return Oh(t)==="symbol"?t:String(t)}function RCe(e,t){if(Oh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $Ce=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},ICe=function(t){return t},DCe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},hd=function(t,n){return Object.keys(n).reduce(function(r,i){return WM(WM({},r),{},KF({},i,t(i,n[i])))},{})},HM=function(t,n,r){return t.map(function(i){return"".concat(DCe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function FCe(e,t){return zCe(e)||UCe(e,t)||qF(e,t)||BCe()}function BCe(){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){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function zCe(e){if(Array.isArray(e))return e}function VCe(e){return GCe(e)||HCe(e)||qF(e)||WCe()}function WCe(){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 qF(e,t){if(e){if(typeof e=="string")return oO(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 oO(e,t)}}function HCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GCe(e){if(Array.isArray(e))return oO(e)}function oO(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 Hg=1e-4,YF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},ZF=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},GM=function(t,n){return function(r){var i=YF(t,n);return ZF(i,r)}},KCe=function(t,n){return function(r){var i=YF(t,n),o=[].concat(VCe(i.map(function(a,s){return a*s}).slice(1)),[0]);return ZF(o,r)}},KM=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var l=c[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),f=FCe(l,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var d=GM(i,a),p=GM(o,s),v=KCe(i,a),g=function(b){return b>1?1:b<0?0:b},y=function(b){for(var _=b>1?1:b,w=_,S=0;S<8;++S){var C=d(w)-_,P=v(w);if(Math.abs(C-_)<Hg||P<Hg)return p(w);w=g(w-C/P)}return p(w)};return y.isStepper=!1,y},qCe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,c=function(f,d,p){var v=-(f-d)*r,g=p*o,y=p+(v-g)*s/1e3,x=p*s/1e3+f;return Math.abs(x-d)<Hg&&Math.abs(y)<Hg?[d,0]:[x,y]};return c.isStepper=!0,c.dt=s,c},YCe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return KM(i);case"spring":return qCe();default:if(i.split("(")[0]==="cubic-bezier")return KM(i)}return typeof i=="function"?i:null};function Sh(e){"@babel/helpers - typeof";return Sh=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},Sh(e)}function qM(e){return QCe(e)||XCe(e)||XF(e)||ZCe()}function ZCe(){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 XCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QCe(e){if(Array.isArray(e))return sO(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 jn(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){aO(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 aO(e,t,n){return t=JCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JCe(e){var t=eEe(e,"string");return Sh(t)==="symbol"?t:String(t)}function eEe(e,t){if(Sh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tEe(e,t){return iEe(e)||rEe(e,t)||XF(e,t)||nEe()}function nEe(){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 XF(e,t){if(e){if(typeof e=="string")return sO(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 sO(e,t)}}function sO(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 rEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function iEe(e){if(Array.isArray(e))return e}var Gg=function(t,n,r){return t+(n-t)*r},lO=function(t){var n=t.from,r=t.to;return n!==r},oEe=function e(t,n,r){var i=hd(function(o,a){if(lO(a)){var s=t(a.from,a.to,a.velocity),c=tEe(s,2),l=c[0],f=c[1];return jn(jn({},a),{},{from:l,velocity:f})}return a},n);return r<1?hd(function(o,a){return lO(a)?jn(jn({},a),{},{velocity:Gg(a.velocity,i[o].velocity,r),from:Gg(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const aEe=function(e,t,n,r,i){var o=$Ce(e,t),a=o.reduce(function(x,b){return jn(jn({},x),{},aO({},b,[e[b],t[b]]))},{}),s=o.reduce(function(x,b){return jn(jn({},x),{},aO({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,l,f,d=function(){return null},p=function(){return hd(function(b,_){return _.from},s)},v=function(){return!Object.values(s).filter(lO).length},g=function(b){l||(l=b);var _=b-l,w=_/n.dt;s=oEe(n,s,w),i(jn(jn(jn({},e),t),p())),l=b,v()||(c=requestAnimationFrame(d))},y=function(b){f||(f=b);var _=(b-f)/r,w=hd(function(C,P){return Gg.apply(void 0,qM(P).concat([n(_)]))},a);if(i(jn(jn(jn({},e),t),w)),_<1)c=requestAnimationFrame(d);else{var S=hd(function(C,P){return Gg.apply(void 0,qM(P).concat([n(1)]))},a);i(jn(jn(jn({},e),t),S))}};return d=n.isStepper?g:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function iu(e){"@babel/helpers - typeof";return iu=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},iu(e)}var sEe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function lEe(e,t){if(e==null)return{};var n=cEe(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 cEe(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 t_(e){return hEe(e)||dEe(e)||fEe(e)||uEe()}function uEe(){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 fEe(e,t){if(e){if(typeof e=="string")return cO(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 cO(e,t)}}function dEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hEe(e){if(Array.isArray(e))return cO(e)}function cO(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 ZM(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 bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZM(Object(n),!0).forEach(function(r){Gf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gf(e,t,n){return t=QF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QF(r.key),r)}}function vEe(e,t,n){return t&&mEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QF(e){var t=gEe(e,"string");return iu(t)==="symbol"?t:String(t)}function gEe(e,t){if(iu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(iu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yEe(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 bEe(e){var t=_Ee();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 fO(this,i)}}function fO(e,t){if(t&&(iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dO(e)}function dO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Ee(){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 fi=function(e){yEe(n,e);var t=bEe(n);function n(r,i){var o;pEe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,c=a.attributeName,l=a.from,f=a.to,d=a.steps,p=a.children,v=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(dO(o)),o.changeStyle=o.changeStyle.bind(dO(o)),!s||v<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),fO(o);if(d&&d.length)o.state={style:d[0].style};else if(l){if(typeof p=="function")return o.state={style:l},fO(o);o.state={style:c?Gf({},c,l):l}}else o.state={style:{}};return o}return vEe(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,c=o.attributeName,l=o.shouldReAnimate,f=o.to,d=o.from,p=this.state.style;if(s){if(!a){var v={style:c?Gf({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(v);return}if(!(CCe(i.to,f)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=g||l?d:i.to;if(this.state&&p){var x={style:c?Gf({},c,y):y};(c&&p[c]!==y||!c&&p!==y)&&this.setState(x)}this.runAnimation(bi(bi({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,l=i.easing,f=i.begin,d=i.onAnimationEnd,p=i.onAnimationStart,v=aEe(a,s,YCe(l),c,this.changeStyle),g=function(){o.stopJSAnimation=v()};this.manager.start([p,f,g,c,d])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,c=i.onAnimationStart,l=a[0],f=l.style,d=l.duration,p=d===void 0?0:d,v=function(y,x,b){if(b===0)return y;var _=x.duration,w=x.easing,S=w===void 0?"ease":w,C=x.style,P=x.properties,T=x.onAnimationEnd,j=b>0?a[b-1]:x,$=P||Object.keys(C);if(typeof S=="function"||S==="spring")return[].concat(t_(y),[o.runJSAnimation.bind(o,{from:j.style,to:C,duration:_,easing:S}),_]);var M=HM($,_,S),I=bi(bi(bi({},j.style),C),{},{transition:M});return[].concat(t_(y),[I,_,T]).filter(ICe)};return this.manager.start([c].concat(t_(a.reduce(v,[f,Math.max(p,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=MCe());var o=i.begin,a=i.duration,s=i.attributeName,c=i.to,l=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,p=i.steps,v=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof l=="function"||typeof v=="function"||l==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var y=s?Gf({},s,c):c,x=HM(Object.keys(y),a,l);g.start([f,o,bi(bi({},y),{},{transition:x}),a,d])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=lEe(i,sEe),l=N.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||l===0||a<=0)return o;var d=function(v){var g=v.props,y=g.style,x=y===void 0?{}:y,b=g.className,_=N.cloneElement(v,bi(bi({},c),{},{style:bi(bi({},x),f),className:b}));return _};return l===1?d(N.Children.only(o)):V.createElement("div",null,N.Children.map(o,function(p){return d(p)}))}}]),n}(N.PureComponent);fi.displayName="Animate";fi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};fi.propTypes={from:D.oneOfType([D.object,D.string]),to:D.oneOfType([D.object,D.string]),attributeName:D.string,duration:D.number,begin:D.number,easing:D.oneOfType([D.string,D.func]),steps:D.arrayOf(D.shape({duration:D.number.isRequired,style:D.object.isRequired,easing:D.oneOfType([D.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),D.func]),properties:D.arrayOf("string"),onAnimationEnd:D.func})),children:D.oneOfType([D.node,D.func]),isActive:D.bool,canBegin:D.bool,onAnimationEnd:D.func,shouldReAnimate:D.bool,onAnimationStart:D.func,onAnimationReStart:D.func};D.object,D.object,D.object,D.element;D.object,D.object,D.object,D.oneOfType([D.array,D.element]),D.any;function Ph(e){"@babel/helpers - typeof";return Ph=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},Ph(e)}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 xEe(e,t){return PEe(e)||SEe(e,t)||OEe(e,t)||wEe()}function wEe(){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 OEe(e,t){if(e){if(typeof e=="string")return XM(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 XM(e,t)}}function XM(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 SEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function PEe(e){if(Array.isArray(e))return e}function QM(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 JM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(n),!0).forEach(function(r){CEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CEe(e,t,n){return t=EEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EEe(e){var t=TEe(e,"string");return Ph(t)=="symbol"?t:t+""}function TEe(e,t){if(Ph(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ph(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eL=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,c=r>=0?1:-1,l=i>=0&&r>=0||i<0&&r<0?1:0,f;if(a>0&&o instanceof Array){for(var d=[0,0,0,0],p=0,v=4;p<v;p++)d[p]=o[p]>a?a:o[p];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(l,",").concat(t+c*d[0],",").concat(n)),f+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(l,`,
|
||
`).concat(t+r,",").concat(n+s*d[1])),f+="L ".concat(t+r,",").concat(n+i-s*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(l,`,
|
||
`).concat(t+r-c*d[2],",").concat(n+i)),f+="L ".concat(t+c*d[3],",").concat(n+i),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(l,`,
|
||
`).concat(t,",").concat(n+i-s*d[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var g=Math.min(a,o);f="M ".concat(t,",").concat(n+s*g,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+c*g,",").concat(n,`
|
||
L `).concat(t+r-c*g,",").concat(n,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+r,",").concat(n+s*g,`
|
||
L `).concat(t+r,",").concat(n+i-s*g,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+r-c*g,",").concat(n+i,`
|
||
L `).concat(t+c*g,",").concat(n+i,`
|
||
A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t,",").concat(n+i-s*g," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},jEe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var l=Math.min(o,o+s),f=Math.max(o,o+s),d=Math.min(a,a+c),p=Math.max(a,a+c);return r>=l&&r<=f&&i>=d&&i<=p}return!1},AEe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qC=function(t){var n=JM(JM({},AEe),t),r=N.useRef(),i=N.useState(-1),o=xEe(i,2),a=o[0],s=o[1];N.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var c=n.x,l=n.y,f=n.width,d=n.height,p=n.radius,v=n.className,g=n.animationEasing,y=n.animationDuration,x=n.animationBegin,b=n.isAnimationActive,_=n.isUpdateAnimationActive;if(c!==+c||l!==+l||f!==+f||d!==+d||f===0||d===0)return null;var w=Oe("recharts-rectangle",v);return _?V.createElement(fi,{canBegin:a>0,from:{width:f,height:d,x:c,y:l},to:{width:f,height:d,x:c,y:l},duration:y,animationEasing:g,isActive:_},function(S){var C=S.width,P=S.height,T=S.x,j=S.y;return V.createElement(fi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:y,isActive:b,easing:g},V.createElement("path",qg({},De(n,!0),{className:w,d:eL(T,j,C,P,p),ref:r})))}):V.createElement("path",qg({},De(n,!0),{className:w,d:eL(c,l,f,d,p)}))},kEe=["points","className","baseLinePoints","connectNulls"];function pc(){return pc=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},pc.apply(this,arguments)}function NEe(e,t){if(e==null)return{};var n=MEe(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 MEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tL(e){return IEe(e)||$Ee(e)||REe(e)||LEe()}function LEe(){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 REe(e,t){if(e){if(typeof e=="string")return hO(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 hO(e,t)}}function $Ee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IEe(e){if(Array.isArray(e))return hO(e)}function hO(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 nL=function(t){return t&&t.x===+t.x&&t.y===+t.y},DEe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){nL(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),nL(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},pd=function(t,n){var r=DEe(t);n&&(r=[r.reduce(function(o,a){return[].concat(tL(o),tL(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,c){return"".concat(a).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},FEe=function(t,n,r){var i=pd(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(pd(n.reverse(),r).slice(1))},BEe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=NEe(t,kEe);if(!n||!n.length)return null;var s=Oe("recharts-polygon",r);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",l=FEe(n,i,o);return V.createElement("g",{className:s},V.createElement("path",pc({},De(a,!0),{fill:l.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:l})),c?V.createElement("path",pc({},De(a,!0),{fill:"none",d:pd(n,o)})):null,c?V.createElement("path",pc({},De(a,!0),{fill:"none",d:pd(i,o)})):null)}var f=pd(n,o);return V.createElement("path",pc({},De(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};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 up=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=Oe("recharts-dot",o);return n===+n&&r===+r&&i===+i?V.createElement("circle",pO({},De(t,!1),mg(t),{className:a,cx:n,cy:r,r:i})):null};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)}var UEe=["x","y","top","left","width","height","className"];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 rL(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 zEe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(n),!0).forEach(function(r){VEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VEe(e,t,n){return t=WEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WEe(e){var t=HEe(e,"string");return Ch(t)=="symbol"?t:t+""}function HEe(e,t){if(Ch(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ch(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GEe(e,t){if(e==null)return{};var n=KEe(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 KEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var qEe=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},YEe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,c=t.left,l=c===void 0?0:c,f=t.width,d=f===void 0?0:f,p=t.height,v=p===void 0?0:p,g=t.className,y=GEe(t,UEe),x=zEe({x:r,y:o,top:s,left:l,width:d,height:v},y);return!Ee(r)||!Ee(o)||!Ee(d)||!Ee(v)||!Ee(s)||!Ee(l)?null:V.createElement("path",mO({},De(x,!0),{className:Oe("recharts-cross",g),d:qEe(r,o,d,v,s,l)}))},ZEe=V0,XEe=dF,QEe=vo;function JEe(e,t){return e&&e.length?ZEe(e,QEe(t),XEe):void 0}var eTe=JEe;const tTe=st(eTe);var nTe=V0,rTe=vo,iTe=hF;function oTe(e,t){return e&&e.length?nTe(e,rTe(t),iTe):void 0}var aTe=oTe;const sTe=st(aTe);var lTe=["cx","cy","angle","ticks","axisLine"],cTe=["ticks","tick","angle","tickFormatter","stroke"];function ou(e){"@babel/helpers - typeof";return ou=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},ou(e)}function md(){return md=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},md.apply(this,arguments)}function iL(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 gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iL(Object(n),!0).forEach(function(r){K0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oL(e,t){if(e==null)return{};var n=uTe(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 uTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aL(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,e7(r.key),r)}}function dTe(e,t,n){return t&&aL(e.prototype,t),n&&aL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hTe(e,t,n){return t=Yg(t),pTe(e,JF()?Reflect.construct(t,n||[],Yg(e).constructor):t.apply(e,n))}function pTe(e,t){if(t&&(ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mTe(e)}function mTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JF=function(){return!!e})()}function Yg(e){return Yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yg(e)}function vTe(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 K0(e,t,n){return t=e7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e7(e){var t=gTe(e,"string");return ou(t)=="symbol"?t:t+""}function gTe(e,t){if(ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q0=function(e){function t(){return fTe(this,t),hTe(this,t,arguments)}return vTe(t,e),dTe(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,c=o.cy;return St(s,c,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,c=tTe(s,function(f){return f.coordinate||0}),l=sTe(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:l.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,c=r.axisLine,l=oL(r,lTe),f=s.reduce(function(g,y){return[Math.min(g[0],y.coordinate),Math.max(g[1],y.coordinate)]},[1/0,-1/0]),d=St(i,o,f[0],a),p=St(i,o,f[1],a),v=gs(gs(gs({},De(l,!1)),{},{fill:"none"},De(c,!1)),{},{x1:d.x,y1:d.y,x2:p.x,y2:p.y});return V.createElement("line",md({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,c=i.tickFormatter,l=i.stroke,f=oL(i,cTe),d=this.getTickTextAnchor(),p=De(f,!1),v=De(a,!1),g=o.map(function(y,x){var b=r.getTickValueCoord(y),_=gs(gs(gs(gs({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},p),{},{stroke:"none",fill:l},v),{},{index:x},b),{},{payload:y});return V.createElement(Xe,md({className:Oe("recharts-polar-radius-axis-tick",UF(a)),key:"tick-".concat(y.coordinate)},Ka(r.props,y,x)),t.renderTickItem(a,_,c?c(y.value,x):y.value))});return V.createElement(Xe,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:V.createElement(Xe,{className:Oe("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),bn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):We(r)?a=r(i):a=V.createElement(ll,md({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(N.PureComponent);K0(q0,"displayName","PolarRadiusAxis");K0(q0,"axisType","radiusAxis");K0(q0,"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 au(e){"@babel/helpers - typeof";return au=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},au(e)}function As(){return As=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},As.apply(this,arguments)}function sL(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 ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sL(Object(n),!0).forEach(function(r){Y0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(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,n7(r.key),r)}}function bTe(e,t,n){return t&&lL(e.prototype,t),n&&lL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Te(e,t,n){return t=Zg(t),xTe(e,t7()?Reflect.construct(t,n||[],Zg(e).constructor):t.apply(e,n))}function xTe(e,t){if(t&&(au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wTe(e)}function wTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t7=function(){return!!e})()}function Zg(e){return Zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zg(e)}function OTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 Y0(e,t,n){return t=n7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n7(e){var t=STe(e,"string");return au(t)=="symbol"?t:t+""}function STe(e,t){if(au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PTe=Math.PI/180,cL=1e-5,Z0=function(e){function t(){return yTe(this,t),_Te(this,t,arguments)}return OTe(t,e),bTe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,c=i.orientation,l=i.tickSize,f=l||8,d=St(o,a,s,r.coordinate),p=St(o,a,s+(c==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*PTe),a;return o>cL?a=i==="outer"?"start":"end":o<-cL?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,c=r.axisLineType,l=ys(ys({},De(this.props,!1)),{},{fill:"none"},De(s,!1));if(c==="circle")return V.createElement(up,As({className:"recharts-polar-angle-axis-line"},l,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(p){return St(i,o,a,p.coordinate)});return V.createElement(BEe,As({className:"recharts-polar-angle-axis-line"},l,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,c=i.tickFormatter,l=i.stroke,f=De(this.props,!1),d=De(a,!1),p=ys(ys({},f),{},{fill:"none"},De(s,!1)),v=o.map(function(g,y){var x=r.getTickLineCoord(g),b=r.getTickTextAnchor(g),_=ys(ys(ys({textAnchor:b},f),{},{stroke:"none",fill:l},d),{},{index:y,payload:g,x:x.x2,y:x.y2});return V.createElement(Xe,As({className:Oe("recharts-polar-angle-axis-tick",UF(a)),key:"tick-".concat(g.coordinate)},Ka(r.props,g,y)),s&&V.createElement("line",As({className:"recharts-polar-angle-axis-tick-line"},p,x)),a&&t.renderTickItem(a,_,c?c(g.value,y):g.value))});return V.createElement(Xe,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:V.createElement(Xe,{className:Oe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):We(r)?a=r(i):a=V.createElement(ll,As({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(N.PureComponent);Y0(Z0,"displayName","PolarAngleAxis");Y0(Z0,"axisType","angleAxis");Y0(Z0,"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 CTe=l8,ETe=CTe(Object.getPrototypeOf,Object),TTe=ETe,jTe=ta,ATe=TTe,kTe=na,NTe="[object Object]",MTe=Function.prototype,LTe=Object.prototype,r7=MTe.toString,RTe=LTe.hasOwnProperty,$Te=r7.call(Object);function ITe(e){if(!kTe(e)||jTe(e)!=NTe)return!1;var t=ATe(e);if(t===null)return!0;var n=RTe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&r7.call(n)==$Te}var DTe=ITe;const FTe=st(DTe);var BTe=ta,UTe=na,zTe="[object Boolean]";function VTe(e){return e===!0||e===!1||UTe(e)&&BTe(e)==zTe}var WTe=VTe;const HTe=st(WTe);function Eh(e){"@babel/helpers - typeof";return Eh=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},Eh(e)}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 GTe(e,t){return ZTe(e)||YTe(e,t)||qTe(e,t)||KTe()}function KTe(){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 uL(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 uL(e,t)}}function uL(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 YTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function ZTe(e){if(Array.isArray(e))return e}function fL(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 dL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(n),!0).forEach(function(r){XTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XTe(e,t,n){return t=QTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QTe(e){var t=JTe(e,"string");return Eh(t)=="symbol"?t:t+""}function JTe(e,t){if(Eh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hL=function(t,n,r,i,o){var a=r-i,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+o),s+="L ".concat(t+r-a/2-i,",").concat(n+o),s+="L ".concat(t,",").concat(n," Z"),s},eje={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},tje=function(t){var n=dL(dL({},eje),t),r=N.useRef(),i=N.useState(-1),o=GTe(i,2),a=o[0],s=o[1];N.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&s(w)}catch{}},[]);var c=n.x,l=n.y,f=n.upperWidth,d=n.lowerWidth,p=n.height,v=n.className,g=n.animationEasing,y=n.animationDuration,x=n.animationBegin,b=n.isUpdateAnimationActive;if(c!==+c||l!==+l||f!==+f||d!==+d||p!==+p||f===0&&d===0||p===0)return null;var _=Oe("recharts-trapezoid",v);return b?V.createElement(fi,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:f,lowerWidth:d,height:p,x:c,y:l},duration:y,animationEasing:g,isActive:b},function(w){var S=w.upperWidth,C=w.lowerWidth,P=w.height,T=w.x,j=w.y;return V.createElement(fi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:y,easing:g},V.createElement("path",Xg({},De(n,!0),{className:_,d:hL(T,j,S,C,P),ref:r})))}):V.createElement("g",null,V.createElement("path",Xg({},De(n,!0),{className:_,d:hL(c,l,f,d,p)})))},nje=["option","shapeType","propTransformer","activeClassName","isActive"];function Th(e){"@babel/helpers - typeof";return Th=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},Th(e)}function rje(e,t){if(e==null)return{};var n=ije(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 ije(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pL(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 Qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pL(Object(n),!0).forEach(function(r){oje(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oje(e,t,n){return t=aje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aje(e){var t=sje(e,"string");return Th(t)=="symbol"?t:t+""}function sje(e,t){if(Th(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lje(e,t){return Qg(Qg({},t),e)}function cje(e,t){return e==="symbols"}function mL(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return V.createElement(qC,n);case"trapezoid":return V.createElement(tje,n);case"sector":return V.createElement(WF,n);case"symbols":if(cje(t))return V.createElement(M0,n);break;default:return null}}function uje(e){return N.isValidElement(e)?e.props:e}function Jg(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?lje:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,c=rje(e,nje),l;if(N.isValidElement(t))l=N.cloneElement(t,Qg(Qg({},c),uje(t)));else if(We(t))l=t(c);else if(FTe(t)&&!HTe(t)){var f=i(t,c);l=V.createElement(mL,{shapeType:n,elementProps:f})}else{var d=c;l=V.createElement(mL,{shapeType:n,elementProps:d})}return s?V.createElement(Xe,{className:a},l):l}function X0(e,t){return t!=null&&"trapezoids"in e.props}function Q0(e,t){return t!=null&&"sectors"in e.props}function jh(e,t){return t!=null&&"points"in e.props}function fje(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 dje(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function hje(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function pje(e,t){var n;return X0(e,t)?n=fje:Q0(e,t)?n=dje:jh(e,t)&&(n=hje),n}function mje(e,t){var n;return X0(e,t)?n="trapezoids":Q0(e,t)?n="sectors":jh(e,t)&&(n="points"),n}function vje(e,t){if(X0(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(Q0(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 jh(e,t)?t.payload:{}}function gje(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=mje(n,t),o=vje(n,t),a=r.filter(function(c,l){var f=qa(o,c),d=n.props[i].filter(function(g){var y=pje(n,t);return y(g,t)}),p=n.props[i].indexOf(d[d.length-1]),v=l===p;return f&&v}),s=r.indexOf(a[a.length-1]);return s}var Jm;function su(e){"@babel/helpers - typeof";return su=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},su(e)}function mc(){return mc=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},mc.apply(this,arguments)}function vL(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 xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vL(Object(n),!0).forEach(function(r){Qr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gL(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,o7(r.key),r)}}function bje(e,t,n){return t&&gL(e.prototype,t),n&&gL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _je(e,t,n){return t=ey(t),xje(e,i7()?Reflect.construct(t,n||[],ey(e).constructor):t.apply(e,n))}function xje(e,t){if(t&&(su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wje(e)}function wje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i7=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function Oje(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&&yO(e,t)}function yO(e,t){return yO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yO(e,t)}function Qr(e,t,n){return t=o7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o7(e){var t=Sje(e,"string");return su(t)=="symbol"?t:t+""}function Sje(e,t){if(su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uo=function(e){function t(n){var r;return yje(this,t),r=_je(this,t,[n]),Qr(r,"pieRef",null),Qr(r,"sectorRefs",[]),Qr(r,"id",os("recharts-pie-")),Qr(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),We(i)&&i()}),Qr(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),We(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Oje(t,e),bje(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,c=o.dataKey,l=o.valueKey,f=De(this.props,!1),d=De(a,!1),p=De(s,!1),v=a&&a.offsetRadius||20,g=r.map(function(y,x){var b=(y.startAngle+y.endAngle)/2,_=St(y.cx,y.cy,y.outerRadius+v,b),w=xt(xt(xt(xt({},f),y),{},{stroke:"none"},d),{},{index:x,textAnchor:t.getTextAnchor(_.x,y.cx)},_),S=xt(xt(xt(xt({},f),y),{},{fill:"none",stroke:y.fill},p),{},{index:x,points:[St(y.cx,y.cy,y.outerRadius,b),_]}),C=c;return ze(c)&&ze(l)?C="value":ze(c)&&(C=l),V.createElement(Xe,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(x)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(a,w,jt(y,C)))});return V.createElement(Xe,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,c=o.inactiveShape;return r.map(function(l,f){if((l==null?void 0:l.startAngle)===0&&(l==null?void 0:l.endAngle)===0&&r.length!==1)return null;var d=i.isActiveIndex(f),p=c&&i.hasActiveIndex()?c:null,v=d?a:p,g=xt(xt({},l),{},{stroke:s?l.fill:l.stroke,tabIndex:-1});return V.createElement(Xe,mc({ref:function(x){x&&!i.sectorRefs.includes(x)&&i.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},Ka(i.props,l,f),{key:"sector-".concat(l==null?void 0:l.startAngle,"-").concat(l==null?void 0:l.endAngle,"-").concat(l.midAngle,"-").concat(f)}),V.createElement(Jg,mc({option:v,isActive:d,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state,p=d.prevSectors,v=d.prevIsAnimationActive;return V.createElement(fi,{begin:s,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var y=g.t,x=[],b=o&&o[0],_=b.startAngle;return o.forEach(function(w,S){var C=p&&p[S],P=S>0?Tr(w,"paddingAngle",0):0;if(C){var T=Bt(C.endAngle-C.startAngle,w.endAngle-w.startAngle),j=xt(xt({},w),{},{startAngle:_+P,endAngle:_+T(y)+P});x.push(j),_=j.endAngle}else{var $=w.endAngle,M=w.startAngle,I=Bt(0,$-M),F=I(y),q=xt(xt({},w),{},{startAngle:_+P,endAngle:_+F+P});x.push(q),_=q.endAngle}}),V.createElement(Xe,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!qa(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,c=i.label,l=i.cx,f=i.cy,d=i.innerRadius,p=i.outerRadius,v=i.isAnimationActive,g=this.state.isAnimationFinished;if(o||!a||!a.length||!Ee(l)||!Ee(f)||!Ee(d)||!Ee(p))return null;var y=Oe("recharts-pie",s);return V.createElement(Xe,{tabIndex:this.props.rootTabIndex,className:y,ref:function(b){r.pieRef=b}},this.renderSectors(),c&&this.renderLabels(a),bn.renderCallByParent(this.props,null,!1),(!v||g)&&Ni.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(V.isValidElement(r))return V.cloneElement(r,i);if(We(r))return r(i);var a=Oe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return V.createElement(Fa,mc({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,o){if(V.isValidElement(r))return V.cloneElement(r,i);var a=o;if(We(r)&&(a=r(i),V.isValidElement(a)))return a;var s=Oe("recharts-pie-label-text",typeof r!="boolean"&&!We(r)?r.className:"");return V.createElement(ll,mc({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(N.PureComponent);Jm=uo;Qr(uo,"displayName","Pie");Qr(uo,"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:!ii.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Qr(uo,"parseDeltaAngle",function(e,t){var n=Kn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Qr(uo,"getRealPieData",function(e){var t=e.data,n=e.children,r=De(e,!1),i=Jn(n,Ia);return t&&t.length?t.map(function(o,a){return xt(xt(xt({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return xt(xt({},r),o.props)}):[]});Qr(uo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=BF(i,o),s=r+qn(e.cx,i,i/2),c=n+qn(e.cy,o,o/2),l=qn(e.innerRadius,a,0),f=qn(e.outerRadius,a,a*.8),d=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:c,innerRadius:l,outerRadius:f,maxRadius:d}});Qr(uo,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?xt(xt({},t.type.defaultProps),t.props):t.props,i=Jm.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,s=r.endAngle,c=r.paddingAngle,l=r.dataKey,f=r.nameKey,d=r.valueKey,p=r.tooltipType,v=Math.abs(r.minAngle),g=Jm.parseCoordinateOfPie(r,n),y=Jm.parseDeltaAngle(a,s),x=Math.abs(y),b=l;ze(l)&&ze(d)?(ki(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),b="value"):ze(l)&&(ki(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),b=d);var _=i.filter(function(j){return jt(j,b,0)!==0}).length,w=(x>=360?_:_-1)*c,S=x-_*v-w,C=i.reduce(function(j,$){var M=jt($,b,0);return j+(Ee(M)?M:0)},0),P;if(C>0){var T;P=i.map(function(j,$){var M=jt(j,b,0),I=jt(j,f,$),F=(Ee(M)?M:0)/C,q;$?q=T.endAngle+Kn(y)*c*(M!==0?1:0):q=a;var H=q+Kn(y)*((M!==0?v:0)+F*S),Z=(q+H)/2,Q=(g.innerRadius+g.outerRadius)/2,te=[{name:I,value:M,payload:j,dataKey:b,type:p}],X=St(g.cx,g.cy,Q,Z);return T=xt(xt(xt({percent:F,cornerRadius:o,name:I,tooltipPayload:te,midAngle:Z,middleRadius:Q,tooltipPosition:X},j),g),{},{value:jt(j,b),startAngle:q,endAngle:H,payload:j,paddingAngle:Kn(y)*c}),T})}return xt(xt({},g),{},{sectors:P,data:i})});var Pje=Math.ceil,Cje=Math.max;function Eje(e,t,n,r){for(var i=-1,o=Cje(Pje((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var Tje=Eje,jje=E8,yL=1/0,Aje=17976931348623157e292;function kje(e){if(!e)return e===0?e:0;if(e=jje(e),e===yL||e===-yL){var t=e<0?-1:1;return t*Aje}return e===e?e:0}var a7=kje,Nje=Tje,Mje=$0,n_=a7;function Lje(e){return function(t,n,r){return r&&typeof r!="number"&&Mje(t,n,r)&&(n=r=void 0),t=n_(t),n===void 0?(n=t,t=0):n=n_(n),r=r===void 0?t<n?1:-1:n_(r),Nje(t,n,r,e)}}var Rje=Lje,$je=Rje,Ije=$je(),Dje=Ije;const ty=st(Dje);function Ah(e){"@babel/helpers - typeof";return Ah=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},Ah(e)}function bL(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 _L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bL(Object(n),!0).forEach(function(r){s7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s7(e,t,n){return t=Fje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fje(e){var t=Bje(e,"string");return Ah(t)=="symbol"?t:t+""}function Bje(e,t){if(Ah(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ah(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uje=["Webkit","Moz","O","ms"],zje=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Uje.reduce(function(o,a){return _L(_L({},o),{},s7({},a+r,n))},{});return i[t]=n,i};function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}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 xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wL(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,c7(r.key),r)}}function Wje(e,t,n){return t&&wL(e.prototype,t),n&&wL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hje(e,t,n){return t=ry(t),Gje(e,l7()?Reflect.construct(t,n||[],ry(e).constructor):t.apply(e,n))}function Gje(e,t){if(t&&(lu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kje(e)}function Kje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l7=function(){return!!e})()}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ry(e)}function qje(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 xr(e,t,n){return t=c7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c7(e){var t=Yje(e,"string");return lu(t)=="symbol"?t:t+""}function Yje(e,t){if(lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zje=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,l=fd().domain(ty(0,c)).range([o,o+a-s]),f=l.domain().map(function(d){return l(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(i),scale:l,scaleValues:f}},OL=function(t){return t.changedTouches&&!!t.changedTouches.length},cu=function(e){function t(n){var r;return Vje(this,t),r=Hje(this,t,[n]),xr(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),xr(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),xr(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()}),xr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),xr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),xr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),xr(r,"handleSlideDragStart",function(i){var o=OL(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return qje(t,e),Wje(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,c=s.gap,l=s.data,f=l.length-1,d=Math.min(i,o),p=Math.max(i,o),v=t.getIndexInRange(a,d),g=t.getIndexInRange(a,p);return{startIndex:v-v%c,endIndex:g===f?f:g-g%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=jt(o[r],s,r);return We(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,c=this.props,l=c.x,f=c.width,d=c.travellerWidth,p=c.startIndex,v=c.endIndex,g=c.onChange,y=r.pageX-o;y>0?y=Math.min(y,l+f-d-s,l+f-d-a):y<0&&(y=Math.max(y,l-a,l-s));var x=this.getIndex({startX:a+y,endX:s+y});(x.startIndex!==p||x.endIndex!==v)&&g&&g(x),this.setState({startX:a+y,endX:s+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=OL(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,c=i.startX,l=this.state[a],f=this.props,d=f.x,p=f.width,v=f.travellerWidth,g=f.onChange,y=f.gap,x=f.data,b={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,d+p-v-l):_<0&&(_=Math.max(_,d-l)),b[a]=l+_;var w=this.getIndex(b),S=w.startIndex,C=w.endIndex,P=function(){var j=x.length-1;return a==="startX"&&(s>c?S%y===0:C%y===0)||s<c&&C===j||a==="endX"&&(s>c?C%y===0:S%y===0)||s>c&&C===j};this.setState(xr(xr({},a,l+_),"brushMoveStartX",r.pageX),function(){g&&P()&&g(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,c=a.startX,l=a.endX,f=this.state[i],d=s.indexOf(f);if(d!==-1){var p=d+r;if(!(p===-1||p>=s.length)){var v=s[p];i==="startX"&&v>=l||i==="endX"&&v<=c||this.setState(xr({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.fill,l=r.stroke;return V.createElement("rect",{stroke:l,fill:c,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.data,l=r.children,f=r.padding,d=N.Children.only(l);return d?V.cloneElement(d,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,c=this.props,l=c.y,f=c.travellerWidth,d=c.height,p=c.traveller,v=c.ariaLabel,g=c.data,y=c.startIndex,x=c.endIndex,b=Math.max(r,this.props.x),_=r_(r_({},De(this.props,!1)),{},{x:b,y:l,width:f,height:d}),w=v||"Min value: ".concat((o=g[y])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=g[x])===null||a===void 0?void 0:a.name);return V.createElement(Xe,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(C){["ArrowLeft","ArrowRight"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),s.handleTravellerMoveKeyboard(C.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,_))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,c=o.stroke,l=o.travellerWidth,f=Math.min(r,i)+l,d=Math.max(Math.abs(i-r)-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:c,fillOpacity:.2,x:f,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,c=r.travellerWidth,l=r.stroke,f=this.state,d=f.startX,p=f.endX,v=5,g={pointerEvents:"none",fill:l};return V.createElement(Xe,{className:"recharts-brush-texts"},V.createElement(ll,ny({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-v,y:a+s/2},g),this.getTextOfTick(i)),V.createElement(ll,ny({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+c+v,y:a+s/2},g),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,c=r.y,l=r.width,f=r.height,d=r.alwaysShowText,p=this.state,v=p.startX,g=p.endX,y=p.isTextActive,x=p.isSlideMoving,b=p.isTravellerMoving,_=p.isTravellerFocused;if(!i||!i.length||!Ee(s)||!Ee(c)||!Ee(l)||!Ee(f)||l<=0||f<=0)return null;var w=Oe("recharts-brush",o),S=V.Children.count(a)===1,C=zje("userSelect","none");return V.createElement(Xe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(v,g),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(g,"endX"),(y||x||b||_||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,c=r.stroke,l=Math.floor(o+s/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:o,width:a,height:s,fill:c,stroke:"none"}),V.createElement("line",{x1:i+1,y1:l,x2:i+a-1,y2:l,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:l+2,x2:i+a-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return V.isValidElement(r)?o=V.cloneElement(r,i):We(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,c=r.travellerWidth,l=r.updateId,f=r.startIndex,d=r.endIndex;if(o!==i.prevData||l!==i.prevUpdateId)return r_({prevData:o,prevTravellerWidth:c,prevUpdateId:l,prevX:s,prevWidth:a},o&&o.length?Zje({data:o,width:a,x:s,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+a-c]);var p=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:l,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var c=Math.floor((a+s)/2);r[c]>i?s=c:a=c}return i>=r[s]?s:a}}])}(N.PureComponent);xr(cu,"displayName","Brush");xr(cu,"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 Xje=bC;function Qje(e,t){var n;return Xje(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Jje=Qje,eAe=e8,tAe=vo,nAe=Jje,rAe=yr,iAe=$0;function oAe(e,t,n){var r=rAe(e)?eAe:nAe;return n&&iAe(e,t,n)&&(t=void 0),r(e,tAe(t))}var aAe=oAe;const sAe=st(aAe);var oo=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},SL=w8;function lAe(e,t,n){t=="__proto__"&&SL?SL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var cAe=lAe,uAe=cAe,fAe=_8,dAe=vo;function hAe(e,t){var n={};return t=dAe(t),fAe(e,function(r,i,o){uAe(n,i,t(r,i,o))}),n}var pAe=hAe;const mAe=st(pAe);function vAe(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 gAe=vAe,yAe=bC;function bAe(e,t){var n=!0;return yAe(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var _Ae=bAe,xAe=gAe,wAe=_Ae,OAe=vo,SAe=yr,PAe=$0;function CAe(e,t,n){var r=SAe(e)?xAe:wAe;return n&&PAe(e,t,n)&&(t=void 0),r(e,OAe(t))}var EAe=CAe;const u7=st(EAe);var TAe=["x","y"];function kh(e){"@babel/helpers - typeof";return kh=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},kh(e)}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 PL(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 $f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PL(Object(n),!0).forEach(function(r){jAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jAe(e,t,n){return t=AAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AAe(e){var t=kAe(e,"string");return kh(t)=="symbol"?t:t+""}function kAe(e,t){if(kh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NAe(e,t){if(e==null)return{};var n=MAe(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 MAe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LAe(e,t){var n=e.x,r=e.y,i=NAe(e,TAe),o="".concat(n),a=parseInt(o,10),s="".concat(r),c=parseInt(s,10),l="".concat(t.height||i.height),f=parseInt(l,10),d="".concat(t.width||i.width),p=parseInt(d,10);return $f($f($f($f($f({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function CL(e){return V.createElement(Jg,_O({shapeType:"rectangle",propTransformer:LAe,activeClassName:"recharts-active-bar"},e))}var RAe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=typeof r=="number";return o?t(r,i):(o||ul(),n)}},$Ae=["value","background"],f7;function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}function IAe(e,t){if(e==null)return{};var n=DAe(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 DAe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iy(){return iy=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},iy.apply(this,arguments)}function EL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(r){Sa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TL(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,h7(r.key),r)}}function BAe(e,t,n){return t&&TL(e.prototype,t),n&&TL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UAe(e,t,n){return t=oy(t),zAe(e,d7()?Reflect.construct(t,n||[],oy(e).constructor):t.apply(e,n))}function zAe(e,t){if(t&&(uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VAe(e)}function VAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d7=function(){return!!e})()}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function WAe(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 Sa(e,t,n){return t=h7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h7(e){var t=HAe(e,"string");return uu(t)=="symbol"?t:t+""}function HAe(e,t){if(uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lo=function(e){function t(){var n;FAe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=UAe(this,t,[].concat(i)),Sa(n,"state",{isAnimationFinished:!1}),Sa(n,"id",os("recharts-bar-")),Sa(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Sa(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return WAe(t,e),BAe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,c=o.activeIndex,l=o.activeBar,f=De(this.props,!1);return r&&r.map(function(d,p){var v=p===c,g=v?l:a,y=nn(nn(nn({},f),d),{},{isActive:v,option:g,index:p,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(Xe,iy({className:"recharts-bar-rectangle"},Ka(i.props,d,p),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),V.createElement(CL,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,c=i.animationBegin,l=i.animationDuration,f=i.animationEasing,d=i.animationId,p=this.state.prevData;return V.createElement(fi,{begin:c,duration:l,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var g=v.t,y=o.map(function(x,b){var _=p&&p[b];if(_){var w=Bt(_.x,x.x),S=Bt(_.y,x.y),C=Bt(_.width,x.width),P=Bt(_.height,x.height);return nn(nn({},x),{},{x:w(g),y:S(g),width:C(g),height:P(g)})}if(a==="horizontal"){var T=Bt(0,x.height),j=T(g);return nn(nn({},x),{},{y:x.y+x.height-j,height:j})}var $=Bt(0,x.width),M=$(g);return nn(nn({},x),{},{width:M})});return V.createElement(Xe,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!qa(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,c=De(this.props.background,!1);return o.map(function(l,f){l.value;var d=l.background,p=IAe(l,$Ae);if(!d)return null;var v=nn(nn(nn(nn(nn({},p),{},{fill:"#eee"},d),c),Ka(r.props,l,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return V.createElement(CL,iy({key:"background-bar-".concat(f),option:r.props.background,isActive:f===s},v))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,c=o.yAxis,l=o.layout,f=o.children,d=Jn(f,Wu);if(!d)return null;var p=l==="vertical"?a[0].height/2:a[0].width/2,v=function(x,b){var _=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:_,errorVal:jt(x,b)}},g={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Xe,g,d.map(function(y){return V.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:a,xAxis:s,yAxis:c,layout:l,offset:p,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,c=r.yAxis,l=r.left,f=r.top,d=r.width,p=r.height,v=r.isAnimationActive,g=r.background,y=r.id;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,b=Oe("recharts-bar",a),_=s&&s.allowDataOverflow,w=c&&c.allowDataOverflow,S=_||w,C=ze(y)?this.id:y;return V.createElement(Xe,{className:b},_||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(C)},V.createElement("rect",{x:_?l:l-d/2,y:w?f:f-p/2,width:_?d:d*2,height:w?p:p*2}))):null,V.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(C,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,C),(!v||x)&&Ni.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(N.PureComponent);f7=Lo;Sa(Lo,"displayName","Bar");Sa(Lo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ii.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Sa(Lo,"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,c=e.yAxisTicks,l=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=BSe(r,n);if(!v)return null;var g=t.layout,y=n.type.defaultProps,x=y!==void 0?nn(nn({},y),n.props):n.props,b=x.dataKey,_=x.children,w=x.minPointSize,S=g==="horizontal"?a:o,C=l?S.scale.domain():null,P=KSe({numericAxis:S}),T=Jn(_,Ia),j=d.map(function($,M){var I,F,q,H,Z,Q;l?I=USe(l[f+M],C):(I=jt($,b),Array.isArray(I)||(I=[P,I]));var te=RAe(w,f7.defaultProps.minPointSize)(I[1],M);if(g==="horizontal"){var X,U=[a.scale(I[0]),a.scale(I[1])],B=U[0],W=U[1];F=gM({axis:o,ticks:s,bandSize:i,offset:v.offset,entry:$,index:M}),q=(X=W??B)!==null&&X!==void 0?X:void 0,H=v.size;var ee=B-W;if(Z=Number.isNaN(ee)?0:ee,Q={x:F,y:a.y,width:H,height:a.height},Math.abs(te)>0&&Math.abs(Z)<Math.abs(te)){var G=Kn(Z||te)*(Math.abs(te)-Math.abs(Z));q-=G,Z+=G}}else{var ne=[o.scale(I[0]),o.scale(I[1])],re=ne[0],ae=ne[1];if(F=re,q=gM({axis:a,ticks:c,bandSize:i,offset:v.offset,entry:$,index:M}),H=ae-re,Z=v.size,Q={x:o.x,y:q,width:o.width,height:Z},Math.abs(te)>0&&Math.abs(H)<Math.abs(te)){var fe=Kn(H||te)*(Math.abs(te)-Math.abs(H));H+=fe}}return nn(nn(nn({},$),{},{x:F,y:q,width:H,height:Z,value:l?I:I[1],payload:$,background:Q},T&&T[M]&&T[M].props),{},{tooltipPayload:[DF(n,$)],tooltipPosition:{x:F+H/2,y:q+Z/2}})});return nn({data:j,layout:g},p)});function Nh(e){"@babel/helpers - typeof";return Nh=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},Nh(e)}function GAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jL(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,p7(r.key),r)}}function KAe(e,t,n){return t&&jL(e.prototype,t),n&&jL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function AL(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?AL(Object(n),!0).forEach(function(r){J0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J0(e,t,n){return t=p7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p7(e){var t=qAe(e,"string");return Nh(t)=="symbol"?t:t+""}function qAe(e,t){if(Nh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m7=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.layout,l=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},p=!!Or(l,Lo);return f.reduce(function(v,g){var y=n[g],x=y.orientation,b=y.domain,_=y.padding,w=_===void 0?{}:_,S=y.mirror,C=y.reversed,P="".concat(x).concat(S?"Mirror":""),T,j,$,M,I;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var F=b[1]-b[0],q=1/0,H=y.categoricalDomain.sort();if(H.forEach(function(ne,re){re>0&&(q=Math.min((ne||0)-(H[re-1]||0),q))}),Number.isFinite(q)){var Z=q/F,Q=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(T=Z*Q/2),y.padding==="no-gap"){var te=qn(t.barCategoryGap,Z*Q),X=Z*Q/2;T=X-te-(X-te)/Q*te}}}i==="xAxis"?j=[r.left+(w.left||0)+(T||0),r.left+r.width-(w.right||0)-(T||0)]:i==="yAxis"?j=c==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(T||0),r.top+r.height-(w.bottom||0)-(T||0)]:j=y.range,C&&(j=[j[1],j[0]]);var U=LF(y,o,p),B=U.scale,W=U.realScaleType;B.domain(b).range(j),RF(B);var ee=$F(B,Oi(Oi({},y),{},{realScaleType:W}));i==="xAxis"?(I=x==="top"&&!S||x==="bottom"&&S,$=r.left,M=d[P]-I*y.height):i==="yAxis"&&(I=x==="left"&&!S||x==="right"&&S,$=d[P]-I*y.width,M=r.top);var G=Oi(Oi(Oi({},y),ee),{},{realScaleType:W,x:$,y:M,scale:B,width:i==="xAxis"?r.width:y.width,height:i==="yAxis"?r.height:y.height});return G.bandSize=zg(G,ee),!y.hide&&i==="xAxis"?d[P]+=(I?-1:1)*G.height:y.hide||(d[P]+=(I?-1:1)*G.width),Oi(Oi({},v),{},J0({},g,G))},{})},v7=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},YAe=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return v7({x:n,y:r},{x:i,y:o})},g7=function(){function e(t){GAe(this,e),this.scale=t}return KAe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();J0(g7,"EPS",1e-4);var YC=function(t){var n=Object.keys(t).reduce(function(r,i){return Oi(Oi({},r),{},J0({},i,g7.create(t[i])))},{});return Oi(Oi({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return mAe(i,function(c,l){return n[l].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return u7(i,function(o,a){return n[a].isInRange(o)})}})};function ZAe(e){return(e%180+180)%180}var XAe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=ZAe(i),a=o*Math.PI/180,s=Math.atan(r/n),c=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},QAe=vo,JAe=op,e3e=L0;function t3e(e){return function(t,n,r){var i=Object(t);if(!JAe(t)){var o=QAe(n);t=e3e(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 n3e=t3e,r3e=a7;function i3e(e){var t=r3e(e),n=t%1;return t===t?n?t-n:t:0}var o3e=i3e,a3e=p8,s3e=vo,l3e=o3e,c3e=Math.max;function u3e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:l3e(n);return i<0&&(i=c3e(r+i,0)),a3e(e,s3e(t),i)}var f3e=u3e,d3e=n3e,h3e=f3e,p3e=d3e(h3e),m3e=p3e;const v3e=st(m3e);var g3e=Efe(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("")}),ZC=N.createContext(void 0),XC=N.createContext(void 0),y7=N.createContext(void 0),b7=N.createContext({}),_7=N.createContext(void 0),x7=N.createContext(0),w7=N.createContext(0),kL=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,c=t.width,l=t.height,f=g3e(o);return V.createElement(ZC.Provider,{value:r},V.createElement(XC.Provider,{value:i},V.createElement(b7.Provider,{value:o},V.createElement(y7.Provider,{value:f},V.createElement(_7.Provider,{value:a},V.createElement(x7.Provider,{value:l},V.createElement(w7.Provider,{value:c},s)))))))},y3e=function(){return N.useContext(_7)},O7=function(t){var n=N.useContext(ZC);n==null&&ul();var r=n[t];return r==null&&ul(),r},b3e=function(){var t=N.useContext(ZC);return ba(t)},_3e=function(){var t=N.useContext(XC),n=v3e(t,function(r){return u7(r.domain,Number.isFinite)});return n||ba(t)},S7=function(t){var n=N.useContext(XC);n==null&&ul();var r=n[t];return r==null&&ul(),r},x3e=function(){var t=N.useContext(y7);return t},w3e=function(){return N.useContext(b7)},QC=function(){return N.useContext(w7)},JC=function(){return N.useContext(x7)};function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function O3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S3e(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,C7(r.key),r)}}function P3e(e,t,n){return t&&S3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C3e(e,t,n){return t=ay(t),E3e(e,P7()?Reflect.construct(t,n||[],ay(e).constructor):t.apply(e,n))}function E3e(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T3e(e)}function T3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P7=function(){return!!e})()}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ay(e)}function j3e(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&&wO(e,t)}function wO(e,t){return wO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wO(e,t)}function NL(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 ML(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NL(Object(n),!0).forEach(function(r){eE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eE(e,t,n){return t=C7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C7(e){var t=A3e(e,"string");return fu(t)=="symbol"?t:t+""}function A3e(e,t){if(fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k3e(e,t){return R3e(e)||L3e(e,t)||M3e(e,t)||N3e()}function N3e(){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 M3e(e,t){if(e){if(typeof e=="string")return LL(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 LL(e,t)}}function LL(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 L3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function R3e(e){if(Array.isArray(e))return e}function OO(){return OO=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},OO.apply(this,arguments)}var $3e=function(t,n){var r;return V.isValidElement(t)?r=V.cloneElement(t,n):We(t)?r=t(n):r=V.createElement("line",OO({},n,{className:"recharts-reference-line-line"})),r},I3e=function(t,n,r,i,o,a,s,c,l){var f=o.x,d=o.y,p=o.width,v=o.height;if(r){var g=l.y,y=t.y.apply(g,{position:a});if(oo(l,"discard")&&!t.y.isInRange(y))return null;var x=[{x:f+p,y},{x:f,y}];return c==="left"?x.reverse():x}if(n){var b=l.x,_=t.x.apply(b,{position:a});if(oo(l,"discard")&&!t.x.isInRange(_))return null;var w=[{x:_,y:d+v},{x:_,y:d}];return s==="top"?w.reverse():w}if(i){var S=l.segment,C=S.map(function(P){return t.apply(P,{position:a})});return oo(l,"discard")&&sAe(C,function(P){return!t.isInRange(P)})?null:C}return null};function D3e(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,l=y3e(),f=O7(i),d=S7(o),p=x3e();if(!l||!p)return null;ki(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=YC({x:f.scale,y:d.scale}),g=un(t),y=un(n),x=r&&r.length===2,b=I3e(v,g,y,x,p,e.position,f.orientation,d.orientation,e);if(!b)return null;var _=k3e(b,2),w=_[0],S=w.x,C=w.y,P=_[1],T=P.x,j=P.y,$=oo(e,"hidden")?"url(#".concat(l,")"):void 0,M=ML(ML({clipPath:$},De(e,!0)),{},{x1:S,y1:C,x2:T,y2:j});return V.createElement(Xe,{className:Oe("recharts-reference-line",s)},$3e(a,M),bn.renderCallByParent(e,YAe({x1:S,y1:C,x2:T,y2:j})))}var tE=function(e){function t(){return O3e(this,t),C3e(this,t,arguments)}return j3e(t,e),P3e(t,[{key:"render",value:function(){return V.createElement(D3e,this.props)}}])}(V.Component);eE(tE,"displayName","ReferenceLine");eE(tE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function SO(){return SO=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},SO.apply(this,arguments)}function du(e){"@babel/helpers - typeof";return du=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},du(e)}function RL(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 $L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RL(Object(n),!0).forEach(function(r){eb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B3e(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,T7(r.key),r)}}function U3e(e,t,n){return t&&B3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z3e(e,t,n){return t=sy(t),V3e(e,E7()?Reflect.construct(t,n||[],sy(e).constructor):t.apply(e,n))}function V3e(e,t){if(t&&(du(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W3e(e)}function W3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E7=function(){return!!e})()}function sy(e){return sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sy(e)}function H3e(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&&PO(e,t)}function PO(e,t){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PO(e,t)}function eb(e,t,n){return t=T7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T7(e){var t=G3e(e,"string");return du(t)=="symbol"?t:t+""}function G3e(e,t){if(du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var K3e=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=YC({x:i.scale,y:o.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return oo(t,"discard")&&!a.isInRange(s)?null:s},tb=function(e){function t(){return F3e(this,t),z3e(this,t,arguments)}return H3e(t,e),U3e(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,s=r.alwaysShow,c=r.clipPathId,l=un(i),f=un(o);if(ki(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!f)return null;var d=K3e(this.props);if(!d)return null;var p=d.x,v=d.y,g=this.props,y=g.shape,x=g.className,b=oo(this.props,"hidden")?"url(#".concat(c,")"):void 0,_=$L($L({clipPath:b},De(this.props,!0)),{},{cx:p,cy:v});return V.createElement(Xe,{className:Oe("recharts-reference-dot",x)},t.renderDot(y,_),bn.renderCallByParent(this.props,{x:p-a,y:v-a,width:2*a,height:2*a}))}}])}(V.Component);eb(tb,"displayName","ReferenceDot");eb(tb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});eb(tb,"renderDot",function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):We(e)?n=e(t):n=V.createElement(up,SO({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 hu(e){"@babel/helpers - typeof";return hu=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},hu(e)}function IL(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 DL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(n),!0).forEach(function(r){nb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y3e(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,A7(r.key),r)}}function Z3e(e,t,n){return t&&Y3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X3e(e,t,n){return t=ly(t),Q3e(e,j7()?Reflect.construct(t,n||[],ly(e).constructor):t.apply(e,n))}function Q3e(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J3e(e)}function J3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j7=function(){return!!e})()}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}function eke(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 nb(e,t,n){return t=A7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A7(e){var t=tke(e,"string");return hu(t)=="symbol"?t:t+""}function tke(e,t){if(hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nke=function(t,n,r,i,o){var a=o.x1,s=o.x2,c=o.y1,l=o.y2,f=o.xAxis,d=o.yAxis;if(!f||!d)return null;var p=YC({x:f.scale,y:d.scale}),v={x:t?p.x.apply(a,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(c,{position:"start"}):p.y.rangeMin},g={x:n?p.x.apply(s,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(l,{position:"end"}):p.y.rangeMax};return oo(o,"discard")&&(!p.isInRange(v)||!p.isInRange(g))?null:v7(v,g)},fp=function(e){function t(){return q3e(this,t),X3e(this,t,arguments)}return eke(t,e),Z3e(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,s=r.y2,c=r.className,l=r.alwaysShow,f=r.clipPathId;ki(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=un(i),p=un(o),v=un(a),g=un(s),y=this.props.shape;if(!d&&!p&&!v&&!g&&!y)return null;var x=nke(d,p,v,g,this.props);if(!x&&!y)return null;var b=oo(this.props,"hidden")?"url(#".concat(f,")"):void 0;return V.createElement(Xe,{className:Oe("recharts-reference-area",c)},t.renderRect(y,DL(DL({clipPath:b},De(this.props,!0)),x)),bn.renderCallByParent(this.props,x))}}])}(V.Component);nb(fp,"displayName","ReferenceArea");nb(fp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});nb(fp,"renderRect",function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):We(e)?n=e(t):n=V.createElement(qC,CO({},t,{className:"recharts-reference-area-rect"})),n});function k7(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function rke(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return XAe(r,n)}function ike(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 cy(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 oke(e,t){return k7(e,t+1)}function ake(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,c=0,l=1,f=a,d=function(){var g=r==null?void 0:r[c];if(g===void 0)return{v:k7(r,l)};var y=c,x,b=function(){return x===void 0&&(x=n(g,y)),x},_=g.coordinate,w=c===0||cy(e,_,b,f,s);w||(c=0,f=a,l+=1),w&&(f=_+e*(b()/2+i),c+=l)},p;l<=o.length;)if(p=d(),p)return p.v;return[]}function Mh(e){"@babel/helpers - typeof";return Mh=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},Mh(e)}function FL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FL(Object(n),!0).forEach(function(r){ske(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ske(e,t,n){return t=lke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lke(e){var t=cke(e,"string");return Mh(t)=="symbol"?t:t+""}function cke(e,t){if(Mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uke(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,c=t.end,l=function(p){var v=o[p],g,y=function(){return g===void 0&&(g=n(v,p)),g};if(p===a-1){var x=e*(v.coordinate+e*y()/2-c);o[p]=v=$n($n({},v),{},{tickCoord:x>0?v.coordinate-x*e:v.coordinate})}else o[p]=v=$n($n({},v),{},{tickCoord:v.coordinate});var b=cy(e,v.tickCoord,y,s,c);b&&(c=v.tickCoord-e*(y()/2+i),o[p]=$n($n({},v),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return o}function fke(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,c=t.start,l=t.end;if(o){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-l);a[s-1]=f=$n($n({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var v=cy(e,f.tickCoord,function(){return d},c,l);v&&(l=f.tickCoord-e*(d/2+i),a[s-1]=$n($n({},f),{},{isShow:!0}))}for(var g=o?s-1:s,y=function(_){var w=a[_],S,C=function(){return S===void 0&&(S=n(w,_)),S};if(_===0){var P=e*(w.coordinate-e*C()/2-c);a[_]=w=$n($n({},w),{},{tickCoord:P<0?w.coordinate-P*e:w.coordinate})}else a[_]=w=$n($n({},w),{},{tickCoord:w.coordinate});var T=cy(e,w.tickCoord,C,c,l);T&&(c=w.tickCoord+e*(C()/2+i),a[_]=$n($n({},w),{},{isShow:!0}))},x=0;x<g;x++)y(x);return a}function nE(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,f=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Ee(c)||ii.isSsr)return oke(i,typeof c=="number"&&Ee(c)?c:0);var p=[],v=s==="top"||s==="bottom"?"width":"height",g=f&&v==="width"?ud(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(w,S){var C=We(l)?l(w.value,S):w.value;return v==="width"?rke(ud(C,{fontSize:t,letterSpacing:n}),g,d):ud(C,{fontSize:t,letterSpacing:n})[v]},x=i.length>=2?Kn(i[1].coordinate-i[0].coordinate):1,b=ike(o,x,v);return c==="equidistantPreserveStart"?ake(x,b,y,i,a):(c==="preserveStart"||c==="preserveStartEnd"?p=fke(x,b,y,i,a,c==="preserveStartEnd"):p=uke(x,b,y,i,a),p.filter(function(_){return _.isShow}))}var dke=["viewBox"],hke=["viewBox"],pke=["ticks"];function pu(e){"@babel/helpers - typeof";return pu=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},pu(e)}function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vc.apply(this,arguments)}function BL(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?BL(Object(n),!0).forEach(function(r){rE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i_(e,t){if(e==null)return{};var n=mke(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 mke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UL(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,M7(r.key),r)}}function gke(e,t,n){return t&&UL(e.prototype,t),n&&UL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yke(e,t,n){return t=uy(t),bke(e,N7()?Reflect.construct(t,n||[],uy(e).constructor):t.apply(e,n))}function bke(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ke(e)}function _ke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N7=function(){return!!e})()}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uy(e)}function xke(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&&TO(e,t)}function TO(e,t){return TO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TO(e,t)}function rE(e,t,n){return t=M7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M7(e){var t=wke(e,"string");return pu(t)=="symbol"?t:t+""}function wke(e,t){if(pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gu=function(e){function t(n){var r;return vke(this,t),r=yke(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return xke(t,e),gke(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=i_(r,dke),s=this.props,c=s.viewBox,l=i_(s,hke);return!Cc(o,c)||!Cc(a,l)||!Cc(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,s=i.width,c=i.height,l=i.orientation,f=i.tickSize,d=i.mirror,p=i.tickMargin,v,g,y,x,b,_,w=d?-1:1,S=r.tickSize||f,C=Ee(r.tickCoord)?r.tickCoord:r.coordinate;switch(l){case"top":v=g=r.coordinate,x=a+ +!d*c,y=x-w*S,_=y-w*p,b=C;break;case"left":y=x=r.coordinate,g=o+ +!d*s,v=g-w*S,b=v-w*p,_=C;break;case"right":y=x=r.coordinate,g=o+ +d*s,v=g+w*S,b=v+w*p,_=C;break;default:v=g=r.coordinate,x=a+ +d*c,y=x+w*S,_=y+w*p,b=C;break}return{line:{x1:v,y1:y,x2:g,y2:x},tick:{x:b,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.orientation,l=r.mirror,f=r.axisLine,d=Wn(Wn(Wn({},De(this.props,!1)),De(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!l||c==="bottom"&&l);d=Wn(Wn({},d),{},{x1:i,y1:o+p*s,x2:i+a,y2:o+p*s})}else{var v=+(c==="left"&&!l||c==="right"&&l);d=Wn(Wn({},d),{},{x1:i+v*a,y1:o,x2:i+v*a,y2:o+s})}return V.createElement("line",vc({},d,{className:Oe("recharts-cartesian-axis-line",Tr(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,c=s.tickLine,l=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,v=nE(Wn(Wn({},this.props),{},{ticks:r}),i,o),g=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),x=De(this.props,!1),b=De(f,!1),_=Wn(Wn({},x),{},{fill:"none"},De(c,!1)),w=v.map(function(S,C){var P=a.getTickLineCoord(S),T=P.line,j=P.tick,$=Wn(Wn(Wn(Wn({textAnchor:g,verticalAnchor:y},x),{},{stroke:"none",fill:l},b),j),{},{index:C,payload:S,visibleTicksCount:v.length,tickFormatter:d});return V.createElement(Xe,vc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Ka(a.props,S,C)),c&&V.createElement("line",vc({},_,T,{className:Oe("recharts-cartesian-axis-tick-line",Tr(c,"className"))})),f&&t.renderTickItem(f,$,"".concat(We(d)?d(S.value,C):S.value).concat(p||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,c=i.ticksGenerator,l=i.className,f=i.hide;if(f)return null;var d=this.props,p=d.ticks,v=i_(d,pke),g=p;return We(c)&&(g=p&&p.length>0?c(this.props):c(v)),a<=0||s<=0||!g||!g.length?null:V.createElement(Xe,{className:Oe("recharts-cartesian-axis",l),ref:function(x){r.layerReference=x}},o&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),bn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):We(r)?a=r(i):a=V.createElement(ll,vc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(N.Component);rE(Gu,"displayName","CartesianAxis");rE(Gu,"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 Oke=["x1","y1","x2","y2","key"],Ske=["offset"];function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function zL(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 Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zL(Object(n),!0).forEach(function(r){Pke(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pke(e,t,n){return t=Cke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cke(e){var t=Eke(e,"string");return fl(t)=="symbol"?t:t+""}function Eke(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bs(){return Bs=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},Bs.apply(this,arguments)}function VL(e,t){if(e==null)return{};var n=Tke(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 Tke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var jke=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,c=t.ry;return V.createElement("rect",{x:i,y:o,ry:c,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function L7(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(We(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,c=VL(t,Oke),l=De(c,!1);l.offset;var f=VL(l,Ske);n=V.createElement("line",Bs({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function Ake(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,c){var l=Dn(Dn({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return L7(i,l)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function kke(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,c){var l=Dn(Dn({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return L7(i,l)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Nke(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,l=c===void 0?!0:c;if(!l||!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 x=v%t.length;return V.createElement("rect",{key:"react-".concat(v),y:p,x:r,height:y,width:o,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Mke(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,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var f=l.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 x=v%r.length;return V.createElement("rect",{key:"react-".concat(v),x:p,y:a,width:y,height:c,stroke:"none",fill:r[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Lke=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return MF(nE(Dn(Dn(Dn({},Gu.defaultProps),r),{},{ticks:jo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},Rke=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return MF(nE(Dn(Dn(Dn({},Gu.defaultProps),r),{},{ticks:jo(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},zl={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function iE(e){var t,n,r,i,o,a,s=QC(),c=JC(),l=w3e(),f=Dn(Dn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:zl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:zl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:zl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:zl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:zl.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:zl.verticalFill,x:Ee(e.x)?e.x:l.left,y:Ee(e.y)?e.y:l.top,width:Ee(e.width)?e.width:l.width,height:Ee(e.height)?e.height:l.height}),d=f.x,p=f.y,v=f.width,g=f.height,y=f.syncWithTicks,x=f.horizontalValues,b=f.verticalValues,_=b3e(),w=_3e();if(!Ee(v)||v<=0||!Ee(g)||g<=0||!Ee(d)||d!==+d||!Ee(p)||p!==+p)return null;var S=f.verticalCoordinatesGenerator||Lke,C=f.horizontalCoordinatesGenerator||Rke,P=f.horizontalPoints,T=f.verticalPoints;if((!P||!P.length)&&We(C)){var j=x&&x.length,$=C({yAxis:w?Dn(Dn({},w),{},{ticks:j?x:w.ticks}):void 0,width:s,height:c,offset:l},j?!0:y);ki(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(fl($),"]")),Array.isArray($)&&(P=$)}if((!T||!T.length)&&We(S)){var M=b&&b.length,I=S({xAxis:_?Dn(Dn({},_),{},{ticks:M?b:_.ticks}):void 0,width:s,height:c,offset:l},M?!0:y);ki(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(fl(I),"]")),Array.isArray(I)&&(T=I)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(jke,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),V.createElement(Ake,Bs({},f,{offset:l,horizontalPoints:P,xAxis:_,yAxis:w})),V.createElement(kke,Bs({},f,{offset:l,verticalPoints:T,xAxis:_,yAxis:w})),V.createElement(Nke,Bs({},f,{horizontalPoints:P})),V.createElement(Mke,Bs({},f,{verticalPoints:T})))}iE.displayName="CartesianGrid";var $ke=["type","layout","connectNulls","ref"],Ike=["key"];function mu(e){"@babel/helpers - typeof";return mu=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},mu(e)}function WL(e,t){if(e==null)return{};var n=Dke(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 Dke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function vd(){return vd=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},vd.apply(this,arguments)}function HL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HL(Object(n),!0).forEach(function(r){Si(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vl(e){return zke(e)||Uke(e)||Bke(e)||Fke()}function Fke(){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 Bke(e,t){if(e){if(typeof e=="string")return jO(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 jO(e,t)}}function Uke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zke(e){if(Array.isArray(e))return jO(e)}function jO(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 Vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GL(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,$7(r.key),r)}}function Wke(e,t,n){return t&&GL(e.prototype,t),n&&GL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hke(e,t,n){return t=fy(t),Gke(e,R7()?Reflect.construct(t,n||[],fy(e).constructor):t.apply(e,n))}function Gke(e,t){if(t&&(mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kke(e)}function Kke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R7=function(){return!!e})()}function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fy(e)}function qke(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&&AO(e,t)}function AO(e,t){return AO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AO(e,t)}function Si(e,t,n){return t=$7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $7(e){var t=Yke(e,"string");return mu(t)=="symbol"?t:t+""}function Yke(e,t){if(mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ku=function(e){function t(){var n;Vke(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Hke(this,t,[].concat(i)),Si(n,"state",{isAnimationFinished:!0,totalLength:0}),Si(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Si(n,"getStrokeDasharray",function(a,s,c){var l=c.reduce(function(b,_){return b+_});if(!l)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/l),d=a%l,p=s-a,v=[],g=0,y=0;g<c.length;y+=c[g],++g)if(y+c[g]>d){v=[].concat(Vl(c.slice(0,g)),[d-y]);break}var x=v.length%2===0?[0,p]:[p];return[].concat(Vl(t.repeat(c,f)),Vl(v),x).map(function(b){return"".concat(b,"px")}).join(", ")}),Si(n,"id",os("recharts-line-")),Si(n,"pathRef",function(a){n.mainCurve=a}),Si(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Si(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return qke(t,e),Wke(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,c=o.yAxis,l=o.layout,f=o.children,d=Jn(f,Wu);if(!d)return null;var p=function(y,x){return{x:y.x,y:y.y,value:y.value,errorVal:jt(y.payload,x)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Xe,v,d.map(function(g){return V.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:a,xAxis:s,yAxis:c,layout:l,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,l=s.points,f=s.dataKey,d=De(this.props,!1),p=De(c,!0),v=l.map(function(y,x){var b=_r(_r(_r({key:"dot-".concat(x),r:3},d),p),{},{value:y.value,dataKey:f,cx:y.x,cy:y.y,index:x,payload:y.payload});return t.renderDotItem(c,b)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Xe,vd({className:"recharts-line-dots",key:"dots"},g),v)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,c=s.type,l=s.layout,f=s.connectNulls;s.ref;var d=WL(s,$ke),p=_r(_r(_r({},De(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:c,layout:l,connectNulls:f});return V.createElement(Fa,vd({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.strokeDasharray,l=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,g=a.animateNewValues,y=a.width,x=a.height,b=this.state,_=b.prevPoints,w=b.totalLength;return V.createElement(fi,{begin:f,duration:d,isActive:l,easing:p,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var C=S.t;if(_){var P=_.length/s.length,T=s.map(function(F,q){var H=Math.floor(q*P);if(_[H]){var Z=_[H],Q=Bt(Z.x,F.x),te=Bt(Z.y,F.y);return _r(_r({},F),{},{x:Q(C),y:te(C)})}if(g){var X=Bt(y*2,F.x),U=Bt(x/2,F.y);return _r(_r({},F),{},{x:X(C),y:U(C)})}return _r(_r({},F),{},{x:F.x,y:F.y})});return o.renderCurveStatically(T,r,i)}var j=Bt(0,w),$=j(C),M;if(c){var I="".concat(c).split(/[,\s]+/gim).map(function(F){return parseFloat(F)});M=o.getStrokeDasharray($,w,I)}else M=o.generateSimpleStrokeDasharray(w,$);return o.renderCurveStatically(s,r,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,c=this.state,l=c.prevPoints,f=c.totalLength;return s&&a&&a.length&&(!l&&f>0||!qa(l,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,l=i.xAxis,f=i.yAxis,d=i.top,p=i.left,v=i.width,g=i.height,y=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var b=this.state.isAnimationFinished,_=s.length===1,w=Oe("recharts-line",c),S=l&&l.allowDataOverflow,C=f&&f.allowDataOverflow,P=S||C,T=ze(x)?this.id:x,j=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=j.r,M=$===void 0?3:$,I=j.strokeWidth,F=I===void 0?2:I,q=P5(a)?a:{},H=q.clipDot,Z=H===void 0?!0:H,Q=M*2+F;return V.createElement(Xe,{className:w},S||C?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?p:p-v/2,y:C?d:d-g/2,width:S?v:v*2,height:C?g:g*2})),!Z&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:p-Q/2,y:d-Q/2,width:v+Q,height:g+Q}))):null,!_&&this.renderCurve(P,T),this.renderErrorBar(P,T),(_||a)&&this.renderDots(P,Z,T),(!y||b)&&Ni.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(Vl(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(Vl(a),Vl(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(V.isValidElement(r))o=V.cloneElement(r,i);else if(We(r))o=r(i);else{var a=i.key,s=WL(i,Ike),c=Oe("recharts-line-dot",typeof r!="boolean"?r.className:"");o=V.createElement(up,vd({key:a},s,{className:c}))}return o}}])}(N.PureComponent);Si(Ku,"displayName","Line");Si(Ku,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ii.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Si(Ku,"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,c=e.displayedData,l=e.offset,f=t.layout,d=c.map(function(p,v){var g=jt(p,a);return f==="horizontal"?{x:ru({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:ru({axis:r,ticks:o,bandSize:s,entry:p,index:v}),value:g,payload:p}});return _r({points:d,layout:f},l)});var Zke=["layout","type","stroke","connectNulls","isRange","ref"],Xke=["key"],I7;function vu(e){"@babel/helpers - typeof";return vu=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},vu(e)}function D7(e,t){if(e==null)return{};var n=Qke(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 Qke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function 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 KL(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 fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KL(Object(n),!0).forEach(function(r){eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qL(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,B7(r.key),r)}}function eNe(e,t,n){return t&&qL(e.prototype,t),n&&qL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tNe(e,t,n){return t=dy(t),nNe(e,F7()?Reflect.construct(t,n||[],dy(e).constructor):t.apply(e,n))}function nNe(e,t){if(t&&(vu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rNe(e)}function rNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F7=function(){return!!e})()}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dy(e)}function iNe(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&&kO(e,t)}function kO(e,t){return kO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kO(e,t)}function eo(e,t,n){return t=B7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B7(e){var t=oNe(e,"string");return vu(t)=="symbol"?t:t+""}function oNe(e,t){if(vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xl=function(e){function t(){var n;Jke(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=tNe(this,t,[].concat(i)),eo(n,"state",{isAnimationFinished:!0}),eo(n,"id",os("recharts-area-")),eo(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),We(a)&&a()}),eo(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),We(a)&&a()}),n}return iNe(t,e),eNe(t,[{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var c=this.props,l=c.dot,f=c.points,d=c.dataKey,p=De(this.props,!1),v=De(l,!0),g=f.map(function(x,b){var _=fa(fa(fa({key:"dot-".concat(b),r:3},p),v),{},{index:b,cx:x.x,cy:x.y,dataKey:d,value:x.value,payload:x.payload,points:f});return t.renderDotItem(l,_)}),y={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Xe,Us({className:"recharts-area-dots"},y),g)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].x,l=a[a.length-1].x,f=r*Math.abs(c-l),d=Oa(a.map(function(p){return p.y||0}));return Ee(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(Oa(o.map(function(p){return p.y||0})),d)),Ee(d)?V.createElement("rect",{x:c<l?c:c-f,y:0,width:f,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].y,l=a[a.length-1].y,f=r*Math.abs(c-l),d=Oa(a.map(function(p){return p.x||0}));return Ee(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(Oa(o.map(function(p){return p.x||0})),d)),Ee(d)?V.createElement("rect",{x:0,y:c<l?c:c-f,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,o,a){var s=this.props,c=s.layout,l=s.type,f=s.stroke,d=s.connectNulls,p=s.isRange;s.ref;var v=D7(s,Zke);return V.createElement(Xe,{clipPath:o?"url(#clipPath-".concat(a,")"):null},V.createElement(Fa,Us({},De(v,!0),{points:r,connectNulls:d,type:l,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&V.createElement(Fa,Us({},De(this.props,!1),{className:"recharts-area-curve",layout:c,type:l,connectNulls:d,fill:"none",points:r})),f!=="none"&&p&&V.createElement(Fa,Us({},De(this.props,!1),{className:"recharts-area-curve",layout:c,type:l,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.baseLine,l=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,g=this.state,y=g.prevPoints,x=g.prevBaseLine;return V.createElement(fi,{begin:f,duration:d,isActive:l,easing:p,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var _=b.t;if(y){var w=y.length/s.length,S=s.map(function(j,$){var M=Math.floor($*w);if(y[M]){var I=y[M],F=Bt(I.x,j.x),q=Bt(I.y,j.y);return fa(fa({},j),{},{x:F(_),y:q(_)})}return j}),C;if(Ee(c)&&typeof c=="number"){var P=Bt(x,c);C=P(_)}else if(ze(c)||Iu(c)){var T=Bt(x,0);C=T(_)}else C=c.map(function(j,$){var M=Math.floor($*w);if(x[M]){var I=x[M],F=Bt(I.x,j.x),q=Bt(I.y,j.y);return fa(fa({},j),{},{x:F(_),y:q(_)})}return j});return o.renderAreaStatically(S,C,r,i)}return V.createElement(Xe,null,V.createElement("defs",null,V.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(_))),V.createElement(Xe,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,c,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,c=o.isAnimationActive,l=this.state,f=l.prevPoints,d=l.prevBaseLine,p=l.totalLength;return c&&a&&a.length&&(!f&&p>0||!qa(f,a)||!qa(d,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(a,s,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,l=i.top,f=i.left,d=i.xAxis,p=i.yAxis,v=i.width,g=i.height,y=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var b=this.state.isAnimationFinished,_=s.length===1,w=Oe("recharts-area",c),S=d&&d.allowDataOverflow,C=p&&p.allowDataOverflow,P=S||C,T=ze(x)?this.id:x,j=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=j.r,M=$===void 0?3:$,I=j.strokeWidth,F=I===void 0?2:I,q=P5(a)?a:{},H=q.clipDot,Z=H===void 0?!0:H,Q=M*2+F;return V.createElement(Xe,{className:w},S||C?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?f:f-v/2,y:C?l:l-g/2,width:S?v:v*2,height:C?g:g*2})),!Z&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:f-Q/2,y:l-Q/2,width:v+Q,height:g+Q}))):null,_?null:this.renderArea(P,T),(a||_)&&this.renderDots(P,Z,T),(!y||b)&&Ni.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(N.PureComponent);I7=xl;eo(xl,"displayName","Area");eo(xl,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ii.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});eo(xl,"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 c=i==="horizontal"?r:n,l=c.scale.domain();if(c.type==="number"){var f=Math.max(l[0],l[1]),d=Math.min(l[0],l[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(l[0],l[1]),0)}return s==="dataMin"?l[0]:s==="dataMax"?l[1]:l[0]});eo(xl,"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,c=e.dataKey,l=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=t.layout,g=l&&l.length,y=I7.getBaseValue(t,n,r,i),x=v==="horizontal",b=!1,_=d.map(function(S,C){var P;g?P=l[f+C]:(P=jt(S,c),Array.isArray(P)?b=!0:P=[y,P]);var T=P[1]==null||g&&jt(S,c)==null;return x?{x:ru({axis:r,ticks:o,bandSize:s,entry:S,index:C}),y:T?null:i.scale(P[1]),value:P,payload:S}:{x:T?null:r.scale(P[1]),y:ru({axis:i,ticks:a,bandSize:s,entry:S,index:C}),value:P,payload:S}}),w;return g||b?w=_.map(function(S){var C=Array.isArray(S.value)?S.value[0]:null;return x?{x:S.x,y:C!=null&&S.y!=null?i.scale(C):null}:{x:C!=null?r.scale(C):null,y:S.y}}):w=x?i.scale(y):r.scale(y),fa({points:_,baseLine:w,layout:v,isRange:b},p)});eo(xl,"renderDotItem",function(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(We(e))n=e(t);else{var r=Oe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=D7(t,Xke);n=V.createElement(up,Us({},o,{key:i,className:r}))}return n});function gu(e){"@babel/helpers - typeof";return gu=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},gu(e)}function aNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sNe(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,V7(r.key),r)}}function lNe(e,t,n){return t&&sNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cNe(e,t,n){return t=hy(t),uNe(e,U7()?Reflect.construct(t,n||[],hy(e).constructor):t.apply(e,n))}function uNe(e,t){if(t&&(gu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fNe(e)}function fNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U7=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hy(e)}function dNe(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 z7(e,t,n){return t=V7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V7(e){var t=hNe(e,"string");return gu(t)=="symbol"?t:t+""}function hNe(e,t){if(gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rb=function(e){function t(){return aNe(this,t),cNe(this,t,arguments)}return dNe(t,e),lNe(t,[{key:"render",value:function(){return null}}])}(V.Component);z7(rb,"displayName","ZAxis");z7(rb,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var pNe=["option","isActive"];function gd(){return gd=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},gd.apply(this,arguments)}function mNe(e,t){if(e==null)return{};var n=vNe(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 vNe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gNe(e){var t=e.option,n=e.isActive,r=mNe(e,pNe);return typeof t=="string"?V.createElement(Jg,gd({option:V.createElement(M0,gd({type:t},r)),isActive:n,shapeType:"symbols"},r)):V.createElement(Jg,gd({option:t,isActive:n,shapeType:"symbols"},r))}function yu(e){"@babel/helpers - typeof";return yu=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},yu(e)}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 YL(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 Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YL(Object(n),!0).forEach(function(r){Pa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZL(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,H7(r.key),r)}}function bNe(e,t,n){return t&&ZL(e.prototype,t),n&&ZL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ne(e,t,n){return t=py(t),xNe(e,W7()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}function xNe(e,t){if(t&&(yu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wNe(e)}function wNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W7=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}function ONe(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&&MO(e,t)}function MO(e,t){return MO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},MO(e,t)}function Pa(e,t,n){return t=H7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H7(e){var t=SNe(e,"string");return yu(t)=="symbol"?t:t+""}function SNe(e,t){if(yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ib=function(e){function t(){var n;yNe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=_Ne(this,t,[].concat(i)),Pa(n,"state",{isAnimationFinished:!1}),Pa(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Pa(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Pa(n,"id",os("recharts-scatter-")),n}return ONe(t,e),bNe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.activeShape,c=o.activeIndex,l=De(this.props,!1);return r.map(function(f,d){var p=c===d,v=p?s:a,g=Kr(Kr({},l),f);return V.createElement(Xe,yd({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(d)},Ka(i.props,f,d),{role:"img"}),V.createElement(gNe,yd({option:v,isActive:p,key:"symbol-".concat(d)},g)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevPoints;return V.createElement(fi,{begin:s,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,g=o.map(function(y,x){var b=d&&d[x];if(b){var _=Bt(b.cx,y.cx),w=Bt(b.cy,y.cy),S=Bt(b.size,y.size);return Kr(Kr({},y),{},{cx:_(v),cy:w(v),size:S(v)})}var C=Bt(0,y.size);return Kr(Kr({},y),{},{size:C(v)})});return V.createElement(Xe,null,r.renderSymbolsStatically(g))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,o=r.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!qa(a,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,a=i.xAxis,s=i.yAxis,c=i.children,l=Jn(c,Wu);return l?l.map(function(f,d){var p=f.props,v=p.direction,g=p.dataKey;return V.cloneElement(f,{key:"".concat(v,"-").concat(g,"-").concat(o[d]),data:o,xAxis:a,yAxis:s,layout:v==="x"?"vertical":"horizontal",dataPointFormatter:function(x,b){return{x:x.cx,y:x.cy,value:v==="x"?+x.node.x:+x.node.y,errorVal:jt(x,b)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,o=r.line,a=r.lineType,s=r.lineJointType,c=De(this.props,!1),l=De(o,!1),f,d;if(a==="joint")f=i.map(function(w){return{x:w.cx,y:w.cy}});else if(a==="fitting"){var p=Pde(i),v=p.xmin,g=p.xmax,y=p.a,x=p.b,b=function(S){return y*S+x};f=[{x:v,y:b(v)},{x:g,y:b(g)}]}var _=Kr(Kr(Kr({},c),{},{fill:"none",stroke:c&&c.fill},l),{},{points:f});return V.isValidElement(o)?d=V.cloneElement(o,_):We(o)?d=o(_):d=V.createElement(Fa,yd({},_,{type:s})),V.createElement(Xe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},d)}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.points,a=r.line,s=r.className,c=r.xAxis,l=r.yAxis,f=r.left,d=r.top,p=r.width,v=r.height,g=r.id,y=r.isAnimationActive;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,b=Oe("recharts-scatter",s),_=c&&c.allowDataOverflow,w=l&&l.allowDataOverflow,S=_||w,C=ze(g)?this.id:g;return V.createElement(Xe,{className:b,clipPath:S?"url(#clipPath-".concat(C,")"):null},_||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(C)},V.createElement("rect",{x:_?f:f-p/2,y:w?d:d-v/2,width:_?p:p*2,height:w?v:v*2}))):null,a&&this.renderLine(),this.renderErrorBar(),V.createElement(Xe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||x)&&Ni.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])}(N.PureComponent);Pa(ib,"displayName","Scatter");Pa(ib,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ii.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Pa(ib,"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,c=e.offset,l=i.props.tooltipType,f=Jn(i.props.children,Ia),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:rb.defaultProps.range,y=g&&g[0],x=t.scale.bandwidth?t.scale.bandwidth():0,b=n.scale.bandwidth?n.scale.bandwidth():0,_=o.map(function(w,S){var C=jt(w,d),P=jt(w,p),T=!ze(v)&&jt(w,v)||"-",j=[{name:ze(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:C,payload:w,dataKey:d,type:l},{name:ze(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:P,payload:w,dataKey:p,type:l}];T!=="-"&&j.push({name:r.name||r.dataKey,unit:r.unit||"",value:T,payload:w,dataKey:v,type:l});var $=ru({axis:t,ticks:a,bandSize:x,entry:w,index:S,dataKey:d}),M=ru({axis:n,ticks:s,bandSize:b,entry:w,index:S,dataKey:p}),I=T!=="-"?r.scale(T):y,F=Math.sqrt(Math.max(I,0)/Math.PI);return Kr(Kr({},w),{},{cx:$,cy:M,x:$-F,y:M-F,xAxis:t,yAxis:n,zAxis:r,width:2*F,height:2*F,size:I,node:{x:C,y:P,z:T},tooltipPayload:j,tooltipPosition:{x:$,y:M},payload:w},f&&f[S]&&f[S].props)});return Kr({points:_},c)});function bu(e){"@babel/helpers - typeof";return bu=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},bu(e)}function PNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CNe(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,q7(r.key),r)}}function ENe(e,t,n){return t&&CNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TNe(e,t,n){return t=my(t),jNe(e,G7()?Reflect.construct(t,n||[],my(e).constructor):t.apply(e,n))}function jNe(e,t){if(t&&(bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ANe(e)}function ANe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G7=function(){return!!e})()}function my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},my(e)}function kNe(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&&LO(e,t)}function LO(e,t){return LO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LO(e,t)}function K7(e,t,n){return t=q7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q7(e){var t=NNe(e,"string");return bu(t)=="symbol"?t:t+""}function NNe(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RO(){return RO=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},RO.apply(this,arguments)}function MNe(e){var t=e.xAxisId,n=QC(),r=JC(),i=O7(t);return i==null?null:V.createElement(Gu,RO({},i,{className:Oe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return jo(a,!0)}}))}var qu=function(e){function t(){return PNe(this,t),TNe(this,t,arguments)}return kNe(t,e),ENe(t,[{key:"render",value:function(){return V.createElement(MNe,this.props)}}])}(V.Component);K7(qu,"displayName","XAxis");K7(qu,"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 _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function LNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RNe(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,X7(r.key),r)}}function $Ne(e,t,n){return t&&RNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function INe(e,t,n){return t=vy(t),DNe(e,Y7()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}function DNe(e,t){if(t&&(_u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FNe(e)}function FNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y7=function(){return!!e})()}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function BNe(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&&$O(e,t)}function $O(e,t){return $O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$O(e,t)}function Z7(e,t,n){return t=X7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X7(e){var t=UNe(e,"string");return _u(t)=="symbol"?t:t+""}function UNe(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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)}var zNe=function(t){var n=t.yAxisId,r=QC(),i=JC(),o=S7(n);return o==null?null:V.createElement(Gu,IO({},o,{className:Oe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return jo(s,!0)}}))},Yu=function(e){function t(){return LNe(this,t),INe(this,t,arguments)}return BNe(t,e),$Ne(t,[{key:"render",value:function(){return V.createElement(zNe,this.props)}}])}(V.Component);Z7(Yu,"displayName","YAxis");Z7(Yu,"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 XL(e){return GNe(e)||HNe(e)||WNe(e)||VNe()}function VNe(){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 WNe(e,t){if(e){if(typeof e=="string")return DO(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 DO(e,t)}}function HNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GNe(e){if(Array.isArray(e))return DO(e)}function DO(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 FO=function(t,n,r,i,o){var a=Jn(t,tE),s=Jn(t,tb),c=[].concat(XL(a),XL(s)),l=Jn(t,fp),f="".concat(i,"Id"),d=i[0],p=n;if(c.length&&(p=c.reduce(function(y,x){if(x.props[f]===r&&oo(x.props,"extendDomain")&&Ee(x.props[d])){var b=x.props[d];return[Math.min(y[0],b),Math.max(y[1],b)]}return y},p)),l.length){var v="".concat(d,"1"),g="".concat(d,"2");p=l.reduce(function(y,x){if(x.props[f]===r&&oo(x.props,"extendDomain")&&Ee(x.props[v])&&Ee(x.props[g])){var b=x.props[v],_=x.props[g];return[Math.min(y[0],b,_),Math.max(y[1],b,_)]}return y},p)}return o&&o.length&&(p=o.reduce(function(y,x){return Ee(x)?[Math.min(y[0],x),Math.max(y[1],x)]:y},p)),p},Q7={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(c,l,f){this.fn=c,this.context=l,this.once=f||!1}function o(c,l,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new i(f,d||c,p),g=n?n+l:l;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],v]:c._events[g].push(v):(c._events[g]=v,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,d;if(this._eventsCount===0)return l;for(d in f=this._events)t.call(f,d)&&l.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=n?n+l:l,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,g=new Array(v);p<v;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(l){var f=n?n+l:l,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(l,f,d,p,v,g){var y=n?n+l:l;if(!this._events[y])return!1;var x=this._events[y],b=arguments.length,_,w;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),b){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,f),!0;case 3:return x.fn.call(x.context,f,d),!0;case 4:return x.fn.call(x.context,f,d,p),!0;case 5:return x.fn.call(x.context,f,d,p,v),!0;case 6:return x.fn.call(x.context,f,d,p,v,g),!0}for(w=1,_=new Array(b-1);w<b;w++)_[w-1]=arguments[w];x.fn.apply(x.context,_)}else{var S=x.length,C;for(w=0;w<S;w++)switch(x[w].once&&this.removeListener(l,x[w].fn,void 0,!0),b){case 1:x[w].fn.call(x[w].context);break;case 2:x[w].fn.call(x[w].context,f);break;case 3:x[w].fn.call(x[w].context,f,d);break;case 4:x[w].fn.call(x[w].context,f,d,p);break;default:if(!_)for(C=1,_=new Array(b-1);C<b;C++)_[C-1]=arguments[C];x[w].fn.apply(x[w].context,_)}}return!0},s.prototype.on=function(l,f,d){return o(this,l,f,d,!1)},s.prototype.once=function(l,f,d){return o(this,l,f,d,!0)},s.prototype.removeListener=function(l,f,d,p){var v=n?n+l:l;if(!this._events[v])return this;if(!f)return a(this,v),this;var g=this._events[v];if(g.fn)g.fn===f&&(!p||g.once)&&(!d||g.context===d)&&a(this,v);else{for(var y=0,x=[],b=g.length;y<b;y++)(g[y].fn!==f||p&&!g[y].once||d&&g[y].context!==d)&&x.push(g[y]);x.length?this._events[v]=x.length===1?x[0]:x:a(this,v)}return this},s.prototype.removeAllListeners=function(l){var f;return l?(f=n?n+l:l,this._events[f]&&a(this,f)):(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})(Q7);var KNe=Q7.exports;const qNe=st(KNe);var o_=new qNe,a_="recharts.syncMouseEvents";function Lh(e){"@babel/helpers - typeof";return Lh=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},Lh(e)}function YNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZNe(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,J7(r.key),r)}}function XNe(e,t,n){return t&&ZNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s_(e,t,n){return t=J7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J7(e){var t=QNe(e,"string");return Lh(t)=="symbol"?t:t+""}function QNe(e,t){if(Lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var JNe=function(){function e(){YNe(this,e),s_(this,"activeIndex",0),s_(this,"coordinateList",[]),s_(this,"layout","horizontal")}return XNe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,s=a===void 0?null:a,c=n.layout,l=c===void 0?null:c,f=n.offset,d=f===void 0?null:f,p=n.mouseHandlerCallback,v=p===void 0?null:p;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=l??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,l=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=o+c+l,p=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:p})}}}])}();function eMe(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 tMe(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 eB(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 nMe(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,c=t.cy,l=t.innerRadius,f=t.outerRadius,d=t.angle,p=St(s,c,l,d),v=St(s,c,f,d);r=p.x,i=p.y,o=v.x,a=v.y}else return eB(t);return[{x:r,y:i},{x:o,y:a}]}function Rh(e){"@babel/helpers - typeof";return Rh=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},Rh(e)}function QL(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 Om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QL(Object(n),!0).forEach(function(r){rMe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rMe(e,t,n){return t=iMe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iMe(e){var t=oMe(e,"string");return Rh(t)=="symbol"?t:t+""}function oMe(e,t){if(Rh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aMe(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,l=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,p=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!o||!a||p!=="ScatterChart"&&i!=="axis")return null;var g,y=Fa;if(p==="ScatterChart")g=a,y=YEe;else if(p==="BarChart")g=tMe(d,a,c,f),y=qC;else if(d==="radial"){var x=eB(a),b=x.cx,_=x.cy,w=x.radius,S=x.startAngle,C=x.endAngle;g={cx:b,cy:_,startAngle:S,endAngle:C,innerRadius:w,outerRadius:w},y=WF}else g={points:nMe(d,a,c)},y=Fa;var P=Om(Om(Om(Om({stroke:"#ccc",pointerEvents:"none"},c),g),De(v,!1)),{},{payload:s,payloadIndex:l,className:Oe("recharts-tooltip-cursor",v.className)});return N.isValidElement(v)?N.cloneElement(v,P):N.createElement(y,P)}var sMe=["item"],lMe=["children","className","width","height","style","compact","title","desc"];function xu(e){"@babel/helpers - typeof";return xu=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},xu(e)}function gc(){return gc=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},gc.apply(this,arguments)}function JL(e,t){return fMe(e)||uMe(e,t)||nB(e,t)||cMe()}function cMe(){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 uMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){l=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function fMe(e){if(Array.isArray(e))return e}function eR(e,t){if(e==null)return{};var n=dMe(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 dMe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pMe(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 mMe(e,t,n){return t&&pMe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vMe(e,t,n){return t=gy(t),gMe(e,tB()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function gMe(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yMe(e)}function yMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tB=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function bMe(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 wu(e){return wMe(e)||xMe(e)||nB(e)||_Me()}function _Me(){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 nB(e,t){if(e){if(typeof e=="string")return UO(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 UO(e,t)}}function xMe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wMe(e){if(Array.isArray(e))return UO(e)}function UO(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 tR(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 me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tR(Object(n),!0).forEach(function(r){He(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function He(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=OMe(e,"string");return xu(t)=="symbol"?t:t+""}function OMe(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SMe={xAxis:["bottom","top"],yAxis:["left","right"]},PMe={width:"100%",height:"100%"},iB={x:0,y:0};function Sm(e){return e}var CMe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},EMe=function(t,n,r,i){var o=n.find(function(f){return f&&f.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return me(me(me({},i),St(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var c=o.coordinate,l=i.angle;return me(me(me({},i),St(i.cx,i.cy,c,l)),{},{angle:l,radius:c})}return iB},ob=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(s,c){var l=c.props.data;return l&&l.length?[].concat(wu(s),wu(l)):s},[]);return a.length>0?a:t&&t.length&&Ee(i)&&Ee(o)?t.slice(i,o+1):[]};function oB(e){return e==="number"?[0,"auto"]:void 0}var zO=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=ob(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(c,l){var f,d=(f=l.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(a.dataKey&&!a.allowDuplicatedCategory){var v=d===void 0?s:d;p=pg(v,a.dataKey,i)}else p=d&&d[r]||s[r];return p?[].concat(wu(c),[DF(l,p)]):c},[])},nR=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=CMe(o,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,f=LSe(a,s,l,c);if(f>=0&&l){var d=l[f]&&l[f].value,p=zO(t,n,f,d),v=EMe(r,s,f,o);return{activeTooltipIndex:f,activeLabel:d,activePayload:p,activeCoordinate:v}}return null},TMe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,l=n.dataEndIndex,f=t.layout,d=t.children,p=t.stackOffset,v=NF(f,o);return r.reduce(function(g,y){var x,b=y.type.defaultProps!==void 0?me(me({},y.type.defaultProps),y.props):y.props,_=b.type,w=b.dataKey,S=b.allowDataOverflow,C=b.allowDuplicatedCategory,P=b.scale,T=b.ticks,j=b.includeHidden,$=b[a];if(g[$])return g;var M=ob(t.data,{graphicalItems:i.filter(function(ee){var G,ne=a in ee.props?ee.props[a]:(G=ee.type.defaultProps)===null||G===void 0?void 0:G[a];return ne===$}),dataStartIndex:c,dataEndIndex:l}),I=M.length,F,q,H;eMe(b.domain,S,_)&&(F=J2(b.domain,null,S),v&&(_==="number"||P!=="auto")&&(H=dd(M,w,"category")));var Z=oB(_);if(!F||F.length===0){var Q,te=(Q=b.domain)!==null&&Q!==void 0?Q:Z;if(w){if(F=dd(M,w,_),_==="category"&&v){var X=Sde(F);C&&X?(q=F,F=ty(0,I)):C||(F=_M(te,F,y).reduce(function(ee,G){return ee.indexOf(G)>=0?ee:[].concat(wu(ee),[G])},[]))}else if(_==="category")C?F=F.filter(function(ee){return ee!==""&&!ze(ee)}):F=_M(te,F,y).reduce(function(ee,G){return ee.indexOf(G)>=0||G===""||ze(G)?ee:[].concat(wu(ee),[G])},[]);else if(_==="number"){var U=FSe(M,i.filter(function(ee){var G,ne,re=a in ee.props?ee.props[a]:(G=ee.type.defaultProps)===null||G===void 0?void 0:G[a],ae="hide"in ee.props?ee.props.hide:(ne=ee.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return re===$&&(j||!ae)}),w,o,f);U&&(F=U)}v&&(_==="number"||P!=="auto")&&(H=dd(M,w,"category"))}else v?F=ty(0,I):s&&s[$]&&s[$].hasStack&&_==="number"?F=p==="expand"?[0,1]:IF(s[$].stackGroups,c,l):F=kF(M,i.filter(function(ee){var G=a in ee.props?ee.props[a]:ee.type.defaultProps[a],ne="hide"in ee.props?ee.props.hide:ee.type.defaultProps.hide;return G===$&&(j||!ne)}),_,f,!0);if(_==="number")F=FO(d,F,$,o,T),te&&(F=J2(te,F,S));else if(_==="category"&&te){var B=te,W=F.every(function(ee){return B.indexOf(ee)>=0});W&&(F=B)}}return me(me({},g),{},He({},$,me(me({},b),{},{axisType:o,domain:F,categoricalDomain:H,duplicateDomain:q,originalDomain:(x=b.domain)!==null&&x!==void 0?x:Z,isCategorical:v,layout:f})))},{})},jMe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,l=n.dataEndIndex,f=t.layout,d=t.children,p=ob(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),v=p.length,g=NF(f,o),y=-1;return r.reduce(function(x,b){var _=b.type.defaultProps!==void 0?me(me({},b.type.defaultProps),b.props):b.props,w=_[a],S=oB("number");if(!x[w]){y++;var C;return g?C=ty(0,v):s&&s[w]&&s[w].hasStack?(C=IF(s[w].stackGroups,c,l),C=FO(d,C,w,o)):(C=J2(S,kF(p,r.filter(function(P){var T,j,$=a in P.props?P.props[a]:(T=P.type.defaultProps)===null||T===void 0?void 0:T[a],M="hide"in P.props?P.props.hide:(j=P.type.defaultProps)===null||j===void 0?void 0:j.hide;return $===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),C=FO(d,C,w,o)),me(me({},x),{},He({},w,me(me({axisType:o},i.defaultProps),{},{hide:!0,orientation:Tr(SMe,"".concat(o,".").concat(y%2),null),domain:C,originalDomain:S,isCategorical:g,layout:f})))}return x},{})},AMe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,l=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),p=Jn(f,o),v={};return p&&p.length?v=TMe(t,{axes:p,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:l}):a&&a.length&&(v=jMe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:l})),v},kMe=function(t){var n=ba(t),r=jo(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:_C(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:zg(n,r)}},rR=function(t){var n=t.children,r=t.defaultShowTooltip,i=Or(n,cu),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},NMe=function(t){return!t||!t.length?!1:t.some(function(n){var r=No(n&&n.type);return r&&r.indexOf("Bar")>=0})},iR=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},MMe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,c=s===void 0?{}:s,l=r.width,f=r.height,d=r.children,p=r.margin||{},v=Or(d,cu),g=Or(d,Ec),y=Object.keys(c).reduce(function(C,P){var T=c[P],j=T.orientation;return!T.mirror&&!T.hide?me(me({},C),{},He({},j,C[j]+T.width)):C},{left:p.left||0,right:p.right||0}),x=Object.keys(a).reduce(function(C,P){var T=a[P],j=T.orientation;return!T.mirror&&!T.hide?me(me({},C),{},He({},j,Tr(C,"".concat(j))+T.height)):C},{top:p.top||0,bottom:p.bottom||0}),b=me(me({},x),y),_=b.bottom;v&&(b.bottom+=v.props.height||cu.defaultProps.height),g&&n&&(b=ISe(b,i,r,n));var w=l-b.left-b.right,S=f-b.top-b.bottom;return me(me({brushBottom:_},b),{},{width:Math.max(w,0),height:Math.max(S,0)})},LMe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},oE=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,l=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,p=function(b,_){var w=_.graphicalItems,S=_.stackGroups,C=_.offset,P=_.updateId,T=_.dataStartIndex,j=_.dataEndIndex,$=b.barSize,M=b.layout,I=b.barGap,F=b.barCategoryGap,q=b.maxBarSize,H=iR(M),Z=H.numericAxisName,Q=H.cateAxisName,te=NMe(w),X=[];return w.forEach(function(U,B){var W=ob(b.data,{graphicalItems:[U],dataStartIndex:T,dataEndIndex:j}),ee=U.type.defaultProps!==void 0?me(me({},U.type.defaultProps),U.props):U.props,G=ee.dataKey,ne=ee.maxBarSize,re=ee["".concat(Z,"Id")],ae=ee["".concat(Q,"Id")],fe={},A=c.reduce(function(Te,Ae){var le=_["".concat(Ae.axisType,"Map")],ue=ee["".concat(Ae.axisType,"Id")];le&&le[ue]||Ae.axisType==="zAxis"||ul();var ge=le[ue];return me(me({},Te),{},He(He({},Ae.axisType,ge),"".concat(Ae.axisType,"Ticks"),jo(ge)))},fe),k=A[Q],z=A["".concat(Q,"Ticks")],J=S&&S[re]&&S[re].hasStack&&qSe(U,S[re].stackGroups),Y=No(U.type).indexOf("Bar")>=0,ie=zg(k,z),de=[],Ce=te&&RSe({barSize:$,stackGroups:S,totalSize:LMe(A,Q)});if(Y){var se,pe,ve=ze(ne)?q:ne,xe=(se=(pe=zg(k,z,!0))!==null&&pe!==void 0?pe:ve)!==null&&se!==void 0?se:0;de=$Se({barGap:I,barCategoryGap:F,bandSize:xe!==ie?xe:ie,sizeList:Ce[ae],maxBarSize:ve}),xe!==ie&&(de=de.map(function(Te){return me(me({},Te),{},{position:me(me({},Te.position),{},{offset:Te.position.offset-xe/2})})}))}var Ne=U&&U.type&&U.type.getComposedData;Ne&&X.push({props:me(me({},Ne(me(me({},A),{},{displayedData:W,props:b,dataKey:G,item:U,bandSize:ie,barPosition:de,offset:C,stackedData:J,layout:M,dataStartIndex:T,dataEndIndex:j}))),{},He(He(He({key:U.key||"item-".concat(B)},Z,A[Z]),Q,A[Q]),"animationId",P)),childIndex:$de(U,b.children),item:U})}),X},v=function(b,_){var w=b.props,S=b.dataStartIndex,C=b.dataEndIndex,P=b.updateId;if(!pk({props:w}))return null;var T=w.children,j=w.layout,$=w.stackOffset,M=w.data,I=w.reverseStackOrder,F=iR(j),q=F.numericAxisName,H=F.cateAxisName,Z=Jn(T,r),Q=GSe(M,Z,"".concat(q,"Id"),"".concat(H,"Id"),$,I),te=c.reduce(function(ee,G){var ne="".concat(G.axisType,"Map");return me(me({},ee),{},He({},ne,AMe(w,me(me({},G),{},{graphicalItems:Z,stackGroups:G.axisType===q&&Q,dataStartIndex:S,dataEndIndex:C}))))},{}),X=MMe(me(me({},te),{},{props:w,graphicalItems:Z}),_==null?void 0:_.legendBBox);Object.keys(te).forEach(function(ee){te[ee]=f(w,te[ee],X,ee.replace("Map",""),n)});var U=te["".concat(H,"Map")],B=kMe(U),W=p(w,me(me({},te),{},{dataStartIndex:S,dataEndIndex:C,updateId:P,graphicalItems:Z,stackGroups:Q,offset:X}));return me(me({formattedGraphicalItems:W,graphicalItems:Z,offset:X,stackGroups:Q},B),te)},g=function(x){function b(_){var w,S,C;return hMe(this,b),C=vMe(this,b,[_]),He(C,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),He(C,"accessibilityManager",new JNe),He(C,"handleLegendBBoxUpdate",function(P){if(P){var T=C.state,j=T.dataStartIndex,$=T.dataEndIndex,M=T.updateId;C.setState(me({legendBBox:P},v({props:C.props,dataStartIndex:j,dataEndIndex:$,updateId:M},me(me({},C.state),{},{legendBBox:P}))))}}),He(C,"handleReceiveSyncEvent",function(P,T,j){if(C.props.syncId===P){if(j===C.eventEmitterSymbol&&typeof C.props.syncMethod!="function")return;C.applySyncEvent(T)}}),He(C,"handleBrushChange",function(P){var T=P.startIndex,j=P.endIndex;if(T!==C.state.dataStartIndex||j!==C.state.dataEndIndex){var $=C.state.updateId;C.setState(function(){return me({dataStartIndex:T,dataEndIndex:j},v({props:C.props,dataStartIndex:T,dataEndIndex:j,updateId:$},C.state))}),C.triggerSyncEvent({dataStartIndex:T,dataEndIndex:j})}}),He(C,"handleMouseEnter",function(P){var T=C.getMouseInfo(P);if(T){var j=me(me({},T),{},{isTooltipActive:!0});C.setState(j),C.triggerSyncEvent(j);var $=C.props.onMouseEnter;We($)&&$(j,P)}}),He(C,"triggeredAfterMouseMove",function(P){var T=C.getMouseInfo(P),j=T?me(me({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};C.setState(j),C.triggerSyncEvent(j);var $=C.props.onMouseMove;We($)&&$(j,P)}),He(C,"handleItemMouseEnter",function(P){C.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),He(C,"handleItemMouseLeave",function(){C.setState(function(){return{isTooltipActive:!1}})}),He(C,"handleMouseMove",function(P){P.persist(),C.throttleTriggeredAfterMouseMove(P)}),He(C,"handleMouseLeave",function(P){C.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};C.setState(T),C.triggerSyncEvent(T);var j=C.props.onMouseLeave;We(j)&&j(T,P)}),He(C,"handleOuterEvent",function(P){var T=Rde(P),j=Tr(C.props,"".concat(T));if(T&&We(j)){var $,M;/.*touch.*/i.test(T)?M=C.getMouseInfo(P.changedTouches[0]):M=C.getMouseInfo(P),j(($=M)!==null&&$!==void 0?$:{},P)}}),He(C,"handleClick",function(P){var T=C.getMouseInfo(P);if(T){var j=me(me({},T),{},{isTooltipActive:!0});C.setState(j),C.triggerSyncEvent(j);var $=C.props.onClick;We($)&&$(j,P)}}),He(C,"handleMouseDown",function(P){var T=C.props.onMouseDown;if(We(T)){var j=C.getMouseInfo(P);T(j,P)}}),He(C,"handleMouseUp",function(P){var T=C.props.onMouseUp;if(We(T)){var j=C.getMouseInfo(P);T(j,P)}}),He(C,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&C.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),He(C,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&C.handleMouseDown(P.changedTouches[0])}),He(C,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&C.handleMouseUp(P.changedTouches[0])}),He(C,"triggerSyncEvent",function(P){C.props.syncId!==void 0&&o_.emit(a_,C.props.syncId,P,C.eventEmitterSymbol)}),He(C,"applySyncEvent",function(P){var T=C.props,j=T.layout,$=T.syncMethod,M=C.state.updateId,I=P.dataStartIndex,F=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)C.setState(me({dataStartIndex:I,dataEndIndex:F},v({props:C.props,dataStartIndex:I,dataEndIndex:F,updateId:M},C.state)));else if(P.activeTooltipIndex!==void 0){var q=P.chartX,H=P.chartY,Z=P.activeTooltipIndex,Q=C.state,te=Q.offset,X=Q.tooltipTicks;if(!te)return;if(typeof $=="function")Z=$(X,P);else if($==="value"){Z=-1;for(var U=0;U<X.length;U++)if(X[U].value===P.activeLabel){Z=U;break}}var B=me(me({},te),{},{x:te.left,y:te.top}),W=Math.min(q,B.x+B.width),ee=Math.min(H,B.y+B.height),G=X[Z]&&X[Z].value,ne=zO(C.state,C.props.data,Z),re=X[Z]?{x:j==="horizontal"?X[Z].coordinate:W,y:j==="horizontal"?ee:X[Z].coordinate}:iB;C.setState(me(me({},P),{},{activeLabel:G,activeCoordinate:re,activePayload:ne,activeTooltipIndex:Z}))}else C.setState(P)}),He(C,"renderCursor",function(P){var T,j=C.state,$=j.isTooltipActive,M=j.activeCoordinate,I=j.activePayload,F=j.offset,q=j.activeTooltipIndex,H=j.tooltipAxisBandSize,Z=C.getTooltipEventType(),Q=(T=P.props.active)!==null&&T!==void 0?T:$,te=C.props.layout,X=P.key||"_recharts-cursor";return V.createElement(aMe,{key:X,activeCoordinate:M,activePayload:I,activeTooltipIndex:q,chartName:n,element:P,isActive:Q,layout:te,offset:F,tooltipAxisBandSize:H,tooltipEventType:Z})}),He(C,"renderPolarAxis",function(P,T,j){var $=Tr(P,"type.axisType"),M=Tr(C.state,"".concat($,"Map")),I=P.type.defaultProps,F=I!==void 0?me(me({},I),P.props):P.props,q=M&&M[F["".concat($,"Id")]];return N.cloneElement(P,me(me({},q),{},{className:Oe($,q.className),key:P.key||"".concat(T,"-").concat(j),ticks:jo(q,!0)}))}),He(C,"renderPolarGrid",function(P){var T=P.props,j=T.radialLines,$=T.polarAngles,M=T.polarRadius,I=C.state,F=I.radiusAxisMap,q=I.angleAxisMap,H=ba(F),Z=ba(q),Q=Z.cx,te=Z.cy,X=Z.innerRadius,U=Z.outerRadius;return N.cloneElement(P,{polarAngles:Array.isArray($)?$:jo(Z,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(M)?M:jo(H,!0).map(function(B){return B.coordinate}),cx:Q,cy:te,innerRadius:X,outerRadius:U,key:P.key||"polar-grid",radialLines:j})}),He(C,"renderLegend",function(){var P=C.state.formattedGraphicalItems,T=C.props,j=T.children,$=T.width,M=T.height,I=C.props.margin||{},F=$-(I.left||0)-(I.right||0),q=jF({children:j,formattedGraphicalItems:P,legendWidth:F,legendContent:l});if(!q)return null;var H=q.item,Z=eR(q,sMe);return N.cloneElement(H,me(me({},Z),{},{chartWidth:$,chartHeight:M,margin:I,onBBoxUpdate:C.handleLegendBBoxUpdate}))}),He(C,"renderTooltip",function(){var P,T=C.props,j=T.children,$=T.accessibilityLayer,M=Or(j,qr);if(!M)return null;var I=C.state,F=I.isTooltipActive,q=I.activeCoordinate,H=I.activePayload,Z=I.activeLabel,Q=I.offset,te=(P=M.props.active)!==null&&P!==void 0?P:F;return N.cloneElement(M,{viewBox:me(me({},Q),{},{x:Q.left,y:Q.top}),active:te,label:Z,payload:te?H:[],coordinate:q,accessibilityLayer:$})}),He(C,"renderBrush",function(P){var T=C.props,j=T.margin,$=T.data,M=C.state,I=M.offset,F=M.dataStartIndex,q=M.dataEndIndex,H=M.updateId;return N.cloneElement(P,{key:P.key||"_recharts-brush",onChange:bm(C.handleBrushChange,P.props.onChange),data:$,x:Ee(P.props.x)?P.props.x:I.left,y:Ee(P.props.y)?P.props.y:I.top+I.height+I.brushBottom-(j.bottom||0),width:Ee(P.props.width)?P.props.width:I.width,startIndex:F,endIndex:q,updateId:"brush-".concat(H)})}),He(C,"renderReferenceElement",function(P,T,j){if(!P)return null;var $=C,M=$.clipPathId,I=C.state,F=I.xAxisMap,q=I.yAxisMap,H=I.offset,Z=P.type.defaultProps||{},Q=P.props,te=Q.xAxisId,X=te===void 0?Z.xAxisId:te,U=Q.yAxisId,B=U===void 0?Z.yAxisId:U;return N.cloneElement(P,{key:P.key||"".concat(T,"-").concat(j),xAxis:F[X],yAxis:q[B],viewBox:{x:H.left,y:H.top,width:H.width,height:H.height},clipPathId:M})}),He(C,"renderActivePoints",function(P){var T=P.item,j=P.activePoint,$=P.basePoint,M=P.childIndex,I=P.isRange,F=[],q=T.props.key,H=T.item.type.defaultProps!==void 0?me(me({},T.item.type.defaultProps),T.item.props):T.item.props,Z=H.activeDot,Q=H.dataKey,te=me(me({index:M,dataKey:Q,cx:j.x,cy:j.y,r:4,fill:KC(T.item),strokeWidth:2,stroke:"#fff",payload:j.payload,value:j.value},De(Z,!1)),mg(Z));return F.push(b.renderActiveDot(Z,te,"".concat(q,"-activePoint-").concat(M))),$?F.push(b.renderActiveDot(Z,me(me({},te),{},{cx:$.x,cy:$.y}),"".concat(q,"-basePoint-").concat(M))):I&&F.push(null),F}),He(C,"renderGraphicChild",function(P,T,j){var $=C.filterFormatItem(P,T,j);if(!$)return null;var M=C.getTooltipEventType(),I=C.state,F=I.isTooltipActive,q=I.tooltipAxis,H=I.activeTooltipIndex,Z=I.activeLabel,Q=C.props.children,te=Or(Q,qr),X=$.props,U=X.points,B=X.isRange,W=X.baseLine,ee=$.item.type.defaultProps!==void 0?me(me({},$.item.type.defaultProps),$.item.props):$.item.props,G=ee.activeDot,ne=ee.hide,re=ee.activeBar,ae=ee.activeShape,fe=!!(!ne&&F&&te&&(G||re||ae)),A={};M!=="axis"&&te&&te.props.trigger==="click"?A={onClick:bm(C.handleItemMouseEnter,P.props.onClick)}:M!=="axis"&&(A={onMouseLeave:bm(C.handleItemMouseLeave,P.props.onMouseLeave),onMouseEnter:bm(C.handleItemMouseEnter,P.props.onMouseEnter)});var k=N.cloneElement(P,me(me({},$.props),A));function z(Ae){return typeof q.dataKey=="function"?q.dataKey(Ae.payload):null}if(fe)if(H>=0){var J,Y;if(q.dataKey&&!q.allowDuplicatedCategory){var ie=typeof q.dataKey=="function"?z:"payload.".concat(q.dataKey.toString());J=pg(U,ie,Z),Y=B&&W&&pg(W,ie,Z)}else J=U==null?void 0:U[H],Y=B&&W&&W[H];if(ae||re){var de=P.props.activeIndex!==void 0?P.props.activeIndex:H;return[N.cloneElement(P,me(me(me({},$.props),A),{},{activeIndex:de})),null,null]}if(!ze(J))return[k].concat(wu(C.renderActivePoints({item:$,activePoint:J,basePoint:Y,childIndex:H,isRange:B})))}else{var Ce,se=(Ce=C.getItemByXY(C.state.activeCoordinate))!==null&&Ce!==void 0?Ce:{graphicalItem:k},pe=se.graphicalItem,ve=pe.item,xe=ve===void 0?P:ve,Ne=pe.childIndex,Te=me(me(me({},$.props),A),{},{activeIndex:Ne});return[N.cloneElement(xe,Te),null,null]}return B?[k,null,null]:[k,null]}),He(C,"renderCustomized",function(P,T,j){return N.cloneElement(P,me(me({key:"recharts-customized-".concat(j)},C.props),C.state))}),He(C,"renderMap",{CartesianGrid:{handler:Sm,once:!0},ReferenceArea:{handler:C.renderReferenceElement},ReferenceLine:{handler:Sm},ReferenceDot:{handler:C.renderReferenceElement},XAxis:{handler:Sm},YAxis:{handler:Sm},Brush:{handler:C.renderBrush,once:!0},Bar:{handler:C.renderGraphicChild},Line:{handler:C.renderGraphicChild},Area:{handler:C.renderGraphicChild},Radar:{handler:C.renderGraphicChild},RadialBar:{handler:C.renderGraphicChild},Scatter:{handler:C.renderGraphicChild},Pie:{handler:C.renderGraphicChild},Funnel:{handler:C.renderGraphicChild},Tooltip:{handler:C.renderCursor,once:!0},PolarGrid:{handler:C.renderPolarGrid,once:!0},PolarAngleAxis:{handler:C.renderPolarAxis},PolarRadiusAxis:{handler:C.renderPolarAxis},Customized:{handler:C.renderCustomized}}),C.clipPathId="".concat((w=_.id)!==null&&w!==void 0?w:os("recharts"),"-clip"),C.throttleTriggeredAfterMouseMove=T8(C.triggeredAfterMouseMove,(S=_.throttleDelay)!==null&&S!==void 0?S:1e3/60),C.state={},C}return bMe(b,x),mMe(b,[{key:"componentDidMount",value:function(){var w,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,S=w.children,C=w.data,P=w.height,T=w.layout,j=Or(S,qr);if(j){var $=j.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,I=zO(this.state,C,$,M),F=this.state.tooltipTicks[$].coordinate,q=(this.state.offset.top+P)/2,H=T==="horizontal",Z=H?{x:F,y:q}:{y:F,x:q},Q=this.state.formattedGraphicalItems.find(function(X){var U=X.item;return U.type.name==="Scatter"});Q&&(Z=me(me({},Z),Q.props.points[$].tooltipPosition),I=Q.props.points[$].tooltipPayload);var te={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:M,activePayload:I,activeCoordinate:Z};this.setState(te),this.renderCursor(j),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.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 C,P;this.accessibilityManager.setDetails({offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(w){p2([Or(w.children,qr)],[Or(this.props.children,qr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Or(this.props.children,qr);if(w&&typeof w.props.shared=="boolean"){var S=w.props.shared?"axis":"item";return s.indexOf(S)>=0?S:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var S=this.container,C=S.getBoundingClientRect(),P=lxe(C),T={chartX:Math.round(w.pageX-P.left),chartY:Math.round(w.pageY-P.top)},j=C.width/S.offsetWidth||1,$=this.inRange(T.chartX,T.chartY,j);if(!$)return null;var M=this.state,I=M.xAxisMap,F=M.yAxisMap,q=this.getTooltipEventType();if(q!=="axis"&&I&&F){var H=ba(I).scale,Z=ba(F).scale,Q=H&&H.invert?H.invert(T.chartX):null,te=Z&&Z.invert?Z.invert(T.chartY):null;return me(me({},T),{},{xValue:Q,yValue:te})}var X=nR(this.state,this.props.data,this.props.layout,$);return X?me(me({},T),X):null}},{key:"inRange",value:function(w,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,T=w/C,j=S/C;if(P==="horizontal"||P==="vertical"){var $=this.state.offset,M=T>=$.left&&T<=$.left+$.width&&j>=$.top&&j<=$.top+$.height;return M?{x:T,y:j}:null}var I=this.state,F=I.angleAxisMap,q=I.radiusAxisMap;if(F&&q){var H=ba(F);return OM({x:T,y:j},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,S=this.getTooltipEventType(),C=Or(w,qr),P={};C&&S==="axis"&&(C.props.trigger==="click"?P={onClick:this.handleClick}:P={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var T=mg(this.props,this.handleOuterEvent);return me(me({},T),P)}},{key:"addListener",value:function(){o_.on(a_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){o_.removeListener(a_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,S,C){for(var P=this.state.formattedGraphicalItems,T=0,j=P.length;T<j;T++){var $=P[T];if($.item===w||$.props.key===w.key||S===No($.item.type)&&C===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,S=this.state.offset,C=S.left,P=S.top,T=S.height,j=S.width;return V.createElement("defs",null,V.createElement("clipPath",{id:w},V.createElement("rect",{x:C,y:P,height:T,width:j})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(S,C){var P=JL(C,2),T=P[0],j=P[1];return me(me({},S),{},He({},T,j.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(S,C){var P=JL(C,2),T=P[0],j=P[1];return me(me({},S),{},He({},T,j.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(w){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(w){var S=this.state,C=S.formattedGraphicalItems,P=S.activeItem;if(C&&C.length)for(var T=0,j=C.length;T<j;T++){var $=C[T],M=$.props,I=$.item,F=I.type.defaultProps!==void 0?me(me({},I.type.defaultProps),I.props):I.props,q=No(I.type);if(q==="Bar"){var H=(M.data||[]).find(function(X){return jEe(w,X)});if(H)return{graphicalItem:$,payload:H}}else if(q==="RadialBar"){var Z=(M.data||[]).find(function(X){return OM(w,X)});if(Z)return{graphicalItem:$,payload:Z}}else if(X0($,P)||Q0($,P)||jh($,P)){var Q=gje({graphicalItem:$,activeTooltipItem:P,itemData:F.data}),te=F.activeIndex===void 0?Q:F.activeIndex;return{graphicalItem:me(me({},$),{},{childIndex:te}),payload:jh($,P)?F.data[Q]:$.props.data[Q]}}}return null}},{key:"render",value:function(){var w=this;if(!pk(this))return null;var S=this.props,C=S.children,P=S.className,T=S.width,j=S.height,$=S.style,M=S.compact,I=S.title,F=S.desc,q=eR(S,lMe),H=De(q,!1);if(M)return V.createElement(kL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(v2,gc({},H,{width:T,height:j,title:I,desc:F}),this.renderClipPath(),vk(C,this.renderMap)));if(this.props.accessibilityLayer){var Z,Q;H.tabIndex=(Z=this.props.tabIndex)!==null&&Z!==void 0?Z:0,H.role=(Q=this.props.role)!==null&&Q!==void 0?Q:"application",H.onKeyDown=function(X){w.accessibilityManager.keyboardEvent(X)},H.onFocus=function(){w.accessibilityManager.focus()}}var te=this.parseEventsOfWrapper();return V.createElement(kL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",gc({className:Oe("recharts-wrapper",P),style:me({position:"relative",cursor:"default",width:T,height:j},$)},te,{ref:function(U){w.container=U}}),V.createElement(v2,gc({},H,{width:T,height:j,title:I,desc:F,style:PMe}),this.renderClipPath(),vk(C,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(N.Component);He(g,"displayName",n),He(g,"defaultProps",me({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),He(g,"getDerivedStateFromProps",function(x,b){var _=x.dataKey,w=x.data,S=x.children,C=x.width,P=x.height,T=x.layout,j=x.stackOffset,$=x.margin,M=b.dataStartIndex,I=b.dataEndIndex;if(b.updateId===void 0){var F=rR(x);return me(me(me({},F),{},{updateId:0},v(me(me({props:x},F),{},{updateId:0}),b)),{},{prevDataKey:_,prevData:w,prevWidth:C,prevHeight:P,prevLayout:T,prevStackOffset:j,prevMargin:$,prevChildren:S})}if(_!==b.prevDataKey||w!==b.prevData||C!==b.prevWidth||P!==b.prevHeight||T!==b.prevLayout||j!==b.prevStackOffset||!Cc($,b.prevMargin)){var q=rR(x),H={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},Z=me(me({},nR(b,w,T)),{},{updateId:b.updateId+1}),Q=me(me(me({},q),H),Z);return me(me(me({},Q),v(me({props:x},Q),b)),{},{prevDataKey:_,prevData:w,prevWidth:C,prevHeight:P,prevLayout:T,prevStackOffset:j,prevMargin:$,prevChildren:S})}if(!p2(S,b.prevChildren)){var te,X,U,B,W=Or(S,cu),ee=W&&(te=(X=W.props)===null||X===void 0?void 0:X.startIndex)!==null&&te!==void 0?te:M,G=W&&(U=(B=W.props)===null||B===void 0?void 0:B.endIndex)!==null&&U!==void 0?U:I,ne=ee!==M||G!==I,re=!ze(w),ae=re&&!ne?b.updateId:b.updateId+1;return me(me({updateId:ae},v(me(me({props:x},b),{},{updateId:ae,dataStartIndex:ee,dataEndIndex:G}),b)),{},{prevChildren:S,dataStartIndex:ee,dataEndIndex:G})}return null}),He(g,"renderActiveDot",function(x,b,_){var w;return N.isValidElement(x)?w=N.cloneElement(x,b):We(x)?w=x(b):w=V.createElement(up,b),V.createElement(Xe,{className:"recharts-active-dot",key:_},w)});var y=N.forwardRef(function(b,_){return V.createElement(g,gc({},b,{ref:_}))});return y.displayName=g.displayName,y},RMe=oE({chartName:"LineChart",GraphicalChild:Ku,axisComponents:[{axisType:"xAxis",AxisComp:qu},{axisType:"yAxis",AxisComp:Yu}],formatAxisMap:m7}),$Me=oE({chartName:"PieChart",GraphicalChild:uo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Z0},{axisType:"radiusAxis",AxisComp:q0}],formatAxisMap:iPe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),IMe=oE({chartName:"ComposedChart",GraphicalChild:[Ku,xl,Lo,ib],axisComponents:[{axisType:"xAxis",AxisComp:qu},{axisType:"yAxis",AxisComp:Yu},{axisType:"zAxis",AxisComp:rb}],formatAxisMap:m7});function aB(e,t){const n=N.useRef(t);N.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 DMe=1;function FMe(e){return Object.freeze({__version:DMe,map:e})}function BMe(e,t){return Object.freeze({...e,...t})}const sB=N.createContext(null),lB=sB.Provider;function cB(){const e=N.useContext(sB);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function UMe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return N.useImperativeHandle(r,()=>i),n.children==null?null:V.createElement(lB,{value:o},n.children)}return N.forwardRef(t)}function zMe(e){function t(n,r){const[i,o]=N.useState(!1),{instance:a}=e(n,o).current;N.useImperativeHandle(r,()=>a),N.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?Wy.createPortal(n.children,s):null}return N.forwardRef(t)}function VMe(e){function t(n,r){const{instance:i}=e(n).current;return N.useImperativeHandle(r,()=>i),null}return N.forwardRef(t)}function uB(e,t){const n=N.useRef();N.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 aE(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function WMe(e,t){return function(r,i){const o=cB(),a=e(aE(r,o),o);return aB(o.map,r.attribution),uB(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var VO={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)})(Zl,function(n){var r="1.9.4";function i(u){var h,O,E,R;for(O=1,E=arguments.length;O<E;O++){R=arguments[O];for(h in R)u[h]=R[h]}return u}var o=Object.create||function(){function u(){}return function(h){return u.prototype=h,new u}}();function a(u,h){var O=Array.prototype.slice;if(u.bind)return u.bind.apply(u,O.call(arguments,1));var E=O.call(arguments,2);return function(){return u.apply(h,E.length?E.concat(O.call(arguments)):arguments)}}var s=0;function c(u){return"_leaflet_id"in u||(u._leaflet_id=++s),u._leaflet_id}function l(u,h,O){var E,R,K,oe;return oe=function(){E=!1,R&&(K.apply(O,R),R=!1)},K=function(){E?R=arguments:(u.apply(O,arguments),setTimeout(oe,h),E=!0)},K}function f(u,h,O){var E=h[1],R=h[0],K=E-R;return u===E&&O?u:((u-R)%K+K)%K+R}function d(){return!1}function p(u,h){if(h===!1)return u;var O=Math.pow(10,h===void 0?6:h);return Math.round(u*O)/O}function v(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function g(u){return v(u).split(/\s+/)}function y(u,h){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var O in h)u.options[O]=h[O];return u.options}function x(u,h,O){var E=[];for(var R in u)E.push(encodeURIComponent(O?R.toUpperCase():R)+"="+encodeURIComponent(u[R]));return(!h||h.indexOf("?")===-1?"?":"&")+E.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function _(u,h){return u.replace(b,function(O,E){var R=h[E];if(R===void 0)throw new Error("No value provided for variable "+O);return typeof R=="function"&&(R=R(h)),R})}var w=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function S(u,h){for(var O=0;O<u.length;O++)if(u[O]===h)return O;return-1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function P(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var T=0;function j(u){var h=+new Date,O=Math.max(0,16-(h-T));return T=h+O,window.setTimeout(u,O)}var $=window.requestAnimationFrame||P("RequestAnimationFrame")||j,M=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function I(u,h,O){if(O&&$===j)u.call(h);else return $.call(window,a(u,h))}function F(u){u&&M.call(window,u)}var q={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:c,throttle:l,wrapNum:f,falseFn:d,formatNum:p,trim:v,splitWords:g,setOptions:y,getParamString:x,template:_,isArray:w,indexOf:S,emptyImageUrl:C,requestFn:$,cancelFn:M,requestAnimFrame:I,cancelAnimFrame:F};function H(){}H.extend=function(u){var h=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},O=h.__super__=this.prototype,E=o(O);E.constructor=h,h.prototype=E;for(var R in this)Object.prototype.hasOwnProperty.call(this,R)&&R!=="prototype"&&R!=="__super__"&&(h[R]=this[R]);return u.statics&&i(h,u.statics),u.includes&&(Z(u.includes),i.apply(null,[E].concat(u.includes))),i(E,u),delete E.statics,delete E.includes,E.options&&(E.options=O.options?o(O.options):{},i(E.options,u.options)),E._initHooks=[],E.callInitHooks=function(){if(!this._initHooksCalled){O.callInitHooks&&O.callInitHooks.call(this),this._initHooksCalled=!0;for(var K=0,oe=E._initHooks.length;K<oe;K++)E._initHooks[K].call(this)}},h},H.include=function(u){var h=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=h,this.mergeOptions(u.options)),this},H.mergeOptions=function(u){return i(this.prototype.options,u),this},H.addInitHook=function(u){var h=Array.prototype.slice.call(arguments,1),O=typeof u=="function"?u:function(){this[u].apply(this,h)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(O),this};function Z(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=w(u)?u:[u];for(var h=0;h<u.length;h++)u[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 Q={on:function(u,h,O){if(typeof u=="object")for(var E in u)this._on(E,u[E],h);else{u=g(u);for(var R=0,K=u.length;R<K;R++)this._on(u[R],h,O)}return this},off:function(u,h,O){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var E in u)this._off(E,u[E],h);else{u=g(u);for(var R=arguments.length===1,K=0,oe=u.length;K<oe;K++)R?this._off(u[K]):this._off(u[K],h,O)}return this},_on:function(u,h,O,E){if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}if(this._listens(u,h,O)===!1){O===this&&(O=void 0);var R={fn:h,ctx:O};E&&(R.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(R)}},_off:function(u,h,O){var E,R,K;if(this._events&&(E=this._events[u],!!E)){if(arguments.length===1){if(this._firingCount)for(R=0,K=E.length;R<K;R++)E[R].fn=d;delete this._events[u];return}if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}var oe=this._listens(u,h,O);if(oe!==!1){var ce=E[oe];this._firingCount&&(ce.fn=d,this._events[u]=E=E.slice()),E.splice(oe,1)}}},fire:function(u,h,O){if(!this.listens(u,O))return this;var E=i({},h,{type:u,target:this,sourceTarget:h&&h.sourceTarget||this});if(this._events){var R=this._events[u];if(R){this._firingCount=this._firingCount+1||1;for(var K=0,oe=R.length;K<oe;K++){var ce=R[K],he=ce.fn;ce.once&&this.off(u,he,ce.ctx),he.call(ce.ctx||this,E)}this._firingCount--}}return O&&this._propagateEvent(E),this},listens:function(u,h,O,E){typeof u!="string"&&console.warn('"string" type argument expected');var R=h;typeof h!="function"&&(E=!!h,R=void 0,O=void 0);var K=this._events&&this._events[u];if(K&&K.length&&this._listens(u,R,O)!==!1)return!0;if(E){for(var oe in this._eventParents)if(this._eventParents[oe].listens(u,h,O,E))return!0}return!1},_listens:function(u,h,O){if(!this._events)return!1;var E=this._events[u]||[];if(!h)return!!E.length;O===this&&(O=void 0);for(var R=0,K=E.length;R<K;R++)if(E[R].fn===h&&E[R].ctx===O)return R;return!1},once:function(u,h,O){if(typeof u=="object")for(var E in u)this._on(E,u[E],h,!0);else{u=g(u);for(var R=0,K=u.length;R<K;R++)this._on(u[R],h,O,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[c(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[c(u)],this},_propagateEvent:function(u){for(var h in this._eventParents)this._eventParents[h].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!0)}};Q.addEventListener=Q.on,Q.removeEventListener=Q.clearAllEventListeners=Q.off,Q.addOneTimeEventListener=Q.once,Q.fireEvent=Q.fire,Q.hasEventListeners=Q.listens;var te=H.extend(Q);function X(u,h,O){this.x=O?Math.round(u):u,this.y=O?Math.round(h):h}var U=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};X.prototype={clone:function(){return new X(this.x,this.y)},add:function(u){return this.clone()._add(B(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(B(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new X(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new X(this.x/u.x,this.y/u.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=U(this.x),this.y=U(this.y),this},distanceTo:function(u){u=B(u);var h=u.x-this.x,O=u.y-this.y;return Math.sqrt(h*h+O*O)},equals:function(u){return u=B(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=B(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function B(u,h,O){return u instanceof X?u:w(u)?new X(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new X(u.x,u.y):new X(u,h,O)}function W(u,h){if(u)for(var O=h?[u,h]:u,E=0,R=O.length;E<R;E++)this.extend(O[E])}W.prototype={extend:function(u){var h,O;if(!u)return this;if(u instanceof X||typeof u[0]=="number"||"x"in u)h=O=B(u);else if(u=ee(u),h=u.min,O=u.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(u){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(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(u){var h,O;return typeof u[0]=="number"||u instanceof X?u=B(u):u=ee(u),u instanceof W?(h=u.min,O=u.max):h=O=u,h.x>=this.min.x&&O.x<=this.max.x&&h.y>=this.min.y&&O.y<=this.max.y},intersects:function(u){u=ee(u);var h=this.min,O=this.max,E=u.min,R=u.max,K=R.x>=h.x&&E.x<=O.x,oe=R.y>=h.y&&E.y<=O.y;return K&&oe},overlaps:function(u){u=ee(u);var h=this.min,O=this.max,E=u.min,R=u.max,K=R.x>h.x&&E.x<O.x,oe=R.y>h.y&&E.y<O.y;return K&&oe},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var h=this.min,O=this.max,E=Math.abs(h.x-O.x)*u,R=Math.abs(h.y-O.y)*u;return ee(B(h.x-E,h.y-R),B(O.x+E,O.y+R))},equals:function(u){return u?(u=ee(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function ee(u,h){return!u||u instanceof W?u:new W(u,h)}function G(u,h){if(u)for(var O=h?[u,h]:u,E=0,R=O.length;E<R;E++)this.extend(O[E])}G.prototype={extend:function(u){var h=this._southWest,O=this._northEast,E,R;if(u instanceof re)E=u,R=u;else if(u instanceof G){if(E=u._southWest,R=u._northEast,!E||!R)return this}else return u?this.extend(ae(u)||ne(u)):this;return!h&&!O?(this._southWest=new re(E.lat,E.lng),this._northEast=new re(R.lat,R.lng)):(h.lat=Math.min(E.lat,h.lat),h.lng=Math.min(E.lng,h.lng),O.lat=Math.max(R.lat,O.lat),O.lng=Math.max(R.lng,O.lng)),this},pad:function(u){var h=this._southWest,O=this._northEast,E=Math.abs(h.lat-O.lat)*u,R=Math.abs(h.lng-O.lng)*u;return new G(new re(h.lat-E,h.lng-R),new re(O.lat+E,O.lng+R))},getCenter:function(){return new re((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 re(this.getNorth(),this.getWest())},getSouthEast:function(){return new re(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(u){typeof u[0]=="number"||u instanceof re||"lat"in u?u=ae(u):u=ne(u);var h=this._southWest,O=this._northEast,E,R;return u instanceof G?(E=u.getSouthWest(),R=u.getNorthEast()):E=R=u,E.lat>=h.lat&&R.lat<=O.lat&&E.lng>=h.lng&&R.lng<=O.lng},intersects:function(u){u=ne(u);var h=this._southWest,O=this._northEast,E=u.getSouthWest(),R=u.getNorthEast(),K=R.lat>=h.lat&&E.lat<=O.lat,oe=R.lng>=h.lng&&E.lng<=O.lng;return K&&oe},overlaps:function(u){u=ne(u);var h=this._southWest,O=this._northEast,E=u.getSouthWest(),R=u.getNorthEast(),K=R.lat>h.lat&&E.lat<O.lat,oe=R.lng>h.lng&&E.lng<O.lng;return K&&oe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,h){return u?(u=ne(u),this._southWest.equals(u.getSouthWest(),h)&&this._northEast.equals(u.getNorthEast(),h)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ne(u,h){return u instanceof G?u:new G(u,h)}function re(u,h,O){if(isNaN(u)||isNaN(h))throw new Error("Invalid LatLng object: ("+u+", "+h+")");this.lat=+u,this.lng=+h,O!==void 0&&(this.alt=+O)}re.prototype={equals:function(u,h){if(!u)return!1;u=ae(u);var O=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return O<=(h===void 0?1e-9:h)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return A.distance(this,ae(u))},wrap:function(){return A.wrapLatLng(this)},toBounds:function(u){var h=180*u/40075017,O=h/Math.cos(Math.PI/180*this.lat);return ne([this.lat-h,this.lng-O],[this.lat+h,this.lng+O])},clone:function(){return new re(this.lat,this.lng,this.alt)}};function ae(u,h,O){return u instanceof re?u:w(u)&&typeof u[0]!="object"?u.length===3?new re(u[0],u[1],u[2]):u.length===2?new re(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new re(u.lat,"lng"in u?u.lng:u.lon,u.alt):h===void 0?null:new re(u,h,O)}var fe={latLngToPoint:function(u,h){var O=this.projection.project(u),E=this.scale(h);return this.transformation._transform(O,E)},pointToLatLng:function(u,h){var O=this.scale(h),E=this.transformation.untransform(u,O);return this.projection.unproject(E)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var h=this.projection.bounds,O=this.scale(u),E=this.transformation.transform(h.min,O),R=this.transformation.transform(h.max,O);return new W(E,R)},infinite:!1,wrapLatLng:function(u){var h=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,O=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,E=u.alt;return new re(O,h,E)},wrapLatLngBounds:function(u){var h=u.getCenter(),O=this.wrapLatLng(h),E=h.lat-O.lat,R=h.lng-O.lng;if(E===0&&R===0)return u;var K=u.getSouthWest(),oe=u.getNorthEast(),ce=new re(K.lat-E,K.lng-R),he=new re(oe.lat-E,oe.lng-R);return new G(ce,he)}},A=i({},fe,{wrapLng:[-180,180],R:6371e3,distance:function(u,h){var O=Math.PI/180,E=u.lat*O,R=h.lat*O,K=Math.sin((h.lat-u.lat)*O/2),oe=Math.sin((h.lng-u.lng)*O/2),ce=K*K+Math.cos(E)*Math.cos(R)*oe*oe,he=2*Math.atan2(Math.sqrt(ce),Math.sqrt(1-ce));return this.R*he}}),k=6378137,z={R:k,MAX_LATITUDE:85.0511287798,project:function(u){var h=Math.PI/180,O=this.MAX_LATITUDE,E=Math.max(Math.min(O,u.lat),-O),R=Math.sin(E*h);return new X(this.R*u.lng*h,this.R*Math.log((1+R)/(1-R))/2)},unproject:function(u){var h=180/Math.PI;return new re((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*h,u.x*h/this.R)},bounds:function(){var u=k*Math.PI;return new W([-u,-u],[u,u])}()};function J(u,h,O,E){if(w(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=h,this._c=O,this._d=E}J.prototype={transform:function(u,h){return this._transform(u.clone(),h)},_transform:function(u,h){return h=h||1,u.x=h*(this._a*u.x+this._b),u.y=h*(this._c*u.y+this._d),u},untransform:function(u,h){return h=h||1,new X((u.x/h-this._b)/this._a,(u.y/h-this._d)/this._c)}};function Y(u,h,O,E){return new J(u,h,O,E)}var ie=i({},A,{code:"EPSG:3857",projection:z,transformation:function(){var u=.5/(Math.PI*z.R);return Y(u,.5,-u,.5)}()}),de=i({},ie,{code:"EPSG:900913"});function Ce(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function se(u,h){var O="",E,R,K,oe,ce,he;for(E=0,K=u.length;E<K;E++){for(ce=u[E],R=0,oe=ce.length;R<oe;R++)he=ce[R],O+=(R?"L":"M")+he.x+" "+he.y;O+=h?Be.svg?"z":"x":""}return O||"M0 0"}var pe=document.documentElement.style,ve="ActiveXObject"in window,xe=ve&&!document.addEventListener,Ne="msLaunchUri"in navigator&&!("documentMode"in document),Te=Cn("webkit"),Ae=Cn("android"),le=Cn("android 2")||Cn("android 3"),ue=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ge=Ae&&Cn("Google")&&ue<537&&!("AudioNode"in window),ye=!!window.opera,we=!Ne&&Cn("chrome"),Me=Cn("gecko")&&!Te&&!ye&&!ve,Le=!we&&Cn("safari"),Je=Cn("phantom"),tt="OTransition"in pe,Ye=navigator.platform.indexOf("Win")===0,Wt=ve&&"transition"in pe,It="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!le,hn="MozPerspective"in pe,Un=!window.L_DISABLE_3D&&(Wt||It||hn)&&!tt&&!Je,Ui=typeof orientation<"u"||Cn("mobile"),On=Ui&&Te,Ju=Ui&&It,zi=!window.PointerEvent&&window.MSPointerEvent,_p=!!(window.PointerEvent||zi),xp="ontouchstart"in window||!!window.TouchEvent,wp=!window.L_NO_TOUCH&&(xp||_p),ef=Ui&&ye,us=Ui&&Me,Jt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,qt=function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",d,h),window.removeEventListener("testPassiveEventSupport",d,h)}catch{}return u}(),zn=function(){return!!document.createElement("canvas").getContext}(),Sn=!!(document.createElementNS&&Ce("svg").createSVGRect),Pn=!!Sn&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),an=!Sn&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var h=u.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),pi=navigator.platform.indexOf("Mac")===0,mi=navigator.platform.indexOf("Linux")===0;function Cn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Be={ie:ve,ielt9:xe,edge:Ne,webkit:Te,android:Ae,android23:le,androidStock:ge,opera:ye,chrome:we,gecko:Me,safari:Le,phantom:Je,opera12:tt,win:Ye,ie3d:Wt,webkit3d:It,gecko3d:hn,any3d:Un,mobile:Ui,mobileWebkit:On,mobileWebkit3d:Ju,msPointer:zi,pointer:_p,touch:wp,touchNative:xp,mobileOpera:ef,mobileGecko:us,retina:Jt,passiveEvents:qt,canvas:zn,svg:Sn,vml:an,inlineSvg:Pn,mac:pi,linux:mi},$E=Be.msPointer?"MSPointerDown":"pointerdown",IE=Be.msPointer?"MSPointerMove":"pointermove",DE=Be.msPointer?"MSPointerUp":"pointerup",FE=Be.msPointer?"MSPointerCancel":"pointercancel",mb={touchstart:$E,touchmove:IE,touchend:DE,touchcancel:FE},BE={touchstart:z9,touchmove:Op,touchend:Op,touchcancel:Op},Sl={},UE=!1;function I9(u,h,O){return h==="touchstart"&&U9(),BE[h]?(O=BE[h].bind(this,O),u.addEventListener(mb[h],O,!1),O):(console.warn("wrong event specified:",h),d)}function D9(u,h,O){if(!mb[h]){console.warn("wrong event specified:",h);return}u.removeEventListener(mb[h],O,!1)}function F9(u){Sl[u.pointerId]=u}function B9(u){Sl[u.pointerId]&&(Sl[u.pointerId]=u)}function zE(u){delete Sl[u.pointerId]}function U9(){UE||(document.addEventListener($E,F9,!0),document.addEventListener(IE,B9,!0),document.addEventListener(DE,zE,!0),document.addEventListener(FE,zE,!0),UE=!0)}function Op(u,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var O in Sl)h.touches.push(Sl[O]);h.changedTouches=[h],u(h)}}function z9(u,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&En(h),Op(u,h)}function V9(u){var h={},O,E;for(E in u)O=u[E],h[E]=O&&O.bind?O.bind(u):O;return u=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var W9=200;function H9(u,h){u.addEventListener("dblclick",h);var O=0,E;function R(K){if(K.detail!==1){E=K.detail;return}if(!(K.pointerType==="mouse"||K.sourceCapabilities&&!K.sourceCapabilities.firesTouchEvents)){var oe=KE(K);if(!(oe.some(function(he){return he instanceof HTMLLabelElement&&he.attributes.for})&&!oe.some(function(he){return he instanceof HTMLInputElement||he instanceof HTMLSelectElement}))){var ce=Date.now();ce-O<=W9?(E++,E===2&&h(V9(K))):E=1,O=ce}}}return u.addEventListener("click",R),{dblclick:h,simDblclick:R}}function G9(u,h){u.removeEventListener("dblclick",h.dblclick),u.removeEventListener("click",h.simDblclick)}var vb=Cp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tf=Cp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),VE=tf==="webkitTransition"||tf==="OTransition"?tf+"End":"transitionend";function WE(u){return typeof u=="string"?document.getElementById(u):u}function nf(u,h){var O=u.style[h]||u.currentStyle&&u.currentStyle[h];if((!O||O==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);O=E?E[h]:null}return O==="auto"?null:O}function ut(u,h,O){var E=document.createElement(u);return E.className=h||"",O&&O.appendChild(E),E}function Dt(u){var h=u.parentNode;h&&h.removeChild(u)}function Sp(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function Pl(u){var h=u.parentNode;h&&h.lastChild!==u&&h.appendChild(u)}function Cl(u){var h=u.parentNode;h&&h.firstChild!==u&&h.insertBefore(u,h.firstChild)}function gb(u,h){if(u.classList!==void 0)return u.classList.contains(h);var O=Pp(u);return O.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(O)}function Qe(u,h){if(u.classList!==void 0)for(var O=g(h),E=0,R=O.length;E<R;E++)u.classList.add(O[E]);else if(!gb(u,h)){var K=Pp(u);yb(u,(K?K+" ":"")+h)}}function Yt(u,h){u.classList!==void 0?u.classList.remove(h):yb(u,v((" "+Pp(u)+" ").replace(" "+h+" "," ")))}function yb(u,h){u.className.baseVal===void 0?u.className=h:u.className.baseVal=h}function Pp(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function Br(u,h){"opacity"in u.style?u.style.opacity=h:"filter"in u.style&&K9(u,h)}function K9(u,h){var O=!1,E="DXImageTransform.Microsoft.Alpha";try{O=u.filters.item(E)}catch{if(h===1)return}h=Math.round(h*100),O?(O.Enabled=h!==100,O.Opacity=h):u.style.filter+=" progid:"+E+"(opacity="+h+")"}function Cp(u){for(var h=document.documentElement.style,O=0;O<u.length;O++)if(u[O]in h)return u[O];return!1}function fs(u,h,O){var E=h||new X(0,0);u.style[vb]=(Be.ie3d?"translate("+E.x+"px,"+E.y+"px)":"translate3d("+E.x+"px,"+E.y+"px,0)")+(O?" scale("+O+")":"")}function en(u,h){u._leaflet_pos=h,Be.any3d?fs(u,h):(u.style.left=h.x+"px",u.style.top=h.y+"px")}function ds(u){return u._leaflet_pos||new X(0,0)}var rf,of,bb;if("onselectstart"in document)rf=function(){Ze(window,"selectstart",En)},of=function(){_t(window,"selectstart",En)};else{var af=Cp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);rf=function(){if(af){var u=document.documentElement.style;bb=u[af],u[af]="none"}},of=function(){af&&(document.documentElement.style[af]=bb,bb=void 0)}}function _b(){Ze(window,"dragstart",En)}function xb(){_t(window,"dragstart",En)}var Ep,wb;function Ob(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Tp(),Ep=u,wb=u.style.outlineStyle,u.style.outlineStyle="none",Ze(window,"keydown",Tp))}function Tp(){Ep&&(Ep.style.outlineStyle=wb,Ep=void 0,wb=void 0,_t(window,"keydown",Tp))}function HE(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Sb(u){var h=u.getBoundingClientRect();return{x:h.width/u.offsetWidth||1,y:h.height/u.offsetHeight||1,boundingClientRect:h}}var q9={__proto__:null,TRANSFORM:vb,TRANSITION:tf,TRANSITION_END:VE,get:WE,getStyle:nf,create:ut,remove:Dt,empty:Sp,toFront:Pl,toBack:Cl,hasClass:gb,addClass:Qe,removeClass:Yt,setClass:yb,getClass:Pp,setOpacity:Br,testProp:Cp,setTransform:fs,setPosition:en,getPosition:ds,get disableTextSelection(){return rf},get enableTextSelection(){return of},disableImageDrag:_b,enableImageDrag:xb,preventOutline:Ob,restoreOutline:Tp,getSizedParentNode:HE,getScale:Sb};function Ze(u,h,O,E){if(h&&typeof h=="object")for(var R in h)Cb(u,R,h[R],O);else{h=g(h);for(var K=0,oe=h.length;K<oe;K++)Cb(u,h[K],O,E)}return this}var Vi="_leaflet_events";function _t(u,h,O,E){if(arguments.length===1)GE(u),delete u[Vi];else if(h&&typeof h=="object")for(var R in h)Eb(u,R,h[R],O);else if(h=g(h),arguments.length===2)GE(u,function(ce){return S(h,ce)!==-1});else for(var K=0,oe=h.length;K<oe;K++)Eb(u,h[K],O,E);return this}function GE(u,h){for(var O in u[Vi]){var E=O.split(/\d/)[0];(!h||h(E))&&Eb(u,E,null,null,O)}}var Pb={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Cb(u,h,O,E){var R=h+c(O)+(E?"_"+c(E):"");if(u[Vi]&&u[Vi][R])return this;var K=function(ce){return O.call(E||u,ce||window.event)},oe=K;!Be.touchNative&&Be.pointer&&h.indexOf("touch")===0?K=I9(u,h,K):Be.touch&&h==="dblclick"?K=H9(u,K):"addEventListener"in u?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?u.addEventListener(Pb[h]||h,K,Be.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(K=function(ce){ce=ce||window.event,jb(u,ce)&&oe(ce)},u.addEventListener(Pb[h],K,!1)):u.addEventListener(h,oe,!1):u.attachEvent("on"+h,K),u[Vi]=u[Vi]||{},u[Vi][R]=K}function Eb(u,h,O,E,R){R=R||h+c(O)+(E?"_"+c(E):"");var K=u[Vi]&&u[Vi][R];if(!K)return this;!Be.touchNative&&Be.pointer&&h.indexOf("touch")===0?D9(u,h,K):Be.touch&&h==="dblclick"?G9(u,K):"removeEventListener"in u?u.removeEventListener(Pb[h]||h,K,!1):u.detachEvent("on"+h,K),u[Vi][R]=null}function hs(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function Tb(u){return Cb(u,"wheel",hs),this}function sf(u){return Ze(u,"mousedown touchstart dblclick contextmenu",hs),u._leaflet_disable_click=!0,this}function En(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function ps(u){return En(u),hs(u),this}function KE(u){if(u.composedPath)return u.composedPath();for(var h=[],O=u.target;O;)h.push(O),O=O.parentNode;return h}function qE(u,h){if(!h)return new X(u.clientX,u.clientY);var O=Sb(h),E=O.boundingClientRect;return new X((u.clientX-E.left)/O.x-h.clientLeft,(u.clientY-E.top)/O.y-h.clientTop)}var Y9=Be.linux&&Be.chrome?window.devicePixelRatio:Be.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function YE(u){return Be.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/Y9:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function jb(u,h){var O=h.relatedTarget;if(!O)return!0;try{for(;O&&O!==u;)O=O.parentNode}catch{return!1}return O!==u}var Z9={__proto__:null,on:Ze,off:_t,stopPropagation:hs,disableScrollPropagation:Tb,disableClickPropagation:sf,preventDefault:En,stop:ps,getPropagationPath:KE,getMousePosition:qE,getWheelDelta:YE,isExternalTarget:jb,addListener:Ze,removeListener:_t},ZE=te.extend({run:function(u,h,O,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=O||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=ds(u),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=I(this._animate,this),this._step()},_step:function(u){var h=+new Date-this._startTime,O=this._duration*1e3;h<O?this._runFrame(this._easeOut(h/O),u):(this._runFrame(1),this._complete())},_runFrame:function(u,h){var O=this._startPos.add(this._offset.multiplyBy(u));h&&O._round(),en(this._el,O),this.fire("step")},_complete:function(){F(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,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(u,h){h=y(this,h),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),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(ae(h.center),h.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=tf&&Be.any3d&&!Be.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ze(this._proxy,VE,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,h,O){if(h=h===void 0?this._zoom:this._limitZoom(h),u=this._limitCenter(ae(u),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 E=this._zoom!==h?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,h,O.zoom):this._tryAnimatedPan(u,O.pan);if(E)return clearTimeout(this._sizeTimer),this}return this._resetView(u,h,O.pan&&O.pan.noMoveStart),this},setZoom:function(u,h){return this._loaded?this.setView(this.getCenter(),u,{zoom:h}):(this._zoom=u,this)},zoomIn:function(u,h){return u=u||(Be.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,h)},zoomOut:function(u,h){return u=u||(Be.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,h)},setZoomAround:function(u,h,O){var E=this.getZoomScale(h),R=this.getSize().divideBy(2),K=u instanceof X?u:this.latLngToContainerPoint(u),oe=K.subtract(R).multiplyBy(1-1/E),ce=this.containerPointToLatLng(R.add(oe));return this.setView(ce,h,{zoom:O})},_getBoundsCenterZoom:function(u,h){h=h||{},u=u.getBounds?u.getBounds():ne(u);var O=B(h.paddingTopLeft||h.padding||[0,0]),E=B(h.paddingBottomRight||h.padding||[0,0]),R=this.getBoundsZoom(u,!1,O.add(E));if(R=typeof h.maxZoom=="number"?Math.min(h.maxZoom,R):R,R===1/0)return{center:u.getCenter(),zoom:R};var K=E.subtract(O).divideBy(2),oe=this.project(u.getSouthWest(),R),ce=this.project(u.getNorthEast(),R),he=this.unproject(oe.add(ce).divideBy(2).add(K),R);return{center:he,zoom:R}},fitBounds:function(u,h){if(u=ne(u),!u.isValid())throw new Error("Bounds are not valid.");var O=this._getBoundsCenterZoom(u,h);return this.setView(O.center,O.zoom,h)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,h){return this.setView(u,this._zoom,{pan:h})},panBy:function(u,h){if(u=B(u).round(),h=h||{},!u.x&&!u.y)return this.fire("moveend");if(h.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ZE,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),h.noMoveStart||this.fire("movestart"),h.animate!==!1){Qe(this._mapPane,"leaflet-pan-anim");var O=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,O,h.duration||.25,h.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,h,O){if(O=O||{},O.animate===!1||!Be.any3d)return this.setView(u,h,O);this._stop();var E=this.project(this.getCenter()),R=this.project(u),K=this.getSize(),oe=this._zoom;u=ae(u),h=h===void 0?oe:h;var ce=Math.max(K.x,K.y),he=ce*this.getZoomScale(oe,h),_e=R.distanceTo(E)||1,Re=1.42,Ve=Re*Re;function et(tn){var Bp=tn?-1:1,Dz=tn?he:ce,Fz=he*he-ce*ce+Bp*Ve*Ve*_e*_e,Bz=2*Dz*Ve*_e,Bb=Fz/Bz,AT=Math.sqrt(Bb*Bb+1)-Bb,Uz=AT<1e-9?-18:Math.log(AT);return Uz}function Vn(tn){return(Math.exp(tn)-Math.exp(-tn))/2}function pn(tn){return(Math.exp(tn)+Math.exp(-tn))/2}function zr(tn){return Vn(tn)/pn(tn)}var ir=et(0);function Nl(tn){return ce*(pn(ir)/pn(ir+Re*tn))}function Lz(tn){return ce*(pn(ir)*zr(ir+Re*tn)-Vn(ir))/Ve}function Rz(tn){return 1-Math.pow(1-tn,1.5)}var $z=Date.now(),TT=(et(1)-ir)/Re,Iz=O.duration?1e3*O.duration:1e3*TT*.8;function jT(){var tn=(Date.now()-$z)/Iz,Bp=Rz(tn)*TT;tn<=1?(this._flyToFrame=I(jT,this),this._move(this.unproject(E.add(R.subtract(E).multiplyBy(Lz(Bp)/_e)),oe),this.getScaleZoom(ce/Nl(Bp),oe),{flyTo:!0})):this._move(u,h)._moveEnd(!0)}return this._moveStart(!0,O.noMoveStart),jT.call(this),this},flyToBounds:function(u,h){var O=this._getBoundsCenterZoom(u,h);return this.flyTo(O.center,O.zoom,h)},setMaxBounds:function(u){return u=ne(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var h=this.options.minZoom;return this.options.minZoom=u,this._loaded&&h!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var h=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&h!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,h){this._enforcingBounds=!0;var O=this.getCenter(),E=this._limitCenter(O,this._zoom,ne(u));return O.equals(E)||this.panTo(E,h),this._enforcingBounds=!1,this},panInside:function(u,h){h=h||{};var O=B(h.paddingTopLeft||h.padding||[0,0]),E=B(h.paddingBottomRight||h.padding||[0,0]),R=this.project(this.getCenter()),K=this.project(u),oe=this.getPixelBounds(),ce=ee([oe.min.add(O),oe.max.subtract(E)]),he=ce.getSize();if(!ce.contains(K)){this._enforcingBounds=!0;var _e=K.subtract(ce.getCenter()),Re=ce.extend(K).getSize().subtract(he);R.x+=_e.x<0?-Re.x:Re.x,R.y+=_e.y<0?-Re.y:Re.y,this.panTo(this.unproject(R),h),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var O=this.getSize(),E=h.divideBy(2).round(),R=O.divideBy(2).round(),K=E.subtract(R);return!K.x&&!K.y?this:(u.animate&&u.pan?this.panBy(K):(u.pan&&this._rawPanBy(K),this.fire("move"),u.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(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("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 u.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,O,u):navigator.geolocation.getCurrentPosition(h,O,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var h=u.code,O=u.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(u){if(this._container._leaflet_id){var h=u.coords.latitude,O=u.coords.longitude,E=new re(h,O),R=E.toBounds(u.coords.accuracy*2),K=this._locateOptions;if(K.setView){var oe=this.getBoundsZoom(R);this.setView(E,K.maxZoom?Math.min(oe,K.maxZoom):oe)}var ce={latlng:E,bounds:R,timestamp:u.timestamp};for(var he in u.coords)typeof u.coords[he]=="number"&&(ce[he]=u.coords[he]);this.fire("locationfound",ce)}},addHandler:function(u,h){if(!h)return this;var O=this[u]=new h(this);return this._handlers.push(O),this.options[u]&&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(),Dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(F(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Dt(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,h){var O="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=ut("div",O,h||this._mapPane);return u&&(this._panes[u]=E),E},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),h=this.unproject(u.getBottomLeft()),O=this.unproject(u.getTopRight());return new G(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(u,h,O){u=ne(u),O=B(O||[0,0]);var E=this.getZoom()||0,R=this.getMinZoom(),K=this.getMaxZoom(),oe=u.getNorthWest(),ce=u.getSouthEast(),he=this.getSize().subtract(O),_e=ee(this.project(ce,E),this.project(oe,E)).getSize(),Re=Be.any3d?this.options.zoomSnap:1,Ve=he.x/_e.x,et=he.y/_e.y,Vn=h?Math.max(Ve,et):Math.min(Ve,et);return E=this.getScaleZoom(Vn,E),Re&&(E=Math.round(E/(Re/100))*(Re/100),E=h?Math.ceil(E/Re)*Re:Math.floor(E/Re)*Re),Math.max(R,Math.min(K,E))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new X(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,h){var O=this._getTopLeftPoint(u,h);return new W(O,O.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,h){var O=this.options.crs;return h=h===void 0?this._zoom:h,O.scale(u)/O.scale(h)},getScaleZoom:function(u,h){var O=this.options.crs;h=h===void 0?this._zoom:h;var E=O.zoom(u*O.scale(h));return isNaN(E)?1/0:E},project:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(ae(u),h)},unproject:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(B(u),h)},layerPointToLatLng:function(u){var h=B(u).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(u){var h=this.project(ae(u))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(ne(u))},distance:function(u,h){return this.options.crs.distance(ae(u),ae(h))},containerPointToLayerPoint:function(u){return B(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return B(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var h=this.containerPointToLayerPoint(B(u));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return qE(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var h=this._container=WE(u);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ze(h,"scroll",this._onScroll,this),this._containerId=c(h)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Be.any3d,Qe(u,"leaflet-container"+(Be.touch?" leaflet-touch":"")+(Be.retina?" leaflet-retina":"")+(Be.ielt9?" leaflet-oldie":"")+(Be.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=nf(u,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),en(this._mapPane,new X(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Qe(u.markerPane,"leaflet-zoom-hide"),Qe(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,h,O){en(this._mapPane,new X(0,0));var E=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var R=this._zoom!==h;this._moveStart(R,O)._move(u,h)._moveEnd(R),this.fire("viewreset"),E&&this.fire("load")},_moveStart:function(u,h){return u&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(u,h,O,E){h===void 0&&(h=this._zoom);var R=this._zoom!==h;return this._zoom=h,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),E?O&&O.pinch&&this.fire("zoom",O):((R||O&&O.pinch)&&this.fire("zoom",O),this.fire("move",O)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return F(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){en(this._mapPane,this._getMapPanePos().subtract(u))},_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(u){this._targets={},this._targets[c(this._container)]=this;var h=u?_t:Ze;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),Be.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){F(this._resizeRequest),this._resizeRequest=I(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,h){for(var O=[],E,R=h==="mouseout"||h==="mouseover",K=u.target||u.srcElement,oe=!1;K;){if(E=this._targets[c(K)],E&&(h==="click"||h==="preclick")&&this._draggableMoved(E)){oe=!0;break}if(E&&E.listens(h,!0)&&(R&&!jb(K,u)||(O.push(E),R))||K===this._container)break;K=K.parentNode}return!O.length&&!oe&&!R&&this.listens(h,!0)&&(O=[this]),O},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var h=u.target||u.srcElement;if(!(!this._loaded||h._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(h))){var O=u.type;O==="mousedown"&&Ob(h),this._fireDOMEvent(u,O)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,h,O){if(u.type==="click"){var E=i({},u);E.type="preclick",this._fireDOMEvent(E,E.type,O)}var R=this._findEventTargets(u,h);if(O){for(var K=[],oe=0;oe<O.length;oe++)O[oe].listens(h,!0)&&K.push(O[oe]);R=K.concat(R)}if(R.length){h==="contextmenu"&&En(u);var ce=R[0],he={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var _e=ce.getLatLng&&(!ce._radius||ce._radius<=10);he.containerPoint=_e?this.latLngToContainerPoint(ce.getLatLng()):this.mouseEventToContainerPoint(u),he.layerPoint=this.containerPointToLayerPoint(he.containerPoint),he.latlng=_e?ce.getLatLng():this.layerPointToLatLng(he.layerPoint)}for(oe=0;oe<R.length;oe++)if(R[oe].fire(h,he,!0),he.originalEvent._stopped||R[oe].options.bubblingMouseEvents===!1&&S(this._mouseEvents,h)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,h=this._handlers.length;u<h;u++)this._handlers[u].disable()},whenReady:function(u,h){return this._loaded?u.call(h||this,{target:this}):this.on("load",u,h),this},_getMapPanePos:function(){return ds(this._mapPane)||new X(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,h){var O=u&&h!==void 0?this._getNewPixelOrigin(u,h):this.getPixelOrigin();return O.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,h){var O=this.getSize()._divideBy(2);return this.project(u,h)._subtract(O)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,h,O){var E=this._getNewPixelOrigin(O,h);return this.project(u,h)._subtract(E)},_latLngBoundsToNewLayerBounds:function(u,h,O){var E=this._getNewPixelOrigin(O,h);return ee([this.project(u.getSouthWest(),h)._subtract(E),this.project(u.getNorthWest(),h)._subtract(E),this.project(u.getSouthEast(),h)._subtract(E),this.project(u.getNorthEast(),h)._subtract(E)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,h,O){if(!O)return u;var E=this.project(u,h),R=this.getSize().divideBy(2),K=new W(E.subtract(R),E.add(R)),oe=this._getBoundsOffset(K,O,h);return Math.abs(oe.x)<=1&&Math.abs(oe.y)<=1?u:this.unproject(E.add(oe),h)},_limitOffset:function(u,h){if(!h)return u;var O=this.getPixelBounds(),E=new W(O.min.add(u),O.max.add(u));return u.add(this._getBoundsOffset(E,h))},_getBoundsOffset:function(u,h,O){var E=ee(this.project(h.getNorthEast(),O),this.project(h.getSouthWest(),O)),R=E.min.subtract(u.min),K=E.max.subtract(u.max),oe=this._rebound(R.x,-K.x),ce=this._rebound(R.y,-K.y);return new X(oe,ce)},_rebound:function(u,h){return u+h>0?Math.round(u-h)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(h))},_limitZoom:function(u){var h=this.getMinZoom(),O=this.getMaxZoom(),E=Be.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(h,Math.min(O,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,h){var O=this._getCenterOffset(u)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(O)?!1:(this.panBy(O,h),!0)},_createAnimProxy:function(){var u=this._proxy=ut("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(h){var O=vb,E=this._proxy.style[O];fs(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),E===this._proxy.style[O]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),h=this.getZoom();fs(this._proxy,this.project(u,h),this.getZoomScale(h,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,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 E=this.getZoomScale(h),R=this._getCenterOffset(u)._divideBy(1-1/E);return O.animate!==!0&&!this.getSize().contains(R)?!1:(I(function(){this._moveStart(!0,O.noMoveStart||!1)._animateZoom(u,h,!0)},this),!0)},_animateZoom:function(u,h,O,E){this._mapPane&&(O&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=h,Qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:h,noUpdate:E}),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&&Yt(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 X9(u,h){return new lt(u,h)}var vi=H.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var h=this._map;return h&&h.removeControl(this),this.options.position=u,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var h=this._container=this.onAdd(u),O=this.getPosition(),E=u._controlCorners[O];return Qe(h,"leaflet-control"),O.indexOf("bottom")!==-1?E.insertBefore(h,E.firstChild):E.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),lf=function(u){return new vi(u)};lt.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},h="leaflet-",O=this._controlContainer=ut("div",h+"control-container",this._container);function E(R,K){var oe=h+R+" "+h+K;u[R+K]=ut("div",oe,O)}E("top","left"),E("top","right"),E("bottom","left"),E("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Dt(this._controlCorners[u]);Dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var XE=vi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,h,O,E){return O<E?-1:E<O?1:0}},initialize:function(u,h,O){y(this,O),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var E in u)this._addLayer(u[E],E);for(E in h)this._addLayer(h[E],E,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.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(u){return vi.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,h){return this._addLayer(u,h),this._map?this._update():this},addOverlay:function(u,h){return this._addLayer(u,h,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var h=this._getLayer(c(u));return h&&this._layers.splice(this._layers.indexOf(h),1),this._map?this._update():this},expand:function(){Qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(Qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):Yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",h=this._container=ut("div",u),O=this.options.collapsed;h.setAttribute("aria-haspopup",!0),sf(h),Tb(h);var E=this._section=ut("section",u+"-list");O&&(this._map.on("click",this.collapse,this),Ze(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var R=this._layersLink=ut("a",u+"-toggle",h);R.href="#",R.title="Layers",R.setAttribute("role","button"),Ze(R,{keydown:function(K){K.keyCode===13&&this._expandSafely()},click:function(K){En(K),this._expandSafely()}},this),O||this.expand(),this._baseLayersList=ut("div",u+"-base",E),this._separator=ut("div",u+"-separator",E),this._overlaysList=ut("div",u+"-overlays",E),h.appendChild(E)},_getLayer:function(u){for(var h=0;h<this._layers.length;h++)if(this._layers[h]&&c(this._layers[h].layer)===u)return this._layers[h]},_addLayer:function(u,h,O){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:h,overlay:O}),this.options.sortLayers&&this._layers.sort(a(function(E,R){return this.options.sortFunction(E.layer,R.layer,E.name,R.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Sp(this._baseLayersList),Sp(this._overlaysList),this._layerControlInputs=[];var u,h,O,E,R=0;for(O=0;O<this._layers.length;O++)E=this._layers[O],this._addItem(E),h=h||E.overlay,u=u||!E.overlay,R+=E.overlay?0:1;return this.options.hideSingleBase&&(u=u&&R>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=h&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var h=this._getLayer(c(u.target)),O=h.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;O&&this._map.fire(O,h)},_createRadioElement:function(u,h){var O='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(h?' checked="checked"':"")+"/>",E=document.createElement("div");return E.innerHTML=O,E.firstChild},_addItem:function(u){var h=document.createElement("label"),O=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=O):E=this._createRadioElement("leaflet-base-layers_"+c(this),O),this._layerControlInputs.push(E),E.layerId=c(u.layer),Ze(E,"click",this._onInputClick,this);var R=document.createElement("span");R.innerHTML=" "+u.name;var K=document.createElement("span");h.appendChild(K),K.appendChild(E),K.appendChild(R);var oe=u.overlay?this._overlaysList:this._baseLayersList;return oe.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,h,O,E=[],R=[];this._handlingClick=!0;for(var K=u.length-1;K>=0;K--)h=u[K],O=this._getLayer(h.layerId).layer,h.checked?E.push(O):h.checked||R.push(O);for(K=0;K<R.length;K++)this._map.hasLayer(R[K])&&this._map.removeLayer(R[K]);for(K=0;K<E.length;K++)this._map.hasLayer(E[K])||this._map.addLayer(E[K]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,h,O,E=this._map.getZoom(),R=u.length-1;R>=0;R--)h=u[R],O=this._getLayer(h.layerId).layer,h.disabled=O.options.minZoom!==void 0&&E<O.options.minZoom||O.options.maxZoom!==void 0&&E>O.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,Ze(u,"click",En),this.expand();var h=this;setTimeout(function(){_t(u,"click",En),h._preventClick=!1})}}),Q9=function(u,h,O){return new XE(u,h,O)},Ab=vi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var h="leaflet-control-zoom",O=ut("div",h+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,h+"-in",O,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,h+"-out",O,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),O},onRemove:function(u){u.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(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,h,O,E,R){var K=ut("a",O,E);return K.innerHTML=u,K.href="#",K.title=h,K.setAttribute("role","button"),K.setAttribute("aria-label",h),sf(K),Ze(K,"click",ps),Ze(K,"click",R,this),Ze(K,"click",this._refocusOnMap,this),K},_updateDisabled:function(){var u=this._map,h="leaflet-disabled";Yt(this._zoomInButton,h),Yt(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Qe(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Qe(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});lt.mergeOptions({zoomControl:!0}),lt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ab,this.addControl(this.zoomControl))});var J9=function(u){return new Ab(u)},QE=vi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var h="leaflet-control-scale",O=ut("div",h),E=this.options;return this._addScales(E,h+"-line",O),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),O},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,h,O){u.metric&&(this._mScale=ut("div",h,O)),u.imperial&&(this._iScale=ut("div",h,O))},_update:function(){var u=this._map,h=u.getSize().y/2,O=u.distance(u.containerPointToLatLng([0,h]),u.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(O)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var h=this._getRoundNum(u),O=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,O,h/u)},_updateImperial:function(u){var h=u*3.2808399,O,E,R;h>5280?(O=h/5280,E=this._getRoundNum(O),this._updateScale(this._iScale,E+" mi",E/O)):(R=this._getRoundNum(h),this._updateScale(this._iScale,R+" ft",R/h))},_updateScale:function(u,h,O){u.style.width=Math.round(this.options.maxWidth*O)+"px",u.innerHTML=h},_getRoundNum:function(u){var h=Math.pow(10,(Math.floor(u)+"").length-1),O=u/h;return O=O>=10?10:O>=5?5:O>=3?3:O>=2?2:1,h*O}}),ez=function(u){return new QE(u)},tz='<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>',kb=vi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Be.inlineSvg?tz+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ut("div","leaflet-control-attribution"),sf(this._container);for(var h in u._layers)u._layers[h].getAttribution&&this.addAttribution(u._layers[h].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var h in this._attributions)this._attributions[h]&&u.push(h);var O=[];this.options.prefix&&O.push(this.options.prefix),u.length&&O.push(u.join(", ")),this._container.innerHTML=O.join(' <span aria-hidden="true">|</span> ')}}});lt.mergeOptions({attributionControl:!0}),lt.addInitHook(function(){this.options.attributionControl&&new kb().addTo(this)});var nz=function(u){return new kb(u)};vi.Layers=XE,vi.Zoom=Ab,vi.Scale=QE,vi.Attribution=kb,lf.layers=Q9,lf.zoom=J9,lf.scale=ez,lf.attribution=nz;var Wi=H.extend({initialize:function(u){this._map=u},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}});Wi.addTo=function(u,h){return u.addHandler(h,this),this};var rz={Events:Q},JE=Be.touch?"touchstart mousedown":"mousedown",ia=te.extend({options:{clickTolerance:3},initialize:function(u,h,O,E){y(this,E),this._element=u,this._dragStartTarget=h||u,this._preventOutline=O},enable:function(){this._enabled||(Ze(this._dragStartTarget,JE,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ia._dragging===this&&this.finishDrag(!0),_t(this._dragStartTarget,JE,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!gb(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){ia._dragging===this&&this.finishDrag();return}if(!(ia._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(ia._dragging=this,this._preventOutline&&Ob(this._element),_b(),rf(),!this._moving)){this.fire("down");var h=u.touches?u.touches[0]:u,O=HE(this._element);this._startPoint=new X(h.clientX,h.clientY),this._startPos=ds(this._element),this._parentScale=Sb(O);var E=u.type==="mousedown";Ze(document,E?"mousemove":"touchmove",this._onMove,this),Ze(document,E?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var h=u.touches&&u.touches.length===1?u.touches[0]:u,O=new X(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,En(u),this._moved||(this.fire("dragstart"),this._moved=!0,Qe(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(O),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),en(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){Yt(document.body,"leaflet-dragging"),this._lastTarget&&(Yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_t(document,"mousemove touchmove",this._onMove,this),_t(document,"mouseup touchend touchcancel",this._onUp,this),xb(),of();var h=this._moved&&this._moving;this._moving=!1,ia._dragging=!1,h&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function eT(u,h,O){var E,R=[1,4,2,8],K,oe,ce,he,_e,Re,Ve,et;for(K=0,Re=u.length;K<Re;K++)u[K]._code=ms(u[K],h);for(ce=0;ce<4;ce++){for(Ve=R[ce],E=[],K=0,Re=u.length,oe=Re-1;K<Re;oe=K++)he=u[K],_e=u[oe],he._code&Ve?_e._code&Ve||(et=jp(_e,he,Ve,h,O),et._code=ms(et,h),E.push(et)):(_e._code&Ve&&(et=jp(_e,he,Ve,h,O),et._code=ms(et,h),E.push(et)),E.push(he));u=E}return u}function tT(u,h){var O,E,R,K,oe,ce,he,_e,Re;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ve=ae([0,0]),et=ne(u),Vn=et.getNorthWest().distanceTo(et.getSouthWest())*et.getNorthEast().distanceTo(et.getNorthWest());Vn<1700&&(Ve=Nb(u));var pn=u.length,zr=[];for(O=0;O<pn;O++){var ir=ae(u[O]);zr.push(h.project(ae([ir.lat-Ve.lat,ir.lng-Ve.lng])))}for(ce=he=_e=0,O=0,E=pn-1;O<pn;E=O++)R=zr[O],K=zr[E],oe=R.y*K.x-K.y*R.x,he+=(R.x+K.x)*oe,_e+=(R.y+K.y)*oe,ce+=oe*3;ce===0?Re=zr[0]:Re=[he/ce,_e/ce];var Nl=h.unproject(B(Re));return ae([Nl.lat+Ve.lat,Nl.lng+Ve.lng])}function Nb(u){for(var h=0,O=0,E=0,R=0;R<u.length;R++){var K=ae(u[R]);h+=K.lat,O+=K.lng,E++}return ae([h/E,O/E])}var iz={__proto__:null,clipPolygon:eT,polygonCenter:tT,centroid:Nb};function nT(u,h){if(!h||!u.length)return u.slice();var O=h*h;return u=sz(u,O),u=az(u,O),u}function rT(u,h,O){return Math.sqrt(cf(u,h,O,!0))}function oz(u,h,O){return cf(u,h,O)}function az(u,h){var O=u.length,E=typeof Uint8Array<"u"?Uint8Array:Array,R=new E(O);R[0]=R[O-1]=1,Mb(u,R,h,0,O-1);var K,oe=[];for(K=0;K<O;K++)R[K]&&oe.push(u[K]);return oe}function Mb(u,h,O,E,R){var K=0,oe,ce,he;for(ce=E+1;ce<=R-1;ce++)he=cf(u[ce],u[E],u[R],!0),he>K&&(oe=ce,K=he);K>O&&(h[oe]=1,Mb(u,h,O,E,oe),Mb(u,h,O,oe,R))}function sz(u,h){for(var O=[u[0]],E=1,R=0,K=u.length;E<K;E++)lz(u[E],u[R])>h&&(O.push(u[E]),R=E);return R<K-1&&O.push(u[K-1]),O}var iT;function oT(u,h,O,E,R){var K=E?iT:ms(u,O),oe=ms(h,O),ce,he,_e;for(iT=oe;;){if(!(K|oe))return[u,h];if(K&oe)return!1;ce=K||oe,he=jp(u,h,ce,O,R),_e=ms(he,O),ce===K?(u=he,K=_e):(h=he,oe=_e)}}function jp(u,h,O,E,R){var K=h.x-u.x,oe=h.y-u.y,ce=E.min,he=E.max,_e,Re;return O&8?(_e=u.x+K*(he.y-u.y)/oe,Re=he.y):O&4?(_e=u.x+K*(ce.y-u.y)/oe,Re=ce.y):O&2?(_e=he.x,Re=u.y+oe*(he.x-u.x)/K):O&1&&(_e=ce.x,Re=u.y+oe*(ce.x-u.x)/K),new X(_e,Re,R)}function ms(u,h){var O=0;return u.x<h.min.x?O|=1:u.x>h.max.x&&(O|=2),u.y<h.min.y?O|=4:u.y>h.max.y&&(O|=8),O}function lz(u,h){var O=h.x-u.x,E=h.y-u.y;return O*O+E*E}function cf(u,h,O,E){var R=h.x,K=h.y,oe=O.x-R,ce=O.y-K,he=oe*oe+ce*ce,_e;return he>0&&(_e=((u.x-R)*oe+(u.y-K)*ce)/he,_e>1?(R=O.x,K=O.y):_e>0&&(R+=oe*_e,K+=ce*_e)),oe=u.x-R,ce=u.y-K,E?oe*oe+ce*ce:new X(R,K)}function Ur(u){return!w(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function aT(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ur(u)}function sT(u,h){var O,E,R,K,oe,ce,he,_e;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Re=ae([0,0]),Ve=ne(u),et=Ve.getNorthWest().distanceTo(Ve.getSouthWest())*Ve.getNorthEast().distanceTo(Ve.getNorthWest());et<1700&&(Re=Nb(u));var Vn=u.length,pn=[];for(O=0;O<Vn;O++){var zr=ae(u[O]);pn.push(h.project(ae([zr.lat-Re.lat,zr.lng-Re.lng])))}for(O=0,E=0;O<Vn-1;O++)E+=pn[O].distanceTo(pn[O+1])/2;if(E===0)_e=pn[0];else for(O=0,K=0;O<Vn-1;O++)if(oe=pn[O],ce=pn[O+1],R=oe.distanceTo(ce),K+=R,K>E){he=(K-E)/R,_e=[ce.x-he*(ce.x-oe.x),ce.y-he*(ce.y-oe.y)];break}var ir=h.unproject(B(_e));return ae([ir.lat+Re.lat,ir.lng+Re.lng])}var cz={__proto__:null,simplify:nT,pointToSegmentDistance:rT,closestPointOnSegment:oz,clipSegment:oT,_getEdgeIntersection:jp,_getBitCode:ms,_sqClosestPointOnSegment:cf,isFlat:Ur,_flat:aT,polylineCenter:sT},Lb={project:function(u){return new X(u.lng,u.lat)},unproject:function(u){return new re(u.y,u.x)},bounds:new W([-180,-90],[180,90])},Rb={R:6378137,R_MINOR:6356752314245179e-9,bounds:new W([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var h=Math.PI/180,O=this.R,E=u.lat*h,R=this.R_MINOR/O,K=Math.sqrt(1-R*R),oe=K*Math.sin(E),ce=Math.tan(Math.PI/4-E/2)/Math.pow((1-oe)/(1+oe),K/2);return E=-O*Math.log(Math.max(ce,1e-10)),new X(u.lng*h*O,E)},unproject:function(u){for(var h=180/Math.PI,O=this.R,E=this.R_MINOR/O,R=Math.sqrt(1-E*E),K=Math.exp(-u.y/O),oe=Math.PI/2-2*Math.atan(K),ce=0,he=.1,_e;ce<15&&Math.abs(he)>1e-7;ce++)_e=R*Math.sin(oe),_e=Math.pow((1-_e)/(1+_e),R/2),he=Math.PI/2-2*Math.atan(K*_e)-oe,oe+=he;return new re(oe*h,u.x*h/O)}},uz={__proto__:null,LonLat:Lb,Mercator:Rb,SphericalMercator:z},fz=i({},A,{code:"EPSG:3395",projection:Rb,transformation:function(){var u=.5/(Math.PI*Rb.R);return Y(u,.5,-u,.5)}()}),lT=i({},A,{code:"EPSG:4326",projection:Lb,transformation:Y(1/180,1,-1/180,.5)}),dz=i({},fe,{projection:Lb,transformation:Y(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,h){var O=h.lng-u.lng,E=h.lat-u.lat;return Math.sqrt(O*O+E*E)},infinite:!0});fe.Earth=A,fe.EPSG3395=fz,fe.EPSG3857=ie,fe.EPSG900913=de,fe.EPSG4326=lT,fe.Simple=dz;var gi=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[c(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[c(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var h=u.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(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var h=c(u);return this._layers[h]?this:(this._layers[h]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var h=c(u);return this._layers[h]?(this._loaded&&u.onRemove(this),delete this._layers[h],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return c(u)in this._layers},eachLayer:function(u,h){for(var O in this._layers)u.call(h,this._layers[O]);return this},_addLayers:function(u){u=u?w(u)?u:[u]:[];for(var h=0,O=u.length;h<O;h++)this.addLayer(u[h])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[c(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var h=c(u);this._zoomBoundLayers[h]&&(delete this._zoomBoundLayers[h],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,h=-1/0,O=this._getZoomSpan();for(var E in this._zoomBoundLayers){var R=this._zoomBoundLayers[E].options;u=R.minZoom===void 0?u:Math.min(u,R.minZoom),h=R.maxZoom===void 0?h:Math.max(h,R.maxZoom)}this._layersMaxZoom=h===-1/0?void 0:h,this._layersMinZoom=u===1/0?void 0:u,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 El=gi.extend({initialize:function(u,h){y(this,h),this._layers={};var O,E;if(u)for(O=0,E=u.length;O<E;O++)this.addLayer(u[O])},addLayer:function(u){var h=this.getLayerId(u);return this._layers[h]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var h=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[h]&&this._map.removeLayer(this._layers[h]),delete this._layers[h],this},hasLayer:function(u){var h=typeof u=="number"?u:this.getLayerId(u);return h in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var h=Array.prototype.slice.call(arguments,1),O,E;for(O in this._layers)E=this._layers[O],E[u]&&E[u].apply(E,h);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,h){for(var O in this._layers)u.call(h,this._layers[O]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return c(u)}}),hz=function(u,h){return new El(u,h)},go=El.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),El.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),El.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new G;for(var h in this._layers){var O=this._layers[h];u.extend(O.getBounds?O.getBounds():O.getLatLng())}return u}}),pz=function(u,h){return new go(u,h)},Tl=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,h){var O=this._getIconUrl(u);if(!O){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var E=this._createImg(O,h&&h.tagName==="IMG"?h:null);return this._setIconStyles(E,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),E},_setIconStyles:function(u,h){var O=this.options,E=O[h+"Size"];typeof E=="number"&&(E=[E,E]);var R=B(E),K=B(h==="shadow"&&O.shadowAnchor||O.iconAnchor||R&&R.divideBy(2,!0));u.className="leaflet-marker-"+h+" "+(O.className||""),K&&(u.style.marginLeft=-K.x+"px",u.style.marginTop=-K.y+"px"),R&&(u.style.width=R.x+"px",u.style.height=R.y+"px")},_createImg:function(u,h){return h=h||document.createElement("img"),h.src=u,h},_getIconUrl:function(u){return Be.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function mz(u){return new Tl(u)}var uf=Tl.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(u){return typeof uf.imagePath!="string"&&(uf.imagePath=this._detectIconPath()),(this.options.imagePath||uf.imagePath)+Tl.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var h=function(O,E,R){var K=E.exec(O);return K&&K[R]};return u=h(u,/^url\((['"])?(.+)\1\)$/,2),u&&h(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=ut("div","leaflet-default-icon-path",document.body),h=nf(u,"background-image")||nf(u,"backgroundImage");if(document.body.removeChild(u),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):""}}),cT=Wi.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new ia(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Qe(u,"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&&Yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var h=this._marker,O=h._map,E=this._marker.options.autoPanSpeed,R=this._marker.options.autoPanPadding,K=ds(h._icon),oe=O.getPixelBounds(),ce=O.getPixelOrigin(),he=ee(oe.min._subtract(ce).add(R),oe.max._subtract(ce).subtract(R));if(!he.contains(K)){var _e=B((Math.max(he.max.x,K.x)-he.max.x)/(oe.max.x-he.max.x)-(Math.min(he.min.x,K.x)-he.min.x)/(oe.min.x-he.min.x),(Math.max(he.max.y,K.y)-he.max.y)/(oe.max.y-he.max.y)-(Math.min(he.min.y,K.y)-he.min.y)/(oe.min.y-he.min.y)).multiplyBy(E);O.panBy(_e,{animate:!1}),this._draggable._newPos._add(_e),this._draggable._startPos._add(_e),en(h._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=I(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(F(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,u)))},_onDrag:function(u){var h=this._marker,O=h._shadow,E=ds(h._icon),R=h._map.layerPointToLatLng(E);O&&en(O,E),h._latlng=R,u.latlng=R,u.oldLatLng=this._oldLatLng,h.fire("move",u).fire("drag",u)},_onDragEnd:function(u){F(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Ap=gi.extend({options:{icon:new uf,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(u,h){y(this,h),this._latlng=ae(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.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(u){var h=this._latlng;return this._latlng=ae(u),this.update(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,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 u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,h="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),O=u.icon.createIcon(this._icon),E=!1;O!==this._icon&&(this._icon&&this._removeIcon(),E=!0,u.title&&(O.title=u.title),O.tagName==="IMG"&&(O.alt=u.alt||"")),Qe(O,h),u.keyboard&&(O.tabIndex="0",O.setAttribute("role","button")),this._icon=O,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ze(O,"focus",this._panOnFocus,this);var R=u.icon.createShadow(this._shadow),K=!1;R!==this._shadow&&(this._removeShadow(),K=!0),R&&(Qe(R,h),R.alt=""),this._shadow=R,u.opacity<1&&this._updateOpacity(),E&&this.getPane().appendChild(this._icon),this._initInteraction(),R&&K&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_t(this._icon,"focus",this._panOnFocus,this),Dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Dt(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&en(this._icon,u),this._shadow&&en(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(h)},_initInteraction:function(){if(this.options.interactive&&(Qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),cT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new cT(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&Br(this._icon,u),this._shadow&&Br(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var h=this.options.icon.options,O=h.iconSize?B(h.iconSize):B(0,0),E=h.iconAnchor?B(h.iconAnchor):B(0,0);u.panInside(this._latlng,{paddingTopLeft:E,paddingBottomRight:O.subtract(E)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function vz(u,h){return new Ap(u,h)}var oa=gi.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(u){this._renderer=u.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(u){return y(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"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)}}),kp=oa.extend({options:{fill:!0,radius:10},initialize:function(u,h){y(this,h),this._latlng=ae(u),this._radius=this.options.radius},setLatLng:function(u){var h=this._latlng;return this._latlng=ae(u),this.redraw(),this.fire("move",{oldLatLng:h,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var h=u&&u.radius||this._radius;return oa.prototype.setStyle.call(this,u),this.setRadius(h),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,h=this._radiusY||u,O=this._clickTolerance(),E=[u+O,h+O];this._pxBounds=new W(this._point.subtract(E),this._point.add(E))},_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(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function gz(u,h){return new kp(u,h)}var $b=kp.extend({initialize:function(u,h,O){if(typeof h=="number"&&(h=i({},O,{radius:h})),y(this,h),this._latlng=ae(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:oa.prototype.setStyle,_project:function(){var u=this._latlng.lng,h=this._latlng.lat,O=this._map,E=O.options.crs;if(E.distance===A.distance){var R=Math.PI/180,K=this._mRadius/A.R/R,oe=O.project([h+K,u]),ce=O.project([h-K,u]),he=oe.add(ce).divideBy(2),_e=O.unproject(he).lat,Re=Math.acos((Math.cos(K*R)-Math.sin(h*R)*Math.sin(_e*R))/(Math.cos(h*R)*Math.cos(_e*R)))/R;(isNaN(Re)||Re===0)&&(Re=K/Math.cos(Math.PI/180*h)),this._point=he.subtract(O.getPixelOrigin()),this._radius=isNaN(Re)?0:he.x-O.project([_e,u-Re]).x,this._radiusY=he.y-oe.y}else{var Ve=E.unproject(E.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 yz(u,h,O){return new $b(u,h,O)}var yo=oa.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,h){y(this,h),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var h=1/0,O=null,E=cf,R,K,oe=0,ce=this._parts.length;oe<ce;oe++)for(var he=this._parts[oe],_e=1,Re=he.length;_e<Re;_e++){R=he[_e-1],K=he[_e];var Ve=E(u,R,K,!0);Ve<h&&(h=Ve,O=E(u,R,K))}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 sT(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,h){return h=h||this._defaultShape(),u=ae(u),h.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new G,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Ur(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var h=[],O=Ur(u),E=0,R=u.length;E<R;E++)O?(h[E]=ae(u[E]),this._bounds.extend(h[E])):h[E]=this._convertLatLngs(u[E]);return h},_project:function(){var u=new W;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),h=new X(u,u);this._rawPxBounds&&(this._pxBounds=new W([this._rawPxBounds.min.subtract(h),this._rawPxBounds.max.add(h)]))},_projectLatlngs:function(u,h,O){var E=u[0]instanceof re,R=u.length,K,oe;if(E){for(oe=[],K=0;K<R;K++)oe[K]=this._map.latLngToLayerPoint(u[K]),O.extend(oe[K]);h.push(oe)}else for(K=0;K<R;K++)this._projectLatlngs(u[K],h,O)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var h=this._parts,O,E,R,K,oe,ce,he;for(O=0,R=0,K=this._rings.length;O<K;O++)for(he=this._rings[O],E=0,oe=he.length;E<oe-1;E++)ce=oT(he[E],he[E+1],u,E,!0),ce&&(h[R]=h[R]||[],h[R].push(ce[0]),(ce[1]!==he[E+1]||E===oe-2)&&(h[R].push(ce[1]),R++))}},_simplifyPoints:function(){for(var u=this._parts,h=this.options.smoothFactor,O=0,E=u.length;O<E;O++)u[O]=nT(u[O],h)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,h){var O,E,R,K,oe,ce,he=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(O=0,K=this._parts.length;O<K;O++)for(ce=this._parts[O],E=0,oe=ce.length,R=oe-1;E<oe;R=E++)if(!(!h&&E===0)&&rT(u,ce[R],ce[E])<=he)return!0;return!1}});function bz(u,h){return new yo(u,h)}yo._flat=aT;var jl=yo.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 tT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var h=yo.prototype._convertLatLngs.call(this,u),O=h.length;return O>=2&&h[0]instanceof re&&h[0].equals(h[O-1])&&h.pop(),h},_setLatLngs:function(u){yo.prototype._setLatLngs.call(this,u),Ur(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ur(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,h=this.options.weight,O=new X(h,h);if(u=new W(u.min.subtract(O),u.max.add(O)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var E=0,R=this._rings.length,K;E<R;E++)K=eT(this._rings[E],u,!0),K.length&&this._parts.push(K)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var h=!1,O,E,R,K,oe,ce,he,_e;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(K=0,he=this._parts.length;K<he;K++)for(O=this._parts[K],oe=0,_e=O.length,ce=_e-1;oe<_e;ce=oe++)E=O[oe],R=O[ce],E.y>u.y!=R.y>u.y&&u.x<(R.x-E.x)*(u.y-E.y)/(R.y-E.y)+E.x&&(h=!h);return h||yo.prototype._containsPoint.call(this,u,!0)}});function _z(u,h){return new jl(u,h)}var bo=go.extend({initialize:function(u,h){y(this,h),this._layers={},u&&this.addData(u)},addData:function(u){var h=w(u)?u:u.features,O,E,R;if(h){for(O=0,E=h.length;O<E;O++)R=h[O],(R.geometries||R.geometry||R.features||R.coordinates)&&this.addData(R);return this}var K=this.options;if(K.filter&&!K.filter(u))return this;var oe=Np(u,K);return oe?(oe.feature=Rp(u),oe.defaultOptions=oe.options,this.resetStyle(oe),K.onEachFeature&&K.onEachFeature(u,oe),this.addLayer(oe)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=i({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(h){this._setLayerStyle(h,u)},this)},_setLayerStyle:function(u,h){u.setStyle&&(typeof h=="function"&&(h=h(u.feature)),u.setStyle(h))}});function Np(u,h){var O=u.type==="Feature"?u.geometry:u,E=O?O.coordinates:null,R=[],K=h&&h.pointToLayer,oe=h&&h.coordsToLatLng||Ib,ce,he,_e,Re;if(!E&&!O)return null;switch(O.type){case"Point":return ce=oe(E),uT(K,u,ce,h);case"MultiPoint":for(_e=0,Re=E.length;_e<Re;_e++)ce=oe(E[_e]),R.push(uT(K,u,ce,h));return new go(R);case"LineString":case"MultiLineString":return he=Mp(E,O.type==="LineString"?0:1,oe),new yo(he,h);case"Polygon":case"MultiPolygon":return he=Mp(E,O.type==="Polygon"?1:2,oe),new jl(he,h);case"GeometryCollection":for(_e=0,Re=O.geometries.length;_e<Re;_e++){var Ve=Np({geometry:O.geometries[_e],type:"Feature",properties:u.properties},h);Ve&&R.push(Ve)}return new go(R);case"FeatureCollection":for(_e=0,Re=O.features.length;_e<Re;_e++){var et=Np(O.features[_e],h);et&&R.push(et)}return new go(R);default:throw new Error("Invalid GeoJSON object.")}}function uT(u,h,O,E){return u?u(h,O):new Ap(O,E&&E.markersInheritOptions&&E)}function Ib(u){return new re(u[1],u[0],u[2])}function Mp(u,h,O){for(var E=[],R=0,K=u.length,oe;R<K;R++)oe=h?Mp(u[R],h-1,O):(O||Ib)(u[R]),E.push(oe);return E}function Db(u,h){return u=ae(u),u.alt!==void 0?[p(u.lng,h),p(u.lat,h),p(u.alt,h)]:[p(u.lng,h),p(u.lat,h)]}function Lp(u,h,O,E){for(var R=[],K=0,oe=u.length;K<oe;K++)R.push(h?Lp(u[K],Ur(u[K])?0:h-1,O,E):Db(u[K],E));return!h&&O&&R.length>0&&R.push(R[0].slice()),R}function Al(u,h){return u.feature?i({},u.feature,{geometry:h}):Rp(h)}function Rp(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var Fb={toGeoJSON:function(u){return Al(this,{type:"Point",coordinates:Db(this.getLatLng(),u)})}};Ap.include(Fb),$b.include(Fb),kp.include(Fb),yo.include({toGeoJSON:function(u){var h=!Ur(this._latlngs),O=Lp(this._latlngs,h?1:0,!1,u);return Al(this,{type:(h?"Multi":"")+"LineString",coordinates:O})}}),jl.include({toGeoJSON:function(u){var h=!Ur(this._latlngs),O=h&&!Ur(this._latlngs[0]),E=Lp(this._latlngs,O?2:h?1:0,!0,u);return h||(E=[E]),Al(this,{type:(O?"Multi":"")+"Polygon",coordinates:E})}}),El.include({toMultiPoint:function(u){var h=[];return this.eachLayer(function(O){h.push(O.toGeoJSON(u).geometry.coordinates)}),Al(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(u){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(u);var O=h==="GeometryCollection",E=[];return this.eachLayer(function(R){if(R.toGeoJSON){var K=R.toGeoJSON(u);if(O)E.push(K.geometry);else{var oe=Rp(K);oe.type==="FeatureCollection"?E.push.apply(E,oe.features):E.push(oe)}}}),O?Al(this,{geometries:E,type:"GeometryCollection"}):{type:"FeatureCollection",features:E}}});function fT(u,h){return new bo(u,h)}var xz=fT,$p=gi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,h,O){this._url=u,this._bounds=ne(h),y(this,O)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&Pl(this._image),this},bringToBack:function(){return this._map&&Cl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=ne(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",h=this._image=u?this._url:ut("img");if(Qe(h,"leaflet-image-layer"),this._zoomAnimated&&Qe(h,"leaflet-zoom-animated"),this.options.className&&Qe(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(),u){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(u){var h=this._map.getZoomScale(u.zoom),O=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;fs(this._image,O,h)},_reset:function(){var u=this._image,h=new W(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),O=h.getSize();en(u,h.min),u.style.width=O.x+"px",u.style.height=O.y+"px"},_updateOpacity:function(){Br(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 u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),wz=function(u,h,O){return new $p(u,h,O)},dT=$p.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",h=this._image=u?this._url:ut("video");if(Qe(h,"leaflet-image-layer"),this._zoomAnimated&&Qe(h,"leaflet-zoom-animated"),this.options.className&&Qe(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onloadeddata=a(this.fire,this,"load"),u){for(var O=h.getElementsByTagName("source"),E=[],R=0;R<O.length;R++)E.push(O[R].src);this._url=O.length>0?E:[h.src];return}w(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 K=0;K<this._url.length;K++){var oe=ut("source");oe.src=this._url[K],h.appendChild(oe)}}});function Oz(u,h,O){return new dT(u,h,O)}var hT=$p.extend({_initImage:function(){var u=this._image=this._url;Qe(u,"leaflet-image-layer"),this._zoomAnimated&&Qe(u,"leaflet-zoom-animated"),this.options.className&&Qe(u,this.options.className),u.onselectstart=d,u.onmousemove=d}});function Sz(u,h,O){return new hT(u,h,O)}var Hi=gi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,h){u&&(u instanceof re||w(u))?(this._latlng=ae(u),y(this,h)):(y(this,u),this._source=h),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&Br(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&Br(this._container,1),this.bringToFront(),this.options.interactive&&(Qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(Br(this._container,0),this._removeTimeout=setTimeout(a(Dt,void 0,this._container),200)):Dt(this._container),this.options.interactive&&(Yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=ae(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,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 u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Pl(this._container),this},bringToBack:function(){return this._map&&Cl(this._container),this},_prepareOpen:function(u){var h=this._source;if(!h._map)return!1;if(h instanceof go){h=null;var O=this._source._layers;for(var E in O)if(O[E]._map){h=O[E];break}if(!h)return!1;this._source=h}if(!u)if(h.getCenter)u=h.getCenter();else if(h.getLatLng)u=h.getLatLng();else if(h.getBounds)u=h.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,h=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof h=="string")u.innerHTML=h;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(h)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),h=B(this.options.offset),O=this._getAnchor();this._zoomAnimated?en(this._container,u.add(O)):h=h.add(u).add(O);var E=this._containerBottom=-h.y,R=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=E+"px",this._container.style.left=R+"px"}},_getAnchor:function(){return[0,0]}});lt.include({_initOverlay:function(u,h,O,E){var R=h;return R instanceof u||(R=new u(E).setContent(h)),O&&R.setLatLng(O),R}}),gi.include({_initOverlay:function(u,h,O,E){var R=O;return R instanceof u?(y(R,E),R._source=this):(R=h&&!E?h:new u(E,this),R.setContent(O)),R}});var Ip=Hi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,Hi.prototype.openOn.call(this,u)},onAdd:function(u){Hi.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof oa||this._source.on("preclick",hs))},onRemove:function(u){Hi.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof oa||this._source.off("preclick",hs))},getEvents:function(){var u=Hi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",h=this._container=ut("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),O=this._wrapper=ut("div",u+"-content-wrapper",h);if(this._contentNode=ut("div",u+"-content",O),sf(h),Tb(this._contentNode),Ze(h,"contextmenu",hs),this._tipContainer=ut("div",u+"-tip-container",h),this._tip=ut("div",u+"-tip",this._tipContainer),this.options.closeButton){var E=this._closeButton=ut("a",u+"-close-button",h);E.setAttribute("role","button"),E.setAttribute("aria-label","Close popup"),E.href="#close",E.innerHTML='<span aria-hidden="true">×</span>',Ze(E,"click",function(R){En(R),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,h=u.style;h.width="",h.whiteSpace="nowrap";var O=u.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 E=u.offsetHeight,R=this.options.maxHeight,K="leaflet-popup-scrolled";R&&E>R?(h.height=R+"px",Qe(u,K)):Yt(u,K),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),O=this._getAnchor();en(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 u=this._map,h=parseInt(nf(this._container,"marginBottom"),10)||0,O=this._container.offsetHeight+h,E=this._containerWidth,R=new X(this._containerLeft,-O-this._containerBottom);R._add(ds(this._container));var K=u.layerPointToContainerPoint(R),oe=B(this.options.autoPanPadding),ce=B(this.options.autoPanPaddingTopLeft||oe),he=B(this.options.autoPanPaddingBottomRight||oe),_e=u.getSize(),Re=0,Ve=0;K.x+E+he.x>_e.x&&(Re=K.x+E-_e.x+he.x),K.x-Re-ce.x<0&&(Re=K.x-ce.x),K.y+O+he.y>_e.y&&(Ve=K.y+O-_e.y+he.y),K.y-Ve-ce.y<0&&(Ve=K.y-ce.y),(Re||Ve)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Re,Ve]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Pz=function(u,h){return new Ip(u,h)};lt.mergeOptions({closePopupOnClick:!0}),lt.include({openPopup:function(u,h,O){return this._initOverlay(Ip,u,h,O).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),gi.include({bindPopup:function(u,h){return this._popup=this._initOverlay(Ip,this._popup,u,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(u){return this._popup&&(this instanceof go||(this._popup._source=this),this._popup._prepareOpen(u||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(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){ps(u);var h=u.layer||u.target;if(this._popup._source===h&&!(h instanceof oa)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=h,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Dp=Hi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Hi.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Hi.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Hi.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",h=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ut("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var h,O,E=this._map,R=this._container,K=E.latLngToContainerPoint(E.getCenter()),oe=E.layerPointToContainerPoint(u),ce=this.options.direction,he=R.offsetWidth,_e=R.offsetHeight,Re=B(this.options.offset),Ve=this._getAnchor();ce==="top"?(h=he/2,O=_e):ce==="bottom"?(h=he/2,O=0):ce==="center"?(h=he/2,O=_e/2):ce==="right"?(h=0,O=_e/2):ce==="left"?(h=he,O=_e/2):oe.x<K.x?(ce="right",h=0,O=_e/2):(ce="left",h=he+(Re.x+Ve.x)*2,O=_e/2),u=u.subtract(B(h,O,!0)).add(Re).add(Ve),Yt(R,"leaflet-tooltip-right"),Yt(R,"leaflet-tooltip-left"),Yt(R,"leaflet-tooltip-top"),Yt(R,"leaflet-tooltip-bottom"),Qe(R,"leaflet-tooltip-"+ce),en(R,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&Br(this._container,u)},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(h)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Cz=function(u,h){return new Dp(u,h)};lt.include({openTooltip:function(u,h,O){return this._initOverlay(Dp,u,h,O).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),gi.include({bindTooltip:function(u,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dp,this._tooltip,u,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(u){if(!(!u&&this._tooltipHandlersAdded)){var h=u?"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=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof go||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(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(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var h=typeof u.getElement=="function"&&u.getElement();h&&(Ze(h,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ze(h,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var h=typeof u.getElement=="function"&&u.getElement();h&&h.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){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(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var h=u.latlng,O,E;this._tooltip.options.sticky&&u.originalEvent&&(O=this._map.mouseEventToContainerPoint(u.originalEvent),E=this._map.containerPointToLayerPoint(O),h=this._map.layerPointToLatLng(E)),this._tooltip.setLatLng(h)}});var pT=Tl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var h=u&&u.tagName==="DIV"?u:document.createElement("div"),O=this.options;if(O.html instanceof Element?(Sp(h),h.appendChild(O.html)):h.innerHTML=O.html!==!1?O.html:"",O.bgPos){var E=B(O.bgPos);h.style.backgroundPosition=-E.x+"px "+-E.y+"px"}return this._setIconStyles(h,"icon"),h},createShadow:function(){return null}});function Ez(u){return new pT(u)}Tl.Default=uf;var ff=gi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Be.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(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Dt(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Pl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Cl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=l(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof X?u:new X(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var h=this.getPane().children,O=-u(-1/0,1/0),E=0,R=h.length,K;E<R;E++)K=h[E].style.zIndex,h[E]!==this._container&&K&&(O=u(O,+K));isFinite(O)&&(this.options.zIndex=O+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Be.ielt9){Br(this._container,this.options.opacity);var u=+new Date,h=!1,O=!1;for(var E in this._tiles){var R=this._tiles[E];if(!(!R.current||!R.loaded)){var K=Math.min(1,(u-R.loaded)/200);Br(R.el,K),K<1?h=!0:(R.active?O=!0:this._onOpaqueTile(R),R.active=!0)}}O&&!this._noPrune&&this._pruneTiles(),h&&(F(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=ut("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,h=this.options.maxZoom;if(u!==void 0){for(var O in this._levels)O=Number(O),this._levels[O].el.children.length||O===u?(this._levels[O].el.style.zIndex=h-Math.abs(u-O),this._onUpdateLevel(O)):(Dt(this._levels[O].el),this._removeTilesAtZoom(O),this._onRemoveLevel(O),delete this._levels[O]);var E=this._levels[u],R=this._map;return E||(E=this._levels[u]={},E.el=ut("div","leaflet-tile-container leaflet-zoom-animated",this._container),E.el.style.zIndex=h,E.origin=R.project(R.unproject(R.getPixelOrigin()),u).round(),E.zoom=u,this._setZoomTransform(E,R.getCenter(),R.getZoom()),d(E.el.offsetWidth),this._onCreateLevel(E)),this._level=E,E}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var u,h,O=this._map.getZoom();if(O>this.options.maxZoom||O<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)h=this._tiles[u],h.retain=h.current;for(u in this._tiles)if(h=this._tiles[u],h.current&&!h.active){var E=h.coords;this._retainParent(E.x,E.y,E.z,E.z-5)||this._retainChildren(E.x,E.y,E.z,E.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var h in this._tiles)this._tiles[h].coords.z===u&&this._removeTile(h)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Dt(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,h,O,E){var R=Math.floor(u/2),K=Math.floor(h/2),oe=O-1,ce=new X(+R,+K);ce.z=+oe;var he=this._tileCoordsToKey(ce),_e=this._tiles[he];return _e&&_e.active?(_e.retain=!0,!0):(_e&&_e.loaded&&(_e.retain=!0),oe>E?this._retainParent(R,K,oe,E):!1)},_retainChildren:function(u,h,O,E){for(var R=2*u;R<2*u+2;R++)for(var K=2*h;K<2*h+2;K++){var oe=new X(R,K);oe.z=O+1;var ce=this._tileCoordsToKey(oe),he=this._tiles[ce];if(he&&he.active){he.retain=!0;continue}else he&&he.loaded&&(he.retain=!0);O+1<E&&this._retainChildren(R,K,O+1,E)}},_resetView:function(u){var h=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),h,h)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var h=this.options;return h.minNativeZoom!==void 0&&u<h.minNativeZoom?h.minNativeZoom:h.maxNativeZoom!==void 0&&h.maxNativeZoom<u?h.maxNativeZoom:u},_setView:function(u,h,O,E){var R=Math.round(h);this.options.maxZoom!==void 0&&R>this.options.maxZoom||this.options.minZoom!==void 0&&R<this.options.minZoom?R=void 0:R=this._clampZoom(R);var K=this.options.updateWhenZooming&&R!==this._tileZoom;(!E||K)&&(this._tileZoom=R,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),R!==void 0&&this._update(u),O||this._pruneTiles(),this._noPrune=!!O),this._setZoomTransforms(u,h)},_setZoomTransforms:function(u,h){for(var O in this._levels)this._setZoomTransform(this._levels[O],u,h)},_setZoomTransform:function(u,h,O){var E=this._map.getZoomScale(O,u.zoom),R=u.origin.multiplyBy(E).subtract(this._map._getNewPixelOrigin(h,O)).round();Be.any3d?fs(u.el,R,E):en(u.el,R)},_resetGrid:function(){var u=this._map,h=u.options.crs,O=this._tileSize=this.getTileSize(),E=this._tileZoom,R=this._map.getPixelWorldBounds(this._tileZoom);R&&(this._globalTileRange=this._pxBoundsToTileRange(R)),this._wrapX=h.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,h.wrapLng[0]],E).x/O.x),Math.ceil(u.project([0,h.wrapLng[1]],E).x/O.y)],this._wrapY=h.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([h.wrapLat[0],0],E).y/O.x),Math.ceil(u.project([h.wrapLat[1],0],E).y/O.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var h=this._map,O=h._animatingZoom?Math.max(h._animateToZoom,h.getZoom()):h.getZoom(),E=h.getZoomScale(O,this._tileZoom),R=h.project(u,this._tileZoom).floor(),K=h.getSize().divideBy(E*2);return new W(R.subtract(K),R.add(K))},_update:function(u){var h=this._map;if(h){var O=this._clampZoom(h.getZoom());if(u===void 0&&(u=h.getCenter()),this._tileZoom!==void 0){var E=this._getTiledPixelBounds(u),R=this._pxBoundsToTileRange(E),K=R.getCenter(),oe=[],ce=this.options.keepBuffer,he=new W(R.getBottomLeft().subtract([ce,-ce]),R.getTopRight().add([ce,-ce]));if(!(isFinite(R.min.x)&&isFinite(R.min.y)&&isFinite(R.max.x)&&isFinite(R.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var _e in this._tiles){var Re=this._tiles[_e].coords;(Re.z!==this._tileZoom||!he.contains(new X(Re.x,Re.y)))&&(this._tiles[_e].current=!1)}if(Math.abs(O-this._tileZoom)>1){this._setView(u,O);return}for(var Ve=R.min.y;Ve<=R.max.y;Ve++)for(var et=R.min.x;et<=R.max.x;et++){var Vn=new X(et,Ve);if(Vn.z=this._tileZoom,!!this._isValidTile(Vn)){var pn=this._tiles[this._tileCoordsToKey(Vn)];pn?pn.current=!0:oe.push(Vn)}}if(oe.sort(function(ir,Nl){return ir.distanceTo(K)-Nl.distanceTo(K)}),oe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var zr=document.createDocumentFragment();for(et=0;et<oe.length;et++)this._addTile(oe[et],zr);this._level.el.appendChild(zr)}}}},_isValidTile:function(u){var h=this._map.options.crs;if(!h.infinite){var O=this._globalTileRange;if(!h.wrapLng&&(u.x<O.min.x||u.x>O.max.x)||!h.wrapLat&&(u.y<O.min.y||u.y>O.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return ne(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var h=this._map,O=this.getTileSize(),E=u.scaleBy(O),R=E.add(O),K=h.unproject(E,u.z),oe=h.unproject(R,u.z);return[K,oe]},_tileCoordsToBounds:function(u){var h=this._tileCoordsToNwSe(u),O=new G(h[0],h[1]);return this.options.noWrap||(O=this._map.wrapLatLngBounds(O)),O},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var h=u.split(":"),O=new X(+h[0],+h[1]);return O.z=+h[2],O},_removeTile:function(u){var h=this._tiles[u];h&&(Dt(h.el),delete this._tiles[u],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Qe(u,"leaflet-tile");var h=this.getTileSize();u.style.width=h.x+"px",u.style.height=h.y+"px",u.onselectstart=d,u.onmousemove=d,Be.ielt9&&this.options.opacity<1&&Br(u,this.options.opacity)},_addTile:function(u,h){var O=this._getTilePos(u),E=this._tileCoordsToKey(u),R=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(R),this.createTile.length<2&&I(a(this._tileReady,this,u,null,R)),en(R,O),this._tiles[E]={el:R,coords:u,current:!0},h.appendChild(R),this.fire("tileloadstart",{tile:R,coords:u})},_tileReady:function(u,h,O){h&&this.fire("tileerror",{error:h,tile:O,coords:u});var E=this._tileCoordsToKey(u);O=this._tiles[E],O&&(O.loaded=+new Date,this._map._fadeAnimated?(Br(O.el,0),F(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(O.active=!0,this._pruneTiles()),h||(Qe(O.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:O.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Be.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var h=new X(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return h.z=u.z,h},_pxBoundsToTileRange:function(u){var h=this.getTileSize();return new W(u.min.unscaleBy(h).floor(),u.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function Tz(u){return new ff(u)}var kl=ff.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,h){this._url=u,h=y(this,h),h.detectRetina&&Be.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(u,h){return this._url===u&&h===void 0&&(h=!0),this._url=u,h||this.redraw(),this},createTile:function(u,h){var O=document.createElement("img");return Ze(O,"load",a(this._tileOnLoad,this,h,O)),Ze(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(u),O},getTileUrl:function(u){var h={r:Be.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var O=this._globalTileRange.max.y-u.y;this.options.tms&&(h.y=O),h["-y"]=O}return _(this._url,i(h,this.options))},_tileOnLoad:function(u,h){Be.ielt9?setTimeout(a(u,this,null,h),0):u(null,h)},_tileOnError:function(u,h,O){var E=this.options.errorTileUrl;E&&h.getAttribute("src")!==E&&(h.src=E),u(O,h)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,h=this.options.maxZoom,O=this.options.zoomReverse,E=this.options.zoomOffset;return O&&(u=h-u),u+E},_getSubdomain:function(u){var h=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var u,h;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(h=this._tiles[u].el,h.onload=d,h.onerror=d,!h.complete)){h.src=C;var O=this._tiles[u].coords;Dt(h),delete this._tiles[u],this.fire("tileabort",{tile:h,coords:O})}},_removeTile:function(u){var h=this._tiles[u];if(h)return h.el.setAttribute("src",C),ff.prototype._removeTile.call(this,u)},_tileReady:function(u,h,O){if(!(!this._map||O&&O.getAttribute("src")===C))return ff.prototype._tileReady.call(this,u,h,O)}});function mT(u,h){return new kl(u,h)}var vT=kl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,h){this._url=u;var O=i({},this.defaultWmsParams);for(var E in h)E in this.options||(O[E]=h[E]);h=y(this,h);var R=h.detectRetina&&Be.retina?2:1,K=this.getTileSize();O.width=K.x*R,O.height=K.y*R,this.wmsParams=O},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,kl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var h=this._tileCoordsToNwSe(u),O=this._crs,E=ee(O.project(h[0]),O.project(h[1])),R=E.min,K=E.max,oe=(this._wmsVersion>=1.3&&this._crs===lT?[R.y,R.x,K.y,K.x]:[R.x,R.y,K.x,K.y]).join(","),ce=kl.prototype.getTileUrl.call(this,u);return ce+x(this.wmsParams,ce,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+oe},setParams:function(u,h){return i(this.wmsParams,u),h||this.redraw(),this}});function jz(u,h){return new vT(u,h)}kl.WMS=vT,mT.wms=jz;var _o=gi.extend({options:{padding:.1},initialize:function(u){y(this,u),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Qe(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 u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,h){var O=this._map.getZoomScale(h,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),R=this._map.project(this._center,h),K=E.multiplyBy(-O).add(R).subtract(this._map._getNewPixelOrigin(u,h));Be.any3d?fs(this._container,K,O):en(this._container,K)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,h=this._map.getSize(),O=this._map.containerPointToLayerPoint(h.multiplyBy(-u)).round();this._bounds=new W(O,O.add(h.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),gT=_o.extend({options:{tolerance:0},getEvents:function(){var u=_o.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){_o.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ze(u,"mousemove",this._onMouseMove,this),Ze(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ze(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){F(this._redrawRequest),delete this._ctx,Dt(this._container),_t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var h in this._layers)u=this._layers[h],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){_o.prototype._update.call(this);var u=this._bounds,h=this._container,O=u.getSize(),E=Be.retina?2:1;en(h,u.min),h.width=E*O.x,h.height=E*O.y,h.style.width=O.x+"px",h.style.height=O.y+"px",Be.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){_o.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[c(u)]=u;var h=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var h=u._order,O=h.next,E=h.prev;O?O.prev=E:this._drawLast=E,E?E.next=O:this._drawFirst=O,delete u._order,delete this._layers[c(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var h=u.options.dashArray.split(/[, ]+/),O=[],E,R;for(R=0;R<h.length;R++){if(E=Number(h[R]),isNaN(E))return;O.push(E)}u.options._dashArray=O}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var h=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new W,this._redrawBounds.extend(u._pxBounds.min.subtract([h,h])),this._redrawBounds.extend(u._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 u=this._redrawBounds;if(u){var h=u.getSize();this._ctx.clearRect(u.min.x,u.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 u,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 E=this._drawFirst;E;E=E.next)u=E.layer,(!h||u._pxBounds&&u._pxBounds.intersects(h))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,h){if(this._drawing){var O,E,R,K,oe=u._parts,ce=oe.length,he=this._ctx;if(ce){for(he.beginPath(),O=0;O<ce;O++){for(E=0,R=oe[O].length;E<R;E++)K=oe[O][E],he[E?"lineTo":"moveTo"](K.x,K.y);h&&he.closePath()}this._fillStroke(he,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var h=u._point,O=this._ctx,E=Math.max(Math.round(u._radius),1),R=(Math.max(Math.round(u._radiusY),1)||E)/E;R!==1&&(O.save(),O.scale(1,R)),O.beginPath(),O.arc(h.x,h.y/R,E,0,Math.PI*2,!1),R!==1&&O.restore(),this._fillStroke(O,u)}},_fillStroke:function(u,h){var O=h.options;O.fill&&(u.globalAlpha=O.fillOpacity,u.fillStyle=O.fillColor||O.color,u.fill(O.fillRule||"evenodd")),O.stroke&&O.weight!==0&&(u.setLineDash&&u.setLineDash(h.options&&h.options._dashArray||[]),u.globalAlpha=O.opacity,u.lineWidth=O.weight,u.strokeStyle=O.color,u.lineCap=O.lineCap,u.lineJoin=O.lineJoin,u.stroke())},_onClick:function(u){for(var h=this._map.mouseEventToLayerPoint(u),O,E,R=this._drawFirst;R;R=R.next)O=R.layer,O.options.interactive&&O._containsPoint(h)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(O))&&(E=O);this._fireEvent(E?[E]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var h=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,h)}},_handleMouseOut:function(u){var h=this._hoveredLayer;h&&(Yt(this._container,"leaflet-interactive"),this._fireEvent([h],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,h){if(!this._mouseHoverThrottled){for(var O,E,R=this._drawFirst;R;R=R.next)O=R.layer,O.options.interactive&&O._containsPoint(h)&&(E=O);E!==this._hoveredLayer&&(this._handleMouseOut(u),E&&(Qe(this._container,"leaflet-interactive"),this._fireEvent([E],u,"mouseover"),this._hoveredLayer=E)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,h,O){this._map._fireDOMEvent(h,O||h.type,u)},_bringToFront:function(u){var h=u._order;if(h){var O=h.next,E=h.prev;if(O)O.prev=E;else return;E?E.next=O:O&&(this._drawFirst=O),h.prev=this._drawLast,this._drawLast.next=h,h.next=null,this._drawLast=h,this._requestRedraw(u)}},_bringToBack:function(u){var h=u._order;if(h){var O=h.next,E=h.prev;if(E)E.next=O;else return;O?O.prev=E:E&&(this._drawLast=E),h.prev=null,h.next=this._drawFirst,this._drawFirst.prev=h,this._drawFirst=h,this._requestRedraw(u)}}});function yT(u){return Be.canvas?new gT(u):null}var df=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Az={_initContainer:function(){this._container=ut("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(_o.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var h=u._container=df("shape");Qe(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",u._path=df("path"),h.appendChild(u._path),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){var h=u._container;this._container.appendChild(h),u.options.interactive&&u.addInteractiveTarget(h)},_removePath:function(u){var h=u._container;Dt(h),u.removeInteractiveTarget(h),delete this._layers[c(u)]},_updateStyle:function(u){var h=u._stroke,O=u._fill,E=u.options,R=u._container;R.stroked=!!E.stroke,R.filled=!!E.fill,E.stroke?(h||(h=u._stroke=df("stroke")),R.appendChild(h),h.weight=E.weight+"px",h.color=E.color,h.opacity=E.opacity,E.dashArray?h.dashStyle=w(E.dashArray)?E.dashArray.join(" "):E.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=E.lineCap.replace("butt","flat"),h.joinstyle=E.lineJoin):h&&(R.removeChild(h),u._stroke=null),E.fill?(O||(O=u._fill=df("fill")),R.appendChild(O),O.color=E.fillColor||E.color,O.opacity=E.fillOpacity):O&&(R.removeChild(O),u._fill=null)},_updateCircle:function(u){var h=u._point.round(),O=Math.round(u._radius),E=Math.round(u._radiusY||O);this._setPath(u,u._empty()?"M0 0":"AL "+h.x+","+h.y+" "+O+","+E+" 0,"+65535*360)},_setPath:function(u,h){u._path.v=h},_bringToFront:function(u){Pl(u._container)},_bringToBack:function(u){Cl(u._container)}},Fp=Be.vml?df:Ce,hf=_o.extend({_initContainer:function(){this._container=Fp("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Fp("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Dt(this._container),_t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){_o.prototype._update.call(this);var u=this._bounds,h=u.getSize(),O=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,O.setAttribute("width",h.x),O.setAttribute("height",h.y)),en(O,u.min),O.setAttribute("viewBox",[u.min.x,u.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(u){var h=u._path=Fp("path");u.options.className&&Qe(h,u.options.className),u.options.interactive&&Qe(h,"leaflet-interactive"),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Dt(u._path),u.removeInteractiveTarget(u._path),delete this._layers[c(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var h=u._path,O=u.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(u,h){this._setPath(u,se(u._parts,h))},_updateCircle:function(u){var h=u._point,O=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||O,R="a"+O+","+E+" 0 1,0 ",K=u._empty()?"M0 0":"M"+(h.x-O)+","+h.y+R+O*2+",0 "+R+-O*2+",0 ";this._setPath(u,K)},_setPath:function(u,h){u._path.setAttribute("d",h)},_bringToFront:function(u){Pl(u._path)},_bringToBack:function(u){Cl(u._path)}});Be.vml&&hf.include(Az);function bT(u){return Be.svg||Be.vml?new hf(u):null}lt.include({getRenderer:function(u){var h=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var h=this._paneRenderers[u];return h===void 0&&(h=this._createRenderer({pane:u}),this._paneRenderers[u]=h),h},_createRenderer:function(u){return this.options.preferCanvas&&yT(u)||bT(u)}});var _T=jl.extend({initialize:function(u,h){jl.prototype.initialize.call(this,this._boundsToLatLngs(u),h)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=ne(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function kz(u,h){return new _T(u,h)}hf.create=Fp,hf.pointsToPath=se,bo.geometryToLayer=Np,bo.coordsToLatLng=Ib,bo.coordsToLatLngs=Mp,bo.latLngToCoords=Db,bo.latLngsToCoords=Lp,bo.getFeature=Al,bo.asFeature=Rp,lt.mergeOptions({boxZoom:!0});var xT=Wi.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ze(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Dt(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(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),rf(),_b(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ze(document,{contextmenu:ps,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ut("div","leaflet-zoom-box",this._container),Qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var h=new W(this._point,this._startPoint),O=h.getSize();en(this._box,h.min),this._box.style.width=O.x+"px",this._box.style.height=O.y+"px"},_finish:function(){this._moved&&(Dt(this._box),Yt(this._container,"leaflet-crosshair")),of(),xb(),_t(document,{contextmenu:ps,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var h=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});lt.addInitHook("addHandler","boxZoom",xT),lt.mergeOptions({doubleClickZoom:!0});var wT=Wi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var h=this._map,O=h.getZoom(),E=h.options.zoomDelta,R=u.originalEvent.shiftKey?O-E:O+E;h.options.doubleClickZoom==="center"?h.setZoom(R):h.setZoomAround(u.containerPoint,R)}});lt.addInitHook("addHandler","doubleClickZoom",wT),lt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var OT=Wi.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new ia(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Yt(this._map._container,"leaflet-grab"),Yt(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 u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var h=ne(this._map.options.maxBounds);this._offsetLimit=ee(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;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){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",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,h){return u-(u-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;u.x<h.min.x&&(u.x=this._viscousLimit(u.x,h.min.x)),u.y<h.min.y&&(u.y=this._viscousLimit(u.y,h.min.y)),u.x>h.max.x&&(u.x=this._viscousLimit(u.x,h.max.x)),u.y>h.max.y&&(u.y=this._viscousLimit(u.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,h=Math.round(u/2),O=this._initialWorldOffset,E=this._draggable._newPos.x,R=(E-h+O)%u+h-O,K=(E+h+O)%u-h-O,oe=Math.abs(R+O)<Math.abs(K+O)?R:K;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=oe},_onDragEnd:function(u){var h=this._map,O=h.options,E=!O.inertia||u.noInertia||this._times.length<2;if(h.fire("dragend",u),E)h.fire("moveend");else{this._prunePositions(+new Date);var R=this._lastPos.subtract(this._positions[0]),K=(this._lastTime-this._times[0])/1e3,oe=O.easeLinearity,ce=R.multiplyBy(oe/K),he=ce.distanceTo([0,0]),_e=Math.min(O.inertiaMaxSpeed,he),Re=ce.multiplyBy(_e/he),Ve=_e/(O.inertiaDeceleration*oe),et=Re.multiplyBy(-Ve/2).round();!et.x&&!et.y?h.fire("moveend"):(et=h._limitOffset(et,h.options.maxBounds),I(function(){h.panBy(et,{duration:Ve,easeLinearity:oe,noMoveStart:!0,animate:!0})}))}}});lt.addInitHook("addHandler","dragging",OT),lt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ST=Wi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Ze(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_t(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,h=document.documentElement,O=u.scrollTop||h.scrollTop,E=u.scrollLeft||h.scrollLeft;this._map._container.focus(),window.scrollTo(E,O)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var h=this._panKeys={},O=this.keyCodes,E,R;for(E=0,R=O.left.length;E<R;E++)h[O.left[E]]=[-1*u,0];for(E=0,R=O.right.length;E<R;E++)h[O.right[E]]=[u,0];for(E=0,R=O.down.length;E<R;E++)h[O.down[E]]=[0,u];for(E=0,R=O.up.length;E<R;E++)h[O.up[E]]=[0,-1*u]},_setZoomDelta:function(u){var h=this._zoomKeys={},O=this.keyCodes,E,R;for(E=0,R=O.zoomIn.length;E<R;E++)h[O.zoomIn[E]]=u;for(E=0,R=O.zoomOut.length;E<R;E++)h[O.zoomOut[E]]=-u},_addHooks:function(){Ze(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var h=u.keyCode,O=this._map,E;if(h in this._panKeys){if(!O._panAnim||!O._panAnim._inProgress)if(E=this._panKeys[h],u.shiftKey&&(E=B(E).multiplyBy(3)),O.options.maxBounds&&(E=O._limitOffset(B(E),O.options.maxBounds)),O.options.worldCopyJump){var R=O.wrapLatLng(O.unproject(O.project(O.getCenter()).add(E)));O.panTo(R)}else O.panBy(E)}else if(h in this._zoomKeys)O.setZoom(O.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[h]);else if(h===27&&O._popup&&O._popup.options.closeOnEscapeKey)O.closePopup();else return;ps(u)}}});lt.addInitHook("addHandler","keyboard",ST),lt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var PT=Wi.extend({addHooks:function(){Ze(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var h=YE(u),O=this._map.options.wheelDebounceTime;this._delta+=h,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var E=Math.max(O-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),E),ps(u)},_performZoom:function(){var u=this._map,h=u.getZoom(),O=this._map.options.zoomSnap||0;u._stop();var E=this._delta/(this._map.options.wheelPxPerZoomLevel*4),R=4*Math.log(2/(1+Math.exp(-Math.abs(E))))/Math.LN2,K=O?Math.ceil(R/O)*O:R,oe=u._limitZoom(h+(this._delta>0?K:-K))-h;this._delta=0,this._startTime=null,oe&&(u.options.scrollWheelZoom==="center"?u.setZoom(h+oe):u.setZoomAround(this._lastMousePos,h+oe))}});lt.addInitHook("addHandler","scrollWheelZoom",PT);var Nz=600;lt.mergeOptions({tapHold:Be.touchNative&&Be.safari&&Be.mobile,tapTolerance:15});var CT=Wi.extend({addHooks:function(){Ze(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var h=u.touches[0];this._startPos=this._newPos=new X(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Ze(document,"touchend",En),Ze(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),Nz),Ze(document,"touchend touchcancel contextmenu",this._cancel,this),Ze(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){_t(document,"touchend",En),_t(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),_t(document,"touchend touchcancel contextmenu",this._cancel,this),_t(document,"touchmove",this._onMove,this)},_onMove:function(u){var h=u.touches[0];this._newPos=new X(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,h){var O=new MouseEvent(u,{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",CT),lt.mergeOptions({touchZoom:Be.touch,bounceAtZoomLimits:!0});var ET=Wi.extend({addHooks:function(){Qe(this._map._container,"leaflet-touch-zoom"),Ze(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Yt(this._map._container,"leaflet-touch-zoom"),_t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var h=this._map;if(!(!u.touches||u.touches.length!==2||h._animatingZoom||this._zooming)){var O=h.mouseEventToContainerPoint(u.touches[0]),E=h.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(O.add(E)._divideBy(2))),this._startDist=O.distanceTo(E),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),Ze(document,"touchmove",this._onTouchMove,this),Ze(document,"touchend touchcancel",this._onTouchEnd,this),En(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var h=this._map,O=h.mouseEventToContainerPoint(u.touches[0]),E=h.mouseEventToContainerPoint(u.touches[1]),R=O.distanceTo(E)/this._startDist;if(this._zoom=h.getScaleZoom(R,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoom<h.getMinZoom()&&R<1||this._zoom>h.getMaxZoom()&&R>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,R===1)return}else{var K=O._add(E)._divideBy(2)._subtract(this._centerPoint);if(R===1&&K.x===0&&K.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(K),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),F(this._animRequest);var oe=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(oe,this,!0),En(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,F(this._animRequest),_t(document,"touchmove",this._onTouchMove,this),_t(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});lt.addInitHook("addHandler","touchZoom",ET),lt.BoxZoom=xT,lt.DoubleClickZoom=wT,lt.Drag=OT,lt.Keyboard=ST,lt.ScrollWheelZoom=PT,lt.TapHold=CT,lt.TouchZoom=ET,n.Bounds=W,n.Browser=Be,n.CRS=fe,n.Canvas=gT,n.Circle=$b,n.CircleMarker=kp,n.Class=H,n.Control=vi,n.DivIcon=pT,n.DivOverlay=Hi,n.DomEvent=Z9,n.DomUtil=q9,n.Draggable=ia,n.Evented=te,n.FeatureGroup=go,n.GeoJSON=bo,n.GridLayer=ff,n.Handler=Wi,n.Icon=Tl,n.ImageOverlay=$p,n.LatLng=re,n.LatLngBounds=G,n.Layer=gi,n.LayerGroup=El,n.LineUtil=cz,n.Map=lt,n.Marker=Ap,n.Mixin=rz,n.Path=oa,n.Point=X,n.PolyUtil=iz,n.Polygon=jl,n.Polyline=yo,n.Popup=Ip,n.PosAnimation=ZE,n.Projection=uz,n.Rectangle=_T,n.Renderer=_o,n.SVG=hf,n.SVGOverlay=hT,n.TileLayer=kl,n.Tooltip=Dp,n.Transformation=J,n.Util=q,n.VideoOverlay=dT,n.bind=a,n.bounds=ee,n.canvas=yT,n.circle=yz,n.circleMarker=gz,n.control=lf,n.divIcon=Ez,n.extend=i,n.featureGroup=pz,n.geoJSON=fT,n.geoJson=xz,n.gridLayer=Tz,n.icon=mz,n.imageOverlay=wz,n.latLng=ae,n.latLngBounds=ne,n.layerGroup=hz,n.map=X9,n.marker=vz,n.point=B,n.polygon=_z,n.polyline=bz,n.popup=Pz,n.rectangle=kz,n.setOptions=y,n.stamp=c,n.svg=bT,n.svgOverlay=Sz,n.tileLayer=mT,n.tooltip=Cz,n.transformation=Y,n.version=r,n.videoOverlay=Oz;var Mz=window.L;n.noConflict=function(){return window.L=Mz,this},window.L=n})})(VO,VO.exports);var dp=VO.exports;const oR=st(dp);function sE(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function lE(e,t){return t==null?function(r,i){const o=N.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=N.useRef();o.current||(o.current=e(r,i));const a=N.useRef(r),{instance:s}=o.current;return N.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function HMe(e,t){N.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function fB(e){return function(n){const r=cB(),i=e(aE(n,r),r);return aB(r.map,n.attribution),uB(i.current,n.eventHandlers),HMe(i.current,r),i}}function GMe(e,t){const n=lE(e,t),r=fB(n);return UMe(r)}function KMe(e,t){const n=lE(e),r=WMe(n,t);return zMe(r)}function qMe(e,t){const n=lE(e,t),r=fB(n);return VMe(r)}function YMe(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 WO(){return WO=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},WO.apply(this,arguments)}function ZMe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:c,zoom:l,...f},d){const[p]=N.useState({className:i,id:o,style:s}),[v,g]=N.useState(null);N.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const y=N.useCallback(b=>{if(b!==null&&v===null){const _=new dp.Map(b,f);n!=null&&l!=null?_.setView(n,l):e!=null&&_.fitBounds(e,t),c!=null&&_.whenReady(c),g(FMe(_))}},[]);N.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const x=v?V.createElement(lB,{value:v},r):a??null;return V.createElement("div",WO({},p,{ref:y}),x)}const XMe=N.forwardRef(ZMe),QMe=GMe(function({position:t,...n},r){const i=new dp.Marker(t,n);return sE(i,BMe(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),JMe=KMe(function(t,n){const r=new dp.Popup(t,n.overlayContainer);return sE(r,n)},function(t,n,{position:r},i){N.useEffect(function(){const{instance:a}=t;function s(l){l.popup===a&&(a.update(),i(!0))}function c(l){l.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:c}),n.overlayContainer==null?(r!=null&&a.setLatLng(r),a.openOn(n.map)):n.overlayContainer.bindPopup(a),function(){var f;n.map.off({popupopen:s,popupclose:c}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),eLe=qMe(function({url:t,...n},r){const i=new dp.TileLayer(t,aE(n,r));return sE(i,r)},function(t,n,r){YMe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),tLe={"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"},dB={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"},Zt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Hn={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"},da={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 c=be.map([t,n],l=>{const f=a-be.getVersionPrecision(l),d=l+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(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[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(c=>{r[c]=a[c]})}return t}static getBrowserAlias(t){return tLe[t]}static getBrowserTypeByAlias(t){return dB[t]||""}}const gt=/version\/(\d+(\.?_?\d+)+)/i,nLe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(gt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(gt,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(gt,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(gt,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(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(gt,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(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,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(gt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(gt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(gt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:be.getFirstMatch(i,e),version:be.getSecondMatch(i,e)}}}],rLe=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Hn.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Hn.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:Hn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Hn.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:Hn.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:Hn.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:Hn.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:Hn.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:Hn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Hn.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Hn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Hn.Linux}}},{test:[/CrOS/],describe(){return{name:Hn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Hn.PlayStation4,version:t}}}],iLe=[{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:Zt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Zt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Zt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Zt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Zt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Zt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Zt.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:Zt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Zt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Zt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Zt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Zt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Zt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Zt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Zt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Zt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Zt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Zt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Zt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Zt.tv}}}],oLe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:da.Blink};const n=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:da.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:da.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:da.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:da.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:da.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:da.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class aR{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(nLe,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(rLe,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(iLe,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(oLe,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(s=>{const c=t[s];typeof c=="string"?(i[s]=c,o+=1):typeof c=="object"&&(n[s]=c,r+=1)}),r>0){const s=Object.keys(n),c=be.find(s,f=>this.isOS(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}const l=be.find(s,f=>this.isPlatform(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}}if(o>0){const s=Object.keys(i),c=be.find(s,l=>this.isBrowser(l,!0));if(c!==void 0)return this.compareVersion(i[c])}}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 aLe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new aR(t,n)}static parse(t){return new aR(t).getResult()}static get BROWSER_MAP(){return dB}static get ENGINE_MAP(){return da}static get OS_MAP(){return Hn}static get PLATFORMS_MAP(){return Zt}}var sLe=Object.defineProperty,lLe=(e,t,n)=>t in e?sLe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ba=(e,t,n)=>lLe(e,typeof t!="symbol"?t+"":t,n);const cLe=e=>(e==null?void 0:e.type)===WP.INVALID_ARGUMENT,uLe=e=>(e==null?void 0:e.type)===WP.INVALID_SHORT_URL_DELETION,fLe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Fr=e=>fLe(e)?e:void 0,cE=e=>"error"in e,fo=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,cLe(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),dl=({style:e,className:t,...n})=>m.jsx("button",{type:"button",className:Oe("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),hB=N.createContext(""),dLe=hB.Provider,cs=()=>N.useContext(hB),pB=N.createContext(void 0),{Provider:uE}=pB,ab=()=>N.useContext(pB),hLe=5,fE=()=>{const[e,t]=N.useState([]),n=N.useMemo(()=>e.length>=hLe,[e.length]),r=N.useCallback(s=>!n&&t(c=>[...c,s]),[n]),i=N.useCallback(s=>!n&&e.every(c=>c.name!==s),[e,n]),o=N.useCallback(s=>t(c=>c.filter(l=>l!==s)),[]),a=N.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},dE=({className:e,type:t})=>{const n=cs(),r=ab(),i=N.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(c=>c.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return m.jsx("div",{className:Oe("top-sticky",e),children:m.jsxs(yt,{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((c,l)=>{var f;return m.jsxs("li",{className:Oe("badge pe-1",{"bg-secondary":!((f=c.style)!=null&&f.backgroundColor)}),style:c.style,children:[c.name,m.jsx(dl,{"aria-label":`Remove ${c.name}`,className:"fw-bold fs-6",onClick:()=>s(c),children:"×"})]},`${c.name}_${l}`)})}),m.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[m.jsxs(qe,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:Pt,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[m.jsx(je,{icon:Zy,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),m.jsx(qe,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},pLe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||o2(e,n,">=");return(!t||o2(e,t,"<="))&&r},mB={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"},qrCodeColors:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(mB);const _i=(e,t)=>pLe(t==="latest"?"999.99.99":t,mB[e]),vB=e=>({excludeBotsOnShortUrls:_i("excludeBotsOnShortUrls",e),filterDisabledUrls:_i("filterDisabledUrls",e),deviceLongUrls:_i("deviceLongUrls",e),shortUrlVisitsDeletion:_i("shortUrlVisitsDeletion",e),orphanVisitsDeletion:_i("orphanVisitsDeletion",e),shortUrlRedirectRules:_i("shortUrlRedirectRules",e),qrCodeColors:_i("qrCodeColors",e),urlValidation:_i("urlValidation",e),ipRedirectCondition:_i("ipRedirectCondition",e),geolocationRedirectCondition:_i("geolocationRedirectCondition",e),filterShortUrlsByDomain:_i("filterShortUrlsByDomain",e)}),gB=N.createContext(vB("0.0.0")),mLe=gB.Provider,vLe=e=>N.useMemo(()=>vB(e),[e]),Mr=e=>N.useContext(gB)[e],Ou="DEFAULT",ev=({className:e="",placement:t,children:n})=>{const r=ci();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(je,{icon:lP})}),m.jsx(Dr,{target:r,placement:t,children:n})]})},yB=e=>t=>{t.preventDefault(),e()},hE=(e,t,n=1)=>HP(n,e+1).map(t),gLe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,ks=e=>e!=null&&!gLe(e),l_=e=>e||null,HO=e=>e?"true":"false",c_=e=>e===void 0?void 0:HO(e),u_=({isLast:e,...t})=>m.jsx(Zm,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),yLe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,c]=N.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[l,f]=N.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=N.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),v=yB(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:l_(s),regular404Redirect:l_(l),invalidShortUrlRedirect:l_(d)}}).then(t));return m.jsx(gr,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:v,children:[m.jsxs(po,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Ri,{children:[m.jsxs(u_,{value:s,onChange:c,children:[m.jsxs(ev,{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(u_,{value:l,onChange:f,children:[m.jsxs(ev,{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(u_,{value:d,isLast:!0,onChange:p,children:[m.jsx(ev,{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(Jo,{children:[m.jsx(qe,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"primary",children:"Save"})]})]})})},bLe=({domain:e,editDomainRedirects:t})=>{const[n,r]=Lt(),i=cs(),o=ab(),a=Mr("filterShortUrlsByDomain");return m.jsxs(o0,{children:[m.jsxs(ke,{tag:Pt,to:`${i}/domain/${e.domain}${e.isDefault?`_${Ou}`:""}/visits`,children:[m.jsx(je,{icon:sP,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(je,{icon:Zy,fixedWidth:!0})," Compare visits"]}),a&&m.jsxs(ke,{tag:Pt,to:`${i}/list-short-urls/1?domain=${e.isDefault?Ou:e.domain}`,children:[m.jsx(je,{icon:oP,fixedWidth:!0})," Short URLs"]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{onClick:r,children:[m.jsx(je,{icon:aP,fixedWidth:!0})," Edit redirects"]}),m.jsx(yLe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},_Le=(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 Uoe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},xLe=(e,t)=>{const[n,r]=N.useState(t),i=N.useCallback(o=>{const{location:a,history:s}=window,c=OD(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${i0(c)}`),r(o)},[e]);return[n,i]},pE=e=>{const t=ku();return N.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},wLe=()=>{const e=ho();return N.useCallback(()=>e(-1),[e])},mE=(e,t)=>{const n=N.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=N.useState(n());return N.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},OLe=(e,t,n)=>{N.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},SLe=({status:e,matchMedia:t=window.matchMedia})=>{const n=ci(),r=mE(991,t);return e==="validating"?m.jsx(je,{fixedWidth:!0,icon:zI,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(je,{fixedWidth:!0,icon:Ud,className:"text-muted"}):m.jsx(je,{fixedWidth:!0,icon:vx,className:"text-danger"})}),m.jsx(Dr,{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(pr,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},f_=({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)"})]})]}),PLe=()=>m.jsxs(m.Fragment,{children:[m.jsx(je,{fixedWidth:!0,icon:mq,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Dr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),CLe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return N.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(PLe,{})}),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(f_,{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(f_,{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(f_,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(SLe,{status:s})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(bLe,{domain:e,editDomainRedirects:t})})]})},sR=[{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}],ELe=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:o,defaultRedirects:a,loading:s,error:c,errorData:l}=e,f=a??((i=o.find(({isDefault:p})=>p))==null?void 0:i.redirects),d=fE();return s?m.jsx(zo,{loading:!0}):m.jsxs(uE,{value:d,children:[m.jsx(Jh,{className:"mb-3",onChange:t}),m.jsx(dE,{type:"domains",className:"mb-3"}),c?m.jsx(Xn,{type:"error",children:m.jsx(fo,{errorData:l,fallbackMessage:"Error loading domains :("})}):m.jsx(yt,{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:sR.map((p,v)=>m.jsx("th",{children:m.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},v))})}),m.jsxs("tbody",{children:[o.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:sR.length,className:"text-center",children:"No results found"})}),o.map(p=>m.jsx(CLe,{domain:p,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:f},p.domain))]})]})})]})},fn=(e,t)=>UD(e,t,{serializeError:n=>n}),TLe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",jLe=e=>fn(TLe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Pm="shlink/domainsList",Cm={domains:[],filteredDomains:[],loading:!1,error:!1},lR=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},cR=(e,t)=>n=>n.domain!==e?n:{...n,status:t},ALe=(e,t,n)=>{const r=fn(`${Pm}/listDomains`,async()=>{const{data:s,defaultRedirects:c}=await e().listDomains();return{domains:s.map(l=>({...l,status:"validating"})),defaultRedirects:c}}),i=fn(`${Pm}/checkDomainHealth`,async s=>{try{const{status:c}=await e().health(s);return{domain:s,status:c==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),o=Qn(`${Pm}/filterDomains`),{reducer:a}=Qt({name:Pm,initialState:Cm,reducers:{},extraReducers:s=>{s.addCase(r.pending,()=>({...Cm,loading:!0})),s.addCase(r.rejected,(c,{error:l})=>({...Cm,error:!0,errorData:Fr(l)})),s.addCase(r.fulfilled,(c,{payload:l})=>({...Cm,...l,filteredDomains:l.domains})),s.addCase(i.fulfilled,({domains:c,filteredDomains:l,...f},{payload:d})=>({...f,domains:c.map(cR(d.domain,d.status)),filteredDomains:l.map(cR(d.domain,d.status))})),s.addCase(o,(c,{payload:l})=>({...c,filteredDomains:c.domains.filter(({domain:f})=>f.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(c,{payload:l})=>({...c,domains:c.domains.map(lR(l)),filteredDomains:c.filteredDomains.map(lR(l))})),s.addCase(n.fulfilled,(c,{payload:l})=>{l.domain===null||c.domains.some(f=>f.domain===l.domain)||c.domains.push({domain:l.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:a,listDomains:r,checkDomainHealth:i,filterDomains:o}},kLe=(e,t)=>{e.serviceFactory("ManageDomains",()=>ELe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",ALe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",jLe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},uR="shlink/mercure",NLe={loading:!0,error:!1},MLe=e=>{const t=fn(`${uR}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Qt({name:uR,initialState:NLe,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}},LLe=e=>{e.serviceFactory("mercureInfoReducerCreator",MLe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Rt(e){return N.useRef(e).current}function $t(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const RLe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const c=({data:d})=>n(JSON.parse(d)),l=({status:d})=>d===401&&r(),f=t.map(d=>{const p=new URL(i);p.searchParams.append("topic",d);const v=new zoe.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return v.onmessage=c,v.onerror=l,v});return()=>f.forEach(d=>d.close())};function Fi(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Tu();return N.useEffect(()=>{const{interval:c}=a,l=v=>c?n.add(v):i([v]),f=t(s),d=RLe(a,f,l,o);if(!c)return d;const p=setInterval(()=>{i([...n]),n.clear()},c*1e3*60);return()=>{clearInterval(p),d==null||d()}},[i,o,a,s]),m.jsx(e,{...r})}}class er{}Ba(er,"visits","https://shlink.io/new-visit"),Ba(er,"orphanVisits","https://shlink.io/new-orphan-visit"),Ba(er,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const Zu=Qn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),bd=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,$Le=(e,t)=>!e.domain&&t===Ou?!0:e.domain===t,ILe=(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}},bB=e=>e.replaceAll("/","__"),vE=e=>e.replaceAll("__","/"),gE=({domain:e,shortCode:t})=>`${e??Ou}__${bB(t)}`,_B=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===Ou?null:t,shortCode:vE(n)}},yE="shlink/shortUrlDeletion",fR={shortCode:"",loading:!1,deleted:!1,error:!1},DLe=e=>fn(`${yE}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),xB=Qn(`${yE}/shortUrlDeleted`),FLe=e=>{const{actions:t,reducer:n}=Qt({name:yE,initialState:fR,reducers:{resetDeleteShortUrl:()=>fR},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Fr(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}},wB="shlink/shortUrlsList",OB=5,BLe={loading:!0,error:!1},ULe=e=>fn(`${wB}/listShortUrls`,t=>e().listShortUrls(t??{})),zLe=(e,t,n)=>Qt({name:wB,initialState:BLe,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,OB-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:c}=o;return bd(a,s,c)?o:a}))}),r.addCase(xB,(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(Zu,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:c})=>c&&bd(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),dR=10,{ceil:VLe}=Math,WLe=new Intl.NumberFormat("en-US"),Kt=e=>WLe.format(Number(e)),HLe=e=>VLe(e/dR)*dR,GO=({children:e,title:t,link:n,tooltip:r})=>{const i=ci();return m.jsxs(m.Fragment,{children:[m.jsxs(Ir,{innerRef:i,className:"highlight-card",body:!0,tag:Pt,to:n,children:[m.jsx(je,{size:"3x",className:"highlight-card__link-icon",icon:nae}),m.jsx(uD,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),m.jsx(cD,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&m.jsx(Dr,{target:i,placement:"bottom",children:r})]})},hR=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(GO,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:Kt(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Kt(t&&n.nonBots?n.nonBots:n.total)}),pR=({children:e,titleLinkText:t,titleLink:n,title:r})=>m.jsxs(Ir,{children:[m.jsxs(Zh,{className:"d-flex justify-content-between align-items-center",children:[m.jsx("span",{className:"d-sm-none",children:r}),m.jsx("h5",{className:"d-none d-sm-inline m-0",children:r}),m.jsxs(Pt,{to:n,children:[t," »"]})]}),m.jsx(Yh,{children:e})]}),SB=Fi(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=Rt(SB),{loading:s,shortUrls:c}=e,{loading:l}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,v=cs(),g=ho(),y=rr("visits");return N.useEffect(()=>{t({itemsPerPage:OB,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),m.jsxs(m.Fragment,{children:[m.jsxs(ei,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(hR,{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(hR,{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(GO,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:s?"Loading...":Kt((c==null?void 0:c.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(GO,{title:"Tags",link:`${v}/manage-tags`,children:l?"Loading...":Kt(n.tags.length)})})]}),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(pR,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${v}/create-short-url`,children:m.jsx(a,{basicMode:!0})}),m.jsx(pR,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${v}/list-short-urls/1`,children:m.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>g(`${v}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[er.visits,er.orphanVisits]),GLe=$t(SB,["ShortUrlsTable","CreateShortUrl"]);function KLe(e,t){e.factory("Overview",GLe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const PB="shlink/setShortUrlRedirectRules",mR={saving:!1,saved:!1,error:!1},qLe=e=>fn(`${PB}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),YLe=e=>{const{reducer:t,actions:n}=Qt({name:PB,initialState:mR,reducers:{resetSetRules:()=>mR},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:Fr(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},CB="shlink/getShortUrlRedirectRules",ZLe={loading:!0,error:!1},XLe=e=>fn(`${CB}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),QLe=e=>Qt({name:CB,initialState:ZLe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function JLe(e,t){var n=!1;return function(...r){n||(e.call(null,...r),n=!0,setTimeout(function(){n=!1},t))}}function EB(e){return e.split(" ").filter(t=>t)}var TB=typeof window<"u";function hl(e,t,n=!1){if(!t)return;const r=EB(t);if(r.length&&!r.includes("longTouch"))for(const i of e){if(!hp(i)||!ao.has(i)){i.classList.add(...r);continue}const o=[],a=ao.get(i);if(a){for(const s of r)i.classList.contains(s)?i.classList.contains(s)&&n===!1&&o.push(s):i.classList.add(s);a.privateClasses=o,ao.set(i,a)}}}function yy(e,t){if(!t)return;const n=EB(t);if(n.length)for(const r of e){if(!hp(r)){r.classList.remove(...n);continue}const i=ao.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function jB(e){let t=e.parentNode;for(;t!==null&&t.nodeType===1&&t instanceof HTMLElement;){const n=window.getComputedStyle(t).getPropertyValue("overflow");if(n==="scroll"||n==="auto")return t;t=t.parentNode}return document.documentElement}function eRe(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,n=e.e.touches[0].clientY;let r=document.elementFromPoint(t,n);if(!hp(r))return;let i,o=!0;for(;r&&o;){if(ao.has(r)||Ti.has(r)){o=!1,i=Ti.has(r);break}r=r.parentNode}if(i){const a=Ti.get(r);return a?{parent:{el:r,data:a}}:void 0}else{const a=ao.get(r);if(!a)return;const s=Ti.get(r.parentNode);return s?{node:{el:r,data:a},parent:{el:r.parentNode,data:s}}:void 0}}function hp(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function AB(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1})}return n}function kB(e,t,n=!1){const r=window.getComputedStyle(e),i=["position","z-index","top","left","x","pointer-events","y","transform-origin","filter","-webkit-text-fill-color"];for(const o of Array.from(r))n===!1&&o&&i.includes(o)||t.style.setProperty(o,r.getPropertyValue(o),r.getPropertyPriority(o));for(const o of Array.from(e.children)){if(!hp(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];kB(o,a,n)}}function wl(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var vR={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},ao=new WeakMap,Ti=new WeakMap,Ke=void 0;function tRe(){Ke=void 0}function NB(e){return Ke={ascendingDirection:!1,incomingDirection:void 0,enterCount:0,targetIndex:0,affectedNodes:[],lastValue:void 0,activeNode:void 0,lastTargetValue:void 0,remapJustFinished:!1,preventEnter:!1,clonedDraggedEls:[],swappedNodeValue:!1,originalZIndex:void 0,...e},Ke}function nRe(e,t){return Ke={...e,...t},Ke}function MB(e){const{x:t,y:n}=wl(e.e);return{coordinates:{x:t,y:n},draggedNode:{el:e.targetData.node.el,data:e.targetData.node.data},draggedNodes:[{el:e.targetData.node.el,data:e.targetData.node.data}],initialIndex:e.targetData.node.data.index,initialParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},lastParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},scrollParent:jB(e.targetData.node.el)}}function rRe(e,t){const n=LB(e),r=[...KO(t.targetData.parent.el,t.targetData.parent.data).filter(i=>!n.includes(i))];r.splice(t.targetData.node.data.index,0,...n),e.lastTargetValue=t.targetData.node.data.value,qO(t.targetData.parent.el,t.targetData.parent.data,[...r])}function KO(e,t){return[...t.getValues(e)]}function qO(e,t,n){t.setValues(n,e)}function LB(e){return[...e.draggedNodes.map(t=>t.data.value)]}function iRe({parent:e,getValues:t,setValues:n,config:r={}}){var i,o;if(!TB)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),Ke){Ke.remapJustFinished=!1,Ke.lastTargetValue=void 0;const{x:c,y:l}=wl(s);Ke.coordinates.y=l,Ke.coordinates.x=c,sb()}}),RB(e);const a={getValues:t,setValues:n,config:{handleDragstart:lRe,handleDragoverNode:LRe,handleDragoverParent:RRe,handleEnd:yRe,handleTouchstart:_Re,handleTouchmove:SRe,handleTouchOverNode:hRe,handleTouchOverParent:$Re,performSort:rRe,performTransfer:BRe,root:document,setupNode:pRe,setupNodeRemap:DB,reapplyDragClasses:mRe,tearDownNode:gRe,tearDownNodeRemap:vRe,remapFinished:sRe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{}};oRe(e,a),(i=r.plugins)==null||i.forEach(s=>{var c,l;(l=(c=s(e))==null?void 0:c.tearDown)==null||l.call(c)}),(o=r.plugins)==null||o.forEach(s=>{var c,l;(l=(c=s(e))==null?void 0:c.setup)==null||l.call(c)}),$B(e,!0)}function RB(e){const t=Ti.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function oRe(e,t){new MutationObserver(aRe).observe(e,{childList:!0}),Ti.set(e,t),t.abortControllers.mainParent=AB(e,{dragover:URe(JLe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function aRe(e){const t=e[0].target;t instanceof HTMLElement&&$B(t)}function $B(e,t){const n=Ti.get(e);if(!n)return;const r=[],i=n.config;for(let s=0;s<e.children.length;s++){const c=e.children[s];if(!hp(c))continue;const l=ao.get(c);(t||!l)&&i.tearDownNode({node:c,parent:e,nodeData:l,parentData:n}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(c))&&r.push(c)}if(r.length!==n.getValues(e).length&&!i.disabled){console.warn("The number of enabled nodes does not match the number of values.");return}const o=n.getValues(e),a=[];for(let s=0;s<r.length;s++){const c=r[s],l=ao.get(c),f=Object.assign(l??{privateClasses:[],abortControllers:{}},{value:o[s],index:s});if(Ke&&f.value===Ke.draggedNode.data.value&&(Ke.draggedNode.data=f,Ke.draggedNode.el=c),Ke&&Ke.draggedNodes.map(p=>p.data.value).includes(f.value)){const p=Ke.draggedNodes.find(v=>v.data.value===f.value);p&&(p.el=c)}a.push({el:c,data:f});const d={node:c,parent:e,parentData:n,nodeData:f};(t||!l)&&i.setupNode(d),DB(d)}Ti.set(e,{...n,enabledNodes:a}),i.remapFinished(n)}function sRe(){Ke&&(Ke.preventEnter=!1,Ke.swappedNodeValue=void 0,Ke.remapJustFinished=!0)}function lRe(e){e.e instanceof DragEvent&&dRe({e:e.e,targetData:e.targetData})}function cRe(e,t,n){hl([e],t),setTimeout(()=>{yy([e],t),hl([e],n)})}function uRe(e){const t=NB(MB(e));return e.e.stopPropagation(),e.e.dataTransfer&&(e.e.dataTransfer.dropEffect="move",e.e.dataTransfer.effectAllowed="move",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY)),t}function IB(e){if(!(e.e instanceof DragEvent)&&!(e.e instanceof TouchEvent))return!1;const t=e.targetData.parent.data.config;if(!t.dragHandle)return!0;const n=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!n)return!1;const r=wl(e.e),i=t.root.elementFromPoint(r.x,r.y);if(!i)return!1;for(const o of Array.from(n))if(i===o||o.contains(i))return!0;return!1}function fRe(e){if(!IB(e))return;const t=xRe(e);wRe(e,t),ORe(e,t)}function dRe(e){if(!IB(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,n=uRe(e),r=e.targetData.node.el.style.zIndex;n.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",cRe(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function hRe(e){Ke&&(e.detail.targetData.parent.el===Ke.lastParent.el?UB(e.detail,Ke):lb(e.detail,Ke))}function pRe(e){var t;const n=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=AB(e.node,{dragstart:Wl(n.handleDragstart),dragover:Wl(n.handleDragoverNode),dragend:Wl(n.handleEnd),touchstart:Wl(n.handleTouchstart),touchmove:Wl(n.handleTouchmove),touchend:Wl(n.handleEnd),touchOverNode:n.handleTouchOverNode}),n.reapplyDragClasses(e.node,e.parentData),(t=e.parentData.config.plugins)==null||t.forEach(r=>{var i,o;(o=(i=r(e.parent))==null?void 0:i.setupNode)==null||o.call(i,e)})}function DB(e){var t;ao.set(e.node,e.nodeData),(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function mRe(e,t){if(!Ke)return;const n="touchedNode"in Ke?t.config.touchDropZoneClass:t.config.dropZoneClass;Ke.draggedNode.el===e&&hl([e],n,!0)}function vRe(e){var t;(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function gRe(e){var t,n,r,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,c;(c=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||c.call(s,e)}),e.node.draggable=!1,(r=(n=e.nodeData)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((o=(i=e.nodeData)==null?void 0:i.abortControllers)==null||o.mainNode.abort())}function yRe(e){Ke&&(bRe(e,Ke),tRe())}function bRe(e,t){var n,r,i,o;document.removeEventListener("contextmenu",FB),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(n=Ti.get(t.initialParent.el))==null?void 0:n.config,s="touchedNode"in t?a==null?void 0:a.touchDropZoneClass:a==null?void 0:a.dropZoneClass;t.originalZIndex!==void 0&&(t.draggedNode.el.style.zIndex=t.originalZIndex),hl(t.draggedNodes.map(c=>c.el),s,!0),yy(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&yy(t.draggedNodes.map(c=>c.el),(i=(r=t.initialParent.data)==null?void 0:r.config)==null?void 0:i.longTouchClass),"touchedNode"in t&&((o=t.touchedNode)==null||o.remove())}function _Re(e){e.e instanceof TouchEvent&&fRe({e:e.e,targetData:e.targetData})}function xRe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return nRe(NB(MB(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:jB(e.targetData.node.el),touchStartLeft:e.e.touches[0].clientX-n.left,touchStartTop:e.e.touches[0].clientY-n.top,touchedNode:t,touchMoving:!1})}function FB(e){e.preventDefault()}function wRe(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const n=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=`
|
||
width: ${n.width}px;
|
||
position: fixed;
|
||
pointer-events: none;
|
||
top: -9999px;
|
||
z-index: 999999;
|
||
display: none;
|
||
`,document.body.append(t.touchedNode),kB(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",FB)}function ORe(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,n.longTouchClass&&e.e.cancelable&&hl(t.draggedNodes.map(r=>r.el),n.longTouchClass),e.e.preventDefault())},n.longTouchTimeout||200))}function SRe(e){!Ke||!("touchedNode"in Ke)||MRe(e,Ke)}function PRe(e,t){t.longTouchClass&&yy(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&hl([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&hl(e.draggedNodes.map(n=>n.el),t.touchDropZoneClass)}function CRe(e){if(!e||!e.scrollParent)return;const{x:t,y:n,width:r,height:i}=e.scrollParent.getBoundingClientRect(),{x:o,y:a,scrollOutside:s}=e.lastParent.data.config.scrollBehavior;return{state:e,xThresh:o,yThresh:a,scrollOutside:s,scrollParent:e.scrollParent,x:t,y:n,width:r,height:i}}function ERe(e){const t=CRe(Ke);if(t)switch(e){case"down":return kRe(t.state,t);case"up":return ARe(t.state,t);case"right":return TRe(t.state,t);case"left":return jRe(t.state,t)}}function TRe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n<0)&&n<(1-t.xThresh)*t.scrollParent.clientWidth&&!(t.scrollParent.scrollLeft+t.scrollParent.clientWidth>=t.scrollParent.scrollWidth))return e}function jRe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n>t.scrollParent.clientWidth)&&n>t.xThresh*t.scrollParent.clientWidth&&t.scrollParent.scrollLeft!==0)return e}function ARe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n>t.scrollParent.clientHeight)&&n>t.yThresh*t.scrollParent.clientHeight&&t.scrollParent.scrollTop!==0)return e}function kRe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n<0)&&n<(1-t.yThresh)*t.scrollParent.clientHeight&&!(t.scrollParent.scrollTop+t.scrollParent.clientHeight>=t.scrollParent.scrollHeight))return e}function NRe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:n,y:r}=wl(e.e);t.coordinates.y=r,t.coordinates.x=n;const i=t.touchStartLeft??0,o=t.touchStartTop??0;t.touchedNode.style.left=`${n-i}px`,t.touchedNode.style.top=`${r-o}px`,PRe(t,e.targetData.parent.data.config)}function MRe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),NRe(e,t),sb();const n=eRe(e);if(!n)return;const r={e:e.e,targetData:n};"node"in n?n.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:r})):n.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:r}))}function sb(){for(const e of Object.keys(vR)){const[t,n]=vR[e];BB(e,t,n)}}function BB(e,t,n){const r=ERe(e);r&&(r.scrollParent.scrollBy(t,n),setTimeout(()=>{BB(e,t,n)},"touchedNode"in r?10:100))}function LRe(e){if(!Ke)return;const{x:t,y:n}=wl(e.e);Ke.coordinates.y=n,Ke.coordinates.x=t,sb(),DRe(e,Ke)}function RRe(e){if(!Ke)return;const{x:t,y:n}=wl(e.e);Ke.coordinates.y=n,Ke.coordinates.x=t,sb(),lb(e,Ke)}function $Re(e){Ke&&lb(e.detail,Ke)}function IRe(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const n=e.targetData.parent.data.config;if(n.dropZone===!1)return!1;const r=t.initialParent.data.config;return n.accepts?n.accepts(e.targetData.parent,t.initialParent,t.lastParent,t):!(!n.group||n.group!==r.group)}function DRe(e,t){var n;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((n=t.lastParent)==null?void 0:n.el)?UB(e,t):lb(e,t)}function FRe(e,t,n,r){var i;if(t.remapJustFinished)return t.remapJustFinished=!1,t.lastTargetValue=e.targetData.node.data.value,!1;if(t.lastTargetValue===e.targetData.node.data.value||t.draggedNodes.map(p=>p.el).includes(e.targetData.node.el)||t.preventEnter||t.swappedNodeValue===e.targetData.node.data.value||e.targetData.parent.el!==((i=t.lastParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1)return!1;const o=e.targetData.node.el.getBoundingClientRect(),a=t.draggedNode.el.getBoundingClientRect(),s=o.y-a.y,c=o.x-a.x;let l;const f=t.draggedNode.data.index>e.targetData.node.data.index?[e.targetData.node.data.index,t.draggedNode.data.index]:[t.draggedNode.data.index,e.targetData.node.data.index];t.targetIndex=e.targetData.node.data.index,t.affectedNodes=e.targetData.parent.data.enabledNodes.filter(p=>f[0]<=p.data.index&&p.data.index<=f[1]&&p.el!==t.draggedNode.el),Math.abs(s)>Math.abs(c)?l=s>0?"above":"below":l=c>0?"left":"right";const d=t.lastParent.data.config.threshold;switch(l){case"left":if(n>o.x+o.width*d.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<o.x+o.width*(1-d.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>o.y+o.height*d.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<o.y+o.height*(1-d.vertical))return t.incomingDirection="below",!0;break}return!1}function UB(e,t){const{x:n,y:r}=wl(e.e);FRe(e,t,n,r)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function Wl(e){function t(n){var r;const i=ao.get(n),o=n.parentNode||((r=Ke==null?void 0:Ke.lastParent)==null?void 0:r.el);if(!i)return;const a=Ti.get(o);if(a)return{node:{el:n,data:i},parent:{el:o,data:a}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function BRe(e,t){const n=LB(e),r=KO(e.lastParent.el,e.lastParent.data).filter(s=>!n.includes(s)),i=KO(t.targetData.parent.el,t.targetData.parent.data),o=e.initialParent.el===t.targetData.parent.el&&t.targetData.parent.data.config.sortable===!1;let a;"node"in t.targetData?(o?a=e.initialIndex:t.targetData.parent.data.config.sortable===!1?a=t.targetData.parent.data.enabledNodes.length:a=t.targetData.node.data.index,i.splice(a,0,...n)):(a=o?e.initialIndex:t.targetData.parent.data.enabledNodes.length,i.splice(a,0,...n)),qO(e.lastParent.el,e.lastParent.data,r),qO(t.targetData.parent.el,t.targetData.parent.data,i)}function lb(e,t){IRe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function URe(e){function t(n){const r=Ti.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function zRe(e){if(e instanceof HTMLElement)return e;if("current"in e&&e.current instanceof HTMLElement)return e.current;console.warn("Invalid parent element",e)}function VRe(e,t){const n=zRe(e);n&&t(n)}var by=new WeakMap;function WRe(e){const t=by.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function HRe(e,t){const n=by.get(t);n&&n[1](e),by.set(t,[e,n[1]])}function GRe(e,t){return n=>{by.set(n,t),iRe({parent:n,getValues:WRe,setValues:HRe,config:e})}}function gR(e){TB&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;VRe(n,GRe(i,r))}))}function KRe(e,t={}){const n=N.useRef(null),[r,i]=N.useState(e);function o(a={}){gR({parent:n,state:[r,i],...a})}return N.useEffect(()=>{gR({parent:n,state:[r,i],...t})},[r]),N.useEffect(()=>()=>{n.current&&RB(n.current)},[]),[n,r,i,o]}const cb=()=>{const e=ho(),t=cs(),n=ku(),r=N.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:l,...f}=n,d=o?_ie(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:c!==void 0?c==="true":void 0,excludePastValidUntil:l!==void 0?l==="true":void 0}},[n]),i=N.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:c,excludeBots:l,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,v={...p,orderBy:s&&bie(s),tags:c.length>0?c.join(","):void 0,excludeBots:c_(l),excludeMaxVisitsReached:c_(f),excludePastValidUntil:c_(d)},g=i0(v),y=g?`?${g}`:"";e(`${t}/list-short-urls/1${y}`)},[r,e,t]);return[r,i]},bE=()=>{const{domain:e}=ku(),{shortCode:t=""}=Tu();return N.useMemo(()=>({shortCode:vE(t),domain:e}),[e,t])},ub=()=>{const e=wLe();return m.jsx(qe,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:m.jsx(je,{icon:Tq})})},qRe={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},YRe={android:"Android",ios:"iOS",desktop:"Desktop"},ZRe=({deviceType:e,onDeviceTypeChange:t})=>{const n=N.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(YRe).map(([r,i])=>m.jsx("option",{value:r,children:i},r))]})]})},_E=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=N.useId();return m.jsxs("div",{children:[m.jsxs("label",{htmlFor:i,children:[n,":"]}),m.jsx(yn,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:r,required:!0})]})},XRe=({language:e,onLanguageChange:t})=>m.jsx(_E,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),QRe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=N.useId(),o=N.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:i,children:"Param name:"}),m.jsx(yn,{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(yn,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},JRe=({ipAddress:e,onIpAddressChange:t})=>m.jsx(_E,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),e4e=({countryCode:e,onCountryCodeChange:t})=>{const n=N.useId();return m.jsxs("div",{children:[m.jsx("label",{htmlFor:n,children:"Country:"}),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 country -"}),Object.entries(qRe).map(([r,i])=>m.jsx("option",{value:r,children:i},r))]})]})},t4e=({cityName:e,onCityNameChange:t})=>m.jsx(_E,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),n4e=({condition:e,onConditionChange:t,onDelete:n})=>{const r=N.useId(),i=N.useCallback(f=>t({type:f,matchValue:"",matchKey:null}),[t]),o=N.useCallback(f=>t({...e,matchValue:f}),[e,t]),a=N.useCallback(f=>t({...e,matchKey:f}),[e,t]),s=Mr("ipRedirectCondition"),c=Mr("geolocationRedirectCondition"),l=N.useMemo(()=>{const f={device:"Device type",language:"Language","query-param":"Query param"};return s&&(f["ip-address"]="IP address"),c&&(f["geolocation-country-code"]="Country (geolocation)",f["geolocation-city-name"]="City name (geolocation)"),f},[c,s]);return m.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[m.jsxs("div",{children:[m.jsx(qe,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:n,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:m.jsx(je,{icon:HI,className:"redirect-rule-modal__remove-condition-button-icon"})}),m.jsx("label",{htmlFor:r,children:"Type:"}),m.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:f=>i(f.target.value),children:Object.entries(l).map(([f,d])=>m.jsx("option",{value:f,children:d},f))})]}),e.type==="device"&&m.jsx(ZRe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&m.jsx(XRe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&m.jsx(QRe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&m.jsx(JRe,{ipAddress:e.matchValue,onIpAddressChange:o}),e.type==="geolocation-country-code"&&m.jsx(e4e,{countryCode:e.matchValue,onCountryCodeChange:o}),e.type==="geolocation-city-name"&&m.jsx(t4e,{cityName:e.matchValue,onCityNameChange:o})]})},zB=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=N.useState(r??{longUrl:"",conditions:[]}),a=N.useCallback(v=>{v.preventDefault(),v.stopPropagation(),i&&n(i),t()},[n,i,t]),s=N.useCallback(()=>o(({longUrl:v,conditions:g})=>({longUrl:v,conditions:[...g,{type:"device",matchValue:"",matchKey:null}]})),[]),c=N.useCallback((v,g)=>o(({longUrl:y,conditions:x})=>{const b=[...x];return b[v]=g,{longUrl:y,conditions:b}}),[]),l=N.useCallback(v=>o(({longUrl:g,conditions:y})=>{const x=[...y];return x.splice(v,1),{longUrl:g,conditions:x}}),[]),f=ci(),d=N.useCallback(()=>{var v;return(v=f==null?void 0:f.current)==null?void 0:v.focus()},[f]),p=N.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return m.jsx(gr,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:d,onClosed:p,children:m.jsxs("form",{onSubmit:a,children:[m.jsx(po,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),m.jsxs(Ri,{children:[m.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),m.jsx(yn,{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(qe,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:m.jsx(je,{icon:Wh})})]}),i.conditions.length===0&&m.jsx("div",{className:"text-center",children:m.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&m.jsx(ei,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((v,g)=>m.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:m.jsx(n4e,{condition:v,onConditionChange:y=>c(g,y),onDelete:()=>l(g)})},`${g}_${v.type}`))})]}),m.jsxs(Jo,{className:"sticky-bottom redirect-rule-modal__footer",children:[m.jsx(qe,{type:"button",color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},r4e=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=Lt();return m.jsxs(yt,{children:[m.jsxs("div",{className:"d-flex align-content-center gap-3",children:[m.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:m.jsx(je,{icon:Lq})}),m.jsxs("div",{className:"d-flex flex-column my-auto",children:[m.jsx(qe,{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(je,{icon:Yq})}),m.jsx(qe,{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(je,{icon:Wq})})]}),m.jsxs("div",{className:"flex-grow-1",children:[m.jsxs("div",{className:"mb-2",children:[m.jsx("b",{children:"Long URL:"})," ",m.jsx(pr,{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((l,f)=>m.jsxs("div",{className:"badge bg-secondary",children:[l.type==="device"&&m.jsxs(m.Fragment,{children:["Device is ",l.matchValue]}),l.type==="language"&&m.jsxs(m.Fragment,{children:[l.matchValue," language is accepted"]}),l.type==="query-param"&&m.jsxs(m.Fragment,{children:["Query string contains ",l.matchKey,"=",l.matchValue]}),l.type==="ip-address"&&m.jsxs(m.Fragment,{children:["IP address matches ",l.matchValue]}),l.type==="geolocation-country-code"&&m.jsxs(m.Fragment,{children:["Country code is ",l.matchValue]}),l.type==="geolocation-city-name"&&m.jsxs(m.Fragment,{children:["City name is ",l.matchValue]})]},`${l.type}_${f}`))]})]}),m.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[m.jsx(qe,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:c,children:m.jsx(je,{icon:UI})}),m.jsx(qe,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:m.jsx(je,{icon:aq})})]})]}),m.jsx(zB,{onSave:a,isOpen:s,toggle:c,initialData:n})]})},i4e=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=bE(),{shortUrls:c}=r,l=s&&(c==null?void 0:c.get(s)),[f,d,p]=KRe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:v,saved:g,errorData:y}=o,[x,b]=Lt(),_=N.useCallback($=>p((M=[])=>[...M,$]),[p]),w=N.useCallback($=>p((M=[])=>{const I=[...M];return I.splice($,1),I}),[p]),S=N.useCallback(($,M)=>p((I=[])=>{const F=[...I];return F[$]=M,F}),[p]),C=N.useCallback(($,M)=>p((I=[])=>{if(!I[M])return I;const F=[...I],q=F[M];return F[M]=F[$],F[$]=q,F}),[p]),P=N.useCallback($=>C($,$-1),[C]),T=N.useCallback($=>C($,$+1),[C]),j=N.useCallback($=>{$.preventDefault(),d&&i({shortUrl:s,data:{redirectRules:d}})},[s,d,i]);return N.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),N.useEffect(()=>{e.redirectRules&&p(e.redirectRules)},[p,e.redirectRules]),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx("header",{children:m.jsxs(Ir,{body:!0,children:[m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(ub,{}),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(pr,{href:(l==null?void 0:l.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(pr,{href:e.defaultLongUrl??""})]})]})}),m.jsx("div",{children:m.jsxs(qe,{outline:!0,color:"primary",onClick:b,children:[m.jsx(je,{icon:Wh,className:"me-1"})," Add rule"]})}),m.jsxs("form",{onSubmit:j,children:[e.loading&&m.jsx(zo,{loading:!0}),d.length===0&&!e.loading&&m.jsx(yt,{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",ref:f,children:d.map(($,M)=>m.jsx(r4e,{redirectRule:$,priority:M+1,isLast:M===d.length-1,onDelete:()=>w(M),onMoveUp:()=>P(M),onMoveDown:()=>T(M),onUpdate:I=>S(M,I)},`${$.longUrl}_${M}`))}),m.jsx("div",{className:"text-center mt-3",children:m.jsx(qe,{outline:!0,color:"primary",className:"btn-sm-block",disabled:v,"data-testid":"save-button",children:v?"Saving...":"Save rules"})})]}),y&&m.jsx(Xn,{type:"error",children:m.jsx(fo,{errorData:y,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),g&&m.jsx(Xn,{type:"success",children:"Redirect rules properly saved."}),m.jsx(zB,{isOpen:x,toggle:b,onSave:_})]})},o4e=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>i4e),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",XLe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",qLe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",QLe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",YLe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},a4e=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}),VB=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=Rt(VB),a=rr("shortUrlCreation"),s=N.useMemo(()=>a4e(a),[a]);return m.jsxs(m.Fragment,{children:[m.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async c=>(n(),e(c))}),m.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},s4e=$t(VB,["ShortUrlForm","CreateShortUrlResult"]),WB=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Rt(WB),o=bE(),{loading:a,error:s,errorData:c,shortUrls:l}=e,f=o&&(l==null?void 0:l.get(o)),{saving:d,saved:p,error:v,errorData:g}=n,y=rr("shortUrlCreation"),x=N.useMemo(()=>ILe(f,y),[f,y]);return N.useEffect(()=>{o&&t([o])},[t,o]),a?m.jsx(zo,{loading:!0}):s?m.jsx(Xn,{type:"error",children:m.jsx(fo,{errorData:c,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(Ir,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(ub,{}),m.jsx("div",{className:"text-center flex-grow-1",children:m.jsxs("small",{children:["Edit ",m.jsx(pr,{href:(f==null?void 0:f.shortUrl)??""})]})})]})})}),m.jsx(i,{initialState:x,saving:d,onSave:async b=>{f&&r({...f,data:b})}}),p&&v&&m.jsx(Xn,{type:"error",className:"mt-3",children:m.jsx(fo,{errorData:g,fallbackMessage:"An error occurred while updating short URL :("})}),p&&!v&&m.jsx(Xn,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},l4e=$t(WB,["ShortUrlForm"]),HB=({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))},GB=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=Rt(GB),[i,o]=r(),{error:a,saved:s}=e;if(N.useEffect(()=>{t()},[t]),a)return m.jsxs(Xn,{type:"error",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"error-close-button",icon:vx,className:"float-end pointer",onClick:t}),m.jsx(fo,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return m.jsxs(Xn,{type:"success",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"success-close-button",icon:vx,className:"float-end pointer",onClick:t}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:c})]}),m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>HB({text:c,onCopy:o}),children:[m.jsx(je,{icon:ZD})," Copy ",m.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),m.jsx(r0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},c4e=$t(GB,["useTimeoutToggle"]),d_="delete",u4e=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=N.useState("");N.useEffect(()=>i,[i]);const{loading:l,error:f,deleted:d,errorData:p}=r,v=N.useCallback(()=>{i(),t()},[i,t]),g=N.useCallback(y=>(y.preventDefault(),o(e).then(x=>!cE(x)&&t())),[o,e,t]);return m.jsx(gr,{isOpen:n,toggle:v,centered:!0,onClosed:()=>d&&a(e),children:m.jsxs("form",{onSubmit:g,children:[m.jsx(po,{toggle:v,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(Ri,{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:d_})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${d_}`,value:s,onChange:y=>c(y.target.value)}),f&&m.jsx(Xn,{type:uLe(p)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(fo,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(Jo,{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!==d_||l,children:l?"Deleting...":"Delete"})]})]})})},KB=({amount:e=0,loading:t=!1,...n})=>m.jsxs(qe,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(je,{icon:fq})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",Kt(e),")"]})]}),yR=20,qB=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Rt(qB),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=cb(),[l,,f,d]=Lt(),p=N.useCallback(async()=>{const v=e/yR,g=async(x=1)=>{const{data:b}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:yR});return x>=v?b:b.concat(await g(x+1))};f();const y=await g();n.exportShortUrls(y.map(x=>{var b;const{hostname:_,pathname:w}=new URL(x.shortUrl),S=w.substring(1);return{createdAt:x.dateCreated,domain:_,shortCode:S,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((b=x==null?void 0:x.visitsSummary)==null?void 0:b.total)??x.visitsCount??0}})),d()},[e,t,a,s,n,i,o,f,d,r,c]);return m.jsx(KB,{loading:l,className:"btn-md-block",amount:e,onClick:p})},f4e=$t(qB,["apiClientFactory","ReportExporter"]),YB=({text:e,onCopy:t,copyToClipboard:n=HB})=>m.jsx(dl,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:m.jsx(je,{icon:ZD,className:"fs-5"})}),bR=e=>e&&e.startsWith("#")?e.substring(1):e,d4e=(e,{color:t,bgColor:n,...r})=>{const i=`${e}/qr-code`,o=i0({...r,color:bR(t),bgColor:bR(n)});return`${i}${o?`?${o}`:""}`},h4e=6,_R="0123456789ABCDEF",p4e=128;function m4e(){return`#${hE(h4e,()=>_R[Math.floor(Math.random()*_R.length)]).join("")}`}function v4e(e,t,n){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*n**2))}function ZB(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return v4e(t,n,r)>=p4e}const XB=N.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>m.jsxs("div",{className:Oe("p-0 position-relative",r),style:{backgroundColor:t,borderColor:t},children:[m.jsx(je,{icon:Sq,className:"position-absolute top-50 start-50 translate-middle",style:{color:ZB(t.substring(1))?"#000":"fff"}}),m.jsx(yn,{className:"form-control-color opacity-0",type:"color",value:t,onChange:o=>n(o.target.value),innerRef:i,name:e,"aria-label":e})]})),g4e=({color:e,onChange:t,name:n})=>{const r=ci();return m.jsxs(Xh,{children:[m.jsx(XB,{name:n,color:e,onChange:t,className:"input-group-text",ref:r}),m.jsx(yn,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input"})]})},_y=({label:e,...t})=>m.jsx(qe,{outline:!0,color:"link",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},"aria-label":e,title:e,...t}),xR=({name:e,color:t,initialColor:n,onChange:r})=>m.jsx(m.Fragment,{children:t===void 0?m.jsx(_y,{className:"text-start fst-italic w-100",onClick:()=>r(n),children:m.jsxs("span",{className:"indivisible",children:["Customize ",e]})}):m.jsxs("div",{className:"d-flex gap-1 w-100",children:[m.jsx(g4e,{color:t,onChange:r,name:e}),m.jsx(_y,{label:`Default ${e}`,onClick:()=>r(void 0),children:m.jsx(je,{icon:cP})})]})}),wR=({name:e,value:t,step:n,min:r,max:i,onChange:o,initial:a=r})=>{const s=N.useId();return m.jsx(m.Fragment,{children:t===void 0?m.jsxs(_y,{className:"text-start fst-italic w-100",onClick:()=>o(a),children:["Customize ",e]}):m.jsxs("div",{className:"d-flex gap-1 w-100",children:[m.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[m.jsxs("label",{htmlFor:s,className:"text-capitalize",children:[e,": ",t,"px"]}),m.jsx("input",{id:s,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:c=>o(Number(c.target.value))})]}),m.jsx(_y,{label:`Default ${e}`,onClick:()=>o(void 0),children:m.jsx(je,{icon:cP})})]})})},y4e=({errorCorrection:e,onChange:t})=>m.jsxs(ea,{text:e?`Error correction (${e})`:m.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[m.jsx(ke,{active:!e,onClick:()=>t(void 0),children:"Default"}),m.jsx(ke,{divider:!0,tag:"hr"}),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"]})]}),b4e=({format:e,onChange:t})=>m.jsxs(ea,{text:e?`Format (${e})`:m.jsx("i",{children:"Default format"}),dropdownClassName:"w-100",children:[m.jsx(ke,{active:!e,onClick:()=>t(void 0),children:"Default"}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(ke,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),QB=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=Rt(QB),[o,a]=N.useState(),[s,c]=N.useState(),[l,f]=N.useState(),[d,p]=N.useState(),[v,g]=N.useState(),[y,x]=N.useState(),b=Mr("qrCodeColors"),_=N.useMemo(()=>d4e(e,{size:o,format:l,margin:s,errorCorrection:d,color:v,bgColor:y}),[e,o,l,s,d,v,y]);return m.jsxs(gr,{isOpen:r,toggle:n,centered:!0,size:"lg",children:[m.jsxs(po,{toggle:n,children:["QR code for ",m.jsx(pr,{href:e,children:e})]}),m.jsxs(Ri,{className:"d-flex flex-column-reverse flex-lg-row gap-3",children:[m.jsx("div",{className:"flex-grow-1 d-flex align-items-center justify-content-around text-center",children:m.jsx("img",{src:_,alt:"QR code",className:"shadow",style:{maxWidth:"100%"}})}),m.jsxs("div",{className:"d-flex flex-column gap-2 qr-code-modal__controls",children:[m.jsx(wR,{name:"size",value:o,onChange:a,step:10,min:50,max:1e3,initial:300}),m.jsx(wR,{name:"margin",value:s,onChange:c,step:1,min:0,max:100}),m.jsx(b4e,{format:l,onChange:f}),m.jsx(y4e,{errorCorrection:d,onChange:p}),b&&m.jsxs(m.Fragment,{children:[m.jsx(xR,{name:"color",initialColor:"#000000",color:v,onChange:g}),m.jsx(xR,{name:"background",initialColor:"#ffffff",color:y,onChange:x})]}),m.jsx("div",{className:"mt-auto",children:m.jsxs(qe,{block:!0,color:"primary",onClick:()=>{i.saveImage(_,`${t}-qr-code.${l??"png"}`).catch(()=>{})},children:["Download ",m.jsx(je,{icon:WI,className:"ms-1"})]})})]})]}),m.jsx(Jo,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:m.jsxs("div",{className:"text-center",children:[m.jsx(pr,{href:_}),m.jsx(YB,{text:_})]})})]})},_4e=$t(QB,["ImageDownloader"]),x4e="yyyy-MM-dd",JB="yyyy-MM-dd HH:mm",Ya=()=>new Date,xE=e=>typeof e!="string",wE=(e,t)=>!e||!xE(e)?e:t?ug(e,t):_se(e),Za=e=>wE(e,void 0),Ca=e=>wE(e,x4e),$h=e=>wE(e,JB),Cr=e=>xE(e)?e:Ga(e),pp=(e,t,n)=>{const r=Cr(e),i=t&&Cr(t),o=n&&Cr(n);if(i&&o)try{return Ose(r,{start:i,end:o})}catch{return!1}return i?l2(r,i)||wse(r,i):o?l2(r,o)||fg(r,o):!0},bs=(e,t)=>l2(e,t)||fg(e,t),xy=({date:e,format:t=JB,relative:n=!1})=>{const r=xE(e)?e:Ga(e);return m.jsx("time",{dateTime:`${xse(r)}000`,children:n?`${bse(Ya(),r)} ago`:ug(r,t)})},w4e=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${bB(t)}/${r}${i}`},_d=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=cs();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(Pt,{to:w4e(o,e,t),...i,children:r})},O4e=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:rY,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&&fg(Cr(a),Ya())?{icon:aA,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:$h(Cr(a))}),"."]})}:o&&fg(Ya(),Cr(o))?{icon:aA,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:$h(Cr(o))}),"."]})}:{icon:Ud,className:"text-primary",description:"This short URL can be visited normally."}},S4e=({shortUrl:e})=>{const t=ci(),{icon:n,className:r,description:i}=O4e(e);return m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:m.jsx(je,{icon:n,className:r})}),m.jsx(Dr,{target:t,placement:"bottom",children:i})]})},eU=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=ci(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,l=m.jsx(_d,{shortUrl:t,suffix:"visits",asLink:r,children:m.jsx("strong",{className:Oe("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Kt(e)})});return c?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[l,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&m.jsxs(m.Fragment,{children:[" / ",Kt(o)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(je,{icon:lP})})]})]}),m.jsx(Dr,{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:Kt(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:$h(Cr(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:$h(Cr(s))}),"."]})]})})]}):l},P4e=e=>!!e.onClose,C4e=e=>!!e.onClick,fb=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=C4e(e),a=o?dl:"span",s=N.useMemo(()=>i.stylesForKey(t),[t,i]);return m.jsxs(a,{className:Oe("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,P4e(e)&&m.jsx(dl,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},E4e=({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(fb,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),tU=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=Rt(tU),[l,f]=c(),[d,p]=c(!1,500),v=N.useRef(!0),[{excludeBots:g}]=cb(),y=rr("visits"),x=g??(y==null?void 0:y.excludeBots);return N.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(xy,{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(pr,{href:e.shortUrl})}),m.jsx(YB,{text:e.shortUrl,onCopy:f}),m.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!l,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(pr,{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(pr,{href:e.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(E4e,{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(eU,{visitsCount:(x?(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.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(S4e,{shortUrl:e}),e.hasRedirectRules&&m.jsx(_d,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:m.jsx(je,{icon:KI})})]})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(a,{shortUrl:e})})]})},T4e=$t(tU,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),nU=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r,QrCodeModal:i}=Rt(nU),[o,,a,s]=Lt(),[c,,l,f]=Lt(),d=ab(),p=Mr("shortUrlRedirectRules"),{confirmDeletions:v=!0}=rr("shortUrlsList",{}),g=N.useCallback(async()=>{const y=await t(e);cE(y)||n(e)},[t,e,n]);return m.jsxs(o0,{minWidth:p?220:190,children:[m.jsxs(ke,{tag:_d,shortUrl:e,suffix:"visits",asLink:!0,children:[m.jsx(je,{icon:sP,fixedWidth:!0})," Visit stats"]}),d&&m.jsxs(m.Fragment,{children:[m.jsxs(ke,{disabled:!d.canAddItemWithName(e.shortUrl),onClick:()=>d.addItemToCompare({name:e.shortUrl,query:gE(e)}),children:[m.jsx(je,{icon:Zy,fixedWidth:!0})," Compare visits"]}),m.jsx(ke,{divider:!0,tag:"hr"})]}),m.jsxs(ke,{tag:_d,shortUrl:e,suffix:"edit",asLink:!0,children:[m.jsx(je,{icon:aP,fixedWidth:!0})," Edit short URL"]}),p&&m.jsxs(ke,{tag:_d,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[m.jsx(je,{icon:KI,fixedWidth:!0})," Manage redirect rules"]}),m.jsxs(ke,{onClick:a,children:[m.jsx(je,{icon:eY,fixedWidth:!0})," QR code"]}),m.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{className:"dropdown-item--danger",onClick:v?l:g,children:[m.jsx(je,{icon:iP,fixedWidth:!0})," Delete short URL"]}),m.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:c,toggle:f})]})},j4e=$t(nU,["DeleteShortUrlModal","QrCodeModal"]),rU="shlink/shortUrlCreation",OR={saving:!1,saved:!1,error:!1},A4e=e=>fn(`${rU}/createShortUrl`,t=>e().createShortUrl(t)),k4e=e=>{const{reducer:t,actions:n}=Qt({name:rU,initialState:OR,reducers:{resetCreateShortUrl:()=>OR},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:Fr(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},iU="shlink/shortUrlEdition",N4e={saving:!1,saved:!1,error:!1},M4e=e=>fn(`${iU}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),L4e=e=>Qt({name:iU,initialState:N4e,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Fr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),SR="shlink/shortUrlsDetails",PR={loading:!1,error:!1},R4e=e=>{const t=fn(`${SR}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var c;const{shortCode:l,domain:f}=s,d=(c=o==null?void 0:o.shortUrls)==null?void 0:c.data.find(p=>bd(p,l,f));return[s,d??await e().getShortUrl(l,f)]}));return new Map(a)}),{reducer:n}=Qt({name:SR,initialState:PR,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Fr(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...PR,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},$4e=({domains:e,value:t,onChange:n})=>{const[r,,i,o]=Lt(),a=!t,s=N.useCallback(()=>{n(""),o()},[n,o]),c=N.useCallback(()=>{n(""),i()},[n,i]);return r?m.jsxs(Xh,{children:[m.jsx(yn,{value:t??"",placeholder:"Domain",onChange:l=>n(l.target.value)}),m.jsx(qe,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:s,children:m.jsx(je,{icon:Mq})}),m.jsx(Dr,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(ea,{text:a?"Domain":`Domain: ${t}`,className:a?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[e.map(({domain:l,isDefault:f})=>m.jsxs(ke,{active:(t===l||f)&&a,onClick:()=>n(l),className:"d-flex justify-content-between align-items-center",children:[l,f&&m.jsx("span",{className:"text-muted",children:"default"})]},l)),m.jsx(ke,{divider:!0}),m.jsx(ke,{onClick:c,children:m.jsx("i",{children:"New domain"})})]})},h_=({icon:e,className:t,...n})=>{const r=ci();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(yn,{className:Oe("icon-input-container__input",t),innerRef:r,...n}),m.jsx(je,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},I4e=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=N.useCallback(({target:c})=>{if(!c.value){r==null||r(null);return}r==null||r(Cr(c.value))},[r]),s=N.useMemo(()=>i?$h:Ca,[i]);return m.jsx(yn,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},wy=({label:e,id:t,...n})=>{const r=N.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),m.jsx(I4e,{id:t??r,...n})]})},p_=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx(wD,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(ev,{placement:"right",children:t})]}),D4e=({isOpen:e,toggle:t})=>m.jsxs(gr,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(po,{toggle:t,children:"Info"}),m.jsxs(Ri,{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"})]})]})]}),F4e=()=>{const[e,t]=Lt();return m.jsxs(m.Fragment,{children:[m.jsx(dl,{className:"p-0",title:"What does this mean?",onClick:t,children:m.jsx(je,{icon:lP})}),m.jsx(D4e,{isOpen:e,toggle:t})]})},Em=e=>typeof e=="string"?Ga(e):e,B4e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,oU=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:o})=>{var a,s,c;const{TagsSelector:l}=Rt(oU),[f,d]=N.useState(r),p=B4e(f),v=Mr("deviceLongUrls"),g=Mr("urlValidation"),y=g||p,x=N.useCallback(()=>d(r),[r]),b=N.useCallback((P,T)=>ks(P)?P:ks(T)?null:void 0,[]),_=N.useCallback((P,T)=>d(({deviceLongUrls:j={},...$})=>{var M;return{...$,deviceLongUrls:{...j,[P]:b(T,(M=r.deviceLongUrls)==null?void 0:M[P])}}}),[r.deviceLongUrls,b]),w=N.useCallback(P=>d(T=>({...T,tags:P})),[]),S=N.useCallback(async P=>(P.preventDefault(),n(f).then(T=>p&&!cE(T)&&x()).catch(()=>{})),[p,n,x,f]),C=N.useMemo(()=>m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(yn,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:P=>d(T=>({...T,longUrl:P.target.value}))}),m.jsxs("div",{className:Oe("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(yn,{bsSize:"lg",placeholder:"Custom slug",value:f.customSlug??"",onChange:P=>d(T=>({...T,customSlug:P.target.value}))})}),m.jsx("div",{className:Oe("w-100",{"w-lg-50":e}),children:m.jsx(l,{tags:i.tags,selectedTags:f.tags??[],onChange:w})})]})]}),[l,e,w,p,f,i.tags]);return m.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:S,children:[e&&C,!e&&m.jsxs(m.Fragment,{children:[m.jsxs(ei,{children:[m.jsx("div",{className:Oe("mb-3",{"col-sm-6":v,"col-12":!v}),children:m.jsx(yt,{title:"Main options",children:C})}),v&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(h_,{type:"url",icon:Bse,placeholder:"Android-specific redirection",value:((a=f.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:P})=>_("android",P.value)}),m.jsx(h_,{type:"url",icon:Fse,placeholder:"iOS-specific redirection",value:((s=f.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:P})=>_("ios",P.value)}),m.jsx(h_,{type:"url",icon:iY,placeholder:"Desktop-specific redirection",value:((c=f.deviceLongUrls)==null?void 0:c.desktop)??"",onChange:({target:P})=>_("desktop",P.value)})]})})]}),m.jsxs(ei,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(yn,{placeholder:"Title",value:f.title??"",onChange:({target:P})=>d(T=>({...T,title:b(P.value,r.title)}))}),p&&m.jsxs(m.Fragment,{children:[m.jsxs(ei,{children:[m.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:m.jsx(yn,{placeholder:"Custom slug",value:f.customSlug??"",onChange:P=>d(T=>({...T,customSlug:P.target.value})),disabled:ks(f.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(yn,{type:"number",placeholder:"Short code length",value:f.shortCodeLength??"",onChange:P=>d(T=>({...T,shortCodeLength:P.target.value})),min:4,disabled:ks(f.customSlug)})})]}),m.jsx($4e,{value:f.domain,onChange:P=>d(T=>({...T,domain:P})),domains:o.domains})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{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(wy,{label:"Enabled since",withTime:!0,maxDate:f.validUntil?Em(f.validUntil):void 0,value:f.validSince?Em(f.validSince):null,onChange:P=>d(T=>({...T,validSince:Za(P)}))})}),m.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:m.jsx(wy,{label:"Enabled until",withTime:!0,minDate:f.validSince?Em(f.validSince):void 0,value:f.validUntil?Em(f.validUntil):null,onChange:P=>d(T=>({...T,validUntil:Za(P)}))})})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),m.jsx(yn,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:f.maxVisits??"",onChange:P=>d(T=>({...T,maxVisits:ks(P.target.value)?Number(P.target.value):null}))})]})]})})]}),m.jsxs(ei,{children:[y&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(yt,{title:"Extra checks",children:[g&&m.jsx(p_,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:P=>d(T=>({...T,validateUrl:P})),children:"Validate URL"}),p&&m.jsxs("p",{children:[m.jsx(wD,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:P=>d(T=>({...T,findIfExists:P})),children:"Use existing URL if found"}),m.jsx(F4e,{})]})]})}),m.jsx("div",{className:Oe("mb-3",{"col-sm-6":y}),children:m.jsxs(yt,{title:"Configure behavior",children:[m.jsx(p_,{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:P=>d(T=>({...T,crawlable:P})),children:"Make it crawlable"}),m.jsx(p_,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:P=>d(T=>({...T,forwardQuery:P})),children:"Forward query params on redirect"})]})})]})]}),m.jsx("div",{className:"text-center",children:m.jsx(qe,{outline:!0,color:"primary",disabled:t||!f.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},U4e=$t(oU,["TagsSelector"]),db="all",aU={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[db]:void 0},sU=Object.keys(aU),z4e=e=>!e||!e.startDate&&!e.endDate,Oy=e=>typeof e=="string"&&sU.includes(e),V4e=sU.filter(e=>e!==db),CR=e=>e?Cr(e):null,lU=(e,t)=>({startDate:CR(e),endDate:CR(t)}),W4e=e=>{if(!(!e||z4e(e)))return e.startDate&&!e.endDate?`Since ${Ca(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Ca(e.endDate)}`:`${Ca(e.startDate)} - ${Ca(e.endDate)}`},cU=e=>{if(!(!e||e===db))return Oy(e)?aU[e]:W4e(e)},Xr=e=>sl(dg(Ya(),e)),Hl=e=>({startDate:e,endDate:Kc(Ya())}),uU=e=>{var t;return((t=[[()=>e==="today",()=>Hl(sl(Ya()))],[()=>e==="yesterday",()=>({startDate:Xr(1),endDate:Kc(dg(Ya(),1))})],[()=>e==="last7Days",()=>Hl(Xr(7))],[()=>e==="last30Days",()=>Hl(Xr(30))],[()=>e==="last90Days",()=>Hl(Xr(90))],[()=>e==="last180Days",()=>Hl(Xr(180))],[()=>e==="last365Days",()=>Hl(Xr(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},H4e=e=>{var t;const n=Cr(e);return((t=[[()=>bs(sl(Ya()),n),"today"],[()=>bs(Xr(1),n),"yesterday"],[()=>bs(Xr(7),n),"last7Days"],[()=>bs(Xr(30),n),"last30Days"],[()=>bs(Xr(90),n),"last90Days"],[()=>bs(Xr(180),n),"last180Days"],[()=>bs(Xr(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??db},fU=e=>Oy(e)?uU(e):e,dU=e=>!!(e&&e.startDate),G4e=({startDate:e,endDate:t})=>{const n=e5(Kc(t??new Date),sl(e))+1,r=dg(sl(e),n),i=dg(Kc(e),1);return{startDate:r,endDate:i}},K4e=e=>{if(dU(e))return e5(e.endDate??new Date,e.startDate)},q4e=({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"}),V4e.map(r=>m.jsx(ke,{active:e===r,onClick:()=>n(r),children:cU(r)},r))]}),Y4e=({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(wy,{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(wy,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Kc(o))})})]}),OE=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=N.useMemo(()=>cU(t)??n,[t,n]),[o,a]=N.useMemo(()=>Oy(t)?[void 0,t]:[t,void 0],[t]),s=N.useCallback(c=>{Oy(c)?e(uU(c),c):e(c)},[e]);return m.jsxs(ea,{disabled:r,text:i,children:[m.jsx(q4e,{allText:n,active:a,onChange:s}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx("div",{className:"px-3 py-1",children:m.jsx(Y4e,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},Z4e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},X4e=({onChange:e,selected:t={},className:n,domains:r})=>{const i=Mr("filterDisabledUrls"),o=Mr("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:s=!1,excludePastValidUntil:c=!1,domain:l}=t,f=N.useCallback(p=>e({...t,...p}),[e,t]),d=N.useCallback(p=>f({[p]:!(t!=null&&t[p])}),[f,t]);return m.jsxs(ea,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[m.jsx(ke,{header:!0,"aria-hidden":!0,children:"Visits:"}),m.jsx(ke,{active:a,onClick:()=>d("excludeBots"),children:"Ignore visits from bots"}),i&&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:s,onClick:()=>d("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),m.jsx(ke,{active:c,onClick:()=>d("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),o&&m.jsxs(m.Fragment,{children:[m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{header:!0,"aria-hidden":!0,children:["Domain: ",!r&&m.jsx("i",{children:"loading..."})]}),r==null?void 0:r.map(p=>{const v=p.isDefault?Ou:p.domain,g=l===v;return m.jsx(ke,{active:g,onClick:()=>f({domain:g?void 0:v}),children:p.domain},p.domain)})]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsx(ke,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},hU=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:a,TagsSelector:s}=Rt(hU),[{search:c,tags:l,startDate:f,endDate:d,excludeBots:p,excludeMaxVisitsReached:v,excludePastValidUntil:g,domain:y,tagsMode:x="any"},b]=cb(),_=rr("visits"),[w,S]=N.useState(),C=N.useCallback(({startDate:$,endDate:M},I)=>{b({startDate:Za($)??void 0,endDate:Za(M)??void 0}),S(I)},[b]),P=N.useCallback($=>b({search:$||void 0}),[b]),T=N.useCallback($=>b({tags:$}),[b]),j=N.useCallback(()=>b({tagsMode:x==="any"?"all":"any"}),[x,b]);return m.jsxs("div",{className:Oe("short-urls-filtering-bar-container",e),children:[m.jsx(Jh,{initialValue:c,onChange:P}),m.jsxs(Xh,{className:"mt-3",children:[m.jsx(s,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:l,onChange:T}),l.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(qe,{outline:!0,color:"secondary",onClick:j,id:"tagsModeBtn","aria-label":"Change tags mode",children:m.jsx(je,{className:"short-urls-filtering-bar__tags-icon",icon:x==="all"?VI:kq})}),m.jsx(Dr,{target:"tagsModeBtn",placement:"left",children:x==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(ei,{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(OE,{defaultText:"All short URLs",dateRangeOrInterval:w??lU(f,d),onDatesChange:C})}),m.jsx(X4e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:p??(_==null?void 0:_.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:g,domain:y},onChange:b,domains:o.loading?void 0:o.domains})]})}),m.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:m.jsx(a,{amount:t})}),m.jsx("div",{className:"col-6 d-lg-none mt-3",children:m.jsx(ep,{prefixed:!1,items:Z4e,order:n,onChange:r})})]})]})},Q4e=$t(hU,["ExportShortUrlsBtn","TagsSelector"]);function xd({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(je,{icon:e.dir==="ASC"?Oq:Rq,className:n})}const Gl=2,YO="...",pU=(e,t)=>{const n=HP(Math.max(Gl,e-Gl),Math.min(t-1,e+Gl)+1);return e-Gl>Gl&&n.unshift(YO),e+Gl<t-1&&n.push(YO),n.unshift(1),n.push(t),n},Ih=e=>e===YO,mU=e=>Ih(e)?e:Kt(e),vU=(e,t)=>Ih(e)?`${e}_${t}`:`${e}`,J4e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=cs(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const a=()=>pU(n,r).map((s,c)=>m.jsx(Hs,{disabled:Ih(s),active:n===s,children:m.jsx(Gs,{tag:Pt,to:o(s),children:mU(s)})},vU(s,c)));return m.jsxs(DP,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(Hs,{disabled:n===1,children:m.jsx(Gs,{previous:!0,tag:Pt,to:o(n-1)})}),a(),m.jsx(Hs,{disabled:n>=r,children:m.jsx(Gs,{next:!0,tag:Pt,to:o(n+1)})})]})},e$e={field:"dateCreated",dir:"DESC"},gU=Fi(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=Rt(gU),{page:s}=Tu(),c=mr(),[{tags:l,search:f,startDate:d,endDate:p,orderBy:v,tagsMode:g,excludeBots:y,excludePastValidUntil:x,excludeMaxVisitsReached:b,domain:_},w]=cb(),S=GP(),[C,P]=N.useState(v??((n=S.shortUrlsList)==null?void 0:n.defaultOrdering)??e$e),{pagination:T}=(t==null?void 0:t.shortUrls)??{},j=N.useMemo(()=>{var Q;return y??((Q=S.visits)==null?void 0:Q.excludeBots)},[y,(r=S.visits)==null?void 0:r.excludeBots]),$=Mr("excludeBotsOnShortUrls"),M=N.useCallback((Q,te)=>{w({orderBy:{field:Q,dir:te}}),P({field:Q,dir:te})},[w]),I=Q=>()=>M(Q,a0(Q,C.field,C.dir)),F=Q=>m.jsx(xd,{currentOrder:C,field:Q}),q=N.useCallback(Q=>w({tags:[...new Set([...l,Q])]}),[l,w]),H=N.useCallback(({field:Q,dir:te})=>$&&j&&Q==="visits"?{field:"nonBotVisits",dir:te}:{field:Q,dir:te},[j,$]),Z=fE();return N.useEffect(()=>{e({page:s,searchTerm:f,tags:l,startDate:d,endDate:p,orderBy:H(C),tagsMode:g,excludePastValidUntil:x,excludeMaxVisitsReached:b,domain:_})},[e,H,s,f,l,d,p,C,g,x,b,_]),m.jsxs(uE,{value:Z,children:[m.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:C,handleOrderBy:M,className:"mb-3"}),m.jsx(dE,{type:"short-urls",className:"mb-3"}),m.jsxs(Ir,{body:!0,className:Oe({"pb-0":!t.loading}),children:[m.jsx(o,{shortUrlsList:t,orderByColumn:I,renderOrderIcon:F,onTagClick:q}),!t.loading&&m.jsx(J4e,{paginator:T,currentQueryString:c.search})]})]})},()=>[er.visits]),t$e=$t(gU,["ShortUrlsTable","ShortUrlsFilteringBar"]),n$e=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:o}=e;return r?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):i?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!i&&(!o||o.data.length===0)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):o==null?void 0:o.data.map(a=>m.jsx(n,{shortUrl:a,onTagClick:t},a.shortUrl))},yU=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=Rt(yU),a=Oe({"short-urls-table__header-cell--with-action":!!e}),s=Oe("short-urls-table__header-cell",a),c=Oe("table table-hover responsive-table short-urls-table",i);return m.jsxs("table",{className:c,children:[m.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:m.jsxs("tr",{children:[m.jsxs("th",{className:s,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),m.jsxs("th",{className:s,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(dl,{className:Oe("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",m.jsxs(dl,{className:Oe("p-0",a),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:s,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:m.jsx(n$e,{ShortUrlsRow:o,shortUrlsList:n,onTagClick:r})})]})},r$e=$t(yU,["ShortUrlsRow"]),i$e=(e,t)=>{e.factory("ShortUrlsList",t$e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",r$e),e.factory("ShortUrlsRow",T4e),e.factory("CreateShortUrlResult",c4e),e.factory("ShortUrlsRowMenu",j4e),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",U4e),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",s4e),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",l4e),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>u4e),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",_4e),e.factory("ExportShortUrlsBtn",f4e),e.factory("ShortUrlsFilteringBar",Q4e),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",zLe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",k4e,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",L4e,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",FLe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",R4e,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",ULe,"apiClientFactory"),e.serviceFactory("createShortUrl",A4e,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",DLe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>xB),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",M4e,"apiClientFactory")},o$e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:c,errorData:l}=i;return m.jsxs(gr,{toggle:t,isOpen:n,centered:!0,onClosed:()=>c&&o(e),children:[m.jsx(po,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(Ri,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",s&&m.jsx(Xn,{type:"error",small:!0,className:"mt-2",children:m.jsx(fo,{errorData:l,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(Jo,{children:[m.jsx(qe,{color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},bU=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=Rt(bU),[s,c]=N.useState(e),[l,f]=N.useState(a.getColorForKey(e)),{editing:d,error:p,edited:v,errorData:g}=o,y=yB(async()=>{await t({oldName:e,newName:s,color:l}),n()}),x=N.useCallback(()=>v&&r({oldName:e,newName:s,color:l}),[l,v,s,e,r]);return m.jsx(gr,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:m.jsxs("form",{name:"editTag",onSubmit:y,children:[m.jsx(po,{toggle:n,children:"Edit tag"}),m.jsxs(Ri,{children:[m.jsxs(Xh,{children:[m.jsx(XB,{color:l,onChange:f,className:"input-group-text",name:"tag-color"}),m.jsx(yn,{value:s,placeholder:"Tag",required:!0,onChange:({target:b})=>c(b.value)})]}),p&&m.jsx(Xn,{type:"error",small:!0,className:"mt-2",children:m.jsx(fo,{errorData:g,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(Jo,{children:[m.jsx(qe,{type:"button",color:"link",onClick:n,children:"Cancel"}),m.jsx(qe,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},a$e=$t(bU,["ColorGenerator"]),s$e=/\s+/g,_U=e=>e.trim().toLowerCase().replace(s$e,"-"),xU=({color:e})=>m.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),wU=({tag:e,colorGenerator:t})=>m.jsx(xU,{color:t.getColorForKey(e)});let ER=1;const OU="Tag not found",SU="Add tag",l$e=e=>e!==OU,c$e=e=>e===SU,TR=e=>(ER+=1,{label:e,value:`${e}${ER}`}),u$e=e=>({tag:t,onClick:n})=>m.jsx(fb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),f$e=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=l$e(n.label),s=c$e(n.label);return m.jsx("div",{className:Oe(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(wU,{tag:`${n.label}`,colorGenerator:e}),s?m.jsxs("i",{children:['Add "',_U(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):m.jsx("i",{children:n.label})})},PU=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=Rt(PU),a=rr("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=ci();return m.jsx(Dle,{ref:c,selected:e.map(TR),suggestions:r.filter(l=>!e.includes(l)).map(TR),renderTag:u$e(o),renderOption:f$e(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:SU,noOptionsText:OU,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(l,f)=>{const d=l.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:p})=>s==="includes"?p.includes(d):p.startsWith(d))].slice(0,5)},onDelete:l=>{const f=[...e];f.splice(l,1),t(f)},onAdd:({label:l})=>t([...new Set([...e,...l.split(",").map(_U)])])})},d$e=$t(PU,["ColorGenerator"]),ZO="shlink/tagDelete",h$e={deleting:!1,deleted:!1,error:!1},CU=Qn(`${ZO}/tagDeleted`),p$e=e=>{const t=fn(`${ZO}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Qt({name:ZO,initialState:h$e,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:Fr(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},SE="shlink/tagEdit",m$e={editing:!1,edited:!1,error:!1},EU=Qn(`${SE}/tagEdited`),v$e=(e,t)=>fn(`${SE}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),g$e=e=>Qt({name:SE,initialState:m$e,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:Fr(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}})}}),PE="shlink/tagsList",m_={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},jR=(e,t)=>n=>n===e?t:n,AR=(e,t)=>e.filter(n=>n!==t),y$e=(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}),b$e=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),{})),_$e=e=>fn(`${PE}/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}}),TU=Qn(`${PE}/filterTags`),x$e=(e,t)=>Qt({name:PE,initialState:m_,reducers:{},extraReducers:n=>{n.addCase(TU,(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})=>({...m_,error:!0,errorData:Fr(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...m_,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(CU,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:AR(r,a),filteredTags:AR(i,a)})),n.addCase(EU,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(jR(s.oldName,s.newName)).sort(),filteredTags:i.map(jR(s.oldName,s.newName)).sort()})),n.addCase(Zu,(r,{payload:i})=>({...r,stats:y$e(b$e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),w$e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},jU=Fi(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=Rt(jU),o=GP(),[a,s]=N.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),c=N.useMemo(()=>{const f=t.filteredTags.map(d=>{var p,v,g;const y=t.stats[d],x=((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:x,shortUrls:(y==null?void 0:y.shortUrlsCount)??0}});return CD(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),l=fE();return t.loading?m.jsx(zo,{loading:!0}):t.error?m.jsx(Xn,{type:"error",children:m.jsx(fo,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):m.jsxs(uE,{value:l,children:[m.jsx(Jh,{className:"mb-3",onChange:e}),m.jsx(ei,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(ep,{items:w$e,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),m.jsx(dE,{type:"tags",className:"mb-3"}),m.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:f=>()=>{const d=a0(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[er.visits]),O$e=$t(jU,["TagsTable"]),CE=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Ih(o)&&n(o);return m.jsxs(DP,{listClassName:Oe("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(Hs,{disabled:t<=1,children:m.jsx(Gs,{previous:!0,tag:"span",onClick:i(t-1)})}),pU(t,e).map((o,a)=>m.jsx(Hs,{disabled:Ih(o),active:t===o,children:m.jsx(Gs,{role:"link",tag:"span",onClick:i(o),children:mU(o)})},vU(o,a))),m.jsx(Hs,{disabled:t>=e,children:m.jsx(Gs,{next:!0,tag:"span",onClick:i(t+1)})})]})},S$e=20,AU=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Rt(AU),i=N.useRef(!0),{page:o=1}=ku(),[a,s]=xLe("page",Number(o)),c=N.useCallback(p=>{s(p),scrollTo(0,0)},[s]),l=Pc(e,S$e),f=l.length>1,d=l[a-1]??[];return N.useEffect(()=>{i.current||c(1),i.current=!1},[c,e]),m.jsxs(yt,{bodyClassName:f?"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(xd,{currentOrder:n,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",m.jsx(xd,{currentOrder:n,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",m.jsx(xd,{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:[d.length===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),d.map(p=>m.jsx(r,{tag:p},p.tag))]})]}),f&&m.jsx("div",{className:"sticky-card-paginator",children:m.jsx(CE,{pagesCount:l.length,currentPage:a,setCurrentPage:c})})]},a)},P$e=$t(AU,["TagsTableRow"]),kU=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Rt(kU),[i,o]=Lt(),[a,s]=Lt(),c=cs(),l=ab();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx(wU,{tag:e.tag,colorGenerator:r})," ",e.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(Pt,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Kt(e.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(Pt,{to:`${c}/tag/${e.tag}/visits`,children:Kt(e.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(o0,{children:[m.jsxs(ke,{onClick:s,children:[m.jsx(je,{icon:UI,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(ke,{disabled:!l||!l.canAddItemWithName(e.tag),onClick:()=>l==null?void 0:l.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[m.jsx(je,{icon:Zy,fixedWidth:!0})," Compare visits"]}),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{className:"dropdown-item--danger",onClick:o,children:[m.jsx(je,{icon:Eq,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})]})},C$e=$t(kU,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),E$e=(e,t)=>{e.factory("TagsSelector",d$e),e.serviceFactory("DeleteTagConfirmModal",()=>o$e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",a$e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",C$e),e.factory("TagsTable",P$e),e.factory("TagsList",O$e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",g$e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",p$e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",x$e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",_$e,"apiClientFactory"),e.serviceFactory("filterTags",()=>TU),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>CU),e.serviceFactory("editTag",v$e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>EU)},T$e=new d5,j$e=e=>T$e.parse(e),kR=e=>e.toLowerCase().trim();class A$e{constructor(t){Ba(this,"colors"),Ba(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=kR(t);return this.colors[n]||this.setColorForKey(n,m4e())}setColorForKey(t,n){var r;const i=kR(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=ZB(n)),this.lights[n]}}const NU=({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)},k$e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);NU(e,i,n)};class N$e{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);NU(this.window,i,n)}}class M$e{constructor(t,n){Ba(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Ba(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Ba(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);k$e(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function L$e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",N$e,"fetch","window"),e.service("ColorGenerator",A$e,"TagColorsStorage"),e.constant("jsonToCsv",j$e),e.service("ReportExporter",M$e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>SD)}const mp=({visits:e,shortUrl:t,children:n,title:r})=>m.jsx("header",{children:m.jsxs(Ir,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(ub,{}),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(eU,{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})]})}),hb=({children:e,className:t})=>m.jsx("div",{className:Oe("d-flex justify-content-between align-items-center",t),children:e}),MU=({title:e,footer:t,children:n})=>m.jsxs(Ir,{role:"document",children:[m.jsx(Zh,{className:"chart-card__header",children:e}),m.jsx(Yh,{children:n}),t&&m.jsx(lD,{className:"chart-card__footer--sticky",children:t})]}),LU={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},R$e={marginBottom:"5px",fontWeight:"bold"},RU={contentStyle:LU,labelStyle:R$e,itemStyle:{padding:0}},NR=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],$U=e=>NR[e%NR.length],Sy=()=>tp()?"#46e587":"#1DAA58",$$e=()=>tp()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",I$e=({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:[" (",Kt(i),")"]})]})]},n))}),MR=e=>N.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:$U(r)})),[e]),D$e=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=MR(e),o=MR(t),a=o.length>0,s=tp()?Sie:Oie;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?N.Fragment:wC,{children:m.jsxs($Me,{...r,children:[m.jsx(qr,{formatter:Kt,contentStyle:LU,itemStyle:{color:"white"}}),m.jsx(uo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((c,l)=>m.jsx(Ia,{fill:c.color,stroke:s},`${c.name}-${l}`))}),a&&m.jsx(uo,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:Sy()})]})})})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:m.jsx(I$e,{chartData:i,showNumbers:n})})]})},LR=({title:e,...t})=>{const[n,r]=Lt(!1);return m.jsx(MU,{title:m.jsxs(hb,{children:[e,m.jsx("div",{children:m.jsx(Vo,{checked:n,onChange:r,children:"Show numbers"})})]}),children:m.jsx(D$e,{...t,showNumbersInLegend:n})})},F$e=N.forwardRef(({visitsGroups:e},t)=>{const n=N.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:m.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",ref:t,children:n.map(([r,i],o)=>m.jsxs("li",{className:"d-inline",children:[m.jsx(xU,{color:IU(i)}),m.jsxs("strong",{children:[r," (",Kt(i.length),")"]})]},`${r}${o}`))})}),B$e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},U$e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},z$e={hourly:hae,daily:d0,weekly:dae,monthly:cg},EE={hourly:e=>ug(e,"yyyy-MM-dd HH:00"),daily:e=>Ca(e),weekly(e){const t=Ca(eh(e)),n=Ca(xae(e));return`${t} - ${n}`},monthly:e=>ug(e,"yyyy-MM")},V$e=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=>Ga(a[a.length-1].date)),o=JD(i);return((t=[[()=>d0(r,o)<=2,"hourly"],[()=>cg(r,o)<=1,"daily"],[()=>cg(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},W$e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=VD(t[r],i=>EE[e](Ga(i.date))),n),{}),H$e=(e,t)=>t.reduce((n,r)=>{const i=EE[e](Ga(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),G$e=(e,t)=>{const n=Object.values(t).filter(f=>f.length>0).map(f=>[...f].reverse());if(n.length===0)return[];const r=z$e[e],i=EE[e],o=U$e[e],a=n.flat(),s=Ga(a[0].date),c=Ga(a[a.length-1].date),l=r(c,s)||1;return[{formattedDate:i(s),date:s},...hE(l,f=>{const d=aae(s,o(f));return{formattedDate:i(d),date:d}})]},IU=e=>{if(e.color)return e.color;const t={main:Zd,highlighted:Qw,previous:Sy()};return e.type?t[e.type]:Zd},RR=(e,t)=>N.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),K$e=(e,t,n)=>{const r=RR(e,"main"),i=RR(e,"highlighted"),o=N.useMemo(()=>n?H$e(t,r):{},[n,t,r]),a=N.useCallback((s,{payload:c})=>{const l=o[c.formattedDate]??[];n==null||n(l===i?[]:l)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},$R=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},DU=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r,onDateRangeChange:i})=>{const[o,a]=N.useState(V$e(e)),s=mE(767,r??window.matchMedia),c=N.useMemo(()=>{const F=W$e(o,e),q=Object.keys(F);return G$e(o,e).map(({formattedDate:H,date:Z})=>({date:Z,formattedDate:H,...q.reduce((Q,te)=>(Q[te]=F[te][H]??0,Q),{})}))},[o,e]),l=K$e(e,o,t),[f,d,,p]=Lt(),v=ci(),g=N.useId(),y=ci(),[x,b]=N.useState(s?300:400);N.useLayoutEffect(()=>{if(!f)return b(s?300:400),()=>{};const F=new ResizeObserver(()=>{const{height:q}=v.current.getBoundingClientRect(),{height:H}=y.current.getBoundingClientRect();b(q-H-48)});return F.observe(v.current),F.observe(y.current),()=>F.disconnect()},[v,f,s,y]),OLe("Escape",p,f);const _=n?N.Fragment:wC,w=N.useMemo(()=>n?{}:{width:"100%",height:x},[n,x]),[S,C]=N.useState(),[P,T]=N.useState(),j=N.useCallback(()=>{C(void 0),T(void 0)},[]),$=N.useCallback((F,q)=>{const H=$R(F);q.button===0&&H&&C(H)},[]),M=N.useCallback(F=>{const q=$R(F);S&&q&&T(q)},[S]),I=N.useCallback(()=>{if(!S||!P)return;const F=[S.date,P.date],q=cae(F),H=JD(F);j(),i({startDate:q,endDate:H})},[i,j,P,S]);return m.jsxs(Ir,{className:Oe({"fixed-top fixed-bottom":f}),"data-testid":"line-chart-card",children:[m.jsxs(Zh,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",m.jsxs("div",{className:"d-flex align-content-center gap-1",children:[m.jsx(qe,{"aria-label":f?"Collapse":"Expand","aria-expanded":f,"aria-controls":g,size:"sm",color:"link",onClick:d,children:m.jsx(je,{icon:f?sq:nY})}),m.jsxs(Qh,{className:"d-flex align-items-center",children:[m.jsx(Qo,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(rs,{end:!0,children:Object.entries(B$e).map(([F,q])=>m.jsx(ke,{active:o===F,onClick:()=>a(F),children:q},F))})]})]})]}),m.jsxs(Yh,{innerRef:v,id:g,children:[m.jsx(_,{...w,children:m.jsxs(RMe,{className:"user-select-none",data:c,...n,onMouseDown:$,onMouseMove:M,onMouseUp:I,children:[m.jsx(qu,{dataKey:"formattedDate"}),m.jsx(Yu,{tickFormatter:Kt,yAxisId:"1"}),m.jsx(qr,{formatter:Kt,...RU}),m.jsx(iE,{strokeOpacity:tp()?.1:.9}),Object.entries(e).map(([F,q])=>q.length>0&&m.jsx(Ku,{yAxisId:"1",dataKey:F,type:"monotone",stroke:IU(q),strokeWidth:2,activeDot:q.type==="previous"?void 0:l,strokeDasharray:q.type==="previous"?"8 3":void 0},F)),S&&P&&m.jsx(fp,{yAxisId:"1",x1:S.formattedDate,x2:P.formattedDate})]})}),m.jsx(F$e,{visitsGroups:e,ref:y})]})]})},q$e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs(Qh,{children:[m.jsx(Qo,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(rs,{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"})})]})]}),IR=e=>e.startsWith("hidden_"),Y$e=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=N.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=IR(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]),c=N.useMemo(()=>{const d=s.reduce((p,{name:v})=>p>v.length?p:v.length,0);return Math.min(150,d*7)},[s]),l=a?N.Fragment:wC,f=N.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return m.jsx(l,{...f,children:m.jsxs(IMe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[m.jsx(qu,{type:"number",dataKey:"amount",tickFormatter:Kt,domain:i?[0,i]:void 0}),m.jsx(Yu,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>IR(d)?"":d}),m.jsx(iE,{strokeOpacity:tp()?.05:.9}),m.jsx(qr,{filterNull:!0,...RU,formatter:(d,p)=>[Kt(d),p==="highlightedAmount"?r:p==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),m.jsx(Lo,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:Zd,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Ia,{fill:xie,stroke:Zd,strokeWidth:2},d.name))}),n&&m.jsx(Lo,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:Qw,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Ia,{fill:wie,stroke:Qw,strokeWidth:2},d.name))}),t&&m.jsx(Lo,{dataKey:"prevAmount",fill:Sy(),children:s.map(d=>m.jsx(Ia,{fill:$$e(),stroke:Sy(),strokeWidth:2},d.name))})]})})},Z$e=e=>typeof e=="string"?e.toLowerCase():e,X$e=([e])=>e,Q$e=([,e])=>e,Tm=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,l]=N.useState({}),[f,d]=N.useState(1),[p,v]=N.useState(50),g=N.useCallback((j,$)=>{const M=Object.entries(j),I=c.field?Aoe(M,([F,q])=>Z$e(c.field===Object.keys($)[0]?F:q)):M;return!c.dir||c.dir==="ASC"?I:[...I].reverse()},[c.dir,c.field]),y=N.useCallback(j=>{const $=j[f-1];if(f<j.length)return $;const M=j[0].length;return[...$,...hE(M-$.length,I=>[`hidden_${I}`,0])]},[f]),x=N.useCallback(j=>m.jsx(CE,{currentPage:f,pagesCount:j,setCurrentPage:d}),[f]),b=N.useCallback((j,$,M,I)=>{const F=g(j,$),q=F.map(X$e),H=M&&Object.entries({...$3(q,q.map(()=>0)),...M}),Z=I&&Object.entries({...$3(q,q.map(()=>0)),...I});if(F.length<=p)return{currentPageStats:Object.fromEntries(F),currentPageHighlightedStats:H&&Object.fromEntries(H),currentPagePrevStats:Z&&Object.fromEntries(Z)};const Q=Pc(F,p),te=H&&Pc(H,p),X=Z&&Pc(Z,p);return{currentPageStats:Object.fromEntries(y(Q)),currentPageHighlightedStats:te&&Object.fromEntries(y(te)),currentPagePrevStats:X&&Object.fromEntries(y(X)),pagination:x(Q.length),max:HLe(Math.max(...F.map(Q$e)))}},[y,g,p,x]),{currentPageStats:_,currentPagePrevStats:w,currentPageHighlightedStats:S,pagination:C,max:P}=N.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]),T=N.useMemo(()=>Object.keys(_),[_]);return m.jsx(MU,{title:m.jsxs(hb,{children:[r,m.jsxs("div",{className:"d-flex gap-3",children:[o==null?void 0:o(C?T:void 0),a&&Object.keys(e).length>50&&m.jsx(q$e,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:p,setValue:j=>{v(j),d(1)}}),m.jsx(ep,{isButton:!1,right:!0,items:i,order:c,onChange:(j,$)=>{l({field:j,dir:$}),d(1)}})]})]}),footer:C,children:m.jsx(Y$e,{stats:_,prevStats:w,highlightedStats:S,max:P,...s})})},TE=e=>e.type!==void 0,J$e=e=>e.type!==void 0,eIe=e=>{const t=WD(e,n=>TE(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},FU=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&bd(o,t,n)&&pp(a.date,i,r)),BU=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&$Le(i,t)&&pp(o.date,r,n)),UU=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&pp(o.date,r,n)),jm=(e,t)=>VD(e,n=>n[t]),tIe=e=>{const t=((e==null?void 0:e.startDate)&&Za(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&Za(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},XO=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=tIe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},nIe=e=>dU(e.dateRange),rIe=({dateRange:e,...t})=>({...t,dateRange:G4e(e)}),DR=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Za(t[e])||""},zU=()=>{const e=ho(),t=ku(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=N.useMemo(()=>({dateRange:n!=null||r!=null?lU(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]),l=N.useCallback(f=>{const{dateRange:d,visitsFilter:p={},loadPrevInterval:v}=f0(c,f),{excludeBots:g,orphanVisitsType:y}=p,x={...s,startDate:DR("startDate",d),endDate:DR("endDate",d),excludeBots:g===void 0?void 0:HO(g),orphanVisitsType:y,loadPrevInterval:v===void 0?void 0:HO(v)},b=i0(x),_=b?`?${b}`:"";e(_,{replace:!0,relative:"route"})},[c,e,s]);return[c,l]},iIe=()=>m.jsx(eLe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),oIe=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}},VU=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx(gr,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(Ri,{className:"map-modal__modal-body",children:[m.jsxs(hb,{className:"map-modal__modal-title fs-4",children:[n,m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),m.jsxs(XMe,{...oIe(r),children:[m.jsx(iIe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>m.jsx(QMe,{position:o,children:m.jsxs(JMe,{children:[m.jsx("b",{children:a})," visit",a>1?"s":""," from ",m.jsx("b",{children:i})]})},s))]})]})}),aIe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Lt(),[a,s]=Lt(),[c,l]=N.useState([]),f=N.useCallback(d=>{l(d?n.filter(d):n),i()},[n,i]);return m.jsxs(m.Fragment,{children:[!t&&m.jsx(qe,{color:"link",className:"p-0",onClick:()=>f(),"aria-label":"Show in map",title:"Show in map",children:m.jsx(je,{icon:mx})}),t&&m.jsxs(ns,{isOpen:a,toggle:s,children:[m.jsx(Qo,{color:"link",className:"p-0",title:"Show in map",children:m.jsx(je,{icon:mx})}),m.jsxs(rs,{end:!0,children:[m.jsx(ke,{onClick:()=>f(),children:"Show all locations"}),m.jsx(ke,{onClick:()=>f(({cityName:d})=>t.includes(d)),children:"Show locations in current page"})]})]}),m.jsx(VU,{toggle:o,isOpen:r,title:e,locations:c})]})},WU=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:c=!1}=t,l=p=>({active:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=N.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=N.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return m.jsxs(ea,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&m.jsxs(m.Fragment,{children:[m.jsx(ke,{active:c,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,{...l("base_url"),children:"Base URL"}),m.jsx(ke,{...l("invalid_short_url"),children:"Invalid short URL"}),m.jsx(ke,{...l("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"})})]})},HU=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return m.jsxs(m.Fragment,{children:[t&&r===null&&m.jsx(zo,{loading:!0}),t&&r!==null&&m.jsxs(zo,{loading:!0,children:["This is going to take a while... :S",m.jsx(hD,{value:r,striped:r>=100,className:"mt-3"})]}),n&&m.jsx(Xn,{type:"error",children:m.jsx(fo,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},tv=({children:e,showFallback:t})=>m.jsxs(m.Fragment,{children:[t&&m.jsx(zo,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&m.jsx(m.Fragment,{children:e})]}),sIe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Lt();return m.jsx(yt,{title:m.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:m.jsxs(hb,{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(qe,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&m.jsxs(qe,{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..."})]})]})})},Am="Others",lIe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],cIe=e=>{if(!ks(e))return{browser:Am,os:Am};const{browser:{name:t},os:{name:n}}=aLe.parse(e);return{os:n??Am,browser:t&&lIe.includes(t)?t:Am}},uIe=e=>{var t;return ks(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},GU=(e,t)=>e[t]!==void 0,FR=e=>typeof e=="number"?e:e?parseFloat(e):0,fIe=(e,{os:t})=>{e[t]=(e[t]||0)+1},dIe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},hIe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},KU=e=>(t,n)=>{const r=GU(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},pIe=KU("country"),mIe=KU("city"),vIe=(e,t)=>{if(!GU(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[FR(r),FR(i)]};o.count+=1,e[n]=o},gIe=(e,t)=>{if(!J$e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},QO=e=>e.reduce((t,n)=>(fIe(t.os,n),dIe(t.browsers,n),hIe(t.referrers,n),pIe(t.countries,n),mIe(t.cities,n),vIe(t.citiesForMap,n),gIe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Py=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t;return{date:r,potentialBot:a,userAgent:n,...cIe(n),referer:uIe(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,visitedUrl:t.visitedUrl,type:TE(t)?t.type:void 0}}),yIe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Py,processStatsFromVisits:QO},Symbol.toStringTag,{value:"Module"})),Kf=20,bIe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...a},s,c)=>{const l=c?o:`${r} ${i}`;return`${e} ${t} ${n} ${l} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},_Ie=(e,t,n)=>t.filter(r=>bIe(r,e,n)),xIe=(e,t)=>CD(t,e),wIe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?_Ie(t,e,r):[...e],o=xIe(n,i),a=o.length;return{visitsGroups:Pc(o,Kf),total:a}},Ki="visits-table__header-cell visits-table__sticky",OIe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const o=mE(767,r),[a,s]=N.useState(),c=N.useCallback(j=>{s(j),x(1),n([])},[n]),[l,f]=N.useState({}),[d,p]=Lt(),v=N.useCallback(()=>{p(),f({})},[p]),g=N.useMemo(()=>wIe({visits:e,searchTerm:a,order:l,searchInRawUserAgent:d}),[e,a,l,d]),[y,x]=N.useState(1),b=y*Kf,_=b-Kf,w=N.useMemo(()=>{var j,$;return!!(($=(j=g.visitsGroups[y-1])==null?void 0:j[0])!=null&&$.visitedUrl)},[y,g.visitsGroups]),S=6+Number(w)+(d?1:2),C=g.total>0,P=j=>f({field:j,dir:a0(j,l.field,l.dir)}),T=j=>m.jsx(xd,{currentOrder:l,field:j,className:"visits-table__header-icon"});return m.jsx(yt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:m.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",m.jsx(Vo,{checked:d,onChange:v,children:"Show user agent"})]}),children:m.jsx("div",{className:"table-responsive-md",children:m.jsxs("table",{className:Oe("table table-sm position-relative m-0 visits-table",{"table-hover":C}),children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:`${Ki} text-center`,onClick:()=>n(t.length<g.total?g.visitsGroups.flat():[]),children:[m.jsx("span",{className:"sr-only",children:"Is selected"}),m.jsx(je,{icon:Ud,className:Oe({"text-primary":t.length>0})})]}),m.jsxs("th",{className:`${Ki} text-center`,onClick:()=>P("potentialBot"),children:[m.jsx("span",{className:"sr-only",children:"Is bot"}),m.jsx(je,{icon:sA}),T("potentialBot")]}),m.jsxs("th",{className:Ki,onClick:()=>P("date"),children:["Date",T("date")]}),m.jsxs("th",{className:Ki,onClick:()=>P("country"),children:["Country",T("country")]}),m.jsxs("th",{className:Ki,onClick:()=>P("city"),children:["City",T("city")]}),d?m.jsxs("th",{className:Ki,onClick:()=>P("userAgent"),children:["User agent",T("userAgent")]}):m.jsxs(m.Fragment,{children:[m.jsxs("th",{className:Ki,onClick:()=>P("browser"),children:["Browser",T("browser")]}),m.jsxs("th",{className:Ki,onClick:()=>P("os"),children:["OS",T("os")]})]}),m.jsxs("th",{className:Ki,onClick:()=>P("referer"),children:["Referrer",T("referer")]}),w&&m.jsxs("th",{className:Ki,onClick:()=>P("visitedUrl"),children:["Visited URL",T("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"p-0",children:m.jsx(Jh,{noBorder:!0,large:!1,onChange:c})})})]}),m.jsxs("tbody",{children:[!C&&m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"text-center",children:"There are no visits matching current filter"})}),(i=g.visitsGroups[y-1])==null?void 0:i.map((j,$)=>{const M=t.includes(j);return m.jsxs("tr",{style:{cursor:"pointer"},className:Oe({"table-active":M}),onClick:()=>n(M?t.filter(I=>I!==j):[...t,j]),children:[m.jsx("td",{className:"text-center",children:M&&m.jsx(je,{icon:Ud,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:j.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:sA,id:`botIcon${$}`}),m.jsx(Dr,{placement:"right",target:`botIcon${$}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(xy,{date:j.date})}),m.jsx("td",{children:j.country}),m.jsx("td",{children:j.city}),d?m.jsx("td",{children:j.userAgent}):m.jsxs(m.Fragment,{children:[m.jsx("td",{children:j.browser}),m.jsx("td",{children:j.os})]}),m.jsx("td",{children:j.referer}),j.visitedUrl&&m.jsx("td",{children:j.visitedUrl})]},$)})]}),g.total>Kf&&m.jsx("tfoot",{children:m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"visits-table__footer-cell visits-table__sticky",children:m.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[m.jsx(CE,{pagesCount:Math.ceil(g.total/Kf),currentPage:y,setCurrentPage:x,centered:o}),m.jsxs("div",{children:["Visits ",m.jsx("b",{children:Kt(_+1)})," to"," ",m.jsx("b",{children:Kt(Math.min(b,g.total))})," of"," ",m.jsx("b",{children:Kt(g.total)})]})]})})})})]})})})},ha={byTime:{title:"By time",subPath:"by-time",icon:cq},byContext:{title:"By context",subPath:"by-context",icon:sP},byLocation:{title:"By location",subPath:"by-location",icon:mx},list:{title:"List",subPath:"list",icon:oP},options:{title:"Options",subPath:"options",icon:GI,shouldRender:({deletion:e})=>!!e}};Object.freeze(ha);const v_=({display:e})=>e&&m.jsx("div",{className:"mt-3 mx-auto w-75",children:m.jsx(yt,{children:m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(je,{icon:aY,className:"mt-1"}),m.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let km;const vp=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:c,prevVisits:l,loading:f,errorData:d,fallbackInterval:p}=n,[{dateRange:v,visitsFilter:g,loadPrevInterval:y},x]=zU(),b=rr("visits"),[_,w]=N.useState(),S=N.useCallback(({startDate:k,endDate:z},J)=>{x({dateRange:{startDate:k??void 0,endDate:z??void 0}}),w(J)},[x]),[C,P]=N.useState(p??(b==null?void 0:b.defaultInterval)??"last30Days"),[T,j]=N.useState([]),[$,M]=N.useState(),I=N.useRef(!0),{search:F}=mr(),q=N.useCallback(k=>k?`${k}${F}`:F,[F]),H=N.useMemo(()=>Py(c),[c]),Z=N.useMemo(()=>l&&Py(l),[l]),{os:Q,browsers:te,referrers:X,countries:U,cities:B,citiesForMap:W,visitedUrls:ee}=N.useMemo(()=>QO(H),[H]),G=N.useMemo(()=>QO(Z??[]),[Z]),ne=N.useMemo(()=>Object.fromEntries([["Visits",Object.assign(H,{type:"main"})],Z&&["Previous period",Object.assign(Z,{type:"previous"})],T.length>0&&[$??"Selected",Object.assign(T,{type:"highlighted"})]].filter(Boolean)),[$,T,Z,H]),re=N.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=N.useMemo(()=>Object.values(W),[W]),fe=N.useCallback(k=>{km=void 0,j(k)},[]),A=N.useCallback((k,z)=>{const J=`${k}_${z}`;km===J?(j([]),M(void 0),km=void 0):(j(H.filter(Y=>Y[k]===z)),M(z),km=J)},[H]);return N.useEffect(()=>i,[i]),N.useEffect(()=>{const k=v??fU(C),{loadPrevInterval:z,...J}=re,Y={doIntervalFallback:I.current,loadPrevInterval:z};r({dateRange:k,filter:J},Y),fe([]),I.current=!1},[C,v,r,re,fe]),N.useEffect(()=>{p&&C===((b==null?void 0:b.defaultInterval)??"last30Days")&&P(p)},[C,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(OE,{disabled:f,dateRangeOrInterval:_??v??C,defaultText:"All visits",onDatesChange:S})}),m.jsx(WU,{disabled:f,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:re,onChange:({loadPrevInterval:k,...z})=>x({visitsFilter:z,loadPrevInterval:k})})]})}),c.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(KB,{className:"btn-md-block",amount:H.length,onClick:()=>a(H)}),m.jsxs(qe,{outline:!0,disabled:T.length===0,className:"btn-md-block ms-2",onClick:()=>fe([]),children:["Clear selection ",T.length>0&&m.jsxs(m.Fragment,{children:["(",Kt(T.length),")"]})]})]})})]})}),m.jsxs("section",{className:"mt-3",children:[m.jsx(HU,{info:n}),!f&&!d&&m.jsxs(m.Fragment,{children:[m.jsx(PD,{fill:!0,children:Object.values(ha).map(({title:k,icon:z,subPath:J,shouldRender:Y},ie)=>!Y||Y(e)?m.jsxs(cd,{to:q(J),replace:!0,children:[m.jsx(je,{icon:z}),m.jsx("span",{className:"ms-2 d-none d-lg-inline",children:k})]},ie):void 0).filter(Boolean)}),m.jsx(ei,{children:m.jsxs(qy,{children:[m.jsx(at,{path:ha.byTime.subPath,element:m.jsxs(tv,{showFallback:c.length===0,children:[m.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:m.jsx(DU,{visitsGroups:ne,setSelectedVisits:fe,onDateRangeChange:S})}),m.jsx(v_,{display:!!re.loadPrevInterval&&!l})]})}),m.jsx(at,{path:ha.byContext.subPath,element:m.jsxs(tv,{showFallback:c.length===0,children:[m.jsx("div",{className:Oe("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(LR,{title:"Operating systems",stats:Q,prevStats:G.os})}),m.jsx("div",{className:Oe("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(LR,{title:"Browsers",stats:te,prevStats:G.browsers})}),m.jsx("div",{className:Oe("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:m.jsx(Tm,{title:"Referrers",withPagination:!1,stats:X,prevStats:G.referrers,highlightedStats:jm(T,"referer"),highlightedLabel:$,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:k=>A("referer",k)})}),s&&m.jsx("div",{className:"mt-3 col-lg-6",children:m.jsx(Tm,{title:"Visited URLs",stats:ee,prevStats:G.visitedUrls,highlightedStats:jm(T,"visitedUrl"),highlightedLabel:$,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:k=>A("visitedUrl",k)})}),m.jsx("div",{className:"col-12",children:m.jsx(v_,{display:!!re.loadPrevInterval&&!l})})]})}),m.jsx(at,{path:ha.byLocation.subPath,element:m.jsxs(tv,{showFallback:c.length===0,children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Tm,{title:"Countries",stats:U,prevStats:G.countries,highlightedStats:jm(T,"country"),highlightedLabel:$,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:k=>A("country",k)})}),m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Tm,{title:"Cities",stats:B,prevStats:G.cities,highlightedStats:jm(T,"city"),highlightedLabel:$,extraHeaderContent:k=>ae.length>0&&m.jsx(aIe,{modalTitle:"Cities",locations:ae,activeCities:k}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:k=>A("city",k)})}),m.jsx("div",{className:"col-12",children:m.jsx(v_,{display:!!re.loadPrevInterval&&!l})})]})}),m.jsx(at,{path:ha.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(OIe,{visits:H,selectedVisits:T,setSelectedVisits:fe})})}),o&&m.jsx(at,{path:ha.options.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(sIe,{...o})})}),m.jsx(at,{path:"*",element:m.jsx(QS,{replace:!0,to:q(ha.byTime.subPath)})})]})})]})]})]})},qU=Fi(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Rt(qU),{domain:i=""}=Tu(),[o,a=o]=i.split("_"),s=N.useCallback((l,f)=>e({domain:a,options:f,params:l}),[a,e]),c=N.useCallback(l=>r.exportVisits(`domain_${o}_visits.csv`,l),[o,r]);return m.jsx(vp,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:c,children:m.jsx(mp,{visits:t.visits,title:`"${o}" visits`})})},()=>[er.visits]),SIe=$t(qU,["ReportExporter"]),YU=Fi(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Rt(YU),i=N.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=N.useCallback((a,s)=>e({options:s,params:a}),[e]);return m.jsx(vp,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:m.jsx(mp,{title:"Non-orphan visits",visits:t.visits})})},()=>[er.visits]),PIe=$t(YU,["ReportExporter"]),ZU=Fi(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=Mr("orphanVisitsDeletion"),{ReportExporter:a}=Rt(ZU),s=N.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),c=N.useCallback((f,d)=>{var p;return e({options:d,params:f,orphanVisitsType:(p=f.filter)==null?void 0:p.orphanVisitsType})},[e]),l=N.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return m.jsx(vp,{getVisits:c,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:l,isOrphanVisits:!0,children:m.jsx(mp,{title:"Orphan visits",visits:t.visits})})},()=>[er.orphanVisits]),CIe=$t(ZU,["ReportExporter"]),BR=5e3,EIe=2,TIe=4,jIe=({currentPage:e,pagesCount:t})=>e>=t,AIe=(e,t)=>t*100/e,XU=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:BR}).then(({data:l})=>l))).then(c=>c.flat()),o=async(a,s,c=0)=>{if(t())return[];const l=await i(a,s[c]);return n(AIe(s.length,c+1)),c<s.length-1?l.concat(await o(a,s,c+1)):l};return async a=>{const{pagination:s,data:c}=await e({...a,page:1,itemsPerPage:BR});if(jIe(s))return c;const l=HP(EIe,s.pagesCount+1),f=Pc(l,r);return s.pagesCount-1>r&&n(0),c.concat(await o(a,f))}},gp=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),yp=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Qn(`${e}/progressChanged`),i=Qn(`${e}/fallbackToInterval`),o=fn(e,async(a,{getState:s,dispatch:c})=>{var l;const{params:f,options:d}=a,{visitsLoader:p,lastVisitLoader:v}=t(a),g=K4e(f.dateRange),y=XO(f),x=d.loadPrevInterval&&nIe(f)?XO(rIe(f)):void 0,b=TIe/(x?2:1),_=x?{main:0,prev:0}:{main:0},w=(j,$)=>{_[j]=$;const M=Object.values(_),I=M.reduce((F,q)=>F+q,0);c(r(I/M.length))},S=XU({visitsLoader:p,shouldCancel:()=>n(s),progressChanged:j=>w("main",j),batchSize:b}),[C,P,T]=await Promise.all([S(y),v((l=f.filter)==null?void 0:l.excludeBots),x?S(x).then(j=>j.map($=>{if(g===void 0)return $;const{date:M,...I}=$,F=YP(Cr(M),g);return{...I,date:Za(F)}})):Promise.resolve(void 0)]);return!C.length&&P&&c(i(H4e(P.date))),{...a,visits:C,prevVisits:T}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},bp=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:c,fallbackToInterval:l}=t,{reducer:f,actions:d}=Qt({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:Fr(y)??null})),v.addCase(s,(g,{payload:y})=>({...g,...y,loading:!1,progress:null,errorData:null})),v.addCase(c,(g,{payload:y})=>({...g,progress:y})),v.addCase(l,(g,{payload:y})=>({...g,fallbackInterval:y})),v.addCase(Zu,(g,{payload:y})=>{const{visits:x}=g,b=r(g,y.createdVisits).map(({visit:_})=>_);return b.length?{...g,visits:[...b,...x]}:g}),i==null||i(v)}}),{cancelGetVisits:p}=d;return{reducer:f,cancelGetVisits:p}},QU="shlink/domainVisits",kIe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},NIe=e=>yp({typePrefix:`${QU}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=gp(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),MIe=e=>bp({name:QU,initialState:kIe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>BU(r,t,n==null?void 0:n.dateRange)}),JU="shlink/orphanVisits",LIe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},RIe=e=>yp({typePrefix:`${JU}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=gp(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),$Ie=e=>bp({name:JU,initialState:LIe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>pp(o.date,r,i))}}),e9="shlink/orphanVisits",IIe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},DIe=(e,t)=>!t||t===e.type,FIe=({data:e,...t},n)=>{const r=e.filter(i=>TE(i)&&DIe(i,n));return{...t,data:r}},BIe=e=>yp({typePrefix:`${e9}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits({...s,type:t}).then(c=>FIe(c,t)),a=gp(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),UIe=(e,t)=>bp({name:e9,initialState:IIe,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&&pp(a.date,i,o))}}),t9="shlink/orphanVisitsDeletion",UR={deletedVisits:0,deleting:!1,error:!1},zIe=e=>fn(`${t9}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),VIe=e=>Qt({name:t9,initialState:UR,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:Fr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...UR,deletedVisits:i}})}}),n9="shlink/shortUrlVisits",WIe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},HIe=e=>yp({typePrefix:`${n9}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=c=>i.getShortUrlVisits(t,{...c,domain:n}),s=gp(o,c=>i.getShortUrlVisits(t,{...c,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),GIe=(e,t)=>bp({name:n9,initialState:WIe,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)=>FU(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),r9="shlink/shortUrlVisitsDeletion",zR={shortCode:"",deletedVisits:0,deleting:!1,error:!1},KIe=e=>fn(`${r9}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),qIe=e=>Qt({name:r9,initialState:zR,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:Fr(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...zR,shortCode:i,domain:o,deletedVisits:a}})}}),i9="shlink/tagVisits",YIe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},ZIe=e=>yp({typePrefix:`${i9}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=gp(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),XIe=e=>bp({name:i9,initialState:YIe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>UU(r,t,n==null?void 0:n.dateRange)}),o9="shlink/visitsOverview",Nm={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},VR=e=>e.filter(({visit:t})=>t.potentialBot).length,QIe=e=>fn(`${o9}/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}}))),JIe=e=>Qt({name:o9,initialState:Nm,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Nm,loading:!0})),t.addCase(e.rejected,()=>({...Nm,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Nm,...r})),t.addCase(Zu,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=eIe(o.createdVisits),c=a.length,l=VR(a),f=c-l,d=s.length,p=VR(s),v=d-p;return{...i,nonOrphanVisits:{total:n.total+c,bots:n.bots&&n.bots+l,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+v}}})}}),e6e=({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(mp,{title:m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(pr,{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(xy,{date:e.dateCreated,relative:!0})}),m.jsx(Dr,{placement:"bottom",target:"created",children:m.jsx(xy,{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(pr,{href:o,children:a??o})]})]})},a9=Fi(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=Mr("shortUrlVisitsDeletion"),{ReportExporter:c}=Rt(a9),l=bE(),f=N.useMemo(()=>{var g;return(g=n.shortUrls)==null?void 0:g.get(l)},[l,n.shortUrls]),d=N.useCallback((g,y)=>r({...l,options:y,params:g}),[r,l]),p=N.useCallback(g=>c.exportVisits(`short-url_${f==null?void 0:f.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,g),[c,f==null?void 0:f.shortUrl]),v=N.useMemo(()=>s?{deleteVisits:()=>o(l),visitsDeletion:t}:void 0,[o,l,t,s]);return N.useEffect(()=>{i([l])},[l,i]),m.jsx(vp,{getVisits:d,cancelGetVisits:a,visitsInfo:e,exportCsv:p,deletion:v,children:m.jsx(e6e,{shortUrl:f,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[er.shortUrlVisits(vE(e.shortCode))]:[]),t6e=$t(a9,["ReportExporter"]),n6e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return m.jsx(mp,{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(fb,{text:r,colorGenerator:t})]}),visits:n})},s9=Fi(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Rt(s9),{tag:o=""}=Tu(),a=N.useCallback((c,l)=>e({tag:o,params:c,options:l}),[e,o]),s=N.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return m.jsx(vp,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:m.jsx(n6e,{tagVisits:t,colorGenerator:r})})},()=>[er.visits]),r6e=$t(s9,["ColorGenerator","ReportExporter"]),jE=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=rr("visits"),c=N.useMemo(()=>Object.keys(a).reduce((_,w,S)=>(_[w]=Object.assign(Py(a[w]),{color:(t==null?void 0:t[w])??$U(S)}),_),{}),[t,a]),l=N.useMemo(()=>Object.values(a).every(_=>_.length===0),[a]),[{dateRange:f,visitsFilter:d},p]=zU(),[v,g]=N.useState(),y=N.useCallback(({startDate:_,endDate:w},S)=>{p({dateRange:{startDate:_??void 0,endDate:w??void 0}}),g(S)},[p]),x=N.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),b=N.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return N.useEffect(()=>{const _=f??fU(x.current);return n({params:{dateRange:_,filter:b}}),i},[i,f,n,b]),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mb-3",children:m.jsxs(yt,{bodyClassName:"d-flex",children:[m.jsx(ub,{}),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(OE,{disabled:o,defaultText:"All visits",dateRangeOrInterval:v??f??x.current,onDatesChange:y})}),m.jsx(WU,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:b,onChange:({orphanVisitsType:_,excludeBots:w})=>p({visitsFilter:{orphanVisitsType:_,excludeBots:w}})})]})}),m.jsx(HU,{info:r}),!o&&m.jsx(tv,{showFallback:l,children:m.jsx(DU,{visitsGroups:c,onDateRangeChange:y})})]})},i6e=Fi(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=pE("domains"),i=N.useCallback(o=>e({...o,domains:r}),[r,e]);return m.jsx(jE,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[er.visits]),o6e=({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(c=>[c,0])),a=(c,l)=>{o[c]=l;const f=Object.values(o),d=f.reduce((p,v)=>p+v,0);n(d/f.length)},s=Object.entries(e).map(([c,l])=>[c,XU({visitsLoader:l,batchSize:i,shouldCancel:t,progressChanged:f=>a(c,f)})]);return async c=>{const l=await Promise.all(s.map(async([f,d])=>{const p=await d(c);return[f,p]}));return Object.fromEntries(l)}},AE=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Qn(`${e}/progressChanged`),i=fn(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),l=await o6e({visitsLoaders:c,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(XO(o.params));return{...o,visitsGroups:l}});return Object.assign(i,{progressChanged:r})},kE=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:l}=Qt({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:Fr(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(Zu,(p,{payload:v})=>{const{visitsGroups:g,...y}=p,x=Object.keys(g).map(_=>{const w=r({...y,groupKey:_},v.createdVisits).map(({visit:S})=>S);return[_,[...w,...g[_]]]}),b=Object.fromEntries(x);return{...y,visitsGroups:b}})}}),{cancelGetVisits:f}=l;return{reducer:c,cancelGetVisits:f}},l9="shlink/domainVisitsComparison",a6e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},s6e=e=>AE({typePrefix:`${l9}/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}),l6e=e=>kE({name:l9,initialState:a6e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>BU(r,t,n==null?void 0:n.dateRange)}),c9="shlink/shortUrlVisitsComparison",c6e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},u6e=e=>AE({typePrefix:`${c9}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[gE(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),f6e=e=>kE({name:c9,initialState:c6e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>FU(r,_B(t),n==null?void 0:n.dateRange)}),u9="shlink/tagVisitsComparison",d6e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},h6e=e=>AE({typePrefix:`${u9}/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}),p6e=e=>kE({name:u9,initialState:d6e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>UU(r,t,n==null?void 0:n.dateRange)}),m6e=Fi(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=pE("short-urls"),a=N.useMemo(()=>o.map(_B),[o]),s=N.useCallback(f=>e({...f,shortUrls:a}),[e,a]),c=N.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),l=N.useMemo(()=>{const{visitsGroups:f,loading:d,...p}=t,v=c.reduce((g,y)=>(g[y.shortUrl]=f[gE(y)]??[],g),{});return{...p,visitsGroups:v,loading:d||r.loading}},[t,r.loading,c]);return N.useEffect(()=>{a.length>0&&i(a)},[i,a]),m.jsx(jE,{title:m.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:l,cancelGetVisitsComparison:n})},()=>[er.visits]),f9=Fi(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Rt(f9),i=pE("tags"),o=N.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=N.useMemo(()=>Object.keys(a).reduce((c,l)=>(c[l]=r.getColorForKey(l),c),{}),[r,a]);return m.jsx(jE,{title:m.jsxs(m.Fragment,{children:["Comparing ",i.map(c=>m.jsx(fb,{colorGenerator:r,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[er.visits]),v6e=$t(f9,["ColorGenerator"]),g6e=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>VU),e.factory("ShortUrlVisits",t6e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",r6e),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",v6e),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>i6e),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>m6e),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",SIe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",CIe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",PIe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>yIe),e.serviceFactory("getShortUrlVisits",HIe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",u6e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",KIe,"apiClientFactory"),e.serviceFactory("getTagVisits",ZIe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",h6e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",NIe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",s6e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",BIe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",zIe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",RIe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Zu),e.serviceFactory("loadVisitsOverview",QIe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",JIe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",MIe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",$Ie,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",UIe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",VIe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",GIe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",qIe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",XIe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",p6e,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",l6e,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",f6e,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},If=({children:e,to:t,className:n,...r})=>m.jsx(TI,{className:({isActive:i})=>Oe("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),y6e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=mr(),r=Oe("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(If,{to:i("/overview"),children:[m.jsx(je,{fixedWidth:!0,icon:Fq}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(If,{to:i("/list-short-urls/1"),className:Oe({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[m.jsx(je,{fixedWidth:!0,icon:oP}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(If,{to:i("/create-short-url"),children:[m.jsx(je,{fixedWidth:!0,icon:Hq,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(If,{to:i("/manage-tags"),children:[m.jsx(je,{fixedWidth:!0,icon:VI}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(If,{to:i("/manage-domains"),children:[m.jsx(je,{fixedWidth:!0,icon:yq}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},d9=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:c,Overview:l,EditShortUrl:f,ManageDomains:d,TagVisitsComparison:p,DomainVisitsComparison:v,ShortUrlVisitsComparison:g,ShortUrlRedirectRules:y}=Rt(d9),x=mr(),b=cs(),[_,w,S,C]=Lt();N.useEffect(()=>C(),[x,C]);const P=Oe("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":_}),T=_Le(S,C),j=Mr("shortUrlRedirectRules");return m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:hq,className:P,onClick:w}),m.jsx("div",{...T,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(y6e,{routePrefix:b,showOnMobile:_}),m.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>C(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(qy,{children:[m.jsx(at,{index:!0,element:m.jsx(QS,{replace:!0,to:"overview"})}),m.jsx(at,{path:"/overview",element:m.jsx(l,{})}),m.jsx(at,{path:"/list-short-urls/:page",element:m.jsx(n,{})}),m.jsx(at,{path:"/create-short-url",element:m.jsx(r,{})}),m.jsx(at,{path:"/short-code/:shortCode/visits/*",element:m.jsx(i,{})}),m.jsx(at,{path:"/short-code/:shortCode/edit",element:m.jsx(f,{})}),j&&m.jsx(at,{path:"/short-code/:shortCode/redirect-rules",element:m.jsx(y,{})}),m.jsx(at,{path:"/short-urls/compare-visits",element:m.jsx(g,{})}),m.jsx(at,{path:"/tag/:tag/visits/*",element:m.jsx(o,{})}),m.jsx(at,{path:"/tags/compare-visits",element:m.jsx(p,{})}),m.jsx(at,{path:"/domain/:domain/visits/*",element:m.jsx(a,{})}),m.jsx(at,{path:"/orphan-visits/*",element:m.jsx(s,{})}),m.jsx(at,{path:"/non-orphan-visits/*",element:m.jsx(c,{})}),m.jsx(at,{path:"/manage-tags",element:m.jsx(t,{})}),m.jsx(at,{path:"/manage-domains",element:m.jsx(d,{})}),m.jsx(at,{path:"/domains/compare-visits",element:m.jsx(v,{})}),e&&m.jsx(at,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},b6e=$t(d9,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),_6e=!0,x6e=e=>FD({devTools:!_6e,reducer:UP({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})}),w6e=e=>{e.factory("Main",b6e),e.factory("store",x6e)},Bi=new FI,{container:O6e}=Bi,S6e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),P6e=(e,t)=>(...n)=>e[t](...n),C6e=(e,t)=>({...e,[t]:P6e(O6e,t)}),Xu=(e,t=[])=>mI(e?S6e(e):null,t.reduce(C6e,{}));w6e(Bi);i$e(Bi,Xu);E$e(Bi,Xu);g6e(Bi,Xu);LLe(Bi);kLe(Bi,Xu);KLe(Bi,Xu);L$e(Bi);o4e(Bi,Xu);let WR;const E6e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=vLe(t),c=N.useRef(),[l,f]=N.useState(),d=vl(),p=N.useMemo(()=>d?N.Fragment:EI,[d]);return N.useEffect(()=>{WR=n,e.value("apiClientFactory",()=>WR),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:g,store:y,loadMercureInfo:x,listTags:b,listDomains:_}=v;c.current=m.jsx(g,{createNotFound:o}),f(y),y.dispatch(x(r)),y.dispatch(b()),y.dispatch(_())},[n,o,r,a]),l?m.jsx(vI,{store:l,children:m.jsx(YD,{value:r??{},children:m.jsx(mLe,{value:s,children:m.jsx(dLe,{value:i,children:m.jsx(p,{children:c.current})})})})}):m.jsx(m.Fragment,{})},T6e="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=",j6e="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==",A6e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",k6e=()=>{delete oR.Icon.Default.prototype._getIconUrl,oR.Icon.Default.mergeOptions({iconRetinaUrl:j6e,iconUrl:T6e,shadowUrl:A6e})};k6e();const N6e=E6e(Bi);function Cy(e){return t=>{const{resetSelectedServer:n}=t;return N.useEffect(()=>{n()},[n]),m.jsx(e,{...t})}}let M6e=class extends N.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(yt,{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(qe,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const L6e=({id:e,name:t})=>m.jsxs(yD,{tag:Pt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(je,{icon:Zq,className:"servers-list__server-item-icon"})]}),h9=({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(vD,{"data-testid":"list",tag:"div",className:Oe("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>m.jsx(L6e,{id:r,name:i},r))})]}),p9=({color:e=Zd,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"})]})}),R6e=({servers:e})=>{const t=ho(),n=Object.values(e),r=n.length>0;return N.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),m.jsx("div",{className:"w-100",children:m.jsx(Ir,{className:"mx-auto",style:{maxWidth:"720px"},children:m.jsxs("div",{className:"d-flex flex-column flex-md-row",children:[m.jsx("div",{className:"p-4 d-none d-md-flex align-items-center",style:{width:"40%"},children:m.jsx("div",{className:"w-100",children:m.jsx(p9,{})})}),m.jsxs("div",{className:"home__servers-container flex-grow-1",children:[m.jsx("h1",{className:Oe("home__title p-4 text-center m-0",{"border-bottom":!r}),style:{borderColor:"var(--border-color) !important"},children:"Welcome!"}),m.jsx(h9,{embedded:!0,servers:n,children:!r&&m.jsxs("div",{className:"p-4 text-center d-flex flex-column gap-5",children:[m.jsx("p",{className:"mb-0",children:"This application will help you manage your Shlink servers."}),m.jsx("p",{className:"mb-0",children:m.jsxs(Pt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(je,{icon:Wh})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0",children:m.jsx(pr,{href:"https://shlink.io/documentation",children:m.jsxs("small",{children:[m.jsx("span",{className:"me-2",children:"Learn more about Shlink"}),m.jsx(je,{icon:Aq})]})})})]})})]})]})})})},m9=()=>{const{ServersDropdown:e}=$i(m9),[t,n,,r]=Lt(),i=mr(),{pathname:o}=i;N.useEffect(r,[i,r]);const a="/settings",s=Oe("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(F6,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(B6,{tag:Pt,to:"/",children:[m.jsx(p9,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(U6,{onClick:n,children:m.jsx(je,{icon:qq,className:s})}),m.jsx(LP,{navbar:!0,isOpen:t,children:m.jsxs(SP,{navbar:!0,className:"ms-auto",children:[m.jsx(PP,{children:m.jsxs(CP,{tag:Pt,to:a,active:o.startsWith(a),children:[m.jsx(je,{icon:Jq})," Settings"]})}),m.jsx(e,{})]})})]})},$6e=Ii(m9,["ServersDropdown"]),I6e=({children:e})=>{const t=mr();return N.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},v9=HD(e=>e,e=>{try{return o2(e,e,"=")}catch{return!1}}),g9=e=>v9(e)?`v${e}`:e,y9=(e,t="latest")=>v9(e)?e:t,D6e="%_VERSION_%",F6e=e=>g9(y9(e)),HR=({project:e,version:t})=>m.jsx(pr,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),B6e=({selectedServer:e,clientVersion:t=D6e})=>{const n=F6e(t);return m.jsxs("small",{className:"text-muted",children:[rP(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx(HR,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx(HR,{project:"shlink-web-client",version:n})]})},U6e=({selectedServer:e})=>m.jsx("div",{className:Oe("text-center",{"shlink-versions-container--with-sidebar":rP(e)}),children:m.jsx(B6e,{selectedServer:e})}),Qu=({children:e,className:t})=>m.jsx("div",{className:Oe("no-menu-wrapper container-xl",t),children:e});function b9(e){const t=n=>{const{ServerError:r}=$i(t),i=Tu(),{selectServer:o,selectedServer:a}=n;return N.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?JK(a)?m.jsx(r,{}):m.jsx(e,{...n}):m.jsx(Qu,{children:m.jsx(zo,{loading:!0})})};return t}const _9=b9(N.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=$i(_9);if(!rP(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(ED,{to:`${a}${s}`,children:"List short URLs"})})})),z6e=Ii(_9,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),V6e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Soe,"fetch"),e.serviceFactory("ScrollToTop",()=>I6e),e.factory("MainHeader",$6e),e.serviceFactory("Home",()=>R6e),e.decorator("Home",Cy),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>N6e),e.factory("ShlinkWebComponentContainer",z6e),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>U6e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>M6e)},x9=()=>{const e=ho();return N.useCallback(()=>e(-1),[e])};function W6e(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function H6e(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const G6e=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function K6e(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=WD(t,o=>G6e(n,o)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function Ey(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const o=W6e(i);let a=o,s=1;for(;n.has(a);)a=`${o}-${s}`,s++;r.push({...i,id:a}),n.add(a)}),r}const w9=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs(gr,{centered:!0,isOpen:e,children:[m.jsxs(po,{children:["Duplicated server",i&&"s"]}),m.jsxs(Ri,{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(N.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(Jo,{children:[m.jsx(qe,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),m.jsx(qe,{color:"primary",onClick:r,children:"Save anyway"})]})]})},q6e=e=>t=>{t.preventDefault(),e()},O9=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=N.useState((t==null?void 0:t.name)??""),[a,s]=N.useState((t==null?void 0:t.url)??""),[c,l]=N.useState((t==null?void 0:t.apiKey)??""),f=q6e(()=>e({name:i,url:a,apiKey:c}));return m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(yt,{className:"mb-3",title:r,children:[m.jsx(Zm,{value:i,onChange:o,children:"Name"}),m.jsx(Zm,{type:"url",value:a,onChange:s,children:"URL"}),m.jsx(Zm,{value:c,onChange:l,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},GR=4e3,KR=({type:e})=>m.jsx("div",{className:"mt-3",children:m.jsxs(Xn,{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."]})}),S9=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=$i(S9),i=ho(),o=x9(),a=!!Object.keys(e).length,[s,c]=r(!1,GR),[l,f]=r(!1,GR),[d,p]=Lt(),[v,g]=N.useState(),y=N.useCallback(b=>{const[_]=Ey(e,[b]);t([_]),i(`/server/${_.id}`)},[t,i,e]),x=N.useCallback(b=>{g(b),Object.values(e).some(({url:w,apiKey:S})=>b.url===w&&b.apiKey===S)?p():y(b)},[y,e,p]);return m.jsxs(Qu,{children:[m.jsxs(O9,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:x,children:[!a&&m.jsx(n,{tooltipPlacement:"top",onImport:c,onImportError:f}),a&&m.jsx(qe,{outline:!0,onClick:o,children:"Cancel"}),m.jsx(qe,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&m.jsx(KR,{type:"success"}),l&&m.jsx(KR,{type:"error"}),m.jsx(w9,{isOpen:d,duplicatedServers:v?[v]:[],onDiscard:o,onSave:()=>v&&y(v)})]})},Y6e=Ii(S9,["ImportServersBtn","useTimeoutToggle"]),P9=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=$i(P9),[o,,a,s]=Lt();return m.jsxs(m.Fragment,{children:[m.jsxs("button",{type:"button",className:Oe(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&m.jsx(je,{fixedWidth:!0,icon:iP}),m.jsx("span",{className:r,children:n??"Remove this server"})]}),m.jsx(i,{server:e,isOpen:o,toggle:s})]})},Z6e=Ii(P9,["DeleteServerModal"]),X6e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=ho(),a=N.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(r(e),i&&o("/"))};return m.jsxs(gr,{isOpen:n,toggle:t,centered:!0,onClosed:c,children:[m.jsx(po,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(Ri,{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(Jo,{children:[m.jsx(qe,{color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"danger",onClick:s,children:"Delete"})]})]})},Q6e=b9(({editServer:e,selectedServer:t,selectServer:n})=>{const r=x9(),{reconnect:i}=ku();if(!rd(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return m.jsx(Qu,{children:m.jsxs(O9,{title:m.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[m.jsx(qe,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),m.jsx(qe,{outline:!0,color:"primary",children:"Save"})]})})}),J6e=Ii(Q6e,["ServerError"]),C9=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=$i(C9),c=ci(),[l,f]=N.useState([]),[d,,p,v]=Lt(),g=N.useRef([]),y=N.useRef([]),x=N.useCallback(S=>{e(S),r()},[e,r]),b=N.useCallback(async({target:S})=>{var C;return s.importServersFromFile((C=S.files)==null?void 0:C[0]).then(P=>{const{duplicatedServers:T,newServers:j}=K6e(t,P);g.current=Ey(t,P),y.current=Ey(t,j),T.length===0?x(g.current):(f(T),p())}).then(()=>{S.value=null}).catch(i)},[x,i,t,s,p]),_=N.useCallback(()=>{x(g.current),v()},[x,v]),w=N.useCallback(()=>{x(y.current),v()},[x,v]);return m.jsxs(m.Fragment,{children:[m.jsxs(qe,{outline:!0,id:"importBtn",className:a,onClick:()=>{var S;return(S=c.current)==null?void 0:S.click()},children:[m.jsx(je,{icon:xq,fixedWidth:!0})," ",n??"Import from file"]}),m.jsxs(Dr,{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:".csv",className:"d-none","aria-hidden":!0,ref:c,onChange:b,"data-testid":"csv-file-input"}),m.jsx(w9,{isOpen:d,duplicatedServers:l,onDiscard:w,onSave:_})]})},eDe=Ii(C9,["ServersImporter"]),E9=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=$i(E9);return m.jsx(Qu,{children:m.jsxs("div",{className:"server-error__container flex-column",children:[m.jsxs(zo,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!rd(t)&&"Could not find this Shlink server.",rd(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(h9,{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(Pt,{to:"/server/create",children:"add a new one"}),"."]})}),rd(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(Pt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},tDe=Ii(E9,["DeleteServerButton"]),nDe=4e3,T9=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=$i(T9),[o,a]=N.useState(""),s=N.useMemo(()=>Object.values(e),[e]),c=N.useMemo(()=>s.filter(({name:p,url:v})=>`${p} ${v}`.toLowerCase().match(o.toLowerCase())),[s,o]),l=s.some(({autoConnect:p})=>!!p),[f,d]=r(!1,nDe);return m.jsxs(Qu,{className:"d-flex flex-column gap-3",children:[m.jsx(Jh,{onChange:a}),m.jsxs("div",{className:"d-flex flex-column flex-md-row gap-2",children:[m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(n,{className:"flex-fill",onImportError:d,children:"Import servers"}),c.length>0&&m.jsxs(qe,{outline:!0,className:"flex-fill",onClick:async()=>t.exportServers(),children:[m.jsx(je,{icon:WI,fixedWidth:!0})," Export servers"]})]}),m.jsxs(qe,{outline:!0,color:"primary",className:"ms-md-auto",tag:Pt,to:"/server/create",children:[m.jsx(je,{icon:Wh,fixedWidth:!0})," Add a server"]})]}),m.jsx(yt,{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:[l&&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:[!c.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),c.map(p=>m.jsx(i,{server:p,hasAutoConnect:l},p.id))]})]})}),f&&m.jsx("div",{children:m.jsx(Xn,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},rDe=Ii(T9,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),j9=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=$i(j9);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(je,{icon:Ud,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Dr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(Pt,{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})})]})},iDe=Ii(j9,["ManageServersRowDropdown"]),A9=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=$i(A9),[r,,i,o]=Lt(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?bq:rae;return m.jsxs(o0,{minWidth:s?210:170,children:[m.jsxs(ke,{tag:Pt,to:a,children:[m.jsx(je,{icon:gq,fixedWidth:!0})," Connect"]}),m.jsxs(ke,{tag:Pt,to:`${a}/edit`,children:[m.jsx(je,{icon:aP,fixedWidth:!0})," Edit server"]}),m.jsxs(ke,{onClick:()=>t(e,!s),children:[m.jsx(je,{icon:c,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(je,{icon:iP,fixedWidth:!0})," Remove server"]}),m.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},oDe=Ii(A9,["DeleteServerModal"]),k9=(e,t)=>UD(e,t,{serializeError:n=>n}),aDe={},{actions:sDe,reducer:lDe}=Qt({name:"shlink/servers",initialState:aDe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:H6e(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:cDe,deleteServer:uDe,setAutoConnect:fDe,createServers:N9}=sDe,dDe=lDe,hDe=e=>Ey({},Array.isArray(e)?e.filter(BI):[]),pDe=e=>k9("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${kv.homepage}/servers.json`),i=hDe(r);n(N9(i))}),NE="shlink/selectedServer",mDe="1.0.0",vDe="999.999.999",gDe="latest",yDe=e=>y9(e===gDe?vDe:e,mDe),bDe=HD(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:yDe(n),printableVersion:g9(n)}))),qR=null,ME=Qn(`${NE}/resetSelectedServer`),_De=e=>k9(`${NE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(ME());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await bDe(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),xDe=e=>Qt({name:NE,initialState:qR,reducers:{},extraReducers:t=>{t.addCase(ME,()=>qR),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),wDe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?m.jsxs(ke,{tag:Pt,to:"/server/create",children:[m.jsx(je,{icon:Wh})," ",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:Pt,to:`/server/${o}`,active:eq(t)===o,children:i},o)),m.jsx(ke,{divider:!0,tag:"hr"}),m.jsxs(ke,{tag:Pt,to:"/manage-servers",children:[m.jsx(je,{icon:oA})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs(Qh,{nav:!0,inNavbar:!0,children:[m.jsxs(Qo,{nav:!0,caret:!0,children:[m.jsx(je,{icon:oA})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(rs,{end:!0,style:{right:0},children:r()})]})},ODe=({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)},SDe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);ODe(e,i,n)},PDe="shlink-servers.csv";class CDe{constructor(t,n,r){Ml(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(tq);try{const n=this.jsonToCsv(t);SDe(this.window,n,PDe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const EDe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",TDe=e=>Array.isArray(e)&&e.every(EDe);class jDe{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(!TDe(r))throw new Error("Provided file does not have the right format.");return r}}const ADe=(e,t)=>{e.factory("ManageServers",rDe),e.decorator("ManageServers",Cy),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",iDe),e.factory("ManageServersRowDropdown",oDe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",Y6e),e.decorator("CreateServer",Cy),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",J6e),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>wDe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>X6e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",Z6e),e.factory("ImportServersBtn",eDe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",tDe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",jDe,"csvToJson"),e.service("ServersExporter",CDe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",_De,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>N9),e.serviceFactory("deleteServer",()=>uDe),e.serviceFactory("editServer",()=>cDe),e.serviceFactory("setAutoConnect",()=>fDe),e.serviceFactory("fetchServers",pDe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>ME),e.serviceFactory("selectedServerReducerCreator",xDe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},M9={field:"dateCreated",dir:"DESC"},kDe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:FP()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:M9}},{reducer:NDe,actions:MDe}=Qt({name:"shlink/settings",initialState:kDe,reducers:{setSettings:(e,{payload:t})=>f0(e,t)}}),{setSettings:LDe}=MDe,RDe=NDe,$De=({settings:e,setSettings:t})=>m.jsx(Qu,{children:m.jsx(eae,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:M9})}),IDe=(e,t)=>{e.serviceFactory("Settings",()=>$De),e.decorator("Settings",Cy),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>LDe)};var DDe=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 x in g)y.push(x);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 c=i(s.prototype),l=0;l<c.length;l++){var f=c[l];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 l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(A,k){if(s()<k)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(A=new Uint8Array(k)).__proto__=l.prototype:(A===null&&(A=new l(k)),A.length=k),A}function l(A,k,z){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(A,k,z);if(typeof A=="number"){if(typeof k=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,A)}return f(this,A,k,z)}function f(A,k,z,J){if(typeof k=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&k instanceof ArrayBuffer?function(Y,ie,de,Ce){if(ie.byteLength,de<0||ie.byteLength<de)throw new RangeError("'offset' is out of bounds");if(ie.byteLength<de+(Ce||0))throw new RangeError("'length' is out of bounds");return ie=de===void 0&&Ce===void 0?new Uint8Array(ie):Ce===void 0?new Uint8Array(ie,de):new Uint8Array(ie,de,Ce),l.TYPED_ARRAY_SUPPORT?(Y=ie).__proto__=l.prototype:Y=v(Y,ie),Y}(A,k,z,J):typeof k=="string"?function(Y,ie,de){if(typeof de=="string"&&de!==""||(de="utf8"),!l.isEncoding(de))throw new TypeError('"encoding" must be a valid string encoding');var Ce=0|y(ie,de),se=(Y=c(Y,Ce)).write(ie,de);return se!==Ce&&(Y=Y.slice(0,se)),Y}(A,k,z):function(Y,ie){if(l.isBuffer(ie)){var de=0|g(ie.length);return(Y=c(Y,de)).length===0||ie.copy(Y,0,0,de),Y}if(ie){if(typeof ArrayBuffer<"u"&&ie.buffer instanceof ArrayBuffer||"length"in ie)return typeof ie.length!="number"||function(Ce){return Ce!=Ce}(ie.length)?c(Y,0):v(Y,ie);if(ie.type==="Buffer"&&a(ie.data))return v(Y,ie.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(A,k)}function d(A){if(typeof A!="number")throw new TypeError('"size" argument must be a number');if(A<0)throw new RangeError('"size" argument must not be negative')}function p(A,k){if(d(k),A=c(A,k<0?0:0|g(k)),!l.TYPED_ARRAY_SUPPORT)for(var z=0;z<k;++z)A[z]=0;return A}function v(A,k){var z=k.length<0?0:0|g(k.length);A=c(A,z);for(var J=0;J<z;J+=1)A[J]=255&k[J];return A}function g(A){if(A>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|A}function y(A,k){if(l.isBuffer(A))return A.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(A)||A instanceof ArrayBuffer))return A.byteLength;typeof A!="string"&&(A=""+A);var z=A.length;if(z===0)return 0;for(var J=!1;;)switch(k){case"ascii":case"latin1":case"binary":return z;case"utf8":case"utf-8":case void 0:return re(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*z;case"hex":return z>>>1;case"base64":return ae(A).length;default:if(J)return re(A).length;k=(""+k).toLowerCase(),J=!0}}function x(A,k,z){var J=A[k];A[k]=A[z],A[z]=J}function b(A,k,z,J,Y){if(A.length===0)return-1;if(typeof z=="string"?(J=z,z=0):z>2147483647?z=2147483647:z<-2147483648&&(z=-2147483648),z=+z,isNaN(z)&&(z=Y?0:A.length-1),z<0&&(z=A.length+z),z>=A.length){if(Y)return-1;z=A.length-1}else if(z<0){if(!Y)return-1;z=0}if(typeof k=="string"&&(k=l.from(k,J)),l.isBuffer(k))return k.length===0?-1:_(A,k,z,J,Y);if(typeof k=="number")return k&=255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(A,k,z):Uint8Array.prototype.lastIndexOf.call(A,k,z):_(A,[k],z,J,Y);throw new TypeError("val must be string, number or Buffer")}function _(A,k,z,J,Y){var ie,de=1,Ce=A.length,se=k.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(A.length<2||k.length<2)return-1;de=2,Ce/=2,se/=2,z/=2}function pe(Te,Ae){return de===1?Te[Ae]:Te.readUInt16BE(Ae*de)}if(Y){var ve=-1;for(ie=z;ie<Ce;ie++)if(pe(A,ie)===pe(k,ve===-1?0:ie-ve)){if(ve===-1&&(ve=ie),ie-ve+1===se)return ve*de}else ve!==-1&&(ie-=ie-ve),ve=-1}else for(z+se>Ce&&(z=Ce-se),ie=z;ie>=0;ie--){for(var xe=!0,Ne=0;Ne<se;Ne++)if(pe(A,ie+Ne)!==pe(k,Ne)){xe=!1;break}if(xe)return ie}return-1}function w(A,k,z,J){z=Number(z)||0;var Y=A.length-z;J?(J=Number(J))>Y&&(J=Y):J=Y;var ie=k.length;if(ie%2!=0)throw new TypeError("Invalid hex string");J>ie/2&&(J=ie/2);for(var de=0;de<J;++de){var Ce=parseInt(k.substr(2*de,2),16);if(isNaN(Ce))return de;A[z+de]=Ce}return de}function S(A,k,z,J){return fe(re(k,A.length-z),A,z,J)}function C(A,k,z,J){return fe(function(Y){for(var ie=[],de=0;de<Y.length;++de)ie.push(255&Y.charCodeAt(de));return ie}(k),A,z,J)}function P(A,k,z,J){return C(A,k,z,J)}function T(A,k,z,J){return fe(ae(k),A,z,J)}function j(A,k,z,J){return fe(function(Y,ie){for(var de,Ce,se,pe=[],ve=0;ve<Y.length&&!((ie-=2)<0);++ve)Ce=(de=Y.charCodeAt(ve))>>8,se=de%256,pe.push(se),pe.push(Ce);return pe}(k,A.length-z),A,z,J)}function $(A,k,z){return k===0&&z===A.length?i.fromByteArray(A):i.fromByteArray(A.slice(k,z))}function M(A,k,z){z=Math.min(A.length,z);for(var J=[],Y=k;Y<z;){var ie,de,Ce,se,pe=A[Y],ve=null,xe=pe>239?4:pe>223?3:pe>191?2:1;if(Y+xe<=z)switch(xe){case 1:pe<128&&(ve=pe);break;case 2:(192&(ie=A[Y+1]))==128&&(se=(31&pe)<<6|63&ie)>127&&(ve=se);break;case 3:ie=A[Y+1],de=A[Y+2],(192&ie)==128&&(192&de)==128&&(se=(15&pe)<<12|(63&ie)<<6|63&de)>2047&&(se<55296||se>57343)&&(ve=se);break;case 4:ie=A[Y+1],de=A[Y+2],Ce=A[Y+3],(192&ie)==128&&(192&de)==128&&(192&Ce)==128&&(se=(15&pe)<<18|(63&ie)<<12|(63&de)<<6|63&Ce)>65535&&se<1114112&&(ve=se)}ve===null?(ve=65533,xe=1):ve>65535&&(ve-=65536,J.push(ve>>>10&1023|55296),ve=56320|1023&ve),J.push(ve),Y+=xe}return function(Ne){var Te=Ne.length;if(Te<=I)return String.fromCharCode.apply(String,Ne);for(var Ae="",le=0;le<Te;)Ae+=String.fromCharCode.apply(String,Ne.slice(le,le+=I));return Ae}(J)}t.Buffer=l,t.SlowBuffer=function(A){return+A!=A&&(A=0),l.alloc(+A)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var A=new Uint8Array(1);return A.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},A.foo()===42&&typeof A.subarray=="function"&&A.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(A){return A.__proto__=l.prototype,A},l.from=function(A,k,z){return f(null,A,k,z)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(A,k,z){return function(J,Y,ie,de){return d(Y),Y<=0?c(J,Y):ie!==void 0?typeof de=="string"?c(J,Y).fill(ie,de):c(J,Y).fill(ie):c(J,Y)}(null,A,k,z)},l.allocUnsafe=function(A){return p(null,A)},l.allocUnsafeSlow=function(A){return p(null,A)},l.isBuffer=function(A){return!(A==null||!A._isBuffer)},l.compare=function(A,k){if(!l.isBuffer(A)||!l.isBuffer(k))throw new TypeError("Arguments must be Buffers");if(A===k)return 0;for(var z=A.length,J=k.length,Y=0,ie=Math.min(z,J);Y<ie;++Y)if(A[Y]!==k[Y]){z=A[Y],J=k[Y];break}return z<J?-1:J<z?1:0},l.isEncoding=function(A){switch(String(A).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}},l.concat=function(A,k){if(!a(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return l.alloc(0);var z;if(k===void 0)for(k=0,z=0;z<A.length;++z)k+=A[z].length;var J=l.allocUnsafe(k),Y=0;for(z=0;z<A.length;++z){var ie=A[z];if(!l.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(J,Y),Y+=ie.length}return J},l.byteLength=y,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<A;k+=2)x(this,k,k+1);return this},l.prototype.swap32=function(){var A=this.length;if(A%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<A;k+=4)x(this,k,k+3),x(this,k+1,k+2);return this},l.prototype.swap64=function(){var A=this.length;if(A%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<A;k+=8)x(this,k,k+7),x(this,k+1,k+6),x(this,k+2,k+5),x(this,k+3,k+4);return this},l.prototype.toString=function(){var A=0|this.length;return A===0?"":arguments.length===0?M(this,0,A):(function(k,z,J){var Y=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=(z>>>=0))return"";for(k||(k="utf8");;)switch(k){case"hex":return H(this,z,J);case"utf8":case"utf-8":return M(this,z,J);case"ascii":return F(this,z,J);case"latin1":case"binary":return q(this,z,J);case"base64":return $(this,z,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,z,J);default:if(Y)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),Y=!0}}).apply(this,arguments)},l.prototype.equals=function(A){if(!l.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||l.compare(this,A)===0},l.prototype.inspect=function(){var A="",k=t.INSPECT_MAX_BYTES;return this.length>0&&(A=this.toString("hex",0,k).match(/.{2}/g).join(" "),this.length>k&&(A+=" ... ")),"<Buffer "+A+">"},l.prototype.compare=function(A,k,z,J,Y){if(!l.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(k===void 0&&(k=0),z===void 0&&(z=A?A.length:0),J===void 0&&(J=0),Y===void 0&&(Y=this.length),k<0||z>A.length||J<0||Y>this.length)throw new RangeError("out of range index");if(J>=Y&&k>=z)return 0;if(J>=Y)return-1;if(k>=z)return 1;if(k>>>=0,z>>>=0,J>>>=0,Y>>>=0,this===A)return 0;for(var ie=Y-J,de=z-k,Ce=Math.min(ie,de),se=this.slice(J,Y),pe=A.slice(k,z),ve=0;ve<Ce;++ve)if(se[ve]!==pe[ve]){ie=se[ve],de=pe[ve];break}return ie<de?-1:de<ie?1:0},l.prototype.includes=function(A,k,z){return this.indexOf(A,k,z)!==-1},l.prototype.indexOf=function(A,k,z){return b(this,A,k,z,!0)},l.prototype.lastIndexOf=function(A,k,z){return b(this,A,k,z,!1)},l.prototype.write=function(A,k,z,J){if(k===void 0)J="utf8",z=this.length,k=0;else if(z===void 0&&typeof k=="string")J=k,z=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k|=0,isFinite(z)?(z|=0,J===void 0&&(J="utf8")):(J=z,z=void 0)}var Y=this.length-k;if((z===void 0||z>Y)&&(z=Y),A.length>0&&(z<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var ie=!1;;)switch(J){case"hex":return w(this,A,k,z);case"utf8":case"utf-8":return S(this,A,k,z);case"ascii":return C(this,A,k,z);case"latin1":case"binary":return P(this,A,k,z);case"base64":return T(this,A,k,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,A,k,z);default:if(ie)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),ie=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function F(A,k,z){var J="";z=Math.min(A.length,z);for(var Y=k;Y<z;++Y)J+=String.fromCharCode(127&A[Y]);return J}function q(A,k,z){var J="";z=Math.min(A.length,z);for(var Y=k;Y<z;++Y)J+=String.fromCharCode(A[Y]);return J}function H(A,k,z){var J=A.length;(!k||k<0)&&(k=0),(!z||z<0||z>J)&&(z=J);for(var Y="",ie=k;ie<z;++ie)Y+=ne(A[ie]);return Y}function Z(A,k,z){for(var J=A.slice(k,z),Y="",ie=0;ie<J.length;ie+=2)Y+=String.fromCharCode(J[ie]+256*J[ie+1]);return Y}function Q(A,k,z){if(A%1!=0||A<0)throw new RangeError("offset is not uint");if(A+k>z)throw new RangeError("Trying to access beyond buffer length")}function te(A,k,z,J,Y,ie){if(!l.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>Y||k<ie)throw new RangeError('"value" argument is out of bounds');if(z+J>A.length)throw new RangeError("Index out of range")}function X(A,k,z,J){k<0&&(k=65535+k+1);for(var Y=0,ie=Math.min(A.length-z,2);Y<ie;++Y)A[z+Y]=(k&255<<8*(J?Y:1-Y))>>>8*(J?Y:1-Y)}function U(A,k,z,J){k<0&&(k=4294967295+k+1);for(var Y=0,ie=Math.min(A.length-z,4);Y<ie;++Y)A[z+Y]=k>>>8*(J?Y:3-Y)&255}function B(A,k,z,J,Y,ie){if(z+J>A.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("Index out of range")}function W(A,k,z,J,Y){return Y||B(A,0,z,4),o.write(A,k,z,J,23,4),z+4}function ee(A,k,z,J,Y){return Y||B(A,0,z,8),o.write(A,k,z,J,52,8),z+8}l.prototype.slice=function(A,k){var z,J=this.length;if(A=~~A,k=k===void 0?J:~~k,A<0?(A+=J)<0&&(A=0):A>J&&(A=J),k<0?(k+=J)<0&&(k=0):k>J&&(k=J),k<A&&(k=A),l.TYPED_ARRAY_SUPPORT)(z=this.subarray(A,k)).__proto__=l.prototype;else{var Y=k-A;z=new l(Y,void 0);for(var ie=0;ie<Y;++ie)z[ie]=this[ie+A]}return z},l.prototype.readUIntLE=function(A,k,z){A|=0,k|=0,z||Q(A,k,this.length);for(var J=this[A],Y=1,ie=0;++ie<k&&(Y*=256);)J+=this[A+ie]*Y;return J},l.prototype.readUIntBE=function(A,k,z){A|=0,k|=0,z||Q(A,k,this.length);for(var J=this[A+--k],Y=1;k>0&&(Y*=256);)J+=this[A+--k]*Y;return J},l.prototype.readUInt8=function(A,k){return k||Q(A,1,this.length),this[A]},l.prototype.readUInt16LE=function(A,k){return k||Q(A,2,this.length),this[A]|this[A+1]<<8},l.prototype.readUInt16BE=function(A,k){return k||Q(A,2,this.length),this[A]<<8|this[A+1]},l.prototype.readUInt32LE=function(A,k){return k||Q(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},l.prototype.readUInt32BE=function(A,k){return k||Q(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},l.prototype.readIntLE=function(A,k,z){A|=0,k|=0,z||Q(A,k,this.length);for(var J=this[A],Y=1,ie=0;++ie<k&&(Y*=256);)J+=this[A+ie]*Y;return J>=(Y*=128)&&(J-=Math.pow(2,8*k)),J},l.prototype.readIntBE=function(A,k,z){A|=0,k|=0,z||Q(A,k,this.length);for(var J=k,Y=1,ie=this[A+--J];J>0&&(Y*=256);)ie+=this[A+--J]*Y;return ie>=(Y*=128)&&(ie-=Math.pow(2,8*k)),ie},l.prototype.readInt8=function(A,k){return k||Q(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},l.prototype.readInt16LE=function(A,k){k||Q(A,2,this.length);var z=this[A]|this[A+1]<<8;return 32768&z?4294901760|z:z},l.prototype.readInt16BE=function(A,k){k||Q(A,2,this.length);var z=this[A+1]|this[A]<<8;return 32768&z?4294901760|z:z},l.prototype.readInt32LE=function(A,k){return k||Q(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},l.prototype.readInt32BE=function(A,k){return k||Q(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},l.prototype.readFloatLE=function(A,k){return k||Q(A,4,this.length),o.read(this,A,!0,23,4)},l.prototype.readFloatBE=function(A,k){return k||Q(A,4,this.length),o.read(this,A,!1,23,4)},l.prototype.readDoubleLE=function(A,k){return k||Q(A,8,this.length),o.read(this,A,!0,52,8)},l.prototype.readDoubleBE=function(A,k){return k||Q(A,8,this.length),o.read(this,A,!1,52,8)},l.prototype.writeUIntLE=function(A,k,z,J){A=+A,k|=0,z|=0,J||te(this,A,k,z,Math.pow(2,8*z)-1,0);var Y=1,ie=0;for(this[k]=255&A;++ie<z&&(Y*=256);)this[k+ie]=A/Y&255;return k+z},l.prototype.writeUIntBE=function(A,k,z,J){A=+A,k|=0,z|=0,J||te(this,A,k,z,Math.pow(2,8*z)-1,0);var Y=z-1,ie=1;for(this[k+Y]=255&A;--Y>=0&&(ie*=256);)this[k+Y]=A/ie&255;return k+z},l.prototype.writeUInt8=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,1,255,0),l.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[k]=255&A,k+1},l.prototype.writeUInt16LE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[k]=255&A,this[k+1]=A>>>8):X(this,A,k,!0),k+2},l.prototype.writeUInt16BE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[k]=A>>>8,this[k+1]=255&A):X(this,A,k,!1),k+2},l.prototype.writeUInt32LE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[k+3]=A>>>24,this[k+2]=A>>>16,this[k+1]=A>>>8,this[k]=255&A):U(this,A,k,!0),k+4},l.prototype.writeUInt32BE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=255&A):U(this,A,k,!1),k+4},l.prototype.writeIntLE=function(A,k,z,J){if(A=+A,k|=0,!J){var Y=Math.pow(2,8*z-1);te(this,A,k,z,Y-1,-Y)}var ie=0,de=1,Ce=0;for(this[k]=255&A;++ie<z&&(de*=256);)A<0&&Ce===0&&this[k+ie-1]!==0&&(Ce=1),this[k+ie]=(A/de>>0)-Ce&255;return k+z},l.prototype.writeIntBE=function(A,k,z,J){if(A=+A,k|=0,!J){var Y=Math.pow(2,8*z-1);te(this,A,k,z,Y-1,-Y)}var ie=z-1,de=1,Ce=0;for(this[k+ie]=255&A;--ie>=0&&(de*=256);)A<0&&Ce===0&&this[k+ie+1]!==0&&(Ce=1),this[k+ie]=(A/de>>0)-Ce&255;return k+z},l.prototype.writeInt8=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,1,127,-128),l.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[k]=255&A,k+1},l.prototype.writeInt16LE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[k]=255&A,this[k+1]=A>>>8):X(this,A,k,!0),k+2},l.prototype.writeInt16BE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[k]=A>>>8,this[k+1]=255&A):X(this,A,k,!1),k+2},l.prototype.writeInt32LE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[k]=255&A,this[k+1]=A>>>8,this[k+2]=A>>>16,this[k+3]=A>>>24):U(this,A,k,!0),k+4},l.prototype.writeInt32BE=function(A,k,z){return A=+A,k|=0,z||te(this,A,k,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),l.TYPED_ARRAY_SUPPORT?(this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=255&A):U(this,A,k,!1),k+4},l.prototype.writeFloatLE=function(A,k,z){return W(this,A,k,!0,z)},l.prototype.writeFloatBE=function(A,k,z){return W(this,A,k,!1,z)},l.prototype.writeDoubleLE=function(A,k,z){return ee(this,A,k,!0,z)},l.prototype.writeDoubleBE=function(A,k,z){return ee(this,A,k,!1,z)},l.prototype.copy=function(A,k,z,J){if(z||(z=0),J||J===0||(J=this.length),k>=A.length&&(k=A.length),k||(k=0),J>0&&J<z&&(J=z),J===z||A.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(z<0||z>=this.length)throw new RangeError("sourceStart out of bounds");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),A.length-k<J-z&&(J=A.length-k+z);var Y,ie=J-z;if(this===A&&z<k&&k<J)for(Y=ie-1;Y>=0;--Y)A[Y+k]=this[Y+z];else if(ie<1e3||!l.TYPED_ARRAY_SUPPORT)for(Y=0;Y<ie;++Y)A[Y+k]=this[Y+z];else Uint8Array.prototype.set.call(A,this.subarray(z,z+ie),k);return ie},l.prototype.fill=function(A,k,z,J){if(typeof A=="string"){if(typeof k=="string"?(J=k,k=0,z=this.length):typeof z=="string"&&(J=z,z=this.length),A.length===1){var Y=A.charCodeAt(0);Y<256&&(A=Y)}if(J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!l.isEncoding(J))throw new TypeError("Unknown encoding: "+J)}else typeof A=="number"&&(A&=255);if(k<0||this.length<k||this.length<z)throw new RangeError("Out of range index");if(z<=k)return this;var ie;if(k>>>=0,z=z===void 0?this.length:z>>>0,A||(A=0),typeof A=="number")for(ie=k;ie<z;++ie)this[ie]=A;else{var de=l.isBuffer(A)?A:re(new l(A,J).toString()),Ce=de.length;for(ie=0;ie<z-k;++ie)this[ie+k]=de[ie%Ce]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function ne(A){return A<16?"0"+A.toString(16):A.toString(16)}function re(A,k){var z;k=k||1/0;for(var J=A.length,Y=null,ie=[],de=0;de<J;++de){if((z=A.charCodeAt(de))>55295&&z<57344){if(!Y){if(z>56319){(k-=3)>-1&&ie.push(239,191,189);continue}if(de+1===J){(k-=3)>-1&&ie.push(239,191,189);continue}Y=z;continue}if(z<56320){(k-=3)>-1&&ie.push(239,191,189),Y=z;continue}z=65536+(Y-55296<<10|z-56320)}else Y&&(k-=3)>-1&&ie.push(239,191,189);if(Y=null,z<128){if((k-=1)<0)break;ie.push(z)}else if(z<2048){if((k-=2)<0)break;ie.push(z>>6|192,63&z|128)}else if(z<65536){if((k-=3)<0)break;ie.push(z>>12|224,z>>6&63|128,63&z|128)}else{if(!(z<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;ie.push(z>>18|240,z>>12&63|128,z>>6&63|128,63&z|128)}}return ie}function ae(A){return i.toByteArray(function(k){if((k=function(z){return z.trim?z.trim():z.replace(/^\s+|\s+$/g,"")}(k).replace(G,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k}(A))}function fe(A,k,z,J){for(var Y=0;Y<J&&!(Y+z>=k.length||Y>=A.length);++Y)k[Y+z]=A[Y];return Y}}).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(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var c,l=[],f=!1,d=-1;function p(){f&&c&&(f=!1,c.length?l=c.concat(l):d=-1,l.length&&v())}function v(){if(!f){var x=s(p);f=!0;for(var b=l.length;b;){for(c=l,l=[];++d<b;)c&&c[d].run();d=-1,b=l.length}c=null,f=!1,function(_){if(r===clearTimeout)return clearTimeout(_);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(_);try{r(_)}catch{try{return r.call(null,_)}catch{return r.call(this,_)}}}(x)}}function g(x,b){this.fun=x,this.array=b}function y(){}i.nextTick=function(x){var b=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)b[_-1]=arguments[_];l.push(new g(x,b)),l.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(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){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 c,l,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(c=new Array(f-1),l=0;l<c.length;)c[l++]=arguments[l];return r.nextTick(function(){i.apply(null,c)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,c){for(var l in s)c[l]=s[l]}function a(s,c,l){return i(s,c,l)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,c,l){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,c,l)},a.alloc=function(s,c,l){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return c!==void 0?typeof l=="string"?f.fill(c,l):f.fill(c):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,c){this._id=s,this._clearFn=c}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,c){clearTimeout(s._idleTimeoutId),s._idleTimeout=c},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var c=s._idleTimeout;c>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},c))},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,c,l,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(c=this._events[a]))return!1;if(r(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(i(c))for(f=Array.prototype.slice.call(arguments,1),l=(p=c.slice()).length,d=0;d<l;d++)p[d].apply(this,f);return!0},n.prototype.addListener=function(a,s){var c;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&&(c=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&c>0&&this._events[a].length>c&&(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 c=!1;function l(){this.removeListener(a,l),c||(c=!0,s.apply(this,arguments))}return l.listener=s,this.on(a,l),this},n.prototype.removeListener=function(a,s){var c,l,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(c=this._events[a]).length,l=-1,c===s||r(c.listener)&&c.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(c)){for(d=f;d-- >0;)if(c[d]===s||c[d].listener&&c[d].listener===s){l=d;break}if(l<0)return this;c.length===1?(c.length=0,delete this._events[a]):c.splice(l,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,c;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(c=this._events[a]))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.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 I=this;this.next=null,this.entry=null,this.finish=function(){(function(F,q,H){var Z=F.entry;for(F.entry=null;Z;){var Q=Z.callback;q.pendingcb--,Q(void 0),Z=Z.next}q.corkedRequestsFree?q.corkedRequestsFree.next=F:q.corkedRequestsFree=F})(I,M)}}e.exports=w;var c,l=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;w.WritableState=_;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(){},x=n(25);function b(){}function _(M,I){c=c||n(1),M=M||{};var F=I instanceof c;this.objectMode=!!M.objectMode,F&&(this.objectMode=this.objectMode||!!M.writableObjectMode);var q=M.highWaterMark,H=M.writableHighWaterMark,Z=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:F&&(H||H===0)?H:Z,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 Q=M.decodeStrings===!1;this.decodeStrings=!Q,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(X,U){var B=X._writableState,W=B.sync,ee=B.writecb;if(function(ne){ne.writing=!1,ne.writecb=null,ne.length-=ne.writelen,ne.writelen=0}(B),U)(function(ne,re,ae,fe,A){--re.pendingcb,ae?(a.nextTick(A,fe),a.nextTick($,ne,re),ne._writableState.errorEmitted=!0,ne.emit("error",fe)):(A(fe),ne._writableState.errorEmitted=!0,ne.emit("error",fe),$(ne,re))})(X,B,W,U,ee);else{var G=T(B);G||B.corked||B.bufferProcessing||!B.bufferedRequest||P(X,B),W?l(C,X,B,G,ee):C(X,B,G,ee)}})(I,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 w(M){if(c=c||n(1),!(d.call(w,this)||this instanceof c))return new w(M);this._writableState=new _(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,I,F,q,H,Z,Q){I.writelen=q,I.writecb=Q,I.writing=!0,I.sync=!0,F?M._writev(H,I.onwrite):M._write(H,Z,I.onwrite),I.sync=!1}function C(M,I,F,q){F||function(H,Z){Z.length===0&&Z.needDrain&&(Z.needDrain=!1,H.emit("drain"))}(M,I),I.pendingcb--,q(),$(M,I)}function P(M,I){I.bufferProcessing=!0;var F=I.bufferedRequest;if(M._writev&&F&&F.next){var q=I.bufferedRequestCount,H=new Array(q),Z=I.corkedRequestsFree;Z.entry=F;for(var Q=0,te=!0;F;)H[Q]=F,F.isBuf||(te=!1),F=F.next,Q+=1;H.allBuffers=te,S(M,I,!0,I.length,H,"",Z.finish),I.pendingcb++,I.lastBufferedRequest=null,Z.next?(I.corkedRequestsFree=Z.next,Z.next=null):I.corkedRequestsFree=new s(I),I.bufferedRequestCount=0}else{for(;F;){var X=F.chunk,U=F.encoding,B=F.callback;if(S(M,I,!1,I.objectMode?1:X.length,X,U,B),F=F.next,I.bufferedRequestCount--,I.writing)break}F===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=F,I.bufferProcessing=!1}function T(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function j(M,I){M._final(function(F){I.pendingcb--,F&&M.emit("error",F),I.prefinished=!0,M.emit("prefinish"),$(M,I)})}function $(M,I){var F=T(I);return F&&(function(q,H){H.prefinished||H.finalCalled||(typeof q._final=="function"?(H.pendingcb++,H.finalCalled=!0,a.nextTick(j,q,H)):(H.prefinished=!0,q.emit("prefinish")))}(M,I),I.pendingcb===0&&(I.finished=!0,M.emit("finish"))),F}f.inherits(w,v),_.prototype.getBuffer=function(){for(var M=this.bufferedRequest,I=[];M;)I.push(M),M=M.next;return I},function(){try{Object.defineProperty(_.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(w,Symbol.hasInstance,{value:function(M){return!!d.call(this,M)||this===w&&M&&M._writableState instanceof _}})):d=function(M){return M instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(M,I,F){var q=this._writableState,H=!1,Z=!q.objectMode&&function(Q){return g.isBuffer(Q)||Q instanceof y}(M);return Z&&!g.isBuffer(M)&&(M=function(Q){return g.from(Q)}(M)),typeof I=="function"&&(F=I,I=null),Z?I="buffer":I||(I=q.defaultEncoding),typeof F!="function"&&(F=b),q.ended?function(Q,te){var X=new Error("write after end");Q.emit("error",X),a.nextTick(te,X)}(this,F):(Z||function(Q,te,X,U){var B=!0,W=!1;return X===null?W=new TypeError("May not write null values to stream"):typeof X=="string"||X===void 0||te.objectMode||(W=new TypeError("Invalid non-string/buffer chunk")),W&&(Q.emit("error",W),a.nextTick(U,W),B=!1),B}(this,q,M,F))&&(q.pendingcb++,H=function(Q,te,X,U,B,W){if(!X){var ee=function(ae,fe,A){return ae.objectMode||ae.decodeStrings===!1||typeof fe!="string"||(fe=g.from(fe,A)),fe}(te,U,B);U!==ee&&(X=!0,B="buffer",U=ee)}var G=te.objectMode?1:U.length;te.length+=G;var ne=te.length<te.highWaterMark;if(ne||(te.needDrain=!0),te.writing||te.corked){var re=te.lastBufferedRequest;te.lastBufferedRequest={chunk:U,encoding:B,isBuf:X,callback:W,next:null},re?re.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else S(Q,te,!1,G,U,B,W);return ne}(this,q,Z,M,I,F)),H},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,M.writing||M.corked||M.finished||M.bufferProcessing||!M.bufferedRequest||P(this,M))},w.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(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(M,I,F){F(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(M,I,F){var q=this._writableState;typeof M=="function"?(F=M,M=null,I=null):typeof I=="function"&&(F=I,I=null),M!=null&&this.write(M,I),q.corked&&(q.corked=1,this.uncork()),q.ending||q.finished||function(H,Z,Q){Z.ending=!0,$(H,Z),Q&&(Z.finished?a.nextTick(Q):H.once("finish",Q)),Z.ended=!0,H.writable=!1}(this,q,F)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(M){this._writableState&&(this._writableState.destroyed=M)}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(M,I){this.end(),I(M)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,c,l){function f(v,g){if(!c[v]){if(!s[v]){var y=typeof _dereq_=="function"&&_dereq_;if(!g&&y)return y(v,!0);if(d)return d(v,!0);var x=new Error("Cannot find module '"+v+"'");throw x.code="MODULE_NOT_FOUND",x}var b=c[v]={exports:{}};s[v][0].call(b.exports,function(_){return f(s[v][1][_]||_)},b,b.exports,a,s,c,l)}return c[v].exports}for(var d=typeof _dereq_=="function"&&_dereq_,p=0;p<l.length;p++)f(l[p]);return f}({1:[function(a,s,c){s.exports=function(l){var f=l._SomePromiseArray;function d(p){var v=new f(p),g=v.promise();return v.setHowMany(1),v.setUnwrap(),v.init(),g}l.any=function(p){return d(p)},l.prototype.any=function(){return d(this)}}},{}],2:[function(a,s,c){var l;try{throw new Error}catch(b){l=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,_,w){this._lateQueue.push(b,_,w),this._queueTick()}function y(b,_,w){this._normalQueue.push(b,_,w),this._queueTick()}function x(b){this._normalQueue._pushOne(b),this._queueTick()}v.prototype.setScheduler=function(b){var _=this._schedule;return this._schedule=b,this._customScheduler=!0,_},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,_){_?(r.stderr.write("Fatal "+(b instanceof Error?b.stack:b)+`
|
||
`),r.exit(2)):this.throwLater(b)},v.prototype.throwLater=function(b,_){if(arguments.length===1&&(_=b,b=function(){throw _}),typeof setTimeout<"u")setTimeout(function(){b(_)},0);else try{this._schedule(function(){b(_)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(v.prototype.invokeLater=function(b,_,w){this._trampolineEnabled?g.call(this,b,_,w):this._schedule(function(){setTimeout(function(){b.call(_,w)},100)})},v.prototype.invoke=function(b,_,w){this._trampolineEnabled?y.call(this,b,_,w):this._schedule(function(){b.call(_,w)})},v.prototype.settlePromises=function(b){this._trampolineEnabled?x.call(this,b):this._schedule(function(){b._settlePromises()})}):(v.prototype.invokeLater=g,v.prototype.invoke=y,v.prototype.settlePromises=x),v.prototype._drainQueue=function(b){for(;b.length()>0;){var _=b.shift();if(typeof _=="function"){var w=b.shift(),S=b.shift();_.call(w,S)}else _._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=l},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,c){s.exports=function(l,f,d,p){var v=!1,g=function(_,w){this._reject(w)},y=function(_,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(g,g,null,this,_)},x=function(_,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},b=function(_,w){w.promiseRejectionQueued||this._reject(_)};l.prototype.bind=function(_){v||(v=!0,l.prototype._propagateFrom=p.propagateFromFunction(),l.prototype._boundValue=p.boundValueFunction());var w=d(_),S=new l(f);S._propagateFrom(this,1);var C=this._target();if(S._setBoundTo(w),w instanceof l){var P={promiseRejectionQueued:!1,promise:S,target:C,bindingPromise:w};C._then(f,y,void 0,S,P),w._then(x,b,void 0,S,P),S._setOnCancel(w)}else S._resolveCallback(C);return S},l.prototype._setBoundTo=function(_){_!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=_):this._bitField=-2097153&this._bitField},l.prototype._isBound=function(){return(2097152&this._bitField)==2097152},l.bind=function(_,w){return l.resolve(w).bind(_)}}},{}],4:[function(a,s,c){var l;typeof Promise<"u"&&(l=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=l)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,c){var l=Object.create;if(l){var f=l(null),d=l(null);f[" size"]=d[" size"]=0}s.exports=function(p){var v=a("./util"),g=v.canEvaluate;function y(_){return function(w,S){var C;if(w!=null&&(C=w[S]),typeof C!="function"){var P="Object "+v.classString(w)+" has no method '"+v.toString(S)+"'";throw new p.TypeError(P)}return C}(_,this.pop()).apply(_,this)}function x(_){return _[this]}function b(_){var w=+this;return w<0&&(w=Math.max(0,w+_.length)),_[w]}v.isIdentifier,p.prototype.call=function(_){var w=[].slice.call(arguments,1);return w.push(_),this._then(y,void 0,void 0,w,void 0)},p.prototype.get=function(_){var w;if(typeof _=="number")w=b;else if(g){var S=(void 0)(_);w=S!==null?S:x}else w=x;return this._then(w,void 0,void 0,_,void 0)}}},{"./util":36}],6:[function(a,s,c){s.exports=function(l,f,d,p){var v=a("./util"),g=v.tryCatch,y=v.errorObj,x=l._async;l.prototype.break=l.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var b=this,_=b;b._isCancellable();){if(!b._cancelBy(_)){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}var w=b._cancellationParent;if(w==null||!w._isCancellable()){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}b._isFollowing()&&b._followee().cancel(),b._setWillBeCancelled(),_=b,b=w}},l.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},l.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},l.prototype._cancelBy=function(b){return b===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},l.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},l.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},l.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},l.prototype._unsetOnCancel=function(){this._onCancelField=void 0},l.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},l.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},l.prototype._doInvokeOnCancel=function(b,_){if(v.isArray(b))for(var w=0;w<b.length;++w)this._doInvokeOnCancel(b[w],_);else if(b!==void 0)if(typeof b=="function"){if(!_){var S=g(b).call(this._boundValue());S===y&&(this._attachExtraTrace(S.e),x.throwLater(S.e))}}else b._resultCancelled(this)},l.prototype._invokeOnCancel=function(){var b=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,b)},l.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},l.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,c){s.exports=function(l){var f=a("./util"),d=a("./es5").keys,p=f.tryCatch,v=f.errorObj;return function(g,y,x){return function(b){var _=x._boundValue();e:for(var w=0;w<g.length;++w){var S=g[w];if(S===Error||S!=null&&S.prototype instanceof Error){if(b instanceof S)return p(y).call(_,b)}else if(typeof S=="function"){var C=p(S).call(_,b);if(C===v)return C;if(C)return p(y).call(_,b)}else if(f.isObject(b)){for(var P=d(S),T=0;T<P.length;++T){var j=P[T];if(S[j]!=b[j])continue e}return p(y).call(_,b)}}return l}}}},{"./es5":13,"./util":36}],8:[function(a,s,c){s.exports=function(l){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 l.prototype._promiseCreated=function(){},l.prototype._pushContext=function(){},l.prototype._popContext=function(){return null},l._peekContext=l.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=l.prototype._pushContext,y=l.prototype._popContext,x=l._peekContext,b=l.prototype._peekContext,_=l.prototype._promiseCreated;p.deactivateLongStackTraces=function(){l.prototype._pushContext=g,l.prototype._popContext=y,l._peekContext=x,l.prototype._peekContext=b,l.prototype._promiseCreated=_,f=!1},f=!0,l.prototype._pushContext=p.prototype._pushContext,l.prototype._popContext=p.prototype._popContext,l._peekContext=l.prototype._peekContext=v,l.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},p}},{}],9:[function(a,s,c){s.exports=function(l,f){var d,p,v,g=l._getDomain,y=l._async,x=a("./errors").Warning,b=a("./util"),_=b.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,S=/\((?:timers\.js):\d+:\d+\)/,C=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,P=null,T=null,j=!1,$=b.env("BLUEBIRD_DEBUG")!=0,M=!(b.env("BLUEBIRD_WARNINGS")==0||!$&&!b.env("BLUEBIRD_WARNINGS")),I=!(b.env("BLUEBIRD_LONG_STACK_TRACES")==0||!$&&!b.env("BLUEBIRD_LONG_STACK_TRACES")),F=b.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(M||!!b.env("BLUEBIRD_W_FORGOTTEN_RETURN"));l.prototype.suppressUnhandledRejections=function(){var le=this._target();le._bitField=-1048577&le._bitField|524288},l.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var le=this;setTimeout(function(){le._notifyUnhandledRejection()},1)}},l.prototype._notifyUnhandledRejectionIsHandled=function(){de("rejectionHandled",d,void 0,this)},l.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},l.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},l.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var le=this._settledValue();this._setUnhandledRejectionIsNotified(),de("unhandledRejection",p,le,this)}},l.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},l.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},l.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},l.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},l.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},l.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},l.prototype._warn=function(le,ue,ge){return z(le,ue,ge||this)},l.onPossiblyUnhandledRejection=function(le){var ue=g();p=typeof le=="function"?ue===null?le:b.domainBind(ue,le):void 0},l.onUnhandledRejectionHandled=function(le){var ue=g();d=typeof le=="function"?ue===null?le:b.domainBind(ue,le):void 0};var q=function(){};l.longStackTraces=function(){if(y.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(!Ae.longStackTraces&&se()){var le=l.prototype._captureStackTrace,ue=l.prototype._attachExtraTrace;Ae.longStackTraces=!0,q=function(){if(y.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);l.prototype._captureStackTrace=le,l.prototype._attachExtraTrace=ue,f.deactivateLongStackTraces(),y.enableTrampoline(),Ae.longStackTraces=!1},l.prototype._captureStackTrace=A,l.prototype._attachExtraTrace=k,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},l.hasLongStackTraces=function(){return Ae.longStackTraces&&se()};var H=function(){try{if(typeof CustomEvent=="function"){var le=new CustomEvent("CustomEvent");return b.global.dispatchEvent(le),function(ue,ge){var ye=new CustomEvent(ue.toLowerCase(),{detail:ge,cancelable:!0});return!b.global.dispatchEvent(ye)}}return typeof Event=="function"?(le=new Event("CustomEvent"),b.global.dispatchEvent(le),function(ue,ge){var ye=new Event(ue.toLowerCase(),{cancelable:!0});return ye.detail=ge,!b.global.dispatchEvent(ye)}):((le=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),b.global.dispatchEvent(le),function(ue,ge){var ye=document.createEvent("CustomEvent");return ye.initCustomEvent(ue.toLowerCase(),!1,!0,ge),!b.global.dispatchEvent(ye)})}catch{}return function(){return!1}}(),Z=b.isNode?function(){return r.emit.apply(r,arguments)}:b.global?function(le){var ue="on"+le.toLowerCase(),ge=b.global[ue];return!!ge&&(ge.apply(b.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Q(le,ue){return{promise:ue}}var te={promiseCreated:Q,promiseFulfilled:Q,promiseRejected:Q,promiseResolved:Q,promiseCancelled:Q,promiseChained:function(le,ue,ge){return{promise:ue,child:ge}},warning:function(le,ue){return{warning:ue}},unhandledRejection:function(le,ue,ge){return{reason:ue,promise:ge}},rejectionHandled:Q},X=function(le){var ue=!1;try{ue=Z.apply(null,arguments)}catch(ye){y.throwLater(ye),ue=!0}var ge=!1;try{ge=H(le,te[le].apply(null,arguments))}catch(ye){y.throwLater(ye),ge=!0}return ge||ue};function U(){return!1}function B(le,ue,ge){var ye=this;try{le(ue,ge,function(we){if(typeof we!="function")throw new TypeError("onCancel must be a function, got: "+b.toString(we));ye._attachCancellationCallback(we)})}catch(we){return we}}function W(le){if(!this._isCancellable())return this;var ue=this._onCancel();ue!==void 0?b.isArray(ue)?ue.push(le):this._setOnCancel([ue,le]):this._setOnCancel(le)}function ee(){return this._onCancelField}function G(le){this._onCancelField=le}function ne(){this._cancellationParent=void 0,this._onCancelField=void 0}function re(le,ue){if(1&ue){this._cancellationParent=le;var ge=le._branchesRemainingToCancel;ge===void 0&&(ge=0),le._branchesRemainingToCancel=ge+1}2&ue&&le._isBound()&&this._setBoundTo(le._boundTo)}l.config=function(le){if("longStackTraces"in(le=Object(le))&&(le.longStackTraces?l.longStackTraces():!le.longStackTraces&&l.hasLongStackTraces()&&q()),"warnings"in le){var ue=le.warnings;Ae.warnings=!!ue,F=Ae.warnings,b.isObject(ue)&&"wForgottenReturn"in ue&&(F=!!ue.wForgottenReturn)}if("cancellation"in le&&le.cancellation&&!Ae.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");l.prototype._clearCancellationData=ne,l.prototype._propagateFrom=re,l.prototype._onCancel=ee,l.prototype._setOnCancel=G,l.prototype._attachCancellationCallback=W,l.prototype._execute=B,ae=re,Ae.cancellation=!0}return"monitoring"in le&&(le.monitoring&&!Ae.monitoring?(Ae.monitoring=!0,l.prototype._fireEvent=X):!le.monitoring&&Ae.monitoring&&(Ae.monitoring=!1,l.prototype._fireEvent=U)),l},l.prototype._fireEvent=U,l.prototype._execute=function(le,ue,ge){try{le(ue,ge)}catch(ye){return ye}},l.prototype._onCancel=function(){},l.prototype._setOnCancel=function(le){},l.prototype._attachCancellationCallback=function(le){},l.prototype._captureStackTrace=function(){},l.prototype._attachExtraTrace=function(){},l.prototype._clearCancellationData=function(){},l.prototype._propagateFrom=function(le,ue){};var ae=function(le,ue){2&ue&&le._isBound()&&this._setBoundTo(le._boundTo)};function fe(){var le=this._boundTo;return le!==void 0&&le instanceof l?le.isFulfilled()?le.value():void 0:le}function A(){this._trace=new Ne(this._peekContext())}function k(le,ue){if(_(le)){var ge=this._trace;if(ge!==void 0&&ue&&(ge=ge._parent),ge!==void 0)ge.attachExtraTrace(le);else if(!le.__stackCleaned__){var ye=Y(le);b.notEnumerableProp(le,"stack",ye.message+`
|
||
`+ye.stack.join(`
|
||
`)),b.notEnumerableProp(le,"__stackCleaned__",!0)}}}function z(le,ue,ge){if(Ae.warnings){var ye,we=new x(le);if(ue)ge._attachExtraTrace(we);else if(Ae.longStackTraces&&(ye=l._peekContext()))ye.attachExtraTrace(we);else{var Me=Y(we);we.stack=Me.message+`
|
||
`+Me.stack.join(`
|
||
`)}X("warning",we)||ie(we,"",!0)}}function J(le){for(var ue=[],ge=0;ge<le.length;++ge){var ye=le[ge],we=ye===" (No stack trace)"||P.test(ye),Me=we&&pe(ye);we&&!Me&&(j&&ye.charAt(0)!==" "&&(ye=" "+ye),ue.push(ye))}return ue}function Y(le){var ue=le.stack,ge=le.toString();return ue=typeof ue=="string"&&ue.length>0?function(ye){for(var we=ye.stack.replace(/\s+$/g,"").split(`
|
||
`),Me=0;Me<we.length;++Me){var Le=we[Me];if(Le===" (No stack trace)"||P.test(Le))break}return Me>0&&ye.name!="SyntaxError"&&(we=we.slice(Me)),we}(le):[" (No stack trace)"],{message:ge,stack:le.name=="SyntaxError"?ue:J(ue)}}function ie(le,ue,ge){if(typeof console<"u"){var ye;if(b.isObject(le)){var we=le.stack;ye=ue+T(we,le)}else ye=ue+String(le);typeof v=="function"?v(ye,ge):typeof console.log!="function"&&typeof console.log!="object"||console.log(ye)}}function de(le,ue,ge,ye){var we=!1;try{typeof ue=="function"&&(we=!0,le==="rejectionHandled"?ue(ye):ue(ge,ye))}catch(Me){y.throwLater(Me)}le==="unhandledRejection"?X(le,ge,ye)||we||ie(ge,"Unhandled rejection "):X(le,ye)}function Ce(le){var ue;if(typeof le=="function")ue="[function "+(le.name||"anonymous")+"]";else{if(ue=le&&typeof le.toString=="function"?le.toString():b.toString(le),/\[object [a-zA-Z0-9$_]+\]/.test(ue))try{ue=JSON.stringify(le)}catch{}ue.length===0&&(ue="(empty array)")}return"(<"+function(ge){return ge.length<41?ge:ge.substr(0,38)+"..."}(ue)+">, no stack trace)"}function se(){return typeof Te=="function"}var pe=function(){return!1},ve=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function xe(le){var ue=le.match(ve);if(ue)return{fileName:ue[1],line:parseInt(ue[2],10)}}function Ne(le){this._parent=le,this._promisesCreated=0;var ue=this._length=1+(le===void 0?0:le._length);Te(this,Ne),ue>32&&this.uncycle()}b.inherits(Ne,Error),f.CapturedTrace=Ne,Ne.prototype.uncycle=function(){var le=this._length;if(!(le<2)){for(var ue=[],ge={},ye=0,we=this;we!==void 0;++ye)ue.push(we),we=we._parent;for(ye=(le=this._length=ye)-1;ye>=0;--ye){var Me=ue[ye].stack;ge[Me]===void 0&&(ge[Me]=ye)}for(ye=0;ye<le;++ye){var Le=ge[ue[ye].stack];if(Le!==void 0&&Le!==ye){Le>0&&(ue[Le-1]._parent=void 0,ue[Le-1]._length=1),ue[ye]._parent=void 0,ue[ye]._length=1;var Je=ye>0?ue[ye-1]:this;Le<le-1?(Je._parent=ue[Le+1],Je._parent.uncycle(),Je._length=Je._parent._length+1):(Je._parent=void 0,Je._length=1);for(var tt=Je._length+1,Ye=ye-2;Ye>=0;--Ye)ue[Ye]._length=tt,tt++;return}}}},Ne.prototype.attachExtraTrace=function(le){if(!le.__stackCleaned__){this.uncycle();for(var ue=Y(le),ge=ue.message,ye=[ue.stack],we=this;we!==void 0;)ye.push(J(we.stack.split(`
|
||
`))),we=we._parent;(function(Me){for(var Le=Me[0],Je=1;Je<Me.length;++Je){for(var tt=Me[Je],Ye=Le.length-1,Wt=Le[Ye],It=-1,hn=tt.length-1;hn>=0;--hn)if(tt[hn]===Wt){It=hn;break}for(hn=It;hn>=0;--hn){var Un=tt[hn];if(Le[Ye]!==Un)break;Le.pop(),Ye--}Le=tt}})(ye),function(Me){for(var Le=0;Le<Me.length;++Le)(Me[Le].length===0||Le+1<Me.length&&Me[Le][0]===Me[Le+1][0])&&(Me.splice(Le,1),Le--)}(ye),b.notEnumerableProp(le,"stack",function(Me,Le){for(var Je=0;Je<Le.length-1;++Je)Le[Je].push("From previous event:"),Le[Je]=Le[Je].join(`
|
||
`);return Je<Le.length&&(Le[Je]=Le[Je].join(`
|
||
`)),Me+`
|
||
`+Le.join(`
|
||
`)}(ge,ye)),b.notEnumerableProp(le,"__stackCleaned__",!0)}};var Te=function(){var le=/^\s*at\s*/,ue=function(Me,Le){return typeof Me=="string"?Me:Le.name!==void 0&&Le.message!==void 0?Le.toString():Ce(Le)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,P=le,T=ue;var ge=Error.captureStackTrace;return pe=function(Me){return w.test(Me)},function(Me,Le){Error.stackTraceLimit+=6,ge(Me,Le),Error.stackTraceLimit-=6}}var ye,we=new Error;if(typeof we.stack=="string"&&we.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return P=/@/,T=ue,j=!0,function(Me){Me.stack=new Error().stack};try{throw new Error}catch(Me){ye="stack"in Me}return"stack"in we||!ye||typeof Error.stackTraceLimit!="number"?(T=function(Me,Le){return typeof Me=="string"?Me:typeof Le!="object"&&typeof Le!="function"||Le.name===void 0||Le.message===void 0?Ce(Le):Le.toString()},null):(P=le,T=ue,function(Me){Error.stackTraceLimit+=6;try{throw new Error}catch(Le){Me.stack=Le.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,ue){var ge=ue?"\x1B[33m":"\x1B[31m";console.warn(ge+le+`\x1B[0m
|
||
`)}:b.isNode||typeof new Error().stack!="string"||(v=function(le,ue){console.warn("%c"+le,ue?"color: darkorange":"color: red")}));var Ae={warnings:M,longStackTraces:!1,cancellation:!1,monitoring:!1};return I&&l.longStackTraces(),{longStackTraces:function(){return Ae.longStackTraces},warnings:function(){return Ae.warnings},cancellation:function(){return Ae.cancellation},monitoring:function(){return Ae.monitoring},propagateFromFunction:function(){return ae},boundValueFunction:function(){return fe},checkForgottenReturns:function(le,ue,ge,ye,we){if(le===void 0&&ue!==null&&F){if(we!==void 0&&we._returnedNonUndefined()||!(65535&ye._bitField))return;ge&&(ge+=" ");var Me="",Le="";if(ue._trace){for(var Je=ue._trace.stack.split(`
|
||
`),tt=J(Je),Ye=tt.length-1;Ye>=0;--Ye){var Wt=tt[Ye];if(!S.test(Wt)){var It=Wt.match(C);It&&(Me="at "+It[1]+":"+It[2]+":"+It[3]+" ");break}}if(tt.length>0){var hn=tt[0];for(Ye=0;Ye<Je.length;++Ye)if(Je[Ye]===hn){Ye>0&&(Le=`
|
||
`+Je[Ye-1]);break}}}var Un="a promise was created in a "+ge+"handler "+Me+"but was not returned from it, see http://goo.gl/rRqMUw"+Le;ye._warn(Un,!0,ue)}},setBounds:function(le,ue){if(se()){for(var ge,ye,we=le.stack.split(`
|
||
`),Me=ue.stack.split(`
|
||
`),Le=-1,Je=-1,tt=0;tt<we.length;++tt)if(Ye=xe(we[tt])){ge=Ye.fileName,Le=Ye.line;break}for(tt=0;tt<Me.length;++tt){var Ye;if(Ye=xe(Me[tt])){ye=Ye.fileName,Je=Ye.line;break}}Le<0||Je<0||!ge||!ye||ge!==ye||Le>=Je||(pe=function(Wt){if(w.test(Wt))return!0;var It=xe(Wt);return!!(It&&It.fileName===ge&&Le<=It.line&&It.line<=Je)})}},warn:z,deprecated:function(le,ue){var ge=le+" is deprecated and will be removed in a future version.";return ue&&(ge+=" Use "+ue+" instead."),z(ge)},CapturedTrace:Ne,fireDomEvent:H,fireGlobalEvent:Z}}},{"./errors":12,"./util":36}],10:[function(a,s,c){s.exports=function(l){function f(){return this.value}function d(){throw this.reason}l.prototype.return=l.prototype.thenReturn=function(p){return p instanceof l&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},l.prototype.throw=l.prototype.thenThrow=function(p){return this._then(d,void 0,void 0,{reason:p},void 0)},l.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})},l.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof l&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var v=arguments[1];return v instanceof l&&v.suppressUnhandledRejections(),this.caught(p,function(){return v})}}},{}],11:[function(a,s,c){s.exports=function(l,f){var d=l.reduce,p=l.all;function v(){return p(this)}l.prototype.each=function(g){return d(this,g,f,0)._then(v,void 0,void 0,this,void 0)},l.prototype.mapSeries=function(g){return d(this,g,f,f)},l.each=function(g,y){return d(g,y,f,0)._then(v,void 0,void 0,g,void 0)},l.mapSeries=function(g,y){return d(g,y,f,f)}}},{}],12:[function(a,s,c){var l,f,d=a("./es5"),p=d.freeze,v=a("./util"),g=v.inherits,y=v.notEnumerableProp;function x(M,I){function F(q){if(!(this instanceof F))return new F(q);y(this,"message",typeof q=="string"?q:I),y(this,"name",M),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(F,Error),F}var b=x("Warning","warning"),_=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),S=x("AggregateError","aggregate error");try{l=TypeError,f=RangeError}catch{l=x("TypeError","type error"),f=x("RangeError","range error")}for(var C="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),P=0;P<C.length;++P)typeof Array.prototype[C[P]]=="function"&&(S.prototype[C[P]]=Array.prototype[C[P]]);d.defineProperty(S.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),S.prototype.isOperational=!0;var T=0;function j(M){if(!(this instanceof j))return new j(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*T+1).join(" "),I=`
|
||
`+M+`AggregateError of:
|
||
`;T++,M=Array(4*T+1).join(" ");for(var F=0;F<this.length;++F){for(var q=this[F]===this?"[Circular AggregateError]":this[F]+"",H=q.split(`
|
||
`),Z=0;Z<H.length;++Z)H[Z]=M+H[Z];I+=(q=H.join(`
|
||
`))+`
|
||
`}return T--,I},g(j,Error);var $=Error.__BluebirdErrorTypes__;$||($=p({CancellationError:_,TimeoutError:w,OperationalError:j,RejectionError:j,AggregateError:S}),d.defineProperty(Error,"__BluebirdErrorTypes__",{value:$,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:l,RangeError:f,CancellationError:$.CancellationError,OperationalError:$.OperationalError,TimeoutError:$.TimeoutError,AggregateError:$.AggregateError,Warning:b}},{"./es5":13,"./util":36}],13:[function(a,s,c){var l=function(){return this===void 0}();if(l)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:l,propertyIsWritable:function(g,y){var x=Object.getOwnPropertyDescriptor(g,y);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,d={}.toString,p={}.constructor.prototype,v=function(g){var y=[];for(var x in g)f.call(g,x)&&y.push(x);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,x){return g[y]=x.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:l,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,c){s.exports=function(l,f){var d=l.map;l.prototype.filter=function(p,v){return d(this,p,v,f)},l.filter=function(p,v,g){return d(p,v,g,f)}}},{}],15:[function(a,s,c){s.exports=function(l,f,d){var p=a("./util"),v=l.CancellationError,g=p.errorObj,y=a("./catch_filter")(d);function x(P,T,j){this.promise=P,this.type=T,this.handler=j,this.called=!1,this.cancelPromise=null}function b(P){this.finallyHandler=P}function _(P,T){return P.cancelPromise!=null&&(arguments.length>1?P.cancelPromise._reject(T):P.cancelPromise._cancel(),P.cancelPromise=null,!0)}function w(){return C.call(this,this.promise._target()._settledValue())}function S(P){if(!_(this,P))return g.e=P,g}function C(P){var T=this.promise,j=this.handler;if(!this.called){this.called=!0;var $=this.isFinallyHandler()?j.call(T._boundValue()):j.call(T._boundValue(),P);if($===d)return $;if($!==void 0){T._setReturnedNonUndefined();var M=f($,T);if(M instanceof l){if(this.cancelPromise!=null){if(M._isCancelled()){var I=new v("late cancellation observer");return T._attachExtraTrace(I),g.e=I,g}M.isPending()&&M._attachCancellationCallback(new b(this))}return M._then(w,S,void 0,this,void 0)}}}return T.isRejected()?(_(this),g.e=P,g):(_(this),P)}return x.prototype.isFinallyHandler=function(){return this.type===0},b.prototype._resultCancelled=function(){_(this.finallyHandler)},l.prototype._passThrough=function(P,T,j,$){return typeof P!="function"?this.then():this._then(j,$,void 0,new x(this,T,P),void 0)},l.prototype.lastly=l.prototype.finally=function(P){return this._passThrough(P,0,C,C)},l.prototype.tap=function(P){return this._passThrough(P,1,C)},l.prototype.tapCatch=function(P){var T=arguments.length;if(T===1)return this._passThrough(P,1,void 0,C);var j,$=new Array(T-1),M=0;for(j=0;j<T-1;++j){var I=arguments[j];if(!p.isObject(I))return l.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(I)));$[M++]=I}$.length=M;var F=arguments[j];return this._passThrough(y($,F,this),1,void 0,C)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,c){s.exports=function(l,f,d,p,v,g){var y=a("./errors").TypeError,x=a("./util"),b=x.errorObj,_=x.tryCatch,w=[];function S(C,P,T,j){if(g.cancellation()){var $=new l(d),M=this._finallyPromise=new l(d);this._promise=$.lastly(function(){return M}),$._captureStackTrace(),$._setOnCancel(this)}else(this._promise=new l(d))._captureStackTrace();this._stack=j,this._generatorFunction=C,this._receiver=P,this._generator=void 0,this._yieldHandlers=typeof T=="function"?[T].concat(w):w,this._yieldedPromise=null,this._cancellationPhase=!1}x.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 C;if(this._generator.return!==void 0)this._promise._pushContext(),C=_(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var P=new l.CancellationError("generator .return() sentinel");l.coroutine.returnSentinel=P,this._promise._attachExtraTrace(P),this._promise._pushContext(),C=_(this._generator.throw).call(this._generator,P),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(C)}},S.prototype._promiseFulfilled=function(C){this._yieldedPromise=null,this._promise._pushContext();var P=_(this._generator.next).call(this._generator,C);this._promise._popContext(),this._continue(P)},S.prototype._promiseRejected=function(C){this._yieldedPromise=null,this._promise._attachExtraTrace(C),this._promise._pushContext();var P=_(this._generator.throw).call(this._generator,C);this._promise._popContext(),this._continue(P)},S.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof l){var C=this._yieldedPromise;this._yieldedPromise=null,C.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(C){var P=this._promise;if(C===b)return this._cleanup(),this._cancellationPhase?P.cancel():P._rejectCallback(C.e,!1);var T=C.value;if(C.done===!0)return this._cleanup(),this._cancellationPhase?P.cancel():P._resolveCallback(T);var j=p(T,this._promise);if(j instanceof l||(j=function(M,I,F){for(var q=0;q<I.length;++q){F._pushContext();var H=_(I[q])(M);if(F._popContext(),H===b){F._pushContext();var Z=l.reject(b.e);return F._popContext(),Z}var Q=p(H,F);if(Q instanceof l)return Q}return null}(j,this._yieldHandlers,this._promise))!==null){var $=(j=j._target())._bitField;50397184&$?33554432&$?l._async.invoke(this._promiseFulfilled,this,j._value()):16777216&$?l._async.invoke(this._promiseRejected,this,j._reason()):this._promiseCancelled():(this._yieldedPromise=j,j._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(T))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},l.coroutine=function(C,P){if(typeof C!="function")throw new y(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var T=Object(P).yieldHandler,j=S,$=new Error().stack;return function(){var M=C.apply(this,arguments),I=new j(void 0,void 0,T,$),F=I.promise();return I._generator=M,I._promiseFulfilled(void 0),F}},l.coroutine.addYieldHandler=function(C){if(typeof C!="function")throw new y("expecting a function but got "+x.classString(C));w.push(C)},l.spawn=function(C){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),typeof C!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new S(C,this),T=P.promise();return P._run(l.spawn),T}}},{"./errors":12,"./util":36}],17:[function(a,s,c){s.exports=function(l,f,d,p,v,g){var y=a("./util");y.canEvaluate,y.tryCatch,y.errorObj,l.join=function(){var x,b=arguments.length-1;b>0&&typeof arguments[b]=="function"&&(x=arguments[b]);var _=[].slice.call(arguments);x&&_.pop();var w=new f(_).promise();return x!==void 0?w.spread(x):w}}},{"./util":36}],18:[function(a,s,c){s.exports=function(l,f,d,p,v,g){var y=l._getDomain,x=a("./util"),b=x.tryCatch,_=x.errorObj,w=l._async;function S(P,T,j,$){this.constructor$(P),this._promise._captureStackTrace();var M=y();this._callback=M===null?T:x.domainBind(M,T),this._preservedValues=$===v?new Array(this.length()):null,this._limit=j,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function C(P,T,j,$){if(typeof T!="function")return d("expecting a function but got "+x.classString(T));var M=0;if(j!==void 0){if(typeof j!="object"||j===null)return l.reject(new TypeError("options argument must be an object but it is "+x.classString(j)));if(typeof j.concurrency!="number")return l.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(j.concurrency)));M=j.concurrency}return new S(P,T,M=typeof M=="number"&&isFinite(M)&&M>=1?M:0,$).promise()}x.inherits(S,f),S.prototype._asyncInit=function(){this._init$(void 0,-2)},S.prototype._init=function(){},S.prototype._promiseFulfilled=function(P,T){var j=this._values,$=this.length(),M=this._preservedValues,I=this._limit;if(T<0){if(j[T=-1*T-1]=P,I>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(I>=1&&this._inFlight>=I)return j[T]=P,this._queue.push(T),!1;M!==null&&(M[T]=P);var F=this._promise,q=this._callback,H=F._boundValue();F._pushContext();var Z=b(q).call(H,P,T,$),Q=F._popContext();if(g.checkForgottenReturns(Z,Q,M!==null?"Promise.filter":"Promise.map",F),Z===_)return this._reject(Z.e),!0;var te=p(Z,this._promise);if(te instanceof l){var X=(te=te._target())._bitField;if(!(50397184&X))return I>=1&&this._inFlight++,j[T]=te,te._proxy(this,-1*(T+1)),!1;if(!(33554432&X))return 16777216&X?(this._reject(te._reason()),!0):(this._cancel(),!0);Z=te._value()}j[T]=Z}return++this._totalResolved>=$&&(M!==null?this._filter(j,M):this._resolve(j),!0)},S.prototype._drainQueue=function(){for(var P=this._queue,T=this._limit,j=this._values;P.length>0&&this._inFlight<T;){if(this._isResolved())return;var $=P.pop();this._promiseFulfilled(j[$],$)}},S.prototype._filter=function(P,T){for(var j=T.length,$=new Array(j),M=0,I=0;I<j;++I)P[I]&&($[M++]=T[I]);$.length=M,this._resolve($)},S.prototype.preservedValues=function(){return this._preservedValues},l.prototype.map=function(P,T){return C(this,P,T,null)},l.map=function(P,T,j,$){return C(P,T,j,$)}}},{"./util":36}],19:[function(a,s,c){s.exports=function(l,f,d,p,v){var g=a("./util"),y=g.tryCatch;l.method=function(x){if(typeof x!="function")throw new l.TypeError("expecting a function but got "+g.classString(x));return function(){var b=new l(f);b._captureStackTrace(),b._pushContext();var _=y(x).apply(this,arguments),w=b._popContext();return v.checkForgottenReturns(_,w,"Promise.method",b),b._resolveFromSyncValue(_),b}},l.attempt=l.try=function(x){if(typeof x!="function")return p("expecting a function but got "+g.classString(x));var b,_=new l(f);if(_._captureStackTrace(),_._pushContext(),arguments.length>1){v.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],S=arguments[2];b=g.isArray(w)?y(x).apply(S,w):y(x).call(S,w)}else b=y(x)();var C=_._popContext();return v.checkForgottenReturns(b,C,"Promise.try",_),_._resolveFromSyncValue(b),_},l.prototype._resolveFromSyncValue=function(x){x===g.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,c){var l=a("./util"),f=l.maybeWrapAsError,d=a("./errors").OperationalError,p=a("./es5"),v=/^(?:name|message|stack|cause)$/;function g(y){var x;if(function(S){return S instanceof Error&&p.getPrototypeOf(S)===Error.prototype}(y)){(x=new d(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var b=p.keys(y),_=0;_<b.length;++_){var w=b[_];v.test(w)||(x[w]=y[w])}return x}return l.markAsOriginatingFromRejection(y),y}s.exports=function(y,x){return function(b,_){if(y!==null){if(b){var w=g(f(b));y._attachExtraTrace(w),y._reject(w)}else if(x){var S=[].slice.call(arguments,1);y._fulfill(S)}else y._fulfill(_);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,c){s.exports=function(l){var f=a("./util"),d=l._async,p=f.tryCatch,v=f.errorObj;function g(b,_){if(!f.isArray(b))return y.call(this,b,_);var w=p(_).apply(this._boundValue(),[null].concat(b));w===v&&d.throwLater(w.e)}function y(b,_){var w=this._boundValue(),S=b===void 0?p(_).call(w,null):p(_).call(w,null,b);S===v&&d.throwLater(S.e)}function x(b,_){if(!b){var w=new Error(b+"");w.cause=b,b=w}var S=p(_).call(this._boundValue(),b);S===v&&d.throwLater(S.e)}l.prototype.asCallback=l.prototype.nodeify=function(b,_){if(typeof b=="function"){var w=y;_!==void 0&&Object(_).spread&&(w=g),this._then(w,x,void 0,this,b)}return this}}},{"./util":36}],22:[function(a,s,c){s.exports=function(){var l=function(){return new S(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new U.PromiseInspection(this._target())},d=function(G){return U.reject(new S(G))};function p(){}var v,g={},y=a("./util");v=y.isNode?function(){var G=r.domain;return G===void 0&&(G=null),G}:function(){return null},y.notEnumerableProp(U,"_getDomain",v);var x=a("./es5"),b=a("./async"),_=new b;x.defineProperty(U,"_async",{value:_});var w=a("./errors"),S=U.TypeError=w.TypeError;U.RangeError=w.RangeError;var C=U.CancellationError=w.CancellationError;U.TimeoutError=w.TimeoutError,U.OperationalError=w.OperationalError,U.RejectionError=w.OperationalError,U.AggregateError=w.AggregateError;var P=function(){},T={},j={},$=a("./thenables")(U,P),M=a("./promise_array")(U,P,$,d,p),I=a("./context")(U),F=I.create,q=a("./debuggability")(U,I),H=(q.CapturedTrace,a("./finally")(U,$,j)),Z=a("./catch_filter")(j),Q=a("./nodeback"),te=y.errorObj,X=y.tryCatch;function U(G){G!==P&&function(ne,re){if(ne==null||ne.constructor!==U)throw new S(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof re!="function")throw new S("expecting a function but got "+y.classString(re))}(this,G),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(G),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function B(G){this.promise._resolveCallback(G)}function W(G){this.promise._rejectCallback(G,!1)}function ee(G){var ne=new U(P);ne._fulfillmentHandler0=G,ne._rejectionHandler0=G,ne._promise0=G,ne._receiver0=G}return U.prototype.toString=function(){return"[object Promise]"},U.prototype.caught=U.prototype.catch=function(G){var ne=arguments.length;if(ne>1){var re,ae=new Array(ne-1),fe=0;for(re=0;re<ne-1;++re){var A=arguments[re];if(!y.isObject(A))return d("Catch statement predicate: expecting an object but got "+y.classString(A));ae[fe++]=A}return ae.length=fe,G=arguments[re],this.then(void 0,Z(ae,G,this))}return this.then(void 0,G)},U.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},U.prototype.then=function(G,ne){if(q.warnings()&&arguments.length>0&&typeof G!="function"&&typeof ne!="function"){var re=".then() only accepts functions but was passed: "+y.classString(G);arguments.length>1&&(re+=", "+y.classString(ne)),this._warn(re)}return this._then(G,ne,void 0,void 0,void 0)},U.prototype.done=function(G,ne){this._then(G,ne,void 0,void 0,void 0)._setIsFinal()},U.prototype.spread=function(G){return typeof G!="function"?d("expecting a function but got "+y.classString(G)):this.all()._then(G,void 0,void 0,T,void 0)},U.prototype.toJSON=function(){var G={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(G.fulfillmentValue=this.value(),G.isFulfilled=!0):this.isRejected()&&(G.rejectionReason=this.reason(),G.isRejected=!0),G},U.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new M(this).promise()},U.prototype.error=function(G){return this.caught(y.originatesFromRejection,G)},U.getNewLibraryCopy=s.exports,U.is=function(G){return G instanceof U},U.fromNode=U.fromCallback=function(G){var ne=new U(P);ne._captureStackTrace();var re=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=X(G)(Q(ne,re));return ae===te&&ne._rejectCallback(ae.e,!0),ne._isFateSealed()||ne._setAsyncGuaranteed(),ne},U.all=function(G){return new M(G).promise()},U.cast=function(G){var ne=$(G);return ne instanceof U||((ne=new U(P))._captureStackTrace(),ne._setFulfilled(),ne._rejectionHandler0=G),ne},U.resolve=U.fulfilled=U.cast,U.reject=U.rejected=function(G){var ne=new U(P);return ne._captureStackTrace(),ne._rejectCallback(G,!0),ne},U.setScheduler=function(G){if(typeof G!="function")throw new S("expecting a function but got "+y.classString(G));return _.setScheduler(G)},U.prototype._then=function(G,ne,re,ae,fe){var A=fe!==void 0,k=A?fe:new U(P),z=this._target(),J=z._bitField;A||(k._propagateFrom(this,3),k._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&J?this._boundValue():z===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,k));var Y=v();if(50397184&J){var ie,de,Ce=z._settlePromiseCtx;33554432&J?(de=z._rejectionHandler0,ie=G):16777216&J?(de=z._fulfillmentHandler0,ie=ne,z._unsetRejectionIsUnhandled()):(Ce=z._settlePromiseLateCancellationObserver,de=new C("late cancellation observer"),z._attachExtraTrace(de),ie=ne),_.invoke(Ce,z,{handler:Y===null?ie:typeof ie=="function"&&y.domainBind(Y,ie),promise:k,receiver:ae,value:de})}else z._addCallbacks(G,ne,k,ae,Y);return k},U.prototype._length=function(){return 65535&this._bitField},U.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},U.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},U.prototype._setLength=function(G){this._bitField=-65536&this._bitField|65535&G},U.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},U.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},U.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},U.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},U.prototype._isFinal=function(){return(4194304&this._bitField)>0},U.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},U.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},U.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},U.prototype._setAsyncGuaranteed=function(){_.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},U.prototype._receiverAt=function(G){var ne=G===0?this._receiver0:this[4*G-4+3];if(ne!==g)return ne===void 0&&this._isBound()?this._boundValue():ne},U.prototype._promiseAt=function(G){return this[4*G-4+2]},U.prototype._fulfillmentHandlerAt=function(G){return this[4*G-4+0]},U.prototype._rejectionHandlerAt=function(G){return this[4*G-4+1]},U.prototype._boundValue=function(){},U.prototype._migrateCallback0=function(G){G._bitField;var ne=G._fulfillmentHandler0,re=G._rejectionHandler0,ae=G._promise0,fe=G._receiverAt(0);fe===void 0&&(fe=g),this._addCallbacks(ne,re,ae,fe,null)},U.prototype._migrateCallbackAt=function(G,ne){var re=G._fulfillmentHandlerAt(ne),ae=G._rejectionHandlerAt(ne),fe=G._promiseAt(ne),A=G._receiverAt(ne);A===void 0&&(A=g),this._addCallbacks(re,ae,fe,A,null)},U.prototype._addCallbacks=function(G,ne,re,ae,fe){var A=this._length();if(A>=65531&&(A=0,this._setLength(0)),A===0)this._promise0=re,this._receiver0=ae,typeof G=="function"&&(this._fulfillmentHandler0=fe===null?G:y.domainBind(fe,G)),typeof ne=="function"&&(this._rejectionHandler0=fe===null?ne:y.domainBind(fe,ne));else{var k=4*A-4;this[k+2]=re,this[k+3]=ae,typeof G=="function"&&(this[k+0]=fe===null?G:y.domainBind(fe,G)),typeof ne=="function"&&(this[k+1]=fe===null?ne:y.domainBind(fe,ne))}return this._setLength(A+1),A},U.prototype._proxy=function(G,ne){this._addCallbacks(void 0,void 0,ne,G,null)},U.prototype._resolveCallback=function(G,ne){if(!(117506048&this._bitField)){if(G===this)return this._rejectCallback(l(),!1);var re=$(G,this);if(!(re instanceof U))return this._fulfill(G);ne&&this._propagateFrom(re,2);var ae=re._target();if(ae!==this){var fe=ae._bitField;if(50397184&fe)if(33554432&fe)this._fulfill(ae._value());else if(16777216&fe)this._reject(ae._reason());else{var z=new C("late cancellation observer");ae._attachExtraTrace(z),this._reject(z)}else{var A=this._length();A>0&&ae._migrateCallback0(this);for(var k=1;k<A;++k)ae._migrateCallbackAt(this,k);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(l())}},U.prototype._rejectCallback=function(G,ne,re){var ae=y.ensureErrorObject(G),fe=ae===G;if(!fe&&!re&&q.warnings()){var A="a promise was rejected with a non-error: "+y.classString(G);this._warn(A,!0)}this._attachExtraTrace(ae,!!ne&&fe),this._reject(G)},U.prototype._resolveFromExecutor=function(G){if(G!==P){var ne=this;this._captureStackTrace(),this._pushContext();var re=!0,ae=this._execute(G,function(fe){ne._resolveCallback(fe)},function(fe){ne._rejectCallback(fe,re)});re=!1,this._popContext(),ae!==void 0&&ne._rejectCallback(ae,!0)}},U.prototype._settlePromiseFromHandler=function(G,ne,re,ae){var fe=ae._bitField;if(!(65536&fe)){var A;ae._pushContext(),ne===T?re&&typeof re.length=="number"?A=X(G).apply(this._boundValue(),re):(A=te).e=new S("cannot .spread() a non-array: "+y.classString(re)):A=X(G).call(ne,re);var k=ae._popContext();!(65536&(fe=ae._bitField))&&(A===j?ae._reject(re):A===te?ae._rejectCallback(A.e,!1):(q.checkForgottenReturns(A,k,"",ae,this),ae._resolveCallback(A)))}},U.prototype._target=function(){for(var G=this;G._isFollowing();)G=G._followee();return G},U.prototype._followee=function(){return this._rejectionHandler0},U.prototype._setFollowee=function(G){this._rejectionHandler0=G},U.prototype._settlePromise=function(G,ne,re,ae){var fe=G instanceof U,A=this._bitField,k=(134217728&A)!=0;65536&A?(fe&&G._invokeInternalOnCancel(),re instanceof H&&re.isFinallyHandler()?(re.cancelPromise=G,X(ne).call(re,ae)===te&&G._reject(te.e)):ne===f?G._fulfill(f.call(re)):re instanceof p?re._promiseCancelled(G):fe||G instanceof M?G._cancel():re.cancel()):typeof ne=="function"?fe?(k&&G._setAsyncGuaranteed(),this._settlePromiseFromHandler(ne,re,ae,G)):ne.call(re,ae,G):re instanceof p?re._isResolved()||(33554432&A?re._promiseFulfilled(ae,G):re._promiseRejected(ae,G)):fe&&(k&&G._setAsyncGuaranteed(),33554432&A?G._fulfill(ae):G._reject(ae))},U.prototype._settlePromiseLateCancellationObserver=function(G){var ne=G.handler,re=G.promise,ae=G.receiver,fe=G.value;typeof ne=="function"?re instanceof U?this._settlePromiseFromHandler(ne,ae,fe,re):ne.call(ae,fe,re):re instanceof U&&re._reject(fe)},U.prototype._settlePromiseCtx=function(G){this._settlePromise(G.promise,G.handler,G.receiver,G.value)},U.prototype._settlePromise0=function(G,ne,re){var ae=this._promise0,fe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,G,fe,ne)},U.prototype._clearCallbackDataAtIndex=function(G){var ne=4*G-4;this[ne+2]=this[ne+3]=this[ne+0]=this[ne+1]=void 0},U.prototype._fulfill=function(G){var ne=this._bitField;if(!((117506048&ne)>>>16)){if(G===this){var re=l();return this._attachExtraTrace(re),this._reject(re)}this._setFulfilled(),this._rejectionHandler0=G,(65535&ne)>0&&(134217728&ne?this._settlePromises():_.settlePromises(this))}},U.prototype._reject=function(G){var ne=this._bitField;if(!((117506048&ne)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=G,this._isFinal())return _.fatalError(G,y.isNode);(65535&ne)>0?_.settlePromises(this):this._ensurePossibleRejectionHandled()}},U.prototype._fulfillPromises=function(G,ne){for(var re=1;re<G;re++){var ae=this._fulfillmentHandlerAt(re),fe=this._promiseAt(re),A=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(fe,ae,A,ne)}},U.prototype._rejectPromises=function(G,ne){for(var re=1;re<G;re++){var ae=this._rejectionHandlerAt(re),fe=this._promiseAt(re),A=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(fe,ae,A,ne)}},U.prototype._settlePromises=function(){var G=this._bitField,ne=65535&G;if(ne>0){if(16842752&G){var re=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,re,G),this._rejectPromises(ne,re)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,G),this._fulfillPromises(ne,ae)}this._setLength(0)}this._clearCancellationData()},U.prototype._settledValue=function(){var G=this._bitField;return 33554432&G?this._rejectionHandler0:16777216&G?this._fulfillmentHandler0:void 0},U.defer=U.pending=function(){return q.deprecated("Promise.defer","new Promise"),{promise:new U(P),resolve:B,reject:W}},y.notEnumerableProp(U,"_makeSelfResolutionError",l),a("./method")(U,P,$,d,q),a("./bind")(U,P,$,q),a("./cancel")(U,M,d,q),a("./direct_resolve")(U),a("./synchronous_inspection")(U),a("./join")(U,M,$,P,_,v),U.Promise=U,U.version="3.5.1",a("./map.js")(U,M,d,$,P,q),a("./call_get.js")(U),a("./using.js")(U,d,$,F,P,q),a("./timers.js")(U,P,q),a("./generators.js")(U,d,P,$,p,q),a("./nodeify.js")(U),a("./promisify.js")(U,P),a("./props.js")(U,M,$,d),a("./race.js")(U,P,$,d),a("./reduce.js")(U,M,d,$,P,q),a("./settle.js")(U,M,q),a("./some.js")(U,M,d),a("./filter.js")(U,P),a("./each.js")(U,P),a("./any.js")(U),y.toFastProperties(U),y.toFastProperties(U.prototype),ee({a:1}),ee({b:2}),ee({c:3}),ee(1),ee(function(){}),ee(void 0),ee(!1),ee(new U(P)),q.setBounds(b.firstLineError,y.lastLineError),U}},{"./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,c){s.exports=function(l,f,d,p,v){var g=a("./util");function y(x){var b=this._promise=new l(f);x instanceof l&&b._propagateFrom(x,3),b._setOnCancel(this),this._values=x,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 x(b,_){var w=d(this._values,this._promise);if(w instanceof l){var S=(w=w._target())._bitField;if(this._values=w,(50397184&S)==0)return this._promise._setAsyncGuaranteed(),w._then(x,this._reject,void 0,this,_);if(!(33554432&S))return 16777216&S?this._reject(w._reason()):this._cancel();w=w._value()}if((w=g.asArray(w))!==null)w.length!==0?this._iterate(w):_===-5?this._resolveEmptyArray():this._resolve(function(P){switch(_){case-2:return[];case-3:return{};case-6:return new Map}}());else{var C=p("expecting an array or an iterable object but got "+g.classString(w)).reason();this._promise._rejectCallback(C,!1)}},y.prototype._iterate=function(x){var b=this.getActualLength(x.length);this._length=b,this._values=this.shouldCopyValues()?new Array(b):this._values;for(var _=this._promise,w=!1,S=null,C=0;C<b;++C){var P=d(x[C],_);S=P instanceof l?(P=P._target())._bitField:null,w?S!==null&&P.suppressUnhandledRejections():S!==null?50397184&S?w=33554432&S?this._promiseFulfilled(P._value(),C):16777216&S?this._promiseRejected(P._reason(),C):this._promiseCancelled(C):(P._proxy(this,C),this._values[C]=P):w=this._promiseFulfilled(P,C)}w||_._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,b){return this._values[b]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof l)x.cancel();else for(var b=0;b<x.length;++b)x[b]instanceof l&&x[b].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(x){return x},y}},{"./util":36}],24:[function(a,s,c){s.exports=function(l,f){var d={},p=a("./util"),v=a("./nodeback"),g=p.withAppended,y=p.maybeWrapAsError,x=p.canEvaluate,b=a("./errors").TypeError,_={__isPromisified__:!0},w=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),S=function(F){return p.isIdentifier(F)&&F.charAt(0)!=="_"&&F!=="constructor"};function C(F){return!w.test(F)}function P(F){try{return F.__isPromisified__===!0}catch{return!1}}function T(F,q,H){var Z=p.getDataPropertyOrDefault(F,q+H,_);return!!Z&&P(Z)}function j(F,q,H,Z){for(var Q=p.inheritedDataKeys(F),te=[],X=0;X<Q.length;++X){var U=Q[X],B=F[U],W=Z===S||S(U);typeof B!="function"||P(B)||T(F,U,q)||!Z(U,B,F,W)||te.push(U,B)}return function(ee,G,ne){for(var re=0;re<ee.length;re+=2){var ae=ee[re];if(ne.test(ae)){for(var fe=ae.replace(ne,""),A=0;A<ee.length;A+=2)if(ee[A]===fe)throw new b(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",G))}}}(te,q,H),te}var $=function(F){return F.replace(/([$])/,"\\$")},M=x?void 0:function(F,q,H,Z,Q,te){var X=function(){return this}(),U=F;function B(){var W=q;q===d&&(W=this);var ee=new l(f);ee._captureStackTrace();var G=typeof U=="string"&&this!==X?this[U]:F,ne=v(ee,te);try{G.apply(W,g(arguments,ne))}catch(re){ee._rejectCallback(y(re),!0,!0)}return ee._isFateSealed()||ee._setAsyncGuaranteed(),ee}return typeof U=="string"&&(F=Z),p.notEnumerableProp(B,"__isPromisified__",!0),B};function I(F,q,H,Z,Q){for(var te=new RegExp($(q)+"$"),X=j(F,q,te,H),U=0,B=X.length;U<B;U+=2){var W=X[U],ee=X[U+1],G=W+q;if(Z===M)F[G]=M(W,d,W,ee,q,Q);else{var ne=Z(ee,function(){return M(W,d,W,ee,q,Q)});p.notEnumerableProp(ne,"__isPromisified__",!0),F[G]=ne}}return p.toFastProperties(F),F}l.promisify=function(F,q){if(typeof F!="function")throw new b("expecting a function but got "+p.classString(F));if(P(F))return F;var H=(q=Object(q)).context===void 0?d:q.context,Z=!!q.multiArgs,Q=function(te,X,U){return M(te,X,void 0,te,null,Z)}(F,H);return p.copyDescriptors(F,Q,C),Q},l.promisifyAll=function(F,q){if(typeof F!="function"&&typeof F!="object")throw new b(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var H=!!(q=Object(q)).multiArgs,Z=q.suffix;typeof Z!="string"&&(Z="Async");var Q=q.filter;typeof Q!="function"&&(Q=S);var te=q.promisifier;if(typeof te!="function"&&(te=M),!p.isIdentifier(Z))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var X=p.inheritedDataKeys(F),U=0;U<X.length;++U){var B=F[X[U]];X[U]!=="constructor"&&p.isClass(B)&&(I(B.prototype,Z,Q,te,H),I(B,Z,Q,te,H))}return I(F,Z,Q,te,H)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,c){s.exports=function(l,f,d,p){var v,g=a("./util"),y=g.isObject,x=a("./es5");typeof Map=="function"&&(v=Map);var b=function(){var S=0,C=0;function P(T,j){this[S]=T,this[S+C]=j,S++}return function(T){C=T.size,S=0;var j=new Array(2*T.size);return T.forEach(P,j),j}}();function _(S){var C,P=!1;if(v!==void 0&&S instanceof v)C=b(S),P=!0;else{var T=x.keys(S),j=T.length;C=new Array(2*j);for(var $=0;$<j;++$){var M=T[$];C[$]=S[M],C[$+j]=M}}this.constructor$(C),this._isMap=P,this._init$(void 0,P?-6:-3)}function w(S){var C,P=d(S);return y(P)?(C=P instanceof l?P._then(l.props,void 0,void 0,void 0,void 0):new _(P).promise(),P instanceof l&&C._propagateFrom(P,2),C):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}g.inherits(_,f),_.prototype._init=function(){},_.prototype._promiseFulfilled=function(S,C){if(this._values[C]=S,++this._totalResolved>=this._length){var P;if(this._isMap)P=function(M){for(var I=new v,F=M.length/2|0,q=0;q<F;++q){var H=M[F+q],Z=M[q];I.set(H,Z)}return I}(this._values);else{P={};for(var T=this.length(),j=0,$=this.length();j<$;++j)P[this._values[j+T]]=this._values[j]}return this._resolve(P),!0}return!1},_.prototype.shouldCopyValues=function(){return!1},_.prototype.getActualLength=function(S){return S>>1},l.prototype.props=function(){return w(this)},l.props=function(S){return w(S)}}},{"./es5":13,"./util":36}],26:[function(a,s,c){function l(f){this._capacity=f,this._length=0,this._front=0}l.prototype._willBeOverCapacity=function(f){return this._capacity<f},l.prototype._pushOne=function(f){var d=this.length();this._checkCapacity(d+1),this[this._front+d&this._capacity-1]=f,this._length=d+1},l.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},l.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},l.prototype.length=function(){return this._length},l.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},l.prototype._resizeTo=function(f){var d=this._capacity;this._capacity=f,function(p,v,g,y,x){for(var b=0;b<x;++b)g[b+y]=p[b+0],p[b+0]=void 0}(this,0,this,d,this._front+this._length&d-1)},s.exports=l},{}],27:[function(a,s,c){s.exports=function(l,f,d,p){var v=a("./util"),g=function(x){return x.then(function(b){return y(b,x)})};function y(x,b){var _=d(x);if(_ instanceof l)return g(_);if((x=v.asArray(x))===null)return p("expecting an array or an iterable object but got "+v.classString(x));var w=new l(f);b!==void 0&&w._propagateFrom(b,3);for(var S=w._fulfill,C=w._reject,P=0,T=x.length;P<T;++P){var j=x[P];(j!==void 0||P in x)&&l.cast(j)._then(S,C,void 0,w,null)}return w}l.race=function(x){return y(x,void 0)},l.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(a,s,c){s.exports=function(l,f,d,p,v,g){var y=l._getDomain,x=a("./util"),b=x.tryCatch;function _(T,j,$,M){this.constructor$(T);var I=y();this._fn=I===null?j:x.domainBind(I,j),$!==void 0&&($=l.resolve($))._attachCancellationCallback(this),this._initialValue=$,this._currentCancellable=null,this._eachValues=M===v?Array(this._length):M===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function w(T,j){this.isFulfilled()?j._resolve(T):j._reject(T)}function S(T,j,$,M){return typeof j!="function"?d("expecting a function but got "+x.classString(j)):new _(T,j,$,M).promise()}function C(T){this.accum=T,this.array._gotAccum(T);var j=p(this.value,this.array._promise);return j instanceof l?(this.array._currentCancellable=j,j._then(P,void 0,void 0,this,void 0)):P.call(this,j)}function P(T){var j,$=this.array,M=$._promise,I=b($._fn);M._pushContext(),(j=$._eachValues!==void 0?I.call(M._boundValue(),T,this.index,this.length):I.call(M._boundValue(),this.accum,T,this.index,this.length))instanceof l&&($._currentCancellable=j);var F=M._popContext();return g.checkForgottenReturns(j,F,$._eachValues!==void 0?"Promise.each":"Promise.reduce",M),j}x.inherits(_,f),_.prototype._gotAccum=function(T){this._eachValues!==void 0&&this._eachValues!==null&&T!==v&&this._eachValues.push(T)},_.prototype._eachComplete=function(T){return this._eachValues!==null&&this._eachValues.push(T),this._eachValues},_.prototype._init=function(){},_.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},_.prototype.shouldCopyValues=function(){return!1},_.prototype._resolve=function(T){this._promise._resolveCallback(T),this._values=null},_.prototype._resultCancelled=function(T){if(T===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof l&&this._currentCancellable.cancel(),this._initialValue instanceof l&&this._initialValue.cancel())},_.prototype._iterate=function(T){var j,$;this._values=T;var M=T.length;if(this._initialValue!==void 0?(j=this._initialValue,$=0):(j=l.resolve(T[0]),$=1),this._currentCancellable=j,!j.isRejected())for(;$<M;++$){var I={accum:null,value:T[$],index:$,length:M,array:this};j=j._then(C,void 0,void 0,I,void 0)}this._eachValues!==void 0&&(j=j._then(this._eachComplete,void 0,void 0,this,void 0)),j._then(w,w,void 0,j,this)},l.prototype.reduce=function(T,j){return S(this,T,j,null)},l.reduce=function(T,j,$,M){return S(T,j,$,M)}}},{"./util":36}],29:[function(a,s,c){var l,f=a("./util"),d=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,v=r.nextTick;l=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();l=function(y){g.then(y)}}else l=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"),x={attributes:!0},b=!1,_=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),b=!1}).observe(_,x),function(w){var S=new MutationObserver(function(){S.disconnect(),w()});S.observe(y,x),b||(b=!0,_.classList.toggle("foo"))}}();s.exports=l},{"./util":36}],30:[function(a,s,c){s.exports=function(l,f,d){var p=l.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 x=new p;return x._bitField=33554432,x._settledValueField=g,this._promiseResolved(y,x)},v.prototype._promiseRejected=function(g,y){var x=new p;return x._bitField=16777216,x._settledValueField=g,this._promiseResolved(y,x)},l.settle=function(g){return d.deprecated(".settle()",".reflect()"),new v(g).promise()},l.prototype.settle=function(){return l.settle(this)}}},{"./util":36}],31:[function(a,s,c){s.exports=function(l,f,d){var p=a("./util"),v=a("./errors").RangeError,g=a("./errors").AggregateError,y=p.isArray,x={};function b(w){this.constructor$(w),this._howMany=0,this._unwrap=!1,this._initialized=!1}function _(w,S){if((0|S)!==S||S<0)return d(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var C=new b(w),P=C.promise();return C.setHowMany(S),C.init(),P}p.inherits(b,f),b.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=y(this._values);!this._isResolved()&&w&&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(w){this._howMany=w},b.prototype._promiseFulfilled=function(w){return this._addFulfilled(w),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(w){return this._addRejected(w),this._checkOutcome()},b.prototype._promiseCancelled=function(){return this._values instanceof l||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},b.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new g,S=this.length();S<this._values.length;++S)this._values[S]!==x&&w.push(this._values[S]);return w.length>0?this._reject(w):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(w){this._values.push(w)},b.prototype._addFulfilled=function(w){this._values[this._totalResolved++]=w},b.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},b.prototype._getRangeError=function(w){var S="Input array must contain at least "+this._howMany+" items but contains only "+w+" items";return new v(S)},b.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},l.some=function(w,S){return _(w,S)},l.prototype.some=function(w){return _(this,w)},l._SomePromiseArray=b}},{"./errors":12,"./util":36}],32:[function(a,s,c){s.exports=function(l){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},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},l.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},l.prototype._isCancelled=function(){return this._target().__isCancelled()},l.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},l.prototype.isPending=function(){return y.call(this._target())},l.prototype.isRejected=function(){return g.call(this._target())},l.prototype.isFulfilled=function(){return v.call(this._target())},l.prototype.isResolved=function(){return x.call(this._target())},l.prototype.value=function(){return d.call(this._target())},l.prototype.reason=function(){var b=this._target();return b._unsetRejectionIsUnhandled(),p.call(b)},l.prototype._value=function(){return this._settledValue()},l.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},l.PromiseInspection=f}},{}],33:[function(a,s,c){s.exports=function(l,f){var d=a("./util"),p=d.errorObj,v=d.isObject,g={}.hasOwnProperty;return function(y,x){if(v(y)){if(y instanceof l)return y;var b=function(w){try{return function(S){return S.then}(w)}catch(S){return p.e=S,p}}(y);if(b===p){x&&x._pushContext();var _=l.reject(b.e);return x&&x._popContext(),_}if(typeof b=="function")return function(w){try{return g.call(w,"_promise0")}catch{return!1}}(y)?(_=new l(f),y._then(_._fulfill,_._reject,void 0,_,null),_):function(w,S,C){var P=new l(f),T=P;C&&C._pushContext(),P._captureStackTrace(),C&&C._popContext();var j=!0,$=d.tryCatch(S).call(w,function(M){P&&(P._resolveCallback(M),P=null)},function(M){P&&(P._rejectCallback(M,j,!0),P=null)});return j=!1,P&&$===p&&(P._rejectCallback($.e,!0,!0),P=null),T}(y,b,x)}return y}}},{"./util":36}],34:[function(a,s,c){s.exports=function(l,f,d){var p=a("./util"),v=l.TimeoutError;function g(w){this.handle=w}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(w){return x(+this).thenReturn(w)},x=l.delay=function(w,S){var C,P;return S!==void 0?(C=l.resolve(S)._then(y,null,null,w,void 0),d.cancellation()&&S instanceof l&&C._setOnCancel(S)):(C=new l(f),P=setTimeout(function(){C._fulfill()},+w),d.cancellation()&&C._setOnCancel(new g(P)),C._captureStackTrace()),C._setAsyncGuaranteed(),C};function b(w){return clearTimeout(this.handle),w}function _(w){throw clearTimeout(this.handle),w}l.prototype.delay=function(w){return x(w,this)},l.prototype.timeout=function(w,S){var C,P;w=+w;var T=new g(setTimeout(function(){C.isPending()&&function(j,$,M){var I;I=typeof $!="string"?$ instanceof Error?$:new v("operation timed out"):new v($),p.markAsOriginatingFromRejection(I),j._attachExtraTrace(I),j._reject(I),M!=null&&M.cancel()}(C,S,P)},w));return d.cancellation()?(P=this.then(),(C=P._then(b,_,void 0,T,void 0))._setOnCancel(T)):C=this._then(b,_,void 0,T,void 0),C}}},{"./util":36}],35:[function(a,s,c){s.exports=function(l,f,d,p,v,g){var y=a("./util"),x=a("./errors").TypeError,b=a("./util").inherits,_=y.errorObj,w=y.tryCatch,S={};function C(I){setTimeout(function(){throw I},0)}function P(I,F){var q=0,H=I.length,Z=new l(v);return function Q(){if(q>=H)return Z._fulfill();var te=function(X){var U=d(X);return U!==X&&typeof X._isDisposable=="function"&&typeof X._getDisposer=="function"&&X._isDisposable()&&U._setDisposable(X._getDisposer()),U}(I[q++]);if(te instanceof l&&te._isDisposable()){try{te=d(te._getDisposer().tryDispose(F),I.promise)}catch(X){return C(X)}if(te instanceof l)return te._then(Q,C,null,null,null)}Q()}(),Z}function T(I,F,q){this._data=I,this._promise=F,this._context=q}function j(I,F,q){this.constructor$(I,F,q)}function $(I){return T.isDisposer(I)?(this.resources[this.index]._setDisposable(I),I.promise()):I}function M(I){this.length=I,this.promise=null,this[I-1]=null}T.prototype.data=function(){return this._data},T.prototype.promise=function(){return this._promise},T.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():S},T.prototype.tryDispose=function(I){var F=this.resource(),q=this._context;q!==void 0&&q._pushContext();var H=F!==S?this.doDispose(F,I):null;return q!==void 0&&q._popContext(),this._promise._unsetDisposable(),this._data=null,H},T.isDisposer=function(I){return I!=null&&typeof I.resource=="function"&&typeof I.tryDispose=="function"},b(j,T),j.prototype.doDispose=function(I,F){return this.data().call(I,I,F)},M.prototype._resultCancelled=function(){for(var I=this.length,F=0;F<I;++F){var q=this[F];q instanceof l&&q.cancel()}},l.using=function(){var I=arguments.length;if(I<2)return f("you must pass at least 2 arguments to Promise.using");var F,q=arguments[I-1];if(typeof q!="function")return f("expecting a function but got "+y.classString(q));var H=!0;I===2&&Array.isArray(arguments[0])?(I=(F=arguments[0]).length,H=!1):(F=arguments,I--);for(var Z=new M(I),Q=0;Q<I;++Q){var te=F[Q];if(T.isDisposer(te)){var X=te;(te=te.promise())._setDisposable(X)}else{var U=d(te);U instanceof l&&(te=U._then($,null,null,{resources:Z,index:Q},void 0))}Z[Q]=te}var B=new Array(Z.length);for(Q=0;Q<B.length;++Q)B[Q]=l.resolve(Z[Q]).reflect();var W=l.all(B).then(function(G){for(var ne=0;ne<G.length;++ne){var re=G[ne];if(re.isRejected())return _.e=re.error(),_;if(!re.isFulfilled())return void W.cancel();G[ne]=re.value()}ee._pushContext(),q=w(q);var ae=H?q.apply(void 0,G):q(G),fe=ee._popContext();return g.checkForgottenReturns(ae,fe,"Promise.using",ee),ae}),ee=W.lastly(function(){var G=new l.PromiseInspection(W);return P(Z,G)});return Z.promise=ee,ee._setOnCancel(Z),ee},l.prototype._setDisposable=function(I){this._bitField=131072|this._bitField,this._disposer=I},l.prototype._isDisposable=function(){return(131072&this._bitField)>0},l.prototype._getDisposer=function(){return this._disposer},l.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},l.prototype.disposer=function(I){if(typeof I=="function")return new j(I,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,c){var l,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 H=l;return l=null,H.apply(this,arguments)}catch(Z){return p.e=Z,p}}function y(H){return H==null||H===!0||H===!1||typeof H=="string"||typeof H=="number"}function x(H,Z,Q){if(y(H))return H;var te={value:Q,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(H,Z,te),H}var b=function(){var H=[Array.prototype,Object.prototype,Function.prototype],Z=function(X){for(var U=0;U<H.length;++U)if(H[U]===X)return!0;return!1};if(f.isES5){var Q=Object.getOwnPropertyNames;return function(X){for(var U=[],B=Object.create(null);X!=null&&!Z(X);){var W;try{W=Q(X)}catch{return U}for(var ee=0;ee<W.length;++ee){var G=W[ee];if(!B[G]){B[G]=!0;var ne=Object.getOwnPropertyDescriptor(X,G);ne!=null&&ne.get==null&&ne.set==null&&U.push(G)}}X=f.getPrototypeOf(X)}return U}}var te={}.hasOwnProperty;return function(X){if(Z(X))return[];var U=[];e:for(var B in X)if(te.call(X,B))U.push(B);else{for(var W=0;W<H.length;++W)if(te.call(H[W],B))continue e;U.push(B)}return U}}(),_=/this\s*\.\s*\S+\s*=/,w=/^[a-z$_][a-z$_0-9]*$/i;function S(H){try{return H+""}catch{return"[no string representation]"}}function C(H){return H instanceof Error||H!==null&&typeof H=="object"&&typeof H.message=="string"&&typeof H.name=="string"}function P(H){return C(H)&&f.propertyIsWritable(H,"stack")}var T="stack"in new Error?function(H){return P(H)?H:new Error(S(H))}:function(H){if(P(H))return H;try{throw new Error(S(H))}catch(Z){return Z}};function j(H){return{}.toString.call(H)}var $=function(H){return f.isArray(H)?H:null};if(typeof Symbol<"u"&&Symbol.iterator){var M=typeof Array.from=="function"?function(H){return Array.from(H)}:function(H){for(var Z,Q=[],te=H[Symbol.iterator]();!(Z=te.next()).done;)Q.push(Z.value);return Q};$=function(H){return f.isArray(H)?H:H!=null&&typeof H[Symbol.iterator]=="function"?M(H):null}}var I=r!==void 0&&j(r).toLowerCase()==="[object process]",F=r!==void 0&&r.env!==void 0,q={isClass:function(H){try{if(typeof H=="function"){var Z=f.names(H.prototype),Q=f.isES5&&Z.length>1,te=Z.length>0&&!(Z.length===1&&Z[0]==="constructor"),X=_.test(H+"")&&f.names(H).length>0;if(Q||te||X)return!0}return!1}catch{return!1}},isIdentifier:function(H){return w.test(H)},inheritedDataKeys:b,getDataPropertyOrDefault:function(H,Z,Q){if(!f.isES5)return{}.hasOwnProperty.call(H,Z)?H[Z]:void 0;var te=Object.getOwnPropertyDescriptor(H,Z);return te!=null?te.get==null&&te.set==null?te.value:Q:void 0},thrower:function(H){throw H},isArray:f.isArray,asArray:$,notEnumerableProp:x,isPrimitive:y,isObject:function(H){return typeof H=="function"||typeof H=="object"&&H!==null},isError:C,canEvaluate:d,errorObj:p,tryCatch:function(H){return l=H,g},inherits:function(H,Z){var Q={}.hasOwnProperty;function te(){for(var X in this.constructor=H,this.constructor$=Z,Z.prototype)Q.call(Z.prototype,X)&&X.charAt(X.length-1)!=="$"&&(this[X+"$"]=Z.prototype[X])}return te.prototype=Z.prototype,H.prototype=new te,H.prototype},withAppended:function(H,Z){var Q,te=H.length,X=new Array(te+1);for(Q=0;Q<te;++Q)X[Q]=H[Q];return X[Q]=Z,X},maybeWrapAsError:function(H){return y(H)?new Error(S(H)):H},toFastProperties:function(H){return H},filledRange:function(H,Z,Q){for(var te=new Array(H),X=0;X<H;++X)te[X]=Z+X+Q;return te},toString:S,canAttachTrace:P,ensureErrorObject:T,originatesFromRejection:function(H){return H!=null&&(H instanceof Error.__BluebirdErrorTypes__.OperationalError||H.isOperational===!0)},markAsOriginatingFromRejection:function(H){try{x(H,"isOperational",!0)}catch{}},classString:j,copyDescriptors:function(H,Z,Q){for(var te=f.names(H),X=0;X<te.length;++X){var U=te[X];if(Q(U))try{f.defineProperty(Z,U,f.getDescriptor(H,U))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:I,hasEnvVariables:F,env:function(H){return F?r.env[H]:void 0},global:v,getNativePromise:function(){if(typeof Promise=="function")try{var H=new Promise(function(){});if({}.toString.call(H)==="[object Promise]")return Promise}catch{}},domainBind:function(H,Z){return H.bind(Z)}};q.isRecentNode=q.isNode&&function(){var H=r.versions.node.split(".").map(Number);return H[0]===0&&H[1]>10||H[0]>0}(),q.isNode&&q.toFastProperties(r);try{throw new Error}catch(H){q.lastLineError=H}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=w,n(12).EventEmitter;var c=function(B,W){return B.listeners(W).length},l=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,x=n(42),b=n(25);p.inherits(S,l);var _=["error","close","destroy","pause","resume"];function w(B,W){a=a||n(1),B=B||{};var ee=W instanceof a;this.objectMode=!!B.objectMode,ee&&(this.objectMode=this.objectMode||!!B.readableObjectMode);var G=B.highWaterMark,ne=B.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=G||G===0?G:ee&&(ne||ne===0)?ne:re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new x,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=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(y||(y=n(26).StringDecoder),this.decoder=new y(B.encoding),this.encoding=B.encoding)}function S(B){if(a=a||n(1),!(this instanceof S))return new S(B);this._readableState=new w(B,this),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),l.call(this)}function C(B,W,ee,G,ne){var re,ae=B._readableState;return W===null?(ae.reading=!1,function(fe,A){if(!A.ended){if(A.decoder){var k=A.decoder.end();k&&k.length&&(A.buffer.push(k),A.length+=A.objectMode?1:k.length)}A.ended=!0,$(fe)}}(B,ae)):(ne||(re=function(fe,A){var k;return function(z){return f.isBuffer(z)||z instanceof d}(A)||typeof A=="string"||A===void 0||fe.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k}(ae,W)),re?B.emit("error",re):ae.objectMode||W&&W.length>0?(typeof W=="string"||ae.objectMode||Object.getPrototypeOf(W)===f.prototype||(W=function(fe){return f.from(fe)}(W)),G?ae.endEmitted?B.emit("error",new Error("stream.unshift() after end event")):P(B,ae,W,!0):ae.ended?B.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!ee?(W=ae.decoder.write(W),ae.objectMode||W.length!==0?P(B,ae,W,!1):I(B,ae)):P(B,ae,W,!1))):G||(ae.reading=!1)),function(fe){return!fe.ended&&(fe.needReadable||fe.length<fe.highWaterMark||fe.length===0)}(ae)}function P(B,W,ee,G){W.flowing&&W.length===0&&!W.sync?(B.emit("data",ee),B.read(0)):(W.length+=W.objectMode?1:ee.length,G?W.buffer.unshift(ee):W.buffer.push(ee),W.needReadable&&$(B)),I(B,W)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(B,W){this.push(null),W(B)},S.prototype.push=function(B,W){var ee,G=this._readableState;return G.objectMode?ee=!0:typeof B=="string"&&((W=W||G.defaultEncoding)!==G.encoding&&(B=f.from(B,W),W=""),ee=!0),C(this,B,W,!1,ee)},S.prototype.unshift=function(B){return C(this,B,null,!0,!1)},S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(B){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(B),this._readableState.encoding=B,this};var T=8388608;function j(B,W){return B<=0||W.length===0&&W.ended?0:W.objectMode?1:B!=B?W.flowing&&W.length?W.buffer.head.data.length:W.length:(B>W.highWaterMark&&(W.highWaterMark=function(ee){return ee>=T?ee=T:(ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++),ee}(B)),B<=W.length?B:W.ended?W.length:(W.needReadable=!0,0))}function $(B){var W=B._readableState;W.needReadable=!1,W.emittedReadable||(g("emitReadable",W.flowing),W.emittedReadable=!0,W.sync?o.nextTick(M,B):M(B))}function M(B){g("emit readable"),B.emit("readable"),Z(B)}function I(B,W){W.readingMore||(W.readingMore=!0,o.nextTick(F,B,W))}function F(B,W){for(var ee=W.length;!W.reading&&!W.flowing&&!W.ended&&W.length<W.highWaterMark&&(g("maybeReadMore read 0"),B.read(0),ee!==W.length);)ee=W.length;W.readingMore=!1}function q(B){g("readable nexttick read 0"),B.read(0)}function H(B,W){W.reading||(g("resume read 0"),B.read(0)),W.resumeScheduled=!1,W.awaitDrain=0,B.emit("resume"),Z(B),W.flowing&&!W.reading&&B.read(0)}function Z(B){var W=B._readableState;for(g("flow",W.flowing);W.flowing&&B.read()!==null;);}function Q(B,W){return W.length===0?null:(W.objectMode?ee=W.buffer.shift():!B||B>=W.length?(ee=W.decoder?W.buffer.join(""):W.buffer.length===1?W.buffer.head.data:W.buffer.concat(W.length),W.buffer.clear()):ee=function(G,ne,re){var ae;return G<ne.head.data.length?(ae=ne.head.data.slice(0,G),ne.head.data=ne.head.data.slice(G)):ae=G===ne.head.data.length?ne.shift():re?function(fe,A){var k=A.head,z=1,J=k.data;for(fe-=J.length;k=k.next;){var Y=k.data,ie=fe>Y.length?Y.length:fe;if(ie===Y.length?J+=Y:J+=Y.slice(0,fe),(fe-=ie)==0){ie===Y.length?(++z,k.next?A.head=k.next:A.head=A.tail=null):(A.head=k,k.data=Y.slice(ie));break}++z}return A.length-=z,J}(G,ne):function(fe,A){var k=f.allocUnsafe(fe),z=A.head,J=1;for(z.data.copy(k),fe-=z.data.length;z=z.next;){var Y=z.data,ie=fe>Y.length?Y.length:fe;if(Y.copy(k,k.length-fe,0,ie),(fe-=ie)==0){ie===Y.length?(++J,z.next?A.head=z.next:A.head=A.tail=null):(A.head=z,z.data=Y.slice(ie));break}++J}return A.length-=J,k}(G,ne),ae}(B,W.buffer,W.decoder),ee);var ee}function te(B){var W=B._readableState;if(W.length>0)throw new Error('"endReadable()" called on non-empty stream');W.endEmitted||(W.ended=!0,o.nextTick(X,W,B))}function X(B,W){B.endEmitted||B.length!==0||(B.endEmitted=!0,W.readable=!1,W.emit("end"))}function U(B,W){for(var ee=0,G=B.length;ee<G;ee++)if(B[ee]===W)return ee;return-1}S.prototype.read=function(B){g("read",B),B=parseInt(B,10);var W=this._readableState,ee=B;if(B!==0&&(W.emittedReadable=!1),B===0&&W.needReadable&&(W.length>=W.highWaterMark||W.ended))return g("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?te(this):$(this),null;if((B=j(B,W))===0&&W.ended)return W.length===0&&te(this),null;var G,ne=W.needReadable;return g("need readable",ne),(W.length===0||W.length-B<W.highWaterMark)&&g("length less than watermark",ne=!0),W.ended||W.reading?g("reading or ended",ne=!1):ne&&(g("do read"),W.reading=!0,W.sync=!0,W.length===0&&(W.needReadable=!0),this._read(W.highWaterMark),W.sync=!1,W.reading||(B=j(ee,W))),(G=B>0?Q(B,W):null)===null?(W.needReadable=!0,B=0):W.length-=B,W.length===0&&(W.ended||(W.needReadable=!0),ee!==B&&W.ended&&te(this)),G!==null&&this.emit("data",G),G},S.prototype._read=function(B){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(B,W){var ee=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=B;break;case 1:G.pipes=[G.pipes,B];break;default:G.pipes.push(B)}G.pipesCount+=1,g("pipe count=%d opts=%j",G.pipesCount,W);var ne=W&&W.end===!1||B===i.stdout||B===i.stderr?ie:re;function re(){g("onend"),B.end()}G.endEmitted?o.nextTick(ne):ee.once("end",ne),B.on("unpipe",function de(Ce,se){g("onunpipe"),Ce===ee&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,g("cleanup"),B.removeListener("close",J),B.removeListener("finish",Y),B.removeListener("drain",ae),B.removeListener("error",z),B.removeListener("unpipe",de),ee.removeListener("end",re),ee.removeListener("end",ie),ee.removeListener("data",k),fe=!0,!G.awaitDrain||B._writableState&&!B._writableState.needDrain||ae())});var ae=function(de){return function(){var Ce=de._readableState;g("pipeOnDrain",Ce.awaitDrain),Ce.awaitDrain&&Ce.awaitDrain--,Ce.awaitDrain===0&&c(de,"data")&&(Ce.flowing=!0,Z(de))}}(ee);B.on("drain",ae);var fe=!1,A=!1;function k(de){g("ondata"),A=!1,B.write(de)!==!1||A||((G.pipesCount===1&&G.pipes===B||G.pipesCount>1&&U(G.pipes,B)!==-1)&&!fe&&(g("false write response, pause",ee._readableState.awaitDrain),ee._readableState.awaitDrain++,A=!0),ee.pause())}function z(de){g("onerror",de),ie(),B.removeListener("error",z),c(B,"error")===0&&B.emit("error",de)}function J(){B.removeListener("finish",Y),ie()}function Y(){g("onfinish"),B.removeListener("close",J),ie()}function ie(){g("unpipe"),ee.unpipe(B)}return ee.on("data",k),function(de,Ce,se){if(typeof de.prependListener=="function")return de.prependListener(Ce,se);de._events&&de._events[Ce]?s(de._events[Ce])?de._events[Ce].unshift(se):de._events[Ce]=[se,de._events[Ce]]:de.on(Ce,se)}(B,"error",z),B.once("close",J),B.once("finish",Y),B.emit("pipe",ee),G.flowing||(g("pipe resume"),ee.resume()),B},S.prototype.unpipe=function(B){var W=this._readableState,ee={hasUnpiped:!1};if(W.pipesCount===0)return this;if(W.pipesCount===1)return B&&B!==W.pipes?this:(B||(B=W.pipes),W.pipes=null,W.pipesCount=0,W.flowing=!1,B&&B.emit("unpipe",this,ee),this);if(!B){var G=W.pipes,ne=W.pipesCount;W.pipes=null,W.pipesCount=0,W.flowing=!1;for(var re=0;re<ne;re++)G[re].emit("unpipe",this,ee);return this}var ae=U(W.pipes,B);return ae===-1?this:(W.pipes.splice(ae,1),W.pipesCount-=1,W.pipesCount===1&&(W.pipes=W.pipes[0]),B.emit("unpipe",this,ee),this)},S.prototype.on=function(B,W){var ee=l.prototype.on.call(this,B,W);if(B==="data")this._readableState.flowing!==!1&&this.resume();else if(B==="readable"){var G=this._readableState;G.endEmitted||G.readableListening||(G.readableListening=G.needReadable=!0,G.emittedReadable=!1,G.reading?G.length&&$(this):o.nextTick(q,this))}return ee},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var B=this._readableState;return B.flowing||(g("resume"),B.flowing=!0,function(W,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,o.nextTick(H,W,ee))}(this,B)),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(B){var W=this,ee=this._readableState,G=!1;for(var ne in B.on("end",function(){if(g("wrapped end"),ee.decoder&&!ee.ended){var ae=ee.decoder.end();ae&&ae.length&&W.push(ae)}W.push(null)}),B.on("data",function(ae){g("wrapped data"),ee.decoder&&(ae=ee.decoder.write(ae)),(!ee.objectMode||ae!=null)&&(ee.objectMode||ae&&ae.length)&&(W.push(ae)||(G=!0,B.pause()))}),B)this[ne]===void 0&&typeof B[ne]=="function"&&(this[ne]=function(ae){return function(){return B[ae].apply(B,arguments)}}(ne));for(var re=0;re<_.length;re++)B.on(_[re],this.emit.bind(this,_[re]));return this._read=function(ae){g("wrapped _read",ae),G&&(G=!1,B.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=Q}).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,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(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(x){var b=function(_){if(!_)return"utf8";for(var w;;)switch(_){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 _;default:if(w)return;_=(""+_).toLowerCase(),w=!0}}(x);if(typeof b!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return b||x}(g),this.encoding){case"utf16le":this.text=c,this.end=l,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,x=function(b,_,w){if((192&_[0])!=128)return b.lastNeed=0,"<22>";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"<22>";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"<22>"}}(this,g);return x!==void 0?x: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 c(g,y){if((g.length-y)%2==0){var x=g.toString("utf16le",y);if(x){var b=x.charCodeAt(x.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],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function l(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function f(g,y){var x=(g.length-y)%3;return x===0?g.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===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-x))}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,x;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<g.length?y?y+this.text(g,x):this.text(g,x):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 x=function(_,w,S){var C=w.length-1;if(C<S)return 0;var P=a(w[C]);return P>=0?(P>0&&(_.lastNeed=P-1),P):--C<S||P===-2?0:(P=a(w[C]))>=0?(P>0&&(_.lastNeed=P-2),P):--C<S||P===-2?0:(P=a(w[C]))>=0?(P>0&&(P===2?P=0:_.lastNeed=P-3),P):0}(this,g,y);if(!this.lastNeed)return g.toString("utf8",y);this.lastTotal=x;var b=g.length-(x-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(c){if(!(this instanceof o))return new o(c);r.call(this,c),this._transformState={afterTransform:(function(l,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(l);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,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",a)}function a(){var c=this;typeof this._flush=="function"?this._flush(function(l,f){s(c,l,f)}):s(this,null,null)}function s(c,l,f){if(l)return c.emit("error",l);if(f!=null&&c.push(f),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(c,l){return this._transformState.needTransform=!1,r.prototype.push.call(this,c,l)},o.prototype._transform=function(c,l,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(c,l,f){var d=this._transformState;if(d.writecb=f,d.writechunk=c,d.writeencoding=l,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(c){var l=this._transformState;l.writechunk!==null&&l.writecb&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},o.prototype._destroy=function(c,l){var f=this;r.prototype._destroy.call(this,c,function(d){l(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 c in s)s.hasOwnProperty(c)&&(a[c]=s[c])};return function(a,s){function c(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,c,l){var f=o.call(this,"Error: "+s+". JSON Line number: "+c+(l?" near: "+l:""))||this;return f.err=s,f.line=c,f.extra=l,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,c){return new a("column_mismatched",s,c)},a.unclosed_quote=function(s,c){return new a("unclosed_quote",s,c)},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 x in y)y.hasOwnProperty(x)&&(g[x]=y[x])};return function(g,y){function x(){this.constructor=g}v(g,y),g.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),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),c=n(51),l=o(n(15)),f=n(52),d=n(105),p=function(v){function g(y,x){x===void 0&&(x={});var b=v.call(this,x)||this;return b.options=x,b.params=s.mergeParams(y),b.runtime=c.initParseRuntime(b),b.result=new d.Result(b),b.processor=new f.ProcessorLocal(b),b.once("error",function(_){r(function(){b.result.processError(_),b.emit("done",_)})}),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,x,b){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:b},this},g.prototype.fromFile=function(y,x){var b=this,_=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return _.exists(y,function(w){w?_.createReadStream(y,x).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 x=new a.Readable,b=0;return x._read=function(_){if(b>=y.length)this.push(null);else{var w=y.substr(b,_);this.push(w),b+=_}},this.fromStream(x)},g.prototype.then=function(y,x){var b=this;return new l.default(function(_,w){b.parseRuntime.then={onfulfilled:function(S){_(y?y(S):S)},onrejected:function(S){x?_(x(S)):w(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,x,b){var _=this;this.processor.process(y).then(function(w){if(w.length>0)return _.runtime.started=!0,_.result.processResult(w)}).then(function(){_.emit("drained"),b()},function(w){_.runtime.hasError=!0,_.runtime.error=w,_.emit("error",w),b()})},g.prototype._flush=function(y){var x=this;this.processor.flush().then(function(b){if(b.length>0)return x.result.processResult(b)}).then(function(){x.processEnd(y)},function(b){x.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,c=1,l={},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,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=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",x,!1):o.attachEvent("onmessage",x),s=function(b){o.postMessage(y+b,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){g(x.data)},s=function(x){y.port2.postMessage(x)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var y=d.documentElement;s=function(x){var b=d.createElement("script");b.onreadystatechange=function(){g(x),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 x=new Array(arguments.length-1),b=0;b<x.length;b++)x[b]=arguments[b+1];var _={callback:y,args:x};return l[c]=_,s(c),c++},p.clearImmediate=v}function v(y){delete l[y]}function g(y){if(f)setTimeout(g,0,y);else{var x=l[y];if(x){f=!0;try{(function(b){var _=b.callback,w=b.args;switch(w.length){case 0:_();break;case 1:_(w[0]);break;case 2:_(w[0],w[1]);break;case 3:_(w[0],w[1],w[2]);break;default:_.apply(a,w)}})(x)}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 c(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function l(){s.readable&&s.resume&&s.resume()}s.on("data",c),o.on("drain",l),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",c),o.removeListener("drain",l),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=l(p),g=v[0],y=v[1];return 3*(g+y)/4-y},t.toByteArray=function(p){for(var v,g=l(p),y=g[0],x=g[1],b=new o(3*(y+x)/4-x),_=0,w=x>0?y-4:y,S=0;S<w;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[_++]=v>>16&255,b[_++]=v>>8&255,b[_++]=255&v;return x===2&&(v=i[p.charCodeAt(S)]<<2|i[p.charCodeAt(S+1)]>>4,b[_++]=255&v),x===1&&(v=i[p.charCodeAt(S)]<<10|i[p.charCodeAt(S+1)]<<4|i[p.charCodeAt(S+2)]>>2,b[_++]=v>>8&255,b[_++]=255&v),b},t.fromByteArray=function(p){for(var v,g=p.length,y=g%3,x=[],b=0,_=g-y;b<_;b+=16383)x.push(d(p,b,b+16383>_?_:b+16383));return y===1?(v=p[g-1],x.push(r[v>>2]+r[v<<4&63]+"==")):y===2&&(v=(p[g-2]<<8)+p[g-1],x.push(r[v>>10]+r[v>>4&63]+r[v<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(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,x=[],b=v;b<g;b+=3)y=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(255&p[b+2]),x.push(f(y));return x.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,a){var s,c,l=8*a-o-1,f=(1<<l)-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+=l;p>0;s=256*s+n[r+v],v+=g,p-=8);for(c=s&(1<<-p)-1,s>>=-p,p+=o;p>0;c=256*c+n[r+v],v+=g,p-=8);if(s===0)s=1-d;else{if(s===f)return c?NaN:1/0*(y?-1:1);c+=Math.pow(2,o),s-=d}return(y?-1:1)*c*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var c,l,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,x=o?1:-1,b=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,c=p):(c=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-c))<1&&(c--,f*=2),(r+=c+v>=1?g/f:g*Math.pow(2,1-v))*f>=2&&(c++,f/=2),c+v>=p?(l=0,c=p):c+v>=1?(l=(r*f-1)*Math.pow(2,a),c+=v):(l=r*Math.pow(2,v-1)*Math.pow(2,a),c=0));a>=8;n[i+y]=255&l,y+=x,l/=256,a-=8);for(c=c<<a|l,d+=a;d>0;n[i+y]=255&c,y+=x,c/=256,d-=8);n[i+y-x]|=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,c){a.copy(s,c)}e.exports=function(){function a(){(function(s,c){if(!(s instanceof c))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 c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},a.prototype.unshift=function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++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 c=this.head,l=""+c.data;c=c.next;)l+=s+c.data;return l},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var c=r.allocUnsafe(s>>>0),l=this.head,f=0;l;)o(l.data,c,f),f+=l.data.length,l=l.next;return c},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,c){c(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 x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var w in _)_.hasOwnProperty(w)&&(b[w]=_[w])};return function(b,_){function w(){this.constructor=b}x(b,_),b.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),c=n(54),l=o(n(16)),f=n(57),d=n(28),p=n(58),v=o(n(59)),g=o(n(29)),y=function(x){function b(){var _=x!==null&&x.apply(this,arguments)||this;return _.rowSplit=new p.RowSplit(_.converter),_.eolEmitted=!1,_._needEmitEol=void 0,_.headEmitted=!1,_._needEmitHead=void 0,_}return i(b,x),b.prototype.flush=function(){var _=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var w=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(w,!0).then(function(S){return _.runtime.csvLineBuffer&&_.runtime.csvLineBuffer.length>0?s.default.reject(g.default.unclosed_quote(_.runtime.parsedLineNumber,_.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(_,w){var S,C=this;return w===void 0&&(w=!1),S=w?_.toString():c.prepareData(_,this.converter.parseRuntime),s.default.resolve().then(function(){return C.runtime.preRawDataHook?C.runtime.preRawDataHook(S):S}).then(function(P){return P&&P.length>0?C.processCSV(P,w):s.default.resolve([])})},b.prototype.processCSV=function(_,w){var S=this,C=this.params,P=this.runtime;P.eol||l.default(_,P),this.needEmitEol&&!this.eolEmitted&&P.eol&&(this.converter.emit("eol",P.eol),this.eolEmitted=!0),C.ignoreEmpty&&!P.started&&(_=d.trimLeft(_));var T=f.stringToLines(_,P);return w?(T.lines.push(T.partial),T.partial=""):this.prependLeftBuf(d.bufFromString(T.partial)),T.lines.length>0?(P.preFileLineHook?this.runPreLineHook(T.lines):s.default.resolve(T.lines)).then(function(j){return P.started||S.runtime.headers?S.processCSVBody(j):S.processDataWithHead(j)}):s.default.resolve([])},b.prototype.processDataWithHead=function(_){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var w="",S=[];_.length;){var C=w+_.shift(),P=this.rowSplit.parse(C);if(P.closed){S=P.cells,w="";break}w=C+l.default(C,this.runtime)}if(this.prependLeftBuf(d.bufFromString(w)),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(_)},b.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var _=this.runtime.headers,w=0;w<_.length;w++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(_[w])){if(!this.params.includeColumns||!this.params.includeColumns.test(_[w]))continue;this.runtime.selectedColumns.push(w)}else this.runtime.selectedColumns.push(w);else this.params.includeColumns?this.params.includeColumns.test(_[w])&&this.runtime.selectedColumns.push(w):this.runtime.selectedColumns.push(w);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},b.prototype.processCSVBody=function(_){if(this.params.output==="line")return _;var w=this.rowSplit.parseMultiLines(_);return this.prependLeftBuf(d.bufFromString(w.partial)),this.params.output==="csv"?w.rowsCells:v.default(w.rowsCells,this.converter)},b.prototype.prependLeftBuf=function(_){_&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([_,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=_)},b.prototype.runPreLineHook=function(_){var w=this;return new s.default(function(S,C){(function P(T,j,$,M){if($>=T.length)M();else if(j.preFileLineHook){var I=T[$],F=j.preFileLineHook(I,j.parsedLineNumber+$);if($++,F&&F.then)F.then(function(q){T[$-1]=q,P(T,j,$,M)});else{for(T[$-1]=F;$<T.length;)T[$]=j.preFileLineHook(T[$],j.parsedLineNumber+$),$++;M()}}else M()})(_,w.runtime,0,function(P){P?C(P):S(_)})})},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 c=function(f,d){return d.csvLineBuffer&&d.csvLineBuffer.length>0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var l=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}(c,s).toString("utf8");return s.started===!1?o.default(l):l}}).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),c=o.split(s);return{lines:c,partial:c.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function c(l){this.conv=l,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=l.parseParam.quote,this.trim=l.parseParam.trim,this.escape=l.parseParam.escape}return Object.defineProperty(c.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),c.prototype.parse=function(l){if(l.length===0||this.conv.parseParam.ignoreEmpty&&l.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(l)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,v=l.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)},c.prototype.toCSVRow=function(l,f,d,p){for(var v=[],g=!1,y="",x=0,b=l.length;x<b;x++){var _=l[x];!g&&f&&(_=o.trimLeft(_));var w=_.length;if(g)this.isQuoteClose(_)?(g=!1,y+=p+(_=_.substr(0,w-1)),y=this.escapeQuote(y),f&&(y=o.trimRight(y)),v.push(y),y=""):y+=p+_;else{if(w===2&&_===this.quote+this.quote){v.push("");continue}if(this.isQuoteOpen(_)){if(_=_.substr(1),this.isQuoteClose(_)){_=_.substring(0,_.lastIndexOf(d)),_=this.escapeQuote(_),v.push(_);continue}if(_.indexOf(d)!==-1){for(var S=0,C="",P=0,T=_;P<T.length;P++){var j=T[P];j===d&&C!==this.escape?(S++,C=""):C=j}if(S%2==1){f&&(_=o.trimRight(_)),v.push(d+_);continue}g=!0,y+=_;continue}g=!0,y+=_;continue}f&&(_=o.trimRight(_)),v.push(_)}}return{cells:v,closed:!g}},c.prototype.getDelimiter=function(l){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=l.split(v).length;g>d&&(p=v,d=g)}),p},c.prototype.isQuoteOpen=function(l){var f=this.quote,d=this.escape;return l[0]===f&&(l[1]!==f||l[1]===d&&(l[2]===f||l.length===2))},c.prototype.isQuoteClose=function(l){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(l=o.trimRight(l));for(var p=0,v=l.length-1;l[v]===f||l[v]===d;)v--,p++;return p%2!=0},c.prototype.escapeQuote=function(l){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 l.replace(d,this.quote)},c.prototype.parseMultiLines=function(l){for(var f=[],d="";l.length;){var p=d+l.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}},c}();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,_,w){if(_.parseParam.checkColumn&&_.parseRuntime.headers&&b.length!==_.parseRuntime.headers.length)throw i.default.column_mismatched(_.parseRuntime.parsedLineNumber+w);return function(S,C,P){for(var T=!1,j={},$=0,M=S.length;$<M;$++){var I=S[$];if(!P.parseParam.ignoreEmpty||I!==""){T=!0;var F=C[$];F&&F!==""||(F=C[$]="field"+($+1));var q=l(F,$,P);if(q){var H=q(I,F,j,S,$);H!==void 0&&f(j,F,H,P,$)}else P.parseParam.checkType&&(I=v(I,F,$,P)(I)),I!==void 0&&f(j,F,I,P,$)}}return T?j:null}(b,_.parseRuntime.headers||[],_)||null}t.default=function(b,_){for(var w=[],S=0,C=b.length;S<C;S++){var P=s(b[S],_,S);P&&w.push(P)}return w};var c={string:y,number:g,omit:function(){}};function l(b,_,w){if(w.parseRuntime.columnConv[_]!==void 0)return w.parseRuntime.columnConv[_];var S=w.parseParam.colParser[b];if(S===void 0)return w.parseRuntime.columnConv[_]=null;if(typeof S=="object"&&(S=S.cellParser||"string"),typeof S=="string"){S=S.trim().toLowerCase();var C=c[S];return w.parseRuntime.columnConv[_]=C||null}return w.parseRuntime.columnConv[_]=typeof S=="function"?S:null}function f(b,_,w,S,C){if(!S.parseRuntime.columnValueSetter[C])if(S.parseParam.flatKeys)S.parseRuntime.columnValueSetter[C]=d;else if(_.indexOf(".")>-1){for(var P=_.split("."),T=!0;P.length>0;)if(P.shift().length===0){T=!1;break}!T||S.parseParam.colParser[_]&&S.parseParam.colParser[_].flat?S.parseRuntime.columnValueSetter[C]=d:S.parseRuntime.columnValueSetter[C]=p}else S.parseRuntime.columnValueSetter[C]=d;S.parseParam.nullObject===!0&&w==="null"&&(w=null),S.parseRuntime.columnValueSetter[C](b,_,w)}function d(b,_,w){b[_]=w}function p(b,_,w){o.default(b,_,w)}function v(b,_,w,S){return S.parseRuntime.headerType[w]?S.parseRuntime.headerType[w]:_.indexOf("number#!")>-1?S.parseRuntime.headerType[w]=g:_.indexOf("string#!")>-1?S.parseRuntime.headerType[w]=y:S.parseParam.checkType?S.parseRuntime.headerType[w]=x:S.parseRuntime.headerType[w]=y}function g(b){var _=parseFloat(b);return isNaN(_)?b:_}function y(b){return b.toString()}function x(b){var _=b.trim();return _===""?y(b):a.test(_)?g(b):_.length===5&&_.toLowerCase()==="false"||_.length===4&&_.toLowerCase()==="true"?function(w){var S=w.trim();return S.length!==5||S.toLowerCase()!=="false"}(b):_[0]==="{"&&_[_.length-1]==="}"||_[0]==="["&&_[_.length-1]==="]"?function(w){try{return JSON.parse(w)}catch{return w}}(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(c,l,f,d){if(!a(c))return c;for(var p=-1,v=(l=i(l,c)).length,g=v-1,y=c;y!=null&&++p<v;){var x=s(l[p]),b=f;if(p!=g){var _=y[x];(b=d?d(_,x,y):void 0)===void 0&&(b=a(_)?_:o(l[p+1])?[]:{})}r(y,x,b),y=y[x]}return c}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,c){var l=a[s];o.call(a,s)&&i(l,c)&&(c!==void 0||s in a)||r(a,s,c)}},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\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,d=l.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(c){var l=o.call(c,s),f=c[s];try{c[s]=void 0;var d=!0}catch{}var p=a.call(c);return d&&(l?c[s]=f:delete c[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,c){return r(s)?s:i(s,c)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,c){if(r(s))return!1;var l=typeof s;return!(l!="number"&&l!="symbol"&&l!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||c!=null&&s in Object(c)}},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(c,l,f,d){s.push(f?d.replace(i,"$1"):l||c)}),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 c=function(){var l=arguments,f=s?s.apply(this,l):l[0],d=c.cache;if(d.has(f))return d.get(f);var p=a.apply(this,l);return c.cache=d.set(f,p)||d,p};return c.cache=new(o.Cache||r),c}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 c(l){var f=-1,d=l==null?0:l.length;for(this.clear();++f<d;){var p=l[f];this.set(p[0],p[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},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 c(l){var f=-1,d=l==null?0:l.length;for(this.clear();++f<d;){var p=l[f];this.set(p[0],p[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},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 c(l){var f=-1,d=l==null?0:l.length;for(this.clear();++f<d;){var p=l[f];this.set(p[0],p[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},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,c=s?s.toString:void 0;e.exports=function l(f){if(typeof f=="string")return f;if(o(f))return i(f,l)+"";if(a(f))return c?c.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(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function c(l){this.converter=l,this.finalResult=[]}return Object.defineProperty(c.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.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(c.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),c.prototype.processResult=function(l){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,x,b,_,w){if(b>=y.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var S=x.parseRuntime.subscribe.onNext,C=y[b],P=S(C,x.parseRuntime.parsedLineNumber+b);if(b++,P&&P.then)P.then(function(){(function(j,$,M,I,F,q,H){F&&s(M,H),g(j,M,I,F,q)})(y,0,x,b,_,w,C)},w);else{for(_&&s(x,C);b<y.length;){var T=y[b];S(T,x.parseRuntime.parsedLineNumber+b),b++,_&&s(x,T)}w()}}else{if(_)for(;b<y.length;)T=y[b++],s(x,T);w()}}(l,f.converter,0,f.needPushDownstream,function(g){g?v(g):(f.appendFinalResult(l),p())}):(f.appendFinalResult(l),p())})},c.prototype.appendFinalResult=function(l){this.needEmitAll&&(this.finalResult=this.finalResult.concat(l)),this.converter.parseRuntime.parsedLineNumber+=l.length},c.prototype.processError=function(l){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(l),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(l)},c.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)},c}();function s(c,l){if(typeof l!="object"||c.options.objectMode)c.push(l);else{var f=JSON.stringify(l);c.push(f+(c.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 FDe=st(DDe),BDe=e=>new Promise(t=>{FDe().fromString(e).then(t)}),UDe=new d5,zDe=e=>UDe.parse(e),VDe="shlink",YR=e=>`${VDe}.${e}`;class WDe{constructor(t){Ml(this,"get",t=>{const n=this.localStorage.getItem(YR(t));return n?JSON.parse(n):void 0});Ml(this,"set",(t,n)=>this.localStorage.setItem(YR(t),JSON.stringify(n)));this.localStorage=t}}class HDe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const GDe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",WDe,"localStorage"),e.service("TagColorsStorage",HDe,"Storage"),e.constant("csvToJson",BDe),e.constant("jsonToCsv",zDe),e.serviceFactory("useTimeoutToggle",()=>SD)},Ol=new FI,{container:LE}=Ol,KDe=(e,t)=>(...n)=>e[t](...n),qDe=(e,t)=>({...e,[t]:KDe(LE,t)}),YDe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),pb=(e,t=[])=>mI(e?YDe(e):null,t.reduce(qDe,{}));Ooe(Ol,pb);V6e(Ol,pb);oq(Ol);ADe(Ol,pb);GDe(Ol);IDe(Ol,pb);var RE={},JO={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 l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return r.apply(void 0,l)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return c(l[0]===!0,!1,l)}t.merge=r;function i(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return c(l[0]===!0,!0,l)}t.recursive=i;function o(l){if(Array.isArray(l)){for(var f=[],d=0;d<l.length;++d)f.push(o(l[d]));return f}else if(a(l)){var f={};for(var d in l)f[d]=o(l[d]);return f}else return l}t.clone=o;function a(l){return l&&typeof l=="object"&&!Array.isArray(l)}t.isPlainObject=a;function s(l,f){if(!a(l))return f;for(var d in f)d==="__proto__"||d==="constructor"||d==="prototype"||(l[d]=a(l[d])&&a(f[d])?s(l[d],f[d]):f[d]);return l}function c(l,f,d){var p;(l||!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 x=l?o(g[y]):g[y];p[y]=f?s(p[y],x):x}}}return p}})(JO,JO.exports);var ZDe=JO.exports;(function(e){var t=n(ZDe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=q,e.combineLoads=F,e.load=I,e.save=M;function n(U){return U&&U.__esModule?U:{default:U}}function r(U,B){return c(U)||s(U,B)||o(U,B)||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(U,B){if(U){if(typeof U=="string")return a(U,B);var W=Object.prototype.toString.call(U).slice(8,-1);return W==="Object"&&U.constructor&&(W=U.constructor.name),W==="Map"||W==="Set"?Array.from(U):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?a(U,B):void 0}}function a(U,B){(B==null||B>U.length)&&(B=U.length);for(var W=0,ee=Array(B);W<B;W++)ee[W]=U[W];return ee}function s(U,B){var W=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(W!=null){var ee,G,ne=[],re=!0,ae=!1;try{for(W=W.call(U);!(re=(ee=W.next()).done)&&(ne.push(ee.value),!(B&&ne.length===B));re=!0);}catch(fe){ae=!0,G=fe}finally{try{re||W.return==null||W.return()}finally{if(ae)throw G}}return ne}}function c(U){if(Array.isArray(U))return U}function l(U){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},l(U)}function f(U,B,W){return B in U?Object.defineProperty(U,B,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[B]=W,U}var d="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",v="_",g=[],y=[],x=0,b=!1,_=!1,w=new Map;function S(U){console.warn(d,U)}function C(){}var P=function(U){return U?C:S};function T(U,B){return B===void 0?null:U.length===1?B[U[0]]:T(U.slice(1),B[U[0]])}function j(U){function B(ee,G){return ee.length===0?G:B(ee.slice(1),f({},ee[0],G))}var W=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return B(U.split(".").reverse(),W)}function $(U){this.warnFn=U||S}Object.defineProperty($.prototype,"length",{get:function(){try{return localStorage.length}catch(U){this.warnFn(U)}return 0},configurable:!0,enumerable:!0}),$.prototype.key=function(U){try{return localStorage.key(U)}catch(B){this.warnFn(B)}return null},$.prototype.setItem=function(U,B){try{localStorage.setItem(U,JSON.stringify(B))}catch(W){this.warnFn(W)}},$.prototype.getItem=function(U){try{return JSON.parse(localStorage.getItem(U))}catch(B){this.warnFn(B)}return null},$.prototype.removeItem=function(U){try{localStorage.removeItem(U)}catch(B){this.warnFn(B)}};function M(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=U.states,W=B===void 0?g:B,ee=U.ignoreStates,G=ee===void 0?y:ee,ne=U.namespace,re=ne===void 0?p:ne,ae=U.namespaceSeparator,fe=ae===void 0?v:ae,A=U.debounce,k=A===void 0?x:A,z=U.disableWarnings,J=z===void 0?_:z;return function(Y){return function(ie){return function(de){function Ce(Te,Ae){return 1<Te.split(".").length?T(Te.split("."),Ae):T([Te],Ae)}function se(){W.length===0?Ne.setItem(re,pe):W.forEach(function(Te){var Ae=re+fe+Te,le=Ce(Te,pe);le?Ne.setItem(Ae,le):Ne.removeItem(Ae)})}var pe,ve=P(J),xe=ie(de);H(W)||(console.error(d,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),W=g),H(G)||(console.error(d,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),G=y),0<G.length&&(G=G.filter(function(Te){return Z(Te)?Te:void console.error(d,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),Z(re)||(console.error(d,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),re=p),Z(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),Q(k)||(console.error(d,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),k=x),pe=0<G.length?X(G,Y.getState()):Y.getState();var Ne=new $(ve);return k?(w.get(W+re)&&clearTimeout(w.get(W+re)),w.set(W+re,setTimeout(function(){se()},k))):se(),xe}}}}function I(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=U.states,W=B===void 0?g:B,ee=U.immutablejs,G=ee===void 0?b:ee,ne=U.namespace,re=ne===void 0?p:ne,ae=U.namespaceSeparator,fe=ae===void 0?v:ae,A=U.preloadedState,k=A===void 0?{}:A,z=U.disableWarnings,J=z===void 0?_:z,Y=P(J);H(W)||(console.error(d,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),W=g),Z(re)||(console.error(d,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),re=p),Z(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),G===!0&&Y("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 $(Y),de=k;if(W.length===0){var Ce=ie.getItem(re);Ce&&(de=Ce)}else W.forEach(function(se){var pe=re+fe+se,ve=ie.getItem(pe);ve?de=t.default.recursive(de,j(se,ve)):Y("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 de}function F(){for(var U={},B=arguments.length,W=Array(B),ee=0;ee<B;ee++)W[ee]=arguments[ee];return W.forEach(function(G){for(var ne in te(G)||(console.error(d,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),G={}),G)U[ne]=G[ne]}),U}function q(){var U=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=U.namespace,W=B===void 0?p:B,ee=U.disableWarnings,G=ee===void 0?_:ee,ne=P(G);Z(W)||(console.error(d,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),W=p);for(var re,ae=new $(ne),fe=ae.length,A=0;A<fe;A++)re=ae.key(A),re&&re.slice(0,W.length)===W&&ae.removeItem(re)}function H(U){return Object.prototype.toString.call(U)==="[object Array]"}function Z(U){return typeof U=="string"}function Q(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function te(U){return U!==null&&l(U)==="object"}function X(U,B){var W=Object.entries(B).reduce(function(ee,G){var ne=r(G,2),re=ne[0];return ne[1],U.indexOf(re)===-1&&(ee[re]=B[re]),ee},{});return W}})(RE);const XDe=e=>UP({appUpdated:woe,servers:dDe,selectedServer:e.selectedServerReducer,settings:RDe}),QDe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),JDe=!0,L9={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},e5e=QDe(RE.load(L9)),t5e=e=>FD({devTools:!JDe,reducer:XDe(e),preloadedState:e5e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(RE.save(L9))}),n5e=!!(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 r5e(e){if("serviceWorker"in navigator){if(new URL(kv.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${kv.homepage}/service-worker.js`;n5e?(i5e(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")})):R9(n,e)})}}function R9(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 i5e(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()})}):R9(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const $9=t5e(LE),{App:o5e,ScrollToTop:a5e,ErrorHandler:s5e,appUpdateAvailable:l5e}=LE;lI(document.getElementById("root")).render(m.jsx(vI,{store:$9,children:m.jsx(EI,{basename:kv.homepage,children:m.jsx(s5e,{children:m.jsx(a5e,{children:m.jsx(o5e,{})})})})}));r5e({onUpdate(){$9.dispatch(l5e())}});
|