mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-27 19:38:32 +03:00
823 lines
1.4 MiB
823 lines
1.4 MiB
var Rz=Object.defineProperty;var $z=(e,t,n)=>t in e?Rz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fl=(e,t,n)=>$z(e,typeof t!="symbol"?t+"":t,n);function Iz(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 nc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V4={exports:{}},ky={},W4={exports:{}},rt={};/**
|
||
* @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 Wh=Symbol.for("react.element"),Dz=Symbol.for("react.portal"),Fz=Symbol.for("react.fragment"),Bz=Symbol.for("react.strict_mode"),Uz=Symbol.for("react.profiler"),zz=Symbol.for("react.provider"),Vz=Symbol.for("react.context"),Wz=Symbol.for("react.forward_ref"),Hz=Symbol.for("react.suspense"),Gz=Symbol.for("react.memo"),qz=Symbol.for("react.lazy"),AT=Symbol.iterator;function Kz(e){return e===null||typeof e!="object"?null:(e=AT&&e[AT]||e["@@iterator"],typeof e=="function"?e:null)}var H4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G4=Object.assign,q4={};function ju(e,t,n){this.props=e,this.context=t,this.refs=q4,this.updater=n||H4}ju.prototype.isReactComponent={};ju.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")};ju.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K4(){}K4.prototype=ju.prototype;function nS(e,t,n){this.props=e,this.context=t,this.refs=q4,this.updater=n||H4}var rS=nS.prototype=new K4;rS.constructor=nS;G4(rS,ju.prototype);rS.isPureReactComponent=!0;var kT=Array.isArray,Y4=Object.prototype.hasOwnProperty,iS={current:null},Z4={key:!0,ref:!0,__self:!0,__source:!0};function X4(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)Y4.call(t,r)&&!Z4.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Wh,type:e,key:o,ref:a,props:i,_owner:iS.current}}function Yz(e,t){return{$$typeof:Wh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oS(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wh}function Zz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var NT=/\/+/g;function Hb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zz(""+e.key):t.toString(36)}function Im(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 Wh:case Dz:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Hb(a,0):r,kT(i)?(n="",e!=null&&(n=e.replace(NT,"$&/")+"/"),Im(i,t,n,"",function(c){return c})):i!=null&&(oS(i)&&(i=Yz(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(NT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",kT(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Hb(o,s);a+=Im(o,t,n,l,i)}else if(l=Kz(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Hb(o,s++),a+=Im(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Gp(e,t,n){if(e==null)return e;var r=[],i=0;return Im(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Xz(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 er={current:null},Dm={transition:null},Qz={ReactCurrentDispatcher:er,ReactCurrentBatchConfig:Dm,ReactCurrentOwner:iS};function Q4(){throw Error("act(...) is not supported in production builds of React.")}rt.Children={map:Gp,forEach:function(e,t,n){Gp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gp(e,function(){t++}),t},toArray:function(e){return Gp(e,function(t){return t})||[]},only:function(e){if(!oS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};rt.Component=ju;rt.Fragment=Fz;rt.Profiler=Uz;rt.PureComponent=nS;rt.StrictMode=Bz;rt.Suspense=Hz;rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qz;rt.act=Q4;rt.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=G4({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=iS.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Y4.call(t,l)&&!Z4.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:Wh,type:e.type,key:i,ref:o,props:r,_owner:a}};rt.createContext=function(e){return e={$$typeof:Vz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zz,_context:e},e.Consumer=e};rt.createElement=X4;rt.createFactory=function(e){var t=X4.bind(null,e);return t.type=e,t};rt.createRef=function(){return{current:null}};rt.forwardRef=function(e){return{$$typeof:Wz,render:e}};rt.isValidElement=oS;rt.lazy=function(e){return{$$typeof:qz,_payload:{_status:-1,_result:e},_init:Xz}};rt.memo=function(e,t){return{$$typeof:Gz,type:e,compare:t===void 0?null:t}};rt.startTransition=function(e){var t=Dm.transition;Dm.transition={};try{e()}finally{Dm.transition=t}};rt.unstable_act=Q4;rt.useCallback=function(e,t){return er.current.useCallback(e,t)};rt.useContext=function(e){return er.current.useContext(e)};rt.useDebugValue=function(){};rt.useDeferredValue=function(e){return er.current.useDeferredValue(e)};rt.useEffect=function(e,t){return er.current.useEffect(e,t)};rt.useId=function(){return er.current.useId()};rt.useImperativeHandle=function(e,t,n){return er.current.useImperativeHandle(e,t,n)};rt.useInsertionEffect=function(e,t){return er.current.useInsertionEffect(e,t)};rt.useLayoutEffect=function(e,t){return er.current.useLayoutEffect(e,t)};rt.useMemo=function(e,t){return er.current.useMemo(e,t)};rt.useReducer=function(e,t,n){return er.current.useReducer(e,t,n)};rt.useRef=function(e){return er.current.useRef(e)};rt.useState=function(e){return er.current.useState(e)};rt.useSyncExternalStore=function(e,t,n){return er.current.useSyncExternalStore(e,t,n)};rt.useTransition=function(){return er.current.useTransition()};rt.version="18.3.1";W4.exports=rt;var M=W4.exports;const V=at(M),x_=Iz({__proto__:null,default:V},[M]);/**
|
||
* @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 Jz=M,eV=Symbol.for("react.element"),tV=Symbol.for("react.fragment"),nV=Object.prototype.hasOwnProperty,rV=Jz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iV={key:!0,ref:!0,__self:!0,__source:!0};function J4(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)nV.call(t,r)&&!iV.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:eV,type:e,key:o,ref:a,props:i,_owner:rV.current}}ky.Fragment=tV;ky.jsx=J4;ky.jsxs=J4;V4.exports=ky;var m=V4.exports,eR={exports:{}},Rr={},tR={exports:{}},nR={};/**
|
||
* @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(Z,z){var B=Z.length;Z.push(z);e:for(;0<B;){var H=B-1>>>1,ee=Z[H];if(0<i(ee,z))Z[H]=z,Z[B]=ee,B=H;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var z=Z[0],B=Z.pop();if(B!==z){Z[0]=B;e:for(var H=0,ee=Z.length,q=ee>>>1;H<q;){var ne=2*(H+1)-1,re=Z[ne],ae=ne+1,ue=Z[ae];if(0>i(re,B))ae<ee&&0>i(ue,re)?(Z[H]=ue,Z[ae]=B,H=ae):(Z[H]=re,Z[ne]=B,H=ne);else if(ae<ee&&0>i(ue,B))Z[H]=ue,Z[ae]=B,H=ae;else break e}}return z}function i(Z,z){var B=Z.sortIndex-z.sortIndex;return B!==0?B:Z.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],f=1,d=null,p=3,v=!1,y=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=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(Z){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=Z)r(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(c)}}function S(Z){if(g=!1,w(Z),!y)if(n(l)!==null)y=!0,Q(P);else{var z=n(c);z!==null&&te(S,z.startTime-Z)}}function P(Z,z){y=!1,g&&(g=!1,_(j),j=-1),v=!0;var B=p;try{for(w(z),d=n(l);d!==null&&(!(d.expirationTime>z)||Z&&!I());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var ee=H(d.expirationTime<=z);z=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===n(l)&&r(l),w(z)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var ne=n(c);ne!==null&&te(S,ne.startTime-z),q=!1}return q}finally{d=null,p=B,v=!1}}var E=!1,T=null,j=-1,F=5,k=-1;function I(){return!(e.unstable_now()-k<F)}function D(){if(T!==null){var Z=e.unstable_now();k=Z;var z=!0;try{z=T(!0,Z)}finally{z?K():(E=!1,T=null)}}else E=!1}var K;if(typeof b=="function")K=function(){b(D)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,X=W.port2;W.port1.onmessage=D,K=function(){X.postMessage(null)}}else K=function(){x(D,0)};function Q(Z){T=Z,E||(E=!0,K())}function te(Z,z){j=x(function(){Z(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,Q(P))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Z){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var B=p;p=z;try{return Z()}finally{p=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,z){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var B=p;p=Z;try{return z()}finally{p=B}},e.unstable_scheduleCallback=function(Z,z,B){var H=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?H+B:H):B=H,Z){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,Z={id:f++,callback:z,priorityLevel:Z,startTime:B,expirationTime:ee,sortIndex:-1},B>H?(Z.sortIndex=B,t(c,Z),n(l)===null&&Z===n(c)&&(g?(_(j),j=-1):g=!0,te(S,B-H))):(Z.sortIndex=ee,t(l,Z),y||v||(y=!0,Q(P))),Z},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(Z){var z=p;return function(){var B=p;p=z;try{return Z.apply(this,arguments)}finally{p=B}}}})(nR);tR.exports=nR;var oV=tR.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 aV=M,kr=oV;function Se(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 rR=new Set,Td={};function _l(e,t){Rc(e,t),Rc(e+"Capture",t)}function Rc(e,t){for(Td[e]=t,e=0;e<t.length;e++)rR.add(t[e])}var Ro=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w_=Object.prototype.hasOwnProperty,sV=/^[: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]*$/,MT={},LT={};function lV(e){return w_.call(LT,e)?!0:w_.call(MT,e)?!1:sV.test(e)?LT[e]=!0:(MT[e]=!0,!1)}function cV(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 uV(e,t,n,r){if(t===null||typeof t>"u"||cV(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 tr(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 tr(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 tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nn[e]=new tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nn[e]=new tr(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 tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nn[e]=new tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nn[e]=new tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nn[e]=new tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nn[e]=new tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var aS=/[\-:]([a-z])/g;function sS(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(aS,sS);Nn[t]=new tr(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(aS,sS);Nn[t]=new tr(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(aS,sS);Nn[t]=new tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nn[e]=new tr(e,1,!1,e.toLowerCase(),null,!1,!1)});Nn.xlinkHref=new tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nn[e]=new tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function lS(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")&&(uV(t,n,i,r)&&(n=null),r||i===null?lV(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 Yo=aV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qp=Symbol.for("react.element"),rc=Symbol.for("react.portal"),ic=Symbol.for("react.fragment"),cS=Symbol.for("react.strict_mode"),O_=Symbol.for("react.profiler"),iR=Symbol.for("react.provider"),oR=Symbol.for("react.context"),uS=Symbol.for("react.forward_ref"),S_=Symbol.for("react.suspense"),P_=Symbol.for("react.suspense_list"),fS=Symbol.for("react.memo"),ma=Symbol.for("react.lazy"),aR=Symbol.for("react.offscreen"),RT=Symbol.iterator;function bf(e){return e===null||typeof e!="object"?null:(e=RT&&e[RT]||e["@@iterator"],typeof e=="function"?e:null)}var Vt=Object.assign,Gb;function Vf(e){if(Gb===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gb=t&&t[1]||""}return`
|
||
`+Gb+e}var qb=!1;function Kb(e,t){if(!e||qb)return"";qb=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{qb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vf(e):""}function fV(e){switch(e.tag){case 5:return Vf(e.type);case 16:return Vf("Lazy");case 13:return Vf("Suspense");case 19:return Vf("SuspenseList");case 0:case 2:case 15:return e=Kb(e.type,!1),e;case 11:return e=Kb(e.type.render,!1),e;case 1:return e=Kb(e.type,!0),e;default:return""}}function E_(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 ic:return"Fragment";case rc:return"Portal";case O_:return"Profiler";case cS:return"StrictMode";case S_:return"Suspense";case P_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oR:return(e.displayName||"Context")+".Consumer";case iR:return(e._context.displayName||"Context")+".Provider";case uS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fS:return t=e.displayName||null,t!==null?t:E_(e.type)||"Memo";case ma:t=e._payload,e=e._init;try{return E_(e(t))}catch{}}return null}function dV(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 E_(t);case 8:return t===cS?"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 Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hV(e){var t=sR(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 Kp(e){e._valueTracker||(e._valueTracker=hV(e))}function lR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sv(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 C_(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $T(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Va(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 cR(e,t){t=t.checked,t!=null&&lS(e,"checked",t,!1)}function T_(e,t){cR(e,t);var n=Va(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")?j_(e,t.type,n):t.hasOwnProperty("defaultValue")&&j_(e,t.type,Va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function IT(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 j_(e,t,n){(t!=="number"||sv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wf=Array.isArray;function Oc(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=""+Va(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 A_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Se(91));return Vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function DT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Se(92));if(Wf(n)){if(1<n.length)throw Error(Se(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Va(n)}}function uR(e,t){var n=Va(t.value),r=Va(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 FT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fR(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 k_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yp,dR=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(Yp=Yp||document.createElement("div"),Yp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ed={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},pV=["Webkit","ms","Moz","O"];Object.keys(ed).forEach(function(e){pV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ed[t]=ed[e]})});function hR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ed.hasOwnProperty(e)&&ed[e]?(""+t).trim():t+"px"}function pR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=hR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var mV=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 N_(e,t){if(t){if(mV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Se(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Se(62))}}function M_(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 L_=null;function dS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var R_=null,Sc=null,Pc=null;function BT(e){if(e=qh(e)){if(typeof R_!="function")throw Error(Se(280));var t=e.stateNode;t&&(t=$y(t),R_(e.stateNode,e.type,t))}}function mR(e){Sc?Pc?Pc.push(e):Pc=[e]:Sc=e}function vR(){if(Sc){var e=Sc,t=Pc;if(Pc=Sc=null,BT(e),t)for(e=0;e<t.length;e++)BT(t[e])}}function gR(e,t){return e(t)}function yR(){}var Yb=!1;function bR(e,t,n){if(Yb)return e(t,n);Yb=!0;try{return gR(e,t,n)}finally{Yb=!1,(Sc!==null||Pc!==null)&&(yR(),vR())}}function Ad(e,t){var n=e.stateNode;if(n===null)return null;var r=$y(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(Se(231,t,typeof n));return n}var $_=!1;if(Ro)try{var _f={};Object.defineProperty(_f,"passive",{get:function(){$_=!0}}),window.addEventListener("test",_f,_f),window.removeEventListener("test",_f,_f)}catch{$_=!1}function vV(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var td=!1,lv=null,cv=!1,I_=null,gV={onError:function(e){td=!0,lv=e}};function yV(e,t,n,r,i,o,a,s,l){td=!1,lv=null,vV.apply(gV,arguments)}function bV(e,t,n,r,i,o,a,s,l){if(yV.apply(this,arguments),td){if(td){var c=lv;td=!1,lv=null}else throw Error(Se(198));cv||(cv=!0,I_=c)}}function xl(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 _R(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 UT(e){if(xl(e)!==e)throw Error(Se(188))}function _V(e){var t=e.alternate;if(!t){if(t=xl(e),t===null)throw Error(Se(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 UT(i),e;if(o===r)return UT(i),t;o=o.sibling}throw Error(Se(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(Se(189))}}if(n.alternate!==r)throw Error(Se(190))}if(n.tag!==3)throw Error(Se(188));return n.stateNode.current===n?e:t}function xR(e){return e=_V(e),e!==null?wR(e):null}function wR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wR(e);if(t!==null)return t;e=e.sibling}return null}var OR=kr.unstable_scheduleCallback,zT=kr.unstable_cancelCallback,xV=kr.unstable_shouldYield,wV=kr.unstable_requestPaint,Xt=kr.unstable_now,OV=kr.unstable_getCurrentPriorityLevel,hS=kr.unstable_ImmediatePriority,SR=kr.unstable_UserBlockingPriority,uv=kr.unstable_NormalPriority,SV=kr.unstable_LowPriority,PR=kr.unstable_IdlePriority,Ny=null,eo=null;function PV(e){if(eo&&typeof eo.onCommitFiberRoot=="function")try{eo.onCommitFiberRoot(Ny,e,void 0,(e.current.flags&128)===128)}catch{}}var Ci=Math.clz32?Math.clz32:TV,EV=Math.log,CV=Math.LN2;function TV(e){return e>>>=0,e===0?32:31-(EV(e)/CV|0)|0}var Zp=64,Xp=4194304;function Hf(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 fv(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=Hf(s):(o&=a,o!==0&&(r=Hf(o)))}else a=n&~i,a!==0?r=Hf(a):o!==0&&(r=Hf(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-Ci(t),i=1<<n,r|=e[n],t&=~i;return r}function jV(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 AV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ci(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=jV(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function D_(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ER(){var e=Zp;return Zp<<=1,!(Zp&4194240)&&(Zp=64),e}function Zb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ci(t),e[t]=n}function kV(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-Ci(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function pS(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ci(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ht=0;function CR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var TR,mS,jR,AR,kR,F_=!1,Qp=[],ja=null,Aa=null,ka=null,kd=new Map,Nd=new Map,ya=[],NV="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 VT(e,t){switch(e){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":kd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nd.delete(t.pointerId)}}function xf(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=qh(t),t!==null&&mS(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function MV(e,t,n,r,i){switch(t){case"focusin":return ja=xf(ja,e,t,n,r,i),!0;case"dragenter":return Aa=xf(Aa,e,t,n,r,i),!0;case"mouseover":return ka=xf(ka,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kd.set(o,xf(kd.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Nd.set(o,xf(Nd.get(o)||null,e,t,n,r,i)),!0}return!1}function NR(e){var t=$s(e.target);if(t!==null){var n=xl(t);if(n!==null){if(t=n.tag,t===13){if(t=_R(n),t!==null){e.blockedOn=t,kR(e.priority,function(){jR(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 Fm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=B_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);L_=r,n.target.dispatchEvent(r),L_=null}else return t=qh(n),t!==null&&mS(t),e.blockedOn=n,!1;t.shift()}return!0}function WT(e,t,n){Fm(e)&&n.delete(t)}function LV(){F_=!1,ja!==null&&Fm(ja)&&(ja=null),Aa!==null&&Fm(Aa)&&(Aa=null),ka!==null&&Fm(ka)&&(ka=null),kd.forEach(WT),Nd.forEach(WT)}function wf(e,t){e.blockedOn===t&&(e.blockedOn=null,F_||(F_=!0,kr.unstable_scheduleCallback(kr.unstable_NormalPriority,LV)))}function Md(e){function t(i){return wf(i,e)}if(0<Qp.length){wf(Qp[0],e);for(var n=1;n<Qp.length;n++){var r=Qp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ja!==null&&wf(ja,e),Aa!==null&&wf(Aa,e),ka!==null&&wf(ka,e),kd.forEach(t),Nd.forEach(t),n=0;n<ya.length;n++)r=ya[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ya.length&&(n=ya[0],n.blockedOn===null);)NR(n),n.blockedOn===null&&ya.shift()}var Ec=Yo.ReactCurrentBatchConfig,dv=!0;function RV(e,t,n,r){var i=ht,o=Ec.transition;Ec.transition=null;try{ht=1,vS(e,t,n,r)}finally{ht=i,Ec.transition=o}}function $V(e,t,n,r){var i=ht,o=Ec.transition;Ec.transition=null;try{ht=4,vS(e,t,n,r)}finally{ht=i,Ec.transition=o}}function vS(e,t,n,r){if(dv){var i=B_(e,t,n,r);if(i===null)a1(e,t,r,hv,n),VT(e,r);else if(MV(i,e,t,n,r))r.stopPropagation();else if(VT(e,r),t&4&&-1<NV.indexOf(e)){for(;i!==null;){var o=qh(i);if(o!==null&&TR(o),o=B_(e,t,n,r),o===null&&a1(e,t,r,hv,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else a1(e,t,r,null,n)}}var hv=null;function B_(e,t,n,r){if(hv=null,e=dS(r),e=$s(e),e!==null)if(t=xl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_R(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 hv=e,null}function MR(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(OV()){case hS:return 1;case SR:return 4;case uv:case SV:return 16;case PR:return 536870912;default:return 16}default:return 16}}var xa=null,gS=null,Bm=null;function LR(){if(Bm)return Bm;var e,t=gS,n=t.length,r,i="value"in xa?xa.value:xa.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 Bm=i.slice(e,1<r?1-r:void 0)}function Um(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 Jp(){return!0}function HT(){return!1}function $r(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)?Jp:HT,this.isPropagationStopped=HT,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=Jp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Jp)},persist:function(){},isPersistent:Jp}),t}var Au={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yS=$r(Au),Gh=Vt({},Au,{view:0,detail:0}),IV=$r(Gh),Xb,Qb,Of,My=Vt({},Gh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bS,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!==Of&&(Of&&e.type==="mousemove"?(Xb=e.screenX-Of.screenX,Qb=e.screenY-Of.screenY):Qb=Xb=0,Of=e),Xb)},movementY:function(e){return"movementY"in e?e.movementY:Qb}}),GT=$r(My),DV=Vt({},My,{dataTransfer:0}),FV=$r(DV),BV=Vt({},Gh,{relatedTarget:0}),Jb=$r(BV),UV=Vt({},Au,{animationName:0,elapsedTime:0,pseudoElement:0}),zV=$r(UV),VV=Vt({},Au,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WV=$r(VV),HV=Vt({},Au,{data:0}),qT=$r(HV),GV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qV={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"},KV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KV[e])?!!t[e]:!1}function bS(){return YV}var ZV=Vt({},Gh,{key:function(e){if(e.key){var t=GV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Um(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bS,charCode:function(e){return e.type==="keypress"?Um(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Um(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),XV=$r(ZV),QV=Vt({},My,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),KT=$r(QV),JV=Vt({},Gh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bS}),eW=$r(JV),tW=Vt({},Au,{propertyName:0,elapsedTime:0,pseudoElement:0}),nW=$r(tW),rW=Vt({},My,{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}),iW=$r(rW),oW=[9,13,27,32],_S=Ro&&"CompositionEvent"in window,nd=null;Ro&&"documentMode"in document&&(nd=document.documentMode);var aW=Ro&&"TextEvent"in window&&!nd,RR=Ro&&(!_S||nd&&8<nd&&11>=nd),YT=" ",ZT=!1;function $R(e,t){switch(e){case"keyup":return oW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oc=!1;function sW(e,t){switch(e){case"compositionend":return IR(t);case"keypress":return t.which!==32?null:(ZT=!0,YT);case"textInput":return e=t.data,e===YT&&ZT?null:e;default:return null}}function lW(e,t){if(oc)return e==="compositionend"||!_S&&$R(e,t)?(e=LR(),Bm=gS=xa=null,oc=!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 RR&&t.locale!=="ko"?null:t.data;default:return null}}var cW={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 XT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cW[e.type]:t==="textarea"}function DR(e,t,n,r){mR(r),t=pv(t,"onChange"),0<t.length&&(n=new yS("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rd=null,Ld=null;function uW(e){YR(e,0)}function Ly(e){var t=lc(e);if(lR(t))return e}function fW(e,t){if(e==="change")return t}var FR=!1;if(Ro){var e1;if(Ro){var t1="oninput"in document;if(!t1){var QT=document.createElement("div");QT.setAttribute("oninput","return;"),t1=typeof QT.oninput=="function"}e1=t1}else e1=!1;FR=e1&&(!document.documentMode||9<document.documentMode)}function JT(){rd&&(rd.detachEvent("onpropertychange",BR),Ld=rd=null)}function BR(e){if(e.propertyName==="value"&&Ly(Ld)){var t=[];DR(t,Ld,e,dS(e)),bR(uW,t)}}function dW(e,t,n){e==="focusin"?(JT(),rd=t,Ld=n,rd.attachEvent("onpropertychange",BR)):e==="focusout"&&JT()}function hW(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ly(Ld)}function pW(e,t){if(e==="click")return Ly(t)}function mW(e,t){if(e==="input"||e==="change")return Ly(t)}function vW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ki=typeof Object.is=="function"?Object.is:vW;function Rd(e,t){if(ki(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(!w_.call(t,i)||!ki(e[i],t[i]))return!1}return!0}function ej(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tj(e,t){var n=ej(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=ej(n)}}function UR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zR(){for(var e=window,t=sv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sv(e.document)}return t}function xS(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 gW(e){var t=zR(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&UR(n.ownerDocument.documentElement,n)){if(r!==null&&xS(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=tj(n,o);var a=tj(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 yW=Ro&&"documentMode"in document&&11>=document.documentMode,ac=null,U_=null,id=null,z_=!1;function nj(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z_||ac==null||ac!==sv(r)||(r=ac,"selectionStart"in r&&xS(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}),id&&Rd(id,r)||(id=r,r=pv(U_,"onSelect"),0<r.length&&(t=new yS("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ac)))}function em(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sc={animationend:em("Animation","AnimationEnd"),animationiteration:em("Animation","AnimationIteration"),animationstart:em("Animation","AnimationStart"),transitionend:em("Transition","TransitionEnd")},n1={},VR={};Ro&&(VR=document.createElement("div").style,"AnimationEvent"in window||(delete sc.animationend.animation,delete sc.animationiteration.animation,delete sc.animationstart.animation),"TransitionEvent"in window||delete sc.transitionend.transition);function Ry(e){if(n1[e])return n1[e];if(!sc[e])return e;var t=sc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in VR)return n1[e]=t[n];return e}var WR=Ry("animationend"),HR=Ry("animationiteration"),GR=Ry("animationstart"),qR=Ry("transitionend"),KR=new Map,rj="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 Ja(e,t){KR.set(e,t),_l(t,[e])}for(var r1=0;r1<rj.length;r1++){var i1=rj[r1],bW=i1.toLowerCase(),_W=i1[0].toUpperCase()+i1.slice(1);Ja(bW,"on"+_W)}Ja(WR,"onAnimationEnd");Ja(HR,"onAnimationIteration");Ja(GR,"onAnimationStart");Ja("dblclick","onDoubleClick");Ja("focusin","onFocus");Ja("focusout","onBlur");Ja(qR,"onTransitionEnd");Rc("onMouseEnter",["mouseout","mouseover"]);Rc("onMouseLeave",["mouseout","mouseover"]);Rc("onPointerEnter",["pointerout","pointerover"]);Rc("onPointerLeave",["pointerout","pointerover"]);_l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_l("onBeforeInput",["compositionend","keypress","textInput","paste"]);_l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gf="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(" "),xW=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gf));function ij(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bV(r,t,void 0,e),e.currentTarget=null}function YR(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;ij(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;ij(i,s,c),o=l}}}if(cv)throw e=I_,cv=!1,I_=null,e}function St(e,t){var n=t[q_];n===void 0&&(n=t[q_]=new Set);var r=e+"__bubble";n.has(r)||(ZR(t,e,2,!1),n.add(r))}function o1(e,t,n){var r=0;t&&(r|=4),ZR(n,e,r,t)}var tm="_reactListening"+Math.random().toString(36).slice(2);function $d(e){if(!e[tm]){e[tm]=!0,rR.forEach(function(n){n!=="selectionchange"&&(xW.has(n)||o1(n,!1,e),o1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tm]||(t[tm]=!0,o1("selectionchange",!1,t))}}function ZR(e,t,n,r){switch(MR(t)){case 1:var i=RV;break;case 4:i=$V;break;default:i=vS}n=i.bind(null,t,n,e),i=void 0,!$_||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 a1(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=$s(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}bR(function(){var c=o,f=dS(n),d=[];e:{var p=KR.get(e);if(p!==void 0){var v=yS,y=e;switch(e){case"keypress":if(Um(n)===0)break e;case"keydown":case"keyup":v=XV;break;case"focusin":y="focus",v=Jb;break;case"focusout":y="blur",v=Jb;break;case"beforeblur":case"afterblur":v=Jb;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=GT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=FV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=eW;break;case WR:case HR:case GR:v=zV;break;case qR:v=nW;break;case"scroll":v=IV;break;case"wheel":v=iW;break;case"copy":case"cut":case"paste":v=WV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=KT}var g=(t&4)!==0,x=!g&&e==="scroll",_=g?p!==null?p+"Capture":null:p;g=[];for(var b=c,w;b!==null;){w=b;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,_!==null&&(S=Ad(b,_),S!=null&&g.push(Id(b,S,w)))),x)break;b=b.return}0<g.length&&(p=new v(p,y,null,n,f),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==L_&&(y=n.relatedTarget||n.fromElement)&&($s(y)||y[$o]))break e;if((v||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=c,y=y?$s(y):null,y!==null&&(x=xl(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=c),v!==y)){if(g=GT,S="onMouseLeave",_="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=KT,S="onPointerLeave",_="onPointerEnter",b="pointer"),x=v==null?p:lc(v),w=y==null?p:lc(y),p=new g(S,b+"leave",v,n,f),p.target=x,p.relatedTarget=w,S=null,$s(f)===c&&(g=new g(_,b+"enter",y,n,f),g.target=w,g.relatedTarget=x,S=g),x=S,v&&y)t:{for(g=v,_=y,b=0,w=g;w;w=Bl(w))b++;for(w=0,S=_;S;S=Bl(S))w++;for(;0<b-w;)g=Bl(g),b--;for(;0<w-b;)_=Bl(_),w--;for(;b--;){if(g===_||_!==null&&g===_.alternate)break t;g=Bl(g),_=Bl(_)}g=null}else g=null;v!==null&&oj(d,p,v,g,!1),y!==null&&x!==null&&oj(d,x,y,g,!0)}}e:{if(p=c?lc(c):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var P=fW;else if(XT(p))if(FR)P=mW;else{P=hW;var E=dW}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=pW);if(P&&(P=P(e,c))){DR(d,P,n,f);break e}E&&E(e,p,c),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&j_(p,"number",p.value)}switch(E=c?lc(c):window,e){case"focusin":(XT(E)||E.contentEditable==="true")&&(ac=E,U_=c,id=null);break;case"focusout":id=U_=ac=null;break;case"mousedown":z_=!0;break;case"contextmenu":case"mouseup":case"dragend":z_=!1,nj(d,n,f);break;case"selectionchange":if(yW)break;case"keydown":case"keyup":nj(d,n,f)}var T;if(_S)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 oc?$R(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(RR&&n.locale!=="ko"&&(oc||j!=="onCompositionStart"?j==="onCompositionEnd"&&oc&&(T=LR()):(xa=f,gS="value"in xa?xa.value:xa.textContent,oc=!0)),E=pv(c,j),0<E.length&&(j=new qT(j,e,null,n,f),d.push({event:j,listeners:E}),T?j.data=T:(T=IR(n),T!==null&&(j.data=T)))),(T=aW?sW(e,n):lW(e,n))&&(c=pv(c,"onBeforeInput"),0<c.length&&(f=new qT("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:c}),f.data=T))}YR(d,t)})}function Id(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pv(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ad(e,n),o!=null&&r.unshift(Id(e,o,i)),o=Ad(e,t),o!=null&&r.push(Id(e,o,i))),e=e.return}return r}function Bl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oj(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Ad(n,o),l!=null&&a.unshift(Id(n,l,s))):i||(l=Ad(n,o),l!=null&&a.push(Id(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var wW=/\r\n?/g,OW=/\u0000|\uFFFD/g;function aj(e){return(typeof e=="string"?e:""+e).replace(wW,`
|
||
`).replace(OW,"")}function nm(e,t,n){if(t=aj(t),aj(e)!==t&&n)throw Error(Se(425))}function mv(){}var V_=null,W_=null;function H_(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 G_=typeof setTimeout=="function"?setTimeout:void 0,SW=typeof clearTimeout=="function"?clearTimeout:void 0,sj=typeof Promise=="function"?Promise:void 0,PW=typeof queueMicrotask=="function"?queueMicrotask:typeof sj<"u"?function(e){return sj.resolve(null).then(e).catch(EW)}:G_;function EW(e){setTimeout(function(){throw e})}function s1(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),Md(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Md(t)}function Na(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 lj(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 ku=Math.random().toString(36).slice(2),Yi="__reactFiber$"+ku,Dd="__reactProps$"+ku,$o="__reactContainer$"+ku,q_="__reactEvents$"+ku,CW="__reactListeners$"+ku,TW="__reactHandles$"+ku;function $s(e){var t=e[Yi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$o]||n[Yi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lj(e);e!==null;){if(n=e[Yi])return n;e=lj(e)}return t}e=n,n=e.parentNode}return null}function qh(e){return e=e[Yi]||e[$o],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Se(33))}function $y(e){return e[Dd]||null}var K_=[],cc=-1;function es(e){return{current:e}}function Tt(e){0>cc||(e.current=K_[cc],K_[cc]=null,cc--)}function wt(e,t){cc++,K_[cc]=e.current,e.current=t}var Wa={},Fn=es(Wa),lr=es(!1),el=Wa;function $c(e,t){var n=e.type.contextTypes;if(!n)return Wa;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 cr(e){return e=e.childContextTypes,e!=null}function vv(){Tt(lr),Tt(Fn)}function cj(e,t,n){if(Fn.current!==Wa)throw Error(Se(168));wt(Fn,t),wt(lr,n)}function XR(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(Se(108,dV(e)||"Unknown",i));return Vt({},n,r)}function gv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wa,el=Fn.current,wt(Fn,e),wt(lr,lr.current),!0}function uj(e,t,n){var r=e.stateNode;if(!r)throw Error(Se(169));n?(e=XR(e,t,el),r.__reactInternalMemoizedMergedChildContext=e,Tt(lr),Tt(Fn),wt(Fn,e)):Tt(lr),wt(lr,n)}var Po=null,Iy=!1,l1=!1;function QR(e){Po===null?Po=[e]:Po.push(e)}function jW(e){Iy=!0,QR(e)}function ts(){if(!l1&&Po!==null){l1=!0;var e=0,t=ht;try{var n=Po;for(ht=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Po=null,Iy=!1}catch(i){throw Po!==null&&(Po=Po.slice(e+1)),OR(hS,ts),i}finally{ht=t,l1=!1}}return null}var uc=[],fc=0,yv=null,bv=0,Zr=[],Xr=0,tl=null,Eo=1,Co="";function Os(e,t){uc[fc++]=bv,uc[fc++]=yv,yv=e,bv=t}function JR(e,t,n){Zr[Xr++]=Eo,Zr[Xr++]=Co,Zr[Xr++]=tl,tl=e;var r=Eo;e=Co;var i=32-Ci(r)-1;r&=~(1<<i),n+=1;var o=32-Ci(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Eo=1<<32-Ci(t)+i|n<<i|r,Co=o+e}else Eo=1<<o|n<<i|r,Co=e}function wS(e){e.return!==null&&(Os(e,1),JR(e,1,0))}function OS(e){for(;e===yv;)yv=uc[--fc],uc[fc]=null,bv=uc[--fc],uc[fc]=null;for(;e===tl;)tl=Zr[--Xr],Zr[Xr]=null,Co=Zr[--Xr],Zr[Xr]=null,Eo=Zr[--Xr],Zr[Xr]=null}var Cr=null,Sr=null,kt=!1,Oi=null;function e$(e,t){var n=ei(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 fj(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,Cr=e,Sr=Na(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Cr=e,Sr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=tl!==null?{id:Eo,overflow:Co}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ei(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Cr=e,Sr=null,!0):!1;default:return!1}}function Y_(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Z_(e){if(kt){var t=Sr;if(t){var n=t;if(!fj(e,t)){if(Y_(e))throw Error(Se(418));t=Na(n.nextSibling);var r=Cr;t&&fj(e,t)?e$(r,n):(e.flags=e.flags&-4097|2,kt=!1,Cr=e)}}else{if(Y_(e))throw Error(Se(418));e.flags=e.flags&-4097|2,kt=!1,Cr=e}}}function dj(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Cr=e}function rm(e){if(e!==Cr)return!1;if(!kt)return dj(e),kt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!H_(e.type,e.memoizedProps)),t&&(t=Sr)){if(Y_(e))throw t$(),Error(Se(418));for(;t;)e$(e,t),t=Na(t.nextSibling)}if(dj(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Se(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Sr=Na(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Sr=null}}else Sr=Cr?Na(e.stateNode.nextSibling):null;return!0}function t$(){for(var e=Sr;e;)e=Na(e.nextSibling)}function Ic(){Sr=Cr=null,kt=!1}function SS(e){Oi===null?Oi=[e]:Oi.push(e)}var AW=Yo.ReactCurrentBatchConfig;function Sf(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(Se(309));var r=n.stateNode}if(!r)throw Error(Se(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(Se(284));if(!n._owner)throw Error(Se(290,e))}return e}function im(e,t){throw e=Object.prototype.toString.call(t),Error(Se(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hj(e){var t=e._init;return t(e._payload)}function n$(e){function t(_,b){if(e){var w=_.deletions;w===null?(_.deletions=[b],_.flags|=16):w.push(b)}}function n(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function r(_,b){for(_=new Map;b!==null;)b.key!==null?_.set(b.key,b):_.set(b.index,b),b=b.sibling;return _}function i(_,b){return _=$a(_,b),_.index=0,_.sibling=null,_}function o(_,b,w){return _.index=w,e?(w=_.alternate,w!==null?(w=w.index,w<b?(_.flags|=2,b):w):(_.flags|=2,b)):(_.flags|=1048576,b)}function a(_){return e&&_.alternate===null&&(_.flags|=2),_}function s(_,b,w,S){return b===null||b.tag!==6?(b=m1(w,_.mode,S),b.return=_,b):(b=i(b,w),b.return=_,b)}function l(_,b,w,S){var P=w.type;return P===ic?f(_,b,w.props.children,S,w.key):b!==null&&(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ma&&hj(P)===b.type)?(S=i(b,w.props),S.ref=Sf(_,b,w),S.return=_,S):(S=Km(w.type,w.key,w.props,null,_.mode,S),S.ref=Sf(_,b,w),S.return=_,S)}function c(_,b,w,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=v1(w,_.mode,S),b.return=_,b):(b=i(b,w.children||[]),b.return=_,b)}function f(_,b,w,S,P){return b===null||b.tag!==7?(b=Gs(w,_.mode,S,P),b.return=_,b):(b=i(b,w),b.return=_,b)}function d(_,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=m1(""+b,_.mode,w),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case qp:return w=Km(b.type,b.key,b.props,null,_.mode,w),w.ref=Sf(_,null,b),w.return=_,w;case rc:return b=v1(b,_.mode,w),b.return=_,b;case ma:var S=b._init;return d(_,S(b._payload),w)}if(Wf(b)||bf(b))return b=Gs(b,_.mode,w,null),b.return=_,b;im(_,b)}return null}function p(_,b,w,S){var P=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:s(_,b,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case qp:return w.key===P?l(_,b,w,S):null;case rc:return w.key===P?c(_,b,w,S):null;case ma:return P=w._init,p(_,b,P(w._payload),S)}if(Wf(w)||bf(w))return P!==null?null:f(_,b,w,S,null);im(_,w)}return null}function v(_,b,w,S,P){if(typeof S=="string"&&S!==""||typeof S=="number")return _=_.get(w)||null,s(b,_,""+S,P);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case qp:return _=_.get(S.key===null?w:S.key)||null,l(b,_,S,P);case rc:return _=_.get(S.key===null?w:S.key)||null,c(b,_,S,P);case ma:var E=S._init;return v(_,b,w,E(S._payload),P)}if(Wf(S)||bf(S))return _=_.get(w)||null,f(b,_,S,P,null);im(b,S)}return null}function y(_,b,w,S){for(var P=null,E=null,T=b,j=b=0,F=null;T!==null&&j<w.length;j++){T.index>j?(F=T,T=null):F=T.sibling;var k=p(_,T,w[j],S);if(k===null){T===null&&(T=F);break}e&&T&&k.alternate===null&&t(_,T),b=o(k,b,j),E===null?P=k:E.sibling=k,E=k,T=F}if(j===w.length)return n(_,T),kt&&Os(_,j),P;if(T===null){for(;j<w.length;j++)T=d(_,w[j],S),T!==null&&(b=o(T,b,j),E===null?P=T:E.sibling=T,E=T);return kt&&Os(_,j),P}for(T=r(_,T);j<w.length;j++)F=v(T,_,j,w[j],S),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?j:F.key),b=o(F,b,j),E===null?P=F:E.sibling=F,E=F);return e&&T.forEach(function(I){return t(_,I)}),kt&&Os(_,j),P}function g(_,b,w,S){var P=bf(w);if(typeof P!="function")throw Error(Se(150));if(w=P.call(w),w==null)throw Error(Se(151));for(var E=P=null,T=b,j=b=0,F=null,k=w.next();T!==null&&!k.done;j++,k=w.next()){T.index>j?(F=T,T=null):F=T.sibling;var I=p(_,T,k.value,S);if(I===null){T===null&&(T=F);break}e&&T&&I.alternate===null&&t(_,T),b=o(I,b,j),E===null?P=I:E.sibling=I,E=I,T=F}if(k.done)return n(_,T),kt&&Os(_,j),P;if(T===null){for(;!k.done;j++,k=w.next())k=d(_,k.value,S),k!==null&&(b=o(k,b,j),E===null?P=k:E.sibling=k,E=k);return kt&&Os(_,j),P}for(T=r(_,T);!k.done;j++,k=w.next())k=v(T,_,j,k.value,S),k!==null&&(e&&k.alternate!==null&&T.delete(k.key===null?j:k.key),b=o(k,b,j),E===null?P=k:E.sibling=k,E=k);return e&&T.forEach(function(D){return t(_,D)}),kt&&Os(_,j),P}function x(_,b,w,S){if(typeof w=="object"&&w!==null&&w.type===ic&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case qp:e:{for(var P=w.key,E=b;E!==null;){if(E.key===P){if(P=w.type,P===ic){if(E.tag===7){n(_,E.sibling),b=i(E,w.props.children),b.return=_,_=b;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ma&&hj(P)===E.type){n(_,E.sibling),b=i(E,w.props),b.ref=Sf(_,E,w),b.return=_,_=b;break e}n(_,E);break}else t(_,E);E=E.sibling}w.type===ic?(b=Gs(w.props.children,_.mode,S,w.key),b.return=_,_=b):(S=Km(w.type,w.key,w.props,null,_.mode,S),S.ref=Sf(_,b,w),S.return=_,_=S)}return a(_);case rc:e:{for(E=w.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(_,b.sibling),b=i(b,w.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=v1(w,_.mode,S),b.return=_,_=b}return a(_);case ma:return E=w._init,x(_,b,E(w._payload),S)}if(Wf(w))return y(_,b,w,S);if(bf(w))return g(_,b,w,S);im(_,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,w),b.return=_,_=b):(n(_,b),b=m1(w,_.mode,S),b.return=_,_=b),a(_)):n(_,b)}return x}var Dc=n$(!0),r$=n$(!1),_v=es(null),xv=null,dc=null,PS=null;function ES(){PS=dc=xv=null}function CS(e){var t=_v.current;Tt(_v),e._currentValue=t}function X_(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 Cc(e,t){xv=e,PS=dc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(or=!0),e.firstContext=null)}function oi(e){var t=e._currentValue;if(PS!==e)if(e={context:e,memoizedValue:t,next:null},dc===null){if(xv===null)throw Error(Se(308));dc=e,xv.dependencies={lanes:0,firstContext:e}}else dc=dc.next=e;return t}var Is=null;function TS(e){Is===null?Is=[e]:Is.push(e)}function i$(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,TS(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 va=!1;function jS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function o$(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 ko(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,lt&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,TS(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function zm(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,pS(e,n)}}function pj(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 wv(e,t,n,r){var i=e.updateQueue;va=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,f=c=l=null,s=o;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,g=s;switch(p=t,v=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){d=y.call(v,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,p=typeof y=="function"?y.call(v,d,p):y,p==null)break e;d=Vt({},d,p);break e;case 2:va=!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?(c=f=v,l=d):f=f.next=v,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,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);rl|=a,e.lanes=a,e.memoizedState=d}}function mj(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(Se(191,i));i.call(r)}}}var Kh={},to=es(Kh),Fd=es(Kh),Bd=es(Kh);function Ds(e){if(e===Kh)throw Error(Se(174));return e}function AS(e,t){switch(wt(Bd,t),wt(Fd,e),wt(to,Kh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:k_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=k_(t,e)}Tt(to),wt(to,t)}function Fc(){Tt(to),Tt(Fd),Tt(Bd)}function a$(e){Ds(Bd.current);var t=Ds(to.current),n=k_(t,e.type);t!==n&&(wt(Fd,e),wt(to,n))}function kS(e){Fd.current===e&&(Tt(to),Tt(Fd))}var Ft=es(0);function Ov(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 c1=[];function NS(){for(var e=0;e<c1.length;e++)c1[e]._workInProgressVersionPrimary=null;c1.length=0}var Vm=Yo.ReactCurrentDispatcher,u1=Yo.ReactCurrentBatchConfig,nl=0,Ut=null,ln=null,gn=null,Sv=!1,od=!1,Ud=0,kW=0;function Ln(){throw Error(Se(321))}function MS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ki(e[n],t[n]))return!1;return!0}function LS(e,t,n,r,i,o){if(nl=o,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vm.current=e===null||e.memoizedState===null?RW:$W,e=n(r,i),od){o=0;do{if(od=!1,Ud=0,25<=o)throw Error(Se(301));o+=1,gn=ln=null,t.updateQueue=null,Vm.current=IW,e=n(r,i)}while(od)}if(Vm.current=Pv,t=ln!==null&&ln.next!==null,nl=0,gn=ln=Ut=null,Sv=!1,t)throw Error(Se(300));return e}function RS(){var e=Ud!==0;return Ud=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(Se(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 zd(e,t){return typeof t=="function"?t(e):t}function f1(e){var t=ai(),n=t.queue;if(n===null)throw Error(Se(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,l=null,c=o;do{var f=c.lane;if((nl&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Ut.lanes|=f,rl|=f}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,ki(r,t.memoizedState)||(or=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ut.lanes|=o,rl|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function d1(e){var t=ai(),n=t.queue;if(n===null)throw Error(Se(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);ki(o,t.memoizedState)||(or=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function s$(){}function l$(e,t){var n=Ut,r=ai(),i=t(),o=!ki(r.memoizedState,i);if(o&&(r.memoizedState=i,or=!0),r=r.queue,$S(f$.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||gn!==null&&gn.memoizedState.tag&1){if(n.flags|=2048,Vd(9,u$.bind(null,n,r,i,t),void 0,null),bn===null)throw Error(Se(349));nl&30||c$(n,t,i)}return i}function c$(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 u$(e,t,n,r){t.value=n,t.getSnapshot=r,d$(t)&&h$(e)}function f$(e,t,n){return n(function(){d$(t)&&h$(e)})}function d$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ki(e,n)}catch{return!0}}function h$(e){var t=Io(e,1);t!==null&&Ti(t,e,1,-1)}function vj(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:zd,lastRenderedState:e},t.queue=e,e=e.dispatch=LW.bind(null,Ut,e),[t.memoizedState,e]}function Vd(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 p$(){return ai().memoizedState}function Wm(e,t,n,r){var i=qi();Ut.flags|=e,i.memoizedState=Vd(1|t,n,void 0,r===void 0?null:r)}function Dy(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&&MS(r,a.deps)){i.memoizedState=Vd(t,n,o,r);return}}Ut.flags|=e,i.memoizedState=Vd(1|t,n,o,r)}function gj(e,t){return Wm(8390656,8,e,t)}function $S(e,t){return Dy(2048,8,e,t)}function m$(e,t){return Dy(4,2,e,t)}function v$(e,t){return Dy(4,4,e,t)}function g$(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 y$(e,t,n){return n=n!=null?n.concat([e]):null,Dy(4,4,g$.bind(null,t,e),n)}function IS(){}function b$(e,t){var n=ai();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&MS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _$(e,t){var n=ai();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&MS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function x$(e,t,n){return nl&21?(ki(n,t)||(n=ER(),Ut.lanes|=n,rl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,or=!0),e.memoizedState=n)}function NW(e,t){var n=ht;ht=n!==0&&4>n?n:4,e(!0);var r=u1.transition;u1.transition={};try{e(!1),t()}finally{ht=n,u1.transition=r}}function w$(){return ai().memoizedState}function MW(e,t,n){var r=Ra(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},O$(e))S$(t,n);else if(n=i$(e,t,n,r),n!==null){var i=Yn();Ti(n,e,r,i),P$(n,t,r)}}function LW(e,t,n){var r=Ra(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(O$(e))S$(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,ki(s,a)){var l=t.interleaved;l===null?(i.next=i,TS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=i$(e,t,i,r),n!==null&&(i=Yn(),Ti(n,e,r,i),P$(n,t,r))}}function O$(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function S$(e,t){od=Sv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pS(e,n)}}var Pv={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},RW={readContext:oi,useCallback:function(e,t){return qi().memoizedState=[e,t===void 0?null:t],e},useContext:oi,useEffect:gj,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wm(4194308,4,g$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wm(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=MW.bind(null,Ut,e),[r.memoizedState,e]},useRef:function(e){var t=qi();return e={current:e},t.memoizedState=e},useState:vj,useDebugValue:IS,useDeferredValue:function(e){return qi().memoizedState=e},useTransition:function(){var e=vj(!1),t=e[0];return e=NW.bind(null,e[1]),qi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ut,i=qi();if(kt){if(n===void 0)throw Error(Se(407));n=n()}else{if(n=t(),bn===null)throw Error(Se(349));nl&30||c$(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gj(f$.bind(null,r,o,e),[e]),r.flags|=2048,Vd(9,u$.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=qi(),t=bn.identifierPrefix;if(kt){var n=Co,r=Eo;n=(r&~(1<<32-Ci(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ud++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kW++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$W={readContext:oi,useCallback:b$,useContext:oi,useEffect:$S,useImperativeHandle:y$,useInsertionEffect:m$,useLayoutEffect:v$,useMemo:_$,useReducer:f1,useRef:p$,useState:function(){return f1(zd)},useDebugValue:IS,useDeferredValue:function(e){var t=ai();return x$(t,ln.memoizedState,e)},useTransition:function(){var e=f1(zd)[0],t=ai().memoizedState;return[e,t]},useMutableSource:s$,useSyncExternalStore:l$,useId:w$,unstable_isNewReconciler:!1},IW={readContext:oi,useCallback:b$,useContext:oi,useEffect:$S,useImperativeHandle:y$,useInsertionEffect:m$,useLayoutEffect:v$,useMemo:_$,useReducer:d1,useRef:p$,useState:function(){return d1(zd)},useDebugValue:IS,useDeferredValue:function(e){var t=ai();return ln===null?t.memoizedState=e:x$(t,ln.memoizedState,e)},useTransition:function(){var e=d1(zd)[0],t=ai().memoizedState;return[e,t]},useMutableSource:s$,useSyncExternalStore:l$,useId:w$,unstable_isNewReconciler:!1};function bi(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 Fy={isMounted:function(e){return(e=e._reactInternals)?xl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yn(),i=Ra(e),o=ko(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ma(e,o,i),t!==null&&(Ti(t,e,i,r),zm(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yn(),i=Ra(e),o=ko(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ma(e,o,i),t!==null&&(Ti(t,e,i,r),zm(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yn(),r=Ra(e),i=ko(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ma(e,i,r),t!==null&&(Ti(t,e,r,n),zm(t,e,r))}};function yj(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?!Rd(n,r)||!Rd(i,o):!0}function E$(e,t,n){var r=!1,i=Wa,o=t.contextType;return typeof o=="object"&&o!==null?o=oi(o):(i=cr(t)?el:Fn.current,r=t.contextTypes,o=(r=r!=null)?$c(e,i):Wa),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bj(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&&Fy.enqueueReplaceState(t,t.state,null)}function J_(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},jS(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=oi(o):(o=cr(t)?el:Fn.current,i.context=$c(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&&Fy.enqueueReplaceState(i,i.state,null),wv(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Bc(e,t){try{var n="",r=t;do n+=fV(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 h1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ex(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var DW=typeof WeakMap=="function"?WeakMap:Map;function C$(e,t,n){n=ko(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cv||(Cv=!0,ux=r),ex(e,t)},n}function T$(e,t,n){n=ko(-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(){ex(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ex(e,t),typeof r!="function"&&(La===null?La=new Set([this]):La.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function _j(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DW;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=QW.bind(null,e,t,n),t.then(e,e))}function xj(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 wj(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=ko(-1,1),t.tag=2,Ma(n,t,1))),n.lanes|=1),e)}var FW=Yo.ReactCurrentOwner,or=!1;function Hn(e,t,n,r){t.child=e===null?r$(t,null,n,r):Dc(t,e.child,n,r)}function Oj(e,t,n,r,i){n=n.render;var o=t.ref;return Cc(t,i),r=LS(e,t,n,r,o,i),n=RS(),e!==null&&!or?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Do(e,t,i)):(kt&&n&&wS(t),t.flags|=1,Hn(e,t,r,i),t.child)}function Sj(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!HS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,j$(e,t,o,r,i)):(e=Km(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:Rd,n(a,r)&&e.ref===t.ref)return Do(e,t,i)}return t.flags|=1,e=$a(o,r),e.ref=t.ref,e.return=t,t.child=e}function j$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Rd(o,r)&&e.ref===t.ref)if(or=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(or=!0);else return t.lanes=e.lanes,Do(e,t,i)}return tx(e,t,n,r,i)}function A$(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},wt(pc,xr),xr|=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,wt(pc,xr),xr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,wt(pc,xr),xr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,wt(pc,xr),xr|=r;return Hn(e,t,i,n),t.child}function k$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tx(e,t,n,r,i){var o=cr(n)?el:Fn.current;return o=$c(t,o),Cc(t,i),n=LS(e,t,n,r,o,i),r=RS(),e!==null&&!or?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Do(e,t,i)):(kt&&r&&wS(t),t.flags|=1,Hn(e,t,n,i),t.child)}function Pj(e,t,n,r,i){if(cr(n)){var o=!0;gv(t)}else o=!1;if(Cc(t,i),t.stateNode===null)Hm(e,t),E$(t,n,r),J_(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=oi(c):(c=cr(n)?el:Fn.current,c=$c(t,c));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&bj(t,a,r,c),va=!1;var p=t.memoizedState;a.state=p,wv(t,r,a,i),l=t.memoizedState,s!==r||p!==l||lr.current||va?(typeof f=="function"&&(Q_(t,n,f,r),l=t.memoizedState),(s=va||yj(t,n,s,r,p,l,c))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,o$(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:bi(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=oi(l):(l=cr(n)?el:Fn.current,l=$c(t,l));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==l)&&bj(t,a,r,l),va=!1,p=t.memoizedState,a.state=p,wv(t,r,a,i);var y=t.memoizedState;s!==d||p!==y||lr.current||va?(typeof v=="function"&&(Q_(t,n,v,r),y=t.memoizedState),(c=va||yj(t,n,c,r,p,y,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=c):(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 nx(e,t,n,r,o,i)}function nx(e,t,n,r,i,o){k$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&uj(t,n,!1),Do(e,t,o);r=t.stateNode,FW.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Dc(t,e.child,null,o),t.child=Dc(t,null,s,o)):Hn(e,t,s,o),t.memoizedState=r.state,i&&uj(t,n,!0),t.child}function N$(e){var t=e.stateNode;t.pendingContext?cj(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cj(e,t.context,!1),AS(e,t.containerInfo)}function Ej(e,t,n,r,i){return Ic(),SS(i),t.flags|=256,Hn(e,t,n,r),t.child}var rx={dehydrated:null,treeContext:null,retryLane:0};function ix(e){return{baseLanes:e,cachePool:null,transitions:null}}function M$(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),wt(Ft,i&1),e===null)return Z_(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=zy(a,r,0,null),e=Gs(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ix(n),t.memoizedState=rx,e):DS(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return BW(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=$a(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=$a(s,o):(o=Gs(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?ix(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=rx,r}return o=e.child,e=o.sibling,r=$a(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 DS(e,t){return t=zy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function om(e,t,n,r){return r!==null&&SS(r),Dc(t,e.child,null,n),e=DS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BW(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=h1(Error(Se(422))),om(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=zy({mode:"visible",children:r.children},i,0,null),o=Gs(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Dc(t,e.child,null,a),t.child.memoizedState=ix(a),t.memoizedState=rx,o);if(!(t.mode&1))return om(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Se(419)),r=h1(o,r,void 0),om(e,t,a,r)}if(s=(a&e.childLanes)!==0,or||s){if(r=bn,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),Ti(r,e,i,-1))}return WS(),r=h1(Error(Se(421))),om(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=JW.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Sr=Na(i.nextSibling),Cr=t,kt=!0,Oi=null,e!==null&&(Zr[Xr++]=Eo,Zr[Xr++]=Co,Zr[Xr++]=tl,Eo=e.id,Co=e.overflow,tl=t),t=DS(t,r.children),t.flags|=4096,t)}function Cj(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),X_(e.return,t,n)}function p1(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 L$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Hn(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&&Cj(e,n,t);else if(e.tag===19)Cj(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(wt(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&&Ov(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),p1(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&&Ov(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}p1(t,!0,n,null,o);break;case"together":p1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hm(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),rl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Se(153));if(t.child!==null){for(e=t.child,n=$a(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$a(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function UW(e,t,n){switch(t.tag){case 3:N$(t),Ic();break;case 5:a$(t);break;case 1:cr(t.type)&&gv(t);break;case 4:AS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;wt(_v,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(wt(Ft,Ft.current&1),t.flags|=128,null):n&t.child.childLanes?M$(e,t,n):(wt(Ft,Ft.current&1),e=Do(e,t,n),e!==null?e.sibling:null);wt(Ft,Ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return L$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),wt(Ft,Ft.current),r)break;return null;case 22:case 23:return t.lanes=0,A$(e,t,n)}return Do(e,t,n)}var R$,ox,$$,I$;R$=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}};ox=function(){};$$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ds(to.current);var o=null;switch(n){case"input":i=C_(e,i),r=C_(e,r),o=[];break;case"select":i=Vt({},i,{value:void 0}),r=Vt({},r,{value:void 0}),o=[];break;case"textarea":i=A_(e,i),r=A_(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mv)}N_(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Td.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Td.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&St("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};I$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Pf(e,t){if(!kt)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 zW(e,t,n){var r=t.pendingProps;switch(OS(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 cr(t.type)&&vv(),Rn(t),null;case 3:return r=t.stateNode,Fc(),Tt(lr),Tt(Fn),NS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oi!==null&&(hx(Oi),Oi=null))),ox(e,t),Rn(t),null;case 5:kS(t);var i=Ds(Bd.current);if(n=t.type,e!==null&&t.stateNode!=null)$$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Se(166));return Rn(t),null}if(e=Ds(to.current),rm(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Yi]=t,r[Dd]=o,e=(t.mode&1)!==0,n){case"dialog":St("cancel",r),St("close",r);break;case"iframe":case"object":case"embed":St("load",r);break;case"video":case"audio":for(i=0;i<Gf.length;i++)St(Gf[i],r);break;case"source":St("error",r);break;case"img":case"image":case"link":St("error",r),St("load",r);break;case"details":St("toggle",r);break;case"input":$T(r,o),St("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},St("invalid",r);break;case"textarea":DT(r,o),St("invalid",r)}N_(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&&nm(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&nm(r.textContent,s,e),i=["children",""+s]):Td.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&St("scroll",r)}switch(n){case"input":Kp(r),IT(r,o,!0);break;case"textarea":Kp(r),FT(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=mv)}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=fR(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[Yi]=t,e[Dd]=r,R$(e,t,!1,!1),t.stateNode=e;e:{switch(a=M_(n,r),n){case"dialog":St("cancel",e),St("close",e),i=r;break;case"iframe":case"object":case"embed":St("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gf.length;i++)St(Gf[i],e);i=r;break;case"source":St("error",e),i=r;break;case"img":case"image":case"link":St("error",e),St("load",e),i=r;break;case"details":St("toggle",e),i=r;break;case"input":$T(e,r),i=C_(e,r),St("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Vt({},r,{value:void 0}),St("invalid",e);break;case"textarea":DT(e,r),i=A_(e,r),St("invalid",e);break;default:i=r}N_(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?pR(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&dR(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&jd(e,l):typeof l=="number"&&jd(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Td.hasOwnProperty(o)?l!=null&&o==="onScroll"&&St("scroll",e):l!=null&&lS(e,o,l,a))}switch(n){case"input":Kp(e),IT(e,r,!1);break;case"textarea":Kp(e),FT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Va(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Oc(e,!!r.multiple,o,!1):r.defaultValue!=null&&Oc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=mv)}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)I$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Se(166));if(n=Ds(Bd.current),Ds(to.current),rm(t)){if(r=t.stateNode,n=t.memoizedProps,r[Yi]=t,(o=r.nodeValue!==n)&&(e=Cr,e!==null))switch(e.tag){case 3:nm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nm(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yi]=t,t.stateNode=r}return Rn(t),null;case 13:if(Tt(Ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(kt&&Sr!==null&&t.mode&1&&!(t.flags&128))t$(),Ic(),t.flags|=98560,o=!1;else if(o=rm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Se(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Se(317));o[Yi]=t}else Ic(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rn(t),o=!1}else Oi!==null&&(hx(Oi),Oi=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):WS())),t.updateQueue!==null&&(t.flags|=4),Rn(t),null);case 4:return Fc(),ox(e,t),e===null&&$d(t.stateNode.containerInfo),Rn(t),null;case 10:return CS(t.type._context),Rn(t),null;case 17:return cr(t.type)&&vv(),Rn(t),null;case 19:if(Tt(Ft),o=t.memoizedState,o===null)return Rn(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Pf(o,!1);else{if(cn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ov(e),a!==null){for(t.flags|=128,Pf(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 wt(Ft,Ft.current&1|2),t.child}e=e.sibling}o.tail!==null&&Xt()>Uc&&(t.flags|=128,r=!0,Pf(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ov(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!kt)return Rn(t),null}else 2*Xt()-o.renderingStartTime>Uc&&n!==1073741824&&(t.flags|=128,r=!0,Pf(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,wt(Ft,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return VS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xr&1073741824&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(Se(156,t.tag))}function VW(e,t){switch(OS(t),t.tag){case 1:return cr(t.type)&&vv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fc(),Tt(lr),Tt(Fn),NS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kS(t),null;case 13:if(Tt(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Se(340));Ic()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tt(Ft),null;case 4:return Fc(),null;case 10:return CS(t.type._context),null;case 22:case 23:return VS(),null;case 24:return null;default:return null}}var am=!1,In=!1,WW=typeof WeakSet=="function"?WeakSet:Set,Re=null;function hc(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 ax(e,t,n){try{n()}catch(r){Ht(e,t,r)}}var Tj=!1;function HW(e,t){if(V_=dv,e=zR(),xS(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++c===i&&(s=a),p===o&&++f===r&&(l=a),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(W_={focusedElem:e,selectionRange:n},dv=!1,Re=t;Re!==null;)if(t=Re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Re=e;else for(;Re!==null;){t=Re;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,x=y.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?g:bi(t.type,g),x);_.__reactInternalSnapshotBeforeUpdate=b}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(Se(163))}}catch(S){Ht(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Re=e;break}Re=t.return}return y=Tj,Tj=!1,y}function ad(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&&ax(t,n,o)}i=i.next}while(i!==r)}}function By(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 sx(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 D$(e){var t=e.alternate;t!==null&&(e.alternate=null,D$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yi],delete t[Dd],delete t[q_],delete t[CW],delete t[TW])),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 F$(e){return e.tag===5||e.tag===3||e.tag===4}function jj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F$(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 lx(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=mv));else if(r!==4&&(e=e.child,e!==null))for(lx(e,t,n),e=e.sibling;e!==null;)lx(e,t,n),e=e.sibling}function cx(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(cx(e,t,n),e=e.sibling;e!==null;)cx(e,t,n),e=e.sibling}var jn=null,_i=!1;function aa(e,t,n){for(n=n.child;n!==null;)B$(e,t,n),n=n.sibling}function B$(e,t,n){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(Ny,n)}catch{}switch(n.tag){case 5:In||hc(n,t);case 6:var r=jn,i=_i;jn=null,aa(e,t,n),jn=r,_i=i,jn!==null&&(_i?(e=jn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jn.removeChild(n.stateNode));break;case 18:jn!==null&&(_i?(e=jn,n=n.stateNode,e.nodeType===8?s1(e.parentNode,n):e.nodeType===1&&s1(e,n),Md(e)):s1(jn,n.stateNode));break;case 4:r=jn,i=_i,jn=n.stateNode.containerInfo,_i=!0,aa(e,t,n),jn=r,_i=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)&&ax(n,t,a),i=i.next}while(i!==r)}aa(e,t,n);break;case 1:if(!In&&(hc(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 Aj(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WW),t.forEach(function(r){var i=eH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gi(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:jn=s.stateNode,_i=!1;break e;case 3:jn=s.stateNode.containerInfo,_i=!0;break e;case 4:jn=s.stateNode.containerInfo,_i=!0;break e}s=s.return}if(jn===null)throw Error(Se(160));B$(o,a,i),jn=null,_i=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Ht(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)U$(t,e),t=t.sibling}function U$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gi(t,e),Hi(e),r&4){try{ad(3,e,e.return),By(3,e)}catch(g){Ht(e,e.return,g)}try{ad(5,e,e.return)}catch(g){Ht(e,e.return,g)}}break;case 1:gi(t,e),Hi(e),r&512&&n!==null&&hc(n,n.return);break;case 5:if(gi(t,e),Hi(e),r&512&&n!==null&&hc(n,n.return),e.flags&32){var i=e.stateNode;try{jd(i,"")}catch(g){Ht(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&cR(i,o),M_(s,a);var c=M_(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?pR(i,d):f==="dangerouslySetInnerHTML"?dR(i,d):f==="children"?jd(i,d):lS(i,f,d,c)}switch(s){case"input":T_(i,o);break;case"textarea":uR(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Oc(i,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?Oc(i,!!o.multiple,o.defaultValue,!0):Oc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Dd]=o}catch(g){Ht(e,e.return,g)}}break;case 6:if(gi(t,e),Hi(e),r&4){if(e.stateNode===null)throw Error(Se(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){Ht(e,e.return,g)}}break;case 3:if(gi(t,e),Hi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Md(t.containerInfo)}catch(g){Ht(e,e.return,g)}break;case 4:gi(t,e),Hi(e);break;case 13:gi(t,e),Hi(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(US=Xt())),r&4&&Aj(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(In=(c=In)||f,gi(t,e),In=c):gi(t,e),Hi(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(Re=e,f=e.child;f!==null;){for(d=Re=f;Re!==null;){switch(p=Re,v=p.child,p.tag){case 0:case 11:case 14:case 15:ad(4,p,p.return);break;case 1:hc(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(g){Ht(r,n,g)}}break;case 5:hc(p,p.return);break;case 22:if(p.memoizedState!==null){Nj(d);continue}}v!==null?(v.return=p,Re=v):Nj(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=hR("display",a))}catch(g){Ht(e,e.return,g)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){Ht(e,e.return,g)}}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:gi(t,e),Hi(e),r&4&&Aj(e);break;case 21:break;default:gi(t,e),Hi(e)}}function Hi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(F$(n)){var r=n;break e}n=n.return}throw Error(Se(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(jd(i,""),r.flags&=-33);var o=jj(e);cx(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=jj(e);lx(e,s,a);break;default:throw Error(Se(161))}}catch(l){Ht(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function GW(e,t,n){Re=e,z$(e)}function z$(e,t,n){for(var r=(e.mode&1)!==0;Re!==null;){var i=Re,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||am;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||In;s=am;var c=In;if(am=a,(In=l)&&!c)for(Re=i;Re!==null;)a=Re,l=a.child,a.tag===22&&a.memoizedState!==null?Mj(i):l!==null?(l.return=a,Re=l):Mj(i);for(;o!==null;)Re=o,z$(o),o=o.sibling;Re=i,am=s,In=c}kj(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Re=o):kj(e)}}function kj(e){for(;Re!==null;){var t=Re;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:In||By(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:bi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&mj(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}mj(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Md(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Se(163))}In||t.flags&512&&sx(t)}catch(p){Ht(t,t.return,p)}}if(t===e){Re=null;break}if(n=t.sibling,n!==null){n.return=t.return,Re=n;break}Re=t.return}}function Nj(e){for(;Re!==null;){var t=Re;if(t===e){Re=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Re=n;break}Re=t.return}}function Mj(e){for(;Re!==null;){var t=Re;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{By(4,t)}catch(l){Ht(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Ht(t,i,l)}}var o=t.return;try{sx(t)}catch(l){Ht(t,o,l)}break;case 5:var a=t.return;try{sx(t)}catch(l){Ht(t,a,l)}}}catch(l){Ht(t,t.return,l)}if(t===e){Re=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Re=s;break}Re=t.return}}var qW=Math.ceil,Ev=Yo.ReactCurrentDispatcher,FS=Yo.ReactCurrentOwner,ni=Yo.ReactCurrentBatchConfig,lt=0,bn=null,rn=null,kn=0,xr=0,pc=es(0),cn=0,Wd=null,rl=0,Uy=0,BS=0,sd=null,ir=null,US=0,Uc=1/0,Oo=null,Cv=!1,ux=null,La=null,sm=!1,wa=null,Tv=0,ld=0,fx=null,Gm=-1,qm=0;function Yn(){return lt&6?Xt():Gm!==-1?Gm:Gm=Xt()}function Ra(e){return e.mode&1?lt&2&&kn!==0?kn&-kn:AW.transition!==null?(qm===0&&(qm=ER()),qm):(e=ht,e!==0||(e=window.event,e=e===void 0?16:MR(e.type)),e):1}function Ti(e,t,n,r){if(50<ld)throw ld=0,fx=null,Error(Se(185));Hh(e,n,r),(!(lt&2)||e!==bn)&&(e===bn&&(!(lt&2)&&(Uy|=n),cn===4&&ba(e,kn)),ur(e,r),n===1&<===0&&!(t.mode&1)&&(Uc=Xt()+500,Iy&&ts()))}function ur(e,t){var n=e.callbackNode;AV(e,t);var r=fv(e,e===bn?kn:0);if(r===0)n!==null&&zT(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zT(n),t===1)e.tag===0?jW(Lj.bind(null,e)):QR(Lj.bind(null,e)),PW(function(){!(lt&6)&&ts()}),n=null;else{switch(CR(r)){case 1:n=hS;break;case 4:n=SR;break;case 16:n=uv;break;case 536870912:n=PR;break;default:n=uv}n=Z$(n,V$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function V$(e,t){if(Gm=-1,qm=0,lt&6)throw Error(Se(327));var n=e.callbackNode;if(Tc()&&e.callbackNode!==n)return null;var r=fv(e,e===bn?kn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=jv(e,r);else{t=r;var i=lt;lt|=2;var o=H$();(bn!==e||kn!==t)&&(Oo=null,Uc=Xt()+500,Hs(e,t));do try{ZW();break}catch(s){W$(e,s)}while(!0);ES(),Ev.current=o,lt=i,rn!==null?t=0:(bn=null,kn=0,t=cn)}if(t!==0){if(t===2&&(i=D_(e),i!==0&&(r=i,t=dx(e,i))),t===1)throw n=Wd,Hs(e,0),ba(e,r),ur(e,Xt()),n;if(t===6)ba(e,r);else{if(i=e.current.alternate,!(r&30)&&!KW(i)&&(t=jv(e,r),t===2&&(o=D_(e),o!==0&&(r=o,t=dx(e,o))),t===1))throw n=Wd,Hs(e,0),ba(e,r),ur(e,Xt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Se(345));case 2:Ss(e,ir,Oo);break;case 3:if(ba(e,r),(r&130023424)===r&&(t=US+500-Xt(),10<t)){if(fv(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Yn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=G_(Ss.bind(null,e,ir,Oo),t);break}Ss(e,ir,Oo);break;case 4:if(ba(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ci(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*qW(r/1960))-r,10<r){e.timeoutHandle=G_(Ss.bind(null,e,ir,Oo),r);break}Ss(e,ir,Oo);break;case 5:Ss(e,ir,Oo);break;default:throw Error(Se(329))}}}return ur(e,Xt()),e.callbackNode===n?V$.bind(null,e):null}function dx(e,t){var n=sd;return e.current.memoizedState.isDehydrated&&(Hs(e,t).flags|=256),e=jv(e,t),e!==2&&(t=ir,ir=n,t!==null&&hx(t)),e}function hx(e){ir===null?ir=e:ir.push.apply(ir,e)}function KW(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(!ki(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 ba(e,t){for(t&=~BS,t&=~Uy,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ci(t),r=1<<n;e[n]=-1,t&=~r}}function Lj(e){if(lt&6)throw Error(Se(327));Tc();var t=fv(e,0);if(!(t&1))return ur(e,Xt()),null;var n=jv(e,t);if(e.tag!==0&&n===2){var r=D_(e);r!==0&&(t=r,n=dx(e,r))}if(n===1)throw n=Wd,Hs(e,0),ba(e,t),ur(e,Xt()),n;if(n===6)throw Error(Se(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e,ir,Oo),ur(e,Xt()),null}function zS(e,t){var n=lt;lt|=1;try{return e(t)}finally{lt=n,lt===0&&(Uc=Xt()+500,Iy&&ts())}}function il(e){wa!==null&&wa.tag===0&&!(lt&6)&&Tc();var t=lt;lt|=1;var n=ni.transition,r=ht;try{if(ni.transition=null,ht=1,e)return e()}finally{ht=r,ni.transition=n,lt=t,!(lt&6)&&ts()}}function VS(){xr=pc.current,Tt(pc)}function Hs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,SW(n)),rn!==null)for(n=rn.return;n!==null;){var r=n;switch(OS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vv();break;case 3:Fc(),Tt(lr),Tt(Fn),NS();break;case 5:kS(r);break;case 4:Fc();break;case 13:Tt(Ft);break;case 19:Tt(Ft);break;case 10:CS(r.type._context);break;case 22:case 23:VS()}n=n.return}if(bn=e,rn=e=$a(e.current,null),kn=xr=t,cn=0,Wd=null,BS=Uy=rl=0,ir=sd=null,Is!==null){for(t=0;t<Is.length;t++)if(n=Is[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}Is=null}return e}function W$(e,t){do{var n=rn;try{if(ES(),Vm.current=Pv,Sv){for(var r=Ut.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Sv=!1}if(nl=0,gn=ln=Ut=null,od=!1,Ud=0,FS.current=null,n===null||n.return===null){cn=1,Wd=t,rn=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=kn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=xj(a);if(v!==null){v.flags&=-257,wj(v,a,s,o,t),v.mode&1&&_j(o,c,t),t=v,l=c;var y=t.updateQueue;if(y===null){var g=new Set;g.add(l),t.updateQueue=g}else y.add(l);break e}else{if(!(t&1)){_j(o,c,t),WS();break e}l=Error(Se(426))}}else if(kt&&s.mode&1){var x=xj(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),wj(x,a,s,o,t),SS(Bc(l,s));break e}}o=l=Bc(l,s),cn!==4&&(cn=2),sd===null?sd=[o]:sd.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=C$(o,l,t);pj(o,_);break e;case 1:s=l;var b=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(La===null||!La.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=T$(o,s,t);pj(o,S);break e}}o=o.return}while(o!==null)}q$(n)}catch(P){t=P,rn===n&&n!==null&&(rn=n=n.return);continue}break}while(!0)}function H$(){var e=Ev.current;return Ev.current=Pv,e===null?Pv:e}function WS(){(cn===0||cn===3||cn===2)&&(cn=4),bn===null||!(rl&268435455)&&!(Uy&268435455)||ba(bn,kn)}function jv(e,t){var n=lt;lt|=2;var r=H$();(bn!==e||kn!==t)&&(Oo=null,Hs(e,t));do try{YW();break}catch(i){W$(e,i)}while(!0);if(ES(),lt=n,Ev.current=r,rn!==null)throw Error(Se(261));return bn=null,kn=0,cn}function YW(){for(;rn!==null;)G$(rn)}function ZW(){for(;rn!==null&&!xV();)G$(rn)}function G$(e){var t=Y$(e.alternate,e,xr);e.memoizedProps=e.pendingProps,t===null?q$(e):rn=t,FS.current=null}function q$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=VW(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=zW(n,t,xr),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 Ss(e,t,n){var r=ht,i=ni.transition;try{ni.transition=null,ht=1,XW(e,t,n,r)}finally{ni.transition=i,ht=r}return null}function XW(e,t,n,r){do Tc();while(wa!==null);if(lt&6)throw Error(Se(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(Se(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(kV(e,o),e===bn&&(rn=bn=null,kn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sm||(sm=!0,Z$(uv,function(){return Tc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ni.transition,ni.transition=null;var a=ht;ht=1;var s=lt;lt|=4,FS.current=null,HW(e,n),U$(n,e),gW(W_),dv=!!V_,W_=V_=null,e.current=n,GW(n),wV(),lt=s,ht=a,ni.transition=o}else e.current=n;if(sm&&(sm=!1,wa=e,Tv=i),o=e.pendingLanes,o===0&&(La=null),PV(n.stateNode),ur(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(Cv)throw Cv=!1,e=ux,ux=null,e;return Tv&1&&e.tag!==0&&Tc(),o=e.pendingLanes,o&1?e===fx?ld++:(ld=0,fx=e):ld=0,ts(),null}function Tc(){if(wa!==null){var e=CR(Tv),t=ni.transition,n=ht;try{if(ni.transition=null,ht=16>e?16:e,wa===null)var r=!1;else{if(e=wa,wa=null,Tv=0,lt&6)throw Error(Se(331));var i=lt;for(lt|=4,Re=e.current;Re!==null;){var o=Re,a=o.child;if(Re.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Re=c;Re!==null;){var f=Re;switch(f.tag){case 0:case 11:case 15:ad(8,f,o)}var d=f.child;if(d!==null)d.return=f,Re=d;else for(;Re!==null;){f=Re;var p=f.sibling,v=f.return;if(D$(f),f===c){Re=null;break}if(p!==null){p.return=v,Re=p;break}Re=v}}}var y=o.alternate;if(y!==null){var g=y.child;if(g!==null){y.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}Re=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Re=a;else e:for(;Re!==null;){if(o=Re,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ad(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,Re=_;break e}Re=o.return}}var b=e.current;for(Re=b;Re!==null;){a=Re;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,Re=w;else e:for(a=b;Re!==null;){if(s=Re,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:By(9,s)}}catch(P){Ht(s,s.return,P)}if(s===a){Re=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Re=S;break e}Re=s.return}}if(lt=i,ts(),eo&&typeof eo.onPostCommitFiberRoot=="function")try{eo.onPostCommitFiberRoot(Ny,e)}catch{}r=!0}return r}finally{ht=n,ni.transition=t}}return!1}function Rj(e,t,n){t=Bc(n,t),t=C$(e,t,1),e=Ma(e,t,1),t=Yn(),e!==null&&(Hh(e,1,t),ur(e,t))}function Ht(e,t,n){if(e.tag===3)Rj(e,e,n);else for(;t!==null;){if(t.tag===3){Rj(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(La===null||!La.has(r))){e=Bc(n,e),e=T$(t,e,1),t=Ma(t,e,1),e=Yn(),t!==null&&(Hh(t,1,e),ur(t,e));break}}t=t.return}}function QW(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Yn(),e.pingedLanes|=e.suspendedLanes&n,bn===e&&(kn&n)===n&&(cn===4||cn===3&&(kn&130023424)===kn&&500>Xt()-US?Hs(e,0):BS|=n),ur(e,t)}function K$(e,t){t===0&&(e.mode&1?(t=Xp,Xp<<=1,!(Xp&130023424)&&(Xp=4194304)):t=1);var n=Yn();e=Io(e,t),e!==null&&(Hh(e,t,n),ur(e,n))}function JW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K$(e,n)}function eH(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(Se(314))}r!==null&&r.delete(t),K$(e,n)}var Y$;Y$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lr.current)or=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return or=!1,UW(e,t,n);or=!!(e.flags&131072)}else or=!1,kt&&t.flags&1048576&&JR(t,bv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hm(e,t),e=t.pendingProps;var i=$c(t,Fn.current);Cc(t,n),i=LS(null,t,r,e,i,n);var o=RS();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,cr(r)?(o=!0,gv(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jS(t),i.updater=Fy,t.stateNode=i,i._reactInternals=t,J_(t,r,e,n),t=nx(null,t,r,!0,o,n)):(t.tag=0,kt&&o&&wS(t),Hn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hm(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=nH(r),e=bi(r,e),i){case 0:t=tx(null,t,r,e,n);break e;case 1:t=Pj(null,t,r,e,n);break e;case 11:t=Oj(null,t,r,e,n);break e;case 14:t=Sj(null,t,r,bi(r.type,e),n);break e}throw Error(Se(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bi(r,i),tx(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bi(r,i),Pj(e,t,r,i,n);case 3:e:{if(N$(t),e===null)throw Error(Se(387));r=t.pendingProps,o=t.memoizedState,i=o.element,o$(e,t),wv(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=Bc(Error(Se(423)),t),t=Ej(e,t,r,n,i);break e}else if(r!==i){i=Bc(Error(Se(424)),t),t=Ej(e,t,r,n,i);break e}else for(Sr=Na(t.stateNode.containerInfo.firstChild),Cr=t,kt=!0,Oi=null,n=r$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ic(),r===i){t=Do(e,t,n);break e}Hn(e,t,r,n)}t=t.child}return t;case 5:return a$(t),e===null&&Z_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,H_(r,i)?a=null:o!==null&&H_(r,o)&&(t.flags|=32),k$(e,t),Hn(e,t,a,n),t.child;case 6:return e===null&&Z_(t),null;case 13:return M$(e,t,n);case 4:return AS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dc(t,null,r,n):Hn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bi(r,i),Oj(e,t,r,i,n);case 7:return Hn(e,t,t.pendingProps,n),t.child;case 8:return Hn(e,t,t.pendingProps.children,n),t.child;case 12:return Hn(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,wt(_v,r._currentValue),r._currentValue=a,o!==null)if(ki(o.value,a)){if(o.children===i.children&&!lr.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 l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ko(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),X_(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Se(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),X_(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}Hn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Cc(t,n),i=oi(i),r=r(i),t.flags|=1,Hn(e,t,r,n),t.child;case 14:return r=t.type,i=bi(r,t.pendingProps),i=bi(r.type,i),Sj(e,t,r,i,n);case 15:return j$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bi(r,i),Hm(e,t),t.tag=1,cr(r)?(e=!0,gv(t)):e=!1,Cc(t,n),E$(t,r,i),J_(t,r,i,n),nx(null,t,r,!0,e,n);case 19:return L$(e,t,n);case 22:return A$(e,t,n)}throw Error(Se(156,t.tag))};function Z$(e,t){return OR(e,t)}function tH(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 ei(e,t,n,r){return new tH(e,t,n,r)}function HS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nH(e){if(typeof e=="function")return HS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uS)return 11;if(e===fS)return 14}return 2}function $a(e,t){var n=e.alternate;return n===null?(n=ei(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 Km(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")HS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ic:return Gs(n.children,i,o,t);case cS:a=8,i|=8;break;case O_:return e=ei(12,n,t,i|2),e.elementType=O_,e.lanes=o,e;case S_:return e=ei(13,n,t,i),e.elementType=S_,e.lanes=o,e;case P_:return e=ei(19,n,t,i),e.elementType=P_,e.lanes=o,e;case aR:return zy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iR:a=10;break e;case oR:a=9;break e;case uS:a=11;break e;case fS:a=14;break e;case ma:a=16,r=null;break e}throw Error(Se(130,e==null?e:typeof e,""))}return t=ei(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Gs(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function zy(e,t,n,r){return e=ei(22,e,r,t),e.elementType=aR,e.lanes=n,e.stateNode={isHidden:!1},e}function m1(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function v1(e,t,n){return t=ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rH(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=Zb(0),this.expirationTimes=Zb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zb(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function GS(e,t,n,r,i,o,a,s,l){return e=new rH(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ei(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jS(o),e}function iH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function X$(e){if(!e)return Wa;e=e._reactInternals;e:{if(xl(e)!==e||e.tag!==1)throw Error(Se(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(cr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Se(171))}if(e.tag===1){var n=e.type;if(cr(n))return XR(e,n,t)}return t}function Q$(e,t,n,r,i,o,a,s,l){return e=GS(n,r,!0,e,i,o,a,s,l),e.context=X$(null),n=e.current,r=Yn(),i=Ra(n),o=ko(r,i),o.callback=t??null,Ma(n,o,i),e.current.lanes=i,Hh(e,i,r),ur(e,r),e}function Vy(e,t,n,r){var i=t.current,o=Yn(),a=Ra(i);return n=X$(n),t.context===null?t.context=n:t.pendingContext=n,t=ko(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ma(i,t,a),e!==null&&(Ti(e,i,a,o),zm(e,i,a)),a}function Av(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 $j(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qS(e,t){$j(e,t),(e=e.alternate)&&$j(e,t)}function oH(){return null}var J$=typeof reportError=="function"?reportError:function(e){console.error(e)};function KS(e){this._internalRoot=e}Wy.prototype.render=KS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Se(409));Vy(e,t,null,null)};Wy.prototype.unmount=KS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;il(function(){Vy(null,e,null,null)}),t[$o]=null}};function Wy(e){this._internalRoot=e}Wy.prototype.unstable_scheduleHydration=function(e){if(e){var t=AR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ya.length&&t!==0&&t<ya[n].priority;n++);ya.splice(n,0,e),n===0&&NR(e)}};function YS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ij(){}function aH(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Av(a);o.call(c)}}var a=Q$(t,r,e,0,null,!1,!1,"",Ij);return e._reactRootContainer=a,e[$o]=a.current,$d(e.nodeType===8?e.parentNode:e),il(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=Av(l);s.call(c)}}var l=GS(e,0,!1,null,null,!1,!1,"",Ij);return e._reactRootContainer=l,e[$o]=l.current,$d(e.nodeType===8?e.parentNode:e),il(function(){Vy(t,l,n,r)}),l}function Gy(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Av(a);s.call(l)}}Vy(t,a,e,i)}else a=aH(n,t,e,i,r);return Av(a)}TR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hf(t.pendingLanes);n!==0&&(pS(t,n|1),ur(t,Xt()),!(lt&6)&&(Uc=Xt()+500,ts()))}break;case 13:il(function(){var r=Io(e,1);if(r!==null){var i=Yn();Ti(r,e,1,i)}}),qS(e,1)}};mS=function(e){if(e.tag===13){var t=Io(e,134217728);if(t!==null){var n=Yn();Ti(t,e,134217728,n)}qS(e,134217728)}};jR=function(e){if(e.tag===13){var t=Ra(e),n=Io(e,t);if(n!==null){var r=Yn();Ti(n,e,t,r)}qS(e,t)}};AR=function(){return ht};kR=function(e,t){var n=ht;try{return ht=e,t()}finally{ht=n}};R_=function(e,t,n){switch(t){case"input":if(T_(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=$y(r);if(!i)throw Error(Se(90));lR(r),T_(r,i)}}}break;case"textarea":uR(e,n);break;case"select":t=n.value,t!=null&&Oc(e,!!n.multiple,t,!1)}};gR=zS;yR=il;var sH={usingClientEntryPoint:!1,Events:[qh,lc,$y,mR,vR,zS]},Ef={findFiberByHostInstance:$s,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lH={bundleType:Ef.bundleType,version:Ef.version,rendererPackageName:Ef.rendererPackageName,rendererConfig:Ef.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xR(e),e===null?null:e.stateNode},findFiberByHostInstance:Ef.findFiberByHostInstance||oH,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 lm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lm.isDisabled&&lm.supportsFiber)try{Ny=lm.inject(lH),eo=lm}catch{}}Rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sH;Rr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!YS(t))throw Error(Se(200));return iH(e,t,null,n)};Rr.createRoot=function(e,t){if(!YS(e))throw Error(Se(299));var n=!1,r="",i=J$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=GS(e,1,!1,null,null,n,!1,r,i),e[$o]=t.current,$d(e.nodeType===8?e.parentNode:e),new KS(t)};Rr.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(Se(188)):(e=Object.keys(e).join(","),Error(Se(268,e)));return e=xR(t),e=e===null?null:e.stateNode,e};Rr.flushSync=function(e){return il(e)};Rr.hydrate=function(e,t,n){if(!Hy(t))throw Error(Se(200));return Gy(null,e,t,!0,n)};Rr.hydrateRoot=function(e,t,n){if(!YS(e))throw Error(Se(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=J$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Q$(t,null,e,1,n??null,i,!1,o,a),e[$o]=t.current,$d(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 Wy(t)};Rr.render=function(e,t,n){if(!Hy(t))throw Error(Se(200));return Gy(null,e,t,!1,n)};Rr.unmountComponentAtNode=function(e){if(!Hy(e))throw Error(Se(40));return e._reactRootContainer?(il(function(){Gy(null,null,e,!1,function(){e._reactRootContainer=null,e[$o]=null})}),!0):!1};Rr.unstable_batchedUpdates=zS;Rr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hy(n))throw Error(Se(200));if(e==null||e._reactInternals===void 0)throw Error(Se(38));return Gy(e,t,n,!1,r)};Rr.version="18.3.1-next-f1338f8080-20240426";function e6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e6)}catch(e){console.error(e)}}e6(),eR.exports=Rr;var qy=eR.exports;const Fs=at(qy);var t6,Dj=qy;t6=Dj.createRoot,Dj.hydrateRoot;var cH={};/**
|
||
* @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 Yh=M;function uH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fH=typeof Object.is=="function"?Object.is:uH,dH=Yh.useSyncExternalStore,hH=Yh.useRef,pH=Yh.useEffect,mH=Yh.useMemo,vH=Yh.useDebugValue;cH.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=hH(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=mH(function(){function l(v){if(!c){if(c=!0,f=v,v=r(v),i!==void 0&&a.hasValue){var y=a.value;if(i(y,v))return d=y}return d=v}if(y=d,fH(f,v))return y;var g=r(v);return i!==void 0&&i(y,g)?y:(f=v,d=g)}var c=!1,f,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=dH(e,o[0],o[1]);return pH(function(){a.hasValue=!0,a.value=s},[s]),vH(s),s};var ft="default"in x_?V:x_,Fj=Symbol.for("react-redux-context"),Bj=typeof globalThis<"u"?globalThis:{};function gH(){if(!ft.createContext)return{};const e=Bj[Fj]??(Bj[Fj]=new Map);let t=e.get(ft.createContext);return t||(t=ft.createContext(null),e.set(ft.createContext,t)),t}var n6=gH(),yH=()=>{throw new Error("uSES not initialized!")},bH=Symbol.for("react.element"),_H=Symbol.for("react.portal"),xH=Symbol.for("react.fragment"),wH=Symbol.for("react.strict_mode"),OH=Symbol.for("react.profiler"),SH=Symbol.for("react.provider"),PH=Symbol.for("react.context"),EH=Symbol.for("react.server_context"),r6=Symbol.for("react.forward_ref"),CH=Symbol.for("react.suspense"),TH=Symbol.for("react.suspense_list"),ZS=Symbol.for("react.memo"),jH=Symbol.for("react.lazy"),AH=r6,kH=ZS;function NH(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case bH:{const n=e.type;switch(n){case xH:case OH:case wH:case CH:case TH:return n;default:{const r=n&&n.$$typeof;switch(r){case EH:case PH:case r6:case jH:case ZS:case SH:return r;default:return t}}}}case _H:return t}}}function MH(e){return NH(e)===ZS}function LH(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,f,d,p;function v(b,w){return l=b,c=w,f=e(l,c),d=t(r,c),p=n(f,d,c),s=!0,p}function y(){return f=e(l,c),t.dependsOnOwnProps&&(d=t(r,c)),p=n(f,d,c),p}function g(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(d=t(r,c)),p=n(f,d,c),p}function x(){const b=e(l,c),w=!a(b,f);return f=b,w&&(p=n(f,d,c)),p}function _(b,w){const S=!o(w,c),P=!i(b,l,w,c);return l=b,c=w,S&&P?y():S?g():P?x():p}return function(w,S){return s?_(w,S):v(w,S)}}function RH(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return LH(o,a,s,e,i)}function $H(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 px(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Uj(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function i6(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=Uj(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Uj(c),c=o(s,l)),c},o}}function XS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function IH(e){return e&&typeof e=="object"?px(t=>$H(e,t)):e?typeof e=="function"?i6(e):XS(e,"mapDispatchToProps"):px(t=>({dispatch:t}))}function DH(e){return e?typeof e=="function"?i6(e):XS(e,"mapStateToProps"):px(()=>({}))}function FH(e,t,n){return{...n,...e,...t}}function BH(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,f){const d=e(l,c,f);return o?i(d,a)||(a=d):(o=!0,a=d),a}}}function UH(e){return e?typeof e=="function"?BH(e):XS(e,"mergeProps"):()=>FH}function zH(e){e()}function VH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){zH(()=>{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 zj={notify(){},get:()=>[]};function o6(e,t){let n,r=zj,i=0,o=!1;function a(g){f();const x=r.subscribe(g);let _=!1;return()=>{_||(_=!0,x(),d())}}function s(){r.notify()}function l(){y.onStateChange&&y.onStateChange()}function c(){return o}function f(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=VH())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=zj)}function p(){o||(o=!0,f())}function v(){o&&(o=!1,d())}const y={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>r};return y}var WH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HH=typeof navigator<"u"&&navigator.product==="ReactNative",kv=WH||HH?ft.useLayoutEffect:ft.useEffect;function Vj(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function g1(e,t){if(Vj(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])||!Vj(e[n[i]],t[n[i]]))return!1;return!0}var GH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YH={[AH]:KH,[kH]:a6};function Wj(e){return MH(e)?a6:YH[e.$$typeof]||GH}var ZH=Object.defineProperty,XH=Object.getOwnPropertyNames,Hj=Object.getOwnPropertySymbols,QH=Object.getOwnPropertyDescriptor,JH=Object.getPrototypeOf,Gj=Object.prototype;function mx(e,t){if(typeof t!="string"){if(Gj){const o=JH(t);o&&o!==Gj&&mx(e,o)}let n=XH(t);Hj&&(n=n.concat(Hj(t)));const r=Wj(e),i=Wj(t);for(let o=0;o<n.length;++o){const a=n[o];if(!qH[a]&&!(i&&i[a])&&!(r&&r[a])){const s=QH(t,a);try{ZH(e,a,s)}catch{}}}}return e}var s6=yH,eG=e=>{s6=e},tG=[null,null];function nG(e,t,n){kv(()=>e(...t),n)}function rG(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function iG(e,t,n,r,i,o,a,s,l,c,f){if(!e)return()=>{};let d=!1,p=null;const v=()=>{if(d||!s.current)return;const g=t.getState();let x,_;try{x=r(g,i.current)}catch(b){_=b,p=b}_||(p=null),x===o.current?a.current||c():(o.current=x,l.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 oG(e,t){return e===t}function aG(e,t,n,{pure:r,areStatesEqual:i=oG,areOwnPropsEqual:o=g1,areStatePropsEqual:a=g1,areMergedPropsEqual:s=g1,forwardRef:l=!1,context:c=n6}={}){const f=c,d=DH(e),p=IH(t),v=UH(n),y=!!e;return x=>{const _=x.displayName||x.name||"Component",b=`Connect(${_})`,w={shouldHandleStateChanges:y,displayName:b,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function S(T){const[j,F,k]=ft.useMemo(()=>{const{reactReduxForwardedRef:Y,...oe}=T;return[T.context,Y,oe]},[T]),I=ft.useMemo(()=>{let Y=f;return j!=null&&j.Consumer,Y},[j,f]),D=ft.useContext(I),K=!!T.store&&!!T.store.getState&&!!T.store.dispatch,W=!!D&&!!D.store,X=K?T.store:D.store,Q=W?D.getServerState:X.getState,te=ft.useMemo(()=>RH(X.dispatch,w),[X]),[Z,z]=ft.useMemo(()=>{if(!y)return tG;const Y=o6(X,K?void 0:D.subscription),oe=Y.notifyNestedSubs.bind(Y);return[Y,oe]},[X,K,D]),B=ft.useMemo(()=>K?D:{...D,subscription:Z},[K,D,Z]),H=ft.useRef(void 0),ee=ft.useRef(k),q=ft.useRef(void 0),ne=ft.useRef(!1),re=ft.useRef(!1),ae=ft.useRef(void 0);kv(()=>(re.current=!0,()=>{re.current=!1}),[]);const ue=ft.useMemo(()=>()=>q.current&&k===ee.current?q.current:te(X.getState(),k),[X,k]),A=ft.useMemo(()=>oe=>Z?iG(y,X,Z,te,ee,H,ne,re,q,z,oe):()=>{},[Z]);nG(rG,[ee,H,ne,k,q,z]);let N;try{N=s6(A,ue,Q?()=>te(Q(),k):ue)}catch(Y){throw ae.current&&(Y.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ae.current.stack}
|
||
|
||
`),Y}kv(()=>{ae.current=void 0,q.current=void 0,H.current=N});const U=ft.useMemo(()=>ft.createElement(x,{...N,ref:F}),[F,x,N]);return ft.useMemo(()=>y?ft.createElement(I.Provider,{value:B},U):U,[I,U,B])}const E=ft.memo(S);if(E.WrappedComponent=x,E.displayName=S.displayName=b,l){const j=ft.forwardRef(function(k,I){return ft.createElement(E,{...k,reactReduxForwardedRef:I})});return j.displayName=b,j.WrappedComponent=x,mx(j,x)}return mx(E,x)}}var l6=aG;function sG({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ft.useMemo(()=>{const c=o6(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ft.useMemo(()=>e.getState(),[e]);kv(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||n6;return ft.createElement(l.Provider,{value:a},n)}var c6=sG;eG(M.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 Hd(){return Hd=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},Hd.apply(this,arguments)}var Oa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Oa||(Oa={}));const qj="popstate";function lG(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return vx("",{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:Nv(i)}return uG(t,n,null,e)}function zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function u6(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cG(){return Math.random().toString(36).substr(2,8)}function Kj(e,t){return{usr:e.state,key:e.key,idx:t}}function vx(e,t,n,r){return n===void 0&&(n=null),Hd({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nu(t):t,{state:n,key:t&&t.key||r||cG()})}function Nv(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 Nu(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 uG(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Oa.Pop,l=null,c=f();c==null&&(c=0,a.replaceState(Hd({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Oa.Pop;let x=f(),_=x==null?null:x-c;c=x,l&&l({action:s,location:g.location,delta:_})}function p(x,_){s=Oa.Push;let b=vx(g.location,x,_);c=f()+1;let w=Kj(b,c),S=g.createHref(b);try{a.pushState(w,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(S)}o&&l&&l({action:s,location:g.location,delta:1})}function v(x,_){s=Oa.Replace;let b=vx(g.location,x,_);c=f();let w=Kj(b,c),S=g.createHref(b);a.replaceState(w,"",S),o&&l&&l({action:s,location:g.location,delta:0})}function y(x){let _=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof x=="string"?x:Nv(x);return b=b.replace(/ $/,"%20"),zt(_,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,_)}let g={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(qj,d),l=x,()=>{i.removeEventListener(qj,d),l=null}},createHref(x){return t(i,x)},createURL:y,encodeLocation(x){let _=y(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:v,go(x){return a.go(x)}};return g}var Yj;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yj||(Yj={}));function fG(e,t,n){return n===void 0&&(n="/"),dG(e,t,n,!1)}function dG(e,t,n,r){let i=typeof t=="string"?Nu(t):t,o=zc(i.pathname||"/",n);if(o==null)return null;let a=f6(e);hG(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=SG(o);s=wG(a[l],c,r)}return s}function f6(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(zt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ia([r,l.relativePath]),f=n.concat(l);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 "'+c+'".')),f6(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:_G(c,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of d6(o.path))i(o,a,l)}),t}function d6(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=d6(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hG(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xG(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const pG=/^:[\w-]+$/,mG=3,vG=2,gG=1,yG=10,bG=-2,Zj=e=>e==="*";function _G(e,t){let n=e.split("/"),r=n.length;return n.some(Zj)&&(r+=bG),t&&(r+=vG),n.filter(i=>!Zj(i)).reduce((i,o)=>i+(pG.test(o)?mG:o===""?gG:yG),r)}function xG(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 wG(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",d=Mv({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f),p=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Mv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:Ia([o,d.pathname]),pathnameBase:TG(Ia([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=Ia([o,d.pathnameBase]))}return a}function Mv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=OG(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((c,f,d)=>{let{paramName:p,isOptional:v}=f;if(p==="*"){let g=s[d]||"";a=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const y=s[d];return v&&!y?c[p]=void 0:c[p]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function OG(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),u6(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function SG(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return u6(!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 zc(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 PG(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nu(e):e;return{pathname:n?n.startsWith("/")?n:EG(n,t):t,search:jG(r),hash:AG(i)}}function EG(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 y1(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 CG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QS(e,t){let n=CG(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function JS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nu(e):(i=Hd({},e),zt(!i.pathname||!i.pathname.includes("?"),y1("?","pathname","search",i)),zt(!i.pathname||!i.pathname.includes("#"),y1("#","pathname","hash",i)),zt(!i.search||!i.search.includes("#"),y1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=PG(i,s),c=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ia=e=>e.join("/").replace(/\/\/+/g,"/"),TG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const h6=["post","put","patch","delete"];new Set(h6);const NG=["get",...h6];new Set(NG);/**
|
||
* 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 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)}const Ky=M.createContext(null),p6=M.createContext(null),Zo=M.createContext(null),Yy=M.createContext(null),Xo=M.createContext({outlet:null,matches:[],isDataRoute:!1}),m6=M.createContext(null);function MG(e,t){let{relative:n}=t===void 0?{}:t;wl()||zt(!1);let{basename:r,navigator:i}=M.useContext(Zo),{hash:o,pathname:a,search:s}=Zy(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Ia([r,a])),i.createHref({pathname:l,search:s,hash:o})}function wl(){return M.useContext(Yy)!=null}function pr(){return wl()||zt(!1),M.useContext(Yy).location}function v6(e){M.useContext(Zo).static||M.useLayoutEffect(e)}function po(){let{isDataRoute:e}=M.useContext(Xo);return e?GG():LG()}function LG(){wl()||zt(!1);let e=M.useContext(Ky),{basename:t,future:n,navigator:r}=M.useContext(Zo),{matches:i}=M.useContext(Xo),{pathname:o}=pr(),a=JSON.stringify(QS(i,n.v7_relativeSplatPath)),s=M.useRef(!1);return v6(()=>{s.current=!0}),M.useCallback(function(c,f){if(f===void 0&&(f={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=JS(c,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ia([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,o,e])}function Mu(){let{matches:e}=M.useContext(Xo),t=e[e.length-1];return t?t.params:{}}function Zy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=M.useContext(Zo),{matches:i}=M.useContext(Xo),{pathname:o}=pr(),a=JSON.stringify(QS(i,r.v7_relativeSplatPath));return M.useMemo(()=>JS(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function RG(e,t){return $G(e,t)}function $G(e,t,n,r){wl()||zt(!1);let{navigator:i}=M.useContext(Zo),{matches:o}=M.useContext(Xo),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=pr(),f;if(t){var d;let x=typeof t=="string"?Nu(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||zt(!1),f=x}else f=c;let p=f.pathname||"/",v=p;if(l!=="/"){let x=l.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=fG(e,{pathname:v}),g=UG(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Ia([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ia([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&g?M.createElement(Yy.Provider,{value:{location:Gd({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Oa.Pop}},g):g}function IG(){let e=HG(),t=kG(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 M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const DG=M.createElement(IG,null);class FG extends M.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?M.createElement(Xo.Provider,{value:this.props.routeContext},M.createElement(m6.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BG(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(Ky);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(Xo.Provider,{value:t},r)}function UG(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 l=!1,c=-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)&&(c=f),d.route.id){let{loaderData:p,errors:v}=n,y=d.route.loader&&p[d.route.id]===void 0&&(!v||v[d.route.id]===void 0);if(d.route.lazy||y){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let v,y=!1,g=null,x=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||DG,l&&(c<0&&p===0?(y=!0,x=null):c===p&&(y=!0,x=d.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,p+1)),b=()=>{let w;return v?w=g:y?w=x:d.route.Component?w=M.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,M.createElement(BG,{match:d,routeContext:{outlet:f,matches:_,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?M.createElement(FG,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):b()},null)}var g6=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(g6||{}),Lv=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}(Lv||{});function zG(e){let t=M.useContext(Ky);return t||zt(!1),t}function VG(e){let t=M.useContext(p6);return t||zt(!1),t}function WG(e){let t=M.useContext(Xo);return t||zt(!1),t}function y6(e){let t=WG(),n=t.matches[t.matches.length-1];return n.route.id||zt(!1),n.route.id}function HG(){var e;let t=M.useContext(m6),n=VG(Lv.UseRouteError),r=y6(Lv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function GG(){let{router:e}=zG(g6.UseNavigateStable),t=y6(Lv.UseNavigateStable),n=M.useRef(!1);return v6(()=>{n.current=!0}),M.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Gd({fromRouteId:t},o)))},[e,t])}const Xj={};function qG(e,t){Xj[t]||(Xj[t]=!0,console.warn(t))}const Qj=(e,t,n)=>qG(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function KG(e,t){e!=null&&e.v7_startTransition||Qj("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&&Qj("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function eP(e){let{to:t,replace:n,state:r,relative:i}=e;wl()||zt(!1);let{future:o,static:a}=M.useContext(Zo),{matches:s}=M.useContext(Xo),{pathname:l}=pr(),c=po(),f=JS(t,QS(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(f);return M.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function ot(e){zt(!1)}function YG(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Oa.Pop,navigator:o,static:a=!1,future:s}=e;wl()&&zt(!1);let l=t.replace(/^\/*/,"/"),c=M.useMemo(()=>({basename:l,navigator:o,static:a,future:Gd({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Nu(r));let{pathname:f="/",search:d="",hash:p="",state:v=null,key:y="default"}=r,g=M.useMemo(()=>{let x=zc(f,l);return x==null?null:{location:{pathname:x,search:d,hash:p,state:v,key:y},navigationType:i}},[l,f,d,p,v,y,i]);return g==null?null:M.createElement(Zo.Provider,{value:c},M.createElement(Yy.Provider,{children:n,value:g}))}function Xy(e){let{children:t,location:n}=e;return RG(gx(t),n)}new Promise(()=>{});function gx(e,t){t===void 0&&(t=[]);let n=[];return M.Children.forEach(e,(r,i)=>{if(!M.isValidElement(r))return;let o=[...t,i];if(r.type===M.Fragment){n.push.apply(n,gx(r.props.children,o));return}r.type!==ot&&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=gx(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 Rv(){return Rv=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},Rv.apply(this,arguments)}function b6(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 ZG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XG(e,t){return e.button===0&&(!t||t==="_self")&&!ZG(e)}const QG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],JG=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],eq="6";try{window.__reactRouterVersion=eq}catch{}const tq=M.createContext({isTransitioning:!1}),nq="startTransition",Jj=x_[nq];function _6(e){let{basename:t,children:n,future:r,window:i}=e,o=M.useRef();o.current==null&&(o.current=lG({window:i,v5Compat:!0}));let a=o.current,[s,l]=M.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},f=M.useCallback(d=>{c&&Jj?Jj(()=>l(d)):l(d)},[l,c]);return M.useLayoutEffect(()=>a.listen(f),[a,f]),M.useEffect(()=>KG(r),[r]),M.createElement(YG,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const rq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,At=M.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:f,viewTransition:d}=t,p=b6(t,QG),{basename:v}=M.useContext(Zo),y,g=!1;if(typeof c=="string"&&iq.test(c)&&(y=c,rq))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),P=zc(S.pathname,v);S.origin===w.origin&&P!=null?c=P+S.search+S.hash:g=!0}catch{}let x=MG(c,{relative:i}),_=aq(c,{replace:a,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:d});function b(w){r&&r(w),w.defaultPrevented||_(w)}return M.createElement("a",Rv({},p,{href:y||x,onClick:g||o?r:b,ref:n,target:l}))}),x6=M.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,viewTransition:c,children:f}=t,d=b6(t,JG),p=Zy(l,{relative:d.relative}),v=pr(),y=M.useContext(p6),{navigator:g,basename:x}=M.useContext(Zo),_=y!=null&&sq(p)&&c===!0,b=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,w=v.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&x&&(S=zc(S,x)||S);const P=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let E=w===b||!a&&w.startsWith(b)&&w.charAt(P)==="/",T=S!=null&&(S===b||!a&&S.startsWith(b)&&S.charAt(b.length)==="/"),j={isActive:E,isPending:T,isTransitioning:_},F=E?r:void 0,k;typeof o=="function"?k=o(j):k=[o,E?"active":null,T?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let I=typeof s=="function"?s(j):s;return M.createElement(At,Rv({},d,{"aria-current":F,className:k,ref:n,style:I,to:l,viewTransition:c}),typeof f=="function"?f(j):f)});var yx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yx||(yx={}));var eA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(eA||(eA={}));function oq(e){let t=M.useContext(Ky);return t||zt(!1),t}function aq(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=po(),c=pr(),f=Zy(e,{relative:a});return M.useCallback(d=>{if(XG(d,n)){d.preventDefault();let p=r!==void 0?r:Nv(c)===Nv(f);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,f,r,i,n,e,o,a,s])}function sq(e,t){t===void 0&&(t={});let n=M.useContext(tq);n==null&&zt(!1);let{basename:r}=oq(yx.useViewTransitionState),i=Zy(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=zc(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zc(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Mv(i.pathname,a)!=null||Mv(i.pathname,o)!=null}const lq="shlink-web-client",cq="A React-based progressive web application for shlink",uq="/shlink-web-client/dependabot/npm_and_yarn/react-router-dom-6.28.0",fq="https://github.com/shlinkio/shlink-web-client",dq="MIT",hq="module",pq={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"},mq={"@fortawesome/fontawesome-free":"^6.6.0","@fortawesome/fontawesome-svg-core":"^6.6.0","@fortawesome/free-brands-svg-icons":"^6.6.0","@fortawesome/free-regular-svg-icons":"^6.6.0","@fortawesome/free-solid-svg-icons":"^6.6.0","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.3.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.6.0","@shlinkio/shlink-js-sdk":"^1.2.0","@shlinkio/shlink-web-component":"^0.10.1",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"},vq={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.10.1","@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.4","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.3.0",eslint:"^9.14.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.80.6",stylelint:"^15.11.0",typescript:"^5.6.3","typescript-eslint":"^8.12.2",vite:"^5.4.10","vite-plugin-pwa":"^0.20.5",vitest:"^2.0.2"},gq=[">0.2%","not dead","not ie <= 11","not op_mini all"],$v={name:lq,description:cq,private:!1,homepage:uq,repository:fq,license:dq,type:hq,scripts:pq,dependencies:mq,devDependencies:vq,browserslist:gq};var Ni,so=".",w6="function",O6="string",S6="__global__",tP="Provider",yq=0,nP=Array.prototype.slice,bq=function(t,n){var r=t[n];if(r===void 0&&Ni.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Qy=function(t){var n;return this.nested[t]||(n=Ni.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},P6=function(t){return t.split(so).reduce(bq,this)},_q=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(f){if(f)throw f;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},xq=function(t,n){var r,i;return typeof t===w6&&(n=t,t=S6),r=t.split(so),i=r.shift(),r.length?Qy.call(this,i).middleware(r.join(so),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},wq=function(t,n){return n(t)},tA=function(t,n){return(t[n]||[]).concat(t.__global__||[])},Oq=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+tP,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=tA(a,t).reduce(wq,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:_q(tA(s,t),t,f,o)}},Object.defineProperties(o,i),this},E6=function(t,n){var r,i;return r=t.split(so),this.providerMap[t]&&r.length===1&&!this.container[t+tP]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Qy.call(this,i).provider(r.join(so),n),this):Oq.call(this,i,n))},rP=function(t,n){return E6.call(this,t,function(){this.$get=n})},C6=function(t,n,r){var i=arguments.length>3?nP.call(arguments,3):[],o=this;return rP.call(this,t,function(){var s=n,l=i.map(P6,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},Sq=function(t,n){return C6.apply(this,[t,n,!0].concat(nP.call(arguments,2)))},Pq=function(t,n){return C6.apply(this,[t,n,!1].concat(nP.call(arguments,2)))},T6=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},j6=function(t,n){var r=t[n];return r||(r={},T6.call(t,n,r)),r},Eq=function(t,n){var r;return r=t.split(so),t=r.pop(),T6.call(r.reduce(j6,this.container),t,n),this},Cq=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},Tq=function(t,n){var r=t.split(so);return t=r.pop(),Cq.call(r.reduce(j6,this.container),t,n),this},A6=function(t,n){var r,i;return typeof t===w6&&(n=t,t=S6),r=t.split(so),i=r.shift(),r.length?Qy.call(this,i).decorator(r.join(so),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},jq=function(t){return this.deferred.push(t),this},Aq=function(t){return(t||[]).map(P6,this.container)},kq=function(t,n){return rP.call(this,t,function(i){return{instance:n.bind(n,i)}})},Nq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},iP=function(t){return Object.keys(t||this.container||{}).filter(Nq)},Iv={},Mq=function(t){var n;return typeof t===O6?(n=Iv[t],n||(Iv[t]=n=new Ni,n.constant("BOTTLE_NAME",t)),n):new Ni},Lq=function(t){typeof t===O6?delete Iv[t]:Iv={}},k6=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},nA=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+tP]},Rq=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(nA,Qy.call(this,a[0])),nA.call(this,o),this.provider(o,n[o])}},this)},$q=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ni=function e(t){if(!(this instanceof e))return e.pop(t);this.id=yq++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:A6.bind(this),$register:k6.bind(this),$list:iP.bind(this)}};Ni.prototype={constant:Tq,decorator:A6,defer:jq,digest:Aq,factory:rP,instanceFactory:kq,list:iP,middleware:xq,provider:E6,resetProviders:Rq,register:k6,resolve:$q,service:Sq,serviceFactory:Pq,value:Eq};Ni.pop=Mq;Ni.clear=Lq;Ni.list=iP;Ni.config={strict:!1};const N6=Ni;var Iq=Object.defineProperty,Dq=(e,t,n)=>t in e?Iq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fq=(e,t,n)=>Dq(e,t+"",n);const Bq=(e,t)=>`${e}/rest/v${t}`,Uq=e=>e.dir?`${e.field}-${e.dir}`:void 0,zq=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:Uq(e)}),Vq=(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}`},Wq=(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 Hq{constructor(t,n){Fq(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:zq(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=Wq(r),s=a?`?${a}`:"",l=o?Vq(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${Bq(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const M6=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),cd=e=>!!(e!=null&&e.id),oP=e=>!!(e!=null&&e.version),Gq=e=>!!(e!=null&&e.serverNotFound),qq=e=>cd(e)?e.id:"",Kq=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),rA={},Yq=e=>typeof e=="function",Zq=e=>{const{selectedServer:t}=e();if(!M6(t))throw new Error("There's no selected server or it is not found");return t},Xq=e=>t=>{const{url:n,apiKey:r}=Yq(t)?Zq(t):t,i=`${r}_${n}`,o=rA[i]??new Hq(e,{apiKey:r,baseUrl:n});return rA[i]=o,o},Qq=e=>{e.serviceFactory("buildShlinkApiClient",Xq,"HttpClient")},Jq={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"]},eK={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"]},tK={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"]},nK=tK,rK={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"]},aP=rK,iK={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"]},oK={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"]},L6=oK,R6={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"]},aK={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"]},$6={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"]},sK={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"]},lK=sK,cK={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"]},sP=cK,uK={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"]},fK={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"]},dK={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"]},iA={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"]},hK={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"]},pK=hK,mK={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"]},bx=mK,vK={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"]},gK={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"]},yK={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"]},bK=yK,lP={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"]},Jy={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"]},I6={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"]},oA={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"]},_K={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"]},xK={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"]},wK={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"]},OK=wK,SK={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"]},PK={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"]},cP=PK,D6={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"]},EK=D6,CK={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"]},TK={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"]},jK={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"]},AK=jK,kK={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"]},NK=kK,MK={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.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"]},LK=MK,RK={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"]},F6=RK,$K={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},IK={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"]},DK={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"]},FK={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"]},BK=FK,UK={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"]},zK={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"]},Zh={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"]},B6={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"]},_x=B6,VK={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"]},WK={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"]},HK=WK,aA={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"]},U6={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"]},GK=U6,qK={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"]},KK={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"]},YK={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"]},ZK={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"]},XK={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"]},qd={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"]},QK={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"]},JK={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"]},eY=JK,sA=()=>{};let uP={},z6={},V6=null,W6={mark:sA,measure:sA};try{typeof window<"u"&&(uP=window),typeof document<"u"&&(z6=document),typeof MutationObserver<"u"&&(V6=MutationObserver),typeof performance<"u"&&(W6=performance)}catch{}const{userAgent:lA=""}=uP.navigator||{},Ha=uP,jt=z6,cA=V6,cm=W6;Ha.document;const Qo=!!jt.documentElement&&!!jt.head&&typeof jt.addEventListener=="function"&&typeof jt.createElement=="function",H6=~lA.indexOf("MSIE")||~lA.indexOf("Trident/");var Mt="classic",G6="duotone",Tr="sharp",jr="sharp-duotone",tY=[Mt,G6,Tr,jr],nY={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},uA={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},rY=["kit"],iY=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,oY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,aY={"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"}},sY={"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"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},lY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},cY={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},uY={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},fY={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},q6={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},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"}},dY=["solid","regular","light","thin","duotone","brands"],K6=[1,2,3,4,5,6,7,8,9,10],hY=K6.concat([11,12,13,14,15,16,17,18,19,20]),qf={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pY=[...Object.keys(cY),...dY,"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",qf.GROUP,qf.SWAP_OPACITY,qf.PRIMARY,qf.SECONDARY].concat(K6.map(e=>"".concat(e,"x"))).concat(hY.map(e=>"w-".concat(e))),mY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},vY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},gY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},fA={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const Fo="___FONT_AWESOME___",xx=16,Y6="fa",Z6="svg-inline--fa",ol="data-fa-i2svg",wx="data-fa-pseudo-element",yY="data-fa-pseudo-element-pending",fP="data-prefix",dP="data-icon",dA="fontawesome-i2svg",bY="async",_Y=["HTML","HEAD","STYLE","SCRIPT"],X6=(()=>{try{return!0}catch{return!1}})(),Q6=[Mt,Tr,jr];function Xh(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Mt]}})}const J6={...q6};J6[Mt]={...q6[Mt],...uA.kit,...uA["kit-duotone"]};const qs=Xh(J6),Ox={...fY};Ox[Mt]={...Ox[Mt],...fA.kit,...fA["kit-duotone"]};const Kd=Xh(Ox),Sx={...uY};Sx[Mt]={...Sx[Mt],...gY.kit};const Ks=Xh(Sx),Px={...lY};Px[Mt]={...Px[Mt],...vY.kit};const xY=Xh(Px),wY=iY,eI="fa-layers-text",OY=oY,SY={...nY};Xh(SY);const PY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],b1=qf,Vc=new Set;Object.keys(Kd[Mt]).map(Vc.add.bind(Vc));Object.keys(Kd[Tr]).map(Vc.add.bind(Vc));Object.keys(Kd[jr]).map(Vc.add.bind(Vc));const EY=[...rY,...pY],ud=Ha.FontAwesomeConfig||{};function CY(e){var t=jt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function TY(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}jt&&typeof jt.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=TY(CY(n));i!=null&&(ud[r]=i)});const tI={styleDefault:"solid",familyDefault:"classic",cssPrefix:Y6,replacementClass:Z6,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ud.familyPrefix&&(ud.cssPrefix=ud.familyPrefix);const Wc={...tI,...ud};Wc.autoReplaceSvg||(Wc.observeMutations=!1);const Ie={};Object.keys(tI).forEach(e=>{Object.defineProperty(Ie,e,{enumerable:!0,set:function(t){Wc[e]=t,fd.forEach(n=>n(Ie))},get:function(){return Wc[e]}})});Object.defineProperty(Ie,"familyPrefix",{enumerable:!0,set:function(e){Wc.cssPrefix=e,fd.forEach(t=>t(Ie))},get:function(){return Wc.cssPrefix}});Ha.FontAwesomeConfig=Ie;const fd=[];function jY(e){return fd.push(e),()=>{fd.splice(fd.indexOf(e),1)}}const sa=xx,Zi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function AY(e){if(!e||!Qo)return;const t=jt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=jt.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 jt.head.insertBefore(t,r),e}const kY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Yd(){let e=12,t="";for(;e-- >0;)t+=kY[Math.random()*62|0];return t}function Lu(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function hP(e){return e.classList?Lu(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function nI(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function NY(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(nI(e[n]),'" '),"").trim()}function e0(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function pP(e){return e.size!==Zi.size||e.x!==Zi.x||e.y!==Zi.y||e.rotate!==Zi.rotate||e.flipX||e.flipY}function MY(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)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function LY(e){let{transform:t,width:n=xx,height:r=xx,startCentered:i=!1}=e,o="";return i&&H6?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 RY=`: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-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";
|
||
}
|
||
|
||
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;
|
||
}
|
||
|
||
.fad.fa-inverse,
|
||
.fa-duotone.fa-inverse {
|
||
color: var(--fa-inverse, #fff);
|
||
}`;function rI(){const e=Y6,t=Z6,n=Ie.cssPrefix,r=Ie.replacementClass;let i=RY;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 hA=!1;function _1(){Ie.autoAddCss&&!hA&&(AY(rI()),hA=!0)}var $Y={mixout(){return{dom:{css:rI,insertCss:_1}}},hooks(){return{beforeDOMElementCreation(){_1()},beforeI2svg(){_1()}}}};const Bo=Ha||{};Bo[Fo]||(Bo[Fo]={});Bo[Fo].styles||(Bo[Fo].styles={});Bo[Fo].hooks||(Bo[Fo].hooks={});Bo[Fo].shims||(Bo[Fo].shims=[]);var Xi=Bo[Fo];const iI=[],oI=function(){jt.removeEventListener("DOMContentLoaded",oI),Dv=1,iI.map(e=>e())};let Dv=!1;Qo&&(Dv=(jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(jt.readyState),Dv||jt.addEventListener("DOMContentLoaded",oI));function IY(e){Qo&&(Dv?setTimeout(e,0):iI.push(e))}function Qh(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?nI(e):"<".concat(t," ").concat(NY(n),">").concat(r.map(Qh).join(""),"</").concat(t,">")}function pA(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var x1=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<a;l++)c=o[l],f=s(f,t[c],c,t);return f};function DY(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 Ex(e){const t=DY(e);return t.length===1?t[0].toString(16):null}function FY(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 mA(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 Cx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=mA(t);typeof Xi.hooks.addPack=="function"&&!r?Xi.hooks.addPack(e,mA(t)):Xi.styles[e]={...Xi.styles[e]||{},...i},e==="fas"&&Cx("fa",t)}const{styles:Ms,shims:BY}=Xi,UY={[Mt]:Object.values(Ks[Mt]),[Tr]:Object.values(Ks[Tr]),[jr]:Object.values(Ks[jr])};let mP=null,aI={},sI={},lI={},cI={},uI={};const zY={[Mt]:Object.keys(qs[Mt]),[Tr]:Object.keys(qs[Tr]),[jr]:Object.keys(qs[jr])};function VY(e){return~EY.indexOf(e)}function WY(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!VY(i)?i:null}const fI=()=>{const e=r=>x1(Ms,(i,o,a)=>(i[a]=x1(o,r,{}),i),{});aI=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)),sI=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),uI=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Ms||Ie.autoFetchSvg,n=x1(BY,(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:{}});lI=n.names,cI=n.unicodes,mP=t0(Ie.styleDefault,{family:Ie.familyDefault})};jY(e=>{mP=t0(e.styleDefault,{family:Ie.familyDefault})});fI();function vP(e,t){return(aI[e]||{})[t]}function HY(e,t){return(sI[e]||{})[t]}function Sa(e,t){return(uI[e]||{})[t]}function dI(e){return lI[e]||{prefix:null,iconName:null}}function GY(e){const t=cI[e],n=vP("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ga(){return mP}const gP=()=>({prefix:null,iconName:null,rest:[]});function t0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Mt}=t,r=qs[n][e],i=Kd[n][e]||Kd[n][r],o=e in Xi.styles?e:null;return i||o||null}const qY={[Mt]:Object.keys(Ks[Mt]),[Tr]:Object.keys(Ks[Tr]),[jr]:Object.keys(Ks[jr])};function n0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[Mt]:"".concat(Ie.cssPrefix,"-").concat(Mt),[Tr]:"".concat(Ie.cssPrefix,"-").concat(Tr),[jr]:"".concat(Ie.cssPrefix,"-").concat(jr)};let i=null,o=Mt;const a=tY.filter(l=>l!==G6);a.forEach(l=>{(e.includes(r[l])||e.some(c=>qY[l].includes(c)))&&(o=l)});const s=e.reduce((l,c)=>{const f=WY(Ie.cssPrefix,c);if(Ms[c]?(c=UY[o].includes(c)?xY[o][c]:c,i=c,l.prefix=c):zY[o].indexOf(c)>-1?(i=c,l.prefix=t0(c,{family:o})):f?l.iconName=f:c!==Ie.replacementClass&&!a.some(d=>c===r[d])&&l.rest.push(c),!n&&l.prefix&&l.iconName){const d=i==="fa"?dI(l.iconName):{},p=Sa(l.prefix,l.iconName);d.prefix&&(i=null),l.iconName=d.iconName||p||l.iconName,l.prefix=d.prefix||l.prefix,l.prefix==="far"&&!Ms.far&&Ms.fas&&!Ie.autoFetchSvg&&(l.prefix="fas")}return l},gP());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===Tr&&(Ms.fass||Ie.autoFetchSvg)&&(s.prefix="fass",s.iconName=Sa(s.prefix,s.iconName)||s.iconName),!s.prefix&&o===jr&&(Ms.fasds||Ie.autoFetchSvg)&&(s.prefix="fasds",s.iconName=Sa(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||i==="fa")&&(s.prefix=Ga()||"fas"),s}class KY{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]={...this.definitions[o]||{},...i[o]},Cx(o,i[o]);const a=Ks[Mt][o];a&&Cx(a,i[o]),fI()})}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],l=s[2];t[o]||(t[o]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[o][c]=s)}),t[o][a]=s}),t}}let vA=[],mc={};const jc={},YY=Object.keys(jc);function ZY(e,t){let{mixoutsTo:n}=t;return vA=e,mc={},Object.keys(jc).forEach(r=>{YY.indexOf(r)===-1&&delete jc[r]}),vA.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=>{mc[a]||(mc[a]=[]),mc[a].push(o[a])})}r.provides&&r.provides(jc)}),n}function Tx(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(mc[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function al(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(mc[e]||[]).forEach(o=>{o.apply(null,n)})}function qa(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return jc[e]?jc[e].apply(null,t):void 0}function jx(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ga();if(t)return t=Sa(n,t)||t,pA(hI.definitions,n,t)||pA(Xi.styles,n,t)}const hI=new KY,XY=()=>{Ie.autoReplaceSvg=!1,Ie.observeMutations=!1,al("noAuto")},QY={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Qo?(al("beforeI2svg",e),qa("pseudoElements2svg",e),qa("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;Ie.autoReplaceSvg===!1&&(Ie.autoReplaceSvg=!0),Ie.observeMutations=!0,IY(()=>{eZ({autoReplaceSvgRoot:t}),al("watch",e)})}},JY={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Sa(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=t0(e[0]);return{prefix:n,iconName:Sa(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(Ie.cssPrefix,"-"))>-1||e.match(wY))){const t=n0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ga(),iconName:Sa(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Ga();return{prefix:t,iconName:Sa(t,e)||e}}}},Ir={noAuto:XY,config:Ie,dom:QY,parse:JY,library:hI,findIconDefinition:jx,toHtml:Qh},eZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=jt}=e;(Object.keys(Xi.styles).length>0||Ie.autoFetchSvg)&&Qo&&Ie.autoReplaceSvg&&Ir.dom.i2svg({node:t})};function r0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Qh(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Qo)return;const n=jt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function tZ(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(pP(a)&&n.found&&!r.found){const{width:s,height:l}=n,c={x:s/l/2,y:.5};i.style=e0({...o,"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}function nZ(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(Ie.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...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:l,titleId:c,extra:f,watchable:d=!1}=e,{width:p,height:v}=n.found?n:t,y=r==="fak",g=[Ie.replacementClass,i?"".concat(Ie.cssPrefix,"-").concat(i):""].filter(P=>f.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(f.classes).join(" ");let x={children:[],attributes:{...f.attributes,"data-prefix":r,"data-icon":i,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)}};const _=y&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};d&&(x.attributes[ol]=""),s&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(c||Yd())},children:[s]}),delete x.attributes.title);const b={...x,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{..._,...f.styles}},{children:w,attributes:S}=n.found&&t.found?qa("generateAbstractMask",b)||{children:[],attributes:{}}:qa("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=w,b.attributes=S,a?nZ(b):tZ(b)}function gA(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[ol]="");const c={...a.styles};pP(i)&&(c.transform=LY({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const f=e0(c);f.length>0&&(l.style=f);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}function rZ(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=e0(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:w1}=Xi;function Ax(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(Ie.cssPrefix,"-").concat(b1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(b1.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(b1.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const iZ={found:!1,width:512,height:512};function oZ(e,t){!X6&&!Ie.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function kx(e,t){let n=t;return t==="fa"&&Ie.styleDefault!==null&&(t=Ga()),new Promise((r,i)=>{if(n==="fa"){const o=dI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&w1[t]&&w1[t][e]){const o=w1[t][e];return r(Ax(o))}oZ(e,t),r({...iZ,icon:Ie.showMissingIcons&&e?qa("missingIconAbstract")||{}:{}})})}const yA=()=>{},Nx=Ie.measurePerformance&&cm&&cm.mark&&cm.measure?cm:{mark:yA,measure:yA},Kf='FA "6.6.0"',aZ=e=>(Nx.mark("".concat(Kf," ").concat(e," begins")),()=>pI(e)),pI=e=>{Nx.mark("".concat(Kf," ").concat(e," ends")),Nx.measure("".concat(Kf," ").concat(e),"".concat(Kf," ").concat(e," begins"),"".concat(Kf," ").concat(e," ends"))};var bP={begin:aZ,end:pI};const Ym=()=>{};function bA(e){return typeof(e.getAttribute?e.getAttribute(ol):null)=="string"}function sZ(e){const t=e.getAttribute?e.getAttribute(fP):null,n=e.getAttribute?e.getAttribute(dP):null;return t&&n}function lZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ie.replacementClass)}function cZ(){return Ie.autoReplaceSvg===!0?Zm.replace:Zm[Ie.autoReplaceSvg]||Zm.replace}function uZ(e){return jt.createElementNS("http://www.w3.org/2000/svg",e)}function fZ(e){return jt.createElement(e)}function mI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?uZ:fZ}=t;if(typeof e=="string")return jt.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(mI(o,{ceFn:n}))}),r}function dZ(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Zm={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(mI(n),t)}),t.getAttribute(ol)===null&&Ie.keepOriginalSource){let n=jt.createComment(dZ(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~hP(t).indexOf(Ie.replacementClass))return Zm.replace(e);const r=new RegExp("".concat(Ie.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===Ie.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=>Qh(o)).join(`
|
||
`);t.setAttribute(ol,""),t.innerHTML=i}};function _A(e){e()}function vI(e,t){const n=typeof t=="function"?t:Ym;if(e.length===0)n();else{let r=_A;Ie.mutateApproach===bY&&(r=Ha.requestAnimationFrame||_A),r(()=>{const i=cZ(),o=bP.begin("mutate");e.map(i),o(),n()})}}let _P=!1;function gI(){_P=!0}function Mx(){_P=!1}let Fv=null;function xA(e){if(!cA||!Ie.observeMutations)return;const{treeCallback:t=Ym,nodeCallback:n=Ym,pseudoElementsCallback:r=Ym,observeMutationsRoot:i=jt}=e;Fv=new cA(o=>{if(_P)return;const a=Ga();Lu(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!bA(s.addedNodes[0])&&(Ie.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&Ie.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&bA(s.target)&&~PY.indexOf(s.attributeName))if(s.attributeName==="class"&&sZ(s.target)){const{prefix:l,iconName:c}=n0(hP(s.target));s.target.setAttribute(fP,l||a),c&&s.target.setAttribute(dP,c)}else lZ(s.target)&&n(s.target)})}),Qo&&Fv.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function hZ(){Fv&&Fv.disconnect()}function pZ(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 mZ(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=n0(hP(e));return i.prefix||(i.prefix=Ga()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=HY(i.prefix,e.innerText)||vP(i.prefix,Ex(e.innerText))),!i.iconName&&Ie.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function vZ(e){const t=Lu(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 Ie.autoA11y&&(n?t["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(r||Yd()):(t["aria-hidden"]="true",t.focusable="false")),t}function gZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Zi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function wA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=mZ(e),o=vZ(e),a=Tx("parseNodeAttributes",{},e);let s=t.styleParser?pZ(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Zi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:yZ}=Xi;function yI(e){const t=Ie.autoReplaceSvg==="nest"?wA(e,{styleParser:!1}):wA(e);return~t.extra.classes.indexOf(eI)?qa("generateLayersText",e,t):qa("generateSvgReplacementMutation",e,t)}let lo=new Set;Q6.map(e=>{lo.add("fa-".concat(e))});Object.keys(qs[Mt]).map(lo.add.bind(lo));Object.keys(qs[Tr]).map(lo.add.bind(lo));Object.keys(qs[jr]).map(lo.add.bind(lo));lo=[...lo];function OA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Qo)return Promise.resolve();const n=jt.documentElement.classList,r=f=>n.add("".concat(dA,"-").concat(f)),i=f=>n.remove("".concat(dA,"-").concat(f)),o=Ie.autoFetchSvg?lo:Q6.map(f=>"fa-".concat(f)).concat(Object.keys(yZ));o.includes("fa")||o.push("fa");const a=[".".concat(eI,":not([").concat(ol,"])")].concat(o.map(f=>".".concat(f,":not([").concat(ol,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Lu(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const l=bP.begin("onTree"),c=s.reduce((f,d)=>{try{const p=yI(d);p&&f.push(p)}catch(p){X6||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise((f,d)=>{Promise.all(c).then(p=>{vI(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(p=>{l(),d(p)})})}function bZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;yI(e).then(n=>{n&&vI([n],t)})}function _Z(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:jx(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:jx(i||{})),e(r,{...n,mask:i})}}const xZ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Zi,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:f={}}=t;if(!e)return;const{prefix:d,iconName:p,icon:v}=e;return r0({type:"icon",...e},()=>(al("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ie.autoA11y&&(a?c["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(s||Yd()):(c["aria-hidden"]="true",c.focusable="false")),yP({icons:{main:Ax(v),mask:i?Ax(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:p,transform:{...Zi,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:f,classes:l}})))};var wZ={mixout(){return{icon:_Z(xZ)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=OA,e.nodeCallback=bZ,e}}},provides(e){e.i2svg=function(t){const{node:n=jt,callback:r=()=>{}}=t;return OA(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:l,mask:c,maskId:f,extra:d}=n;return new Promise((p,v)=>{Promise.all([kx(r,a),c.iconName?kx(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(y=>{let[g,x]=y;p([t,yP({icons:{main:g,mask:x},prefix:a,iconName:r,transform:s,symbol:l,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=e0(a);s.length>0&&(r.style=s);let l;return pP(o)&&(l=qa("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},OZ={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return r0({type:"layer"},()=>{al("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(Ie.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},SZ={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 r0({type:"counter",content:e},()=>(al("beforeDOMElementCreation",{content:e,params:t}),rZ({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(Ie.cssPrefix,"-layers-counter"),...r]}})))}}}},PZ={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Zi,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return r0({type:"text",content:e},()=>(al("beforeDOMElementCreation",{content:e,params:t}),gA({content:e,transform:{...Zi,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(Ie.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(H6){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();a=c.width/l,s=c.height/l}return Ie.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,gA({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const EZ=new RegExp('"',"ug"),SA=[1105920,1112319],PA={FontAwesome:{normal:"fas",400:"fas"},...sY,...aY,...mY},Lx=Object.keys(PA).reduce((e,t)=>(e[t.toLowerCase()]=PA[t],e),{}),CZ=Object.keys(Lx).reduce((e,t)=>{const n=Lx[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function TZ(e){const t=e.replace(EZ,""),n=FY(t,0),r=n>=SA[0]&&n<=SA[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ex(i?t[0]:t),isSecondary:r||i}}function jZ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Lx[n]||{})[i]||CZ[n]}function EA(e,t){const n="".concat(yY).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Lu(e.children).filter(p=>p.getAttribute(wx)===t)[0],s=Ha.getComputedStyle(e,t),l=s.getPropertyValue("font-family"),c=l.match(OY),f=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(a&&!c)return e.removeChild(a),r();if(c&&d!=="none"&&d!==""){const p=s.getPropertyValue("content");let v=jZ(l,f);const{value:y,isSecondary:g}=TZ(p),x=c[0].startsWith("FontAwesome");let _=vP(v,y),b=_;if(x){const w=GY(y);w.iconName&&w.prefix&&(_=w.iconName,v=w.prefix)}if(_&&!g&&(!a||a.getAttribute(fP)!==v||a.getAttribute(dP)!==b)){e.setAttribute(n,b),a&&e.removeChild(a);const w=gZ(),{extra:S}=w;S.attributes[wx]=t,kx(_,v).then(P=>{const E=yP({...w,icons:{main:P,mask:gP()},prefix:v,iconName:b,extra:S,watchable:!0}),T=jt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(T,e.firstChild):e.appendChild(T),T.outerHTML=E.map(j=>Qh(j)).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function AZ(e){return Promise.all([EA(e,"::before"),EA(e,"::after")])}function kZ(e){return e.parentNode!==document.head&&!~_Y.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(wx)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function CA(e){if(Qo)return new Promise((t,n)=>{const r=Lu(e.querySelectorAll("*")).filter(kZ).map(AZ),i=bP.begin("searchPseudoElements");gI(),Promise.all(r).then(()=>{i(),Mx(),t()}).catch(()=>{i(),Mx(),n()})})}var NZ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=CA,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=jt}=t;Ie.searchPseudoElements&&CA(n)}}};let TA=!1;var MZ={mixout(){return{dom:{unwatch(){gI(),TA=!0}}}},hooks(){return{bootstrap(){xA(Tx("mutationObserverCallbacks",{}))},noAuto(){hZ()},watch(e){const{observeMutationsRoot:t}=e;TA?Mx():xA(Tx("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const jA=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 LZ={mixout(){return{parse:{transform:e=>jA(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=jA(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,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(s," ").concat(l," ").concat(c)},d={transform:"translate(".concat(o/2*-1," -256)")},p={outer:a,inner:f,path:d};return{tag:"g",attributes:{...p.outer},children:[{tag:"g",attributes:{...p.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...p.path}}]}]}}}};const O1={x:0,y:0,width:"100%",height:"100%"};function AA(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 RZ(e){return e.tag==="g"?e.children:[e]}var $Z={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?n0(n.split(" ").map(i=>i.trim())):gP();return r.prefix||(r.prefix=Ga()),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:l,icon:c}=i,{width:f,icon:d}=o,p=MY({transform:s,containerWidth:f,iconWidth:l}),v={tag:"rect",attributes:{...O1,fill:"white"}},y=c.children?{children:c.children.map(AA)}:{},g={tag:"g",attributes:{...p.inner},children:[AA({tag:c.tag,attributes:{...c.attributes,...p.path},...y})]},x={tag:"g",attributes:{...p.outer},children:[g]},_="mask-".concat(a||Yd()),b="clip-".concat(a||Yd()),w={tag:"mask",attributes:{...O1,id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[v,x]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:RZ(d)},w]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(_,")"),...O1}}),{children:n,attributes:r}}}},IZ={provides(e){let t=!1;Ha.matchMedia&&(t=Ha.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:{...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={...i,attributeName:"opacity"},a={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||a.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),n.push(a),n.push({tag:"path",attributes:{...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:{...o,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...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:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},DZ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},FZ=[$Y,wZ,OZ,SZ,PZ,NZ,MZ,LZ,$Z,IZ,DZ];ZY(FZ,{mixoutsTo:Ir});Ir.noAuto;Ir.config;Ir.library;Ir.dom;const Rx=Ir.parse;Ir.findIconDefinition;Ir.toHtml;const BZ=Ir.icon;Ir.layer;Ir.text;Ir.counter;var bI={exports:{}},UZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zZ=UZ,VZ=zZ;function _I(){}function xI(){}xI.resetWarningCache=_I;var WZ=function(){function e(r,i,o,a,s,l){if(l!==VZ){var c=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 c.name="Invariant Violation",c}}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:xI,resetWarningCache:_I};return n.PropTypes=n,n};bI.exports=WZ();var HZ=bI.exports;const $=at(HZ);function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(n),!0).forEach(function(r){vc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bv(e){"@babel/helpers - typeof";return Bv=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},Bv(e)}function vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GZ(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 qZ(e,t){if(e==null)return{};var n=GZ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $x(e){return KZ(e)||YZ(e)||ZZ(e)||XZ()}function KZ(e){if(Array.isArray(e))return Ix(e)}function YZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZZ(e,t){if(e){if(typeof e=="string")return Ix(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 Ix(e,t)}}function Ix(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XZ(){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 QZ(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,f=e.spinReverse,d=e.pulse,p=e.fixedWidth,v=e.inverse,y=e.border,g=e.listItem,x=e.flip,_=e.size,b=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":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":p,"fa-inverse":v,"fa-border":y,"fa-li":g,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},vc(t,"fa-".concat(_),typeof _<"u"&&_!==null),vc(t,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),vc(t,"fa-pull-".concat(w),typeof w<"u"&&w!==null),vc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(S).map(function(P){return S[P]?P:null}).filter(function(P){return P})}function JZ(e){return e=e-0,e===e}function wI(e){return JZ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var eX=["style"];function tX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function nX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=wI(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[tX(i)]=o:t[i]=o,t},{})}function OI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return OI(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=nX(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[wI(c)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=qZ(n,eX);return i.attrs.style=Ki(Ki({},i.attrs.style),a),e.apply(void 0,[t.tag,Ki(Ki({},i.attrs),s)].concat($x(r)))}var SI=!1;try{SI=!0}catch{}function rX(){if(!SI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function NA(e){if(e&&Bv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Rx.icon)return Rx.icon(e);if(e===null)return null;if(e&&Bv(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 S1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vc({},e,t):{}}var MA={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=Ki(Ki({},MA),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,f=NA(r),d=S1("classes",[].concat($x(QZ(n)),$x((a||"").split(" ")))),p=S1("transform",typeof n.transform=="string"?Rx.transform(n.transform):n.transform),v=S1("mask",NA(i)),y=BZ(f,Ki(Ki(Ki(Ki({},d),p),v),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!y)return rX("Could not find icon",f),null;var g=y.abstract,x={ref:t};return Object.keys(n).forEach(function(_){MA.hasOwnProperty(_)||(x[_]=n[_])}),iX(g[0],x)});je.displayName="FontAwesomeIcon";je.propTypes={beat:$.bool,border:$.bool,beatFade:$.bool,bounce:$.bool,className:$.string,fade:$.bool,flash:$.bool,mask:$.oneOfType([$.object,$.array,$.string]),maskId:$.string,fixedWidth:$.bool,inverse:$.bool,flip:$.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$.oneOfType([$.object,$.array,$.string]),listItem:$.bool,pull:$.oneOf(["right","left"]),pulse:$.bool,rotation:$.oneOf([0,90,180,270]),shake:$.bool,size:$.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$.bool,spinPulse:$.bool,spinReverse:$.bool,symbol:$.oneOfType([$.bool,$.string]),title:$.string,titleId:$.string,transform:$.oneOfType([$.string,$.object]),swapOpacity:$.bool};var iX=OI.bind(null,V.createElement);function PI(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=PI(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=PI(e))&&(r&&(r+=" "),r+=t);return r}var EI={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(EI);var oX=EI.exports;const He=at(oX);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 aX(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){sX(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 sX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function lX(){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 CI(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function cX(){return document.body.clientWidth<window.innerWidth}function uX(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function fX(){var e=lX(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;cX()&&CI(n+e)}var dX;function Be(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dX;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ns(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function TI(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 RA={};function Dx(e){RA[e]||(typeof console<"u"&&console.error(e),RA[e]=!0)}function jI(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&Dx('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
|
||
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return e.apply(void 0,[r,i,o].concat(s))}}var hX=(typeof window>"u"?"undefined":sl(window))==="object"&&window.Element||function(){};function xP(e,t,n){if(!(e[t]instanceof hX))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var Hc=$.oneOfType([$.string,$.func,xP,$.shape({current:$.any})]),it=$.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func}),$.arrayOf($.oneOfType([$.func,$.string,$.shape({$$typeof:$.symbol,render:$.func})]))]),Uv={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},zv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],um={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},dt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},pX=["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 mX(e){return e&&sl(e)==="object"?"current"in e:!1}function AI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Fx(e){var t=sl(e);return e!=null&&(t==="object"||t==="function")}function $A(e){var t=sl(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&AI(e)==="[object Symbol]")return n;if(Fx(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Fx(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 vX(e){if(!Fx(e))return!1;var t=AI(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function gX(e){if(mX(e))return e.current;if(vX(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 IA(e){return e===null?!1:Array.isArray(e)||wP&&typeof e.length=="number"}function Zd(e,t){var n=gX(e);return t?IA(n)?n:n===null?[]:[n]:IA(n)?n[0]:n}var yX=["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=aX({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&sl(e[r])==="object"&&OP(e[r],n)}),n}var bX=["className","cssModule","noGutters","tag","widths"];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 _X(e,t){if(e==null)return{};var n=xX(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 xX(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 wX=["xs","sm","md","lg","xl","xxl"],Ul=$.oneOfType([$.number,$.string]),OX={tag:it,noGutters:jI($.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:$.string,cssModule:$.object,xs:Ul,sm:Ul,md:Ul,lg:Ul,xl:Ul,xxl:Ul,widths:$.array};function Pr(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?wX:a,l=_X(e,bX),c=[];s.forEach(function(d,p){var v=e[d];if(delete l[d],!!v){var y=!p;c.push(y?"row-cols-".concat(v):"row-cols-".concat(d,"-").concat(v))}});var f=Be(He(t,r?"gx-0":null,"row",c),n);return V.createElement(o,Bx({},l,{className:f}))}Pr.propTypes=OX;var SX=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];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 P1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PX(e,t){if(e==null)return{};var n=EX(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 EX(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 CX={children:$.node,className:$.string,color:$.string,container:$.oneOfType([$.bool,$.string]),cssModule:$.object,dark:$.bool,expand:$.oneOfType([$.bool,$.string]),fixed:$.string,light:$.bool,role:$.string,sticky:$.string,tag:it},TX=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function kI(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,c=e.sticky,f=e.color,d=e.container,p=d===void 0?"fluid":d,v=e.tag,y=v===void 0?"nav":v,g=e.children,x=PX(e,SX),_=Be(He(i,"navbar",TX(r),(t={"navbar-light":a,"navbar-dark":s},P1(t,"bg-".concat(f),f),P1(t,"fixed-".concat(l),l),P1(t,"sticky-".concat(c),c),t)),o),b=p&&p===!0?"container":"container-".concat(p);return V.createElement(y,Ux({},x,{className:_}),p?V.createElement("div",{className:b},g):g)}kI.propTypes=CX;var jX=["className","cssModule","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 AX(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 NX={className:$.string,cssModule:$.object,tag:it};function NI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=AX(e,jX),a=Be(He(t,"navbar-brand"),n);return V.createElement(i,zx({},o,{className:a}))}NI.propTypes=NX;var MX=["className","cssModule","children","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 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 LX(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){RX(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 RX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $X(e,t){if(e==null)return{};var n=IX(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 IX(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 DX={className:$.string,cssModule:$.object,tag:it,type:$.string,children:$.node};function MI(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=$X(e,MX),s=Be(He(t,"navbar-toggler"),n);return V.createElement(o,Vx({"aria-label":"Toggle navigation"},LX({type:"button"},a),{className:s}),r||V.createElement("span",{className:Be("navbar-toggler-icon",n)}))}MI.propTypes=DX;var FX=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function Wx(){return Wx=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},Wx.apply(this,arguments)}function BX(e,t){if(e==null)return{};var n=UX(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 UX(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 zX={card:$.bool,className:$.string,cssModule:$.object,fill:$.bool,horizontal:$.oneOf(["center","end"]),justified:$.bool,navbar:$.bool,pills:$.bool,tabs:$.bool,tag:it,vertical:$.oneOfType([$.bool,$.string])},VX=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,l=e.justified,c=e.fill,f=e.navbar,d=e.card,p=e.tag,v=p===void 0?"ul":p,y=BX(e,FX),g=Be(He(t,f?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,VX(a),{"nav-tabs":r,"card-header-tabs":d&&r,"nav-pills":i,"card-header-pills":d&&i,"nav-justified":l,"nav-fill":c}),n);return V.createElement(v,Wx({},y,{className:g}))}SP.propTypes=zX;var WX=["className","cssModule","active","tag"];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 HX(e,t){if(e==null)return{};var n=GX(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 GX(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={active:$.bool,className:$.string,cssModule:$.object,tag:it};function PP(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=HX(e,WX),s=Be(He(t,"nav-item",r?"active":!1),n);return V.createElement(o,Hx({},a,{className:s}))}PP.propTypes=qX;function Gx(e){"@babel/helpers - typeof";return Gx=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},Gx(e)}var KX=["className","cssModule","active","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 YX(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}function XX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QX(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 JX(e,t,n){return t&&QX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eQ(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&&Kx(e,t)}function Kx(e,t){return Kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kx(e,t)}function tQ(e){var t=rQ();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 nQ(this,i)}}function nQ(e,t){if(t&&(Gx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LI(e)}function LI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rQ(){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 iQ={active:$.bool,className:$.string,cssModule:$.object,disabled:$.bool,href:$.any,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,tag:it},EP=function(e){eQ(n,e);var t=tQ(n);function n(r){var i;return XX(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(LI(i)),i}return JX(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,l=i.tag,c=l===void 0?"a":l,f=i.innerRef,d=YX(i,KX),p=Be(He(o,"nav-link",{disabled:d.disabled,active:s}),a);return V.createElement(c,qx({},d,{ref:f,onClick:this.onClick,className:p}))}}]),n}(V.Component);EP.propTypes=iQ;var oQ=["className","cssModule","variant","innerRef"];function Yx(){return Yx=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},Yx.apply(this,arguments)}function FA(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 aQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(n),!0).forEach(function(r){sQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lQ(e,t){if(e==null)return{};var n=cQ(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 cQ(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 uQ={active:$.bool,"aria-label":$.string,onClick:$.func,variant:$.oneOf(["white"]),className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])};function RI(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=lQ(e,oQ),o=Be(He(t,"btn-close",n&&"btn-close-".concat(n)));return V.createElement("button",Yx({ref:r,type:"button",className:o},aQ({"aria-label":"close"},i)))}RI.propTypes=uQ;var fQ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];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 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:$.bool,"aria-label":$.string,block:$.bool,children:$.node,className:$.string,cssModule:$.object,close:$.bool,color:$.string,disabled:$.bool,innerRef:$.oneOfType([$.object,$.func,$.string]),onClick:$.func,outline:$.bool,size:$.string,tag:it};function qe(e){var t=M.useCallback(function(b){if(e.disabled){b.preventDefault();return}if(e.onClick)return e.onClick(b)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,c=l===void 0?"secondary":l,f=e.outline,d=e.size,p=e.tag,v=p===void 0?"button":p,y=e.innerRef,g=dQ(e,fQ);if(a)return V.createElement(RI,g);var x="btn".concat(f?"-outline":"","-").concat(c),_=Be(He(o,"btn",x,d?"btn-".concat(d):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return g.href&&v==="button"&&(v="a"),V.createElement(v,Zx({type:v==="button"&&g.onClick?"button":void 0},g,{className:_,ref:y,onClick:t,"aria-label":r}))}qe.propTypes=pQ;var $I=M.createContext(),II=M.createContext();function BA(e){var t=e.children,n=M.useState(null),r=n[0],i=n[1],o=M.useRef(!1);M.useEffect(function(){return function(){o.current=!0}},[]);var a=M.useCallback(function(s){o.current||i(s)},[]);return M.createElement($I.Provider,{value:r},M.createElement(II.Provider,{value:a},t))}var DI=function(t){return Array.isArray(t)?t[0]:t},FI=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)}},Xx=function(t,n){if(typeof t=="function")return FI(t,n);t!=null&&(t.current=n)},UA=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},zA=typeof window<"u"&&window.document&&window.document.createElement?M.useLayoutEffect:M.useEffect,fr="top",si="bottom",li="right",dr="left",CP="auto",Jh=[fr,si,li,dr],Gc="start",Xd="end",mQ="clippingParents",BI="viewport",Cf="popper",vQ="reference",VA=Jh.reduce(function(e,t){return e.concat([t+"-"+Gc,t+"-"+Xd])},[]),UI=[].concat(Jh,[CP]).reduce(function(e,t){return e.concat([t,t+"-"+Gc,t+"-"+Xd])},[]),gQ="beforeRead",yQ="read",bQ="afterRead",_Q="beforeMain",xQ="main",wQ="afterMain",OQ="beforeWrite",SQ="write",PQ="afterWrite",EQ=[gQ,yQ,bQ,_Q,xQ,wQ,OQ,SQ,PQ];function co(e){return e?(e.nodeName||"").toLowerCase():null}function Nr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ll(e){var t=Nr(e).Element;return e instanceof t||e instanceof Element}function ri(e){var t=Nr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function TP(e){if(typeof ShadowRoot>"u")return!1;var t=Nr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CQ(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)||!co(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 TQ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!ri(i)||!co(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const jQ={name:"applyStyles",enabled:!0,phase:"write",fn:CQ,effect:TQ,requires:["computeStyles"]};function no(e){return e.split("-")[0]}var Ys=Math.max,Wv=Math.min,qc=Math.round;function Qx(){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 zI(){return!/^((?!chrome|android).)*safari/i.test(Qx())}function Kc(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&&qc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&qc(r.height)/e.offsetHeight||1);var a=ll(e)?Nr(e):window,s=a.visualViewport,l=!zI()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:c+d,bottom:f+p,left:c,x:c,y:f}}function jP(e){var t=Kc(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 VI(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 Nr(e).getComputedStyle(e)}function AQ(e){return["table","td","th"].indexOf(co(e))>=0}function rs(e){return((ll(e)?e.ownerDocument:e.document)||window.document).documentElement}function i0(e){return co(e)==="html"?e:e.assignedSlot||e.parentNode||(TP(e)?e.host:null)||rs(e)}function WA(e){return!ri(e)||Uo(e).position==="fixed"?null:e.offsetParent}function kQ(e){var t=/firefox/i.test(Qx()),n=/Trident/i.test(Qx());if(n&&ri(e)){var r=Uo(e);if(r.position==="fixed")return null}var i=i0(e);for(TP(i)&&(i=i.host);ri(i)&&["html","body"].indexOf(co(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 ep(e){for(var t=Nr(e),n=WA(e);n&&AQ(n)&&Uo(n).position==="static";)n=WA(n);return n&&(co(n)==="html"||co(n)==="body"&&Uo(n).position==="static")?t:n||kQ(e)||t}function AP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dd(e,t,n){return Ys(e,Wv(t,n))}function NQ(e,t,n){var r=dd(e,t,n);return r>n?n:r}function WI(){return{top:0,right:0,bottom:0,left:0}}function HI(e){return Object.assign({},WI(),e)}function GI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var MQ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,HI(typeof t!="number"?t:GI(t,Jh))};function LQ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=no(n.placement),l=AP(s),c=[dr,li].indexOf(s)>=0,f=c?"height":"width";if(!(!o||!a)){var d=MQ(i.padding,n),p=jP(o),v=l==="y"?fr:dr,y=l==="y"?si:li,g=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],x=a[l]-n.rects.reference[l],_=ep(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,w=g/2-x/2,S=d[v],P=b-p[f]-d[y],E=b/2-p[f]/2+w,T=dd(S,E,P),j=l;n.modifiersData[r]=(t={},t[j]=T,t.centerOffset=T-E,t)}}function RQ(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)||VI(t.elements.popper,i)&&(t.elements.arrow=i))}const $Q={name:"arrow",enabled:!0,phase:"main",fn:LQ,effect:RQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yc(e){return e.split("-")[1]}var IQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DQ(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:qc(n*i)/i||0,y:qc(r*i)/i||0}}function HA(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,v=p===void 0?0:p,y=a.y,g=y===void 0?0:y,x=typeof f=="function"?f({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=dr,S=fr,P=window;if(c){var E=ep(n),T="clientHeight",j="clientWidth";if(E===Nr(n)&&(E=rs(n),Uo(E).position!=="static"&&s==="absolute"&&(T="scrollHeight",j="scrollWidth")),E=E,i===fr||(i===dr||i===li)&&o===Xd){S=si;var F=d&&E===P&&P.visualViewport?P.visualViewport.height:E[T];g-=F-r.height,g*=l?1:-1}if(i===dr||(i===fr||i===si)&&o===Xd){w=li;var k=d&&E===P&&P.visualViewport?P.visualViewport.width:E[j];v-=k-r.width,v*=l?1:-1}}var I=Object.assign({position:s},c&&IQ),D=f===!0?DQ({x:v,y:g},Nr(n)):{x:v,y:g};if(v=D.x,g=D.y,l){var K;return Object.assign({},I,(K={},K[S]=b?"0":"",K[w]=_?"0":"",K.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",K))}return Object.assign({},I,(t={},t[S]=b?g+"px":"",t[w]=_?v+"px":"",t.transform="",t))}function FQ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:no(t.placement),variation:Yc(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,HA(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,HA(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FQ,data:{}};var fm={passive:!0};function UQ(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Nr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,fm)}),s&&l.addEventListener("resize",n.update,fm),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,fm)}),s&&l.removeEventListener("resize",n.update,fm)}}const zQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UQ,data:{}};var VQ={left:"right",right:"left",bottom:"top",top:"bottom"};function Xm(e){return e.replace(/left|right|bottom|top/g,function(t){return VQ[t]})}var WQ={start:"end",end:"start"};function GA(e){return e.replace(/start|end/g,function(t){return WQ[t]})}function kP(e){var t=Nr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function NP(e){return Kc(rs(e)).left+kP(e).scrollLeft}function HQ(e,t){var n=Nr(e),r=rs(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=zI();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+NP(e),y:l}}function GQ(e){var t,n=rs(e),r=kP(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ys(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ys(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+NP(e),l=-r.scrollTop;return Uo(i||n).direction==="rtl"&&(s+=Ys(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}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 qI(e){return["html","body","#document"].indexOf(co(e))>=0?e.ownerDocument.body:ri(e)&&MP(e)?e:qI(i0(e))}function hd(e,t){var n;t===void 0&&(t=[]);var r=qI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Nr(r),a=i?[o].concat(o.visualViewport||[],MP(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hd(i0(a)))}function Jx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qQ(e,t){var n=Kc(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 qA(e,t,n){return t===BI?Jx(HQ(e,n)):ll(t)?qQ(t,n):Jx(GQ(rs(e)))}function KQ(e){var t=hd(i0(e)),n=["absolute","fixed"].indexOf(Uo(e).position)>=0,r=n&&ri(e)?ep(e):e;return ll(r)?t.filter(function(i){return ll(i)&&VI(i,r)&&co(i)!=="body"}):[]}function YQ(e,t,n,r){var i=t==="clippingParents"?KQ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var f=qA(e,c,r);return l.top=Ys(f.top,l.top),l.right=Wv(f.right,l.right),l.bottom=Wv(f.bottom,l.bottom),l.left=Ys(f.left,l.left),l},qA(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 KI(e){var t=e.reference,n=e.element,r=e.placement,i=r?no(r):null,o=r?Yc(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case fr:l={x:a,y:t.y-n.height};break;case si:l={x:a,y:t.y+t.height};break;case li:l={x:t.x+t.width,y:s};break;case dr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?AP(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Gc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case Xd:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function Qd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?mQ:s,c=n.rootBoundary,f=c===void 0?BI:c,d=n.elementContext,p=d===void 0?Cf:d,v=n.altBoundary,y=v===void 0?!1:v,g=n.padding,x=g===void 0?0:g,_=HI(typeof x!="number"?x:GI(x,Jh)),b=p===Cf?vQ:Cf,w=e.rects.popper,S=e.elements[y?b:p],P=YQ(ll(S)?S:S.contextElement||rs(e.elements.popper),l,f,a),E=Kc(e.elements.reference),T=KI({reference:E,element:w,strategy:"absolute",placement:i}),j=Jx(Object.assign({},w,T)),F=p===Cf?j:E,k={top:P.top-F.top+_.top,bottom:F.bottom-P.bottom+_.bottom,left:P.left-F.left+_.left,right:F.right-P.right+_.right},I=e.modifiersData.offset;if(p===Cf&&I){var D=I[i];Object.keys(k).forEach(function(K){var W=[li,si].indexOf(K)>=0?1:-1,X=[fr,si].indexOf(K)>=0?"y":"x";k[K]+=D[X]*W})}return k}function ZQ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?UI:l,f=Yc(r),d=f?s?VA:VA.filter(function(y){return Yc(y)===f}):Jh,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var v=p.reduce(function(y,g){return y[g]=Qd(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[no(g)],y},{});return Object.keys(v).sort(function(y,g){return v[y]-v[g]})}function XQ(e){if(no(e)===CP)return[];var t=Xm(e);return[GA(e),t,GA(t)]}function QQ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,g=n.allowedAutoPlacements,x=t.options.placement,_=no(x),b=_===x,w=l||(b||!y?[Xm(x)]:XQ(x)),S=[x].concat(w).reduce(function(ne,re){return ne.concat(no(re)===CP?ZQ(t,{placement:re,boundary:f,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:g}):re)},[]),P=t.rects.reference,E=t.rects.popper,T=new Map,j=!0,F=S[0],k=0;k<S.length;k++){var I=S[k],D=no(I),K=Yc(I)===Gc,W=[fr,si].indexOf(D)>=0,X=W?"width":"height",Q=Qd(t,{placement:I,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),te=W?K?li:dr:K?si:fr;P[X]>E[X]&&(te=Xm(te));var Z=Xm(te),z=[];if(o&&z.push(Q[D]<=0),s&&z.push(Q[te]<=0,Q[Z]<=0),z.every(function(ne){return ne})){F=I,j=!1;break}T.set(I,z)}if(j)for(var B=y?3:1,H=function(re){var ae=S.find(function(ue){var A=T.get(ue);if(A)return A.slice(0,re).every(function(N){return N})});if(ae)return F=ae,"break"},ee=B;ee>0;ee--){var q=H(ee);if(q==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const JQ={name:"flip",enabled:!0,phase:"main",fn:QQ,requiresIfExists:["offset"],data:{_skip:!1}};function KA(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 YA(e){return[fr,li,si,dr].some(function(t){return e[t]>=0})}function eJ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Qd(t,{elementContext:"reference"}),s=Qd(t,{altBoundary:!0}),l=KA(a,r),c=KA(s,i,o),f=YA(l),d=YA(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const tJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eJ};function nJ(e,t,n){var r=no(e),i=[dr,fr].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,[dr,li].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function rJ(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=UI.reduce(function(f,d){return f[d]=nJ(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const iJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rJ};function oJ(e){var t=e.state,n=e.name;t.modifiersData[n]=KI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const aJ={name:"popperOffsets",enabled:!0,phase:"read",fn:oJ,data:{}};function sJ(e){return e==="x"?"y":"x"}function lJ(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,v=p===void 0?!0:p,y=n.tetherOffset,g=y===void 0?0:y,x=Qd(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:f}),_=no(t.placement),b=Yc(t.placement),w=!b,S=AP(_),P=sJ(S),E=t.modifiersData.popperOffsets,T=t.rects.reference,j=t.rects.popper,F=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,k=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(E){if(o){var K,W=S==="y"?fr:dr,X=S==="y"?si:li,Q=S==="y"?"height":"width",te=E[S],Z=te+x[W],z=te-x[X],B=v?-j[Q]/2:0,H=b===Gc?T[Q]:j[Q],ee=b===Gc?-j[Q]:-T[Q],q=t.elements.arrow,ne=v&&q?jP(q):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:WI(),ae=re[W],ue=re[X],A=dd(0,T[Q],ne[Q]),N=w?T[Q]/2-B-A-ae-k.mainAxis:H-A-ae-k.mainAxis,U=w?-T[Q]/2+B+A+ue+k.mainAxis:ee+A+ue+k.mainAxis,J=t.elements.arrow&&ep(t.elements.arrow),Y=J?S==="y"?J.clientTop||0:J.clientLeft||0:0,oe=(K=I==null?void 0:I[S])!=null?K:0,he=te+N-oe-Y,Pe=te+U-oe,se=dd(v?Wv(Z,he):Z,te,v?Ys(z,Pe):z);E[S]=se,D[S]=se-te}if(s){var pe,ve=S==="x"?fr:dr,xe=S==="x"?si:li,Te=E[P],Ce=P==="y"?"height":"width",Ae=Te+x[ve],le=Te-x[xe],fe=[fr,dr].indexOf(_)!==-1,ye=(pe=I==null?void 0:I[P])!=null?pe:0,ge=fe?Ae:Te-T[Ce]-j[Ce]-ye+k.altAxis,we=fe?Te+T[Ce]+j[Ce]-ye-k.altAxis:le,ke=v&&fe?NQ(ge,Te,we):dd(v?ge:Ae,Te,v?we:le);E[P]=ke,D[P]=ke-Te}t.modifiersData[r]=D}}const cJ={name:"preventOverflow",enabled:!0,phase:"main",fn:lJ,requiresIfExists:["offset"]};function uJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fJ(e){return e===Nr(e)||!ri(e)?kP(e):uJ(e)}function dJ(e){var t=e.getBoundingClientRect(),n=qc(t.width)/e.offsetWidth||1,r=qc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hJ(e,t,n){n===void 0&&(n=!1);var r=ri(t),i=ri(t)&&dJ(t),o=rs(t),a=Kc(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((co(t)!=="body"||MP(o))&&(s=fJ(t)),ri(t)?(l=Kc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=NP(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function pJ(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function mJ(e){var t=pJ(e);return EQ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function gJ(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 ZA={placement:"bottom",modifiers:[],strategy:"absolute"};function XA(){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 yJ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?ZA:i;return function(s,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},ZA,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,v={state:f,setOptions:function(_){var b=typeof _=="function"?_(f.options):_;g(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:ll(s)?hd(s):s.contextElement?hd(s.contextElement):[],popper:hd(l)};var w=mJ(gJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=w.filter(function(S){return S.enabled}),y(),v.update()},forceUpdate:function(){if(!p){var _=f.elements,b=_.reference,w=_.popper;if(XA(b,w)){f.rects={reference:hJ(b,ep(w),f.options.strategy==="fixed"),popper:jP(w)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(k){return f.modifiersData[k.name]=Object.assign({},k.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var P=f.orderedModifiers[S],E=P.fn,T=P.options,j=T===void 0?{}:T,F=P.name;typeof E=="function"&&(f=E({state:f,options:j,name:F,instance:v})||f)}}}},update:vJ(function(){return new Promise(function(x){v.forceUpdate(),x(f)})}),destroy:function(){g(),p=!0}};if(!XA(s,l))return v;v.setOptions(c).then(function(x){!p&&c.onFirstUpdate&&c.onFirstUpdate(x)});function y(){f.orderedModifiers.forEach(function(x){var _=x.name,b=x.options,w=b===void 0?{}:b,S=x.effect;if(typeof S=="function"){var P=S({state:f,name:_,instance:v,options:w}),E=function(){};d.push(P||E)}})}function g(){d.forEach(function(x){return x()}),d=[]}return v}}var bJ=[zQ,aJ,BQ,jQ,iJ,JQ,cJ,$Q,tJ],_J=yJ({defaultModifiers:bJ}),xJ=typeof Element<"u",wJ=typeof Map=="function",OJ=typeof Set=="function",SJ=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(wJ&&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(OJ&&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(SJ&&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(xJ&&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 PJ=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 EJ=at(PJ);var CJ=[],TJ=function(t,n,r){r===void 0&&(r={});var i=M.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||CJ},a=M.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=M.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var y=v.state,g=Object.keys(y.elements);qy.flushSync(function(){l({styles:UA(g.map(function(x){return[x,y.styles[x]||{}]})),attributes:UA(g.map(function(x){return[x,y.attributes[x]]}))})})},requires:["computeStyles"]}},[]),f=M.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return EJ(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=M.useRef();return zA(function(){d.current&&d.current.setOptions(f)},[f]),zA(function(){if(!(t==null||n==null)){var p=r.createPopper||_J,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}},jJ=function(){},AJ=function(){return Promise.resolve(null)},kJ=[];function YI(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?kJ:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,d=M.useContext($I),p=M.useState(null),v=p[0],y=p[1],g=M.useState(null),x=g[0],_=g[1];M.useEffect(function(){Xx(c,v)},[c,v]);var b=M.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,a,x]),w=TJ(s||d,v,b),S=w.state,P=w.styles,E=w.forceUpdate,T=w.update,j=M.useMemo(function(){return{ref:y,style:P.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:P.arrow,ref:_},forceUpdate:E||jJ,update:T||AJ}},[y,_,n,S,P,T,E]);return DI(f)(j)}var NJ=function(){},MJ=NJ;const LJ=at(MJ);function RJ(e){var t=e.children,n=e.innerRef,r=M.useContext(II),i=M.useCallback(function(o){Xx(n,o),FI(r,o)},[n,r]);return M.useEffect(function(){return function(){return Xx(n,null)}},[]),M.useEffect(function(){LJ(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),DI(t)({ref:i})}var Jd=V.createContext({}),ZI=V.createContext({});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)}var $J=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function tw(){return tw=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},tw.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 IJ(e,t){if(e==null)return{};var n=DJ(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 DJ(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 FJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BJ(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 UJ(e,t,n){return t&&BJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zJ(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&&nw(e,t)}function nw(e,t){return nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nw(e,t)}function VJ(e){var t=HJ();return function(){var r=Hv(e),i;if(t){var o=Hv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return WJ(this,i)}}function WJ(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 fa(e)}function fa(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HJ(){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 Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}var GJ={a11y:$.bool,disabled:$.bool,direction:$.oneOf(["up","down","start","end","left","right"]),group:$.bool,isOpen:$.bool,nav:$.bool,active:$.bool,size:$.string,tag:it,toggle:$.func,children:$.node,className:$.string,cssModule:$.object,dropup:$.bool,inNavbar:$.bool,setActiveFromChild:$.bool,menuRole:$.oneOf(["listbox","menu"])},qJ={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},KJ=[dt.space,dt.enter,dt.up,dt.down,dt.end,dt.home],is=function(e){zJ(n,e);var t=VJ(n);function n(r){var i;return FJ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(fa(i)),i.handleDocumentClick=i.handleDocumentClick.bind(fa(i)),i.handleKeyDown=i.handleKeyDown.bind(fa(i)),i.removeEvents=i.removeEvents.bind(fa(i)),i.toggle=i.toggle.bind(fa(i)),i.handleMenuRef=i.handleMenuRef.bind(fa(i)),i.handleToggleRef=i.handleToggleRef.bind(fa(i)),i.containerRef=V.createRef(),i.menuRef=V.createRef(),i.toggleRef=V.createRef(),i}return UJ(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!==dt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var l=s.contains(i.target),c=a&&a.contains(i.target)&&a!==i.target,f=!1;o&&(f=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!f||c)&&(i.type!=="keyup"||i.which===dt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=dt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((KJ.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([dt.space,dt.enter,dt.up,dt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var b;return(b=o.getMenuItems()[0])===null||b===void 0?void 0:b.focus()});else if(this.props.isOpen&&l){var c;i.preventDefault(),(c=this.getMenuItems()[0])===null||c===void 0||c.focus()}else this.props.isOpen&&i.which===dt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([dt.tab,dt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([dt.space,dt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([dt.down,dt.up].indexOf(i.which)>-1||[dt.n,dt.p].indexOf(i.which)>-1&&i.ctrlKey){var f=this.getMenuItems(),d=f.indexOf(i.target);dt.up===i.which||dt.p===i.which&&i.ctrlKey?d=d!==0?d-1:f.length-1:(dt.down===i.which||dt.n===i.which&&i.ctrlKey)&&(d=d===f.length-1?0:d+1),f[d].focus()}else if(dt.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(dt.home===i.which){var v=this.getMenuItems();v[0].focus()}else if(i.which>=48&&i.which<=90)for(var y=this.getMenuItems(),g=String.fromCharCode(i.which).toLowerCase(),x=0;x<y.length;x+=1){var _=y[x].textContent&&y[x].textContent[0].toLowerCase();if(_===g){y[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=ns(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,l=a.cssModule,c=a.direction,f=a.isOpen,d=a.group,p=a.size,v=a.nav,y=a.setActiveFromChild,g=a.active,x=a.tag;a.menuRole;var _=IJ(a,$J),b=x||(v?"li":"div"),w=!1;y&&V.Children.map(this.props.children[1].props.children,function(P){P&&P.props.active&&(w=!0)});var S=Be(He(s,v&&g?"active":!1,y&&w?"active":!1,(i={"btn-group":d},la(i,"btn-group-".concat(p),!!p),la(i,"dropdown",!d),la(i,"dropup",c==="up"),la(i,"dropstart",c==="start"||c==="left"),la(i,"dropend",c==="end"||c==="right"),la(i,"show",f),la(i,"nav-item",v),i)),l);return this.context.insideInputGroup?V.createElement(Jd.Provider,{value:this.getContextValue()},V.createElement(BA,null,V.Children.map(this.props.children,function(P){return V.cloneElement(P,{onKeyDown:o.handleKeyDown})}))):V.createElement(Jd.Provider,{value:this.getContextValue()},V.createElement(BA,null,V.createElement(b,tw({},_,la({},typeof b=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:S}))))}}]),n}(V.Component);is.propTypes=GJ;is.defaultProps=qJ;is.contextType=ZI;function rw(e){"@babel/helpers - typeof";return rw=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},rw(e)}var YJ=["className","cssModule","divider","tag","header","active","text"];function iw(){return iw=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},iw.apply(this,arguments)}function ZJ(e,t){if(e==null)return{};var n=XJ(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 XJ(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 QJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JJ(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 eee(e,t,n){return t&&JJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tee(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&&ow(e,t)}function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ow(e,t)}function nee(e){var t=iee();return function(){var r=Gv(e),i;if(t){var o=Gv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ree(this,i)}}function ree(e,t){if(t&&(rw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aw(e)}function aw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iee(){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 Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}var oee={children:$.node,active:$.bool,disabled:$.bool,divider:$.bool,tag:it,header:$.bool,onClick:$.func,className:$.string,cssModule:$.object,toggle:$.bool,text:$.bool},Ne=function(e){tee(n,e);var t=nee(n);function n(r){var i;return QJ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(aw(i)),i.getTabIndex=i.getTabIndex.bind(aw(i)),i}return eee(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,c=a.divider,f=a.text;if(s||l||c||f){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=ns(this.props,["toggle"]),s=a.className,l=a.cssModule,c=a.divider,f=a.tag,d=f===void 0?"button":f,p=a.header,v=a.active,y=a.text,g=ZJ(a,YJ),x=Be(He(s,{disabled:g.disabled,"dropdown-item":!c&&!p&&!y,active:v,"dropdown-header":p,"dropdown-divider":c,"dropdown-item-text":y}),l);return d==="button"&&(p?d="h6":c?d="div":g.href?d="a":y&&(d="span")),V.createElement(d,iw({type:d==="button"&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(V.Component);Ne.propTypes=oee;Ne.contextType=Jd;function sw(e){"@babel/helpers - typeof";return sw=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},sw(e)}var aee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function qv(){return qv=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},qv.apply(this,arguments)}function QA(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 E1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QA(Object(n),!0).forEach(function(r){see(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function see(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lee(e){return dee(e)||fee(e)||uee(e)||cee()}function cee(){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 uee(e,t){if(e){if(typeof e=="string")return lw(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 lw(e,t)}}function fee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dee(e){if(Array.isArray(e))return lw(e)}function lw(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 hee(e,t){if(e==null)return{};var n=pee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vee(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 gee(e,t,n){return t&&vee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),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&&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 bee(e){var t=wee();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 _ee(this,i)}}function _ee(e,t){if(t&&(sw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xee(e)}function xee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wee(){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)}var Oee={tag:it,children:$.node.isRequired,dark:$.bool,end:$.bool,flip:$.bool,modifiers:$.array,className:$.string,cssModule:$.object,style:$.object,persist:$.bool,strategy:$.string,container:Hc,updateOnSelect:$.bool,right:jI($.bool,'Please use "end" instead.')},See={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},os=function(e){yee(n,e);var t=bee(n);function n(){return mee(this,n),t.apply(this,arguments)}return gee(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,c=o.end,f=o.right,d=o.tag,p=d===void 0?"div":d,v=o.flip,y=v===void 0?!0:v,g=o.modifiers,x=g===void 0?[]:g,_=o.persist,b=o.strategy,w=o.container,S=o.updateOnSelect,P=hee(o,aee),E=Be(He(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":c||f,show:this.context.isOpen}),s),T=p;if(_||this.context.isOpen&&!this.context.inNavbar){var j=See[this.context.direction]||"bottom",F=c||f?"end":"start",k="".concat(j,"-").concat(F),I=[].concat(lee(x),[{name:"flip",enabled:!!y}]),D={};_&&(D.display="block",D.visibility=this.context.isOpen?"visible":"hidden");var K=V.createElement(YI,{placement:k,modifiers:I,strategy:b},function(X){var Q=X.ref,te=X.style,Z=X.placement,z=X.update,B=E1(E1(E1({},i.props.style),D),te),H=function(q){Q(q);var ne=i.context.onMenuRef;ne&&ne(q)};return V.createElement(T,qv({tabIndex:"-1",role:i.getRole(),ref:H},P,{style:B,"aria-hidden":!i.context.isOpen,className:E,"data-popper-placement":Z,onClick:function(){return S&&z()}}))});return w?Fs.createPortal(K,Zd(w)):K}var W=this.context.onMenuRef;return V.createElement(T,qv({tabIndex:"-1",role:this.getRole()},P,{ref:W,"aria-hidden":!this.context.isOpen,className:E,"data-popper-placement":P.placement,"data-bs-popper":"static"}))}}]),n}(V.Component);os.propTypes=Oee;os.contextType=Jd;function uw(e){"@babel/helpers - typeof";return uw=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},uw(e)}var Pee=["className","color","cssModule","caret","split","nav","tag","innerRef"];function fw(){return fw=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},fw.apply(this,arguments)}function Eee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cee(e,t){if(e==null)return{};var n=Tee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aee(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 kee(e,t,n){return t&&Aee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nee(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&&dw(e,t)}function dw(e,t){return dw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dw(e,t)}function Mee(e){var t=Ree();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 Lee(this,i)}}function Lee(e,t){if(t&&(uw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XI(e)}function XI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ree(){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 $ee={caret:$.bool,color:$.string,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,onClick:$.func,"aria-haspopup":$.bool,split:$.bool,tag:it,nav:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func])},Iee={color:"secondary","aria-haspopup":!0},Jo=function(e){Nee(n,e);var t=Mee(n);function n(r){var i;return jee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(XI(i)),i}return kee(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,l=o.cssModule,c=o.caret,f=o.split,d=o.nav,p=o.tag,v=o.innerRef,y=Cee(o,Pee),g=y["aria-label"]||"Toggle Dropdown",x=Be(He(a,{"dropdown-toggle":c||f,"dropdown-toggle-split":f,"nav-link":d}),l),_=typeof y.children<"u"?y.children:V.createElement("span",{className:"visually-hidden"},g),b;d&&!p?(b="a",y.href="#"):p?b=p:(b=qe,y.color=s,y.cssModule=l);var w=function(P){var E=P.ref,T=function(F){E(F);var k=i.context.onToggleRef;k&&k(F)};return V.createElement(b,fw({},y,Eee({},typeof b=="string"?"ref":"innerRef",T),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:_}))};return this.context.inNavbar?V.createElement(V.Fragment,null,w({ref:this.context.onToggleRef})):V.createElement(RJ,{innerRef:v},w)}}]),n}(V.Component);Jo.propTypes=$ee;Jo.defaultProps=Iee;Jo.contextType=Jd;function Dee(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 hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hw(e,t)}function Fee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hw(e,t)}const JA={disabled:!1},QI=V.createContext(null);var Bee=function(t){return t.scrollTop},Yf="unmounted",Ps="exited",Es="entering",Jl="entered",pw="exiting",mr=function(e){Fee(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Ps,o.appearStatus=Es):l=Jl:r.unmountOnExit||r.mountOnEnter?l=Yf:l=Ps,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Yf?{status:Ps}: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!==Es&&a!==Jl&&(o=Es):(a===Es||a===Jl)&&(o=pw)}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===Es){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Fs.findDOMNode(this);a&&Bee(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ps&&this.setState({status:Yf})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Fs.findDOMNode(this),s],c=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||JA.disabled){this.safeSetState({status:Jl},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Es},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Jl},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Fs.findDOMNode(this);if(!o||JA.disabled){this.safeSetState({status:Ps},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pw},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ps},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:Fs.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Yf)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=Dee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(QI.Provider,{value:null},typeof a=="function"?a(i,s):V.cloneElement(V.Children.only(a),s))},t}(V.Component);mr.contextType=QI;mr.propTypes={};function zl(){}mr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zl,onEntering:zl,onEntered:zl,onExit:zl,onExiting:zl,onExited:zl};mr.UNMOUNTED=Yf;mr.EXITED=Ps;mr.ENTERING=Es;mr.ENTERED=Jl;mr.EXITING=pw;var Uee=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];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 zee(e,t){if(e==null)return{};var n=Vee(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 Vee(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 e3(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 eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e3(Object(n),!0).forEach(function(r){Wee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hee=eh(eh({},mr.propTypes),{},{children:$.oneOfType([$.arrayOf($.node),$.node]),tag:it,baseClass:$.string,baseClassActive:$.string,className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func])}),t3=eh(eh({},mr.defaultProps),{},{timeout:Uv.Fade,appear:!0,enter:!0,exit:!0,in:!0});function ar(e){var t=M.useRef(null),n=OP(t3,e),r=n.tag,i=r===void 0?"div":r,o=n.baseClass,a=o===void 0?"fade":o,s=n.baseClassActive,l=s===void 0?"show":s,c=n.className,f=n.cssModule,d=n.children,p=n.innerRef,v=p===void 0?t:p,y=zee(n,Uee),g=TI(eh({defaultProps:t3},y),zv),x=ns(y,zv);return V.createElement(mr,Zv({nodeRef:v},g),function(_){var b=_==="entered",w=Be(He(c,a,b&&l),f);return V.createElement(i,Zv({className:w},x,{ref:v}),d)})}ar.propTypes=Hee;function mw(e){"@babel/helpers - typeof";return mw=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},mw(e)}var Gee=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Vl;function Xv(){return Xv=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},Xv.apply(this,arguments)}function qee(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={},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 Yee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zee(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&&Zee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qee(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&&vw(e,t)}function vw(e,t){return vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vw(e,t)}function Jee(e){var t=tte();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 ete(this,i)}}function ete(e,t){if(t&&(mw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JI(e)}function JI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tte(){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 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 Zc(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){gc(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 gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nte=Zc(Zc({},mr.propTypes),{},{horizontal:$.bool,isOpen:$.bool,children:$.oneOfType([$.arrayOf($.node),$.node]),tag:it,className:$.node,navbar:$.bool,cssModule:$.object,innerRef:$.shape({current:$.object})}),rte=Zc(Zc({},mr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Uv.Collapse}),ite=(Vl={},gc(Vl,um.ENTERING,"collapsing"),gc(Vl,um.ENTERED,"collapse show"),gc(Vl,um.EXITING,"collapsing"),gc(Vl,um.EXITED,"collapse"),Vl);function ote(e){return ite[e]||"collapse"}var LP=function(e){Qee(n,e);var t=Jee(n);function n(r){var i;return Yee(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(JI(i))}),i}return Xee(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,o=this.props,a=o.tag,s=o.horizontal,l=o.isOpen,c=o.className,f=o.navbar,d=o.cssModule,p=o.children;o.innerRef;var v=qee(o,Gee),y=this.state.dimension,g=TI(v,zv),x=ns(v,zv);return V.createElement(mr,Xv({},g,{in:l,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(_){var b=ote(_),w=Be(He(c,s&&"collapse-horizontal",b,f&&"navbar-collapse"),d),S=y===null?null:gc({},s?"width":"height",y);return V.createElement(a,Xv({},x,{style:Zc(Zc({},x.style),S),className:w,ref:i.nodeRef}),p)})}}]),n}(M.Component);LP.propTypes=nte;LP.defaultProps=rte;var ate=["className","cssModule","color","body","inverse","outline","tag","innerRef"];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 ste(e,t){if(e==null)return{};var n=lte(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 lte(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 cte={body:$.bool,className:$.string,color:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),inverse:$.bool,outline:$.bool,tag:it};function Dr(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,c=e.innerRef,f=ste(e,ate),d=Be(He(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return V.createElement(l,gw({},f,{className:d,ref:c}))}Dr.propTypes=cte;var ute=["className","cssModule","innerRef","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 fte(e,t){if(e==null)return{};var n=dte(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 dte(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 hte={className:$.string,cssModule:$.object,innerRef:$.oneOfType([$.object,$.string,$.func]),tag:it};function tp(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=fte(e,ute),s=Be(He(t,"card-body"),n);return V.createElement(o,yw({},a,{className:s,ref:r}))}tp.propTypes=hte;var pte=["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 mte(e,t){if(e==null)return{};var n=vte(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 vte(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:$.string,cssModule:$.object,tag:it};function eD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=mte(e,pte),a=Be(He(t,"card-footer"),n);return V.createElement(i,bw({},o,{className:a}))}eD.propTypes=gte;var yte=["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 bte(e,t){if(e==null)return{};var n=_te(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 _te(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 xte={className:$.string,cssModule:$.object,tag:it};function np(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=bte(e,yte),a=Be(He(t,"card-header"),n);return V.createElement(i,_w({},o,{className:a}))}np.propTypes=xte;var wte=["className","cssModule","tag"];function xw(){return xw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xw.apply(this,arguments)}function Ote(e,t){if(e==null)return{};var n=Ste(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 Ste(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 Pte={className:$.string,cssModule:$.object,tag:it};function tD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=Ote(e,wte),a=Be(He(t,"card-text"),n);return V.createElement(i,xw({},o,{className:a}))}tD.propTypes=Pte;var Ete=["className","cssModule","tag"];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 Cte(e,t){if(e==null)return{};var n=Tte(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 Tte(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 jte={className:$.string,cssModule:$.object,tag:it};function nD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Cte(e,Ete),a=Be(He(t,"card-title"),n);return V.createElement(i,ww({},o,{className:a}))}nD.propTypes=jte;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 Ate=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Sw(){return Sw=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},Sw.apply(this,arguments)}function r3(e){return Lte(e)||Mte(e)||Nte(e)||kte()}function kte(){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 Nte(e,t){if(e){if(typeof e=="string")return Pw(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 Pw(e,t)}}function Mte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lte(e){if(Array.isArray(e))return Pw(e)}function Pw(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 Rte(e,t){if(e==null)return{};var n=$te(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 $te(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 Ite(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i3(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 Dte(e,t,n){return t&&i3(e.prototype,t),n&&i3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fte(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 Bte(e){var t=zte();return function(){var r=Jv(e),i;if(t){var o=Jv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ute(this,i)}}function Ute(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 Zf(e)}function Zf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jv(e){return Jv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jv(e)}function o3(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?o3(Object(n),!0).forEach(function(r){Vte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wte(){}var Hte={children:$.oneOfType([$.node,$.func]).isRequired,popperClassName:$.string,placement:$.string,placementPrefix:$.string,arrowClassName:$.string,hideArrow:$.bool,tag:it,isOpen:$.bool,cssModule:$.object,offset:$.arrayOf($.number),fallbackPlacements:$.array,flip:$.bool,container:Hc,target:Hc.isRequired,modifiers:$.array,strategy:$.string,boundariesElement:$.oneOfType([$.string,xP]),onClosed:$.func,fade:$.bool,transition:$.shape(ar.propTypes)},Gte={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Wte,fade:!0,transition:Jm({},ar.defaultProps)},RP=function(e){Fte(n,e);var t=Bte(n);function n(r){var i;return Ite(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(Zf(i)),i.getTargetNode=i.getTargetNode.bind(Zf(i)),i.getRef=i.getRef.bind(Zf(i)),i.onClosed=i.onClosed.bind(Zf(i)),i.state={isOpen:r.isOpen},i}return Dte(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 Zd(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Zd(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,l=i.flip;i.target;var c=i.offset,f=i.fallbackPlacements,d=i.placementPrefix,p=i.arrowClassName,v=i.hideArrow,y=i.popperClassName,g=i.tag;i.container;var x=i.modifiers,_=i.strategy,b=i.boundariesElement;i.onClosed;var w=i.fade,S=i.transition,P=i.placement,E=Rte(i,Ate),T=Be(He("arrow",p),o),j=Be(He(y,d?"".concat(d,"-auto"):""),this.props.cssModule),F=x.map(function(K){return K.name}),k=[{name:"offset",options:{offset:c}},{name:"flip",enabled:l,options:{fallbackPlacements:f}},{name:"preventOverflow",options:{boundary:b}}].filter(function(K){return!F.includes(K.name)}),I=[].concat(r3(k),r3(x)),D=Jm(Jm(Jm({},ar.defaultProps),S),{},{baseClass:w?S.baseClass:"",timeout:w?S.timeout:0});return V.createElement(ar,Sw({},D,E,{in:s,onExited:this.onClosed,tag:g}),V.createElement(YI,{referenceElement:this.targetNode,modifiers:I,placement:P,strategy:_},function(K){var W=K.ref,X=K.style,Q=K.placement,te=K.isReferenceHidden,Z=K.arrowProps,z=K.update;return V.createElement("div",{ref:W,style:X,className:j,"data-popper-placement":Q,"data-popper-reference-hidden":te?"true":void 0},typeof a=="function"?a({update:z}):a,!v&&V.createElement("span",{ref:Z.ref,className:T,style:Z.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Fs.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=Hte;RP.defaultProps=Gte;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 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 qte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a3(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 Kte(e,t,n){return t&&a3(e.prototype,t),n&&a3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yte(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 Zte(e){var t=Qte();return function(){var r=eg(e),i;if(t){var o=eg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xte(this,i)}}function Xte(e,t){if(t&&(th(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yr(e)}function yr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qte(){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 eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eg(e)}var $P={children:$.oneOfType([$.node,$.func]),placement:$.oneOf(pX),target:Hc.isRequired,container:Hc,isOpen:$.bool,disabled:$.bool,hideArrow:$.bool,boundariesElement:$.oneOfType([$.string,xP]),className:$.string,innerClassName:$.string,arrowClassName:$.string,popperClassName:$.string,cssModule:$.object,toggle:$.func,autohide:$.bool,placementPrefix:$.string,delay:$.oneOfType([$.shape({show:$.number,hide:$.number}),$.number]),modifiers:$.array,strategy:$.string,offset:$.arrayOf($.number),innerRef:$.oneOfType([$.func,$.string,$.object]),trigger:$.string,fade:$.bool,flip:$.bool},rD={show:0,hide:50},Jte={isOpen:!1,hideArrow:!1,autohide:!1,delay:rD,toggle:function(){},trigger:"click",fade:!0};function iD(e,t){return t&&(e===t||t.contains(e))}function s3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return iD(e,n)})[0]}var IP=function(e){Yte(n,e);var t=Zte(n);function n(r){var i;return qte(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(yr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(yr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(yr(i)),i.toggle=i.toggle.bind(yr(i)),i.showWithDelay=i.showWithDelay.bind(yr(i)),i.hideWithDelay=i.hideWithDelay.bind(yr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(yr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(yr(i)),i.show=i.show.bind(yr(i)),i.hide=i.hide.bind(yr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(yr(i)),i.getRef=i.getRef.bind(yr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Kte(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||s3(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!iD(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&s3(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):th(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return th(o)==="object"?isNaN(o[i])?rD[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=Zd(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,c=a.innerClassName,f=a.isOpen,d=a.hideArrow,p=a.boundariesElement,v=a.placement,y=a.placementPrefix,g=a.arrowClassName,x=a.popperClassName,_=a.container,b=a.modifiers,w=a.strategy,S=a.offset,P=a.fade,E=a.flip,T=a.children,j=ns(this.props,Object.keys($P)),F=Be(x,l),k=Be(c,l);return V.createElement(RP,{className:s,target:o,isOpen:f,hideArrow:d,boundariesElement:p,placement:v,placementPrefix:y,arrowClassName:g,popperClassName:F,container:_,modifiers:b,strategy:w,offset:S,cssModule:l,fade:P,flip:E},function(I){var D=I.update;return V.createElement("div",Cw({},j,{ref:i.getRef,className:k,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof T=="function"?T({update:D}):T)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(V.Component);IP.propTypes=$P;IP.defaultProps=Jte;var ene=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function tg(){return tg=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},tg.apply(this,arguments)}function l3(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 C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l3(Object(n),!0).forEach(function(r){tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nne(e,t){if(e==null)return{};var n=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}var ine={animated:$.bool,bar:$.bool,barAriaLabelledBy:$.string,barAriaValueText:$.string,barClassName:$.string,barStyle:$.object,children:$.node,className:$.string,cssModule:$.object,color:$.string,max:$.oneOfType([$.string,$.number]),min:$.oneOfType([$.string,$.number]),multi:$.bool,striped:$.bool,style:$.object,tag:it,value:$.oneOfType([$.string,$.number])};function oD(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,c=e.max,f=c===void 0?100:c,d=e.animated,p=e.striped,v=e.color,y=e.bar,g=e.multi,x=e.tag,_=x===void 0?"div":x,b=e.style,w=b===void 0?{}:b,S=e.barStyle,P=S===void 0?{}:S,E=e.barAriaValueText,T=e.barAriaLabelledBy,j=nne(e,ene),F=$A(a)/$A(f)*100,k=Be(He(n,"progress"),i),I=Be(He("progress-bar",y&&n||r,d?"progress-bar-animated":null,v?"bg-".concat(v):null,p||d?"progress-bar-striped":null),i),D={className:I,style:C1(C1(C1({},y?w:{}),P),{},{width:"".concat(F,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":f,"aria-valuetext":E,"aria-labelledby":T,children:t};return y?V.createElement(_,tg({},j,D)):V.createElement(_,tg({},j,{style:w,className:k}),g?t:V.createElement("div",D))}oD.propTypes=ine;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 one(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ane(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 sne(e,t,n){return t&&ane(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lne(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 cne(e){var t=dne();return function(){var r=ng(e),i;if(t){var o=ng(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return une(this,i)}}function une(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 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 dne(){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 ng(e){return ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ng(e)}var hne={children:$.node.isRequired,node:$.any},aD=function(e){lne(n,e);var t=cne(n);function n(){return one(this,n),t.apply(this,arguments)}return sne(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)),Fs.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(V.Component);aD.propTypes=hne;function kw(e){"@babel/helpers - typeof";return kw=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},kw(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 Wl(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){ec(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 pd(){return pd=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},pd.apply(this,arguments)}function ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mne(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 vne(e,t,n){return t&&mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gne(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&&Nw(e,t)}function Nw(e,t){return Nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Nw(e,t)}function yne(e){var t=_ne();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 bne(this,i)}}function bne(e,t){if(t&&(kw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qr(e)}function qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _ne(){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)}function ig(){}var u3=$.shape(ar.propTypes),sD={autoFocus:$.bool,backdrop:$.oneOfType([$.bool,$.oneOf(["static"])]),backdropClassName:$.string,backdropTransition:u3,centered:$.bool,children:$.node,contentClassName:$.string,className:$.string,container:Hc,cssModule:$.object,external:$.node,fade:$.bool,fullscreen:$.oneOfType([$.bool,$.oneOf(["sm","md","lg","xl"])]),innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,keyboard:$.bool,labelledBy:$.string,modalClassName:$.string,modalTransition:u3,onClosed:$.func,onEnter:$.func,onExit:$.func,onOpened:$.func,returnFocusAfterClose:$.bool,role:$.string,scrollable:$.bool,size:$.string,toggle:$.func,trapFocus:$.bool,unmountOnClose:$.bool,wrapClassName:$.string,zIndex:$.oneOfType([$.number,$.string])},xne=Object.keys(sD),wne={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:ig,onClosed:ig,modalTransition:{timeout:Uv.Modal},backdropTransition:{mountOnEnter:!0,timeout:Uv.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},vr=function(e){gne(n,e);var t=yne(n);function n(r){var i;return pne(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(qr(i)),i.handleBackdropClick=i.handleBackdropClick.bind(qr(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(qr(i)),i.handleEscape=i.handleEscape.bind(qr(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(qr(i)),i.handleTab=i.handleTab.bind(qr(i)),i.onOpened=i.onOpened.bind(qr(i)),i.onClosed=i.onClosed.bind(qr(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(qr(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(qr(i)),i.trapFocus=i.trapFocus.bind(qr(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return vne(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),l=0,c=0;c<a;c+=1)if(o[c]===s){l=c;break}i.shiftKey&&l===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&l===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===dt.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||ig)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||ig)(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(yX.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=Zd(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=uX(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),fX(),n.openCount===0&&(document.body.className=He(document.body.className,Be("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=Be("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),CI(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=ns(this.props,xne),s="modal-dialog";return V.createElement("div",pd({},a,{className:Be(He(s,this.props.className,(i={},ec(i,"modal-".concat(this.props.size),this.props.size),ec(i,"".concat(s,"-centered"),this.props.centered),ec(i,"".concat(s,"-scrollable"),this.props.scrollable),ec(i,"modal-fullscreen",this.props.fullscreen===!0),ec(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(c){o._dialog=c}}),V.createElement("div",{className:Be(He("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,c=a.backdropClassName,f=a.cssModule,d=a.isOpen,p=a.backdrop,v=a.role,y=a.labelledBy,g=a.external,x=a.innerRef,_={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":y,"aria-modal":!0,role:v,tabIndex:"-1"},b=this.props.fade,w=Wl(Wl(Wl({},ar.defaultProps),this.props.modalTransition),{},{baseClass:b?this.props.modalTransition.baseClass:"",timeout:b?this.props.modalTransition.timeout:0}),S=Wl(Wl(Wl({},ar.defaultProps),this.props.backdropTransition),{},{baseClass:b?this.props.backdropTransition.baseClass:"",timeout:b?this.props.backdropTransition.timeout:0}),P=p&&(b?V.createElement(ar,pd({},S,{in:d&&!!p,cssModule:f,className:Be(He("modal-backdrop",c),f)})):V.createElement("div",{className:Be(He("modal-backdrop","show",c),f)}));return V.createElement(aD,{node:this._element},V.createElement("div",{className:Be(s)},V.createElement(ar,pd({},_,w,{in:d,onEntered:this.onOpened,onExited:this.onClosed,cssModule:f,className:Be(He("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),f),innerRef:x}),g,this.renderModalDialog()),P))}return null}}]),n}(V.Component);vr.propTypes=sD;vr.defaultProps=wne;vr.openCount=0;vr.originalBodyOverflow=null;var One=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];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 Sne(e,t){if(e==null)return{};var n=Pne(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 Pne(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 Ene={children:$.node,className:$.string,close:$.object,closeAriaLabel:$.string,cssModule:$.object,tag:it,toggle:$.func,wrapTag:it};function mo(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,c=l===void 0?"div":l,f=e.closeAriaLabel,d=f===void 0?"Close":f,p=e.close,v=Sne(e,One),y=Be(He(n,"modal-header"),r);return!p&&o&&(t=V.createElement("button",{type:"button",onClick:o,className:Be("btn-close",r),"aria-label":d})),V.createElement(c,Mw({},v,{className:y}),V.createElement(s,{className:Be("modal-title",r)},i),p||t)}mo.propTypes=Ene;var Cne=["className","cssModule","tag"];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)}function Tne(e,t){if(e==null)return{};var n=jne(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 jne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ane={className:$.string,cssModule:$.object,tag:it};function Li(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Tne(e,Cne),a=Be(He(t,"modal-body"),n);return V.createElement(i,Lw({},o,{className:a}))}Li.propTypes=Ane;var kne=["className","cssModule","tag"];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 Nne(e,t){if(e==null)return{};var n=Mne(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 Mne(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 Lne={className:$.string,cssModule:$.object,tag:it};function as(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Nne(e,kne),a=Be(He(t,"modal-footer"),n);return V.createElement(i,Rw({},o,{className:a}))}as.propTypes=Lne;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)}var Rne={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function o0(e){var t=He("tooltip-arrow",e.arrowClassName),n=He("tooltip","show",e.popperClassName),r=He("tooltip-inner",e.innerClassName),i=OP(Rne,e);return V.createElement(IP,$w({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}o0.propTypes=$P;var $ne=["className","cssModule","tag","flush","horizontal","numbered"];function Iw(){return Iw=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},Iw.apply(this,arguments)}function Ine(e,t){if(e==null)return{};var n=Dne(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 Dne(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 Fne={className:$.string,cssModule:$.object,flush:$.bool,horizontal:$.oneOfType([$.bool,$.string]),numbered:$.bool,tag:it},Bne=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function lD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,c=l===void 0?!1:l,f=Ine(e,$ne),d=Be(He(t,"list-group",o?"list-group-flush":Bne(s),{"list-group-numbered":c}),n);return V.createElement(i,Iw({},f,{className:d}))}lD.propTypes=Fne;var Une=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];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 zne(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={},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 Wne={children:$.node,row:$.bool,check:$.bool,switch:$.bool,inline:$.bool,floating:$.bool,noMargin:$.bool,disabled:$.bool,tag:it,className:$.string,cssModule:$.object};function cl(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.noMargin,c=e.tag,f=c===void 0?"div":c,d=e.switch,p=zne(e,Une),v=o||d,y=Be(He(t,r?"row":!1,v?"form-check":!1,d?"form-switch":!1,v||l?!1:"mb-3",v&&a?"form-check-inline":!1,v&&i?"disabled":!1,s&&"form-floating"),n);return f==="fieldset"&&(p.disabled=i),V.createElement(f,Dw({},p,{className:y}))}cl.propTypes=Wne;function Fw(e){"@babel/helpers - typeof";return Fw=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},Fw(e)}var Hne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];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 Gne(e,t){if(e==null)return{};var n=qne(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 qne(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 Kne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yne(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 Zne(e,t,n){return t&&Yne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xne(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 Qne(e){var t=ere();return function(){var r=og(e),i;if(t){var o=og(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Jne(this,i)}}function Jne(e,t){if(t&&(Fw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zw(e)}function zw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ere(){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 og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}var tre={children:$.node,type:$.string,size:$.oneOfType([$.number,$.string]),bsSize:$.string,valid:$.bool,invalid:$.bool,tag:it,innerRef:$.oneOfType([$.object,$.func,$.string]),plaintext:$.bool,addon:$.bool,className:$.string,cssModule:$.object},An=function(e){Xne(n,e);var t=Qne(n);function n(r){var i;return Kne(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(zw(i)),i.focus=i.focus.bind(zw(i)),i}return Zne(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,c=i.bsSize,f=i.valid,d=i.invalid,p=i.tag,v=i.addon,y=i.plaintext,g=i.innerRef,x=Gne(i,Hne),_=["switch","radio","checkbox"].indexOf(l)>-1,b=/\D/g,w=l==="textarea",S=l==="select",P=l==="range",E=p||(S||w?l:"input"),T="form-control";y?(T="".concat(T,"-plaintext"),E=p||"input"):P?T="form-range":S?T="form-select":_&&(v?T=null:T="form-check-input"),x.size&&b.test(x.size)&&(Dx(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),c=x.size,delete x.size);var j=Be(He(o,d&&"is-invalid",f&&"is-valid",c?S?"form-select-".concat(c):"form-control-".concat(c):!1,T),a);return(E==="input"||p&&typeof p=="function")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(y||l==="select"||typeof E!="string"||E==="select")&&(Dx('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),V.createElement(E,Bw({},x,{ref:g,className:j,"aria-invalid":d}))}}]),n}(V.Component);An.propTypes=tre;var nre=["className","cssModule","tag","type","size"];function ag(){return ag=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},ag.apply(this,arguments)}function rre(e,t){if(e==null)return{};var n=ire(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ire(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ore={className:$.string,cssModule:$.object,size:$.string,tag:it,type:$.string};function a0(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=rre(e,nre),s=Be(He(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?V.createElement(is,ag({},a,{className:s})):V.createElement(ZI.Provider,{value:{insideInputGroup:!0}},V.createElement(i,ag({},a,{className:s})))}a0.propTypes=ore;var are=["className","listClassName","cssModule","size","tag","listTag","aria-label"];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 sre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lre(e,t){if(e==null)return{};var n=cre(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 cre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ure={children:$.node,className:$.string,listClassName:$.string,cssModule:$.object,size:$.string,tag:it,listTag:it,"aria-label":$.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,l=s===void 0?"ul":s,c=e["aria-label"],f=c===void 0?"pagination":c,d=lre(e,are),p=Be(He(t),r),v=Be(He(n,"pagination",sre({},"pagination-".concat(i),!!i)),r);return V.createElement(a,{className:p,"aria-label":f},V.createElement(l,Vw({},d,{className:v})))}DP.propTypes=ure;var fre=["active","className","cssModule","disabled","tag"];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 dre(e,t){if(e==null)return{};var n=hre(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 hre(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 pre={active:$.bool,children:$.node,className:$.string,cssModule:$.object,disabled:$.bool,tag:it};function Zs(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=dre(e,fre),l=Be(He(n,"page-item",{active:t,disabled:i}),r);return V.createElement(a,Ww({},s,{className:l}))}Zs.propTypes=pre;var mre=["className","cssModule","next","previous","first","last","tag"];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 vre(e,t){if(e==null)return{};var n=gre(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 gre(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 yre={"aria-label":$.string,children:$.node,className:$.string,cssModule:$.object,next:$.bool,previous:$.bool,first:$.bool,last:$.bool,tag:it};function Xs(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,c=vre(e,mre),f=Be(He(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 y=e.children;return y&&Array.isArray(y)&&y.length===0&&(y=null),!c.href&&l==="a"&&(l="button"),(i||r||o||a)&&(y=[V.createElement("span",{"aria-hidden":"true",key:"caret"},y||v),V.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),V.createElement(l,Hw({},c,{className:f,"aria-label":p}),y)}Xs.propTypes=yre;var bre=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];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 f3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f3(Object(n),!0).forEach(function(r){_re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xre(e,t){if(e==null)return{};var n=wre(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 wre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ore={children:$.node,className:$.string,closeClassName:$.string,closeAriaLabel:$.string,color:$.string,cssModule:$.object,fade:$.bool,innerRef:$.oneOfType([$.object,$.string,$.func]),isOpen:$.bool,tag:it,toggle:$.func,transition:$.shape(ar.propTypes)};function cD(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,c=l===void 0?"success":l,f=e.isOpen,d=f===void 0?!0:f,p=e.toggle,v=e.children,y=e.transition,g=y===void 0?Tf(Tf({},ar.defaultProps),{},{unmountOnExit:!0}):y,x=e.fade,_=x===void 0?!0:x,b=e.innerRef,w=xre(e,bre),S=Be(He(t,"alert","alert-".concat(c),{"alert-dismissible":p}),o),P=Be(He("btn-close",n),o),E=Tf(Tf(Tf({},ar.defaultProps),g),{},{baseClass:_?g.baseClass:"",timeout:_?g.timeout:0});return V.createElement(ar,Gw({},w,E,{tag:s,className:S,in:d,role:"alert",innerRef:b}),p?V.createElement("button",{type:"button",className:P,"aria-label":i,onClick:p}):null,v)}cD.propTypes=Ore;var Sre=["className","cssModule","tag","active","disabled","action","color"];function qw(){return qw=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},qw.apply(this,arguments)}function Pre(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 Cre={action:$.bool,active:$.bool,className:$.string,cssModule:$.object,color:$.string,disabled:$.bool,tag:it},Tre=function(t){t.preventDefault()};function uD(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,c=Pre(e,Sre),f=Be(He(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(c.onClick=Tre),V.createElement(i,qw({},c,{className:f}))}uD.propTypes=Cre;function Kw(e){"@babel/helpers - typeof";return Kw=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},Kw(e)}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 jre(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){Are(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 Are(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 kre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mre(e,t,n){return t&&Nre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lre(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&&Zw(e,t)}function Zw(e,t){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zw(e,t)}function Rre(e){var t=Ire();return function(){var r=sg(e),i;if(t){var o=sg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $re(this,i)}}function $re(e,t){if(t&&(Kw(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fD(e)}function fD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ire(){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 sg(e){return sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sg(e)}var Dre=["defaultOpen"],rp=function(e){Lre(n,e);var t=Rre(n);function n(r){var i;return kre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(fD(i)),i}return Mre(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(is,Yw({isOpen:this.state.isOpen,toggle:this.toggle},ns(this.props,Dre)))}}]),n}(M.Component);rp.propTypes=jre({defaultOpen:$.bool,onToggle:$.func},is.propTypes);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)}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 Fre(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){Bre(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 Bre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qw(){return Qw=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},Qw.apply(this,arguments)}function Ure(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zre(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 Vre(e,t,n){return t&&zre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wre(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&&Jw(e,t)}function Jw(e,t){return Jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jw(e,t)}function Hre(e){var t=qre();return function(){var r=lg(e),i;if(t){var o=lg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Gre(this,i)}}function Gre(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 dD(e)}function dD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qre(){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 lg(e){return lg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lg(e)}var Kre=["defaultOpen"],Fr=function(e){Wre(n,e);var t=Hre(n);function n(r){var i;return Ure(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(dD(i)),i}return Vre(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return V.createElement(o0,Qw({isOpen:this.state.isOpen,toggle:this.toggle},ns(this.props,Kre)))}}]),n}(M.Component);Fr.propTypes=Fre({defaultOpen:$.bool},o0.propTypes);const Yre=e=>({error:"border-danger",default:""})[e],Zre=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(Pr,{className:Oe("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(Dr,{className:Yre(r),body:!0,children:m.jsxs("h3",{className:Oe("text-center mb-0",Zre(r)),children:[n&&m.jsx(je,{icon:R6,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},gt=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(Dr,{...r,children:[e&&m.jsx(np,{role:"heading","aria-level":4,children:e}),m.jsx(tp,{className:n,children:t})]}),Zn=({children:e,type:t,className:n,small:r=!1})=>m.jsx(Pr,{className:n,children:m.jsx("div",{className:Oe({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.jsx(gt,{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})})}),hD=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=M.useId(),s=f=>t==null?void 0:t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return m.jsxs("span",{className:Oe("form-check",l,n),style:c,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})]})},pD=e=>m.jsx(hD,{type:"checkbox",...e}),Vo=e=>m.jsx(hD,{type:"switch",...e}),Ru=({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]}),ev=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=M.useId();return m.jsx(Ru,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:l,children:m.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},Xre=500;let tv;const p3=()=>{tv!==null&&clearTimeout(tv),tv=null},ip=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=M.useState(i),l=(c,f=Xre)=>{s(c),p3(),tv=o(()=>{e(c),p3()},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:c=>l(c.target.value)}),m.jsx(je,{icon:BK,className:"search-field__icon"}),m.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},mD=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},s0=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]=M.useState(e),r=M.useCallback(()=>n(a=>!a),[]),i=M.useCallback(()=>n(!0),[]),o=M.useCallback(()=>n(!1),[]);return[t,r,i,o]},vD=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=M.useState(e),a=M.useRef(e),s=M.useRef(),l=M.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,l]},Mi=()=>M.useRef(null),$u=()=>{const{search:e}=pr();return M.useMemo(()=>mD(e),[e])},ea=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:c,...f})=>{const[d,p]=Lt(),v=Oe("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),y={minWidth:s&&`${s}px`};return m.jsxs(is,{isOpen:d,toggle:p,disabled:t,className:i,children:[m.jsx(Jo,{size:c,caret:!o,className:v,color:"primary",...f,children:e}),m.jsx(os,{className:"w-100",end:a,style:y,children:r})]})},l0=({children:e,minWidth:t,label:n="Options"})=>m.jsx(ea,{text:m.jsx(je,{className:"px-1",icon:AK}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),md=({children:e,...t})=>m.jsx(PP,{children:m.jsx(EP,{className:"nav-pills__nav-link",tag:x6,...t,children:e})}),gD=({children:e,fill:t=!1,className:n=""})=>m.jsx(Dr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(SP,{pills:!0,fill:t,children:M.Children.map(e,r=>{if(!M.isValidElement(r)||r.type!==md)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),c0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",yD=(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}),Qre=e=>e.dir?`${e.field}-${e.dir}`:void 0,Jre=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function op({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=c0(s,t.field,t.dir);n(l?s:void 0,l)};return m.jsxs(rp,{children:[m.jsxs(Jo,{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(os,{end:i,className:Oe("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>m.jsxs(Ne,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&m.jsx(je,{icon:t.dir==="ASC"?LK:bK,className:"ordering-dropdown__sort-icon"})]},s)),m.jsx(Ne,{divider:!0}),m.jsx(Ne,{disabled:!t.field,onClick:()=>n(),children:m.jsx("i",{children:"Clear selection"})})]})]})}const nh="#4696e5",eie="rgba(70, 150, 229, 0.4)",e2="#f77f28",tie="rgba(247, 127, 40, 0.4)",nie="white",rie="#161b22",iie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},ap=()=>{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",oie=M.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=Lt(),a=M.useCallback(()=>{o(),n()},[n,o]);return m.jsxs(cD,{className:"app-update-banner",isOpen:e,toggle:t,tag:gt,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:HK,className:"ms-1"})]}),i&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})}),bD=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(gt,{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(At,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Ri(e){return M.useRef(e).current}function $i(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const aie=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"})})},_D=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var x;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:l,EditServer:c,Settings:f,ManageServers:d,ShlinkVersionsContainer:p}=Ri(_D),v=pr(),y=M.useRef(t),g=v.pathname==="/";return M.useEffect(()=>{Object.keys(y.current).length===0&&e()},[e]),M.useEffect(()=>{var _;iie(((_=n.ui)==null?void 0:_.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":g}),children:m.jsxs(Xy,{children:[m.jsx(ot,{index:!0,element:m.jsx(a,{})}),m.jsx(ot,{path:"/settings/*",element:m.jsx(f,{})}),m.jsx(ot,{path:"/manage-servers",element:m.jsx(d,{})}),m.jsx(ot,{path:"/server/create",element:m.jsx(l,{})}),m.jsx(ot,{path:"/server/:serverId/edit",element:m.jsx(c,{})}),m.jsx(ot,{path:"/server/:serverId/*",element:m.jsx(s,{})}),m.jsx(ot,{path:"*",element:m.jsx(bD,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(p,{})})]}),m.jsx(oie,{isOpen:r,toggle:i,forceUpdate:aie})]})},sie=$i(_D,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function Cn(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 lie=typeof Symbol=="function"&&Symbol.observable||"@@observable",m3=lie,T1=()=>Math.random().toString(36).substring(7).split("").join("."),cie={INIT:`@@redux/INIT${T1()}`,REPLACE:`@@redux/REPLACE${T1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${T1()}`},cg=cie;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 xD(e,t,n){if(typeof e!="function")throw new Error(Cn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Cn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Cn(1));return n(xD)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((x,_)=>{a.set(_,x)}))}function f(){if(l)throw new Error(Cn(3));return i}function d(x){if(typeof x!="function")throw new Error(Cn(4));if(l)throw new Error(Cn(5));let _=!0;c();const b=s++;return a.set(b,x),function(){if(_){if(l)throw new Error(Cn(6));_=!1,c(),a.delete(b),o=null}}}function p(x){if(!BP(x))throw new Error(Cn(7));if(typeof x.type>"u")throw new Error(Cn(8));if(typeof x.type!="string")throw new Error(Cn(17));if(l)throw new Error(Cn(9));try{l=!0,i=r(i,x)}finally{l=!1}return(o=a).forEach(b=>{b()}),x}function v(x){if(typeof x!="function")throw new Error(Cn(10));r=x,p({type:cg.REPLACE})}function y(){const x=d;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Cn(11));function b(){const S=_;S.next&&S.next(f())}return b(),{unsubscribe:x(b)}},[m3](){return this}}}return p({type:cg.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:v,[m3]:y}}function uie(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:cg.INIT})>"u")throw new Error(Cn(12));if(typeof n(void 0,{type:cg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Cn(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{uie(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const c={};for(let f=0;f<r.length;f++){const d=r[f],p=n[d],v=a[d],y=p(v,s);if(typeof y>"u")throw s&&s.type,new Error(Cn(14));c[d]=y,l=l||y!==v}return l=l||r.length!==Object.keys(a).length,l?c:a}}function ug(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function fie(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Cn(15))};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=ug(...s)(i.dispatch),{...i,dispatch:o}}}function die(e){return BP(e)&&"type"in e&&typeof e.type=="string"}var wD=Symbol.for("immer-nothing"),v3=Symbol.for("immer-draftable"),Mr=Symbol.for("immer-state");function Si(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xc=Object.getPrototypeOf;function ul(e){return!!e&&!!e[Mr]}function Wo(e){var t;return e?OD(e)||Array.isArray(e)||!!e[v3]||!!((t=e.constructor)!=null&&t[v3])||f0(e)||d0(e):!1}var hie=Object.prototype.constructor.toString();function OD(e){if(!e||typeof e!="object")return!1;const t=Xc(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)===hie}function rh(e,t){u0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function u0(e){const t=e[Mr];return t?t.type_:Array.isArray(e)?1:f0(e)?2:d0(e)?3:0}function t2(e,t){return u0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function SD(e,t,n){const r=u0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function pie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function f0(e){return e instanceof Map}function d0(e){return e instanceof Set}function Cs(e){return e.copy_||e.base_}function n2(e,t){if(f0(e))return new Map(e);if(d0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&OD(e))return Xc(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Mr];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(Xc(e),n)}function zP(e,t=!1){return h0(e)||ul(e)||!Wo(e)||(u0(e)>1&&(e.set=e.add=e.clear=e.delete=mie),Object.freeze(e),t&&rh(e,(n,r)=>zP(r,!0))),e}function mie(){Si(2)}function h0(e){return Object.isFrozen(e)}var vie={};function fl(e){const t=vie[e];return t||Si(0,e),t}var ih;function PD(){return ih}function gie(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function g3(e,t){t&&(fl("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function r2(e){i2(e),e.drafts_.forEach(yie),e.drafts_=null}function i2(e){e===ih&&(ih=e.parent_)}function y3(e){return ih=gie(ih,e)}function yie(e){const t=e[Mr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function b3(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Mr].modified_&&(r2(t),Si(4)),Wo(e)&&(e=fg(t,e),t.parent_||dg(t,e)),t.patches_&&fl("Patches").generateReplacementPatches_(n[Mr].base_,e,t.patches_,t.inversePatches_)):e=fg(t,n,[]),r2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==wD?e:void 0}function fg(e,t,n){if(h0(t))return t;const r=t[Mr];if(!r)return rh(t,(i,o)=>_3(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return dg(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),rh(o,(s,l)=>_3(e,r,i,s,l,n,a)),dg(e,i,!1),n&&e.patches_&&fl("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function _3(e,t,n,r,i,o,a){if(ul(i)){const s=o&&t&&t.type_!==3&&!t2(t.assigned_,r)?o.concat(r):void 0,l=fg(e,i,s);if(SD(n,r,l),ul(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Wo(i)&&!h0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fg(e,i),(!t||!t.scope_.parent_)&&dg(e,i)}}function dg(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_:PD(),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=oh);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var VP={get(e,t){if(t===Mr)return e;const n=Cs(e);if(!t2(n,t))return _ie(e,n,t);const r=n[t];return e.finalized_||!Wo(r)?r:r===j1(e.base_,t)?(A1(e),e.copy_[t]=a2(r,e)):r},has(e,t){return t in Cs(e)},ownKeys(e){return Reflect.ownKeys(Cs(e))},set(e,t,n){const r=ED(Cs(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=j1(Cs(e),t),o=i==null?void 0:i[Mr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(pie(n,i)&&(n!==void 0||t2(e.base_,t)))return!0;A1(e),o2(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 j1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,A1(e),o2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Cs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Si(11)},getPrototypeOf(e){return Xc(e.base_)},setPrototypeOf(){Si(12)}},oh={};rh(VP,(e,t)=>{oh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});oh.deleteProperty=function(e,t){return oh.set.call(this,e,t,void 0)};oh.set=function(e,t,n){return VP.set.call(this,e[0],t,n,e[0])};function j1(e,t){const n=e[Mr];return(n?Cs(n):e)[t]}function _ie(e,t,n){var i;const r=ED(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function ED(e,t){if(!(t in e))return;let n=Xc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Xc(n)}}function o2(e){e.modified_||(e.modified_=!0,e.parent_&&o2(e.parent_))}function A1(e){e.copy_||(e.copy_=n2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var xie=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...c){return a.produce(l,f=>n.call(this,f,...c))}}typeof n!="function"&&Si(6),r!==void 0&&typeof r!="function"&&Si(7);let i;if(Wo(t)){const o=y3(this),a=a2(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?r2(o):i2(o)}return g3(o,r),b3(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===wD&&(i=void 0),this.autoFreeze_&&zP(i,!0),r){const o=[],a=[];fl("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Si(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wo(e)||Si(8),ul(e)&&(e=wie(e));const t=y3(this),n=a2(e,void 0);return n[Mr].isManual_=!0,i2(t),n}finishDraft(e,t){const n=e&&e[Mr];(!n||!n.isManual_)&&Si(9);const{scope_:r}=n;return g3(r,t),b3(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=fl("Patches").applyPatches_;return ul(e)?r(e,t):this.produce(e,i=>r(i,t))}};function a2(e,t){const n=f0(e)?fl("MapSet").proxyMap_(e,t):d0(e)?fl("MapSet").proxySet_(e,t):bie(e,t);return(t?t.scope_:PD()).drafts_.push(n),n}function wie(e){return ul(e)||Si(10,e),CD(e)}function CD(e){if(!Wo(e)||h0(e))return e;const t=e[Mr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=n2(e,t.scope_.immer_.useStrictShallowCopy_)}else n=n2(e,!0);return rh(n,(r,i)=>{SD(n,r,CD(i))}),t&&(t.finalized_=!1),n}var Lr=new xie,TD=Lr.produce;Lr.produceWithPatches.bind(Lr);Lr.setAutoFreeze.bind(Lr);Lr.setUseStrictShallowCopy.bind(Lr);Lr.applyPatches.bind(Lr);Lr.createDraft.bind(Lr);Lr.finishDraft.bind(Lr);function jD(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Oie=jD(),Sie=jD,Pie=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ug:ug.apply(null,arguments)},Eie=e=>e&&typeof e.match=="function";function Xn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(ro(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=>die(r)&&r.type===e,n}var AD=class Xf extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xf.prototype)}static get[Symbol.species](){return Xf}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xf(...t[0].concat(this)):new Xf(...t.concat(this))}};function x3(e){return Wo(e)?TD(e,()=>{}):e}function w3(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(ro(10));const r=n.insert(t,e);return e.set(t,r),r}function Cie(e){return typeof e=="boolean"}var Tie=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new AD;return n&&(Cie(n)?a.push(Oie):a.push(Sie(n.extraArgument))),a},jie="RTK_autoBatch",kD=e=>t=>{setTimeout(t,e)},Aie=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kD(10),kie=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Aie:e.type==="callback"?e.queueNotification:kD(e.timeout),c=()=>{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[jie]),o=!i,o&&(a||(a=!0,l(c))),r.dispatch(f)}finally{i=!0}}})},Nie=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new AD(e);return r&&i.push(kie(typeof r=="object"?r:void 0)),i};function ND(e){const t=Tie(),{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(ro(1));let l;typeof r=="function"?l=r(t):l=t();let c=ug;i&&(c=Pie({trace:!1,...typeof i=="object"&&i}));const f=fie(...l),d=Nie(f);let p=typeof a=="function"?a(d):d();const v=c(...p);return xD(s,o,v)}function MD(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(ro(28));if(s in t)throw new Error(ro(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 Mie(e){return typeof e=="function"}function Lie(e,t){let[n,r,i]=MD(t),o;if(Mie(e))o=()=>x3(e());else{const s=x3(e);o=()=>s}function a(s=o(),l){let c=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,d)=>{if(d)if(ul(f)){const v=d(f,l);return v===void 0?f:v}else{if(Wo(f))return TD(f,p=>d(p,l));{const p=d(f,l);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 Rie=(e,t)=>Eie(e)?e.match(t):e(t);function $ie(...e){return t=>e.some(n=>Rie(n,t))}var Iie="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Die=(e=21)=>{let t="",n=e;for(;n--;)t+=Iie[Math.random()*64|0];return t},Fie=["name","message","stack","code"],k1=class{constructor(e,t){Fl(this,"_type");this.payload=e,this.meta=t}},O3=class{constructor(e,t){Fl(this,"_type");this.payload=e,this.meta=t}},Bie=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Fie)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},LD=(()=>{function e(t,n,r){const i=Xn(t+"/fulfilled",(l,c,f,d)=>({payload:l,meta:{...d||{},arg:f,requestId:c,requestStatus:"fulfilled"}})),o=Xn(t+"/pending",(l,c,f)=>({payload:void 0,meta:{...f||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Xn(t+"/rejected",(l,c,f,d,p)=>({payload:d,error:(r&&r.serializeError||Bie)(l||"Rejected"),meta:{...p||{},arg:f,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(c,f,d)=>{const p=r!=null&&r.idGenerator?r.idGenerator(l):Die(),v=new AbortController;let y,g;function x(b){g=b,v.abort()}const _=async function(){var S,P;let b;try{let E=(S=r==null?void 0:r.condition)==null?void 0:S.call(r,l,{getState:f,extra:d});if(zie(E)&&(E=await E),E===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((j,F)=>{y=()=>{F({name:"AbortError",message:g||"Aborted"})},v.signal.addEventListener("abort",y)});c(o(p,l,(P=r==null?void 0:r.getPendingMeta)==null?void 0:P.call(r,{requestId:p,arg:l},{getState:f,extra:d}))),b=await Promise.race([T,Promise.resolve(n(l,{dispatch:c,getState:f,extra:d,requestId:p,signal:v.signal,abort:x,rejectWithValue:(j,F)=>new k1(j,F),fulfillWithValue:(j,F)=>new O3(j,F)})).then(j=>{if(j instanceof k1)throw j;return j instanceof O3?i(j.payload,p,l,j.meta):i(j,p,l)})])}catch(E){b=E instanceof k1?a(null,p,l,E.payload,E.meta):a(E,p,l)}finally{y&&v.signal.removeEventListener("abort",y)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||c(b),b}();return Object.assign(_,{abort:x,requestId:p,arg:l,unwrap(){return _.then(Uie)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:$ie(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Uie(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function zie(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vie=Symbol.for("rtk-slice-createasyncthunk");function Wie(e,t){return`${e}/${t}`}function Hie({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Vie];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(ro(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(qie()):i.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(w,S){const P=typeof w=="string"?w:w.type;if(!P)throw new Error(ro(12));if(P in c.sliceCaseReducersByType)throw new Error(ro(13));return c.sliceCaseReducersByType[P]=S,f},addMatcher(w,S){return c.sliceMatchers.push({matcher:w,reducer:S}),f},exposeAction(w,S){return c.actionCreators[w]=S,f},exposeCaseReducer(w,S){return c.sliceCaseReducersByName[w]=S,f}};l.forEach(w=>{const S=s[w],P={reducerName:w,type:Wie(o,w),createNotation:typeof i.reducers=="function"};Yie(S)?Xie(P,S,f,t):Kie(P,S,f)});function d(){const[w={},S=[],P=void 0]=typeof i.extraReducers=="function"?MD(i.extraReducers):[i.extraReducers],E={...w,...c.sliceCaseReducersByType};return Lie(i.initialState,T=>{for(let j in E)T.addCase(j,E[j]);for(let j of c.sliceMatchers)T.addMatcher(j.matcher,j.reducer);for(let j of S)T.addMatcher(j.matcher,j.reducer);P&&T.addDefaultCase(P)})}const p=w=>w,v=new Map;let y;function g(w,S){return y||(y=d()),y(w,S)}function x(){return y||(y=d()),y.getInitialState()}function _(w,S=!1){function P(T){let j=T[w];return typeof j>"u"&&S&&(j=x()),j}function E(T=p){const j=w3(v,S,{insert:()=>new WeakMap});return w3(j,T,{insert:()=>{const F={};for(const[k,I]of Object.entries(i.selectors??{}))F[k]=Gie(I,T,x,S);return F}})}return{reducerPath:w,getSelectors:E,get selectors(){return E(P)},selectSlice:P}}const b={name:o,reducer:g,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:x,..._(a),injectInto(w,{reducerPath:S,...P}={}){const E=S??a;return w.inject({reducerPath:E,reducer:g},P),{...b,..._(E,!0)}}};return b}}function Gie(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=Hie();function qie(){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 Kie({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!Zie(r))throw new Error(ro(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Xn(e,a):Xn(e))}function Yie(e){return e._reducerDefinitionType==="asyncThunk"}function Zie(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Xie({type:e,reducerName:t},n,r,i){if(!i)throw new Error(ro(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:f}=n,d=i(e,o,f);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:a||dm,pending:s||dm,rejected:l||dm,settled:c||dm})}function dm(){}function ro(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:Qie,reducer:Jie}=Qt({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:eoe,resetAppUpdate:toe}=Qie,noe=Jie,roe=(e,t)=>{e.factory("App",sie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>eoe),e.serviceFactory("resetAppUpdate",()=>toe)},S3={"Content-Type":"application/json"},P3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...S3}}:{headers:S3}:e;let ioe=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,P3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,P3(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 RD=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),$D=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),N1=e=>Object.prototype.toString.call(e)==="[object Object]",ID=(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}},p0=(e,t)=>{const n={...e};return!N1(e)||!N1(t)||Object.keys(t).forEach(r=>{N1(t[r])?n[r]=r in e&&e[r]!==void 0?p0(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},HP=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),ooe=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Ac=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},E3=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),GP=6048e5,aoe=864e5,DD=6e4,qP=36e5,hm=43200,C3=1440,T3=Symbol.for("constructDateFrom");function Mn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&T3 in e?e[T3](t):e instanceof Date?new e.constructor(t):new Date(t)}function nt(e,t){return Mn(t||e,e)}function KP(e,t,n){const r=nt(e,n==null?void 0:n.in);return isNaN(t)?Mn(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function soe(e,t,n){const r=nt(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 loe(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:l=0,seconds:c=0}=t,f=nt(e,n==null?void 0:n.in),d=i||r?soe(f,i+r*12):f,p=a||o?KP(d,a+o*7):d,v=l+s*60,g=(c+v*60)*1e3;return Mn(e,+p+g)}let coe={};function sp(){return coe}function dl(e,t){var s,l,c,f;const n=sp(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,i=nt(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 ah(e,t){return dl(e,{...t,weekStartsOn:1})}function FD(e,t){const n=nt(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=ah(i),a=Mn(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ah(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Qc(e){const t=nt(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 Ol(e,...t){const n=Mn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function hl(e,t){const n=nt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function m0(e,t,n){const[r,i]=Ol(n==null?void 0:n.in,e,t),o=hl(r),a=hl(i),s=+o-Qc(o),l=+a-Qc(a);return Math.round((s-l)/aoe)}function uoe(e,t){const n=FD(e,t),r=Mn(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ah(r)}function BD(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=nt(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),Mn(r,n||NaN)}function foe(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=nt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),Mn(r,n||NaN)}function nv(e,t){const n=+nt(e)-+nt(t);return n<0?-1:n>0?1:n}function doe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hoe(e){return!(!doe(e)&&typeof e!="number"||isNaN(+nt(e)))}function hg(e,t,n){const[r,i]=Ol(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return o*12+a}function poe(e,t,n){const[r,i]=Ol(n==null?void 0:n.in,e,t),o=dl(r,n),a=dl(i,n),s=+o-Qc(o),l=+a-Qc(a);return Math.round((s-l)/GP)}function UD(e,t,n){const[r,i]=Ol(n==null?void 0:n.in,e,t),o=j3(r,i),a=Math.abs(m0(r,i));r.setDate(r.getDate()-o*a);const s=+(j3(r,i)===-o),l=o*(a-s);return l===0?0:l}function j3(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 zD(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function moe(e,t,n){const[r,i]=Ol(n==null?void 0:n.in,e,t),o=(+r-+i)/qP;return zD(n==null?void 0:n.roundingMethod)(o)}function voe(e,t){return+nt(e)-+nt(t)}function Jc(e,t){const n=nt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function goe(e,t){const n=nt(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 yoe(e,t){const n=nt(e,t==null?void 0:t.in);return+Jc(n,t)==+goe(n,t)}function boe(e,t,n){const[r,i,o]=Ol(n==null?void 0:n.in,e,e,t),a=nv(i,o),s=Math.abs(hg(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let l=nv(i,o)===-a;yoe(r)&&s===1&&nv(r,o)===1&&(l=!1);const c=a*(s-+l);return c===0?0:c}function _oe(e,t,n){const r=voe(e,t)/1e3;return zD(n==null?void 0:n.roundingMethod)(r)}function xoe(e,t){const n=nt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function woe(e,t){const n=t==null?void 0:t.weekStartsOn,r=nt(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 Ooe(e,t){return woe(e,{...t,weekStartsOn:1})}const Soe={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"}},Poe=(e,t,n)=>{let r;const i=Soe[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 M1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Eoe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Coe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Toe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},joe={date:M1({formats:Eoe,defaultWidth:"full"}),time:M1({formats:Coe,defaultWidth:"full"}),dateTime:M1({formats:Toe,defaultWidth:"full"})},Aoe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},koe=(e,t,n,r)=>Aoe[e];function jf(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 Noe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Moe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Loe={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"]},Roe={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"]},$oe={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"}},Ioe={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"}},Doe=(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"},Foe={ordinalNumber:Doe,era:jf({values:Noe,defaultWidth:"wide"}),quarter:jf({values:Moe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:jf({values:Loe,defaultWidth:"wide"}),day:jf({values:Roe,defaultWidth:"wide"}),dayPeriod:jf({values:$oe,defaultWidth:"wide",formattingValues:Ioe,defaultFormattingWidth:"wide"})};function Af(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Uoe(s,d=>d.test(a)):Boe(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const f=t.slice(a.length);return{value:c,rest:f}}}function Boe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Uoe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function zoe(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 Voe=/^(\d+)(th|st|nd|rd)?/i,Woe=/\d+/i,Hoe={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},Goe={any:[/^b/i,/^(a|c)/i]},qoe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Koe={any:[/1/i,/2/i,/3/i,/4/i]},Yoe={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},Zoe={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]},Xoe={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},Qoe={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]},Joe={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},eae={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}},tae={ordinalNumber:zoe({matchPattern:Voe,parsePattern:Woe,valueCallback:e=>parseInt(e,10)}),era:Af({matchPatterns:Hoe,defaultMatchWidth:"wide",parsePatterns:Goe,defaultParseWidth:"any"}),quarter:Af({matchPatterns:qoe,defaultMatchWidth:"wide",parsePatterns:Koe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Af({matchPatterns:Yoe,defaultMatchWidth:"wide",parsePatterns:Zoe,defaultParseWidth:"any"}),day:Af({matchPatterns:Xoe,defaultMatchWidth:"wide",parsePatterns:Qoe,defaultParseWidth:"any"}),dayPeriod:Af({matchPatterns:Joe,defaultMatchWidth:"any",parsePatterns:eae,defaultParseWidth:"any"})},VD={code:"en-US",formatDistance:Poe,formatLong:joe,formatRelative:koe,localize:Foe,match:tae,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nae(e,t){const n=nt(e,t==null?void 0:t.in);return m0(n,xoe(n))+1}function rae(e,t){const n=nt(e,t==null?void 0:t.in),r=+ah(n)-+uoe(n);return Math.round(r/GP)+1}function WD(e,t){var f,d,p,v;const n=nt(e,t==null?void 0:t.in),r=n.getFullYear(),i=sp(),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=dl(a,t),l=Mn((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=dl(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function iae(e,t){var s,l,c,f;const n=sp(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,i=WD(e,t),o=Mn((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),dl(o,t)}function oae(e,t){const n=nt(e,t==null?void 0:t.in),r=+dl(n,t)-+iae(n,t);return Math.round(r/GP)+1}function tt(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 tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):tt(n+1,2)},d(e,t){return tt(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 tt(e.getHours()%12||12,t.length)},H(e,t){return tt(e.getHours(),t.length)},m(e,t){return tt(e.getMinutes(),t.length)},s(e,t){return tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return tt(i,t.length)}},Hl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},A3={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=WD(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return tt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):tt(o,t.length)},R:function(e,t){const n=FD(e);return tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return tt(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 tt(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 tt(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 tt(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=oae(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):tt(i,t.length)},I:function(e,t,n){const r=rae(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):tt(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=nae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):tt(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 tt(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 tt(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 tt(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=Hl.noon:r===0?i=Hl.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=Hl.evening:r>=12?i=Hl.afternoon:r>=4?i=Hl.morning:i=Hl.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"}):tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):tt(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 N3(r);case"XXXX":case"XX":return Ts(r);case"XXXXX":case"XXX":default:return Ts(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return N3(r);case"xxxx":case"xx":return Ts(r);case"xxxxx":case"xxx":default:return Ts(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k3(r,":");case"OOOO":default:return"GMT"+Ts(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k3(r,":");case"zzzz":default:return"GMT"+Ts(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return tt(r,t.length)},T:function(e,t,n){return tt(+e,t.length)}};function k3(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+tt(o,2)}function N3(e,t){return e%60===0?(e>0?"-":"+")+tt(Math.abs(e)/60,2):Ts(e,t)}function Ts(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=tt(Math.trunc(r/60),2),o=tt(r%60,2);return n+i+t+o}const M3=(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"})}},HD=(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"})}},aae=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return M3(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}}",M3(r,t)).replace("{{time}}",HD(i,t))},sae={p:HD,P:aae},lae=/^D+$/,cae=/^Y+$/,uae=["D","DD","YY","YYYY"];function fae(e){return lae.test(e)}function dae(e){return cae.test(e)}function hae(e,t,n){const r=pae(e,t,n);if(console.warn(r),uae.includes(e))throw new RangeError(r)}function pae(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 mae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gae=/^'([^]*?)'?$/,yae=/''/g,bae=/[a-zA-Z]/;function pg(e,t,n){var f,d,p,v;const r=sp(),i=r.locale??VD,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=nt(e,n==null?void 0:n.in);if(!hoe(s))throw new RangeError("Invalid time value");let l=t.match(vae).map(y=>{const g=y[0];if(g==="p"||g==="P"){const x=sae[g];return x(y,i.formatLong)}return y}).join("").match(mae).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const g=y[0];if(g==="'")return{isToken:!1,value:_ae(y)};if(A3[g])return{isToken:!0,value:y};if(g.match(bae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(y=>{if(!y.isToken)return y.value;const g=y.value;(dae(g)||fae(g))&&hae(g,t,String(e));const x=A3[g[0]];return x(s,g,i.localize,c)}).join("")}function _ae(e){const t=e.match(gae);return t?t[1].replace(yae,"'"):e}function xae(e,t,n){const r=sp(),i=(n==null?void 0:n.locale)??r.locale??VD,o=2520,a=nv(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}),[l,c]=Ol(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),f=_oe(c,l),d=(Qc(c)-Qc(l))/1e3,p=Math.round((f-d)/60);let v;if(p<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):p===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",p,s);if(p<45)return i.formatDistance("xMinutes",p,s);if(p<90)return i.formatDistance("aboutXHours",1,s);if(p<C3){const y=Math.round(p/60);return i.formatDistance("aboutXHours",y,s)}else{if(p<o)return i.formatDistance("xDays",1,s);if(p<hm){const y=Math.round(p/C3);return i.formatDistance("xDays",y,s)}else if(p<hm*2)return v=Math.round(p/hm),i.formatDistance("aboutXMonths",v,s)}if(v=boe(c,l),v<12){const y=Math.round(p/hm);return i.formatDistance("xMonths",y,s)}else{const y=v%12,g=Math.trunc(v/12);return y<3?i.formatDistance("aboutXYears",g,s):y<9?i.formatDistance("overXYears",g,s):i.formatDistance("almostXYears",g+1,s)}}function wae(e,t){const n=nt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const o="-",a=":";{const s=tt(n.getDate(),2),l=tt(n.getMonth()+1,2);r=`${tt(n.getFullYear(),4)}${o}${l}${o}${s}`}{const s=n.getTimezoneOffset();if(s!==0){const v=Math.abs(s),y=tt(Math.trunc(v/60),2),g=tt(v%60,2);i=`${s<0?"+":"-"}${y}:${g}`}else i="Z";const l=tt(n.getHours(),2),c=tt(n.getMinutes(),2),f=tt(n.getSeconds(),2),d=r===""?"":"T",p=[l,c,f].join(a);r=`${r}${d}${p}${i}`}return r}function Oae(e){return Math.trunc(+nt(e)/1e3)}function Sae(e,t){return+nt(e)>+nt(t)}function mg(e,t){return+nt(e)<+nt(t)}function s2(e,t){return+nt(e)==+nt(t)}function Pae(e,t,n){const r=+nt(e,n==null?void 0:n.in),[i,o]=[+nt(t.start,n==null?void 0:n.in),+nt(t.end,n==null?void 0:n.in)].sort((a,s)=>a-s);return r>=i&&r<=o}function vg(e,t,n){return KP(e,-t,n)}function Ka(e,t){const n=()=>Mn(t==null?void 0:t.in,NaN),i=jae(e);let o;if(i.date){const c=Aae(i.date,2);o=kae(c.restDateString,c.year)}if(!o||isNaN(+o))return n();const a=+o;let s=0,l;if(i.time&&(s=Nae(i.time),isNaN(s)))return n();if(i.timezone){if(l=Mae(i.timezone),isNaN(l))return n()}else{const c=new Date(a+s),f=nt(0,t==null?void 0:t.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return nt(a+s+l,t==null?void 0:t.in)}const pm={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Eae=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Cae=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Tae=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jae(e){const t={},n=e.split(pm.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],pm.timeZoneDelimiter.test(t.date)&&(t.date=e.split(pm.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=pm.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Aae(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 kae(e,t){if(t===null)return new Date(NaN);const n=e.match(Eae);if(!n)return new Date(NaN);const r=!!n[4],i=kf(n[1]),o=kf(n[2])-1,a=kf(n[3]),s=kf(n[4]),l=kf(n[5])-1;if(r)return Dae(t,s,l)?Lae(t,s,l):new Date(NaN);{const c=new Date(0);return!$ae(t,o,a)||!Iae(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function kf(e){return e?parseInt(e):1}function Nae(e){const t=e.match(Cae);if(!t)return NaN;const n=L1(t[1]),r=L1(t[2]),i=L1(t[3]);return Fae(n,r,i)?n*qP+r*DD+i*1e3:NaN}function L1(e){return e&&parseFloat(e.replace(",","."))||0}function Mae(e){if(e==="Z")return 0;const t=e.match(Tae);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Bae(r,i)?n*(r*qP+i*DD):NaN}function Lae(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 Rae=[31,null,31,30,31,30,31,31,30,31,30,31];function GD(e){return e%400===0||e%4===0&&e%100!==0}function $ae(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Rae[t]||(GD(e)?29:28))}function Iae(e,t){return t>=1&&t<=(GD(e)?366:365)}function Dae(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Fae(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Bae(e,t){return t>=0&&t<=59}const hr=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Uae="Left",zae="Right",Vae="Up",Wae="Down",yc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},l2={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},L3="mousemove",R3="mouseup",Hae="touchend",Gae="touchmove",qae="touchstart";function Kae(e,t,n,r){return e>t?n>0?zae:Uae:r>0?Wae:Vae}function $3(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 Yae(e,t){const n=f=>{const d="touches"in f;d&&f.touches.length>1||e((p,v)=>{v.trackMouse&&!d&&(document.addEventListener(L3,r),document.addEventListener(R3,a));const{clientX:y,clientY:g}=d?f.touches[0]:f,x=$3([y,g],v.rotationAngle);return v.onTouchStartOrOnMouseDown&&v.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),l2),{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:y,clientY:g}=v?f.touches[0]:f,[x,_]=$3([y,g],p.rotationAngle),b=x-d.xy[0],w=_-d.xy[1],S=Math.abs(b),P=Math.abs(w),E=(f.timeStamp||0)-d.start,T=Math.sqrt(S*S+P*P)/(E||1),j=[b/(E||1),w/(E||1)],F=Kae(S,P,b,w),k=typeof p.delta=="number"?p.delta:p.delta[F.toLowerCase()]||yc.delta;if(S<k&&P<k&&!d.swiping)return d;const I={absX:S,absY:P,deltaX:b,deltaY:w,dir:F,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 D=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${F}`])&&(D=!0),D&&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 y=p[`onSwiped${v.dir}`];y&&y(v)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},d),l2),{eventData:v})})},o=()=>{document.removeEventListener(L3,r),document.removeEventListener(R3,a)},a=f=>{o(),i(f)},s=(f,d)=>{let p=()=>{};if(f&&f.addEventListener){const v=Object.assign(Object.assign({},yc.touchEventOptions),d.touchEventOptions),y=[[qae,n,v],[Gae,r,Object.assign(Object.assign({},v),d.preventScrollOnSwipe?{passive:!1}:{})],[Hae,i,v]];y.forEach(([g,x,_])=>f.addEventListener(g,x,_)),p=()=>y.forEach(([g,x])=>f.removeEventListener(g,x))}return p},c={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&&(c.onMouseDown=n),[c,s]}function Zae(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 Xae(e){const{trackMouse:t}=e,n=M.useRef(Object.assign({},l2)),r=M.useRef(Object.assign({},yc)),i=M.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},yc),e);let o;for(o in yc)r.current[o]===void 0&&(r.current[o]=yc[o]);const[a,s]=M.useMemo(()=>Yae(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Zae(n.current,r.current,i.current,s),a}var c2={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,d=n.fetch,p=n.Response,v=n.TextDecoder,y=n.TextEncoder,g=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(se){c.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()}),g==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 Te=xe.body.getReader();return ve._reader=Te,ve._aborted&&ve._reader.cancel(),{status:xe.status,statusText:xe.statusText,headers:xe.headers,body:{getReader:function(){return Te}}}})},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(se){function pe(ye,ge,we){if(we===1)return ye>=128>>ge&&ye<<ge<=2047;if(we===2)return ye>=2048>>ge&&ye<<ge<=55295||ye>=57344>>ge&&ye<<ge<=65535;if(we===3)return ye>=65536>>ge&&ye<<ge<=1114111;throw new Error}function ve(ye,ge){if(ye===6*1)return ge>>6>15?3:ge>31?2:1;if(ye===6*2)return ge>15?3:2;if(ye===6*3)return 3;throw new Error}for(var xe=65533,Te="",Ce=this.bitsNeeded,Ae=this.codePoint,le=0;le<se.length;le+=1){var fe=se[le];Ce!==0&&(fe<128||fe>191||!pe(Ae<<6|fe&63,Ce-6,ve(Ce,Ae)))&&(Ce=0,Ae=xe,Te+=String.fromCharCode(Ae)),Ce===0?(fe>=0&&fe<=127?(Ce=0,Ae=fe):fe>=192&&fe<=223?(Ce=6*1,Ae=fe&31):fe>=224&&fe<=239?(Ce=6*2,Ae=fe&15):fe>=240&&fe<=247?(Ce=6*3,Ae=fe&7):(Ce=0,Ae=xe),Ce!==0&&!pe(Ae,Ce,ve(Ce,Ae))&&(Ce=0,Ae=xe)):(Ce-=6,Ae=Ae<<6|fe&63),Ce===0&&(Ae<=65535?Te+=String.fromCharCode(Ae):(Te+=String.fromCharCode(55296+(Ae-65535-1>>10)),Te+=String.fromCharCode(56320+(Ae-65535-1&1023))))}return this.bitsNeeded=Ce,this.codePoint=Ae,Te};var b=function(){try{return new v().decode(new y().encode("test"),{stream:!0})==="test"}catch(se){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+se)}return!1};(v==null||y==null||!b())&&(v=_);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,Te=1,Ce=0;this._abort=function(we){ve._sendTimeout!==0&&(i(ve._sendTimeout),ve._sendTimeout=0),(Te===1||Te===2||Te===3)&&(Te=4,xe.onload=w,xe.onerror=w,xe.onabort=w,xe.onprogress=w,xe.onreadystatechange=w,xe.abort(),Ce!==0&&(i(Ce),Ce=0),we||(ve.readyState=4,ve.onabort(null),ve.onreadystatechange())),Te=0};var Ae=function(){if(Te===1){var we=0,ke="",Me=void 0;if("contentType"in xe)we=200,ke="OK",Me=xe.contentType;else try{we=xe.status,ke=xe.statusText,Me=xe.getResponseHeader("Content-Type")}catch{we=0,ke="",Me=void 0}we!==0&&(Te=2,ve.readyState=2,ve.status=we,ve.statusText=ke,ve._contentType=Me,ve.onreadystatechange())}},le=function(){if(Ae(),Te===2||Te===3){Te=3;var we="";try{we=xe.responseText}catch{}ve.readyState=3,ve.responseText=we,ve.onprogress()}},fe=function(we,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:w}),le(),Te===1||Te===2||Te===3){if(Te=4,Ce!==0&&(i(Ce),Ce=0),ve.readyState=4,we==="load")ve.onload(ke);else if(we==="error")ve.onerror(ke);else if(we==="abort")ve.onabort(ke);else throw new TypeError;ve.onreadystatechange()}},ye=function(we){xe!=null&&(xe.readyState===4?(!("onload"in xe)||!("onerror"in xe)||!("onabort"in xe))&&fe(xe.responseText===""?"error":"load",we):xe.readyState===3?"onprogress"in xe||le():xe.readyState===2&&Ae())},ge=function(){Ce=r(function(){ge()},500),xe.readyState===3&&le()};"onload"in xe&&(xe.onload=function(we){fe("load",we)}),"onerror"in xe&&(xe.onerror=function(we){fe("error",we)}),"onabort"in xe&&(xe.onabort=function(we){fe("abort",we)}),"onprogress"in xe&&(xe.onprogress=le),"onreadystatechange"in xe&&(xe.onreadystatechange=function(we){ye(we)}),("contentType"in xe||!("ontimeout"in o.prototype))&&(pe+=(pe.indexOf("?")===-1?"?":"&")+"padding=true"),xe.open(se,pe,!0),"readyState"in xe&&(Ce=r(function(){ge()},0))},S.prototype.abort=function(){this._abort(!1)},S.prototype.getResponseHeader=function(se){return this._contentType},S.prototype.setRequestHeader=function(se,pe){var 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))&&c!=null&&c.readyState!=null&&c.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 P(se){return se.replace(/[A-Z]/g,function(pe){return String.fromCharCode(pe.charCodeAt(0)+32)})}function E(se){for(var pe=Object.create(null),ve=se.split(`\r
|
||
`),xe=0;xe<ve.length;xe+=1){var Te=ve[xe],Ce=Te.split(": "),Ae=Ce.shift(),le=Ce.join(": ");pe[P(Ae)]=le}this._map=pe}E.prototype.get=function(se){return this._map[P(se)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function T(){}T.prototype.open=function(se,pe,ve,xe,Te,Ce,Ae){se.open("GET",Te);var le=0;se.onprogress=function(){var ye=se.responseText,ge=ye.slice(le);le+=ge.length,ve(ge)},se.onerror=function(ye){ye.preventDefault(),xe(new Error("NetworkError"))},se.onload=function(){xe(null)},se.onabort=function(){xe(null)},se.onreadystatechange=function(){if(se.readyState===o.HEADERS_RECEIVED){var ye=se.status,ge=se.statusText,we=se.getResponseHeader("Content-Type"),ke=se.getAllResponseHeaders();pe(ye,ge,we,new E(ke))}},se.withCredentials=Ce;for(var fe in Ae)Object.prototype.hasOwnProperty.call(Ae,fe)&&se.setRequestHeader(fe,Ae[fe]);return se.send(),se};function j(se){this._headers=se}j.prototype.get=function(se){return this._headers.get(se)};function F(){}F.prototype.open=function(se,pe,ve,xe,Te,Ce,Ae){var le=null,fe=new g,ye=fe.signal,ge=new v;return d(Te,{headers:Ae,credentials:Ce?"include":"same-origin",signal:ye,cache:"no-store"}).then(function(we){return le=we.body.getReader(),pe(we.status,we.statusText,we.headers.get("Content-Type"),new j(we.headers)),new f(function(ke,Me){var Qe=function(){le.read().then(function(et){if(et.done)ke(void 0);else{var Ke=ge.decode(et.value,{stream:!0});ve(Ke),Qe()}}).catch(function(et){Me(et)})};Qe()})}).catch(function(we){if(we.name!=="AbortError")return we}).then(function(we){xe(we)}),{abort:function(){le!=null&&le.cancel(),fe.abort()}}};function k(){this._listeners=Object.create(null)}function I(se){r(function(){throw se},0)}k.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 Te=pe[xe];try{typeof Te.handleEvent=="function"?Te.handleEvent(se):Te.call(this,se)}catch(Ce){I(Ce)}}},k.prototype.addEventListener=function(se,pe){se=String(se);var ve=this._listeners,xe=ve[se];xe==null&&(xe=[],ve[se]=xe);for(var Te=!1,Ce=0;Ce<xe.length;Ce+=1)xe[Ce]===pe&&(Te=!0);Te||xe.push(pe)},k.prototype.removeEventListener=function(se,pe){se=String(se);var ve=this._listeners,xe=ve[se];if(xe!=null){for(var Te=[],Ce=0;Ce<xe.length;Ce+=1)xe[Ce]!==pe&&Te.push(xe[Ce]);Te.length===0?delete ve[se]:ve[se]=Te}};function D(se){this.type=se,this.target=void 0}function K(se,pe){D.call(this,se),this.data=pe.data,this.lastEventId=pe.lastEventId}K.prototype=Object.create(D.prototype);function W(se,pe){D.call(this,se),this.status=pe.status,this.statusText=pe.statusText,this.headers=pe.headers}W.prototype=Object.create(D.prototype);function X(se,pe){D.call(this,se),this.error=pe.error}X.prototype=Object.create(D.prototype);var Q=-1,te=0,Z=1,z=2,B=-1,H=0,ee=1,q=2,ne=3,re=/^text\/event\-stream(;.*)?$/i,ae=1e3,ue=18e6,A=function(se,pe){var ve=se==null?pe:parseInt(se,10);return ve!==ve&&(ve=pe),N(ve)},N=function(se){return Math.min(Math.max(se,ae),ue)},U=function(se,pe,ve){try{typeof pe=="function"&&pe.call(se,ve)}catch(xe){I(xe)}};function J(se,pe){k.call(this),pe=pe||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,he(this,se,pe)}function Y(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var oe=d!=null&&p!=null&&"body"in p.prototype;function he(se,pe,ve){pe=String(pe);var xe=!!ve.withCredentials,Te=ve.lastEventIdQueryParameterName||"lastEventId",Ce=N(1e3),Ae=A(ve.heartbeatTimeout,45e3),le="",fe=Ce,ye=!1,ge=0,we=ve.headers||{},ke=ve.Transport,Me=oe&&ke==null?void 0:new S(ke!=null?new ke:Y()),Qe=ke!=null&&typeof ke!="string"?new ke:Me==null?new F:new T,et=void 0,Ke=0,Wt=Q,It="",hn="",Bn="",Bi="",wn=H,of=0,Ui=0,Pp=function(Jt,Kt,Un,On){if(Wt===te)if(Jt===200&&Un!=null&&re.test(Un)){Wt=Z,ye=Date.now(),fe=Ce,se.readyState=Z;var Sn=new W("open",{status:Jt,statusText:Kt,headers:On});se.dispatchEvent(Sn),U(se,se.onopen,Sn)}else{var an="";Jt!==200?(Kt&&(Kt=Kt.replace(/\s+/g," ")),an="EventSource's response has a status "+Jt+" "+Kt+" that is not 200. Aborting the connection."):an="EventSource's response has a Content-Type specifying an unsupported type: "+(Un==null?"-":Un.replace(/\s+/g," "))+". Aborting the connection.",af();var Sn=new W("error",{status:Jt,statusText:Kt,headers:On});se.dispatchEvent(Sn),U(se,se.onerror,Sn),console.error(an)}},Ep=function(Jt){if(Wt===Z){for(var Kt=-1,Un=0;Un<Jt.length;Un+=1){var On=Jt.charCodeAt(Un);(On===10||On===13)&&(Kt=Un)}var Sn=(Kt!==-1?Bi:"")+Jt.slice(0,Kt+1);Bi=(Kt===-1?Bi:"")+Jt.slice(Kt+1),Jt!==""&&(ye=Date.now(),ge+=Jt.length);for(var an=0;an<Sn.length;an+=1){var On=Sn.charCodeAt(an);if(wn===B&&On===10)wn=H;else if(wn===B&&(wn=H),On===13||On===10){if(wn!==H){wn===ee&&(Ui=an+1);var hi=Sn.slice(of,Ui-1),pi=Sn.slice(Ui+(Ui<an&&Sn.charCodeAt(Ui)===32?1:0),an);hi==="data"?(It+=`
|
||
`,It+=pi):hi==="id"?hn=pi:hi==="event"?Bn=pi:hi==="retry"?(Ce=A(pi,Ce),fe=Ce):hi==="heartbeatTimeout"&&(Ae=A(pi,Ae),Ke!==0&&(i(Ke),Ke=r(function(){hs()},Ae)))}if(wn===H){if(It!==""){le=hn,Bn===""&&(Bn="message");var Pn=new K(Bn,{data:It.slice(1),lastEventId:hn});if(se.dispatchEvent(Pn),Bn==="open"?U(se,se.onopen,Pn):Bn==="message"?U(se,se.onmessage,Pn):Bn==="error"&&U(se,se.onerror,Pn),Wt===z)return}It="",Bn=""}wn=On===13?B:H}else wn===H&&(of=an,wn=ee),wn===ee?On===58&&(Ui=an+1,wn=q):wn===q&&(wn=ne)}}},Cp=function(Jt){if(Wt===Z||Wt===te){Wt=Q,Ke!==0&&(i(Ke),Ke=0),Ke=r(function(){hs()},fe),fe=N(Math.min(Ce*16,fe*2)),se.readyState=te;var Kt=new X("error",{error:Jt});se.dispatchEvent(Kt),U(se,se.onerror,Kt),Jt!=null&&console.error(Jt)}},af=function(){Wt=z,et!=null&&(et.abort(),et=void 0),Ke!==0&&(i(Ke),Ke=0),se.readyState=z},hs=function(){if(Ke=0,Wt!==Q){if(!ye&&et!=null)Cp(new Error("No activity within "+Ae+" milliseconds. "+(Wt===te?"No response received.":ge+" chars received.")+" Reconnecting.")),et!=null&&(et.abort(),et=void 0);else{var Jt=Math.max((ye||Date.now())+Ae-Date.now(),1);ye=!1,Ke=r(function(){hs()},Jt)}return}ye=!1,ge=0,Ke=r(function(){hs()},Ae),Wt=te,It="",Bn="",hn=le,Bi="",of=0,Ui=0,wn=H;var Kt=pe;if(pe.slice(0,5)!=="data:"&&pe.slice(0,5)!=="blob:"&&le!==""){var Un=pe.indexOf("?");Kt=Un===-1?pe:pe.slice(0,Un+1)+pe.slice(Un+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(pi,Pn){return Pn===Te?"":pi}),Kt+=(pe.indexOf("?")===-1?"?":"&")+Te+"="+encodeURIComponent(le)}var On=se.withCredentials,Sn={};Sn.Accept="text/event-stream";var an=se.headers;if(an!=null)for(var hi in an)Object.prototype.hasOwnProperty.call(an,hi)&&(Sn[hi]=an[hi]);try{et=Qe.open(Me,Pp,Ep,Cp,Kt,On,Sn)}catch(pi){throw af(),pi}};se.url=pe,se.readyState=te,se.withCredentials=xe,se.headers=we,se._close=af,hs()}J.prototype=Object.create(k.prototype),J.prototype.CONNECTING=te,J.prototype.OPEN=Z,J.prototype.CLOSED=z,J.prototype.close=function(){this._close()},J.CONNECTING=te,J.OPEN=Z,J.CLOSED=z,J.prototype.withCredentials=void 0;var Pe=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Pe=J),function(se){{var pe=se(t);pe!==void 0&&(e.exports=pe)}}(function(se){se.EventSourcePolyfill=J,se.NativeEventSource=l,se.EventSource=Pe})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:nc:globalThis)})(c2,c2.exports);var Qae=c2.exports;const Da=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),Jae=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=nr("realTimeUpdates",{enabled:!0}),i=M.useId();return m.jsxs(gt,{title:"Real-time updates",className:"h-100",children:[m.jsx(cl,{children:m.jsxs(Vo,{checked:n,onChange:e,children:["Enable or disable real-time updates.",m.jsxs(Da,{children:["Real-time updates are currently being ",m.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),m.jsxs(Ru,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Oe("form-label",{"text-muted":!n}),id:i,children:[m.jsx(An,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),n&&m.jsx(Da,{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."})]})]})},R1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",ese=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."]}),tse=({updateShortUrlCreationSettings:e})=>{const t=nr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return m.jsxs(gt,{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(Da,{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(Da,{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(Ru,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(ea,{text:R1(t.tagFilteringMode),children:[m.jsx(Ne,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:R1("startsWith")}),m.jsx(Ne,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:R1("includes")})]}),m.jsx(Da,{children:ese(t.tagFilteringMode)})]})]})},nse={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},rse=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=nr("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return m.jsxs(gt,{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(Da,{children:["When deleting a short URL, confirmation ",m.jsx("b",{children:r?"will":"won't"})," be required."]})]}),m.jsx(Ru,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(op,{items:nse,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},ise={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},ose=({updateTagsSettings:e})=>{const t=nr("tags",{});return m.jsx(gt,{title:"Tags",className:"h-100",children:m.jsx(Ru,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(op,{items:ise,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},ase=({updateUiSettings:e,_matchMedia:t})=>{const n=nr("ui"),r=M.useMemo(()=>(n==null?void 0:n.theme)??FP(t),[n==null?void 0:n.theme,t]);return m.jsxs(gt,{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"?KK:$K})]})},qD={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},sse=(e,t)=>!e||e==="all"?t:qD[e],lse=({onChange:e,active:t,allText:n})=>m.jsxs(ea,{text:sse(t,n),children:[m.jsx(Ne,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(Ne,{divider:!0}),Object.entries(qD).map(([r,i])=>m.jsx(Ne,{active:t===r,onClick:()=>e(r),children:i},r))]}),I3=e=>(e==null?void 0:e.defaultInterval)??"last30Days",cse=({updateVisitsSettings:e})=>{const t=nr("visits"),n=M.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??I3(t),...i}),[e,t]);return m.jsxs(gt,{title:"Visits",className:"h-100",children:[m.jsx(cl,{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(Da,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(cl,{children:m.jsxs(Vo,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",m.jsxs(Da,{children:["When loading visits, previous period ",m.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),m.jsx(Ru,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(lse,{allText:"All visits",active:I3(t),onChange:r=>n({defaultInterval:r})})})]})},$1=({children:e})=>M.Children.map(e,(t,n)=>m.jsx("div",{className:"mb-3",children:t},n)),use=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=M.useCallback(s=>t(p0(e,s)),[e,t]),i=M.useCallback(s=>r({realTimeUpdates:{enabled:s}}),[r]),o=M.useCallback(s=>r({realTimeUpdates:{interval:s}}),[r]),a=M.useCallback((s,l)=>r({[s]:l}),[r]);return m.jsxs(ZD,{value:e,children:[m.jsxs(gD,{className:"mb-3",children:[m.jsx(md,{to:"general",children:"General"}),m.jsx(md,{to:"short-urls",children:"Short URLs"}),m.jsx(md,{to:"other-items",children:"Other items"})]}),m.jsxs(Xy,{children:[m.jsx(ot,{path:"general",element:m.jsxs($1,{children:[m.jsx(ase,{updateUiSettings:s=>a("ui",s)}),m.jsx(Jae,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),m.jsx(ot,{path:"short-urls",element:m.jsxs($1,{children:[m.jsx(tse,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),m.jsx(rse,{defaultOrdering:n,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),m.jsx(ot,{path:"other-items",element:m.jsxs($1,{children:[m.jsx(ose,{updateTagsSettings:s=>a("tags",s)}),m.jsx(cse,{updateVisitsSettings:s=>a("visits",s)})]})}),m.jsx(ot,{path:"*",element:m.jsx(eP,{replace:!0,to:"general"})})]})]})},KD={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},YD=M.createContext(KD),{Provider:ZD}=YD,YP=()=>M.useContext(YD)??KD;function nr(e,t){return YP()[e]??t}const fse={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"]},dse=fse,hse={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"]},XD={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"]},pse=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,D3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(pse);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},F3=e=>e==="*"||e==="x"||e==="X",B3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},mse=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],vse=(e,t)=>{if(F3(e)||F3(t))return 0;const[n,r]=mse(B3(e),B3(t));return n>r?1:n<r?-1:0},U3=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=vse(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},gse=(e,t)=>{const n=D3(e),r=D3(t),i=n.pop(),o=r.pop(),a=U3(n,r);return a!==0?a:i&&o?U3(i.split("."),o.split(".")):i||o?i?-1:1:0},u2=(e,t,n)=>{yse(n);const r=gse(e,t);return QD[n].includes(r)},QD={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},z3=Object.keys(QD),yse=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(z3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${z3.join("|")}`)},bse={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"]},_se={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"]},js={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"),JD=Symbol("No options"),tc=()=>{},_n=V.createContext(void 0);function V3(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function xse(e){return e.selectionStart===0&&e.selectionEnd===0}function wse(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function v0(e){return`${e}-label`}function Ose(e){return`${e}-combobox`}function Sse(e){return`${e}-input`}function e5(e){return`${e}-listbox`}function t5(e,t){return`${e}-option-${kse(t)}`}function Pse(e,t){if((e==null?void 0:e.value)===ZP&&e.disabled===!1)return{value:t,label:t}}function Ese(e){const t=Pse(e.activeOption,e.value)||e.activeOption||Rse(e.value,e.options);return t&&!t.disabled?t:void 0}function Cse(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Tse=/%value%/;function gg(e,t){return e.replace(Tse,t)}function jse(e,t){const n=r5(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 Ase=/\s+/g;function f2(e){return`${String(e.value)}-${e.label}`}function kse(e){return f2(e).replace(Ase,"_")}function d2(e,t){return t.findIndex(({value:n})=>n===e.value)}const Nse=/[-\\^$*+?.()|[\]{}]/g;function n5(e){return e.replace(Nse,"\\$&")}function r5(e){return new RegExp(n5(e),"i")}function Mse(e){return new RegExp(`^${n5(e)}$`,"i")}function Lse(e,t){if(e){const n=r5(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Rse(e,t){const n=Mse(e);return t.find(r=>n.test(r.label))||null}const $se={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function Ise({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:c}=M.useContext(_n),f=M.useMemo(()=>{const y=k=>{const I=k.currentTarget.value;c.current.updateInputValue(I),document.activeElement===a.current&&c.current.listBoxExpand(I)},g=()=>{c.current.listBoxExpand()},x=k=>{var I;((I=o.current)==null?void 0:I.contains(k.relatedTarget))===!1&&c.current.listBoxCollapse()},_=()=>{c.current.listBoxExpand()},b=k=>{const{activeIndex:I,isExpanded:D}=c.current.state;D?(k.preventDefault(),c.current.updateActiveIndex(I+1)):(wse(k.currentTarget)||k.altKey)&&(k.preventDefault(),c.current.listBoxExpand())},w=k=>{const{activeIndex:I,isExpanded:D}=c.current.state;D?(k.preventDefault(),c.current.updateActiveIndex(I-1)):xse(k.currentTarget)&&(k.preventDefault(),c.current.listBoxExpand())},S=k=>{const{isExpanded:I,options:D}=c.current.state;I&&(k.preventDefault(),c.current.updateActiveIndex(D.length-1))},P=k=>{c.current.state.isExpanded&&(k.preventDefault(),c.current.updateActiveIndex(0))},E=()=>{c.current.state.isExpanded?c.current.listBoxCollapse():c.current.updateInputValue("")},T=()=>{if(e){const{value:k,selected:I}=c.current.state,D=I[I.length-1];k===""&&D&&c.current.selectTag(D)}},j=k=>{c.current.state.isExpanded&&(k.preventDefault(),c.current.selectTag())};return{onBlur:x,onChange:y,onClick:_,onFocus:g,onKeyDown:k=>{if(k.key===js.UpArrow)return w(k);if(k.key===js.DownArrow)return b(k);if(k.key===js.PageUp)return P(k);if(k.key===js.PageDown)return S(k);if(k.key===js.Escape)return E();if(k.key===js.Backspace)return T();if(r.includes(k.key))return j(k)}}},[e,o,r,a,c]),{activeOption:d,isExpanded:p,value:v}=c.current.state;return{...$se,"aria-autocomplete":"list","aria-activedescendant":d?t5(i,d):void 0,"aria-controls":e5(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":v0(i),"aria-expanded":p,id:Sse(i),onBlur:s?tc:f.onBlur,onChange:s?tc:f.onChange,onClick:s?tc:f.onClick,onFocus:s?tc:f.onFocus,onKeyDown:s?tc:f.onKeyDown,ref:a,role:"combobox",type:"text",value:v}}const Dse={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Fse=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function Bse({allowResize:e=!0,text:t}){const n=M.useRef(null),{inputRef:r}=M.useContext(_n),[i,o]=M.useState(null);return M.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);Fse.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),M.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:Dse}}}function Use(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=M.useContext(_n),i=r.current.state.activeIndex===-1,o=M.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return M.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":v0(e),id:e5(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function zse({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:c,onShouldCollapse:f,onShouldExpand:d,onValidate:p,selected:v,suggestions:y,suggestionsTransform:g}){const x=M.useRef(),[_,b]=M.useState(null),[w,S]=M.useState(!1),[P,E]=M.useState(""),T=M.useMemo(()=>{const W=g(P,y);return P&&(t&&W.push({disabled:p?!p(P):!1,label:r,value:ZP}),W.length===0&&W.push({disabled:!0,label:i,value:JD})),W},[t,r,i,p,y,g,P]),j=_?d2(_,T):-1,F=e?Math.max(j,0):j,k=T[F],I={activeIndex:F,activeOption:k,isExpanded:w,options:T,selected:v,value:P},D={tagsAdded:x.current?V3(v,x.current.state.selected):[],tagsDeleted:x.current?V3(x.current.state.selected,v):[]},K={listBoxCollapse(W){w&&(!f||f(W??I.value))&&(S(!1),b(null),s==null||s())},listBoxExpand(W){w||(!d||d(W??I.value))&&(S(!0),b(T[F]),l==null||l())},updateActiveIndex(W){const X=Cse(W,T.length,e?0:-1);b(T[X])},updateInputValue(W){P!==W&&(E(W),c==null||c(W))},selectTag(W){if(W??(W=Ese(I)),W){const X=d2(W,I.selected);X>-1?a(X):o(W),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...K,flags:D,state:I},x}function Vse(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=M.useContext(_n),o=M.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,l=a.disabled??!1,c=d2(a,i.current.state.selected)>-1,f=M.useCallback(()=>{var p;i.current.selectTag(),(p=n.current)==null||p.focus()},[n,i]),d=M.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return Gse(o,r,s),{option:{...a,active:s,disabled:l,index:e,selected:c},optionProps:{"aria-disabled":l,"aria-posinset":e+1,"aria-selected":l?void 0:c,"aria-setsize":i.current.state.options.length,id:t5(t,a),onClick:f,onMouseDown:d,ref:o,role:"option",tabIndex:-1}}}function Wse({inputRef:e,managerRef:t}){return M.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 Hse({onBlur:e,onFocus:t}){const[n,r]=M.useState(!1),{id:i,inputRef:o,rootRef:a}=M.useContext(_n),s=M.useMemo(()=>({"aria-describedby":v0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function Gse(e,t,n){M.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,l=(i=e.current)==null?void 0:i.offsetTop,c=(o=t.current)==null?void 0:o.offsetHeight,f=(a=t.current)==null?void 0:a.scrollTop;l<f&&t.current.scrollTo(0,l),l+s>f+c&&t.current.scrollTo(0,l+s-c)}},[n,t,e])}function qse(e,t){const{isDisabled:n,managerRef:r}=M.useContext(_n),i=r.current.state.selected[e],o=M.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:gg(t,i.label),onClick:n?tc:o}}}function Kse({label:e}){var t;const{rootRef:n,managerRef:r}=M.useContext(_n),i=M.useRef(),o=r.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return M.useLayoutEffect(()=>{var s,l;if(o){const c=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!c&&((l=n.current)==null||l.focus({preventScroll:!0}))}},[a,i,n,o]),{ref:i,"aria-label":e}}const Yse={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function Zse({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=M.useContext(_n),r=M.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(gg(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(gg(t,i.label))}),V.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:Yse},r.current.join(`
|
||
`))}function Xse({children:e}){const{classNames:t,comboBoxRef:n,id:r}=M.useContext(_n);return V.createElement("div",{className:t.comboBox,id:Ose(r),ref:n},e)}const Qse=({classNames:e,text:t})=>V.createElement("mark",{className:e.highlight},t);function Jse({option:e,query:t,render:n=Qse}){const{classNames:r}=M.useContext(_n);if(e.value===ZP||e.value===JD)return V.createElement(V.Fragment,null,gg(e.label,t));if(t){const i=jse(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 ele=V.memo(Jse),tle=({classNames:e,inputWidth:t,...n})=>V.createElement("input",{className:e.input,style:{width:t},...n});function nle({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=tle}){const{classNames:s}=M.useContext(_n),{value:l,...c}=Ise({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),f=l.length<o.length?o:l,{width:d,sizerProps:p}=Bse({allowResize:t,text:f});return V.createElement(V.Fragment,null,a({classNames:s,inputWidth:d,placeholder:o,value:l,...c}),t?V.createElement("div",{...p},f):null)}const rle=({children:e,classNames:t,id:n})=>V.createElement("div",{className:t.label,id:n},e);function ile({children:e,render:t=rle}){const{classNames:n,id:r}=M.useContext(_n);return t({children:e,classNames:n,id:v0(r)})}const ole=({children:e,classNames:t,...n})=>V.createElement("div",{className:t.listBox,...n},e);function ale({children:e,render:t=ole}){const{classNames:n,managerRef:r}=M.useContext(_n),i=Use();return!r.current.state.isExpanded||V.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const sle=({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 lle({children:e,index:t,render:n=sle}){const{classNames:r}=M.useContext(_n),{option:i,optionProps:o}=Vse(t);return n({classNames:r,children:e,option:i,...o})}const cle=({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 ule({children:e,onBlur:t,onFocus:n,render:r=cle}){const{classNames:i,isDisabled:o,isInvalid:a}=M.useContext(_n),{isActive:s,rootProps:l}=Hse({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const fle=({classNames:e,tag:t,...n})=>V.createElement("button",{type:"button",className:e.tag,...n},V.createElement("span",{className:e.tagName},t.label));function dle({render:e=fle,index:t,title:n}){const{classNames:r}=M.useContext(_n),{tag:i,tagProps:o}=qse(t,n);return e({classNames:r,tag:i,...o})}const hle=({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 ple({children:e,label:t,render:n=hle}){const{classNames:r}=M.useContext(_n),i=Kse({label:t});return n({classNames:r,children:e,...i})}const mle={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"},vle=[js.Enter];function gle({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=mle,collapseOnSelect:c=!1,deleteButtonText:f="Remove %value% from the list",delimiterKeys:d=vle,id:p="react-tags",isDisabled:v=!1,isInvalid:y=!1,labelText:g="Select tags",newOptionText:x="Add %value%",noOptionsText:_="No options found for %value%",onAdd:b,onBlur:w,onCollapse:S,onDelete:P,onExpand:E,onFocus:T,onInput:j,onShouldCollapse:F,onShouldExpand:k,onValidate:I,placeholderText:D="Add a tag",renderHighlight:K,renderInput:W,renderLabel:X,renderListBox:Q,renderOption:te,renderRoot:Z,renderTag:z,renderTagList:B,selected:H=[],suggestions:ee=[],suggestionsTransform:q=Lse,tagListLabelText:ne="Selected tags"},re){const ae=M.useRef(null),ue=M.useRef(null),A=M.useRef(null),N=M.useRef(null),U=zse({activateFirstOption:e,allowNew:n,collapseOnSelect:c,newOptionText:x,noOptionsText:_,onAdd:b,onDelete:P,onCollapse:S,onExpand:E,onInput:j,onShouldCollapse:F,onShouldExpand:k,onValidate:I,selected:H,suggestions:ee,suggestionsTransform:q}),J=Wse({inputRef:ue,managerRef:U});return re&&(typeof re=="function"?re(J):re.current=J),V.createElement(_n.Provider,{value:{classNames:l,comboBoxRef:ae,id:p,inputRef:ue,isDisabled:v,isInvalid:y,listBoxRef:A,managerRef:U,rootRef:N}},V.createElement(ule,{onBlur:w,onFocus:T,render:Z},V.createElement(ile,{render:X},g),V.createElement(ple,{render:B,label:ne},U.current.state.selected.map((Y,oe)=>V.createElement(dle,{key:f2(Y),index:oe,render:z,title:f}))),V.createElement(Xse,null,V.createElement(nle,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:d,placeholderText:D,render:W}),V.createElement(ale,{render:Q},U.current.state.options.map((Y,oe)=>V.createElement(lle,{key:f2(Y),index:oe,render:te},V.createElement(ele,{option:Y,query:U.current.state.value,render:K}))))),V.createElement(Zse,{ariaAddedText:i,ariaDeletedText:s})))}const yle=V.forwardRef(gle);function I1(e){return e==null?"":`${e}`}function ble(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 _le(e={stringFormatter:XP()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function xle(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 wle=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Ole(e){var t,n,r;const i=[];let o;for(;o=wle.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 W3(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:Ole(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 i5(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function h2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var H3;(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"})(H3||(H3={}));class Sle{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=xle({stringFormatter:r}),o={header:r,undefined:I1,boolean:I1,number:ble(),bigint:I1,string:r,symbol:_le({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=>W3(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=>W3(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const c=s(l,a);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return h2(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(i5,[]),[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 h2(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 o5 extends Sle{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(i5,[])}processData(t){return h2(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 G3;(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"})(G3||(G3={}));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 K3;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(K3||(K3={}));var Y3;(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"})(Y3||(Y3={}));var Ple=Array.isArray,gr=Ple,Ele=typeof nc=="object"&&nc&&nc.Object===Object&&nc,a5=Ele,Cle=a5,Tle=typeof self=="object"&&self&&self.Object===Object&&self,jle=Cle||Tle||Function("return this")(),vo=jle,Ale=vo,kle=Ale.Symbol,lp=kle,Z3=lp,s5=Object.prototype,Nle=s5.hasOwnProperty,Mle=s5.toString,Nf=Z3?Z3.toStringTag:void 0;function Lle(e){var t=Nle.call(e,Nf),n=e[Nf];try{e[Nf]=void 0;var r=!0}catch{}var i=Mle.call(e);return r&&(t?e[Nf]=n:delete e[Nf]),i}var Rle=Lle,$le=Object.prototype,Ile=$le.toString;function Dle(e){return Ile.call(e)}var Fle=Dle,X3=lp,Ble=Rle,Ule=Fle,zle="[object Null]",Vle="[object Undefined]",Q3=X3?X3.toStringTag:void 0;function Wle(e){return e==null?e===void 0?Vle:zle:Q3&&Q3 in Object(e)?Ble(e):Ule(e)}var ta=Wle;function Hle(e){return e!=null&&typeof e=="object"}var na=Hle,Gle=ta,qle=na,Kle="[object Symbol]";function Yle(e){return typeof e=="symbol"||qle(e)&&Gle(e)==Kle}var Iu=Yle,Zle=gr,Xle=Iu,Qle=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jle=/^\w*$/;function ece(e,t){if(Zle(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Xle(e)?!0:Jle.test(e)||!Qle.test(e)||t!=null&&e in Object(t)}var QP=ece;function tce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ss=tce;const Du=at(ss);var nce=ta,rce=ss,ice="[object AsyncFunction]",oce="[object Function]",ace="[object GeneratorFunction]",sce="[object Proxy]";function lce(e){if(!rce(e))return!1;var t=nce(e);return t==oce||t==ace||t==ice||t==sce}var JP=lce;const Ve=at(JP);var cce=vo,uce=cce["__core-js_shared__"],fce=uce,D1=fce,J3=function(){var e=/[^.]+$/.exec(D1&&D1.keys&&D1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dce(e){return!!J3&&J3 in e}var hce=dce,pce=Function.prototype,mce=pce.toString;function vce(e){if(e!=null){try{return mce.call(e)}catch{}try{return e+""}catch{}}return""}var l5=vce,gce=JP,yce=hce,bce=ss,_ce=l5,xce=/[\\^$.*+?()[\]{}|]/g,wce=/^\[object .+?Constructor\]$/,Oce=Function.prototype,Sce=Object.prototype,Pce=Oce.toString,Ece=Sce.hasOwnProperty,Cce=RegExp("^"+Pce.call(Ece).replace(xce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tce(e){if(!bce(e)||yce(e))return!1;var t=gce(e)?Cce:wce;return t.test(_ce(e))}var jce=Tce;function Ace(e,t){return e==null?void 0:e[t]}var kce=Ace,Nce=jce,Mce=kce;function Lce(e,t){var n=Mce(e,t);return Nce(n)?n:void 0}var Sl=Lce,Rce=Sl,$ce=Rce(Object,"create"),g0=$ce,ek=g0;function Ice(){this.__data__=ek?ek(null):{},this.size=0}var Dce=Ice;function Fce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Bce=Fce,Uce=g0,zce="__lodash_hash_undefined__",Vce=Object.prototype,Wce=Vce.hasOwnProperty;function Hce(e){var t=this.__data__;if(Uce){var n=t[e];return n===zce?void 0:n}return Wce.call(t,e)?t[e]:void 0}var Gce=Hce,qce=g0,Kce=Object.prototype,Yce=Kce.hasOwnProperty;function Zce(e){var t=this.__data__;return qce?t[e]!==void 0:Yce.call(t,e)}var Xce=Zce,Qce=g0,Jce="__lodash_hash_undefined__";function eue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qce&&t===void 0?Jce:t,this}var tue=eue,nue=Dce,rue=Bce,iue=Gce,oue=Xce,aue=tue;function Fu(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])}}Fu.prototype.clear=nue;Fu.prototype.delete=rue;Fu.prototype.get=iue;Fu.prototype.has=oue;Fu.prototype.set=aue;var sue=Fu;function lue(){this.__data__=[],this.size=0}var cue=lue;function uue(e,t){return e===t||e!==e&&t!==t}var eE=uue,fue=eE;function due(e,t){for(var n=e.length;n--;)if(fue(e[n][0],t))return n;return-1}var y0=due,hue=y0,pue=Array.prototype,mue=pue.splice;function vue(e){var t=this.__data__,n=hue(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():mue.call(t,n,1),--this.size,!0}var gue=vue,yue=y0;function bue(e){var t=this.__data__,n=yue(t,e);return n<0?void 0:t[n][1]}var _ue=bue,xue=y0;function wue(e){return xue(this.__data__,e)>-1}var Oue=wue,Sue=y0;function Pue(e,t){var n=this.__data__,r=Sue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Eue=Pue,Cue=cue,Tue=gue,jue=_ue,Aue=Oue,kue=Eue;function Bu(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])}}Bu.prototype.clear=Cue;Bu.prototype.delete=Tue;Bu.prototype.get=jue;Bu.prototype.has=Aue;Bu.prototype.set=kue;var b0=Bu,Nue=Sl,Mue=vo,Lue=Nue(Mue,"Map"),tE=Lue,tk=sue,Rue=b0,$ue=tE;function Iue(){this.size=0,this.__data__={hash:new tk,map:new($ue||Rue),string:new tk}}var Due=Iue;function Fue(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Bue=Fue,Uue=Bue;function zue(e,t){var n=e.__data__;return Uue(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _0=zue,Vue=_0;function Wue(e){var t=Vue(this,e).delete(e);return this.size-=t?1:0,t}var Hue=Wue,Gue=_0;function que(e){return Gue(this,e).get(e)}var Kue=que,Yue=_0;function Zue(e){return Yue(this,e).has(e)}var Xue=Zue,Que=_0;function Jue(e,t){var n=Que(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var efe=Jue,tfe=Due,nfe=Hue,rfe=Kue,ife=Xue,ofe=efe;function Uu(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])}}Uu.prototype.clear=tfe;Uu.prototype.delete=nfe;Uu.prototype.get=rfe;Uu.prototype.has=ife;Uu.prototype.set=ofe;var nE=Uu,c5=nE,afe="Expected a function";function rE(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(afe);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(rE.Cache||c5),n}rE.Cache=c5;var u5=rE;const sfe=at(u5);var lfe=u5,cfe=500;function ufe(e){var t=lfe(e,function(r){return n.size===cfe&&n.clear(),r}),n=t.cache;return t}var ffe=ufe,dfe=ffe,hfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pfe=/\\(\\)?/g,mfe=dfe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hfe,function(n,r,i,o){t.push(i?o.replace(pfe,"$1"):r||n)}),t}),vfe=mfe;function gfe(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 iE=gfe,nk=lp,yfe=iE,bfe=gr,_fe=Iu,xfe=1/0,rk=nk?nk.prototype:void 0,ik=rk?rk.toString:void 0;function f5(e){if(typeof e=="string")return e;if(bfe(e))return yfe(e,f5)+"";if(_fe(e))return ik?ik.call(e):"";var t=e+"";return t=="0"&&1/e==-xfe?"-0":t}var wfe=f5,Ofe=wfe;function Sfe(e){return e==null?"":Ofe(e)}var d5=Sfe,Pfe=gr,Efe=QP,Cfe=vfe,Tfe=d5;function jfe(e,t){return Pfe(e)?e:Efe(e,t)?[e]:Cfe(Tfe(e))}var h5=jfe,Afe=Iu,kfe=1/0;function Nfe(e){if(typeof e=="string"||Afe(e))return e;var t=e+"";return t=="0"&&1/e==-kfe?"-0":t}var x0=Nfe,Mfe=h5,Lfe=x0;function Rfe(e,t){t=Mfe(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Lfe(t[n++])];return n&&n==r?e:void 0}var oE=Rfe,$fe=oE;function Ife(e,t,n){var r=e==null?void 0:$fe(e,t);return r===void 0?n:r}var p5=Ife;const Ar=at(p5);function Dfe(e){return e==null}var Ffe=Dfe;const Ue=at(Ffe);var Bfe=ta,Ufe=gr,zfe=na,Vfe="[object String]";function Wfe(e){return typeof e=="string"||!Ufe(e)&&zfe(e)&&Bfe(e)==Vfe}var Hfe=Wfe;const cp=at(Hfe);var m5={exports:{}},pt={};/**
|
||
* @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 aE=Symbol.for("react.element"),sE=Symbol.for("react.portal"),w0=Symbol.for("react.fragment"),O0=Symbol.for("react.strict_mode"),S0=Symbol.for("react.profiler"),P0=Symbol.for("react.provider"),E0=Symbol.for("react.context"),Gfe=Symbol.for("react.server_context"),C0=Symbol.for("react.forward_ref"),T0=Symbol.for("react.suspense"),j0=Symbol.for("react.suspense_list"),A0=Symbol.for("react.memo"),k0=Symbol.for("react.lazy"),qfe=Symbol.for("react.offscreen"),v5;v5=Symbol.for("react.module.reference");function fi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case aE:switch(e=e.type,e){case w0:case S0:case O0:case T0:case j0:return e;default:switch(e=e&&e.$$typeof,e){case Gfe:case E0:case C0:case k0:case A0:case P0:return e;default:return t}}case sE:return t}}}pt.ContextConsumer=E0;pt.ContextProvider=P0;pt.Element=aE;pt.ForwardRef=C0;pt.Fragment=w0;pt.Lazy=k0;pt.Memo=A0;pt.Portal=sE;pt.Profiler=S0;pt.StrictMode=O0;pt.Suspense=T0;pt.SuspenseList=j0;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return fi(e)===E0};pt.isContextProvider=function(e){return fi(e)===P0};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===aE};pt.isForwardRef=function(e){return fi(e)===C0};pt.isFragment=function(e){return fi(e)===w0};pt.isLazy=function(e){return fi(e)===k0};pt.isMemo=function(e){return fi(e)===A0};pt.isPortal=function(e){return fi(e)===sE};pt.isProfiler=function(e){return fi(e)===S0};pt.isStrictMode=function(e){return fi(e)===O0};pt.isSuspense=function(e){return fi(e)===T0};pt.isSuspenseList=function(e){return fi(e)===j0};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===w0||e===S0||e===O0||e===T0||e===j0||e===qfe||typeof e=="object"&&e!==null&&(e.$$typeof===k0||e.$$typeof===A0||e.$$typeof===P0||e.$$typeof===E0||e.$$typeof===C0||e.$$typeof===v5||e.getModuleId!==void 0)};pt.typeOf=fi;m5.exports=pt;var g5=m5.exports,Kfe=ta,Yfe=na,Zfe="[object Number]";function Xfe(e){return typeof e=="number"||Yfe(e)&&Kfe(e)==Zfe}var y5=Xfe;const Qfe=at(y5);var Jfe=y5;function ede(e){return Jfe(e)&&e!=+e}var tde=ede;const zu=at(tde);var Gn=function(t){return t===0?0:t>0?1:-1},Bs=function(t){return cp(t)&&t.indexOf("%")===t.length-1},Ee=function(t){return Qfe(t)&&!zu(t)},un=function(t){return Ee(t)||cp(t)},nde=0,ls=function(t){var n=++nde;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)&&!cp(t))return r;var o;if(Bs(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return zu(o)&&(o=r),i&&o>n&&(o=n),o},_a=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},rde=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 yg(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ar(r,t))===n})}var ide=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,o=0,a=0,s=1/0,l=-1/0,c=0,f=0,d=0;d<n;d++)c=t[d].cx||0,f=t[d].cy||0,r+=c,i+=f,o+=c*f,a+=c*c,s=Math.min(s,c),l=Math.max(l,c);var p=n*a!==r*r?(n*o-r*i)/(n*a-r*r):0;return{xmin:s,xmax:l,a:p,b:(i-p*r)/n}};function kc(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 p2(e){"@babel/helpers - typeof";return p2=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},p2(e)}var ode=["viewBox","children"],ade=["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"],ok=["points","pathLength"],F1={svg:ode,polygon:ok,polyline:ok},lE=["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"],bg=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(M.isValidElement(t)&&(r=t.props),!Du(r))return null;var i={};return Object.keys(r).forEach(function(o){lE.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},sde=function(t,n,r){return function(i){return t(n,r,i),null}},Ya=function(t,n,r){if(!Du(t)||p2(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];lE.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=sde(a,n,r))}),i},lde=["children"],cde=["children"];function ak(e,t){if(e==null)return{};var n=ude(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 ude(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 m2(e){"@babel/helpers - typeof";return m2=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},m2(e)}var sk={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":""},lk=null,B1=null,cE=function e(t){if(t===lk&&Array.isArray(B1))return B1;var n=[];return M.Children.forEach(t,function(r){Ue(r)||(g5.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),B1=n,lk=t,n};function Qn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return No(i)}):r=[No(t)],cE(e).forEach(function(i){var o=Ar(i,"type.displayName")||Ar(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function wr(e,t){var n=Qn(e,t);return n&&n[0]}var ck=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)},fde=["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"],dde=function(t){return t&&t.type&&cp(t.type)&&fde.indexOf(t.type)>=0},b5=function(t){return t&&m2(t)==="object"&&"clipDot"in t},hde=function(t,n,r,i){var o,a=(o=F1==null?void 0:F1[i])!==null&&o!==void 0?o:[];return!Ve(t)&&(i&&a.includes(n)||ade.includes(n))||r&&lE.includes(n)},De=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(M.isValidElement(t)&&(i=t.props),!Du(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;hde((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},v2=function e(t,n){if(t===n)return!0;var r=M.Children.count(t);if(r!==M.Children.count(n))return!1;if(r===0)return!0;if(r===1)return uk(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(!uk(o,a))return!1}return!0},uk=function(t,n){if(Ue(t)&&Ue(n))return!0;if(!Ue(t)&&!Ue(n)){var r=t.props||{},i=r.children,o=ak(r,lde),a=n.props||{},s=a.children,l=ak(a,cde);return i&&s?kc(o,l)&&v2(i,s):!i&&!s?kc(o,l):!1}return!1},fk=function(t,n){var r=[],i={};return cE(t).forEach(function(o,a){if(dde(o))r.push(o);else if(o){var s=No(o.type),l=n[s]||{},c=l.handler,f=l.once;if(c&&(!f||!i[s])){var d=c(o,s,a);r.push(d),i[s]=!0}}}),r},pde=function(t){var n=t&&t.type;return n&&sk[n]?sk[n]:null},mde=function(t,n){return cE(n).indexOf(t)},vde=["children","width","height","viewBox","className","style","title","desc"];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 gde(e,t){if(e==null)return{};var n=yde(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 yde(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 y2(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,c=gde(e,vde),f=i||{width:n,height:r,x:0,y:0},d=Oe("recharts-surface",o);return V.createElement("svg",g2({},De(c,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),V.createElement("title",null,s),V.createElement("desc",null,l),t)}var bde=["children","className"];function b2(){return b2=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},b2.apply(this,arguments)}function _de(e,t){if(e==null)return{};var n=xde(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 xde(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 Ze=V.forwardRef(function(e,t){var n=e.children,r=e.className,i=_de(e,bde),o=Oe("recharts-layer",r);return V.createElement("g",b2({className:o},De(i,!0),{ref:t}),n)}),ji=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 wde(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 Ode=wde,Sde=Ode;function Pde(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Sde(e,t,n)}var Ede=Pde,Cde="\\ud800-\\udfff",Tde="\\u0300-\\u036f",jde="\\ufe20-\\ufe2f",Ade="\\u20d0-\\u20ff",kde=Tde+jde+Ade,Nde="\\ufe0e\\ufe0f",Mde="\\u200d",Lde=RegExp("["+Mde+Cde+kde+Nde+"]");function Rde(e){return Lde.test(e)}var _5=Rde;function $de(e){return e.split("")}var Ide=$de,x5="\\ud800-\\udfff",Dde="\\u0300-\\u036f",Fde="\\ufe20-\\ufe2f",Bde="\\u20d0-\\u20ff",Ude=Dde+Fde+Bde,zde="\\ufe0e\\ufe0f",Vde="["+x5+"]",_2="["+Ude+"]",x2="\\ud83c[\\udffb-\\udfff]",Wde="(?:"+_2+"|"+x2+")",w5="[^"+x5+"]",O5="(?:\\ud83c[\\udde6-\\uddff]){2}",S5="[\\ud800-\\udbff][\\udc00-\\udfff]",Hde="\\u200d",P5=Wde+"?",E5="["+zde+"]?",Gde="(?:"+Hde+"(?:"+[w5,O5,S5].join("|")+")"+E5+P5+")*",qde=E5+P5+Gde,Kde="(?:"+[w5+_2+"?",_2,O5,S5,Vde].join("|")+")",Yde=RegExp(x2+"(?="+x2+")|"+Kde+qde,"g");function Zde(e){return e.match(Yde)||[]}var Xde=Zde,Qde=Ide,Jde=_5,ehe=Xde;function the(e){return Jde(e)?ehe(e):Qde(e)}var nhe=the,rhe=Ede,ihe=_5,ohe=nhe,ahe=d5;function she(e){return function(t){t=ahe(t);var n=ihe(t)?ohe(t):void 0,r=n?n[0]:t.charAt(0),i=n?rhe(n,1).join(""):t.slice(1);return r[e]()+i}}var lhe=she,che=lhe,uhe=che("toUpperCase"),fhe=uhe;const N0=at(fhe);function xt(e){return function(){return e}}const C5=Math.cos,_g=Math.sin,Ii=Math.sqrt,xg=Math.PI,M0=2*xg,w2=Math.PI,O2=2*w2,As=1e-6,dhe=O2-As;function T5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hhe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return T5;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 phe{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?T5:hhe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=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>As)if(!(Math.abs(d*l-c*f)>As)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,y=i-s,g=l*l+c*c,x=v*v+y*y,_=Math.sqrt(g),b=Math.sqrt(p),w=o*Math.tan((w2-Math.acos((g+p-x)/(2*_*b)))/2),S=w/b,P=w/_;Math.abs(S-1)>As&&this._append`L${t+S*f},${n+S*d}`,this._append`A${o},${o},0,0,${+(d*v>f*y)},${this._x1=t+P*l},${this._y1=n+P*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,f=n+l,d=1^a,p=a?i-o:o-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>As||Math.abs(this._y1-f)>As)&&this._append`L${c},${f}`,r&&(p<0&&(p=p%O2+O2),p>dhe?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=f}`:p>As&&this._append`A${r},${r},0,${+(p>=w2)},${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 uE(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 phe(t)}function fE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j5(e){this._context=e}j5.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 L0(e){return new j5(e)}function A5(e){return e[0]}function k5(e){return e[1]}function N5(e,t){var n=xt(!0),r=null,i=L0,o=null,a=uE(s);e=typeof e=="function"?e:e===void 0?A5:xt(e),t=typeof t=="function"?t:t===void 0?k5:xt(t);function s(l){var c,f=(l=fE(l)).length,d,p=!1,v;for(r==null&&(o=i(v=a())),c=0;c<=f;++c)!(c<f&&n(d=l[c],c,l))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+e(d,c,l),+t(d,c,l));if(v)return o=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:xt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:xt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:xt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function mm(e,t,n){var r=null,i=xt(!0),o=null,a=L0,s=null,l=uE(c);e=typeof e=="function"?e:e===void 0?A5:xt(+e),t=typeof t=="function"?t:xt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?k5:xt(+n);function c(d){var p,v,y,g=(d=fE(d)).length,x,_=!1,b,w=new Array(g),S=new Array(g);for(o==null&&(s=a(b=l())),p=0;p<=g;++p){if(!(p<g&&i(x=d[p],p,d))===_)if(_=!_)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=p-1;y>=v;--y)s.point(w[y],S[y]);s.lineEnd(),s.areaEnd()}_&&(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(b)return s=null,b+""||null}function f(){return N5().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:xt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:xt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:xt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:xt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:xt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:xt(+d),c):n},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(n)},c.lineX1=function(){return f().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:xt(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}class M5{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 mhe(e){return new M5(e,!0)}function vhe(e){return new M5(e,!1)}const dE={draw(e,t){const n=Ii(t/xg);e.moveTo(n,0),e.arc(0,0,n,0,M0)}},ghe={draw(e,t){const n=Ii(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()}},L5=Ii(1/3),yhe=L5*2,bhe={draw(e,t){const n=Ii(t/yhe),r=n*L5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_he={draw(e,t){const n=Ii(t),r=-n/2;e.rect(r,r,n,n)}},xhe=.8908130915292852,R5=_g(xg/10)/_g(7*xg/10),whe=_g(M0/10)*R5,Ohe=-C5(M0/10)*R5,She={draw(e,t){const n=Ii(t*xhe),r=whe*n,i=Ohe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=M0*o/5,s=C5(a),l=_g(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},U1=Ii(3),Phe={draw(e,t){const n=-Ii(t/(U1*3));e.moveTo(0,n*2),e.lineTo(-U1*n,-n),e.lineTo(U1*n,-n),e.closePath()}},Wr=-.5,Hr=Ii(3)/2,S2=1/Ii(12),Ehe=(S2/2+1)*3,Che={draw(e,t){const n=Ii(t/Ehe),r=n/2,i=n*S2,o=r,a=n*S2+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Wr*r-Hr*i,Hr*r+Wr*i),e.lineTo(Wr*o-Hr*a,Hr*o+Wr*a),e.lineTo(Wr*s-Hr*l,Hr*s+Wr*l),e.lineTo(Wr*r+Hr*i,Wr*i-Hr*r),e.lineTo(Wr*o+Hr*a,Wr*a-Hr*o),e.lineTo(Wr*s+Hr*l,Wr*l-Hr*s),e.closePath()}};function The(e,t){let n=null,r=uE(i);e=typeof e=="function"?e:xt(e||dE),t=typeof t=="function"?t:xt(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:xt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:xt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function wg(){}function Og(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 $5(e){this._context=e}$5.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:Og(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:Og(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jhe(e){return new $5(e)}function I5(e){this._context=e}I5.prototype={areaStart:wg,areaEnd:wg,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:Og(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ahe(e){return new I5(e)}function D5(e){this._context=e}D5.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:Og(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function khe(e){return new D5(e)}function F5(e){this._context=e}F5.prototype={areaStart:wg,areaEnd:wg,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 Nhe(e){return new F5(e)}function dk(e){return e<0?-1:1}function hk(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(dk(o)+dk(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function pk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function z1(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 Sg(e){this._context=e}Sg.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:z1(this,this._t0,pk(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,z1(this,pk(this,n=hk(this,e,t)),n);break;default:z1(this,this._t0,n=hk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function B5(e){this._context=new U5(e)}(B5.prototype=Object.create(Sg.prototype)).point=function(e,t){Sg.prototype.point.call(this,t,e)};function U5(e){this._context=e}U5.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 Mhe(e){return new Sg(e)}function Lhe(e){return new B5(e)}function z5(e){this._context=e}z5.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=mk(e),i=mk(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 mk(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 Rhe(e){return new z5(e)}function R0(e,t){this._context=e,this._t=t}R0.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 $he(e){return new R0(e,.5)}function Ihe(e){return new R0(e,0)}function Dhe(e){return new R0(e,1)}function eu(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 P2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Fhe(e,t){return e[t]}function Bhe(e){const t=[];return t.key=e,t}function Uhe(){var e=xt([]),t=P2,n=eu,r=Fhe;function i(o){var a=Array.from(e.apply(this,arguments),Bhe),s,l=a.length,c=-1,f;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,f=fE(t(a));s<l;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:xt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:xt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?P2:typeof o=="function"?o:xt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??eu,i):n},i}function zhe(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}eu(e,t)}}function Vhe(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}eu(e,t)}}function Whe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,c=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,y=0;y<s;++y){var g=e[t[y]],x=g[r][1]||0,_=g[r-1][1]||0;v+=x-_}l+=d,c+=v*d}i[r-1][1]+=i[r-1][0]=n,l&&(n-=c/l)}i[r-1][1]+=i[r-1][0]=n,eu(e,t)}}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)}var Hhe=["type","size","sizeType"];function E2(){return E2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E2.apply(this,arguments)}function vk(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 gk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vk(Object(n),!0).forEach(function(r){Ghe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ghe(e,t,n){return t=qhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qhe(e){var t=Khe(e,"string");return sh(t)=="symbol"?t:t+""}function Khe(e,t){if(sh(e)!="object"||!e)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 Yhe(e,t){if(e==null)return{};var n=Zhe(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 Zhe(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 V5={symbolCircle:dE,symbolCross:ghe,symbolDiamond:bhe,symbolSquare:_he,symbolStar:She,symbolTriangle:Phe,symbolWye:Che},Xhe=Math.PI/180,Qhe=function(t){var n="symbol".concat(N0(t));return V5[n]||dE},Jhe=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*Xhe;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}},epe=function(t,n){V5["symbol".concat(N0(t))]=n},$0=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,l=Yhe(t,Hhe),c=gk(gk({},l),{},{type:r,size:o,sizeType:s}),f=function(){var x=Qhe(r),_=The().type(x).size(Jhe(o,s,r));return _()},d=c.className,p=c.cx,v=c.cy,y=De(c,!0);return p===+p&&v===+v&&o===+o?V.createElement("path",E2({},y,{className:Oe("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:f()})):null};$0.registerSymbol=epe;function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function C2(){return C2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C2.apply(this,arguments)}function yk(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 tpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(n),!0).forEach(function(r){lh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function npe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rpe(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,H5(r.key),r)}}function ipe(e,t,n){return t&&rpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ope(e,t,n){return t=Pg(t),ape(e,W5()?Reflect.construct(t,n||[],Pg(e).constructor):t.apply(e,n))}function ape(e,t){if(t&&(tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return spe(e)}function spe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W5=function(){return!!e})()}function Pg(e){return Pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pg(e)}function lpe(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&&T2(e,t)}function T2(e,t){return T2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},T2(e,t)}function lh(e,t,n){return t=H5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H5(e){var t=cpe(e,"string");return tu(t)=="symbol"?t:t+""}function cpe(e,t){if(tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gr=32,hE=function(e){function t(){return npe(this,t),ope(this,t,arguments)}return lpe(t,e),ipe(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Gr/2,a=Gr/6,s=Gr/3,l=r.inactive?i:r.color;if(r.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Gr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
|
||
H`).concat(Gr,"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:l,d:"M0,".concat(Gr/8,"h").concat(Gr,"v").concat(Gr*3/4,"h").concat(-Gr,"z"),className:"recharts-legend-icon"});if(V.isValidElement(r.legendIcon)){var c=tpe({},r);return delete c.legendIcon,V.cloneElement(r.legendIcon,c)}return V.createElement($0,{fill:l,cx:o,cy:o,size:Gr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Gr,height:Gr},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,y){var g=v.formatter||l,x=Oe(lh(lh({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",v.inactive));if(v.type==="none")return null;var _=Ve(v.value)?null:v.value;ji(!Ve(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 b=v.inactive?c:v.color;return V.createElement("li",C2({className:x,style:d,key:"legend-item-".concat(y)},Ya(r.props,v,y)),V.createElement(y2,{width:a,height:a,viewBox:f,style:p},r.renderIcon(v)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},g?g(_,v,y):_))})}},{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())}}])}(M.PureComponent);lh(hE,"displayName","Legend");lh(hE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var upe=b0;function fpe(){this.__data__=new upe,this.size=0}var dpe=fpe;function hpe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var ppe=hpe;function mpe(e){return this.__data__.get(e)}var vpe=mpe;function gpe(e){return this.__data__.has(e)}var ype=gpe,bpe=b0,_pe=tE,xpe=nE,wpe=200;function Ope(e,t){var n=this.__data__;if(n instanceof bpe){var r=n.__data__;if(!_pe||r.length<wpe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xpe(r)}return n.set(e,t),this.size=n.size,this}var Spe=Ope,Ppe=b0,Epe=dpe,Cpe=ppe,Tpe=vpe,jpe=ype,Ape=Spe;function Vu(e){var t=this.__data__=new Ppe(e);this.size=t.size}Vu.prototype.clear=Epe;Vu.prototype.delete=Cpe;Vu.prototype.get=Tpe;Vu.prototype.has=jpe;Vu.prototype.set=Ape;var G5=Vu,kpe="__lodash_hash_undefined__";function Npe(e){return this.__data__.set(e,kpe),this}var Mpe=Npe;function Lpe(e){return this.__data__.has(e)}var Rpe=Lpe,$pe=nE,Ipe=Mpe,Dpe=Rpe;function Eg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $pe;++t<n;)this.add(e[t])}Eg.prototype.add=Eg.prototype.push=Ipe;Eg.prototype.has=Dpe;var q5=Eg;function Fpe(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 K5=Fpe;function Bpe(e,t){return e.has(t)}var Y5=Bpe,Upe=q5,zpe=K5,Vpe=Y5,Wpe=1,Hpe=2;function Gpe(e,t,n,r,i,o){var a=n&Wpe,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,v=n&Hpe?new Upe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var y=e[d],g=t[d];if(r)var x=a?r(g,y,d,t,e,o):r(y,g,d,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(v){if(!zpe(t,function(_,b){if(!Vpe(v,b)&&(y===_||i(y,_,n,r,o)))return v.push(b)})){p=!1;break}}else if(!(y===g||i(y,g,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var Z5=Gpe,qpe=vo,Kpe=qpe.Uint8Array,Ype=Kpe;function Zpe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Xpe=Zpe;function Qpe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var pE=Qpe,bk=lp,_k=Ype,Jpe=eE,eme=Z5,tme=Xpe,nme=pE,rme=1,ime=2,ome="[object Boolean]",ame="[object Date]",sme="[object Error]",lme="[object Map]",cme="[object Number]",ume="[object RegExp]",fme="[object Set]",dme="[object String]",hme="[object Symbol]",pme="[object ArrayBuffer]",mme="[object DataView]",xk=bk?bk.prototype:void 0,V1=xk?xk.valueOf:void 0;function vme(e,t,n,r,i,o,a){switch(n){case mme:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pme:return!(e.byteLength!=t.byteLength||!o(new _k(e),new _k(t)));case ome:case ame:case cme:return Jpe(+e,+t);case sme:return e.name==t.name&&e.message==t.message;case ume:case dme:return e==t+"";case lme:var s=tme;case fme:var l=r&rme;if(s||(s=nme),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=ime,a.set(e,t);var f=eme(s(e),s(t),r,i,o,a);return a.delete(e),f;case hme:if(V1)return V1.call(e)==V1.call(t)}return!1}var gme=vme;function yme(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var X5=yme,bme=X5,_me=gr;function xme(e,t,n){var r=t(e);return _me(e)?r:bme(r,n(e))}var wme=xme;function Ome(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 Sme=Ome;function Pme(){return[]}var Eme=Pme,Cme=Sme,Tme=Eme,jme=Object.prototype,Ame=jme.propertyIsEnumerable,wk=Object.getOwnPropertySymbols,kme=wk?function(e){return e==null?[]:(e=Object(e),Cme(wk(e),function(t){return Ame.call(e,t)}))}:Tme,Nme=kme;function Mme(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lme=Mme,Rme=ta,$me=na,Ime="[object Arguments]";function Dme(e){return $me(e)&&Rme(e)==Ime}var Fme=Dme,Ok=Fme,Bme=na,Q5=Object.prototype,Ume=Q5.hasOwnProperty,zme=Q5.propertyIsEnumerable,Vme=Ok(function(){return arguments}())?Ok:function(e){return Bme(e)&&Ume.call(e,"callee")&&!zme.call(e,"callee")},mE=Vme,Cg={exports:{}};function Wme(){return!1}var Hme=Wme;Cg.exports;(function(e,t){var n=vo,r=Hme,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(Cg,Cg.exports);var J5=Cg.exports,Gme=9007199254740991,qme=/^(?:0|[1-9]\d*)$/;function Kme(e,t){var n=typeof e;return t=t??Gme,!!t&&(n=="number"||n!="symbol"&&qme.test(e))&&e>-1&&e%1==0&&e<t}var vE=Kme,Yme=9007199254740991;function Zme(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yme}var gE=Zme,Xme=ta,Qme=gE,Jme=na,eve="[object Arguments]",tve="[object Array]",nve="[object Boolean]",rve="[object Date]",ive="[object Error]",ove="[object Function]",ave="[object Map]",sve="[object Number]",lve="[object Object]",cve="[object RegExp]",uve="[object Set]",fve="[object String]",dve="[object WeakMap]",hve="[object ArrayBuffer]",pve="[object DataView]",mve="[object Float32Array]",vve="[object Float64Array]",gve="[object Int8Array]",yve="[object Int16Array]",bve="[object Int32Array]",_ve="[object Uint8Array]",xve="[object Uint8ClampedArray]",wve="[object Uint16Array]",Ove="[object Uint32Array]",Pt={};Pt[mve]=Pt[vve]=Pt[gve]=Pt[yve]=Pt[bve]=Pt[_ve]=Pt[xve]=Pt[wve]=Pt[Ove]=!0;Pt[eve]=Pt[tve]=Pt[hve]=Pt[nve]=Pt[pve]=Pt[rve]=Pt[ive]=Pt[ove]=Pt[ave]=Pt[sve]=Pt[lve]=Pt[cve]=Pt[uve]=Pt[fve]=Pt[dve]=!1;function Sve(e){return Jme(e)&&Qme(e.length)&&!!Pt[Xme(e)]}var Pve=Sve;function Eve(e){return function(t){return e(t)}}var e8=Eve,Tg={exports:{}};Tg.exports;(function(e,t){var n=a5,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Tg,Tg.exports);var Cve=Tg.exports,Tve=Pve,jve=e8,Sk=Cve,Pk=Sk&&Sk.isTypedArray,Ave=Pk?jve(Pk):Tve,t8=Ave,kve=Lme,Nve=mE,Mve=gr,Lve=J5,Rve=vE,$ve=t8,Ive=Object.prototype,Dve=Ive.hasOwnProperty;function Fve(e,t){var n=Mve(e),r=!n&&Nve(e),i=!n&&!r&&Lve(e),o=!n&&!r&&!i&&$ve(e),a=n||r||i||o,s=a?kve(e.length,String):[],l=s.length;for(var c in e)(t||Dve.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Rve(c,l)))&&s.push(c);return s}var Bve=Fve,Uve=Object.prototype;function zve(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Uve;return e===n}var Vve=zve;function Wve(e,t){return function(n){return e(t(n))}}var n8=Wve,Hve=n8,Gve=Hve(Object.keys,Object),qve=Gve,Kve=Vve,Yve=qve,Zve=Object.prototype,Xve=Zve.hasOwnProperty;function Qve(e){if(!Kve(e))return Yve(e);var t=[];for(var n in Object(e))Xve.call(e,n)&&n!="constructor"&&t.push(n);return t}var Jve=Qve,ege=JP,tge=gE;function nge(e){return e!=null&&tge(e.length)&&!ege(e)}var up=nge,rge=Bve,ige=Jve,oge=up;function age(e){return oge(e)?rge(e):ige(e)}var I0=age,sge=wme,lge=Nme,cge=I0;function uge(e){return sge(e,cge,lge)}var fge=uge,Ek=fge,dge=1,hge=Object.prototype,pge=hge.hasOwnProperty;function mge(e,t,n,r,i,o){var a=n&dge,s=Ek(e),l=s.length,c=Ek(t),f=c.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:pge.call(t,p)))return!1}var v=o.get(e),y=o.get(t);if(v&&y)return v==t&&y==e;var g=!0;o.set(e,t),o.set(t,e);for(var x=a;++d<l;){p=s[d];var _=e[p],b=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)){g=!1;break}x||(x=p=="constructor")}if(g&&!x){var S=e.constructor,P=t.constructor;S!=P&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof P=="function"&&P instanceof P)&&(g=!1)}return o.delete(e),o.delete(t),g}var vge=mge,gge=Sl,yge=vo,bge=gge(yge,"DataView"),_ge=bge,xge=Sl,wge=vo,Oge=xge(wge,"Promise"),Sge=Oge,Pge=Sl,Ege=vo,Cge=Pge(Ege,"Set"),r8=Cge,Tge=Sl,jge=vo,Age=Tge(jge,"WeakMap"),kge=Age,j2=_ge,A2=tE,k2=Sge,N2=r8,M2=kge,i8=ta,Wu=l5,Ck="[object Map]",Nge="[object Object]",Tk="[object Promise]",jk="[object Set]",Ak="[object WeakMap]",kk="[object DataView]",Mge=Wu(j2),Lge=Wu(A2),Rge=Wu(k2),$ge=Wu(N2),Ige=Wu(M2),ks=i8;(j2&&ks(new j2(new ArrayBuffer(1)))!=kk||A2&&ks(new A2)!=Ck||k2&&ks(k2.resolve())!=Tk||N2&&ks(new N2)!=jk||M2&&ks(new M2)!=Ak)&&(ks=function(e){var t=i8(e),n=t==Nge?e.constructor:void 0,r=n?Wu(n):"";if(r)switch(r){case Mge:return kk;case Lge:return Ck;case Rge:return Tk;case $ge:return jk;case Ige:return Ak}return t});var Dge=ks,W1=G5,Fge=Z5,Bge=gme,Uge=vge,Nk=Dge,Mk=gr,Lk=J5,zge=t8,Vge=1,Rk="[object Arguments]",$k="[object Array]",vm="[object Object]",Wge=Object.prototype,Ik=Wge.hasOwnProperty;function Hge(e,t,n,r,i,o){var a=Mk(e),s=Mk(t),l=a?$k:Nk(e),c=s?$k:Nk(t);l=l==Rk?vm:l,c=c==Rk?vm:c;var f=l==vm,d=c==vm,p=l==c;if(p&&Lk(e)){if(!Lk(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new W1),a||zge(e)?Fge(e,t,n,r,i,o):Bge(e,t,l,n,r,i,o);if(!(n&Vge)){var v=f&&Ik.call(e,"__wrapped__"),y=d&&Ik.call(t,"__wrapped__");if(v||y){var g=v?e.value():e,x=y?t.value():t;return o||(o=new W1),i(g,x,n,r,o)}}return p?(o||(o=new W1),Uge(e,t,n,r,i,o)):!1}var Gge=Hge,qge=Gge,Dk=na;function o8(e,t,n,r,i){return e===t?!0:e==null||t==null||!Dk(e)&&!Dk(t)?e!==e&&t!==t:qge(e,t,n,r,o8,i)}var yE=o8,Kge=G5,Yge=yE,Zge=1,Xge=2;function Qge(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],f=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Kge;if(r)var p=r(c,f,l,e,t,d);if(!(p===void 0?Yge(f,c,Zge|Xge,r,d):p))return!1}}return!0}var Jge=Qge,eye=ss;function tye(e){return e===e&&!eye(e)}var a8=tye,nye=a8,rye=I0;function iye(e){for(var t=rye(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,nye(i)]}return t}var oye=iye;function aye(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var s8=aye,sye=Jge,lye=oye,cye=s8;function uye(e){var t=lye(e);return t.length==1&&t[0][2]?cye(t[0][0],t[0][1]):function(n){return n===e||sye(n,e,t)}}var fye=uye;function dye(e,t){return e!=null&&t in Object(e)}var hye=dye,pye=h5,mye=mE,vye=gr,gye=vE,yye=gE,bye=x0;function _ye(e,t,n){t=pye(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&&yye(i)&&gye(a,i)&&(vye(e)||mye(e)))}var xye=_ye,wye=hye,Oye=xye;function Sye(e,t){return e!=null&&Oye(e,t,wye)}var Pye=Sye,Eye=yE,Cye=p5,Tye=Pye,jye=QP,Aye=a8,kye=s8,Nye=x0,Mye=1,Lye=2;function Rye(e,t){return jye(e)&&Aye(t)?kye(Nye(e),t):function(n){var r=Cye(n,e);return r===void 0&&r===t?Tye(n,e):Eye(t,r,Mye|Lye)}}var $ye=Rye;function Iye(e){return e}var Hu=Iye;function Dye(e){return function(t){return t==null?void 0:t[e]}}var Fye=Dye,Bye=oE;function Uye(e){return function(t){return Bye(t,e)}}var zye=Uye,Vye=Fye,Wye=zye,Hye=QP,Gye=x0;function qye(e){return Hye(e)?Vye(Gye(e)):Wye(e)}var Kye=qye,Yye=fye,Zye=$ye,Xye=Hu,Qye=gr,Jye=Kye;function e0e(e){return typeof e=="function"?e:e==null?Xye:typeof e=="object"?Qye(e)?Zye(e[0],e[1]):Yye(e):Jye(e)}var go=e0e;function t0e(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 l8=t0e;function n0e(e){return e!==e}var r0e=n0e;function i0e(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var o0e=i0e,a0e=l8,s0e=r0e,l0e=o0e;function c0e(e,t,n){return t===t?l0e(e,t,n):a0e(e,s0e,n)}var u0e=c0e,f0e=u0e;function d0e(e,t){var n=e==null?0:e.length;return!!n&&f0e(e,t,0)>-1}var h0e=d0e;function p0e(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 m0e=p0e;function v0e(){}var g0e=v0e,H1=r8,y0e=g0e,b0e=pE,_0e=1/0,x0e=H1&&1/b0e(new H1([,-0]))[1]==_0e?function(e){return new H1(e)}:y0e,w0e=x0e,O0e=q5,S0e=h0e,P0e=m0e,E0e=Y5,C0e=w0e,T0e=pE,j0e=200;function A0e(e,t,n){var r=-1,i=S0e,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=P0e;else if(o>=j0e){var c=t?null:C0e(e);if(c)return T0e(c);a=!1,i=E0e,l=new O0e}else l=t?[]:s;e:for(;++r<o;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(f)}else i(l,d,n)||(l!==s&&l.push(d),s.push(f))}return s}var k0e=A0e,N0e=go,M0e=k0e;function L0e(e,t){return e&&e.length?M0e(e,N0e(t)):[]}var R0e=L0e;const Fk=at(R0e);function c8(e,t,n){return t===!0?Fk(e,n):Ve(t)?Fk(e,t):e}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)}var $0e=["ref"];function Bk(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 wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bk(Object(n),!0).forEach(function(r){D0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uk(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,f8(r.key),r)}}function D0e(e,t,n){return t&&Uk(e.prototype,t),n&&Uk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F0e(e,t,n){return t=jg(t),B0e(e,u8()?Reflect.construct(t,n||[],jg(e).constructor):t.apply(e,n))}function B0e(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 U0e(e)}function U0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u8=function(){return!!e})()}function jg(e){return jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jg(e)}function z0e(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 D0(e,t,n){return t=f8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f8(e){var t=V0e(e,"string");return nu(t)=="symbol"?t:t+""}function V0e(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)}function W0e(e,t){if(e==null)return{};var n=H0e(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 H0e(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 G0e(e){return e.value}function q0e(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var n=W0e(t,$0e);return V.createElement(hE,n)}var zk=1,Nc=function(e){function t(){var n;I0e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=F0e(this,t,[].concat(i)),D0(n,"lastBoundingBox",{width:-1,height:-1}),n}return z0e(t,e),D0e(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)>zk||Math.abs(i.height-this.lastBoundingBox.height)>zk)&&(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?wo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,c=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:((c||0)-v.width)/2}}else d=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return wo(wo({},d),p)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,d=wo(wo({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return V.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},q0e(o,wo(wo({},this.props),{},{payload:c8(f,c,G0e)})))}}],[{key:"getWithHeight",value:function(r,i){var o=wo(wo({},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}}])}(M.PureComponent);D0(Nc,"displayName","Legend");D0(Nc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Vk=lp,K0e=mE,Y0e=gr,Wk=Vk?Vk.isConcatSpreadable:void 0;function Z0e(e){return Y0e(e)||K0e(e)||!!(Wk&&e&&e[Wk])}var X0e=Z0e,Q0e=X5,J0e=X0e;function d8(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=J0e),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?d8(s,t-1,n,r,i):Q0e(i,s):r||(i[i.length]=s)}return i}var h8=d8;function ebe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var tbe=ebe,nbe=tbe,rbe=nbe(),ibe=rbe,obe=ibe,abe=I0;function sbe(e,t){return e&&obe(e,t,abe)}var p8=sbe,lbe=up;function cbe(e,t){return function(n,r){if(n==null)return n;if(!lbe(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 ube=cbe,fbe=p8,dbe=ube,hbe=dbe(fbe),bE=hbe,pbe=bE,mbe=up;function vbe(e,t){var n=-1,r=mbe(e)?Array(e.length):[];return pbe(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var m8=vbe;function gbe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var ybe=gbe,Hk=Iu;function bbe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Hk(e),a=t!==void 0,s=t===null,l=t===t,c=Hk(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var _be=bbe,xbe=_be;function wbe(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=xbe(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Obe=wbe,G1=iE,Sbe=oE,Pbe=go,Ebe=m8,Cbe=ybe,Tbe=e8,jbe=Obe,Abe=Hu,kbe=gr;function Nbe(e,t,n){t.length?t=G1(t,function(o){return kbe(o)?function(a){return Sbe(a,o.length===1?o[0]:o)}:o}):t=[Abe];var r=-1;t=G1(t,Tbe(Pbe));var i=Ebe(e,function(o,a,s){var l=G1(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return Cbe(i,function(o,a){return jbe(o,a,n)})}var Mbe=Nbe;function Lbe(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 Rbe=Lbe,$be=Rbe,Gk=Math.max;function Ibe(e,t,n){return t=Gk(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Gk(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),$be(e,this,s)}}var Dbe=Ibe;function Fbe(e){return function(){return e}}var Bbe=Fbe,Ube=Sl,zbe=function(){try{var e=Ube(Object,"defineProperty");return e({},"",{}),e}catch{}}(),v8=zbe,Vbe=Bbe,qk=v8,Wbe=Hu,Hbe=qk?function(e,t){return qk(e,"toString",{configurable:!0,enumerable:!1,value:Vbe(t),writable:!0})}:Wbe,Gbe=Hbe,qbe=800,Kbe=16,Ybe=Date.now;function Zbe(e){var t=0,n=0;return function(){var r=Ybe(),i=Kbe-(r-n);if(n=r,i>0){if(++t>=qbe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Xbe=Zbe,Qbe=Gbe,Jbe=Xbe,e1e=Jbe(Qbe),t1e=e1e,n1e=Hu,r1e=Dbe,i1e=t1e;function o1e(e,t){return i1e(r1e(e,t,n1e),e+"")}var a1e=o1e,s1e=eE,l1e=up,c1e=vE,u1e=ss;function f1e(e,t,n){if(!u1e(n))return!1;var r=typeof t;return(r=="number"?l1e(n)&&c1e(t,n.length):r=="string"&&t in n)?s1e(n[t],e):!1}var F0=f1e,d1e=h8,h1e=Mbe,p1e=a1e,Kk=F0,m1e=p1e(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Kk(e,t[0],t[1])?t=[]:n>2&&Kk(t[0],t[1],t[2])&&(t=[t[0]]),h1e(e,d1e(t,1),[])}),v1e=m1e;const _E=at(v1e);function ch(e){"@babel/helpers - typeof";return ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ch(e)}function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R2.apply(this,arguments)}function g1e(e,t){return x1e(e)||_1e(e,t)||b1e(e,t)||y1e()}function y1e(){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 Yk(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 Yk(e,t)}}function Yk(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 _1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function x1e(e){if(Array.isArray(e))return e}function Zk(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 q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zk(Object(n),!0).forEach(function(r){w1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w1e(e,t,n){return t=O1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O1e(e){var t=S1e(e,"string");return ch(t)=="symbol"?t:t+""}function S1e(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 P1e(e){return Array.isArray(e)&&un(e[0])&&un(e[1])?e.join(" ~ "):e}var E1e=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,l=t.labelStyle,c=l===void 0?{}:l,f=t.payload,d=t.formatter,p=t.itemSorter,v=t.wrapperClassName,y=t.labelClassName,g=t.label,x=t.labelFormatter,_=t.accessibilityLayer,b=_===void 0?!1:_,w=function(){if(f&&f.length){var D={padding:0,margin:0},K=(p?_E(f,p):f).map(function(W,X){if(W.type==="none")return null;var Q=q1({display:"block",paddingTop:4,paddingBottom:4,color:W.color||"#000"},s),te=W.formatter||d||P1e,Z=W.value,z=W.name,B=Z,H=z;if(te&&B!=null&&H!=null){var ee=te(Z,z,W,X,f);if(Array.isArray(ee)){var q=g1e(ee,2);B=q[0],H=q[1]}else B=ee}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(X),style:Q},un(H)?V.createElement("span",{className:"recharts-tooltip-item-name"},H):null,un(H)?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"},W.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:D},K)}return null},S=q1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),P=q1({margin:0},c),E=!Ue(g),T=E?g:"",j=Oe("recharts-default-tooltip",v),F=Oe("recharts-tooltip-label",y);E&&x&&f!==void 0&&f!==null&&(T=x(g,f));var k=b?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",R2({className:j,style:S},k),V.createElement("p",{className:F,style:P},V.isValidElement(T)?T:"".concat(T)),w())};function uh(e){"@babel/helpers - typeof";return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(e)}function gm(e,t,n){return t=C1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C1e(e){var t=T1e(e,"string");return uh(t)=="symbol"?t:t+""}function T1e(e,t){if(uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mf="recharts-tooltip-wrapper",j1e={visibility:"hidden"};function A1e(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Oe(Mf,gm(gm(gm(gm({},"".concat(Mf,"-right"),Ee(n)&&t&&Ee(t.x)&&n>=t.x),"".concat(Mf,"-left"),Ee(n)&&t&&Ee(t.x)&&n<t.x),"".concat(Mf,"-bottom"),Ee(r)&&t&&Ee(t.y)&&r>=t.y),"".concat(Mf,"-top"),Ee(r)&&t&&Ee(t.y)&&r<t.y))}function Xk(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(o&&Ee(o[r]))return o[r];var f=n[r]-s-i,d=n[r]+i;if(t[r])return a[r]?f:d;if(a[r]){var p=f,v=l[r];return p<v?Math.max(d,l[r]):Math.max(f,l[r])}var y=d+s,g=l[r]+c;return y>g?Math.max(f,l[r]):Math.max(d,l[r])}function k1e(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 N1e(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,f,d;return a.height>0&&a.width>0&&n?(f=Xk({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=Xk({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=k1e({translateX:f,translateY:d,useTranslate3d:s})):c=j1e,{cssProperties:c,cssClasses:A1e({translateX:f,translateY:d,coordinate:n})}}function ru(e){"@babel/helpers - typeof";return ru=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},ru(e)}function Qk(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 Jk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qk(Object(n),!0).forEach(function(r){I2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1e(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,y8(r.key),r)}}function R1e(e,t,n){return t&&L1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $1e(e,t,n){return t=Ag(t),I1e(e,g8()?Reflect.construct(t,n||[],Ag(e).constructor):t.apply(e,n))}function I1e(e,t){if(t&&(ru(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D1e(e)}function D1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g8=function(){return!!e})()}function Ag(e){return Ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ag(e)}function F1e(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 I2(e,t,n){return t=y8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8(e){var t=B1e(e,"string");return ru(t)=="symbol"?t:t+""}function B1e(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eN=1,U1e=function(e){function t(){var n;M1e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=$1e(this,t,[].concat(i)),I2(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),I2(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,c,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),n}return F1e(t,e),R1e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>eN||Math.abs(r.height-this.state.lastBoundingBox.height)>eN)&&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,l=i.animationEasing,c=i.children,f=i.coordinate,d=i.hasPayload,p=i.isAnimationActive,v=i.offset,y=i.position,g=i.reverseDirection,x=i.useTranslate3d,_=i.viewBox,b=i.wrapperStyle,w=N1e({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:v,position:y,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:_}),S=w.cssClasses,P=w.cssProperties,E=Jk(Jk({transition:p&&o?"transform ".concat(s,"ms ").concat(l):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},b);return V.createElement("div",{tabIndex:-1,className:S,style:E,ref:function(j){r.wrapperNode=j}},c)}}])}(M.PureComponent),z1e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ii={isSsr:z1e(),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 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)}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 nN(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){xE(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1e(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,_8(r.key),r)}}function H1e(e,t,n){return t&&W1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G1e(e,t,n){return t=kg(t),q1e(e,b8()?Reflect.construct(t,n||[],kg(e).constructor):t.apply(e,n))}function q1e(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 K1e(e)}function K1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b8=function(){return!!e})()}function kg(e){return kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kg(e)}function Y1e(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&&D2(e,t)}function D2(e,t){return D2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},D2(e,t)}function xE(e,t,n){return t=_8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _8(e){var t=Z1e(e,"string");return iu(t)=="symbol"?t:t+""}function Z1e(e,t){if(iu(e)!="object"||!e)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 X1e(e){return e.dataKey}function Q1e(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(E1e,t)}var Yr=function(e){function t(){return V1e(this,t),G1e(this,t,arguments)}return Y1e(t,e),H1e(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.content,f=i.coordinate,d=i.filterNull,p=i.isAnimationActive,v=i.offset,y=i.payload,g=i.payloadUniqBy,x=i.position,_=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,P=y??[];d&&P.length&&(P=c8(y.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),g,X1e));var E=P.length>0;return V.createElement(U1e,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:p,active:o,coordinate:f,hasPayload:E,offset:v,position:x,reverseDirection:_,useTranslate3d:b,viewBox:w,wrapperStyle:S},Q1e(c,nN(nN({},this.props),{},{payload:P})))}}])}(M.PureComponent);xE(Yr,"displayName","Tooltip");xE(Yr,"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 J1e=vo,e_e=function(){return J1e.Date.now()},t_e=e_e,n_e=/\s/;function r_e(e){for(var t=e.length;t--&&n_e.test(e.charAt(t)););return t}var i_e=r_e,o_e=i_e,a_e=/^\s+/;function s_e(e){return e&&e.slice(0,o_e(e)+1).replace(a_e,"")}var l_e=s_e,c_e=l_e,rN=ss,u_e=Iu,iN=NaN,f_e=/^[-+]0x[0-9a-f]+$/i,d_e=/^0b[01]+$/i,h_e=/^0o[0-7]+$/i,p_e=parseInt;function m_e(e){if(typeof e=="number")return e;if(u_e(e))return iN;if(rN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=rN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=c_e(e);var n=d_e.test(e);return n||h_e.test(e)?p_e(e.slice(2),n?2:8):f_e.test(e)?iN:+e}var x8=m_e,v_e=ss,K1=t_e,oN=x8,g_e="Expected a function",y_e=Math.max,b_e=Math.min;function __e(e,t,n){var r,i,o,a,s,l,c=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(g_e);t=oN(t)||0,v_e(n)&&(f=!!n.leading,d="maxWait"in n,o=d?y_e(oN(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function v(E){var T=r,j=i;return r=i=void 0,c=E,a=e.apply(j,T),a}function y(E){return c=E,s=setTimeout(_,t),f?v(E):a}function g(E){var T=E-l,j=E-c,F=t-T;return d?b_e(F,o-j):F}function x(E){var T=E-l,j=E-c;return l===void 0||T>=t||T<0||d&&j>=o}function _(){var E=K1();if(x(E))return b(E);s=setTimeout(_,g(E))}function b(E){return s=void 0,p&&r?v(E):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?a:b(K1())}function P(){var E=K1(),T=x(E);if(r=arguments,i=this,l=E,T){if(s===void 0)return y(l);if(d)return clearTimeout(s),s=setTimeout(_,t),v(l)}return s===void 0&&(s=setTimeout(_,t)),a}return P.cancel=w,P.flush=S,P}var x_e=__e,w_e=x_e,O_e=ss,S_e="Expected a function";function P_e(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(S_e);return O_e(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),w_e(e,t,{leading:r,maxWait:t,trailing:i})}var E_e=P_e;const w8=at(E_e);function fh(e){"@babel/helpers - typeof";return fh=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},fh(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 ym(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){C_e(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 C_e(e,t,n){return t=T_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T_e(e){var t=j_e(e,"string");return fh(t)=="symbol"?t:t+""}function j_e(e,t){if(fh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A_e(e,t){return L_e(e)||M_e(e,t)||N_e(e,t)||k_e()}function k_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 N_e(e,t){if(e){if(typeof e=="string")return sN(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 sN(e,t)}}function sN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function L_e(e){if(Array.isArray(e))return e}var wE=M.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,f=c===void 0?0:c,d=e.minHeight,p=e.maxHeight,v=e.children,y=e.debounce,g=y===void 0?0:y,x=e.id,_=e.className,b=e.onResize,w=e.style,S=w===void 0?{}:w,P=M.useRef(null),E=M.useRef();E.current=b,M.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var T=M.useState({containerWidth:i.width,containerHeight:i.height}),j=A_e(T,2),F=j[0],k=j[1],I=M.useCallback(function(K,W){k(function(X){var Q=Math.round(K),te=Math.round(W);return X.containerWidth===Q&&X.containerHeight===te?X:{containerWidth:Q,containerHeight:te}})},[]);M.useEffect(function(){var K=function(z){var B,H=z[0].contentRect,ee=H.width,q=H.height;I(ee,q),(B=E.current)===null||B===void 0||B.call(E,ee,q)};g>0&&(K=w8(K,g,{trailing:!0,leading:!1}));var W=new ResizeObserver(K),X=P.current.getBoundingClientRect(),Q=X.width,te=X.height;return I(Q,te),W.observe(P.current),function(){W.disconnect()}},[I,g]);var D=M.useMemo(function(){var K=F.containerWidth,W=F.containerHeight;if(K<0||W<0)return null;ji(Bs(a)||Bs(l),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,a,l),ji(!n||n>0,"The aspect(%s) must be greater than zero.",n);var X=Bs(a)?K:a,Q=Bs(l)?W:l;n&&n>0&&(X?Q=X/n:Q&&(X=Q*n),p&&Q>p&&(Q=p)),ji(X>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.`,X,Q,a,l,f,d,n);var te=!Array.isArray(v)&&No(v.type).endsWith("Chart");return V.Children.map(v,function(Z){return g5.isElement(Z)?M.cloneElement(Z,ym({width:X,height:Q},te?{style:ym({height:"100%",width:"100%",maxHeight:Q,maxWidth:X},Z.props.style)}:{})):Z})},[n,v,l,p,d,f,F,a]);return V.createElement("div",{id:x?"".concat(x):void 0,className:Oe("recharts-responsive-container",_),style:ym(ym({},S),{},{width:a,height:l,minWidth:f,minHeight:d,maxHeight:p}),ref:P},D)}),Fa=function(t){return null};Fa.displayName="Cell";function dh(e){"@babel/helpers - typeof";return dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dh(e)}function lN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function F2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lN(Object(n),!0).forEach(function(r){R_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R_e(e,t,n){return t=$_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $_e(e){var t=I_e(e,"string");return dh(t)=="symbol"?t:t+""}function I_e(e,t){if(dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gl={widthCache:{},cacheCount:0},D_e=2e3,F_e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},cN="recharts_measurement_span";function B_e(e){var t=F2({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var vd=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=B_e(n),i=JSON.stringify({text:t,copyStyle:r});if(Gl.widthCache[i])return Gl.widthCache[i];try{var o=document.getElementById(cN);o||(o=document.createElement("span"),o.setAttribute("id",cN),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=F2(F2({},F_e),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return Gl.widthCache[i]=l,++Gl.cacheCount>D_e&&(Gl.cacheCount=0,Gl.widthCache={}),l}catch{return{width:0,height:0}}},U_e=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function hh(e){"@babel/helpers - typeof";return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(e)}function Ng(e,t){return H_e(e)||W_e(e,t)||V_e(e,t)||z_e()}function z_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 V_e(e,t){if(e){if(typeof e=="string")return uN(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 uN(e,t)}}function uN(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 W_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function H_e(e){if(Array.isArray(e))return e}function G_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fN(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,K_e(r.key),r)}}function q_e(e,t,n){return t&&fN(e.prototype,t),n&&fN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function K_e(e){var t=Y_e(e,"string");return hh(t)=="symbol"?t:t+""}function Y_e(e,t){if(hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Z_e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,X_e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,O8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Q_e=Object.keys(O8),bc="NaN";function J_e(e,t){return e*O8[t]}var bm=function(){function e(t,n){G_e(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Z_e.test(n)&&(this.num=NaN,this.unit=""),Q_e.includes(n)&&(this.num=J_e(t,n),this.unit="px")}return q_e(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=X_e.exec(n))!==null&&r!==void 0?r:[],o=Ng(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function S8(e){if(e.includes(bc))return bc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=dN.exec(t))!==null&&n!==void 0?n:[],i=Ng(r,4),o=i[1],a=i[2],s=i[3],l=bm.parse(o??""),c=bm.parse(s??""),f=a==="*"?l.multiply(c):l.divide(c);if(f.isNaN())return bc;t=t.replace(dN,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=hN.exec(t))!==null&&d!==void 0?d:[],v=Ng(p,4),y=v[1],g=v[2],x=v[3],_=bm.parse(y??""),b=bm.parse(x??""),w=g==="+"?_.add(b):_.subtract(b);if(w.isNaN())return bc;t=t.replace(hN,w.toString())}return t}var pN=/\(([^()]*)\)/;function exe(e){for(var t=e;t.includes("(");){var n=pN.exec(t),r=Ng(n,2),i=r[1];t=t.replace(pN,S8(i))}return t}function txe(e){var t=e.replace(/\s+/g,"");return t=exe(t),t=S8(t),t}function nxe(e){try{return txe(e)}catch{return bc}}function Y1(e){var t=nxe(e.slice(5,-1));return t===bc?"":t}var rxe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ixe=["dx","dy","angle","className","breakAll"];function B2(){return B2=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},B2.apply(this,arguments)}function mN(e,t){if(e==null)return{};var n=oxe(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 oxe(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 vN(e,t){return cxe(e)||lxe(e,t)||sxe(e,t)||axe()}function axe(){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 sxe(e,t){if(e){if(typeof e=="string")return gN(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 gN(e,t)}}function gN(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 lxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function cxe(e){if(Array.isArray(e))return e}var P8=/[ \f\n\r\t\v\u2028\u2029]+/,E8=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];Ue(n)||(r?o=n.toString().split(""):o=n.toString().split(P8));var a=o.map(function(l){return{word:l,width:vd(l,i).width}}),s=r?0:vd(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},uxe=function(t,n,r,i,o){var a=t.maxLines,s=t.children,l=t.style,c=t.breakAll,f=Ee(a),d=s,p=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return X.reduce(function(Q,te){var Z=te.word,z=te.width,B=Q[Q.length-1];if(B&&(i==null||o||B.width+z+r<Number(i)))B.words.push(Z),B.width+=z+r;else{var H={words:[Z],width:z};Q.push(H)}return Q},[])},v=p(n),y=function(X){return X.reduce(function(Q,te){return Q.width>te.width?Q:te})};if(!f)return v;for(var g="…",x=function(X){var Q=d.slice(0,X),te=E8({breakAll:c,style:l,children:Q+g}).wordsWithComputedWidth,Z=p(te),z=Z.length>a||y(Z).width>Number(i);return[z,Z]},_=0,b=d.length-1,w=0,S;_<=b&&w<=d.length-1;){var P=Math.floor((_+b)/2),E=P-1,T=x(E),j=vN(T,2),F=j[0],k=j[1],I=x(P),D=vN(I,1),K=D[0];if(!F&&!K&&(_=P+1),F&&K&&(b=P-1),!F&&K){S=k;break}w++}return S||v},yN=function(t){var n=Ue(t)?[]:t.toString().split(P8);return[{words:n}]},fxe=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 l,c,f=E8({breakAll:a,children:i,style:o});if(f){var d=f.wordsWithComputedWidth,p=f.spaceWidth;l=d,c=p}else return yN(i);return uxe({breakAll:a,children:i,maxLines:s,style:o},l,c,n,r)}return yN(i)},bN="#808080",pl=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,l=t.capHeight,c=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,p=t.textAnchor,v=p===void 0?"start":p,y=t.verticalAnchor,g=y===void 0?"end":y,x=t.fill,_=x===void 0?bN:x,b=mN(t,rxe),w=M.useMemo(function(){return fxe({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:d,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,d,b.style,b.width]),S=b.dx,P=b.dy,E=b.angle,T=b.className,j=b.breakAll,F=mN(b,ixe);if(!un(r)||!un(o))return null;var k=r+(Ee(S)?S:0),I=o+(Ee(P)?P:0),D;switch(g){case"start":D=Y1("calc(".concat(c,")"));break;case"middle":D=Y1("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:D=Y1("calc(".concat(w.length-1," * -").concat(s,")"));break}var K=[];if(d){var W=w[0].width,X=b.width;K.push("scale(".concat((Ee(X)?X/W:1)/W,")"))}return E&&K.push("rotate(".concat(E,", ").concat(k,", ").concat(I,")")),K.length&&(F.transform=K.join(" ")),V.createElement("text",B2({},De(F,!0),{x:k,y:I,className:Oe("recharts-text",T),textAnchor:v,fill:_.includes("url")?bN:_}),w.map(function(Q,te){var Z=Q.words.join(j?"":" ");return V.createElement("tspan",{x:k,dy:te===0?D:s,key:"".concat(Z,"-").concat(te)},Z)}))};function Ba(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function dxe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function OE(e){let t,n,r;e.length!==2?(t=Ba,n=(s,l)=>Ba(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ba||e===dxe?e:hxe,n=e,r=e);function i(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<0?c=d+1:f=d}while(c<f)}return c}function o(s,l,c=0,f=s.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(s[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function a(s,l,c=0,f=s.length){const d=i(s,l,c,f-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function hxe(){return 0}function C8(e){return e===null?NaN:+e}function*pxe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const mxe=OE(Ba),fp=mxe.right;OE(C8).center;class _N extends Map{constructor(t,n=yxe){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(xN(this,t))}has(t){return super.has(xN(this,t))}set(t,n){return super.set(vxe(this,t),n)}delete(t){return super.delete(gxe(this,t))}}function xN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function vxe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function gxe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function yxe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function bxe(e=Ba){if(e===Ba)return T8;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 T8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const _xe=Math.sqrt(50),xxe=Math.sqrt(10),wxe=Math.sqrt(2);function Mg(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>=_xe?10:o>=xxe?5:o>=wxe?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Mg(e,t,n*2):[s,l,c]}function U2(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?Mg(t,e,n):Mg(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function z2(e,t,n){return t=+t,e=+e,n=+n,Mg(e,t,n)[2]}function V2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?z2(t,e,n):z2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function wN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function ON(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function j8(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?T8:bxe(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1),v=Math.max(n,Math.floor(t-c*d/l+p)),y=Math.min(r,Math.floor(t+(l-c)*d/l+p));j8(e,t,v,y,i)}const o=e[t];let a=n,s=r;for(Lf(e,n,t),i(e[r],o)>0&&Lf(e,n,r);a<s;){for(Lf(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?Lf(e,n,s):(++s,Lf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Lf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Oxe(e,t,n){if(e=Float64Array.from(pxe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ON(e);if(t>=1)return wN(e);var r,i=(r-1)*t,o=Math.floor(i),a=wN(j8(e,o).subarray(0,o+1)),s=ON(e.subarray(o+1));return a+(s-a)*(i-o)}}function Sxe(e,t,n=C8){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 Pxe(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 di(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 W2=Symbol("implicit");function SE(){var e=new _N,t=[],n=[],r=W2;function i(o){let a=e.get(o);if(a===void 0){if(r!==W2)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 _N;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 SE(t,n).unknown(r)},di.apply(i,arguments),i}function ph(){var e=SE().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,f=.5;delete e.unknown;function d(){var p=t().length,v=i<r,y=v?i:r,g=v?r:i;o=(g-y)/Math.max(1,p-l+c*2),s&&(o=Math.floor(o)),y+=(g-y-o*(p-l))*f,a=o*(1-l),s&&(y=Math.round(y),a=Math.round(a));var x=Pxe(p).map(function(_){return y+o*_});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?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return ph(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(f)},di.apply(d(),arguments)}function A8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return A8(t())},e}function gd(){return A8(ph.apply(null,arguments).paddingInner(1))}function PE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function k8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dp(){}var mh=.7,Lg=1/mh,Mc="\\s*([+-]?\\d+)\\s*",vh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Exe=/^#([0-9a-f]{3,8})$/,Cxe=new RegExp(`^rgb\\(${Mc},${Mc},${Mc}\\)$`),Txe=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),jxe=new RegExp(`^rgba\\(${Mc},${Mc},${Mc},${vh}\\)$`),Axe=new RegExp(`^rgba\\(${io},${io},${io},${vh}\\)$`),kxe=new RegExp(`^hsl\\(${vh},${io},${io}\\)$`),Nxe=new RegExp(`^hsla\\(${vh},${io},${io},${vh}\\)$`),SN={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};PE(dp,gh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PN,formatHex:PN,formatHex8:Mxe,formatHsl:Lxe,formatRgb:EN,toString:EN});function PN(){return this.rgb().formatHex()}function Mxe(){return this.rgb().formatHex8()}function Lxe(){return N8(this).formatHsl()}function EN(){return this.rgb().formatRgb()}function gh(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Exe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?CN(t):n===3?new sr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_m(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_m(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=Cxe.exec(e))?new sr(t[1],t[2],t[3],1):(t=Txe.exec(e))?new sr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jxe.exec(e))?_m(t[1],t[2],t[3],t[4]):(t=Axe.exec(e))?_m(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kxe.exec(e))?AN(t[1],t[2]/100,t[3]/100,1):(t=Nxe.exec(e))?AN(t[1],t[2]/100,t[3]/100,t[4]):SN.hasOwnProperty(e)?CN(SN[e]):e==="transparent"?new sr(NaN,NaN,NaN,0):null}function CN(e){return new sr(e>>16&255,e>>8&255,e&255,1)}function _m(e,t,n,r){return r<=0&&(e=t=n=NaN),new sr(e,t,n,r)}function Rxe(e){return e instanceof dp||(e=gh(e)),e?(e=e.rgb(),new sr(e.r,e.g,e.b,e.opacity)):new sr}function H2(e,t,n,r){return arguments.length===1?Rxe(e):new sr(e,t,n,r??1)}function sr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}PE(sr,H2,k8(dp,{brighter(e){return e=e==null?Lg:Math.pow(Lg,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mh:Math.pow(mh,e),new sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sr(Qs(this.r),Qs(this.g),Qs(this.b),Rg(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:TN,formatHex:TN,formatHex8:$xe,formatRgb:jN,toString:jN}));function TN(){return`#${Us(this.r)}${Us(this.g)}${Us(this.b)}`}function $xe(){return`#${Us(this.r)}${Us(this.g)}${Us(this.b)}${Us((isNaN(this.opacity)?1:this.opacity)*255)}`}function jN(){const e=Rg(this.opacity);return`${e===1?"rgb(":"rgba("}${Qs(this.r)}, ${Qs(this.g)}, ${Qs(this.b)}${e===1?")":`, ${e})`}`}function Rg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Us(e){return e=Qs(e),(e<16?"0":"")+e.toString(16)}function AN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pi(e,t,n,r)}function N8(e){if(e instanceof Pi)return new Pi(e.h,e.s,e.l,e.opacity);if(e instanceof dp||(e=gh(e)),!e)return new Pi;if(e instanceof Pi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Pi(a,s,l,e.opacity)}function Ixe(e,t,n,r){return arguments.length===1?N8(e):new Pi(e,t,n,r??1)}function Pi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}PE(Pi,Ixe,k8(dp,{brighter(e){return e=e==null?Lg:Math.pow(Lg,e),new Pi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mh:Math.pow(mh,e),new Pi(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 sr(Z1(e>=240?e-240:e+120,i,r),Z1(e,i,r),Z1(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Pi(kN(this.h),xm(this.s),xm(this.l),Rg(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=Rg(this.opacity);return`${e===1?"hsl(":"hsla("}${kN(this.h)}, ${xm(this.s)*100}%, ${xm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function kN(e){return e=(e||0)%360,e<0?e+360:e}function xm(e){return Math.max(0,Math.min(1,e||0))}function Z1(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 EE=e=>()=>e;function Dxe(e,t){return function(n){return e+n*t}}function Fxe(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 Bxe(e){return(e=+e)==1?M8:function(t,n){return n-t?Fxe(t,n,e):EE(isNaN(t)?n:t)}}function M8(e,t){var n=t-e;return n?Dxe(e,n):EE(isNaN(e)?t:e)}const NN=function e(t){var n=Bxe(t);function r(i,o){var a=n((i=H2(i)).r,(o=H2(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=M8(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=c(f),i+""}}return r.gamma=e,r}(1);function Uxe(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 zxe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Vxe(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]=Gu(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 Wxe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function $g(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Hxe(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]=Gu(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var G2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,X1=new RegExp(G2.source,"g");function Gxe(e){return function(){return e}}function qxe(e){return function(t){return e(t)+""}}function Kxe(e,t){var n=G2.lastIndex=X1.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=G2.exec(e))&&(i=X1.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:$g(r,i)})),n=X1.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?qxe(l[0].x):Gxe(t):(t=l.length,function(c){for(var f=0,d;f<t;++f)s[(d=l[f]).i]=d.x(c);return s.join("")})}function Gu(e,t){var n=typeof t,r;return t==null||n==="boolean"?EE(t):(n==="number"?$g:n==="string"?(r=gh(t))?(t=r,NN):Kxe:t instanceof gh?NN:t instanceof Date?Wxe:zxe(t)?Uxe:Array.isArray(t)?Vxe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Hxe:$g)(e,t)}function CE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Yxe(e,t){t===void 0&&(t=e,e=Gu);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 Zxe(e){return function(){return e}}function Ig(e){return+e}var MN=[0,1];function Kn(e){return e}function q2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Zxe(isNaN(t)?NaN:.5)}function Xxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Qxe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=q2(i,r),o=n(a,o)):(r=q2(r,i),o=n(o,a)),function(s){return o(r(s))}}function Jxe(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]=q2(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=fp(e,s,1,r)-1;return o[l](i[l](s))}}function hp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function B0(){var e=MN,t=MN,n=Gu,r,i,o,a=Kn,s,l,c;function f(){var p=Math.min(e.length,t.length);return a!==Kn&&(a=Xxe(e[0],e[p-1])),s=p>2?Jxe:Qxe,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?o:(l||(l=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(i((c||(c=s(t,e.map(r),$g)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Ig),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=CE,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Kn,f()):a!==Kn},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 TE(){return B0()(Kn,Kn)}function ewe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Dg(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 ou(e){return e=Dg(Math.abs(e)),e?e[1]:NaN}function twe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function nwe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var rwe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yh(e){if(!(t=rwe.exec(e)))throw new Error("invalid format: "+e);var t;return new jE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}yh.prototype=jE.prototype;function jE(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+""}jE.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 iwe(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 L8;function owe(e,t){var n=Dg(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(L8=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")+Dg(e,Math.max(0,t+o-1))[0]}function LN(e,t){var n=Dg(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 RN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ewe,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)=>LN(e*100,t),r:LN,s:owe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function $N(e){return e}var IN=Array.prototype.map,DN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function awe(e){var t=e.grouping===void 0||e.thousands===void 0?$N:twe(IN.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?$N:nwe(IN.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=yh(d);var p=d.fill,v=d.align,y=d.sign,g=d.symbol,x=d.zero,_=d.width,b=d.comma,w=d.precision,S=d.trim,P=d.type;P==="n"?(b=!0,P="g"):RN[P]||(w===void 0&&(w=12),S=!0,P="g"),(x||p==="0"&&v==="=")&&(x=!0,p="0",v="=");var E=g==="$"?n:g==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",T=g==="$"?r:/[%p]/.test(P)?a:"",j=RN[P],F=/[defgprs%]/.test(P);w=w===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function k(I){var D=E,K=T,W,X,Q;if(P==="c")K=j(I)+K,I="";else{I=+I;var te=I<0||1/I<0;if(I=isNaN(I)?l:j(Math.abs(I),w),S&&(I=iwe(I)),te&&+I==0&&y!=="+"&&(te=!1),D=(te?y==="("?y:s:y==="-"||y==="("?"":y)+D,K=(P==="s"?DN[8+L8/3]:"")+K+(te&&y==="("?")":""),F){for(W=-1,X=I.length;++W<X;)if(Q=I.charCodeAt(W),48>Q||Q>57){K=(Q===46?i+I.slice(W+1):I.slice(W))+K,I=I.slice(0,W);break}}}b&&!x&&(I=t(I,1/0));var Z=D.length+I.length+K.length,z=Z<_?new Array(_-Z+1).join(p):"";switch(b&&x&&(I=t(z+I,z.length?_-K.length:1/0),z=""),v){case"<":I=D+I+K+z;break;case"=":I=D+z+I+K;break;case"^":I=z.slice(0,Z=z.length>>1)+D+I+K+z.slice(Z);break;default:I=z+D+I+K;break}return o(I)}return k.toString=function(){return d+""},k}function f(d,p){var v=c((d=yh(d),d.type="f",d)),y=Math.max(-8,Math.min(8,Math.floor(ou(p)/3)))*3,g=Math.pow(10,-y),x=DN[8+y/3];return function(_){return v(g*_)+x}}return{format:c,formatPrefix:f}}var wm,AE,R8;swe({thousands:",",grouping:[3],currency:["$",""]});function swe(e){return wm=awe(e),AE=wm.format,R8=wm.formatPrefix,wm}function lwe(e){return Math.max(0,-ou(Math.abs(e)))}function cwe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ou(t)/3)))*3-ou(Math.abs(e)))}function uwe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ou(t)-ou(e))+1}function $8(e,t,n,r){var i=V2(e,t,n),o;switch(r=yh(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=cwe(i,a))&&(r.precision=o),R8(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=uwe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=lwe(i))&&(r.precision=o-(r.type==="%")*2);break}}return AE(r)}function cs(e){var t=e.domain;return e.ticks=function(n){var r=t();return U2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return $8(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,f=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);f-- >0;){if(c=z2(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Fg(){var e=TE();return e.copy=function(){return hp(e,Fg())},di.apply(e,arguments),cs(e)}function I8(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,Ig),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return I8(e).unknown(t)},e=arguments.length?Array.from(e,Ig):[0,1],cs(n)}function D8(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 FN(e){return Math.log(e)}function BN(e){return Math.exp(e)}function fwe(e){return-Math.log(-e)}function dwe(e){return-Math.exp(-e)}function hwe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pwe(e){return e===10?hwe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function mwe(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 UN(e){return(t,n)=>-e(-t,n)}function kE(e){const t=e(FN,BN),n=t.domain;let r=10,i,o;function a(){return i=mwe(r),o=pwe(r),n()[0]<0?(i=UN(i),o=UN(o),e(fwe,dwe)):e(FN,BN),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],f=l[l.length-1];const d=f<c;d&&([c,f]=[f,c]);let p=i(c),v=i(f),y,g;const x=s==null?10:+s;let _=[];if(!(r%1)&&v-p<x){if(p=Math.floor(p),v=Math.ceil(v),c>0){for(;p<=v;++p)for(y=1;y<r;++y)if(g=p<0?y/o(-p):y*o(p),!(g<c)){if(g>f)break;_.push(g)}}else for(;p<=v;++p)for(y=r-1;y>=1;--y)if(g=p>0?y/o(-p):y*o(p),!(g<c)){if(g>f)break;_.push(g)}_.length*2<x&&(_=U2(c,f,x))}else _=U2(p,v,Math.min(v-p,x)).map(o);return d?_.reverse():_},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=yh(l)).precision==null&&(l.trim=!0),l=AE(l)),s===1/0)return l;const c=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<=c?l(f):""}},t.nice=()=>n(D8(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function F8(){const e=kE(B0()).domain([1,10]);return e.copy=()=>hp(e,F8()).base(e.base()),di.apply(e,arguments),e}function zN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function VN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function NE(e){var t=1,n=e(zN(t),VN(t));return n.constant=function(r){return arguments.length?e(zN(t=+r),VN(t)):t},cs(n)}function B8(){var e=NE(B0());return e.copy=function(){return hp(e,B8()).constant(e.constant())},di.apply(e,arguments)}function WN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function vwe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function gwe(e){return e<0?-e*e:e*e}function ME(e){var t=e(Kn,Kn),n=1;function r(){return n===1?e(Kn,Kn):n===.5?e(vwe,gwe):e(WN(n),WN(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},cs(t)}function LE(){var e=ME(B0());return e.copy=function(){return hp(e,LE()).exponent(e.exponent())},di.apply(e,arguments),e}function ywe(){return LE.apply(null,arguments).exponent(.5)}function HN(e){return Math.sign(e)*e*e}function bwe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function U8(){var e=TE(),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(HN(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,Ig)).map(HN)),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 U8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},di.apply(i,arguments),cs(i)}function z8(){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]=Sxe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[fp(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(Ba),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 z8().domain(e).range(t).unknown(r)},di.apply(o,arguments)}function V8(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[fp(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return V8().domain([e,t]).range(i).unknown(o)},di.apply(cs(a),arguments)}function W8(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[fp(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 W8().domain(e).range(t).unknown(n)},di.apply(i,arguments)}const Q1=new Date,J1=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 l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},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),J1.setTime(+a),e(Q1),e(J1),Math.floor(n(Q1,J1))),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 Bg=dn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Bg.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):Bg);Bg.range;const To=1e3,ti=To*60,jo=ti*60,Ho=jo*24,RE=Ho*7,GN=Ho*30,e_=Ho*365,zs=dn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*To)},(e,t)=>(t-e)/To,e=>e.getUTCSeconds());zs.range;const $E=dn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*To)},(e,t)=>{e.setTime(+e+t*ti)},(e,t)=>(t-e)/ti,e=>e.getMinutes());$E.range;const IE=dn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ti)},(e,t)=>(t-e)/ti,e=>e.getUTCMinutes());IE.range;const DE=dn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*To-e.getMinutes()*ti)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getHours());DE.range;const FE=dn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getUTCHours());FE.range;const pp=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);pp.range;const U0=dn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ho,e=>e.getUTCDate()-1);U0.range;const H8=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));H8.range;function Pl(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)/RE)}const z0=Pl(0),Ug=Pl(1),_we=Pl(2),xwe=Pl(3),au=Pl(4),wwe=Pl(5),Owe=Pl(6);z0.range;Ug.range;_we.range;xwe.range;au.range;wwe.range;Owe.range;function El(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)/RE)}const V0=El(0),zg=El(1),Swe=El(2),Pwe=El(3),su=El(4),Ewe=El(5),Cwe=El(6);V0.range;zg.range;Swe.range;Pwe.range;su.range;Ewe.range;Cwe.range;const BE=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());BE.range;const UE=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());UE.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 qo=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());qo.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)});qo.range;function G8(e,t,n,r,i,o){const a=[[zs,1,To],[zs,5,5*To],[zs,15,15*To],[zs,30,30*To],[o,1,ti],[o,5,5*ti],[o,15,15*ti],[o,30,30*ti],[i,1,jo],[i,3,3*jo],[i,6,6*jo],[i,12,12*jo],[r,1,Ho],[r,2,2*Ho],[n,1,RE],[t,1,GN],[t,3,3*GN],[e,1,e_]];function s(c,f,d){const p=f<c;p&&([c,f]=[f,c]);const v=d&&typeof d.range=="function"?d:l(c,f,d),y=v?v.range(c,+f+1):[];return p?y.reverse():y}function l(c,f,d){const p=Math.abs(f-c)/d,v=OE(([,,x])=>x).right(a,p);if(v===a.length)return e.every(V2(c/e_,f/e_,d));if(v===0)return Bg.every(Math.max(V2(c,f,d),1));const[y,g]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return y.every(g)}return[s,l]}const[Twe,jwe]=G8(qo,UE,V0,H8,FE,IE),[Awe,kwe]=G8(Go,BE,z0,pp,DE,$E);function t_(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 n_(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 Rf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Nwe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=$f(i),f=If(i),d=$f(o),p=If(o),v=$f(a),y=If(a),g=$f(s),x=If(s),_=$f(l),b=If(l),w={a:te,A:Z,b:z,B,c:null,d:QN,e:QN,f:t2e,g:f2e,G:h2e,H:Qwe,I:Jwe,j:e2e,L:q8,m:n2e,M:r2e,p:H,q:ee,Q:tM,s:nM,S:i2e,u:o2e,U:a2e,V:s2e,w:l2e,W:c2e,x:null,X:null,y:u2e,Y:d2e,Z:p2e,"%":eM},S={a:q,A:ne,b:re,B:ae,c:null,d:JN,e:JN,f:y2e,g:T2e,G:A2e,H:m2e,I:v2e,j:g2e,L:Y8,m:b2e,M:_2e,p:ue,q:A,Q:tM,s:nM,S:x2e,u:w2e,U:O2e,V:S2e,w:P2e,W:E2e,x:null,X:null,y:C2e,Y:j2e,Z:k2e,"%":eM},P={a:k,A:I,b:D,B:K,c:W,d:ZN,e:ZN,f:Kwe,g:YN,G:KN,H:XN,I:XN,j:Wwe,L:qwe,m:Vwe,M:Hwe,p:F,q:zwe,Q:Zwe,s:Xwe,S:Gwe,u:Iwe,U:Dwe,V:Fwe,w:$we,W:Bwe,x:X,X:Q,y:YN,Y:KN,Z:Uwe,"%":Ywe};w.x=E(n,w),w.X=E(r,w),w.c=E(t,w),S.x=E(n,S),S.X=E(r,S),S.c=E(t,S);function E(N,U){return function(J){var Y=[],oe=-1,he=0,Pe=N.length,se,pe,ve;for(J instanceof Date||(J=new Date(+J));++oe<Pe;)N.charCodeAt(oe)===37&&(Y.push(N.slice(he,oe)),(pe=qN[se=N.charAt(++oe)])!=null?se=N.charAt(++oe):pe=se==="e"?" ":"0",(ve=U[se])&&(se=ve(J,pe)),Y.push(se),he=oe+1);return Y.push(N.slice(he,oe)),Y.join("")}}function T(N,U){return function(J){var Y=Rf(1900,void 0,1),oe=j(Y,N,J+="",0),he,Pe;if(oe!=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(U&&!("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?(he=n_(Rf(Y.y,0,1)),Pe=he.getUTCDay(),he=Pe>4||Pe===0?zg.ceil(he):zg(he),he=U0.offset(he,(Y.V-1)*7),Y.y=he.getUTCFullYear(),Y.m=he.getUTCMonth(),Y.d=he.getUTCDate()+(Y.w+6)%7):(he=t_(Rf(Y.y,0,1)),Pe=he.getDay(),he=Pe>4||Pe===0?Ug.ceil(he):Ug(he),he=pp.offset(he,(Y.V-1)*7),Y.y=he.getFullYear(),Y.m=he.getMonth(),Y.d=he.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),Pe="Z"in Y?n_(Rf(Y.y,0,1)).getUTCDay():t_(Rf(Y.y,0,1)).getDay(),Y.m=0,Y.d="W"in Y?(Y.w+6)%7+Y.W*7-(Pe+5)%7:Y.w+Y.U*7-(Pe+6)%7);return"Z"in Y?(Y.H+=Y.Z/100|0,Y.M+=Y.Z%100,n_(Y)):t_(Y)}}function j(N,U,J,Y){for(var oe=0,he=U.length,Pe=J.length,se,pe;oe<he;){if(Y>=Pe)return-1;if(se=U.charCodeAt(oe++),se===37){if(se=U.charAt(oe++),pe=P[se in qN?U.charAt(oe++):se],!pe||(Y=pe(N,J,Y))<0)return-1}else if(se!=J.charCodeAt(Y++))return-1}return Y}function F(N,U,J){var Y=c.exec(U.slice(J));return Y?(N.p=f.get(Y[0].toLowerCase()),J+Y[0].length):-1}function k(N,U,J){var Y=v.exec(U.slice(J));return Y?(N.w=y.get(Y[0].toLowerCase()),J+Y[0].length):-1}function I(N,U,J){var Y=d.exec(U.slice(J));return Y?(N.w=p.get(Y[0].toLowerCase()),J+Y[0].length):-1}function D(N,U,J){var Y=_.exec(U.slice(J));return Y?(N.m=b.get(Y[0].toLowerCase()),J+Y[0].length):-1}function K(N,U,J){var Y=g.exec(U.slice(J));return Y?(N.m=x.get(Y[0].toLowerCase()),J+Y[0].length):-1}function W(N,U,J){return j(N,t,U,J)}function X(N,U,J){return j(N,n,U,J)}function Q(N,U,J){return j(N,r,U,J)}function te(N){return a[N.getDay()]}function Z(N){return o[N.getDay()]}function z(N){return l[N.getMonth()]}function B(N){return s[N.getMonth()]}function H(N){return i[+(N.getHours()>=12)]}function ee(N){return 1+~~(N.getMonth()/3)}function q(N){return a[N.getUTCDay()]}function ne(N){return o[N.getUTCDay()]}function re(N){return l[N.getUTCMonth()]}function ae(N){return s[N.getUTCMonth()]}function ue(N){return i[+(N.getUTCHours()>=12)]}function A(N){return 1+~~(N.getUTCMonth()/3)}return{format:function(N){var U=E(N+="",w);return U.toString=function(){return N},U},parse:function(N){var U=T(N+="",!1);return U.toString=function(){return N},U},utcFormat:function(N){var U=E(N+="",S);return U.toString=function(){return N},U},utcParse:function(N){var U=T(N+="",!0);return U.toString=function(){return N},U}}}var qN={"-":"",_:" ",0:"0"},xn=/^\s*\d+/,Mwe=/^%/,Lwe=/[\\^$*+?|[\]().{}]/g;function ut(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 Rwe(e){return e.replace(Lwe,"\\$&")}function $f(e){return new RegExp("^(?:"+e.map(Rwe).join("|")+")","i")}function If(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function $we(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Iwe(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Dwe(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fwe(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Bwe(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function KN(e,t,n){var r=xn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function YN(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Uwe(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 zwe(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Vwe(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ZN(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Wwe(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function XN(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hwe(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Gwe(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function qwe(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Kwe(e,t,n){var r=xn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ywe(e,t,n){var r=Mwe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Zwe(e,t,n){var r=xn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Xwe(e,t,n){var r=xn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function QN(e,t){return ut(e.getDate(),t,2)}function Qwe(e,t){return ut(e.getHours(),t,2)}function Jwe(e,t){return ut(e.getHours()%12||12,t,2)}function e2e(e,t){return ut(1+pp.count(Go(e),e),t,3)}function q8(e,t){return ut(e.getMilliseconds(),t,3)}function t2e(e,t){return q8(e,t)+"000"}function n2e(e,t){return ut(e.getMonth()+1,t,2)}function r2e(e,t){return ut(e.getMinutes(),t,2)}function i2e(e,t){return ut(e.getSeconds(),t,2)}function o2e(e){var t=e.getDay();return t===0?7:t}function a2e(e,t){return ut(z0.count(Go(e)-1,e),t,2)}function K8(e){var t=e.getDay();return t>=4||t===0?au(e):au.ceil(e)}function s2e(e,t){return e=K8(e),ut(au.count(Go(e),e)+(Go(e).getDay()===4),t,2)}function l2e(e){return e.getDay()}function c2e(e,t){return ut(Ug.count(Go(e)-1,e),t,2)}function u2e(e,t){return ut(e.getFullYear()%100,t,2)}function f2e(e,t){return e=K8(e),ut(e.getFullYear()%100,t,2)}function d2e(e,t){return ut(e.getFullYear()%1e4,t,4)}function h2e(e,t){var n=e.getDay();return e=n>=4||n===0?au(e):au.ceil(e),ut(e.getFullYear()%1e4,t,4)}function p2e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ut(t/60|0,"0",2)+ut(t%60,"0",2)}function JN(e,t){return ut(e.getUTCDate(),t,2)}function m2e(e,t){return ut(e.getUTCHours(),t,2)}function v2e(e,t){return ut(e.getUTCHours()%12||12,t,2)}function g2e(e,t){return ut(1+U0.count(qo(e),e),t,3)}function Y8(e,t){return ut(e.getUTCMilliseconds(),t,3)}function y2e(e,t){return Y8(e,t)+"000"}function b2e(e,t){return ut(e.getUTCMonth()+1,t,2)}function _2e(e,t){return ut(e.getUTCMinutes(),t,2)}function x2e(e,t){return ut(e.getUTCSeconds(),t,2)}function w2e(e){var t=e.getUTCDay();return t===0?7:t}function O2e(e,t){return ut(V0.count(qo(e)-1,e),t,2)}function Z8(e){var t=e.getUTCDay();return t>=4||t===0?su(e):su.ceil(e)}function S2e(e,t){return e=Z8(e),ut(su.count(qo(e),e)+(qo(e).getUTCDay()===4),t,2)}function P2e(e){return e.getUTCDay()}function E2e(e,t){return ut(zg.count(qo(e)-1,e),t,2)}function C2e(e,t){return ut(e.getUTCFullYear()%100,t,2)}function T2e(e,t){return e=Z8(e),ut(e.getUTCFullYear()%100,t,2)}function j2e(e,t){return ut(e.getUTCFullYear()%1e4,t,4)}function A2e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?su(e):su.ceil(e),ut(e.getUTCFullYear()%1e4,t,4)}function k2e(){return"+0000"}function eM(){return"%"}function tM(e){return+e}function nM(e){return Math.floor(+e/1e3)}var ql,X8,Q8;N2e({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 N2e(e){return ql=Nwe(e),X8=ql.format,ql.parse,Q8=ql.utcFormat,ql.utcParse,ql}function M2e(e){return new Date(e)}function L2e(e){return e instanceof Date?+e:+new Date(+e)}function zE(e,t,n,r,i,o,a,s,l,c){var f=TE(),d=f.invert,p=f.domain,v=c(".%L"),y=c(":%S"),g=c("%I:%M"),x=c("%I %p"),_=c("%a %d"),b=c("%b %d"),w=c("%B"),S=c("%Y");function P(E){return(l(E)<E?v:s(E)<E?y:a(E)<E?g:o(E)<E?x:r(E)<E?i(E)<E?_:b:n(E)<E?w:S)(E)}return f.invert=function(E){return new Date(d(E))},f.domain=function(E){return arguments.length?p(Array.from(E,L2e)):p().map(M2e)},f.ticks=function(E){var T=p();return e(T[0],T[T.length-1],E??10)},f.tickFormat=function(E,T){return T==null?P:c(T)},f.nice=function(E){var T=p();return(!E||typeof E.range!="function")&&(E=t(T[0],T[T.length-1],E??10)),E?p(D8(T,E)):f},f.copy=function(){return hp(f,zE(e,t,n,r,i,o,a,s,l,c))},f}function R2e(){return di.apply(zE(Awe,kwe,Go,BE,z0,pp,DE,$E,zs,X8).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $2e(){return di.apply(zE(Twe,jwe,qo,UE,V0,U0,FE,IE,zs,Q8).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function W0(){var e=0,t=1,n,r,i,o,a=Kn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function f(d){return function(p){var v,y;return arguments.length?([v,y]=p,a=d(v,y),c):[a(0),a(1)]}}return c.range=f(Gu),c.rangeRound=f(CE),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function us(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function J8(){var e=cs(W0()(Kn));return e.copy=function(){return us(e,J8())},ra.apply(e,arguments)}function eF(){var e=kE(W0()).domain([1,10]);return e.copy=function(){return us(e,eF()).base(e.base())},ra.apply(e,arguments)}function tF(){var e=NE(W0());return e.copy=function(){return us(e,tF()).constant(e.constant())},ra.apply(e,arguments)}function VE(){var e=ME(W0());return e.copy=function(){return us(e,VE()).exponent(e.exponent())},ra.apply(e,arguments)}function I2e(){return VE.apply(null,arguments).exponent(.5)}function nF(){var e=[],t=Kn;function n(r){if(r!=null&&!isNaN(r=+r))return t((fp(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(Ba),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)=>Oxe(e,o/r))},n.copy=function(){return nF(t).domain(e)},ra.apply(n,arguments)}function H0(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,c=Kn,f,d=!1,p;function v(g){return isNaN(g=+g)?p:(g=.5+((g=+f(g))-o)*(r*g<r*o?s:l),c(d?Math.max(0,Math.min(1,g)):g))}v.domain=function(g){return arguments.length?([e,t,n]=g,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(g){return arguments.length?(d=!!g,v):d},v.interpolator=function(g){return arguments.length?(c=g,v):c};function y(g){return function(x){var _,b,w;return arguments.length?([_,b,w]=x,c=Yxe(g,[_,b,w]),v):[c(0),c(.5),c(1)]}}return v.range=y(Gu),v.rangeRound=y(CE),v.unknown=function(g){return arguments.length?(p=g,v):p},function(g){return f=g,i=g(e),o=g(t),a=g(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,v}}function rF(){var e=cs(H0()(Kn));return e.copy=function(){return us(e,rF())},ra.apply(e,arguments)}function iF(){var e=kE(H0()).domain([.1,1,10]);return e.copy=function(){return us(e,iF()).base(e.base())},ra.apply(e,arguments)}function oF(){var e=NE(H0());return e.copy=function(){return us(e,oF()).constant(e.constant())},ra.apply(e,arguments)}function WE(){var e=ME(H0());return e.copy=function(){return us(e,WE()).exponent(e.exponent())},ra.apply(e,arguments)}function D2e(){return WE.apply(null,arguments).exponent(.5)}const rM=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ph,scaleDiverging:rF,scaleDivergingLog:iF,scaleDivergingPow:WE,scaleDivergingSqrt:D2e,scaleDivergingSymlog:oF,scaleIdentity:I8,scaleImplicit:W2,scaleLinear:Fg,scaleLog:F8,scaleOrdinal:SE,scalePoint:gd,scalePow:LE,scaleQuantile:z8,scaleQuantize:V8,scaleRadial:U8,scaleSequential:J8,scaleSequentialLog:eF,scaleSequentialPow:VE,scaleSequentialQuantile:nF,scaleSequentialSqrt:I2e,scaleSequentialSymlog:tF,scaleSqrt:ywe,scaleSymlog:B8,scaleThreshold:W8,scaleTime:R2e,scaleUtc:$2e,tickFormat:$8},Symbol.toStringTag,{value:"Module"}));var F2e=Iu;function B2e(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&&!F2e(a):n(a,s)))var s=a,l=o}return l}var G0=B2e;function U2e(e,t){return e>t}var aF=U2e,z2e=G0,V2e=aF,W2e=Hu;function H2e(e){return e&&e.length?z2e(e,W2e,V2e):void 0}var G2e=H2e;const Pa=at(G2e);function q2e(e,t){return e<t}var sF=q2e,K2e=G0,Y2e=sF,Z2e=Hu;function X2e(e){return e&&e.length?K2e(e,Z2e,Y2e):void 0}var Q2e=X2e;const q0=at(Q2e);var J2e=iE,eOe=go,tOe=m8,nOe=gr;function rOe(e,t){var n=nOe(e)?J2e:tOe;return n(e,eOe(t))}var iOe=rOe,oOe=h8,aOe=iOe;function sOe(e,t){return oOe(aOe(e,t),1)}var lOe=sOe;const cOe=at(lOe);var uOe=yE;function fOe(e,t){return uOe(e,t)}var dOe=fOe;const Za=at(dOe);var qu=1e9,hOe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},GE,Nt=!0,ci="[DecimalError] ",Js=ci+"Invalid argument: ",HE=ci+"Exponent out of range: ",Ku=Math.floor,Ns=Math.pow,pOe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Or,vn=1e7,Et=7,lF=9007199254740991,Vg=Ku(lF/Et),$e={};$e.absoluteValue=$e.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};$e.comparedTo=$e.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};$e.decimalPlaces=$e.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Et;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};$e.dividedBy=$e.div=function(e){return Mo(this,new this.constructor(e))};$e.dividedToIntegerBy=$e.idiv=function(e){var t=this,n=t.constructor;return yt(Mo(t,new n(e),0,1),n.precision)};$e.equals=$e.eq=function(e){return!this.cmp(e)};$e.exponent=function(){return on(this)};$e.greaterThan=$e.gt=function(e){return this.cmp(e)>0};$e.greaterThanOrEqualTo=$e.gte=function(e){return this.cmp(e)>=0};$e.isInteger=$e.isint=function(){return this.e>this.d.length-2};$e.isNegative=$e.isneg=function(){return this.s<0};$e.isPositive=$e.ispos=function(){return this.s>0};$e.isZero=function(){return this.s===0};$e.lessThan=$e.lt=function(e){return this.cmp(e)<0};$e.lessThanOrEqualTo=$e.lte=function(e){return this.cmp(e)<1};$e.logarithm=$e.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(Or))throw Error(ci+"NaN");if(n.s<1)throw Error(ci+(n.s?"NaN":"-Infinity"));return n.eq(Or)?new r(0):(Nt=!1,t=Mo(bh(n,o),bh(e,o),o),Nt=!0,yt(t,i))};$e.minus=$e.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fF(t,e):cF(t,(e.s=-e.s,e))};$e.modulo=$e.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ci+"NaN");return n.s?(Nt=!1,t=Mo(n,e,0,1).times(e),Nt=!0,n.minus(t)):yt(new r(n),i)};$e.naturalExponential=$e.exp=function(){return uF(this)};$e.naturalLogarithm=$e.ln=function(){return bh(this)};$e.negated=$e.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};$e.plus=$e.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cF(t,e):fF(t,(e.s=-e.s,e))};$e.precision=$e.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Js+e);if(t=on(i)+1,r=i.d.length-1,n=r*Et+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};$e.squareRoot=$e.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ci+"NaN")}for(e=on(s),Nt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Qi(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ku((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(Mo(s,o,a+2)).times(.5),Qi(o.d).slice(0,a)===(t=Qi(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(yt(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Nt=!0,yt(r,n)};$e.times=$e.mul=function(e){var t,n,r,i,o,a,s,l,c,f=this,d=f.constructor,p=f.d,v=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=p.length,c=v.length,l<c&&(o=p,p=v,v=o,a=l,l=c,c=a),o=[],a=l+c,r=a;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+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,Nt?yt(e,d.precision):e};$e.toDecimalPlaces=$e.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(uo(e,0,qu),t===void 0?t=r.rounding:uo(t,0,8),yt(n,e+on(n)+1,t))};$e.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ml(r,!0):(uo(e,0,qu),t===void 0?t=i.rounding:uo(t,0,8),r=yt(new i(r),e+1,t),n=ml(r,!0,e+1)),n};$e.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?ml(i):(uo(e,0,qu),t===void 0?t=o.rounding:uo(t,0,8),r=yt(new o(i),e+on(i)+1,t),n=ml(r.abs(),!1,e+on(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};$e.toInteger=$e.toint=function(){var e=this,t=e.constructor;return yt(new t(e),on(e)+1,t.rounding)};$e.toNumber=function(){return+this};$e.toPower=$e.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,c=12,f=+(e=new l(e));if(!e.s)return new l(Or);if(s=new l(s),!s.s){if(e.s<1)throw Error(ci+"Infinity");return s}if(s.eq(Or))return s;if(r=l.precision,e.eq(Or))return yt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=lF){for(i=new l(Or),t=Math.ceil(r/Et+4),Nt=!1;n%2&&(i=i.times(s),oM(i.d,t)),n=Ku(n/2),n!==0;)s=s.times(s),oM(s.d,t);return Nt=!0,e.s<0?new l(Or).div(i):yt(i,r)}}else if(o<0)throw Error(ci+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Nt=!1,i=e.times(bh(s,r+c)),Nt=!0,i=uF(i),i.s=o,i};$e.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=on(i),r=ml(i,n<=o.toExpNeg||n>=o.toExpPos)):(uo(e,1,qu),t===void 0?t=o.rounding:uo(t,0,8),i=yt(new o(i),e,t),n=on(i),r=ml(i,e<=n||n<=o.toExpNeg,e)),r};$e.toSignificantDigits=$e.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(uo(e,1,qu),t===void 0?t=r.rounding:uo(t,0,8)),yt(new r(n),e,t)};$e.toString=$e.valueOf=$e.val=$e.toJSON=$e[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=on(e),n=e.constructor;return ml(e,t<=n.toExpNeg||t>=n.toExpPos)};function cF(e,t){var n,r,i,o,a,s,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Nt?yt(t,d):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=c.length):(r=c,i=a,s=l.length),a=Math.ceil(d/Et),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=c.length,s-o<0&&(o=s,r=c,c=l,l=r),n=0;o;)n=(l[--o]=l[o]+c[o]+n)/vn|0,l[o]%=vn;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Nt?yt(t,d):t}function uo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Js+e)}function Qi(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=Et-r.length,n&&(o+=ga(n)),o+=r;a=e[t],r=a+"",n=Et-r.length,n&&(o+=ga(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,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*vn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,c,f,d,p,v,y,g,x,_,b,w,S,P,E,T,j,F=r.constructor,k=r.s==i.s?1:-1,I=r.d,D=i.d;if(!r.s)return new F(r);if(!i.s)throw Error(ci+"Division by zero");for(l=r.e-i.e,T=D.length,P=I.length,v=new F(k),y=v.d=[],c=0;D[c]==(I[c]||0);)++c;if(D[c]>(I[c]||0)&&--l,o==null?b=o=F.precision:a?b=o+(on(r)-on(i))+1:b=o,b<0)return new F(0);if(b=b/Et+2|0,c=0,T==1)for(f=0,D=D[0],b++;(c<P||f)&&b--;c++)w=f*vn+(I[c]||0),y[c]=w/D|0,f=w%D|0;else{for(f=vn/(D[0]+1)|0,f>1&&(D=e(D,f),I=e(I,f),T=D.length,P=I.length),S=T,g=I.slice(0,T),x=g.length;x<T;)g[x++]=0;j=D.slice(),j.unshift(0),E=D[0],D[1]>=vn/2&&++E;do f=0,s=t(D,g,T,x),s<0?(_=g[0],T!=x&&(_=_*vn+(g[1]||0)),f=_/E|0,f>1?(f>=vn&&(f=vn-1),d=e(D,f),p=d.length,x=g.length,s=t(d,g,p,x),s==1&&(f--,n(d,T<p?j:D,p))):(f==0&&(s=f=1),d=D.slice()),p=d.length,p<x&&d.unshift(0),n(g,d,x),s==-1&&(x=g.length,s=t(D,g,T,x),s<1&&(f++,n(g,T<x?j:D,x))),x=g.length):s===0&&(f++,g=[0]),y[c++]=f,s&&g[0]?g[x++]=I[S]||0:(g=[I[S]],x=1);while((S++<P||g[0]!==void 0)&&b--)}return y[0]||y.shift(),v.e=l,yt(v,a?o+on(v)+1:o)}}();function uF(e,t){var n,r,i,o,a,s,l=0,c=0,f=e.constructor,d=f.precision;if(on(e)>16)throw Error(HE+on(e));if(!e.s)return new f(Or);for(t==null?(Nt=!1,s=d):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Ns(2,c))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Or),f.precision=s;;){if(i=yt(i.times(e),s),n=n.times(++l),a=o.plus(Mo(i,n,s)),Qi(a.d).slice(0,s)===Qi(o.d).slice(0,s)){for(;c--;)o=yt(o.times(o),s);return f.precision=d,t==null?(Nt=!0,yt(o,d)):o}o=a}}function on(e){for(var t=e.e*Et,n=e.d[0];n>=10;n/=10)t++;return t}function r_(e,t,n){if(t>e.LN10.sd())throw Nt=!0,n&&(e.precision=n),Error(ci+"LN10 precision limit exceeded");return yt(new e(e.LN10),t)}function ga(e){for(var t="";e--;)t+="0";return t}function bh(e,t){var n,r,i,o,a,s,l,c,f,d=1,p=10,v=e,y=v.d,g=v.constructor,x=g.precision;if(v.s<1)throw Error(ci+(v.s?"NaN":"-Infinity"));if(v.eq(Or))return new g(0);if(t==null?(Nt=!1,c=x):c=t,v.eq(10))return t==null&&(Nt=!0),r_(g,c);if(c+=p,g.precision=c,n=Qi(y),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=Qi(v.d),r=n.charAt(0),d++;o=on(v),r>1?(v=new g("0."+n),o++):v=new g(r+"."+n.slice(1))}else return l=r_(g,c+2,x).times(o+""),v=bh(new g(r+"."+n.slice(1)),c-p).plus(l),g.precision=x,t==null?(Nt=!0,yt(v,x)):v;for(s=a=v=Mo(v.minus(Or),v.plus(Or),c),f=yt(v.times(v),c),i=3;;){if(a=yt(a.times(f),c),l=s.plus(Mo(a,new g(i),c)),Qi(l.d).slice(0,c)===Qi(s.d).slice(0,c))return s=s.times(2),o!==0&&(s=s.plus(r_(g,c+2,x).times(o+""))),s=Mo(s,new g(d),c),g.precision=x,t==null?(Nt=!0,yt(s,x)):s;s=l,i+=2}}function iM(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=Ku(n/Et),e.d=[],r=(n+1)%Et,n<0&&(r+=Et),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Et;r<i;)e.d.push(+t.slice(r,r+=Et));t=t.slice(r),r=Et-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Nt&&(e.e>Vg||e.e<-Vg))throw Error(HE+n)}else e.s=0,e.e=0,e.d=[0];return e}function yt(e,t,n){var r,i,o,a,s,l,c,f,d=e.d;for(a=1,o=d[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Et,i=t,c=d[f=0];else{if(f=Math.ceil((r+1)/Et),o=d.length,f>=o)return e;for(c=o=d[f],a=1;o>=10;o/=10)a++;r%=Et,i=r-Et+a}if(n!==void 0&&(o=Ns(10,a-i-1),s=c/o%10|0,l=t<0||d[f+1]!==void 0||c%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?c/Ns(10,a-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(o=on(e),d.length=1,t=t-o-1,d[0]=Ns(10,(Et-t%Et)%Et),e.e=Ku(-t/Et)||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=Ns(10,Et-r),d[f]=i>0?(c/Ns(10,a-i)%Ns(10,i)|0)*o:0),l)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(Nt&&(e.e>Vg||e.e<-Vg))throw Error(HE+on(e));return e}function fF(e,t){var n,r,i,o,a,s,l,c,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Nt?yt(t,v):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(f=a<0,f?(n=l,a=-a,s=d.length):(n=d,r=c,s=l.length),i=Math.max(Math.ceil(v/Et),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){f=l[i]<d[i];break}a=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(o=i;o&&l[--o]===0;)l[o]=vn-1;--l[o],l[i]+=vn}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Nt?yt(t,v):t):new p(0)}function ml(e,t,n){var r,i=on(e),o=Qi(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+ga(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ga(-i-1)+o,n&&(r=n-a)>0&&(o+=ga(r))):i>=a?(o+=ga(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+ga(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=ga(r))),e.s<0?"-"+o:o}function oM(e,t){if(e.length>t)return e.length=t,!0}function dF(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(Js+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 iM(a,o.toString())}else if(typeof o!="string")throw Error(Js+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,pOe.test(o))iM(a,o);else throw Error(Js+o)}if(i.prototype=$e,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=dF,i.config=i.set=mOe,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 mOe(e){if(!e||typeof e!="object")throw Error(ci+"Object expected");var t,n,r,i=["precision",1,qu,"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(Ku(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Js+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Js+n+": "+r);return this}var GE=dF(hOe);Or=new GE(1);const mt=GE;function vOe(e){return _Oe(e)||bOe(e)||yOe(e)||gOe()}function gOe(){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 yOe(e,t){if(e){if(typeof e=="string")return K2(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 K2(e,t)}}function bOe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _Oe(e){if(Array.isArray(e))return K2(e)}function K2(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 xOe=function(t){return t},hF={"@@functional/placeholder":!0},pF=function(t){return t===hF},aM=function(t){return function n(){return arguments.length===0||arguments.length===1&&pF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},wOe=function e(t,n){return t===1?n:aM(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!==hF}).length;return a>=t?n.apply(void 0,i):e(t-a,aM(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var f=i.map(function(d){return pF(d)?l.shift():d});return n.apply(void 0,vOe(f).concat(l))}))})},K0=function(t){return wOe(t.length,t)},Y2=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},OOe=K0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),SOe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return xOe;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},Z2=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},mF=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,l){return s===n[l]})||(n=o,r=t.apply(void 0,o)),r}};function POe(e){var t;return e===0?t=1:t=Math.floor(new mt(e).abs().log(10).toNumber())+1,t}function EOe(e,t,n){for(var r=new mt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var COe=K0(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),TOe=K0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),jOe=K0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Y0={rangeStep:EOe,getDigitCount:POe,interpolateNumber:COe,uninterpolateNumber:TOe,uninterpolateTruncation:jOe};function X2(e){return NOe(e)||kOe(e)||vF(e)||AOe()}function AOe(){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 kOe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function NOe(e){if(Array.isArray(e))return Q2(e)}function _h(e,t){return ROe(e)||LOe(e,t)||vF(e,t)||MOe()}function MOe(){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 vF(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 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 LOe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function ROe(e){if(Array.isArray(e))return e}function gF(e){var t=_h(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function yF(e,t,n){if(e.lte(0))return new mt(0);var r=Y0.getDigitCount(e.toNumber()),i=new mt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new mt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new mt(Math.ceil(l))}function $Oe(e,t,n){var r=1,i=new mt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new mt(10).pow(Y0.getDigitCount(e)-1),i=new mt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new mt(Math.floor(e)))}else e===0?i=new mt(Math.floor((t-1)/2)):n||(i=new mt(Math.floor(e)));var a=Math.floor((t-1)/2),s=SOe(OOe(function(l){return i.add(new mt(l-a).mul(r)).toNumber()}),Y2);return s(0,t)}function bF(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 mt(0),tickMin:new mt(0),tickMax:new mt(0)};var o=yF(new mt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new mt(0):(a=new mt(e).add(t).div(2),a=a.sub(new mt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new mt(t).sub(a).div(o).toNumber()),c=s+l+1;return c>n?bF(e,t,n,r,i+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:o,tickMin:a.sub(new mt(s).mul(o)),tickMax:a.add(new mt(l).mul(o))})}function IOe(e){var t=_h(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=gF([n,r]),l=_h(s,2),c=l[0],f=l[1];if(c===-1/0||f===1/0){var d=f===1/0?[c].concat(X2(Y2(0,i-1).map(function(){return 1/0}))):[].concat(X2(Y2(0,i-1).map(function(){return-1/0})),[f]);return n>r?Z2(d):d}if(c===f)return $Oe(c,i,o);var p=bF(c,f,a,o),v=p.step,y=p.tickMin,g=p.tickMax,x=Y0.rangeStep(y,g.add(new mt(.1).mul(v)),v);return n>r?Z2(x):x}function DOe(e,t){var n=_h(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=gF([r,i]),s=_h(a,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,i];if(l===c)return[l];var f=Math.max(t,2),d=yF(new mt(c).sub(l).div(f-1),o,0),p=[].concat(X2(Y0.rangeStep(new mt(l),new mt(c).sub(new mt(.99).mul(d)),d)),[c]);return r>i?Z2(p):p}var FOe=mF(IOe),BOe=mF(DOe),UOe="Invariant failed";function vl(e,t){throw new Error(UOe)}var zOe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 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 VOe(e,t){return qOe(e)||GOe(e,t)||HOe(e,t)||WOe()}function WOe(){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 HOe(e,t){if(e){if(typeof e=="string")return sM(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 sM(e,t)}}function sM(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 GOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function qOe(e){if(Array.isArray(e))return e}function KOe(e,t){if(e==null)return{};var n=YOe(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 YOe(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 ZOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XOe(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,wF(r.key),r)}}function QOe(e,t,n){return t&&XOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JOe(e,t,n){return t=Hg(t),eSe(e,_F()?Reflect.construct(t,n||[],Hg(e).constructor):t.apply(e,n))}function eSe(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 tSe(e)}function tSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_F=function(){return!!e})()}function Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hg(e)}function nSe(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&&J2(e,t)}function J2(e,t){return J2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J2(e,t)}function xF(e,t,n){return t=wF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wF(e){var t=rSe(e,"string");return lu(t)=="symbol"?t:t+""}function rSe(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 Yu=function(e){function t(){return ZOe(this,t),JOe(this,t,arguments)}return nSe(t,e),QOe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,s=r.dataKey,l=r.data,c=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,p=KOe(r,zOe),v=De(p,!1);this.props.direction==="x"&&f.type!=="number"&&vl();var y=l.map(function(g){var x=c(g,s),_=x.x,b=x.y,w=x.value,S=x.errorVal;if(!S)return null;var P=[],E,T;if(Array.isArray(S)){var j=VOe(S,2);E=j[0],T=j[1]}else E=T=S;if(o==="vertical"){var F=f.scale,k=b+i,I=k+a,D=k-a,K=F(w-E),W=F(w+T);P.push({x1:W,y1:I,x2:W,y2:D}),P.push({x1:K,y1:k,x2:W,y2:k}),P.push({x1:K,y1:I,x2:K,y2:D})}else if(o==="horizontal"){var X=d.scale,Q=_+i,te=Q-a,Z=Q+a,z=X(w-E),B=X(w+T);P.push({x1:te,y1:B,x2:Z,y2:B}),P.push({x1:Q,y1:z,x2:Q,y2:B}),P.push({x1:te,y1:z,x2:Z,y2:z})}return V.createElement(Ze,Wg({className:"recharts-errorBar",key:"bar-".concat(P.map(function(H){return"".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))},v),P.map(function(H){return V.createElement("line",Wg({},H,{key:"line-".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))}))});return V.createElement(Ze,{className:"recharts-errorBars"},y)}}])}(V.Component);xF(Yu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});xF(Yu,"displayName","ErrorBar");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 lM(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 bs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lM(Object(n),!0).forEach(function(r){iSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iSe(e,t,n){return t=oSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oSe(e){var t=aSe(e,"string");return xh(t)=="symbol"?t:t+""}function aSe(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 OF=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=wr(n,Nc);if(!a)return null;var s=Nc.defaultProps,l=s!==void 0?bs(bs({},s),a.props):{},c;return a.props&&a.props.payload?c=a.props&&a.props.payload:o==="children"?c=(r||[]).reduce(function(f,d){var p=d.item,v=d.props,y=v.sectors||v.data||[];return f.concat(y.map(function(g){return{type:a.props.iconType||p.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):c=(r||[]).map(function(f){var d=f.item,p=d.type.defaultProps,v=p!==void 0?bs(bs({},p),d.props):{},y=v.dataKey,g=v.name,x=v.legendType,_=v.hide;return{inactive:_,dataKey:y,type:l.iconType||x||"square",color:qE(d),value:g||y,payload:v}}),bs(bs(bs({},l),Nc.getWithHeight(a,i)),{},{payload:c,item:a})};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 cM(e){return uSe(e)||cSe(e)||lSe(e)||sSe()}function sSe(){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 lSe(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 cSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uSe(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 uM(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?uM(Object(n),!0).forEach(function(r){Lc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lc(e,t,n){return t=fSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fSe(e){var t=dSe(e,"string");return wh(t)=="symbol"?t:t+""}function dSe(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)}function Ct(e,t,n){return Ue(e)||Ue(t)?n:un(t)?Ar(e,t,n):Ve(t)?t(e):n}function yd(e,t,n,r){var i=cOe(e,function(s){return Ct(s,t)});if(n==="number"){var o=i.filter(function(s){return Ee(s)||parseFloat(s)});return o.length?[q0(o),Pa(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!Ue(s)}):i;return a.map(function(s){return un(s)||s instanceof Date?s:""})}var hSe=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 l=o.range,c=0;c<s;c++){var f=c>0?i[c-1].coordinate:i[s-1].coordinate,d=i[c].coordinate,p=c>=s-1?i[0].coordinate:i[c+1].coordinate,v=void 0;if(Gn(d-f)!==Gn(p-d)){var y=[];if(Gn(p-d)===Gn(l[1]-l[0])){v=p;var g=d+l[1]-l[0];y[0]=Math.min(g,(g+f)/2),y[1]=Math.max(g,(g+f)/2)}else{v=f;var x=p+l[1]-l[0];y[0]=Math.min(d,(x+d)/2),y[1]=Math.max(d,(x+d)/2)}var _=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>_[0]&&t<=_[1]||t>=y[0]&&t<=y[1]){a=i[c].index;break}}else{var b=Math.min(f,p),w=Math.max(f,p);if(t>(b+d)/2&&t<=(w+d)/2){a=i[c].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},qE=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,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},pSe=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),l=0,c=s.length;l<c;l++)for(var f=o[s[l]].stackGroups,d=Object.keys(f),p=0,v=d.length;p<v;p++){var y=f[d[p]],g=y.items,x=y.cateAxisId,_=g.filter(function(T){return No(T.type).indexOf("Bar")>=0});if(_&&_.length){var b=_[0].type.defaultProps,w=b!==void 0?Gt(Gt({},b),_[0].props):_[0].props,S=w.barSize,P=w[x];a[P]||(a[P]=[]);var E=Ue(S)?n:S;a[P].push({item:_[0],stackList:_.slice(1),barSize:Ue(E)?void 0:qn(E,r,0)})}}return a},mSe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var c=qn(n,i,0,!0),f,d=[];if(a[0].barSize===+a[0].barSize){var p=!1,v=i/l,y=a.reduce(function(S,P){return S+P.barSize||0},0);y+=(l-1)*c,y>=i&&(y-=(l-1)*c,c=0),y>=i&&v>0&&(p=!0,v*=.9,y=l*v);var g=(i-y)/2>>0,x={offset:g-c,size:0};f=a.reduce(function(S,P){var E={item:P.item,position:{offset:x.offset+x.size+c,size:p?v:P.barSize}},T=[].concat(cM(S),[E]);return x=T[T.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(j){T.push({item:j,position:x})}),T},d)}else{var _=qn(r,i,0,!0);i-2*_-(l-1)*c<=0&&(c=0);var b=(i-2*_-(l-1)*c)/l;b>1&&(b>>=0);var w=s===+s?Math.min(b,s):b;f=a.reduce(function(S,P,E){var T=[].concat(cM(S),[{item:P.item,position:{offset:_+(b+c)*E+(b-w)/2,size:w}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(j){T.push({item:j,position:T[T.length-1].position})}),T},d)}return f},vSe=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),c=OF({children:o,legendWidth:l});if(c){var f=i||{},d=f.width,p=f.height,v=c.align,y=c.verticalAlign,g=c.layout;if((g==="vertical"||g==="horizontal"&&y==="middle")&&v!=="center"&&Ee(t[v]))return Gt(Gt({},t),{},Lc({},v,t[v]+(d||0)));if((g==="horizontal"||g==="vertical"&&v==="center")&&y!=="middle"&&Ee(t[y]))return Gt(Gt({},t),{},Lc({},y,t[y]+(p||0)))}return t},gSe=function(t,n,r){return Ue(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},SF=function(t,n,r,i,o){var a=n.props.children,s=Qn(a,Yu).filter(function(c){return gSe(i,o,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var d=Ct(f,r);if(Ue(d))return c;var p=Array.isArray(d)?[q0(d),Pa(d)]:[d,d],v=l.reduce(function(y,g){var x=Ct(f,g,0),_=p[0]-Math.abs(Array.isArray(x)?x[0]:x),b=p[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(_,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(v[0],c[0]),Math.max(v[1],c[1])]},[1/0,-1/0])}return null},ySe=function(t,n,r,i,o){var a=n.map(function(s){return SF(t,s,r,o,i)}).filter(function(s){return!Ue(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},PF=function(t,n,r,i,o){var a=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&SF(t,l,c,i)||yd(t,c,r,o)});if(r==="number")return a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,c){for(var f=0,d=c.length;f<d;f++)s[c[f]]||(s[c[f]]=!0,l.push(c[f]));return l},[])},EF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},CF=function(t,n,r,i){if(i)return t.map(function(l){return l.coordinate});var o,a,s=t.map(function(l){return l.coordinate===n&&(o=!0),l.coordinate===r&&(a=!0),l.coordinate});return o||s.push(n),a||s.push(r),s},Ao=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Gn(s[0]-s[1])*2*c:c,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)+c,value:d,offset:c}});return f.filter(function(d){return!zu(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,p){return{coordinate:i(d)+c,value:d,index:p,offset:c}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+c,value:d,offset:c}}):i.domain().map(function(d,p){return{coordinate:i(d)+c,value:o?o[d]:d,index:p,offset:c}})},i_=new WeakMap,Om=function(t,n){if(typeof n!="function")return t;i_.has(t)||i_.set(t,new WeakMap);var r=i_.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},TF=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:ph(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Fg(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:gd(),realScaleType:"point"}:o==="category"?{scale:ph(),realScaleType:"band"}:{scale:Fg(),realScaleType:"linear"};if(cp(i)){var l="scale".concat(N0(i));return{scale:(rM[l]||gd)(),realScaleType:rM[l]?l:"point"}}return Ve(i)?{scale:i}:{scale:gd(),realScaleType:"point"}},fM=1e-4,jF=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])-fM,a=Math.max(i[0],i[1])+fM,s=t(n[0]),l=t(n[r-1]);(s<o||s>a||l<o||l>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},_Se=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},xSe=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 l=zu(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},wSe=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=zu(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)}},OSe={sign:xSe,expand:zhe,none:eu,silhouette:Vhe,wiggle:Whe,positive:wSe},SSe=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=OSe[r],a=Uhe().keys(i).value(function(s,l){return+Ct(s,l,0)}).order(P2).offset(o);return a(t)},PSe=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,l={},c=s.reduce(function(d,p){var v,y=(v=p.type)!==null&&v!==void 0&&v.defaultProps?Gt(Gt({},p.type.defaultProps),p.props):p.props,g=y.stackId,x=y.hide;if(x)return d;var _=y[r],b=d[_]||{hasStack:!1,stackGroups:{}};if(un(g)){var w=b.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};w.items.push(p),b.hasStack=!0,b.stackGroups[g]=w}else b.stackGroups[ls("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[p]};return Gt(Gt({},d),{},Lc({},_,b))},l),f={};return Object.keys(c).reduce(function(d,p){var v=c[p];if(v.hasStack){var y={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(g,x){var _=v.stackGroups[x];return Gt(Gt({},g),{},Lc({},x,{numericAxisId:r,cateAxisId:i,items:_.items,stackedData:SSe(t,_.items,o)}))},y)}return Gt(Gt({},d),{},Lc({},p,v))},f)},AF=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=FOe(c,o,s);return t.domain([q0(f),Pa(f)]),{niceTicks:f}}if(o&&i==="number"){var d=t.domain(),p=BOe(d,o,s);return{niceTicks:p}}return null};function cu(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&&!Ue(i[t.dataKey])){var s=yg(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=Ct(i,Ue(a)?t.dataKey:a);return Ue(l)?null:t.scale(l)}var dM=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 l=Ct(a,n.dataKey,n.domain[s]);return Ue(l)?null:n.scale(l)-o/2+i},ESe=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]},CSe=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},TSe=function(t){return t.reduce(function(n,r){return[q0(r.concat([n[0]]).filter(Ee)),Pa(r.concat([n[1]]).filter(Ee))]},[1/0,-1/0])},kF=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(c,f){var d=TSe(f.slice(n,r+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},hM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tO=function(t,n,r){if(Ve(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(hM.test(t[0])){var o=+hM.exec(t[0])[1];i[0]=n[0]-o}else Ve(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(pM.test(t[1])){var a=+pM.exec(t[1])[1];i[1]=n[1]+a}else Ve(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Gg=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=_E(n,function(d){return d.coordinate}),a=1/0,s=1,l=o.length;s<l;s++){var c=o[s],f=o[s-1];a=Math.min((c.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},mM=function(t,n,r){return!t||!t.length||Za(t,Ar(r,"type.defaultProps.domain"))?n:t},NF=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,l=r.tooltipType,c=r.chartType,f=r.hide;return Gt(Gt({},De(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:qE(t),value:Ct(n,i),type:l,payload:n,chartType:c,hide:f})};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 So(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){MF(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 MF(e,t,n){return t=jSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jSe(e){var t=ASe(e,"string");return Oh(t)=="symbol"?t:t+""}function ASe(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 kSe(e,t){return RSe(e)||LSe(e,t)||MSe(e,t)||NSe()}function NSe(){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 MSe(e,t){if(e){if(typeof e=="string")return gM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gM(e,t)}}function gM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function RSe(e){if(Array.isArray(e))return e}var qg=Math.PI/180,$Se=function(t){return t*180/Math.PI},Ot=function(t,n,r,i){return{x:t+Math.cos(-qg*i)*r,y:n+Math.sin(-qg*i)*r}},LF=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},ISe=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.startAngle,c=t.endAngle,f=qn(t.cx,a,a/2),d=qn(t.cy,s,s/2),p=LF(a,s,r),v=qn(t.innerRadius,p,0),y=qn(t.outerRadius,p,p*.8),g=Object.keys(n);return g.reduce(function(x,_){var b=n[_],w=b.domain,S=b.reversed,P;if(Ue(b.range))i==="angleAxis"?P=[l,c]:i==="radiusAxis"&&(P=[v,y]),S&&(P=[P[1],P[0]]);else{P=b.range;var E=P,T=kSe(E,2);l=T[0],c=T[1]}var j=TF(b,o),F=j.realScaleType,k=j.scale;k.domain(w).range(P),jF(k);var I=AF(k,So(So({},b),{},{realScaleType:F})),D=So(So(So({},b),I),{},{range:P,radius:y,realScaleType:F,scale:k,cx:f,cy:d,innerRadius:v,outerRadius:y,startAngle:l,endAngle:c});return So(So({},x),{},MF({},_,D))},{})},DSe=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))},FSe=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=DSe({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var l=(r-o)/s,c=Math.acos(l);return i>a&&(c=2*Math.PI-c),{radius:s,angle:$Se(c),angleInRadian:c}},BSe=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}},USe=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},yM=function(t,n){var r=t.x,i=t.y,o=FSe({x:r,y:i},n),a=o.radius,s=o.angle,l=n.innerRadius,c=n.outerRadius;if(a<l||a>c)return!1;if(a===0)return!0;var f=BSe(n),d=f.startAngle,p=f.endAngle,v=s,y;if(d<=p){for(;v>p;)v-=360;for(;v<d;)v+=360;y=v>=d&&v<=p}else{for(;v>d;)v-=360;for(;v<p;)v+=360;y=v>=p&&v<=d}return y?So(So({},n),{},{radius:a,angle:USe(v,n)}):null},RF=function(t){return!M.isValidElement(t)&&!Ve(t)&&typeof t!="boolean"?t.className:""};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)}var zSe=["offset"];function VSe(e){return qSe(e)||GSe(e)||HSe(e)||WSe()}function WSe(){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 HSe(e,t){if(e){if(typeof e=="string")return nO(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 nO(e,t)}}function GSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qSe(e){if(Array.isArray(e))return nO(e)}function nO(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 KSe(e,t){if(e==null)return{};var n=YSe(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 YSe(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 bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(r){ZSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZSe(e,t,n){return t=XSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XSe(e){var t=QSe(e,"string");return Sh(t)=="symbol"?t:t+""}function QSe(e,t){if(Sh(e)!="object"||!e)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 Ph(){return Ph=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},Ph.apply(this,arguments)}var JSe=function(t){var n=t.value,r=t.formatter,i=Ue(t.children)?n:t.children;return Ve(r)?r(i):i},ePe=function(t,n){var r=Gn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},tPe=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,l=o,c=l.cx,f=l.cy,d=l.innerRadius,p=l.outerRadius,v=l.startAngle,y=l.endAngle,g=l.clockWise,x=(d+p)/2,_=ePe(v,y),b=_>=0?1:-1,w,S;i==="insideStart"?(w=v+b*a,S=g):i==="insideEnd"?(w=y-b*a,S=!g):i==="end"&&(w=y+b*a,S=g),S=_<=0?S:!S;var P=Ot(c,f,x,w),E=Ot(c,f,x,w+(S?1:-1)*359),T="M".concat(P.x,",").concat(P.y,`
|
||
A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`,
|
||
`).concat(E.x,",").concat(E.y),j=Ue(t.id)?ls("recharts-radial-line-"):t.id;return V.createElement("text",Ph({},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))},nPe=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,l=o.innerRadius,c=o.outerRadius,f=o.startAngle,d=o.endAngle,p=(f+d)/2;if(i==="outside"){var v=Ot(a,s,c+r,p),y=v.x,g=v.y;return{x:y,y:g,textAnchor:y>=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=(l+c)/2,_=Ot(a,s,x,p),b=_.x,w=_.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},rPe=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,l=a.y,c=a.width,f=a.height,d=f>=0?1:-1,p=d*i,v=d>0?"end":"start",y=d>0?"start":"end",g=c>=0?1:-1,x=g*i,_=g>0?"end":"start",b=g>0?"start":"end";if(o==="top"){var w={x:s+c/2,y:l-d*i,textAnchor:"middle",verticalAnchor:v};return sn(sn({},w),r?{height:Math.max(l-r.y,0),width:c}:{})}if(o==="bottom"){var S={x:s+c/2,y:l+f+p,textAnchor:"middle",verticalAnchor:y};return sn(sn({},S),r?{height:Math.max(r.y+r.height-(l+f),0),width:c}:{})}if(o==="left"){var P={x:s-x,y:l+f/2,textAnchor:_,verticalAnchor:"middle"};return sn(sn({},P),r?{width:Math.max(P.x-r.x,0),height:f}:{})}if(o==="right"){var E={x:s+c+x,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return sn(sn({},E),r?{width:Math.max(r.x+r.width-E.x,0),height:f}:{})}var T=r?{width:c,height:f}:{};return o==="insideLeft"?sn({x:s+x,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},T):o==="insideRight"?sn({x:s+c-x,y:l+f/2,textAnchor:_,verticalAnchor:"middle"},T):o==="insideTop"?sn({x:s+c/2,y:l+p,textAnchor:"middle",verticalAnchor:y},T):o==="insideBottom"?sn({x:s+c/2,y:l+f-p,textAnchor:"middle",verticalAnchor:v},T):o==="insideTopLeft"?sn({x:s+x,y:l+p,textAnchor:b,verticalAnchor:y},T):o==="insideTopRight"?sn({x:s+c-x,y:l+p,textAnchor:_,verticalAnchor:y},T):o==="insideBottomLeft"?sn({x:s+x,y:l+f-p,textAnchor:b,verticalAnchor:v},T):o==="insideBottomRight"?sn({x:s+c-x,y:l+f-p,textAnchor:_,verticalAnchor:v},T):Du(o)&&(Ee(o.x)||Bs(o.x))&&(Ee(o.y)||Bs(o.y))?sn({x:s+qn(o.x,c),y:l+qn(o.y,f),textAnchor:"end",verticalAnchor:"end"},T):sn({x:s+c/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},T)},iPe=function(t){return"cx"in t&&Ee(t.cx)};function yn(e){var t=e.offset,n=t===void 0?5:t,r=KSe(e,zSe),i=sn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,c=i.content,f=i.className,d=f===void 0?"":f,p=i.textBreakAll;if(!o||Ue(s)&&Ue(l)&&!M.isValidElement(c)&&!Ve(c))return null;if(M.isValidElement(c))return M.cloneElement(c,i);var v;if(Ve(c)){if(v=M.createElement(c,i),M.isValidElement(v))return v}else v=JSe(i);var y=iPe(o),g=De(i,!0);if(y&&(a==="insideStart"||a==="insideEnd"||a==="end"))return tPe(i,v,g);var x=y?nPe(i):rPe(i);return V.createElement(pl,Ph({className:Oe("recharts-label",d)},g,x,{breakAll:p}),v)}yn.displayName="Label";var $F=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,f=t.outerRadius,d=t.x,p=t.y,v=t.top,y=t.left,g=t.width,x=t.height,_=t.clockWise,b=t.labelViewBox;if(b)return b;if(Ee(g)&&Ee(x)){if(Ee(d)&&Ee(p))return{x:d,y:p,width:g,height:x};if(Ee(v)&&Ee(y))return{x:v,y,width:g,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:c||0,outerRadius:f||l||s||0,clockWise:_}:t.viewBox?t.viewBox:{}},oPe=function(t,n){return t?t===!0?V.createElement(yn,{key:"label-implicit",viewBox:n}):un(t)?V.createElement(yn,{key:"label-implicit",viewBox:n,value:t}):M.isValidElement(t)?t.type===yn?M.cloneElement(t,{key:"label-implicit",viewBox:n}):V.createElement(yn,{key:"label-implicit",content:t,viewBox:n}):Ve(t)?V.createElement(yn,{key:"label-implicit",content:t,viewBox:n}):Du(t)?V.createElement(yn,Ph({viewBox:n},t,{key:"label-implicit"})):null:null},aPe=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=$F(t),a=Qn(i,yn).map(function(l,c){return M.cloneElement(l,{viewBox:n||o,key:"label-".concat(c)})});if(!r)return a;var s=oPe(t.label,n||o);return[s].concat(VSe(a))};yn.parseViewBox=$F;yn.renderCallByParent=aPe;function sPe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var lPe=sPe;const cPe=at(lPe);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)}var uPe=["valueAccessor"],fPe=["data","dataKey","clockWise","id","textBreakAll"];function dPe(e){return vPe(e)||mPe(e)||pPe(e)||hPe()}function hPe(){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 pPe(e,t){if(e){if(typeof e=="string")return rO(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 rO(e,t)}}function mPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vPe(e){if(Array.isArray(e))return rO(e)}function rO(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 Kg(){return Kg=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},Kg.apply(this,arguments)}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){gPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function 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 Eh(t)=="symbol"?t:t+""}function bPe(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)}function wM(e,t){if(e==null)return{};var n=_Pe(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 _Pe(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 xPe=function(t){return Array.isArray(t.value)?cPe(t.value):t.value};function Ai(e){var t=e.valueAccessor,n=t===void 0?xPe:t,r=wM(e,uPe),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,c=wM(r,fPe);return!i||!i.length?null:V.createElement(Ze,{className:"recharts-label-list"},i.map(function(f,d){var p=Ue(o)?n(f,d):Ct(f&&f.payload,o),v=Ue(s)?{}:{id:"".concat(s,"-").concat(d)};return V.createElement(yn,Kg({},De(f,!0),c,v,{parentViewBox:f.parentViewBox,value:p,textBreakAll:l,viewBox:yn.parseViewBox(Ue(a)?f:xM(xM({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Ai.displayName="LabelList";function wPe(e,t){return e?e===!0?V.createElement(Ai,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Ve(e)?V.createElement(Ai,{key:"labelList-implicit",data:t,content:e}):Du(e)?V.createElement(Ai,Kg({data:t},e,{key:"labelList-implicit"})):null:null}function OPe(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=Qn(r,Ai).map(function(a,s){return M.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=wPe(e.label,t);return[o].concat(dPe(i))}Ai.renderCallByParent=OPe;function Ch(e){"@babel/helpers - typeof";return Ch=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ch(e)}function iO(){return iO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iO.apply(this,arguments)}function OM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OM(Object(n),!0).forEach(function(r){SPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SPe(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=EPe(e,"string");return Ch(t)=="symbol"?t:t+""}function EPe(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)}var CPe=function(t,n){var r=Gn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Sm=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,f=l*(s?1:-1)+i,d=Math.asin(l/f)/qg,p=c?o:o+a*d,v=Ot(n,r,f,p),y=Ot(n,r,i,p),g=c?o-a*d:o,x=Ot(n,r,f*Math.cos(d*qg),g);return{center:v,circleTangency:y,lineTangency:x,theta:d}},IF=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,l=CPe(a,s),c=a+l,f=Ot(n,r,o,a),d=Ot(n,r,o,c),p="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(a>c),`,
|
||
`).concat(d.x,",").concat(d.y,`
|
||
`);if(i>0){var v=Ot(n,r,i,a),y=Ot(n,r,i,c);p+="L ".concat(y.x,",").concat(y.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(a<=c),`,
|
||
`).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},TPe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,d=Gn(f-c),p=Sm({cx:n,cy:r,radius:o,angle:c,sign:d,cornerRadius:a,cornerIsExternal:l}),v=p.circleTangency,y=p.lineTangency,g=p.theta,x=Sm({cx:n,cy:r,radius:o,angle:f,sign:-d,cornerRadius:a,cornerIsExternal:l}),_=x.circleTangency,b=x.lineTangency,w=x.theta,S=l?Math.abs(c-f):Math.abs(c-f)-g-w;if(S<0)return s?"M ".concat(y.x,",").concat(y.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
|
||
`):IF({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:c,endAngle:f});var P="M ".concat(y.x,",").concat(y.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(_.x,",").concat(_.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(i>0){var E=Sm({cx:n,cy:r,radius:i,angle:c,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),T=E.circleTangency,j=E.lineTangency,F=E.theta,k=Sm({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),I=k.circleTangency,D=k.lineTangency,K=k.theta,W=l?Math.abs(c-f):Math.abs(c-f)-F-K;if(W<0&&a===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(D.x,",").concat(D.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(I.x,",").concat(I.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(W>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 P+="L".concat(n,",").concat(r,"Z");return P},jPe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},DF=function(t){var n=SM(SM({},jPe),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,p=n.className;if(a<o||f===d)return null;var v=Oe("recharts-sector",p),y=a-o,g=qn(s,y,0,!0),x;return g>0&&Math.abs(f-d)<360?x=TPe({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(g,y/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:d}):x=IF({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:d}),V.createElement("path",iO({},De(n,!0),{className:v,d:x,role:"img"}))};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 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)}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 EM(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){APe(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 APe(e,t,n){return t=kPe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kPe(e){var t=NPe(e,"string");return Th(t)=="symbol"?t:t+""}function NPe(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)}var CM={curveBasisClosed:Ahe,curveBasisOpen:khe,curveBasis:jhe,curveBumpX:mhe,curveBumpY:vhe,curveLinearClosed:Nhe,curveLinear:L0,curveMonotoneX:Mhe,curveMonotoneY:Lhe,curveNatural:Rhe,curveStep:$he,curveStepAfter:Dhe,curveStepBefore:Ihe},Pm=function(t){return t.x===+t.x&&t.y===+t.y},Df=function(t){return t.x},Ff=function(t){return t.y},MPe=function(t,n){if(Ve(t))return t;var r="curve".concat(N0(t));return(r==="curveMonotone"||r==="curveBump")&&n?CM["".concat(r).concat(n==="vertical"?"Y":"X")]:CM[r]||L0},LPe=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,l=t.connectNulls,c=l===void 0?!1:l,f=MPe(r,s),d=c?o.filter(function(g){return Pm(g)}):o,p;if(Array.isArray(a)){var v=c?a.filter(function(g){return Pm(g)}):a,y=d.map(function(g,x){return EM(EM({},g),{},{base:v[x]})});return s==="vertical"?p=mm().y(Ff).x1(Df).x0(function(g){return g.base.x}):p=mm().x(Df).y1(Ff).y0(function(g){return g.base.y}),p.defined(Pm).curve(f),p(y)}return s==="vertical"&&Ee(a)?p=mm().y(Ff).x1(Df).x0(a):Ee(a)?p=mm().x(Df).y1(Ff).y0(a):p=N5().x(Df).y(Ff),p.defined(Pm).curve(f),p(d)},Ua=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?LPe(t):i;return V.createElement("path",oO({},De(t,!1),bg(t),{className:Oe("recharts-curve",n),d:a,ref:o}))},RPe=Object.getOwnPropertyNames,$Pe=Object.getOwnPropertySymbols,IPe=Object.prototype.hasOwnProperty;function TM(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Em(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 l=e(n,r,i);return o.delete(n),o.delete(r),l}}function jM(e){return RPe(e).concat($Pe(e))}var FF=Object.hasOwn||function(e,t){return IPe.call(e,t)};function Zu(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var BF="_owner",AM=Object.getOwnPropertyDescriptor,kM=Object.keys;function DPe(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 FPe(e,t){return Zu(e.getTime(),t.getTime())}function NM(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),c=!1,f=0;(s=l.next())&&!s.done;){var d=a.value,p=d[0],v=d[1],y=s.value,g=y[0],x=y[1];!c&&!r[f]&&(c=n.equals(p,g,o,f,e,t,n)&&n.equals(v,x,p,g,e,t,n))&&(r[f]=!0),f++}if(!c)return!1;o++}return!0}function BPe(e,t,n){var r=kM(e),i=r.length;if(kM(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===BF&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!FF(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function Bf(e,t,n){var r=jM(e),i=r.length;if(jM(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===BF&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!FF(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=AM(e,o),s=AM(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function UPe(e,t){return Zu(e.valueOf(),t.valueOf())}function zPe(e,t){return e.source===t.source&&e.flags===t.flags}function MM(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,c=0;(a=s.next())&&!a.done;)!l&&!r[c]&&(l=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[c]=!0),c++;if(!l)return!1}return!0}function VPe(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 WPe="[object Arguments]",HPe="[object Boolean]",GPe="[object Date]",qPe="[object Map]",KPe="[object Number]",YPe="[object Object]",ZPe="[object RegExp]",XPe="[object Set]",QPe="[object String]",JPe=Array.isArray,LM=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,RM=Object.assign,eEe=Object.prototype.toString.call.bind(Object.prototype.toString);function tEe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(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(JPe(f))return t(f,d,p);if(LM!=null&&LM(f))return l(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 y=eEe(f);return y===GPe?n(f,d,p):y===ZPe?a(f,d,p):y===qPe?r(f,d,p):y===XPe?s(f,d,p):y===YPe?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,p):y===WPe?i(f,d,p):y===HPe||y===KPe||y===QPe?o(f,d,p):!1}}function nEe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Bf:DPe,areDatesEqual:FPe,areMapsEqual:r?TM(NM,Bf):NM,areObjectsEqual:r?Bf:BPe,arePrimitiveWrappersEqual:UPe,areRegExpsEqual:zPe,areSetsEqual:r?TM(MM,Bf):MM,areTypedArraysEqual:r?Bf:VPe};if(n&&(i=RM({},i,n(i))),t){var o=Em(i.areArraysEqual),a=Em(i.areMapsEqual),s=Em(i.areObjectsEqual),l=Em(i.areSetsEqual);i=RM({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function rEe(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function iEe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(l,c){var f=r(),d=f.cache,p=d===void 0?t?new WeakMap:void 0:d,v=f.meta;return n(l,c,{cache:p,equals:i,meta:v,strict:o})};if(t)return function(l,c){return n(l,c,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(l,c){return n(l,c,a)}}var oEe=fs();fs({strict:!0});fs({circular:!0});fs({circular:!0,strict:!0});fs({createInternalComparator:function(){return Zu}});fs({strict:!0,createInternalComparator:function(){return Zu}});fs({circular:!0,createInternalComparator:function(){return Zu}});fs({circular:!0,createInternalComparator:function(){return Zu},strict:!0});function fs(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=nEe(e),l=tEe(s),c=r?r(l):rEe(l);return iEe({circular:n,comparator:l,createState:i,equals:c,strict:a})}function aEe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function $M(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):aEe(i)};requestAnimationFrame(r)}function aO(e){"@babel/helpers - typeof";return aO=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},aO(e)}function sEe(e){return fEe(e)||uEe(e)||cEe(e)||lEe()}function lEe(){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 cEe(e,t){if(e){if(typeof e=="string")return IM(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 IM(e,t)}}function IM(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 uEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fEe(e){if(Array.isArray(e))return e}function dEe(){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=sEe(a),l=s[0],c=s.slice(1);if(typeof l=="number"){$M(i.bind(null,c),l);return}i(l),$M(i.bind(null,c));return}aO(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 jh(e){"@babel/helpers - typeof";return jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jh(e)}function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DM(Object(n),!0).forEach(function(r){UF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UF(e,t,n){return t=hEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hEe(e){var t=pEe(e,"string");return jh(t)==="symbol"?t:String(t)}function pEe(e,t){if(jh(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jh(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mEe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},vEe=function(t){return t},gEe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},bd=function(t,n){return Object.keys(n).reduce(function(r,i){return FM(FM({},r),{},UF({},i,t(i,n[i])))},{})},BM=function(t,n,r){return t.map(function(i){return"".concat(gEe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function yEe(e,t){return xEe(e)||_Ee(e,t)||zF(e,t)||bEe()}function bEe(){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 _Ee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function xEe(e){if(Array.isArray(e))return e}function wEe(e){return PEe(e)||SEe(e)||zF(e)||OEe()}function OEe(){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 zF(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 SEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PEe(e){if(Array.isArray(e))return sO(e)}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}var Yg=1e-4,VF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},WF=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},UM=function(t,n){return function(r){var i=VF(t,n);return WF(i,r)}},EEe=function(t,n){return function(r){var i=VF(t,n),o=[].concat(wEe(i.map(function(a,s){return a*s}).slice(1)),[0]);return WF(o,r)}},zM=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 l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),f=yEe(c,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var d=UM(i,a),p=UM(o,s),v=EEe(i,a),y=function(_){return _>1?1:_<0?0:_},g=function(_){for(var b=_>1?1:_,w=b,S=0;S<8;++S){var P=d(w)-b,E=v(w);if(Math.abs(P-b)<Yg||E<Yg)return p(w);w=y(w-P/E)}return p(w)};return g.isStepper=!1,g},CEe=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,l=function(f,d,p){var v=-(f-d)*r,y=p*o,g=p+(v-y)*s/1e3,x=p*s/1e3+f;return Math.abs(x-d)<Yg&&Math.abs(g)<Yg?[d,0]:[x,g]};return l.isStepper=!0,l.dt=s,l},TEe=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 zM(i);case"spring":return CEe();default:if(i.split("(")[0]==="cubic-bezier")return zM(i)}return typeof i=="function"?i:null};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 VM(e){return kEe(e)||AEe(e)||HF(e)||jEe()}function jEe(){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 AEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kEe(e){if(Array.isArray(e))return cO(e)}function WM(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 Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WM(Object(n),!0).forEach(function(r){lO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lO(e,t,n){return t=NEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NEe(e){var t=MEe(e,"string");return Ah(t)==="symbol"?t:String(t)}function MEe(e,t){if(Ah(e)!=="object"||e===null)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)}function LEe(e,t){return IEe(e)||$Ee(e,t)||HF(e,t)||REe()}function REe(){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 HF(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 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 $Ee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function IEe(e){if(Array.isArray(e))return e}var Zg=function(t,n,r){return t+(n-t)*r},uO=function(t){var n=t.from,r=t.to;return n!==r},DEe=function e(t,n,r){var i=bd(function(o,a){if(uO(a)){var s=t(a.from,a.to,a.velocity),l=LEe(s,2),c=l[0],f=l[1];return Tn(Tn({},a),{},{from:c,velocity:f})}return a},n);return r<1?bd(function(o,a){return uO(a)?Tn(Tn({},a),{},{velocity:Zg(a.velocity,i[o].velocity,r),from:Zg(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const FEe=function(e,t,n,r,i){var o=mEe(e,t),a=o.reduce(function(x,_){return Tn(Tn({},x),{},lO({},_,[e[_],t[_]]))},{}),s=o.reduce(function(x,_){return Tn(Tn({},x),{},lO({},_,{from:e[_],velocity:0,to:t[_]}))},{}),l=-1,c,f,d=function(){return null},p=function(){return bd(function(_,b){return b.from},s)},v=function(){return!Object.values(s).filter(uO).length},y=function(_){c||(c=_);var b=_-c,w=b/n.dt;s=DEe(n,s,w),i(Tn(Tn(Tn({},e),t),p())),c=_,v()||(l=requestAnimationFrame(d))},g=function(_){f||(f=_);var b=(_-f)/r,w=bd(function(P,E){return Zg.apply(void 0,VM(E).concat([n(b)]))},a);if(i(Tn(Tn(Tn({},e),t),w)),b<1)l=requestAnimationFrame(d);else{var S=bd(function(P,E){return Zg.apply(void 0,VM(E).concat([n(1)]))},a);i(Tn(Tn(Tn({},e),t),S))}};return d=n.isStepper?y:g,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};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)}var BEe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function UEe(e,t){if(e==null)return{};var n=zEe(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 zEe(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 o_(e){return GEe(e)||HEe(e)||WEe(e)||VEe()}function VEe(){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 WEe(e,t){if(e){if(typeof e=="string")return fO(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 fO(e,t)}}function HEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GEe(e){if(Array.isArray(e))return fO(e)}function fO(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 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 yi(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){Qf(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 Qf(e,t,n){return t=GF(t),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 instanceof t))throw new TypeError("Cannot call a class as a function")}function KEe(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,GF(r.key),r)}}function YEe(e,t,n){return t&&KEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GF(e){var t=ZEe(e,"string");return uu(t)==="symbol"?t:String(t)}function ZEe(e,t){if(uu(e)!=="object"||e===null)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)}function XEe(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&&dO(e,t)}function dO(e,t){return dO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dO(e,t)}function QEe(e){var t=JEe();return function(){var r=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hO(this,i)}}function hO(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 pO(e)}function pO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JEe(){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 Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}var ui=function(e){XEe(n,e);var t=QEe(n);function n(r,i){var o;qEe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,c=a.from,f=a.to,d=a.steps,p=a.children,v=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(pO(o)),o.changeStyle=o.changeStyle.bind(pO(o)),!s||v<=0)return o.state={style:{}},typeof p=="function"&&(o.state={style:f}),hO(o);if(d&&d.length)o.state={style:d[0].style};else if(c){if(typeof p=="function")return o.state={style:c},hO(o);o.state={style:l?Qf({},l,c):c}}else o.state={style:{}};return o}return YEe(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,l=o.attributeName,c=o.shouldReAnimate,f=o.to,d=o.from,p=this.state.style;if(s){if(!a){var v={style:l?Qf({},l,f):f};this.state&&p&&(l&&p[l]!==f||!l&&p!==f)&&this.setState(v);return}if(!(oEe(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=y||c?d:i.to;if(this.state&&p){var x={style:l?Qf({},l,g):g};(l&&p[l]!==g||!l&&p!==g)&&this.setState(x)}this.runAnimation(yi(yi({},this.props),{},{from:g,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,l=i.duration,c=i.easing,f=i.begin,d=i.onAnimationEnd,p=i.onAnimationStart,v=FEe(a,s,TEe(c),l,this.changeStyle),y=function(){o.stopJSAnimation=v()};this.manager.start([p,f,y,l,d])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,c=a[0],f=c.style,d=c.duration,p=d===void 0?0:d,v=function(g,x,_){if(_===0)return g;var b=x.duration,w=x.easing,S=w===void 0?"ease":w,P=x.style,E=x.properties,T=x.onAnimationEnd,j=_>0?a[_-1]:x,F=E||Object.keys(P);if(typeof S=="function"||S==="spring")return[].concat(o_(g),[o.runJSAnimation.bind(o,{from:j.style,to:P,duration:b,easing:S}),b]);var k=BM(F,b,S),I=yi(yi(yi({},j.style),P),{},{transition:k});return[].concat(o_(g),[I,b,T]).filter(vEe)};return this.manager.start([l].concat(o_(a.reduce(v,[f,Math.max(p,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=dEe());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,c=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,p=i.steps,v=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof v=="function"||c==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var g=s?Qf({},s,l):l,x=BM(Object.keys(g),a,c);y.start([f,o,yi(yi({},g),{},{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 l=UEe(i,BEe),c=M.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||c===0||a<=0)return o;var d=function(v){var y=v.props,g=y.style,x=g===void 0?{}:g,_=y.className,b=M.cloneElement(v,yi(yi({},l),{},{style:yi(yi({},x),f),className:_}));return b};return c===1?d(M.Children.only(o)):V.createElement("div",null,M.Children.map(o,function(p){return d(p)}))}}]),n}(M.PureComponent);ui.displayName="Animate";ui.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ui.propTypes={from:$.oneOfType([$.object,$.string]),to:$.oneOfType([$.object,$.string]),attributeName:$.string,duration:$.number,begin:$.number,easing:$.oneOfType([$.string,$.func]),steps:$.arrayOf($.shape({duration:$.number.isRequired,style:$.object.isRequired,easing:$.oneOfType([$.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$.func]),properties:$.arrayOf("string"),onAnimationEnd:$.func})),children:$.oneOfType([$.node,$.func]),isActive:$.bool,canBegin:$.bool,onAnimationEnd:$.func,shouldReAnimate:$.bool,onAnimationStart:$.func,onAnimationReStart:$.func};$.object,$.object,$.object,$.element;$.object,$.object,$.object,$.oneOfType([$.array,$.element]),$.any;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 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 eCe(e,t){return iCe(e)||rCe(e,t)||nCe(e,t)||tCe()}function tCe(){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 nCe(e,t){if(e){if(typeof e=="string")return GM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GM(e,t)}}function GM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function iCe(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 KM(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){oCe(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 oCe(e,t,n){return t=aCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aCe(e){var t=sCe(e,"string");return kh(t)=="symbol"?t:t+""}function sCe(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)}var YM=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,l=r>=0?1:-1,c=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(c,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`,
|
||
`).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(c,`,
|
||
`).concat(t+r-l*d[2],",").concat(n+i)),f+="L ".concat(t+l*d[3],",").concat(n+i),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`,
|
||
`).concat(t,",").concat(n+i-s*d[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var y=Math.min(a,o);f="M ".concat(t,",").concat(n+s*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+l*y,",").concat(n,`
|
||
L `).concat(t+r-l*y,",").concat(n,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+r,",").concat(n+s*y,`
|
||
L `).concat(t+r,",").concat(n+i-s*y,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+r-l*y,",").concat(n+i,`
|
||
L `).concat(t+l*y,",").concat(n+i,`
|
||
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(n+i-s*y," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},lCe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(o,o+s),f=Math.max(o,o+s),d=Math.min(a,a+l),p=Math.max(a,a+l);return r>=c&&r<=f&&i>=d&&i<=p}return!1},cCe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KE=function(t){var n=KM(KM({},cCe),t),r=M.useRef(),i=M.useState(-1),o=eCe(i,2),a=o[0],s=o[1];M.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&s(S)}catch{}},[]);var l=n.x,c=n.y,f=n.width,d=n.height,p=n.radius,v=n.className,y=n.animationEasing,g=n.animationDuration,x=n.animationBegin,_=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||c!==+c||f!==+f||d!==+d||f===0||d===0)return null;var w=Oe("recharts-rectangle",v);return b?V.createElement(ui,{canBegin:a>0,from:{width:f,height:d,x:l,y:c},to:{width:f,height:d,x:l,y:c},duration:g,animationEasing:y,isActive:b},function(S){var P=S.width,E=S.height,T=S.x,j=S.y;return V.createElement(ui,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:g,isActive:_,easing:y},V.createElement("path",Qg({},De(n,!0),{className:w,d:YM(T,j,P,E,p),ref:r})))}):V.createElement("path",Qg({},De(n,!0),{className:w,d:YM(l,c,f,d,p)}))},uCe=["points","className","baseLinePoints","connectNulls"];function _c(){return _c=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},_c.apply(this,arguments)}function fCe(e,t){if(e==null)return{};var n=dCe(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 dCe(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 ZM(e){return vCe(e)||mCe(e)||pCe(e)||hCe()}function hCe(){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 pCe(e,t){if(e){if(typeof e=="string")return mO(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 mO(e,t)}}function mCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vCe(e){if(Array.isArray(e))return mO(e)}function mO(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 XM=function(t){return t&&t.x===+t.x&&t.y===+t.y},gCe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){XM(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),XM(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},_d=function(t,n){var r=gCe(t);n&&(r=[r.reduce(function(o,a){return[].concat(ZM(o),ZM(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},yCe=function(t,n,r){var i=_d(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(_d(n.reverse(),r).slice(1))},bCe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=fCe(t,uCe);if(!n||!n.length)return null;var s=Oe("recharts-polygon",r);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",c=yCe(n,i,o);return V.createElement("g",{className:s},V.createElement("path",_c({},De(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:c})),l?V.createElement("path",_c({},De(a,!0),{fill:"none",d:_d(n,o)})):null,l?V.createElement("path",_c({},De(a,!0),{fill:"none",d:_d(i,o)})):null)}var f=_d(n,o);return V.createElement("path",_c({},De(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function vO(){return vO=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},vO.apply(this,arguments)}var mp=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",vO({},De(t,!1),bg(t),{className:a,cx:n,cy:r,r:i})):null};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)}var _Ce=["x","y","top","left","width","height","className"];function gO(){return gO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gO.apply(this,arguments)}function 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 xCe(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){wCe(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 wCe(e,t,n){return t=OCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OCe(e){var t=SCe(e,"string");return Nh(t)=="symbol"?t:t+""}function SCe(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)}function PCe(e,t){if(e==null)return{};var n=ECe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ECe(e,t){if(e==null)return{};var n={};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 CCe=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},TCe=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,l=t.left,c=l===void 0?0:l,f=t.width,d=f===void 0?0:f,p=t.height,v=p===void 0?0:p,y=t.className,g=PCe(t,_Ce),x=xCe({x:r,y:o,top:s,left:c,width:d,height:v},g);return!Ee(r)||!Ee(o)||!Ee(d)||!Ee(v)||!Ee(s)||!Ee(c)?null:V.createElement("path",gO({},De(x,!0),{className:Oe("recharts-cross",y),d:CCe(r,o,d,v,s,c)}))},jCe=G0,ACe=aF,kCe=go;function NCe(e,t){return e&&e.length?jCe(e,kCe(t),ACe):void 0}var MCe=NCe;const LCe=at(MCe);var RCe=G0,$Ce=go,ICe=sF;function DCe(e,t){return e&&e.length?RCe(e,$Ce(t),ICe):void 0}var FCe=DCe;const BCe=at(FCe);var UCe=["cx","cy","angle","ticks","axisLine"],zCe=["ticks","tick","angle","tickFormatter","stroke"];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 xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function JM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JM(Object(n),!0).forEach(function(r){Z0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eL(e,t){if(e==null)return{};var n=VCe(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 VCe(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 WCe(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,KF(r.key),r)}}function HCe(e,t,n){return t&&tL(e.prototype,t),n&&tL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function GCe(e,t,n){return t=Jg(t),qCe(e,qF()?Reflect.construct(t,n||[],Jg(e).constructor):t.apply(e,n))}function qCe(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 KCe(e)}function KCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qF=function(){return!!e})()}function Jg(e){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jg(e)}function YCe(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 Z0(e,t,n){return t=KF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KF(e){var t=ZCe(e,"string");return fu(t)=="symbol"?t:t+""}function ZCe(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)}var X0=function(e){function t(){return WCe(this,t),GCe(this,t,arguments)}return YCe(t,e),HCe(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return Ot(s,l,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,l=LCe(s,function(f){return f.coordinate||0}),c=BCe(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,c=eL(r,UCe),f=s.reduce(function(y,g){return[Math.min(y[0],g.coordinate),Math.max(y[1],g.coordinate)]},[1/0,-1/0]),d=Ot(i,o,f[0],a),p=Ot(i,o,f[1],a),v=_s(_s(_s({},De(c,!1)),{},{fill:"none"},De(l,!1)),{},{x1:d.x,y1:d.y,x2:p.x,y2:p.y});return V.createElement("line",xd({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,l=i.tickFormatter,c=i.stroke,f=eL(i,zCe),d=this.getTickTextAnchor(),p=De(f,!1),v=De(a,!1),y=o.map(function(g,x){var _=r.getTickValueCoord(g),b=_s(_s(_s(_s({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(_.x,", ").concat(_.y,")")},p),{},{stroke:"none",fill:c},v),{},{index:x},_),{},{payload:g});return V.createElement(Ze,xd({className:Oe("recharts-polar-radius-axis-tick",RF(a)),key:"tick-".concat(g.coordinate)},Ya(r.props,g,x)),t.renderTickItem(a,b,l?l(g.value,x):g.value))});return V.createElement(Ze,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:V.createElement(Ze,{className:Oe("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),yn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):Ve(r)?a=r(i):a=V.createElement(pl,xd({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(M.PureComponent);Z0(X0,"displayName","PolarRadiusAxis");Z0(X0,"axisType","radiusAxis");Z0(X0,"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 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 Ls(){return Ls=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},Ls.apply(this,arguments)}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 xs(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){Q0(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 XCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rL(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,ZF(r.key),r)}}function QCe(e,t,n){return t&&rL(e.prototype,t),n&&rL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JCe(e,t,n){return t=ey(t),eTe(e,YF()?Reflect.construct(t,n||[],ey(e).constructor):t.apply(e,n))}function eTe(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 tTe(e)}function tTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YF=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function nTe(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 Q0(e,t,n){return t=ZF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZF(e){var t=rTe(e,"string");return du(t)=="symbol"?t:t+""}function rTe(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 iTe=Math.PI/180,iL=1e-5,J0=function(e){function t(){return XCe(this,t),JCe(this,t,arguments)}return nTe(t,e),QCe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,c=i.tickSize,f=c||8,d=Ot(o,a,s,r.coordinate),p=Ot(o,a,s+(l==="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*iTe),a;return o>iL?a=i==="outer"?"start":"end":o<-iL?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,l=r.axisLineType,c=xs(xs({},De(this.props,!1)),{},{fill:"none"},De(s,!1));if(l==="circle")return V.createElement(mp,Ls({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:o,r:a}));var f=this.props.ticks,d=f.map(function(p){return Ot(i,o,a,p.coordinate)});return V.createElement(bCe,Ls({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,c=i.stroke,f=De(this.props,!1),d=De(a,!1),p=xs(xs({},f),{},{fill:"none"},De(s,!1)),v=o.map(function(y,g){var x=r.getTickLineCoord(y),_=r.getTickTextAnchor(y),b=xs(xs(xs({textAnchor:_},f),{},{stroke:"none",fill:c},d),{},{index:g,payload:y,x:x.x2,y:x.y2});return V.createElement(Ze,Ls({className:Oe("recharts-polar-angle-axis-tick",RF(a)),key:"tick-".concat(y.coordinate)},Ya(r.props,y,g)),s&&V.createElement("line",Ls({className:"recharts-polar-angle-axis-tick-line"},p,x)),a&&t.renderTickItem(a,b,l?l(y.value,g):y.value))});return V.createElement(Ze,{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(Ze,{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):Ve(r)?a=r(i):a=V.createElement(pl,Ls({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(M.PureComponent);Q0(J0,"displayName","PolarAngleAxis");Q0(J0,"axisType","angleAxis");Q0(J0,"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 oTe=n8,aTe=oTe(Object.getPrototypeOf,Object),sTe=aTe,lTe=ta,cTe=sTe,uTe=na,fTe="[object Object]",dTe=Function.prototype,hTe=Object.prototype,XF=dTe.toString,pTe=hTe.hasOwnProperty,mTe=XF.call(Object);function vTe(e){if(!uTe(e)||lTe(e)!=fTe)return!1;var t=cTe(e);if(t===null)return!0;var n=pTe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XF.call(n)==mTe}var gTe=vTe;const yTe=at(gTe);var bTe=ta,_Te=na,xTe="[object Boolean]";function wTe(e){return e===!0||e===!1||_Te(e)&&bTe(e)==xTe}var OTe=wTe;const STe=at(OTe);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 ty(){return ty=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},ty.apply(this,arguments)}function PTe(e,t){return jTe(e)||TTe(e,t)||CTe(e,t)||ETe()}function ETe(){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 CTe(e,t){if(e){if(typeof e=="string")return oL(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 oL(e,t)}}function oL(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 TTe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function jTe(e){if(Array.isArray(e))return 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 sL(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){ATe(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 ATe(e,t,n){return t=kTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kTe(e){var t=NTe(e,"string");return Mh(t)=="symbol"?t:t+""}function NTe(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 lL=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},MTe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},LTe=function(t){var n=sL(sL({},MTe),t),r=M.useRef(),i=M.useState(-1),o=PTe(i,2),a=o[0],s=o[1];M.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&s(w)}catch{}},[]);var l=n.x,c=n.y,f=n.upperWidth,d=n.lowerWidth,p=n.height,v=n.className,y=n.animationEasing,g=n.animationDuration,x=n.animationBegin,_=n.isUpdateAnimationActive;if(l!==+l||c!==+c||f!==+f||d!==+d||p!==+p||f===0&&d===0||p===0)return null;var b=Oe("recharts-trapezoid",v);return _?V.createElement(ui,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:l,y:c},to:{upperWidth:f,lowerWidth:d,height:p,x:l,y:c},duration:g,animationEasing:y,isActive:_},function(w){var S=w.upperWidth,P=w.lowerWidth,E=w.height,T=w.x,j=w.y;return V.createElement(ui,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:g,easing:y},V.createElement("path",ty({},De(n,!0),{className:b,d:lL(T,j,S,P,E),ref:r})))}):V.createElement("g",null,V.createElement("path",ty({},De(n,!0),{className:b,d:lL(l,c,f,d,p)})))},RTe=["option","shapeType","propTransformer","activeClassName","isActive"];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 $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={};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 cL(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 ny(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cL(Object(n),!0).forEach(function(r){DTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DTe(e,t,n){return t=FTe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FTe(e){var t=BTe(e,"string");return Lh(t)=="symbol"?t:t+""}function BTe(e,t){if(Lh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UTe(e,t){return ny(ny({},t),e)}function zTe(e,t){return e==="symbols"}function uL(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return V.createElement(KE,n);case"trapezoid":return V.createElement(LTe,n);case"sector":return V.createElement(DF,n);case"symbols":if(zTe(t))return V.createElement($0,n);break;default:return null}}function VTe(e){return M.isValidElement(e)?e.props:e}function ry(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?UTe:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=$Te(e,RTe),c;if(M.isValidElement(t))c=M.cloneElement(t,ny(ny({},l),VTe(t)));else if(Ve(t))c=t(l);else if(yTe(t)&&!STe(t)){var f=i(t,l);c=V.createElement(uL,{shapeType:n,elementProps:f})}else{var d=l;c=V.createElement(uL,{shapeType:n,elementProps:d})}return s?V.createElement(Ze,{className:a},c):c}function eb(e,t){return t!=null&&"trapezoids"in e.props}function tb(e,t){return t!=null&&"sectors"in e.props}function Rh(e,t){return t!=null&&"points"in e.props}function WTe(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 HTe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function GTe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function qTe(e,t){var n;return eb(e,t)?n=WTe:tb(e,t)?n=HTe:Rh(e,t)&&(n=GTe),n}function KTe(e,t){var n;return eb(e,t)?n="trapezoids":tb(e,t)?n="sectors":Rh(e,t)&&(n="points"),n}function YTe(e,t){if(eb(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(tb(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 Rh(e,t)?t.payload:{}}function ZTe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=KTe(n,t),o=YTe(n,t),a=r.filter(function(l,c){var f=Za(o,l),d=n.props[i].filter(function(y){var g=qTe(n,t);return g(y,t)}),p=n.props[i].indexOf(d[d.length-1]),v=c===p;return f&&v}),s=r.indexOf(a[a.length-1]);return s}var rv;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 xc(){return xc=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},xc.apply(this,arguments)}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 _t(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){Jr(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dL(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,JF(r.key),r)}}function QTe(e,t,n){return t&&dL(e.prototype,t),n&&dL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JTe(e,t,n){return t=iy(t),eje(e,QF()?Reflect.construct(t,n||[],iy(e).constructor):t.apply(e,n))}function eje(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 tje(e)}function tje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QF=function(){return!!e})()}function iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iy(e)}function nje(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 Jr(e,t,n){return t=JF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){var t=rje(e,"string");return hu(t)=="symbol"?t:t+""}function rje(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 fo=function(e){function t(n){var r;return XTe(this,t),r=JTe(this,t,[n]),Jr(r,"pieRef",null),Jr(r,"sectorRefs",[]),Jr(r,"id",ls("recharts-pie-")),Jr(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ve(i)&&i()}),Jr(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ve(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return nje(t,e),QTe(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,l=o.dataKey,c=o.valueKey,f=De(this.props,!1),d=De(a,!1),p=De(s,!1),v=a&&a.offsetRadius||20,y=r.map(function(g,x){var _=(g.startAngle+g.endAngle)/2,b=Ot(g.cx,g.cy,g.outerRadius+v,_),w=_t(_t(_t(_t({},f),g),{},{stroke:"none"},d),{},{index:x,textAnchor:t.getTextAnchor(b.x,g.cx)},b),S=_t(_t(_t(_t({},f),g),{},{fill:"none",stroke:g.fill},p),{},{index:x,points:[Ot(g.cx,g.cy,g.outerRadius,_),b]}),P=l;return Ue(l)&&Ue(c)?P="value":Ue(l)&&(P=c),V.createElement(Ze,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(x)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(a,w,Ct(g,P)))});return V.createElement(Ze,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return r.map(function(c,f){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var d=i.isActiveIndex(f),p=l&&i.hasActiveIndex()?l:null,v=d?a:p,y=_t(_t({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return V.createElement(Ze,xc({ref:function(x){x&&!i.sectorRefs.includes(x)&&i.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},Ya(i.props,c,f),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(f)}),V.createElement(ry,xc({option:v,isActive:d,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,c=i.animationEasing,f=i.animationId,d=this.state,p=d.prevSectors,v=d.prevIsAnimationActive;return V.createElement(ui,{begin:s,duration:l,isActive:a,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var g=y.t,x=[],_=o&&o[0],b=_.startAngle;return o.forEach(function(w,S){var P=p&&p[S],E=S>0?Ar(w,"paddingAngle",0):0;if(P){var T=Bt(P.endAngle-P.startAngle,w.endAngle-w.startAngle),j=_t(_t({},w),{},{startAngle:b+E,endAngle:b+T(g)+E});x.push(j),b=j.endAngle}else{var F=w.endAngle,k=w.startAngle,I=Bt(0,F-k),D=I(g),K=_t(_t({},w),{},{startAngle:b+E,endAngle:b+D+E});x.push(K),b=K.endAngle}}),V.createElement(Ze,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||!Za(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,l=i.label,c=i.cx,f=i.cy,d=i.innerRadius,p=i.outerRadius,v=i.isAnimationActive,y=this.state.isAnimationFinished;if(o||!a||!a.length||!Ee(c)||!Ee(f)||!Ee(d)||!Ee(p))return null;var g=Oe("recharts-pie",s);return V.createElement(Ze,{tabIndex:this.props.rootTabIndex,className:g,ref:function(_){r.pieRef=_}},this.renderSectors(),l&&this.renderLabels(a),yn.renderCallByParent(this.props,null,!1),(!v||y)&&Ai.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(Ve(r))return r(i);var a=Oe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return V.createElement(Ua,xc({},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(Ve(r)&&(a=r(i),V.isValidElement(a)))return a;var s=Oe("recharts-pie-label-text",typeof r!="boolean"&&!Ve(r)?r.className:"");return V.createElement(pl,xc({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(M.PureComponent);rv=fo;Jr(fo,"displayName","Pie");Jr(fo,"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});Jr(fo,"parseDeltaAngle",function(e,t){var n=Gn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Jr(fo,"getRealPieData",function(e){var t=e.data,n=e.children,r=De(e,!1),i=Qn(n,Fa);return t&&t.length?t.map(function(o,a){return _t(_t(_t({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return _t(_t({},r),o.props)}):[]});Jr(fo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=LF(i,o),s=r+qn(e.cx,i,i/2),l=n+qn(e.cy,o,o/2),c=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:l,innerRadius:c,outerRadius:f,maxRadius:d}});Jr(fo,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?_t(_t({},t.type.defaultProps),t.props):t.props,i=rv.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,s=r.endAngle,l=r.paddingAngle,c=r.dataKey,f=r.nameKey,d=r.valueKey,p=r.tooltipType,v=Math.abs(r.minAngle),y=rv.parseCoordinateOfPie(r,n),g=rv.parseDeltaAngle(a,s),x=Math.abs(g),_=c;Ue(c)&&Ue(d)?(ji(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),_="value"):Ue(c)&&(ji(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),_=d);var b=i.filter(function(j){return Ct(j,_,0)!==0}).length,w=(x>=360?b:b-1)*l,S=x-b*v-w,P=i.reduce(function(j,F){var k=Ct(F,_,0);return j+(Ee(k)?k:0)},0),E;if(P>0){var T;E=i.map(function(j,F){var k=Ct(j,_,0),I=Ct(j,f,F),D=(Ee(k)?k:0)/P,K;F?K=T.endAngle+Gn(g)*l*(k!==0?1:0):K=a;var W=K+Gn(g)*((k!==0?v:0)+D*S),X=(K+W)/2,Q=(y.innerRadius+y.outerRadius)/2,te=[{name:I,value:k,payload:j,dataKey:_,type:p}],Z=Ot(y.cx,y.cy,Q,X);return T=_t(_t(_t({percent:D,cornerRadius:o,name:I,tooltipPayload:te,midAngle:X,middleRadius:Q,tooltipPosition:Z},j),y),{},{value:Ct(j,_),startAngle:K,endAngle:W,payload:j,paddingAngle:Gn(g)*l}),T})}return _t(_t({},y),{},{sectors:E,data:i})});var ije=Math.ceil,oje=Math.max;function aje(e,t,n,r){for(var i=-1,o=oje(ije((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var sje=aje,lje=x8,hL=1/0,cje=17976931348623157e292;function uje(e){if(!e)return e===0?e:0;if(e=lje(e),e===hL||e===-hL){var t=e<0?-1:1;return t*cje}return e===e?e:0}var e7=uje,fje=sje,dje=F0,a_=e7;function hje(e){return function(t,n,r){return r&&typeof r!="number"&&dje(t,n,r)&&(n=r=void 0),t=a_(t),n===void 0?(n=t,t=0):n=a_(n),r=r===void 0?t<n?1:-1:a_(r),fje(t,n,r,e)}}var pje=hje,mje=pje,vje=mje(),gje=vje;const oy=at(gje);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)}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 mL(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){t7(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 t7(e,t,n){return t=yje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yje(e){var t=bje(e,"string");return $h(t)=="symbol"?t:t+""}function bje(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)}var _je=["Webkit","Moz","O","ms"],xje=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=_je.reduce(function(o,a){return mL(mL({},o),{},t7({},a+r,n))},{});return i[t]=n,i};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 ay(){return ay=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},ay.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 s_(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){_r(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 wje(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,r7(r.key),r)}}function Oje(e,t,n){return t&&gL(e.prototype,t),n&&gL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sje(e,t,n){return t=sy(t),Pje(e,n7()?Reflect.construct(t,n||[],sy(e).constructor):t.apply(e,n))}function Pje(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 Eje(e)}function Eje(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 sy(e){return sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sy(e)}function Cje(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 _r(e,t,n){return t=r7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r7(e){var t=Tje(e,"string");return pu(t)=="symbol"?t:t+""}function Tje(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 jje=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 l=n.length,c=gd().domain(oy(0,l)).range([o,o+a-s]),f=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(i),scale:c,scaleValues:f}},yL=function(t){return t.changedTouches&&!!t.changedTouches.length},mu=function(e){function t(n){var r;return wje(this,t),r=Sje(this,t,[n]),_r(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),_r(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),_r(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()}),_r(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),_r(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),_r(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),_r(r,"handleSlideDragStart",function(i){var o=yL(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 Cje(t,e),Oje(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,l=s.gap,c=s.data,f=c.length-1,d=Math.min(i,o),p=Math.max(i,o),v=t.getIndexInRange(a,d),y=t.getIndexInRange(a,p);return{startIndex:v-v%l,endIndex:y===f?f:y-y%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=Ct(o[r],s,r);return Ve(a)?a(l,r):l}},{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,l=this.props,c=l.x,f=l.width,d=l.travellerWidth,p=l.startIndex,v=l.endIndex,y=l.onChange,g=r.pageX-o;g>0?g=Math.min(g,c+f-d-s,c+f-d-a):g<0&&(g=Math.max(g,c-a,c-s));var x=this.getIndex({startX:a+g,endX:s+g});(x.startIndex!==p||x.endIndex!==v)&&y&&y(x),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=yL(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,l=i.startX,c=this.state[a],f=this.props,d=f.x,p=f.width,v=f.travellerWidth,y=f.onChange,g=f.gap,x=f.data,_={startX:this.state.startX,endX:this.state.endX},b=r.pageX-o;b>0?b=Math.min(b,d+p-v-c):b<0&&(b=Math.max(b,d-c)),_[a]=c+b;var w=this.getIndex(_),S=w.startIndex,P=w.endIndex,E=function(){var j=x.length-1;return a==="startX"&&(s>l?S%g===0:P%g===0)||s<l&&P===j||a==="endX"&&(s>l?P%g===0:S%g===0)||s>l&&P===j};this.setState(_r(_r({},a,c+b),"brushMoveStartX",r.pageX),function(){y&&E()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,c=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>=c||i==="endX"&&v<=l||this.setState(_r({},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,l=r.fill,c=r.stroke;return V.createElement("rect",{stroke:c,fill:l,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,l=r.data,c=r.children,f=r.padding,d=M.Children.only(c);return d?V.cloneElement(d,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,l=this.props,c=l.y,f=l.travellerWidth,d=l.height,p=l.traveller,v=l.ariaLabel,y=l.data,g=l.startIndex,x=l.endIndex,_=Math.max(r,this.props.x),b=s_(s_({},De(this.props,!1)),{},{x:_,y:c,width:f,height:d}),w=v||"Min value: ".concat((o=y[g])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=y[x])===null||a===void 0?void 0:a.name);return V.createElement(Ze,{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(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),s.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,b))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,c=o.travellerWidth,f=Math.min(r,i)+c,d=Math.max(Math.abs(i-r)-c,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:l,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,l=r.travellerWidth,c=r.stroke,f=this.state,d=f.startX,p=f.endX,v=5,y={pointerEvents:"none",fill:c};return V.createElement(Ze,{className:"recharts-brush-texts"},V.createElement(pl,ay({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-v,y:a+s/2},y),this.getTextOfTick(i)),V.createElement(pl,ay({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+l+v,y:a+s/2},y),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,l=r.y,c=r.width,f=r.height,d=r.alwaysShowText,p=this.state,v=p.startX,y=p.endX,g=p.isTextActive,x=p.isSlideMoving,_=p.isTravellerMoving,b=p.isTravellerFocused;if(!i||!i.length||!Ee(s)||!Ee(l)||!Ee(c)||!Ee(f)||c<=0||f<=0)return null;var w=Oe("recharts-brush",o),S=V.Children.count(a)===1,P=xje("userSelect","none");return V.createElement(Ze,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(v,y),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(y,"endX"),(g||x||_||b||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,l=r.stroke,c=Math.floor(o+s/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),V.createElement("line",{x1:i+1,y1:c,x2:i+a-1,y2:c,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:c+2,x2:i+a-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return V.isValidElement(r)?o=V.cloneElement(r,i):Ve(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,l=r.travellerWidth,c=r.updateId,f=r.startIndex,d=r.endIndex;if(o!==i.prevData||c!==i.prevUpdateId)return s_({prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a},o&&o.length?jje({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var p=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:c,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 l=Math.floor((a+s)/2);r[l]>i?s=l:a=l}return i>=r[s]?s:a}}])}(M.PureComponent);_r(mu,"displayName","Brush");_r(mu,"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 Aje=bE;function kje(e,t){var n;return Aje(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Nje=kje,Mje=K5,Lje=go,Rje=Nje,$je=gr,Ije=F0;function Dje(e,t,n){var r=$je(e)?Mje:Rje;return n&&Ije(e,t,n)&&(t=void 0),r(e,Lje(t))}var Fje=Dje;const Bje=at(Fje);var oo=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},bL=v8;function Uje(e,t,n){t=="__proto__"&&bL?bL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var zje=Uje,Vje=zje,Wje=p8,Hje=go;function Gje(e,t){var n={};return t=Hje(t),Wje(e,function(r,i,o){Vje(n,i,t(r,i,o))}),n}var qje=Gje;const Kje=at(qje);function Yje(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 Zje=Yje,Xje=bE;function Qje(e,t){var n=!0;return Xje(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var Jje=Qje,eAe=Zje,tAe=Jje,nAe=go,rAe=gr,iAe=F0;function oAe(e,t,n){var r=rAe(e)?eAe:tAe;return n&&iAe(e,t,n)&&(t=void 0),r(e,nAe(t))}var aAe=oAe;const i7=at(aAe);var sAe=["x","y"];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 wO(){return wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wO.apply(this,arguments)}function _L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_L(Object(n),!0).forEach(function(r){lAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_L(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lAe(e,t,n){return t=cAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cAe(e){var t=uAe(e,"string");return Ih(t)=="symbol"?t:t+""}function uAe(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)}function fAe(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 hAe(e,t){var n=e.x,r=e.y,i=fAe(e,sAe),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||i.height),f=parseInt(c,10),d="".concat(t.width||i.width),p=parseInt(d,10);return Uf(Uf(Uf(Uf(Uf({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function xL(e){return V.createElement(ry,wO({shapeType:"rectangle",propTransformer:hAe,activeClassName:"recharts-active-bar"},e))}var pAe=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||vl(),n)}},mAe=["value","background"],o7;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 vAe(e,t){if(e==null)return{};var n=gAe(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 gAe(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 ly(){return ly=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},ly.apply(this,arguments)}function wL(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?wL(Object(n),!0).forEach(function(r){Ea(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OL(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,s7(r.key),r)}}function bAe(e,t,n){return t&&OL(e.prototype,t),n&&OL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ae(e,t,n){return t=cy(t),xAe(e,a7()?Reflect.construct(t,n||[],cy(e).constructor):t.apply(e,n))}function xAe(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 wAe(e)}function wAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a7=function(){return!!e})()}function cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cy(e)}function OAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OO(e,t)}function OO(e,t){return OO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OO(e,t)}function Ea(e,t,n){return t=s7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s7(e){var t=SAe(e,"string");return vu(t)=="symbol"?t:t+""}function SAe(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 Lo=function(e){function t(){var n;yAe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=_Ae(this,t,[].concat(i)),Ea(n,"state",{isAnimationFinished:!1}),Ea(n,"id",ls("recharts-bar-")),Ea(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Ea(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return OAe(t,e),bAe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,l=o.activeIndex,c=o.activeBar,f=De(this.props,!1);return r&&r.map(function(d,p){var v=p===l,y=v?c:a,g=nn(nn(nn({},f),d),{},{isActive:v,option:y,index:p,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(Ze,ly({className:"recharts-bar-rectangle"},Ya(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(xL,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,f=i.animationEasing,d=i.animationId,p=this.state.prevData;return V.createElement(ui,{begin:l,duration:c,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var y=v.t,g=o.map(function(x,_){var b=p&&p[_];if(b){var w=Bt(b.x,x.x),S=Bt(b.y,x.y),P=Bt(b.width,x.width),E=Bt(b.height,x.height);return nn(nn({},x),{},{x:w(y),y:S(y),width:P(y),height:E(y)})}if(a==="horizontal"){var T=Bt(0,x.height),j=T(y);return nn(nn({},x),{},{y:x.y+x.height-j,height:j})}var F=Bt(0,x.width),k=F(y);return nn(nn({},x),{},{width:k})});return V.createElement(Ze,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!Za(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,l=De(this.props.background,!1);return o.map(function(c,f){c.value;var d=c.background,p=vAe(c,mAe);if(!d)return null;var v=nn(nn(nn(nn(nn({},p),{},{fill:"#eee"},d),l),Ya(r.props,c,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return V.createElement(xL,ly({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,l=o.yAxis,c=o.layout,f=o.children,d=Qn(f,Yu);if(!d)return null;var p=c==="vertical"?a[0].height/2:a[0].width/2,v=function(x,_){var b=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:b,errorVal:Ct(x,_)}},y={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Ze,y,d.map(function(g){return V.cloneElement(g,{key:"error-bar-".concat(i,"-").concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,offset:p,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,l=r.yAxis,c=r.left,f=r.top,d=r.width,p=r.height,v=r.isAnimationActive,y=r.background,g=r.id;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,_=Oe("recharts-bar",a),b=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,S=b||w,P=Ue(g)?this.id:g;return V.createElement(Ze,{className:_},b||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(P)},V.createElement("rect",{x:b?c:c-d/2,y:w?f:f-p/2,width:b?d:d*2,height:w?p:p*2}))):null,V.createElement(Ze,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(P,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,P),(!v||x)&&Ai.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}}])}(M.PureComponent);o7=Lo;Ea(Lo,"displayName","Bar");Ea(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"});Ea(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,l=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=bSe(r,n);if(!v)return null;var y=t.layout,g=n.type.defaultProps,x=g!==void 0?nn(nn({},g),n.props):n.props,_=x.dataKey,b=x.children,w=x.minPointSize,S=y==="horizontal"?a:o,P=c?S.scale.domain():null,E=ESe({numericAxis:S}),T=Qn(b,Fa),j=d.map(function(F,k){var I,D,K,W,X,Q;c?I=_Se(c[f+k],P):(I=Ct(F,_),Array.isArray(I)||(I=[E,I]));var te=pAe(w,o7.defaultProps.minPointSize)(I[1],k);if(y==="horizontal"){var Z,z=[a.scale(I[0]),a.scale(I[1])],B=z[0],H=z[1];D=dM({axis:o,ticks:s,bandSize:i,offset:v.offset,entry:F,index:k}),K=(Z=H??B)!==null&&Z!==void 0?Z:void 0,W=v.size;var ee=B-H;if(X=Number.isNaN(ee)?0:ee,Q={x:D,y:a.y,width:W,height:a.height},Math.abs(te)>0&&Math.abs(X)<Math.abs(te)){var q=Gn(X||te)*(Math.abs(te)-Math.abs(X));K-=q,X+=q}}else{var ne=[o.scale(I[0]),o.scale(I[1])],re=ne[0],ae=ne[1];if(D=re,K=dM({axis:a,ticks:l,bandSize:i,offset:v.offset,entry:F,index:k}),W=ae-re,X=v.size,Q={x:o.x,y:K,width:o.width,height:X},Math.abs(te)>0&&Math.abs(W)<Math.abs(te)){var ue=Gn(W||te)*(Math.abs(te)-Math.abs(W));W+=ue}}return nn(nn(nn({},F),{},{x:D,y:K,width:W,height:X,value:c?I:I[1],payload:F,background:Q},T&&T[k]&&T[k].props),{},{tooltipPayload:[NF(n,F)],tooltipPosition:{x:D+W/2,y:K+X/2}})});return nn({data:j,layout:y},p)});function Dh(e){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}function PAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SL(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,l7(r.key),r)}}function EAe(e,t,n){return t&&SL(e.prototype,t),n&&SL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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 xi(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){nb(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 nb(e,t,n){return t=l7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l7(e){var t=CAe(e,"string");return Dh(t)=="symbol"?t:t+""}function CAe(e,t){if(Dh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c7=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.layout,c=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=!!wr(c,Lo);return f.reduce(function(v,y){var g=n[y],x=g.orientation,_=g.domain,b=g.padding,w=b===void 0?{}:b,S=g.mirror,P=g.reversed,E="".concat(x).concat(S?"Mirror":""),T,j,F,k,I;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var D=_[1]-_[0],K=1/0,W=g.categoricalDomain.sort();if(W.forEach(function(ne,re){re>0&&(K=Math.min((ne||0)-(W[re-1]||0),K))}),Number.isFinite(K)){var X=K/D,Q=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(T=X*Q/2),g.padding==="no-gap"){var te=qn(t.barCategoryGap,X*Q),Z=X*Q/2;T=Z-te-(Z-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=l==="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=g.range,P&&(j=[j[1],j[0]]);var z=TF(g,o,p),B=z.scale,H=z.realScaleType;B.domain(_).range(j),jF(B);var ee=AF(B,xi(xi({},g),{},{realScaleType:H}));i==="xAxis"?(I=x==="top"&&!S||x==="bottom"&&S,F=r.left,k=d[E]-I*g.height):i==="yAxis"&&(I=x==="left"&&!S||x==="right"&&S,F=d[E]-I*g.width,k=r.top);var q=xi(xi(xi({},g),ee),{},{realScaleType:H,x:F,y:k,scale:B,width:i==="xAxis"?r.width:g.width,height:i==="yAxis"?r.height:g.height});return q.bandSize=Gg(q,ee),!g.hide&&i==="xAxis"?d[E]+=(I?-1:1)*q.height:g.hide||(d[E]+=(I?-1:1)*q.width),xi(xi({},v),{},nb({},y,q))},{})},u7=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)}},TAe=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return u7({x:n,y:r},{x:i,y:o})},f7=function(){function e(t){PAe(this,e),this.scale=t}return EAe(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 l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}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)}}])}();nb(f7,"EPS",1e-4);var YE=function(t){var n=Object.keys(t).reduce(function(r,i){return xi(xi({},r),{},nb({},i,f7.create(t[i])))},{});return xi(xi({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return Kje(i,function(l,c){return n[c].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return i7(i,function(o,a){return n[a].isInRange(o)})}})};function jAe(e){return(e%180+180)%180}var AAe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=jAe(i),a=o*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},kAe=go,NAe=up,MAe=I0;function LAe(e){return function(t,n,r){var i=Object(t);if(!NAe(t)){var o=kAe(n);t=MAe(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 RAe=LAe,$Ae=e7;function IAe(e){var t=$Ae(e),n=t%1;return t===t?n?t-n:t:0}var DAe=IAe,FAe=l8,BAe=go,UAe=DAe,zAe=Math.max;function VAe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:UAe(n);return i<0&&(i=zAe(r+i,0)),FAe(e,BAe(t),i)}var WAe=VAe,HAe=RAe,GAe=WAe,qAe=HAe(GAe),KAe=qAe;const YAe=at(KAe);var ZAe=sfe(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("")}),ZE=M.createContext(void 0),XE=M.createContext(void 0),d7=M.createContext(void 0),h7=M.createContext({}),p7=M.createContext(void 0),m7=M.createContext(0),v7=M.createContext(0),EL=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,l=t.width,c=t.height,f=ZAe(o);return V.createElement(ZE.Provider,{value:r},V.createElement(XE.Provider,{value:i},V.createElement(h7.Provider,{value:o},V.createElement(d7.Provider,{value:f},V.createElement(p7.Provider,{value:a},V.createElement(m7.Provider,{value:c},V.createElement(v7.Provider,{value:l},s)))))))},XAe=function(){return M.useContext(p7)},g7=function(t){var n=M.useContext(ZE);n==null&&vl();var r=n[t];return r==null&&vl(),r},QAe=function(){var t=M.useContext(ZE);return _a(t)},JAe=function(){var t=M.useContext(XE),n=YAe(t,function(r){return i7(r.domain,Number.isFinite)});return n||_a(t)},y7=function(t){var n=M.useContext(XE);n==null&&vl();var r=n[t];return r==null&&vl(),r},e3e=function(){var t=M.useContext(d7);return t},t3e=function(){return M.useContext(h7)},QE=function(){return M.useContext(v7)},JE=function(){return M.useContext(m7)};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 n3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r3e(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 i3e(e,t,n){return t&&r3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o3e(e,t,n){return t=uy(t),a3e(e,b7()?Reflect.construct(t,n||[],uy(e).constructor):t.apply(e,n))}function a3e(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 s3e(e)}function s3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b7=function(){return!!e})()}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uy(e)}function l3e(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&&SO(e,t)}function SO(e,t){return SO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},SO(e,t)}function CL(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 TL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CL(Object(n),!0).forEach(function(r){eC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eC(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=c3e(e,"string");return gu(t)=="symbol"?t:t+""}function c3e(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)}function u3e(e,t){return p3e(e)||h3e(e,t)||d3e(e,t)||f3e()}function f3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d3e(e,t){if(e){if(typeof e=="string")return jL(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 jL(e,t)}}function jL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h3e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function p3e(e){if(Array.isArray(e))return e}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 m3e=function(t,n){var r;return V.isValidElement(t)?r=V.cloneElement(t,n):Ve(t)?r=t(n):r=V.createElement("line",PO({},n,{className:"recharts-reference-line-line"})),r},v3e=function(t,n,r,i,o,a,s,l,c){var f=o.x,d=o.y,p=o.width,v=o.height;if(r){var y=c.y,g=t.y.apply(y,{position:a});if(oo(c,"discard")&&!t.y.isInRange(g))return null;var x=[{x:f+p,y:g},{x:f,y:g}];return l==="left"?x.reverse():x}if(n){var _=c.x,b=t.x.apply(_,{position:a});if(oo(c,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:d+v},{x:b,y:d}];return s==="top"?w.reverse():w}if(i){var S=c.segment,P=S.map(function(E){return t.apply(E,{position:a})});return oo(c,"discard")&&Bje(P,function(E){return!t.isInRange(E)})?null:P}return null};function g3e(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,c=XAe(),f=g7(i),d=y7(o),p=e3e();if(!c||!p)return null;ji(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=YE({x:f.scale,y:d.scale}),y=un(t),g=un(n),x=r&&r.length===2,_=v3e(v,y,g,x,p,e.position,f.orientation,d.orientation,e);if(!_)return null;var b=u3e(_,2),w=b[0],S=w.x,P=w.y,E=b[1],T=E.x,j=E.y,F=oo(e,"hidden")?"url(#".concat(c,")"):void 0,k=TL(TL({clipPath:F},De(e,!0)),{},{x1:S,y1:P,x2:T,y2:j});return V.createElement(Ze,{className:Oe("recharts-reference-line",s)},m3e(a,k),yn.renderCallByParent(e,TAe({x1:S,y1:P,x2:T,y2:j})))}var tC=function(e){function t(){return n3e(this,t),o3e(this,t,arguments)}return l3e(t,e),i3e(t,[{key:"render",value:function(){return V.createElement(g3e,this.props)}}])}(V.Component);eC(tC,"displayName","ReferenceLine");eC(tC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function EO(){return EO=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},EO.apply(this,arguments)}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 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 kL(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){rb(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 y3e(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,w7(r.key),r)}}function _3e(e,t,n){return t&&b3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x3e(e,t,n){return t=fy(t),w3e(e,x7()?Reflect.construct(t,n||[],fy(e).constructor):t.apply(e,n))}function w3e(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 O3e(e)}function O3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x7=function(){return!!e})()}function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fy(e)}function S3e(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&&CO(e,t)}function CO(e,t){return CO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},CO(e,t)}function rb(e,t,n){return t=w7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w7(e){var t=P3e(e,"string");return yu(t)=="symbol"?t:t+""}function P3e(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 E3e=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=YE({x:i.scale,y:o.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return oo(t,"discard")&&!a.isInRange(s)?null:s},ib=function(e){function t(){return y3e(this,t),x3e(this,t,arguments)}return S3e(t,e),_3e(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,s=r.alwaysShow,l=r.clipPathId,c=un(i),f=un(o);if(ji(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var d=E3e(this.props);if(!d)return null;var p=d.x,v=d.y,y=this.props,g=y.shape,x=y.className,_=oo(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=kL(kL({clipPath:_},De(this.props,!0)),{},{cx:p,cy:v});return V.createElement(Ze,{className:Oe("recharts-reference-dot",x)},t.renderDot(g,b),yn.renderCallByParent(this.props,{x:p-a,y:v-a,width:2*a,height:2*a}))}}])}(V.Component);rb(ib,"displayName","ReferenceDot");rb(ib,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});rb(ib,"renderDot",function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ve(e)?n=e(t):n=V.createElement(mp,EO({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function TO(){return TO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TO.apply(this,arguments)}function 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 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){ob(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 C3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T3e(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,S7(r.key),r)}}function j3e(e,t,n){return t&&T3e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A3e(e,t,n){return t=dy(t),k3e(e,O7()?Reflect.construct(t,n||[],dy(e).constructor):t.apply(e,n))}function k3e(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 N3e(e)}function N3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O7=function(){return!!e})()}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dy(e)}function M3e(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&&jO(e,t)}function jO(e,t){return jO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jO(e,t)}function ob(e,t,n){return t=S7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S7(e){var t=L3e(e,"string");return bu(t)=="symbol"?t:t+""}function L3e(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)}var R3e=function(t,n,r,i,o){var a=o.x1,s=o.x2,l=o.y1,c=o.y2,f=o.xAxis,d=o.yAxis;if(!f||!d)return null;var p=YE({x:f.scale,y:d.scale}),v={x:t?p.x.apply(a,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(l,{position:"start"}):p.y.rangeMin},y={x:n?p.x.apply(s,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(c,{position:"end"}):p.y.rangeMax};return oo(o,"discard")&&(!p.isInRange(v)||!p.isInRange(y))?null:u7(v,y)},vp=function(e){function t(){return C3e(this,t),A3e(this,t,arguments)}return M3e(t,e),j3e(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,s=r.y2,l=r.className,c=r.alwaysShow,f=r.clipPathId;ji(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=un(i),p=un(o),v=un(a),y=un(s),g=this.props.shape;if(!d&&!p&&!v&&!y&&!g)return null;var x=R3e(d,p,v,y,this.props);if(!x&&!g)return null;var _=oo(this.props,"hidden")?"url(#".concat(f,")"):void 0;return V.createElement(Ze,{className:Oe("recharts-reference-area",l)},t.renderRect(g,ML(ML({clipPath:_},De(this.props,!0)),x)),yn.renderCallByParent(this.props,x))}}])}(V.Component);ob(vp,"displayName","ReferenceArea");ob(vp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ob(vp,"renderRect",function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ve(e)?n=e(t):n=V.createElement(KE,TO({},t,{className:"recharts-reference-area-rect"})),n});function P7(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function $3e(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return AAe(r,n)}function I3e(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 hy(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 D3e(e,t){return P7(e,t+1)}function F3e(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,l=0,c=1,f=a,d=function(){var y=r==null?void 0:r[l];if(y===void 0)return{v:P7(r,c)};var g=l,x,_=function(){return x===void 0&&(x=n(y,g)),x},b=y.coordinate,w=l===0||hy(e,b,_,f,s);w||(l=0,f=a,c+=1),w&&(f=b+e*(_()/2+i),l+=c)},p;c<=o.length;)if(p=d(),p)return p.v;return[]}function Fh(e){"@babel/helpers - typeof";return Fh=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},Fh(e)}function LL(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?LL(Object(n),!0).forEach(function(r){B3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B3e(e,t,n){return t=U3e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U3e(e){var t=z3e(e,"string");return Fh(t)=="symbol"?t:t+""}function z3e(e,t){if(Fh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V3e(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,l=t.end,c=function(p){var v=o[p],y,g=function(){return y===void 0&&(y=n(v,p)),y};if(p===a-1){var x=e*(v.coordinate+e*g()/2-l);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 _=hy(e,v.tickCoord,g,s,l);_&&(l=v.tickCoord-e*(g()/2+i),o[p]=$n($n({},v),{},{isShow:!0}))},f=a-1;f>=0;f--)c(f);return o}function W3e(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end;if(o){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-c);a[s-1]=f=$n($n({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var v=hy(e,f.tickCoord,function(){return d},l,c);v&&(c=f.tickCoord-e*(d/2+i),a[s-1]=$n($n({},f),{},{isShow:!0}))}for(var y=o?s-1:s,g=function(b){var w=a[b],S,P=function(){return S===void 0&&(S=n(w,b)),S};if(b===0){var E=e*(w.coordinate-e*P()/2-l);a[b]=w=$n($n({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else a[b]=w=$n($n({},w),{},{tickCoord:w.coordinate});var T=hy(e,w.tickCoord,P,l,c);T&&(l=w.tickCoord+e*(P()/2+i),a[b]=$n($n({},w),{},{isShow:!0}))},x=0;x<y;x++)g(x);return a}function nC(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,f=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Ee(l)||ii.isSsr)return D3e(i,typeof l=="number"&&Ee(l)?l:0);var p=[],v=s==="top"||s==="bottom"?"width":"height",y=f&&v==="width"?vd(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(w,S){var P=Ve(c)?c(w.value,S):w.value;return v==="width"?$3e(vd(P,{fontSize:t,letterSpacing:n}),y,d):vd(P,{fontSize:t,letterSpacing:n})[v]},x=i.length>=2?Gn(i[1].coordinate-i[0].coordinate):1,_=I3e(o,x,v);return l==="equidistantPreserveStart"?F3e(x,_,g,i,a):(l==="preserveStart"||l==="preserveStartEnd"?p=W3e(x,_,g,i,a,l==="preserveStartEnd"):p=V3e(x,_,g,i,a),p.filter(function(b){return b.isShow}))}var H3e=["viewBox"],G3e=["viewBox"],q3e=["ticks"];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 wc(){return wc=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},wc.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 Vn(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){rC(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 l_(e,t){if(e==null)return{};var n=K3e(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 K3e(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 Y3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $L(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 Z3e(e,t,n){return t&&$L(e.prototype,t),n&&$L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function X3e(e,t,n){return t=py(t),Q3e(e,E7()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}function Q3e(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 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 E7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E7=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(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&&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 rC(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=tke(e,"string");return _u(t)=="symbol"?t:t+""}function tke(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)}var Xu=function(e){function t(n){var r;return Y3e(this,t),r=X3e(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return eke(t,e),Z3e(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=l_(r,H3e),s=this.props,l=s.viewBox,c=l_(s,G3e);return!kc(o,l)||!kc(a,c)||!kc(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,l=i.height,c=i.orientation,f=i.tickSize,d=i.mirror,p=i.tickMargin,v,y,g,x,_,b,w=d?-1:1,S=r.tickSize||f,P=Ee(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":v=y=r.coordinate,x=a+ +!d*l,g=x-w*S,b=g-w*p,_=P;break;case"left":g=x=r.coordinate,y=o+ +!d*s,v=y-w*S,_=v-w*p,b=P;break;case"right":g=x=r.coordinate,y=o+ +d*s,v=y+w*S,_=v+w*p,b=P;break;default:v=y=r.coordinate,x=a+ +d*l,g=x+w*S,b=g+w*p,_=P;break}return{line:{x1:v,y1:g,x2:y,y2:x},tick:{x:_,y:b}}}},{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,l=r.orientation,c=r.mirror,f=r.axisLine,d=Vn(Vn(Vn({},De(this.props,!1)),De(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var p=+(l==="top"&&!c||l==="bottom"&&c);d=Vn(Vn({},d),{},{x1:i,y1:o+p*s,x2:i+a,y2:o+p*s})}else{var v=+(l==="left"&&!c||l==="right"&&c);d=Vn(Vn({},d),{},{x1:i+v*a,y1:o,x2:i+v*a,y2:o+s})}return V.createElement("line",wc({},d,{className:Oe("recharts-cartesian-axis-line",Ar(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,l=s.tickLine,c=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,v=nC(Vn(Vn({},this.props),{},{ticks:r}),i,o),y=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),x=De(this.props,!1),_=De(f,!1),b=Vn(Vn({},x),{},{fill:"none"},De(l,!1)),w=v.map(function(S,P){var E=a.getTickLineCoord(S),T=E.line,j=E.tick,F=Vn(Vn(Vn(Vn({textAnchor:y,verticalAnchor:g},x),{},{stroke:"none",fill:c},_),j),{},{index:P,payload:S,visibleTicksCount:v.length,tickFormatter:d});return V.createElement(Ze,wc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Ya(a.props,S,P)),l&&V.createElement("line",wc({},b,T,{className:Oe("recharts-cartesian-axis-tick-line",Ar(l,"className"))})),f&&t.renderTickItem(f,F,"".concat(Ve(d)?d(S.value,P):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,l=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var d=this.props,p=d.ticks,v=l_(d,q3e),y=p;return Ve(l)&&(y=p&&p.length>0?l(this.props):l(v)),a<=0||s<=0||!y||!y.length?null:V.createElement(Ze,{className:Oe("recharts-cartesian-axis",c),ref:function(x){r.layerReference=x}},o&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),yn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return V.isValidElement(r)?a=V.cloneElement(r,i):Ve(r)?a=r(i):a=V.createElement(pl,wc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(M.Component);rC(Xu,"displayName","CartesianAxis");rC(Xu,"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 nke=["x1","y1","x2","y2","key"],rke=["offset"];function gl(e){"@babel/helpers - typeof";return gl=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},gl(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 Dn(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){ike(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 ike(e,t,n){return t=oke(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oke(e){var t=ake(e,"string");return gl(t)=="symbol"?t:t+""}function ake(e,t){if(gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vs.apply(this,arguments)}function DL(e,t){if(e==null)return{};var n=ske(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 ske(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 lke=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,l=t.ry;return V.createElement("rect",{x:i,y:o,ry:l,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function T7(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ve(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=DL(t,nke),c=De(l,!1);c.offset;var f=DL(c,rke);n=V.createElement("line",Vs({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function cke(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var c=Dn(Dn({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return T7(i,c)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function uke(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var c=Dn(Dn({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return T7(i,c)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function fke(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!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 y=!f[v+1],g=y?i+a-p:f[v+1]-p;if(g<=0)return null;var x=v%t.length;return V.createElement("rect",{key:"react-".concat(v),y:p,x:r,height:g,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 dke(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var f=c.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 y=!f[v+1],g=y?o+s-p:f[v+1]-p;if(g<=0)return null;var x=v%r.length;return V.createElement("rect",{key:"react-".concat(v),x:p,y:a,width:g,height:l,stroke:"none",fill:r[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var hke=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return CF(nC(Dn(Dn(Dn({},Xu.defaultProps),r),{},{ticks:Ao(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},pke=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return CF(nC(Dn(Dn(Dn({},Xu.defaultProps),r),{},{ticks:Ao(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},Kl={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function iC(e){var t,n,r,i,o,a,s=QE(),l=JE(),c=t3e(),f=Dn(Dn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Kl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Kl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Kl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Kl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Kl.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Kl.verticalFill,x:Ee(e.x)?e.x:c.left,y:Ee(e.y)?e.y:c.top,width:Ee(e.width)?e.width:c.width,height:Ee(e.height)?e.height:c.height}),d=f.x,p=f.y,v=f.width,y=f.height,g=f.syncWithTicks,x=f.horizontalValues,_=f.verticalValues,b=QAe(),w=JAe();if(!Ee(v)||v<=0||!Ee(y)||y<=0||!Ee(d)||d!==+d||!Ee(p)||p!==+p)return null;var S=f.verticalCoordinatesGenerator||hke,P=f.horizontalCoordinatesGenerator||pke,E=f.horizontalPoints,T=f.verticalPoints;if((!E||!E.length)&&Ve(P)){var j=x&&x.length,F=P({yAxis:w?Dn(Dn({},w),{},{ticks:j?x:w.ticks}):void 0,width:s,height:l,offset:c},j?!0:g);ji(Array.isArray(F),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(gl(F),"]")),Array.isArray(F)&&(E=F)}if((!T||!T.length)&&Ve(S)){var k=_&&_.length,I=S({xAxis:b?Dn(Dn({},b),{},{ticks:k?_:b.ticks}):void 0,width:s,height:l,offset:c},k?!0:g);ji(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(gl(I),"]")),Array.isArray(I)&&(T=I)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(lke,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),V.createElement(cke,Vs({},f,{offset:c,horizontalPoints:E,xAxis:b,yAxis:w})),V.createElement(uke,Vs({},f,{offset:c,verticalPoints:T,xAxis:b,yAxis:w})),V.createElement(fke,Vs({},f,{horizontalPoints:E})),V.createElement(dke,Vs({},f,{verticalPoints:T})))}iC.displayName="CartesianGrid";var mke=["type","layout","connectNulls","ref"],vke=["key"];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 FL(e,t){if(e==null)return{};var n=gke(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 gke(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 wd(){return wd=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},wd.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 br(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){wi(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 Yl(e){return xke(e)||_ke(e)||bke(e)||yke()}function yke(){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 kO(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 kO(e,t)}}function _ke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xke(e){if(Array.isArray(e))return kO(e)}function kO(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 wke(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,A7(r.key),r)}}function Oke(e,t,n){return t&&UL(e.prototype,t),n&&UL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ske(e,t,n){return t=my(t),Pke(e,j7()?Reflect.construct(t,n||[],my(e).constructor):t.apply(e,n))}function Pke(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 Eke(e)}function Eke(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 my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},my(e)}function Cke(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 wi(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 xu(t)=="symbol"?t:t+""}function Tke(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 Qu=function(e){function t(){var n;wke(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Ske(this,t,[].concat(i)),wi(n,"state",{isAnimationFinished:!0,totalLength:0}),wi(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),wi(n,"getStrokeDasharray",function(a,s,l){var c=l.reduce(function(_,b){return _+b});if(!c)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/c),d=a%c,p=s-a,v=[],y=0,g=0;y<l.length;g+=l[y],++y)if(g+l[y]>d){v=[].concat(Yl(l.slice(0,y)),[d-g]);break}var x=v.length%2===0?[0,p]:[p];return[].concat(Yl(t.repeat(l,f)),Yl(v),x).map(function(_){return"".concat(_,"px")}).join(", ")}),wi(n,"id",ls("recharts-line-")),wi(n,"pathRef",function(a){n.mainCurve=a}),wi(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),wi(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Cke(t,e),Oke(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,l=o.yAxis,c=o.layout,f=o.children,d=Qn(f,Yu);if(!d)return null;var p=function(g,x){return{x:g.x,y:g.y,value:g.value,errorVal:Ct(g.payload,x)}},v={clipPath:r?"url(#clipPath-".concat(i,")"):null};return V.createElement(Ze,v,d.map(function(y){return V.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,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,l=s.dot,c=s.points,f=s.dataKey,d=De(this.props,!1),p=De(l,!0),v=c.map(function(g,x){var _=br(br(br({key:"dot-".concat(x),r:3},d),p),{},{value:g.value,dataKey:f,cx:g.x,cy:g.y,index:x,payload:g.payload});return t.renderDotItem(l,_)}),y={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Ze,wd({className:"recharts-line-dots",key:"dots"},y),v)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,l=s.type,c=s.layout,f=s.connectNulls;s.ref;var d=FL(s,mke),p=br(br(br({},De(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:l,layout:c,connectNulls:f});return V.createElement(Ua,wd({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,y=a.animateNewValues,g=a.width,x=a.height,_=this.state,b=_.prevPoints,w=_.totalLength;return V.createElement(ui,{begin:f,duration:d,isActive:c,easing:p,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var P=S.t;if(b){var E=b.length/s.length,T=s.map(function(D,K){var W=Math.floor(K*E);if(b[W]){var X=b[W],Q=Bt(X.x,D.x),te=Bt(X.y,D.y);return br(br({},D),{},{x:Q(P),y:te(P)})}if(y){var Z=Bt(g*2,D.x),z=Bt(x/2,D.y);return br(br({},D),{},{x:Z(P),y:z(P)})}return br(br({},D),{},{x:D.x,y:D.y})});return o.renderCurveStatically(T,r,i)}var j=Bt(0,w),F=j(P),k;if(l){var I="".concat(l).split(/[,\s]+/gim).map(function(D){return parseFloat(D)});k=o.getStrokeDasharray(F,w,I)}else k=o.generateSimpleStrokeDasharray(w,F);return o.renderCurveStatically(s,r,i,{strokeDasharray:k})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,c=l.prevPoints,f=l.totalLength;return s&&a&&a.length&&(!c&&f>0||!Za(c,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,l=i.className,c=i.xAxis,f=i.yAxis,d=i.top,p=i.left,v=i.width,y=i.height,g=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var _=this.state.isAnimationFinished,b=s.length===1,w=Oe("recharts-line",l),S=c&&c.allowDataOverflow,P=f&&f.allowDataOverflow,E=S||P,T=Ue(x)?this.id:x,j=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},F=j.r,k=F===void 0?3:F,I=j.strokeWidth,D=I===void 0?2:I,K=b5(a)?a:{},W=K.clipDot,X=W===void 0?!0:W,Q=k*2+D;return V.createElement(Ze,{className:w},S||P?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?p:p-v/2,y:P?d:d-y/2,width:S?v:v*2,height:P?y:y*2})),!X&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:p-Q/2,y:d-Q/2,width:v+Q,height:y+Q}))):null,!b&&this.renderCurve(E,T),this.renderErrorBar(E,T),(b||a)&&this.renderDots(E,X,T),(!g||_)&&Ai.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(Yl(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(Yl(a),Yl(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(V.isValidElement(r))o=V.cloneElement(r,i);else if(Ve(r))o=r(i);else{var a=i.key,s=FL(i,vke),l=Oe("recharts-line-dot",typeof r!="boolean"?r.className:"");o=V.createElement(mp,wd({key:a},s,{className:l}))}return o}}])}(M.PureComponent);wi(Qu,"displayName","Line");wi(Qu,"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});wi(Qu,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,f=t.layout,d=l.map(function(p,v){var y=Ct(p,a);return f==="horizontal"?{x:cu({axis:n,ticks:i,bandSize:s,entry:p,index:v}),y:Ue(y)?null:r.scale(y),value:y,payload:p}:{x:Ue(y)?null:n.scale(y),y:cu({axis:r,ticks:o,bandSize:s,entry:p,index:v}),value:y,payload:p}});return br({points:d,layout:f},c)});var jke=["layout","type","stroke","connectNulls","isRange","ref"],Ake=["key"],k7;function wu(e){"@babel/helpers - typeof";return wu=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},wu(e)}function N7(e,t){if(e==null)return{};var n=kke(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 kke(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 Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ws.apply(this,arguments)}function 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 da(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){Ji(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 Nke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VL(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,L7(r.key),r)}}function Mke(e,t,n){return t&&VL(e.prototype,t),n&&VL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lke(e,t,n){return t=vy(t),Rke(e,M7()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}function Rke(e,t){if(t&&(wu(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 M7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M7=function(){return!!e})()}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function Ike(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 Ji(e,t,n){return t=L7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L7(e){var t=Dke(e,"string");return wu(t)=="symbol"?t:t+""}function Dke(e,t){if(wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cl=function(e){function t(){var n;Nke(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Lke(this,t,[].concat(i)),Ji(n,"state",{isAnimationFinished:!0}),Ji(n,"id",ls("recharts-area-")),Ji(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Ve(a)&&a()}),Ji(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Ve(a)&&a()}),n}return Ike(t,e),Mke(t,[{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var l=this.props,c=l.dot,f=l.points,d=l.dataKey,p=De(this.props,!1),v=De(c,!0),y=f.map(function(x,_){var b=da(da(da({key:"dot-".concat(_),r:3},p),v),{},{index:_,cx:x.x,cy:x.y,dataKey:d,value:x.value,payload:x.payload,points:f});return t.renderDotItem(c,b)}),g={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return V.createElement(Ze,Ws({className:"recharts-area-dots"},g),y)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,l=a[0].x,c=a[a.length-1].x,f=r*Math.abs(l-c),d=Pa(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(Pa(o.map(function(p){return p.y||0})),d)),Ee(d)?V.createElement("rect",{x:l<c?l:l-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,l=a[0].y,c=a[a.length-1].y,f=r*Math.abs(l-c),d=Pa(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(Pa(o.map(function(p){return p.x||0})),d)),Ee(d)?V.createElement("rect",{x:0,y:l<c?l:l-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,l=s.layout,c=s.type,f=s.stroke,d=s.connectNulls,p=s.isRange;s.ref;var v=N7(s,jke);return V.createElement(Ze,{clipPath:o?"url(#clipPath-".concat(a,")"):null},V.createElement(Ua,Ws({},De(v,!0),{points:r,connectNulls:d,type:c,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&V.createElement(Ua,Ws({},De(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:r})),f!=="none"&&p&&V.createElement(Ua,Ws({},De(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.baseLine,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,y=this.state,g=y.prevPoints,x=y.prevBaseLine;return V.createElement(ui,{begin:f,duration:d,isActive:c,easing:p,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var b=_.t;if(g){var w=g.length/s.length,S=s.map(function(j,F){var k=Math.floor(F*w);if(g[k]){var I=g[k],D=Bt(I.x,j.x),K=Bt(I.y,j.y);return da(da({},j),{},{x:D(b),y:K(b)})}return j}),P;if(Ee(l)&&typeof l=="number"){var E=Bt(x,l);P=E(b)}else if(Ue(l)||zu(l)){var T=Bt(x,0);P=T(b)}else P=l.map(function(j,F){var k=Math.floor(F*w);if(x[k]){var I=x[k],D=Bt(I.x,j.x),K=Bt(I.y,j.y);return da(da({},j),{},{x:D(b),y:K(b)})}return j});return o.renderAreaStatically(S,P,r,i)}return V.createElement(Ze,null,V.createElement("defs",null,V.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(b))),V.createElement(Ze,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,l,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,l=o.isAnimationActive,c=this.state,f=c.prevPoints,d=c.prevBaseLine,p=c.totalLength;return l&&a&&a.length&&(!f&&p>0||!Za(f,a)||!Za(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,l=i.className,c=i.top,f=i.left,d=i.xAxis,p=i.yAxis,v=i.width,y=i.height,g=i.isAnimationActive,x=i.id;if(o||!s||!s.length)return null;var _=this.state.isAnimationFinished,b=s.length===1,w=Oe("recharts-area",l),S=d&&d.allowDataOverflow,P=p&&p.allowDataOverflow,E=S||P,T=Ue(x)?this.id:x,j=(r=De(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},F=j.r,k=F===void 0?3:F,I=j.strokeWidth,D=I===void 0?2:I,K=b5(a)?a:{},W=K.clipDot,X=W===void 0?!0:W,Q=k*2+D;return V.createElement(Ze,{className:w},S||P?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:S?f:f-v/2,y:P?c:c-y/2,width:S?v:v*2,height:P?y:y*2})),!X&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:f-Q/2,y:c-Q/2,width:v+Q,height:y+Q}))):null,b?null:this.renderArea(E,T),(a||b)&&this.renderDots(E,X,T),(!g||_)&&Ai.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}}])}(M.PureComponent);k7=Cl;Ji(Cl,"displayName","Area");Ji(Cl,"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"});Ji(Cl,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ee(s)&&typeof s=="number")return s;var l=i==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var f=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});Ji(Cl,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=t.layout,y=c&&c.length,g=k7.getBaseValue(t,n,r,i),x=v==="horizontal",_=!1,b=d.map(function(S,P){var E;y?E=c[f+P]:(E=Ct(S,l),Array.isArray(E)?_=!0:E=[g,E]);var T=E[1]==null||y&&Ct(S,l)==null;return x?{x:cu({axis:r,ticks:o,bandSize:s,entry:S,index:P}),y:T?null:i.scale(E[1]),value:E,payload:S}:{x:T?null:r.scale(E[1]),y:cu({axis:i,ticks:a,bandSize:s,entry:S,index:P}),value:E,payload:S}}),w;return y||_?w=b.map(function(S){var P=Array.isArray(S.value)?S.value[0]:null;return x?{x:S.x,y:P!=null&&S.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:S.y}}):w=x?i.scale(g):r.scale(g),da({points:b,baseLine:w,layout:v,isRange:_},p)});Ji(Cl,"renderDotItem",function(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ve(e))n=e(t);else{var r=Oe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=N7(t,Ake);n=V.createElement(mp,Ws({},o,{key:i,className:r}))}return n});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 Fke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bke(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,I7(r.key),r)}}function Uke(e,t,n){return t&&Bke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zke(e,t,n){return t=gy(t),Vke(e,R7()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function Vke(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 Wke(e)}function Wke(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 gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function Hke(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 $7(e,t,n){return t=I7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I7(e){var t=Gke(e,"string");return Ou(t)=="symbol"?t:t+""}function Gke(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 ab=function(e){function t(){return Fke(this,t),zke(this,t,arguments)}return Hke(t,e),Uke(t,[{key:"render",value:function(){return null}}])}(V.Component);$7(ab,"displayName","ZAxis");$7(ab,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var qke=["option","isActive"];function Od(){return Od=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},Od.apply(this,arguments)}function Kke(e,t){if(e==null)return{};var n=Yke(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 Yke(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 Zke(e){var t=e.option,n=e.isActive,r=Kke(e,qke);return typeof t=="string"?V.createElement(ry,Od({option:V.createElement($0,Od({type:t},r)),isActive:n,shapeType:"symbols"},r)):V.createElement(ry,Od({option:t,isActive:n,shapeType:"symbols"},r))}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 Sd(){return Sd=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},Sd.apply(this,arguments)}function WL(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?WL(Object(n),!0).forEach(function(r){Ca(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HL(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,F7(r.key),r)}}function Qke(e,t,n){return t&&HL(e.prototype,t),n&&HL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jke(e,t,n){return t=yy(t),eNe(e,D7()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function eNe(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 tNe(e)}function tNe(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 yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function nNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RO(e,t)}function RO(e,t){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RO(e,t)}function Ca(e,t,n){return t=F7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F7(e){var t=rNe(e,"string");return Su(t)=="symbol"?t:t+""}function rNe(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 sb=function(e){function t(){var n;Xke(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Jke(this,t,[].concat(i)),Ca(n,"state",{isAnimationFinished:!1}),Ca(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Ca(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Ca(n,"id",ls("recharts-scatter-")),n}return nNe(t,e),Qke(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.activeShape,l=o.activeIndex,c=De(this.props,!1);return r.map(function(f,d){var p=l===d,v=p?s:a,y=Kr(Kr({},c),f);return V.createElement(Ze,Sd({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)},Ya(i.props,f,d),{role:"img"}),V.createElement(Zke,Sd({option:v,isActive:p,key:"symbol-".concat(d)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,c=i.animationEasing,f=i.animationId,d=this.state.prevPoints;return V.createElement(ui,{begin:s,duration:l,isActive:a,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,y=o.map(function(g,x){var _=d&&d[x];if(_){var b=Bt(_.cx,g.cx),w=Bt(_.cy,g.cy),S=Bt(_.size,g.size);return Kr(Kr({},g),{},{cx:b(v),cy:w(v),size:S(v)})}var P=Bt(0,g.size);return Kr(Kr({},g),{},{size:P(v)})});return V.createElement(Ze,null,r.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,o=r.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!Za(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,l=i.children,c=Qn(l,Yu);return c?c.map(function(f,d){var p=f.props,v=p.direction,y=p.dataKey;return V.cloneElement(f,{key:"".concat(v,"-").concat(y,"-").concat(o[d]),data:o,xAxis:a,yAxis:s,layout:v==="x"?"vertical":"horizontal",dataPointFormatter:function(x,_){return{x:x.cx,y:x.cy,value:v==="x"?+x.node.x:+x.node.y,errorVal:Ct(x,_)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,o=r.line,a=r.lineType,s=r.lineJointType,l=De(this.props,!1),c=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=ide(i),v=p.xmin,y=p.xmax,g=p.a,x=p.b,_=function(S){return g*S+x};f=[{x:v,y:_(v)},{x:y,y:_(y)}]}var b=Kr(Kr(Kr({},l),{},{fill:"none",stroke:l&&l.fill},c),{},{points:f});return V.isValidElement(o)?d=V.cloneElement(o,b):Ve(o)?d=o(b):d=V.createElement(Ua,Sd({},b,{type:s})),V.createElement(Ze,{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,l=r.xAxis,c=r.yAxis,f=r.left,d=r.top,p=r.width,v=r.height,y=r.id,g=r.isAnimationActive;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,_=Oe("recharts-scatter",s),b=l&&l.allowDataOverflow,w=c&&c.allowDataOverflow,S=b||w,P=Ue(y)?this.id:y;return V.createElement(Ze,{className:_,clipPath:S?"url(#clipPath-".concat(P,")"):null},b||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(P)},V.createElement("rect",{x:b?f:f-p/2,y:w?d:d-v/2,width:b?p:p*2,height:w?v:v*2}))):null,a&&this.renderLine(),this.renderErrorBar(),V.createElement(Ze,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!g||x)&&Ai.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}}])}(M.PureComponent);Ca(sb,"displayName","Scatter");Ca(sb,"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"});Ca(sb,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,c=i.props.tooltipType,f=Qn(i.props.children,Fa),d=Ue(t.dataKey)?i.props.dataKey:t.dataKey,p=Ue(n.dataKey)?i.props.dataKey:n.dataKey,v=r&&r.dataKey,y=r?r.range:ab.defaultProps.range,g=y&&y[0],x=t.scale.bandwidth?t.scale.bandwidth():0,_=n.scale.bandwidth?n.scale.bandwidth():0,b=o.map(function(w,S){var P=Ct(w,d),E=Ct(w,p),T=!Ue(v)&&Ct(w,v)||"-",j=[{name:Ue(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:P,payload:w,dataKey:d,type:c},{name:Ue(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:E,payload:w,dataKey:p,type:c}];T!=="-"&&j.push({name:r.name||r.dataKey,unit:r.unit||"",value:T,payload:w,dataKey:v,type:c});var F=cu({axis:t,ticks:a,bandSize:x,entry:w,index:S,dataKey:d}),k=cu({axis:n,ticks:s,bandSize:_,entry:w,index:S,dataKey:p}),I=T!=="-"?r.scale(T):g,D=Math.sqrt(Math.max(I,0)/Math.PI);return Kr(Kr({},w),{},{cx:F,cy:k,x:F-D,y:k-D,xAxis:t,yAxis:n,zAxis:r,width:2*D,height:2*D,size:I,node:{x:P,y:E,z:T},tooltipPayload:j,tooltipPosition:{x:F,y:k},payload:w},f&&f[S]&&f[S].props)});return Kr({points:b},l)});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 iNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oNe(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,z7(r.key),r)}}function aNe(e,t,n){return t&&oNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sNe(e,t,n){return t=by(t),lNe(e,B7()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function lNe(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 cNe(e)}function cNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B7=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function uNe(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 U7(e,t,n){return t=z7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z7(e){var t=fNe(e,"string");return Pu(t)=="symbol"?t:t+""}function fNe(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)}function IO(){return IO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IO.apply(this,arguments)}function dNe(e){var t=e.xAxisId,n=QE(),r=JE(),i=g7(t);return i==null?null:V.createElement(Xu,IO({},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 Ao(a,!0)}}))}var Ju=function(e){function t(){return iNe(this,t),sNe(this,t,arguments)}return uNe(t,e),aNe(t,[{key:"render",value:function(){return V.createElement(dNe,this.props)}}])}(V.Component);U7(Ju,"displayName","XAxis");U7(Ju,"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 Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function hNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pNe(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 mNe(e,t,n){return t&&pNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vNe(e,t,n){return t=_y(t),gNe(e,V7()?Reflect.construct(t,n||[],_y(e).constructor):t.apply(e,n))}function gNe(e,t){if(t&&(Eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yNe(e)}function yNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V7=function(){return!!e})()}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_y(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&&DO(e,t)}function DO(e,t){return DO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},DO(e,t)}function W7(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=_Ne(e,"string");return Eu(t)=="symbol"?t:t+""}function _Ne(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FO(){return FO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FO.apply(this,arguments)}var xNe=function(t){var n=t.yAxisId,r=QE(),i=JE(),o=y7(n);return o==null?null:V.createElement(Xu,FO({},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 Ao(s,!0)}}))},ef=function(e){function t(){return hNe(this,t),vNe(this,t,arguments)}return bNe(t,e),mNe(t,[{key:"render",value:function(){return V.createElement(xNe,this.props)}}])}(V.Component);W7(ef,"displayName","YAxis");W7(ef,"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 GL(e){return PNe(e)||SNe(e)||ONe(e)||wNe()}function wNe(){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 ONe(e,t){if(e){if(typeof e=="string")return BO(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 BO(e,t)}}function SNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PNe(e){if(Array.isArray(e))return BO(e)}function BO(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 UO=function(t,n,r,i,o){var a=Qn(t,tC),s=Qn(t,ib),l=[].concat(GL(a),GL(s)),c=Qn(t,vp),f="".concat(i,"Id"),d=i[0],p=n;if(l.length&&(p=l.reduce(function(g,x){if(x.props[f]===r&&oo(x.props,"extendDomain")&&Ee(x.props[d])){var _=x.props[d];return[Math.min(g[0],_),Math.max(g[1],_)]}return g},p)),c.length){var v="".concat(d,"1"),y="".concat(d,"2");p=c.reduce(function(g,x){if(x.props[f]===r&&oo(x.props,"extendDomain")&&Ee(x.props[v])&&Ee(x.props[y])){var _=x.props[v],b=x.props[y];return[Math.min(g[0],_,b),Math.max(g[1],_,b)]}return g},p)}return o&&o.length&&(p=o.reduce(function(g,x){return Ee(x)?[Math.min(g[0],x),Math.max(g[1],x)]:g},p)),p},G7={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,f){this.fn=l,this.context=c,this.once=f||!1}function o(l,c,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new i(f,d||l,p),y=n?n+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],v]:l._events[y].push(v):(l._events[y]=v,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],f,d;if(this._eventsCount===0)return c;for(d in f=this._events)t.call(f,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},s.prototype.listeners=function(c){var f=n?n+c:c,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,y=new Array(v);p<v;p++)y[p]=d[p].fn;return y},s.prototype.listenerCount=function(c){var f=n?n+c:c,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,f,d,p,v,y){var g=n?n+c:c;if(!this._events[g])return!1;var x=this._events[g],_=arguments.length,b,w;if(x.fn){switch(x.once&&this.removeListener(c,x.fn,void 0,!0),_){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,y),!0}for(w=1,b=new Array(_-1);w<_;w++)b[w-1]=arguments[w];x.fn.apply(x.context,b)}else{var S=x.length,P;for(w=0;w<S;w++)switch(x[w].once&&this.removeListener(c,x[w].fn,void 0,!0),_){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(!b)for(P=1,b=new Array(_-1);P<_;P++)b[P-1]=arguments[P];x[w].fn.apply(x[w].context,b)}}return!0},s.prototype.on=function(c,f,d){return o(this,c,f,d,!1)},s.prototype.once=function(c,f,d){return o(this,c,f,d,!0)},s.prototype.removeListener=function(c,f,d,p){var v=n?n+c:c;if(!this._events[v])return this;if(!f)return a(this,v),this;var y=this._events[v];if(y.fn)y.fn===f&&(!p||y.once)&&(!d||y.context===d)&&a(this,v);else{for(var g=0,x=[],_=y.length;g<_;g++)(y[g].fn!==f||p&&!y[g].once||d&&y[g].context!==d)&&x.push(y[g]);x.length?this._events[v]=x.length===1?x[0]:x:a(this,v)}return this},s.prototype.removeAllListeners=function(c){var f;return c?(f=n?n+c:c,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})(G7);var ENe=G7.exports;const CNe=at(ENe);var c_=new CNe,u_="recharts.syncMouseEvents";function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}function TNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jNe(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 ANe(e,t,n){return t&&jNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f_(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=kNe(e,"string");return Bh(t)=="symbol"?t:t+""}function kNe(e,t){if(Bh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var NNe=function(){function e(){TNe(this,e),f_(this,"activeIndex",0),f_(this,"coordinateList",[]),f_(this,"layout","horizontal")}return ANe(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,l=n.layout,c=l===void 0?null:l,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=c??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,l=this.coordinateList[this.activeIndex].coordinate,c=((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+l+c,p=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:p})}}}])}();function MNe(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 LNe(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 K7(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Ot(t,n,r,i),s=Ot(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function RNe(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,f=t.outerRadius,d=t.angle,p=Ot(s,l,c,d),v=Ot(s,l,f,d);r=p.x,i=p.y,o=v.x,a=v.y}else return K7(t);return[{x:r,y:i},{x:o,y:a}]}function Uh(e){"@babel/helpers - typeof";return Uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uh(e)}function 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 Cm(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){$Ne(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 $Ne(e,t,n){return t=INe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function INe(e){var t=DNe(e,"string");return Uh(t)=="symbol"?t:t+""}function DNe(e,t){if(Uh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FNe(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,l=e.offset,c=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 y,g=Ua;if(p==="ScatterChart")y=a,g=TCe;else if(p==="BarChart")y=LNe(d,a,l,f),g=KE;else if(d==="radial"){var x=K7(a),_=x.cx,b=x.cy,w=x.radius,S=x.startAngle,P=x.endAngle;y={cx:_,cy:b,startAngle:S,endAngle:P,innerRadius:w,outerRadius:w},g=DF}else y={points:RNe(d,a,l)},g=Ua;var E=Cm(Cm(Cm(Cm({stroke:"#ccc",pointerEvents:"none"},l),y),De(v,!1)),{},{payload:s,payloadIndex:c,className:Oe("recharts-tooltip-cursor",v.className)});return M.isValidElement(v)?M.cloneElement(v,E):M.createElement(g,E)}var BNe=["item"],UNe=["children","className","width","height","style","compact","title","desc"];function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}function Pd(){return Pd=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},Pd.apply(this,arguments)}function KL(e,t){return WNe(e)||VNe(e,t)||Z7(e,t)||zNe()}function zNe(){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 VNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function WNe(e){if(Array.isArray(e))return e}function YL(e,t){if(e==null)return{};var n=HNe(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 HNe(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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qNe(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 KNe(e,t,n){return t&&qNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YNe(e,t,n){return t=xy(t),ZNe(e,Y7()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function ZNe(e,t){if(t&&(Cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XNe(e)}function XNe(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 xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function QNe(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&&zO(e,t)}function zO(e,t){return zO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zO(e,t)}function Tu(e){return tMe(e)||eMe(e)||Z7(e)||JNe()}function JNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z7(e,t){if(e){if(typeof e=="string")return VO(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 VO(e,t)}}function eMe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tMe(e){if(Array.isArray(e))return VO(e)}function VO(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 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 me(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){We(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 We(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=nMe(e,"string");return Cu(t)=="symbol"?t:t+""}function nMe(e,t){if(Cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rMe={xAxis:["bottom","top"],yAxis:["left","right"]},iMe={width:"100%",height:"100%"},Q7={x:0,y:0};function Tm(e){return e}var oMe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},aMe=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),Ot(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var l=o.coordinate,c=i.angle;return me(me(me({},i),Ot(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return Q7},lb=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(Tu(s),Tu(c)):s},[]);return a.length>0?a:t&&t.length&&Ee(i)&&Ee(o)?t.slice(i,o+1):[]};function J7(e){return e==="number"?[0,"auto"]:void 0}var WO=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=lb(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(l,c){var f,d=(f=c.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=yg(v,a.dataKey,i)}else p=d&&d[r]||s[r];return p?[].concat(Tu(l),[NF(c,p)]):l},[])},XL=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=oMe(o,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,f=hSe(a,s,c,l);if(f>=0&&c){var d=c[f]&&c[f].value,p=WO(t,n,f,d),v=aMe(r,s,f,o);return{activeTooltipIndex:f,activeLabel:d,activePayload:p,activeCoordinate:v}}return null},sMe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.layout,d=t.children,p=t.stackOffset,v=EF(f,o);return r.reduce(function(y,g){var x,_=g.type.defaultProps!==void 0?me(me({},g.type.defaultProps),g.props):g.props,b=_.type,w=_.dataKey,S=_.allowDataOverflow,P=_.allowDuplicatedCategory,E=_.scale,T=_.ticks,j=_.includeHidden,F=_[a];if(y[F])return y;var k=lb(t.data,{graphicalItems:i.filter(function(ee){var q,ne=a in ee.props?ee.props[a]:(q=ee.type.defaultProps)===null||q===void 0?void 0:q[a];return ne===F}),dataStartIndex:l,dataEndIndex:c}),I=k.length,D,K,W;MNe(_.domain,S,b)&&(D=tO(_.domain,null,S),v&&(b==="number"||E!=="auto")&&(W=yd(k,w,"category")));var X=J7(b);if(!D||D.length===0){var Q,te=(Q=_.domain)!==null&&Q!==void 0?Q:X;if(w){if(D=yd(k,w,b),b==="category"&&v){var Z=rde(D);P&&Z?(K=D,D=oy(0,I)):P||(D=mM(te,D,g).reduce(function(ee,q){return ee.indexOf(q)>=0?ee:[].concat(Tu(ee),[q])},[]))}else if(b==="category")P?D=D.filter(function(ee){return ee!==""&&!Ue(ee)}):D=mM(te,D,g).reduce(function(ee,q){return ee.indexOf(q)>=0||q===""||Ue(q)?ee:[].concat(Tu(ee),[q])},[]);else if(b==="number"){var z=ySe(k,i.filter(function(ee){var q,ne,re=a in ee.props?ee.props[a]:(q=ee.type.defaultProps)===null||q===void 0?void 0:q[a],ae="hide"in ee.props?ee.props.hide:(ne=ee.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return re===F&&(j||!ae)}),w,o,f);z&&(D=z)}v&&(b==="number"||E!=="auto")&&(W=yd(k,w,"category"))}else v?D=oy(0,I):s&&s[F]&&s[F].hasStack&&b==="number"?D=p==="expand"?[0,1]:kF(s[F].stackGroups,l,c):D=PF(k,i.filter(function(ee){var q=a in ee.props?ee.props[a]:ee.type.defaultProps[a],ne="hide"in ee.props?ee.props.hide:ee.type.defaultProps.hide;return q===F&&(j||!ne)}),b,f,!0);if(b==="number")D=UO(d,D,F,o,T),te&&(D=tO(te,D,S));else if(b==="category"&&te){var B=te,H=D.every(function(ee){return B.indexOf(ee)>=0});H&&(D=B)}}return me(me({},y),{},We({},F,me(me({},_),{},{axisType:o,domain:D,categoricalDomain:W,duplicateDomain:K,originalDomain:(x=_.domain)!==null&&x!==void 0?x:X,isCategorical:v,layout:f})))},{})},lMe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.layout,d=t.children,p=lb(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),v=p.length,y=EF(f,o),g=-1;return r.reduce(function(x,_){var b=_.type.defaultProps!==void 0?me(me({},_.type.defaultProps),_.props):_.props,w=b[a],S=J7("number");if(!x[w]){g++;var P;return y?P=oy(0,v):s&&s[w]&&s[w].hasStack?(P=kF(s[w].stackGroups,l,c),P=UO(d,P,w,o)):(P=tO(S,PF(p,r.filter(function(E){var T,j,F=a in E.props?E.props[a]:(T=E.type.defaultProps)===null||T===void 0?void 0:T[a],k="hide"in E.props?E.props.hide:(j=E.type.defaultProps)===null||j===void 0?void 0:j.hide;return F===w&&!k}),"number",f),i.defaultProps.allowDataOverflow),P=UO(d,P,w,o)),me(me({},x),{},We({},w,me(me({axisType:o},i.defaultProps),{},{hide:!0,orientation:Ar(rMe,"".concat(o,".").concat(g%2),null),domain:P,originalDomain:S,isCategorical:y,layout:f})))}return x},{})},cMe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),p=Qn(f,o),v={};return p&&p.length?v=sMe(t,{axes:p,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):a&&a.length&&(v=lMe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),v},uMe=function(t){var n=_a(t),r=Ao(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:_E(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Gg(n,r)}},QL=function(t){var n=t.children,r=t.defaultShowTooltip,i=wr(n,mu),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}},fMe=function(t){return!t||!t.length?!1:t.some(function(n){var r=No(n&&n.type);return r&&r.indexOf("Bar")>=0})},JL=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"}},dMe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,c=r.width,f=r.height,d=r.children,p=r.margin||{},v=wr(d,mu),y=wr(d,Nc),g=Object.keys(l).reduce(function(P,E){var T=l[E],j=T.orientation;return!T.mirror&&!T.hide?me(me({},P),{},We({},j,P[j]+T.width)):P},{left:p.left||0,right:p.right||0}),x=Object.keys(a).reduce(function(P,E){var T=a[E],j=T.orientation;return!T.mirror&&!T.hide?me(me({},P),{},We({},j,Ar(P,"".concat(j))+T.height)):P},{top:p.top||0,bottom:p.bottom||0}),_=me(me({},x),g),b=_.bottom;v&&(_.bottom+=v.props.height||mu.defaultProps.height),y&&n&&(_=vSe(_,i,r,n));var w=c-_.left-_.right,S=f-_.top-_.bottom;return me(me({brushBottom:b},_),{},{width:Math.max(w,0),height:Math.max(S,0)})},hMe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},oC=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,l=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,p=function(x,_){var b=_.graphicalItems,w=_.stackGroups,S=_.offset,P=_.updateId,E=_.dataStartIndex,T=_.dataEndIndex,j=x.barSize,F=x.layout,k=x.barGap,I=x.barCategoryGap,D=x.maxBarSize,K=JL(F),W=K.numericAxisName,X=K.cateAxisName,Q=fMe(b),te=[];return b.forEach(function(Z,z){var B=lb(x.data,{graphicalItems:[Z],dataStartIndex:E,dataEndIndex:T}),H=Z.type.defaultProps!==void 0?me(me({},Z.type.defaultProps),Z.props):Z.props,ee=H.dataKey,q=H.maxBarSize,ne=H["".concat(W,"Id")],re=H["".concat(X,"Id")],ae={},ue=l.reduce(function(Te,Ce){var Ae=_["".concat(Ce.axisType,"Map")],le=H["".concat(Ce.axisType,"Id")];Ae&&Ae[le]||Ce.axisType==="zAxis"||vl();var fe=Ae[le];return me(me({},Te),{},We(We({},Ce.axisType,fe),"".concat(Ce.axisType,"Ticks"),Ao(fe)))},ae),A=ue[X],N=ue["".concat(X,"Ticks")],U=w&&w[ne]&&w[ne].hasStack&&CSe(Z,w[ne].stackGroups),J=No(Z.type).indexOf("Bar")>=0,Y=Gg(A,N),oe=[],he=Q&&pSe({barSize:j,stackGroups:w,totalSize:hMe(ue,X)});if(J){var Pe,se,pe=Ue(q)?D:q,ve=(Pe=(se=Gg(A,N,!0))!==null&&se!==void 0?se:pe)!==null&&Pe!==void 0?Pe:0;oe=mSe({barGap:k,barCategoryGap:I,bandSize:ve!==Y?ve:Y,sizeList:he[re],maxBarSize:pe}),ve!==Y&&(oe=oe.map(function(Te){return me(me({},Te),{},{position:me(me({},Te.position),{},{offset:Te.position.offset-ve/2})})}))}var xe=Z&&Z.type&&Z.type.getComposedData;xe&&te.push({props:me(me({},xe(me(me({},ue),{},{displayedData:B,props:x,dataKey:ee,item:Z,bandSize:Y,barPosition:oe,offset:S,stackedData:U,layout:F,dataStartIndex:E,dataEndIndex:T}))),{},We(We(We({key:Z.key||"item-".concat(z)},W,ue[W]),X,ue[X]),"animationId",P)),childIndex:mde(Z,x.children),item:Z})}),te},v=function(x,_){var b=x.props,w=x.dataStartIndex,S=x.dataEndIndex,P=x.updateId;if(!ck({props:b}))return null;var E=b.children,T=b.layout,j=b.stackOffset,F=b.data,k=b.reverseStackOrder,I=JL(T),D=I.numericAxisName,K=I.cateAxisName,W=Qn(E,r),X=PSe(F,W,"".concat(D,"Id"),"".concat(K,"Id"),j,k),Q=l.reduce(function(H,ee){var q="".concat(ee.axisType,"Map");return me(me({},H),{},We({},q,cMe(b,me(me({},ee),{},{graphicalItems:W,stackGroups:ee.axisType===D&&X,dataStartIndex:w,dataEndIndex:S}))))},{}),te=dMe(me(me({},Q),{},{props:b,graphicalItems:W}),_==null?void 0:_.legendBBox);Object.keys(Q).forEach(function(H){Q[H]=f(b,Q[H],te,H.replace("Map",""),n)});var Z=Q["".concat(K,"Map")],z=uMe(Z),B=p(b,me(me({},Q),{},{dataStartIndex:w,dataEndIndex:S,updateId:P,graphicalItems:W,stackGroups:X,offset:te}));return me(me({formattedGraphicalItems:B,graphicalItems:W,offset:te,stackGroups:X},z),Q)},y=function(g){function x(_){var b,w,S;return GNe(this,x),S=YNe(this,x,[_]),We(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),We(S,"accessibilityManager",new NNe),We(S,"handleLegendBBoxUpdate",function(P){if(P){var E=S.state,T=E.dataStartIndex,j=E.dataEndIndex,F=E.updateId;S.setState(me({legendBBox:P},v({props:S.props,dataStartIndex:T,dataEndIndex:j,updateId:F},me(me({},S.state),{},{legendBBox:P}))))}}),We(S,"handleReceiveSyncEvent",function(P,E,T){if(S.props.syncId===P){if(T===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(E)}}),We(S,"handleBrushChange",function(P){var E=P.startIndex,T=P.endIndex;if(E!==S.state.dataStartIndex||T!==S.state.dataEndIndex){var j=S.state.updateId;S.setState(function(){return me({dataStartIndex:E,dataEndIndex:T},v({props:S.props,dataStartIndex:E,dataEndIndex:T,updateId:j},S.state))}),S.triggerSyncEvent({dataStartIndex:E,dataEndIndex:T})}}),We(S,"handleMouseEnter",function(P){var E=S.getMouseInfo(P);if(E){var T=me(me({},E),{},{isTooltipActive:!0});S.setState(T),S.triggerSyncEvent(T);var j=S.props.onMouseEnter;Ve(j)&&j(T,P)}}),We(S,"triggeredAfterMouseMove",function(P){var E=S.getMouseInfo(P),T=E?me(me({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(T),S.triggerSyncEvent(T);var j=S.props.onMouseMove;Ve(j)&&j(T,P)}),We(S,"handleItemMouseEnter",function(P){S.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),We(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),We(S,"handleMouseMove",function(P){P.persist(),S.throttleTriggeredAfterMouseMove(P)}),We(S,"handleMouseLeave",function(P){S.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseLeave;Ve(T)&&T(E,P)}),We(S,"handleOuterEvent",function(P){var E=pde(P),T=Ar(S.props,"".concat(E));if(E&&Ve(T)){var j,F;/.*touch.*/i.test(E)?F=S.getMouseInfo(P.changedTouches[0]):F=S.getMouseInfo(P),T((j=F)!==null&&j!==void 0?j:{},P)}}),We(S,"handleClick",function(P){var E=S.getMouseInfo(P);if(E){var T=me(me({},E),{},{isTooltipActive:!0});S.setState(T),S.triggerSyncEvent(T);var j=S.props.onClick;Ve(j)&&j(T,P)}}),We(S,"handleMouseDown",function(P){var E=S.props.onMouseDown;if(Ve(E)){var T=S.getMouseInfo(P);E(T,P)}}),We(S,"handleMouseUp",function(P){var E=S.props.onMouseUp;if(Ve(E)){var T=S.getMouseInfo(P);E(T,P)}}),We(S,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),We(S,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&S.handleMouseDown(P.changedTouches[0])}),We(S,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&S.handleMouseUp(P.changedTouches[0])}),We(S,"triggerSyncEvent",function(P){S.props.syncId!==void 0&&c_.emit(u_,S.props.syncId,P,S.eventEmitterSymbol)}),We(S,"applySyncEvent",function(P){var E=S.props,T=E.layout,j=E.syncMethod,F=S.state.updateId,k=P.dataStartIndex,I=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)S.setState(me({dataStartIndex:k,dataEndIndex:I},v({props:S.props,dataStartIndex:k,dataEndIndex:I,updateId:F},S.state)));else if(P.activeTooltipIndex!==void 0){var D=P.chartX,K=P.chartY,W=P.activeTooltipIndex,X=S.state,Q=X.offset,te=X.tooltipTicks;if(!Q)return;if(typeof j=="function")W=j(te,P);else if(j==="value"){W=-1;for(var Z=0;Z<te.length;Z++)if(te[Z].value===P.activeLabel){W=Z;break}}var z=me(me({},Q),{},{x:Q.left,y:Q.top}),B=Math.min(D,z.x+z.width),H=Math.min(K,z.y+z.height),ee=te[W]&&te[W].value,q=WO(S.state,S.props.data,W),ne=te[W]?{x:T==="horizontal"?te[W].coordinate:B,y:T==="horizontal"?H:te[W].coordinate}:Q7;S.setState(me(me({},P),{},{activeLabel:ee,activeCoordinate:ne,activePayload:q,activeTooltipIndex:W}))}else S.setState(P)}),We(S,"renderCursor",function(P){var E,T=S.state,j=T.isTooltipActive,F=T.activeCoordinate,k=T.activePayload,I=T.offset,D=T.activeTooltipIndex,K=T.tooltipAxisBandSize,W=S.getTooltipEventType(),X=(E=P.props.active)!==null&&E!==void 0?E:j,Q=S.props.layout,te=P.key||"_recharts-cursor";return V.createElement(FNe,{key:te,activeCoordinate:F,activePayload:k,activeTooltipIndex:D,chartName:n,element:P,isActive:X,layout:Q,offset:I,tooltipAxisBandSize:K,tooltipEventType:W})}),We(S,"renderPolarAxis",function(P,E,T){var j=Ar(P,"type.axisType"),F=Ar(S.state,"".concat(j,"Map")),k=P.type.defaultProps,I=k!==void 0?me(me({},k),P.props):P.props,D=F&&F[I["".concat(j,"Id")]];return M.cloneElement(P,me(me({},D),{},{className:Oe(j,D.className),key:P.key||"".concat(E,"-").concat(T),ticks:Ao(D,!0)}))}),We(S,"renderPolarGrid",function(P){var E=P.props,T=E.radialLines,j=E.polarAngles,F=E.polarRadius,k=S.state,I=k.radiusAxisMap,D=k.angleAxisMap,K=_a(I),W=_a(D),X=W.cx,Q=W.cy,te=W.innerRadius,Z=W.outerRadius;return M.cloneElement(P,{polarAngles:Array.isArray(j)?j:Ao(W,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(F)?F:Ao(K,!0).map(function(z){return z.coordinate}),cx:X,cy:Q,innerRadius:te,outerRadius:Z,key:P.key||"polar-grid",radialLines:T})}),We(S,"renderLegend",function(){var P=S.state.formattedGraphicalItems,E=S.props,T=E.children,j=E.width,F=E.height,k=S.props.margin||{},I=j-(k.left||0)-(k.right||0),D=OF({children:T,formattedGraphicalItems:P,legendWidth:I,legendContent:c});if(!D)return null;var K=D.item,W=YL(D,BNe);return M.cloneElement(K,me(me({},W),{},{chartWidth:j,chartHeight:F,margin:k,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),We(S,"renderTooltip",function(){var P,E=S.props,T=E.children,j=E.accessibilityLayer,F=wr(T,Yr);if(!F)return null;var k=S.state,I=k.isTooltipActive,D=k.activeCoordinate,K=k.activePayload,W=k.activeLabel,X=k.offset,Q=(P=F.props.active)!==null&&P!==void 0?P:I;return M.cloneElement(F,{viewBox:me(me({},X),{},{x:X.left,y:X.top}),active:Q,label:W,payload:Q?K:[],coordinate:D,accessibilityLayer:j})}),We(S,"renderBrush",function(P){var E=S.props,T=E.margin,j=E.data,F=S.state,k=F.offset,I=F.dataStartIndex,D=F.dataEndIndex,K=F.updateId;return M.cloneElement(P,{key:P.key||"_recharts-brush",onChange:Om(S.handleBrushChange,P.props.onChange),data:j,x:Ee(P.props.x)?P.props.x:k.left,y:Ee(P.props.y)?P.props.y:k.top+k.height+k.brushBottom-(T.bottom||0),width:Ee(P.props.width)?P.props.width:k.width,startIndex:I,endIndex:D,updateId:"brush-".concat(K)})}),We(S,"renderReferenceElement",function(P,E,T){if(!P)return null;var j=S,F=j.clipPathId,k=S.state,I=k.xAxisMap,D=k.yAxisMap,K=k.offset,W=P.type.defaultProps||{},X=P.props,Q=X.xAxisId,te=Q===void 0?W.xAxisId:Q,Z=X.yAxisId,z=Z===void 0?W.yAxisId:Z;return M.cloneElement(P,{key:P.key||"".concat(E,"-").concat(T),xAxis:I[te],yAxis:D[z],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:F})}),We(S,"renderActivePoints",function(P){var E=P.item,T=P.activePoint,j=P.basePoint,F=P.childIndex,k=P.isRange,I=[],D=E.props.key,K=E.item.type.defaultProps!==void 0?me(me({},E.item.type.defaultProps),E.item.props):E.item.props,W=K.activeDot,X=K.dataKey,Q=me(me({index:F,dataKey:X,cx:T.x,cy:T.y,r:4,fill:qE(E.item),strokeWidth:2,stroke:"#fff",payload:T.payload,value:T.value},De(W,!1)),bg(W));return I.push(x.renderActiveDot(W,Q,"".concat(D,"-activePoint-").concat(F))),j?I.push(x.renderActiveDot(W,me(me({},Q),{},{cx:j.x,cy:j.y}),"".concat(D,"-basePoint-").concat(F))):k&&I.push(null),I}),We(S,"renderGraphicChild",function(P,E,T){var j=S.filterFormatItem(P,E,T);if(!j)return null;var F=S.getTooltipEventType(),k=S.state,I=k.isTooltipActive,D=k.tooltipAxis,K=k.activeTooltipIndex,W=k.activeLabel,X=S.props.children,Q=wr(X,Yr),te=j.props,Z=te.points,z=te.isRange,B=te.baseLine,H=j.item.type.defaultProps!==void 0?me(me({},j.item.type.defaultProps),j.item.props):j.item.props,ee=H.activeDot,q=H.hide,ne=H.activeBar,re=H.activeShape,ae=!!(!q&&I&&Q&&(ee||ne||re)),ue={};F!=="axis"&&Q&&Q.props.trigger==="click"?ue={onClick:Om(S.handleItemMouseEnter,P.props.onClick)}:F!=="axis"&&(ue={onMouseLeave:Om(S.handleItemMouseLeave,P.props.onMouseLeave),onMouseEnter:Om(S.handleItemMouseEnter,P.props.onMouseEnter)});var A=M.cloneElement(P,me(me({},j.props),ue));function N(Ce){return typeof D.dataKey=="function"?D.dataKey(Ce.payload):null}if(ae)if(K>=0){var U,J;if(D.dataKey&&!D.allowDuplicatedCategory){var Y=typeof D.dataKey=="function"?N:"payload.".concat(D.dataKey.toString());U=yg(Z,Y,W),J=z&&B&&yg(B,Y,W)}else U=Z==null?void 0:Z[K],J=z&&B&&B[K];if(re||ne){var oe=P.props.activeIndex!==void 0?P.props.activeIndex:K;return[M.cloneElement(P,me(me(me({},j.props),ue),{},{activeIndex:oe})),null,null]}if(!Ue(U))return[A].concat(Tu(S.renderActivePoints({item:j,activePoint:U,basePoint:J,childIndex:K,isRange:z})))}else{var he,Pe=(he=S.getItemByXY(S.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:A},se=Pe.graphicalItem,pe=se.item,ve=pe===void 0?P:pe,xe=se.childIndex,Te=me(me(me({},j.props),ue),{},{activeIndex:xe});return[M.cloneElement(ve,Te),null,null]}return z?[A,null,null]:[A,null]}),We(S,"renderCustomized",function(P,E,T){return M.cloneElement(P,me(me({key:"recharts-customized-".concat(T)},S.props),S.state))}),We(S,"renderMap",{CartesianGrid:{handler:Tm,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Tm},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Tm},YAxis:{handler:Tm},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((b=_.id)!==null&&b!==void 0?b:ls("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=w8(S.triggeredAfterMouseMove,(w=_.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return QNe(x,g),KNe(x,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,S=b.data,P=b.height,E=b.layout,T=wr(w,Yr);if(T){var j=T.props.defaultIndex;if(!(typeof j!="number"||j<0||j>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[j]&&this.state.tooltipTicks[j].value,k=WO(this.state,S,j,F),I=this.state.tooltipTicks[j].coordinate,D=(this.state.offset.top+P)/2,K=E==="horizontal",W=K?{x:I,y:D}:{y:I,x:D},X=this.state.formattedGraphicalItems.find(function(te){var Z=te.item;return Z.type.name==="Scatter"});X&&(W=me(me({},W),X.props.points[j].tooltipPosition),k=X.props.points[j].tooltipPayload);var Q={activeTooltipIndex:j,isTooltipActive:!0,activeLabel:F,activePayload:k,activeCoordinate:W};this.setState(Q),this.renderCursor(T),this.accessibilityManager.setIndex(j)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var S,P;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(b){v2([wr(b.children,Yr)],[wr(this.props.children,Yr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=wr(this.props.children,Yr);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return s.indexOf(w)>=0?w:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),P=U_e(S),E={chartX:Math.round(b.pageX-P.left),chartY:Math.round(b.pageY-P.top)},T=S.width/w.offsetWidth||1,j=this.inRange(E.chartX,E.chartY,T);if(!j)return null;var F=this.state,k=F.xAxisMap,I=F.yAxisMap,D=this.getTooltipEventType();if(D!=="axis"&&k&&I){var K=_a(k).scale,W=_a(I).scale,X=K&&K.invert?K.invert(E.chartX):null,Q=W&&W.invert?W.invert(E.chartY):null;return me(me({},E),{},{xValue:X,yValue:Q})}var te=XL(this.state,this.props.data,this.props.layout,j);return te?me(me({},E),te):null}},{key:"inRange",value:function(b,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,E=b/S,T=w/S;if(P==="horizontal"||P==="vertical"){var j=this.state.offset,F=E>=j.left&&E<=j.left+j.width&&T>=j.top&&T<=j.top+j.height;return F?{x:E,y:T}:null}var k=this.state,I=k.angleAxisMap,D=k.radiusAxisMap;if(I&&D){var K=_a(I);return yM({x:E,y:T},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),S=wr(b,Yr),P={};S&&w==="axis"&&(S.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 E=bg(this.props,this.handleOuterEvent);return me(me({},E),P)}},{key:"addListener",value:function(){c_.on(u_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){c_.removeListener(u_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,S){for(var P=this.state.formattedGraphicalItems,E=0,T=P.length;E<T;E++){var j=P[E];if(j.item===b||j.props.key===b.key||w===No(j.item.type)&&S===j.childIndex)return j}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,w=this.state.offset,S=w.left,P=w.top,E=w.height,T=w.width;return V.createElement("defs",null,V.createElement("clipPath",{id:b},V.createElement("rect",{x:S,y:P,height:E,width:T})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(w,S){var P=KL(S,2),E=P[0],T=P[1];return me(me({},w),{},We({},E,T.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(w,S){var P=KL(S,2),E=P[0],T=P[1];return me(me({},w),{},We({},E,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(b){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(b){var w=this.state,S=w.formattedGraphicalItems,P=w.activeItem;if(S&&S.length)for(var E=0,T=S.length;E<T;E++){var j=S[E],F=j.props,k=j.item,I=k.type.defaultProps!==void 0?me(me({},k.type.defaultProps),k.props):k.props,D=No(k.type);if(D==="Bar"){var K=(F.data||[]).find(function(te){return lCe(b,te)});if(K)return{graphicalItem:j,payload:K}}else if(D==="RadialBar"){var W=(F.data||[]).find(function(te){return yM(b,te)});if(W)return{graphicalItem:j,payload:W}}else if(eb(j,P)||tb(j,P)||Rh(j,P)){var X=ZTe({graphicalItem:j,activeTooltipItem:P,itemData:I.data}),Q=I.activeIndex===void 0?X:I.activeIndex;return{graphicalItem:me(me({},j),{},{childIndex:Q}),payload:Rh(j,P)?I.data[X]:j.props.data[X]}}}return null}},{key:"render",value:function(){var b=this;if(!ck(this))return null;var w=this.props,S=w.children,P=w.className,E=w.width,T=w.height,j=w.style,F=w.compact,k=w.title,I=w.desc,D=YL(w,UNe),K=De(D,!1);if(F)return V.createElement(EL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(y2,Pd({},K,{width:E,height:T,title:k,desc:I}),this.renderClipPath(),fk(S,this.renderMap)));if(this.props.accessibilityLayer){var W,X;K.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,K.role=(X=this.props.role)!==null&&X!==void 0?X:"application",K.onKeyDown=function(te){b.accessibilityManager.keyboardEvent(te)},K.onFocus=function(){b.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return V.createElement(EL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",Pd({className:Oe("recharts-wrapper",P),style:me({position:"relative",cursor:"default",width:E,height:T},j)},Q,{ref:function(Z){b.container=Z}}),V.createElement(y2,Pd({},K,{width:E,height:T,title:k,desc:I,style:iMe}),this.renderClipPath(),fk(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(M.Component);return We(y,"displayName",n),We(y,"defaultProps",me({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),We(y,"getDerivedStateFromProps",function(g,x){var _=g.dataKey,b=g.data,w=g.children,S=g.width,P=g.height,E=g.layout,T=g.stackOffset,j=g.margin,F=x.dataStartIndex,k=x.dataEndIndex;if(x.updateId===void 0){var I=QL(g);return me(me(me({},I),{},{updateId:0},v(me(me({props:g},I),{},{updateId:0}),x)),{},{prevDataKey:_,prevData:b,prevWidth:S,prevHeight:P,prevLayout:E,prevStackOffset:T,prevMargin:j,prevChildren:w})}if(_!==x.prevDataKey||b!==x.prevData||S!==x.prevWidth||P!==x.prevHeight||E!==x.prevLayout||T!==x.prevStackOffset||!kc(j,x.prevMargin)){var D=QL(g),K={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},W=me(me({},XL(x,b,E)),{},{updateId:x.updateId+1}),X=me(me(me({},D),K),W);return me(me(me({},X),v(me({props:g},X),x)),{},{prevDataKey:_,prevData:b,prevWidth:S,prevHeight:P,prevLayout:E,prevStackOffset:T,prevMargin:j,prevChildren:w})}if(!v2(w,x.prevChildren)){var Q,te,Z,z,B=wr(w,mu),H=B&&(Q=(te=B.props)===null||te===void 0?void 0:te.startIndex)!==null&&Q!==void 0?Q:F,ee=B&&(Z=(z=B.props)===null||z===void 0?void 0:z.endIndex)!==null&&Z!==void 0?Z:k,q=H!==F||ee!==k,ne=!Ue(b),re=ne&&!q?x.updateId:x.updateId+1;return me(me({updateId:re},v(me(me({props:g},x),{},{updateId:re,dataStartIndex:H,dataEndIndex:ee}),x)),{},{prevChildren:w,dataStartIndex:H,dataEndIndex:ee})}return null}),We(y,"renderActiveDot",function(g,x,_){var b;return M.isValidElement(g)?b=M.cloneElement(g,x):Ve(g)?b=g(x):b=V.createElement(mp,x),V.createElement(Ze,{className:"recharts-active-dot",key:_},b)}),function(x){return V.createElement(y,x)}},pMe=oC({chartName:"LineChart",GraphicalChild:Qu,axisComponents:[{axisType:"xAxis",AxisComp:Ju},{axisType:"yAxis",AxisComp:ef}],formatAxisMap:c7}),mMe=oC({chartName:"PieChart",GraphicalChild:fo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:J0},{axisType:"radiusAxis",AxisComp:X0}],formatAxisMap:ISe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),vMe=oC({chartName:"ComposedChart",GraphicalChild:[Qu,Cl,Lo,sb],axisComponents:[{axisType:"xAxis",AxisComp:Ju},{axisType:"yAxis",AxisComp:ef},{axisType:"zAxis",AxisComp:ab}],formatAxisMap:c7});function eB(e,t){const n=M.useRef(t);M.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 gMe=1;function yMe(e){return Object.freeze({__version:gMe,map:e})}function bMe(e,t){return Object.freeze({...e,...t})}const tB=M.createContext(null),nB=tB.Provider;function rB(){const e=M.useContext(tB);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function _Me(e){function t(n,r){const{instance:i,context:o}=e(n).current;return M.useImperativeHandle(r,()=>i),n.children==null?null:V.createElement(nB,{value:o},n.children)}return M.forwardRef(t)}function xMe(e){function t(n,r){const[i,o]=M.useState(!1),{instance:a}=e(n,o).current;M.useImperativeHandle(r,()=>a),M.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?qy.createPortal(n.children,s):null}return M.forwardRef(t)}function wMe(e){function t(n,r){const{instance:i}=e(n).current;return M.useImperativeHandle(r,()=>i),null}return M.forwardRef(t)}function iB(e,t){const n=M.useRef();M.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 aC(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function OMe(e,t){return function(r,i){const o=rB(),a=e(aC(r,o),o);return eB(o.map,r.attribution),iB(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var HO={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)})(nc,function(n){var r="1.9.4";function i(u){var h,O,C,R;for(O=1,C=arguments.length;O<C;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 C=O.call(arguments,2);return function(){return u.apply(h,C.length?C.concat(O.call(arguments)):arguments)}}var s=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++s),u._leaflet_id}function c(u,h,O){var C,R,G,ie;return ie=function(){C=!1,R&&(G.apply(O,R),R=!1)},G=function(){C?R=arguments:(u.apply(O,arguments),setTimeout(ie,h),C=!0)},G}function f(u,h,O){var C=h[1],R=h[0],G=C-R;return u===C&&O?u:((u-R)%G+G)%G+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 y(u){return v(u).split(/\s+/)}function g(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 C=[];for(var R in u)C.push(encodeURIComponent(O?R.toUpperCase():R)+"="+encodeURIComponent(u[R]));return(!h||h.indexOf("?")===-1?"?":"&")+C.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function b(u,h){return u.replace(_,function(O,C){var R=h[C];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 P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function E(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 F=window.requestAnimationFrame||E("RequestAnimationFrame")||j,k=window.cancelAnimationFrame||E("CancelAnimationFrame")||E("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function I(u,h,O){if(O&&F===j)u.call(h);else return F.call(window,a(u,h))}function D(u){u&&k.call(window,u)}var K={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:c,wrapNum:f,falseFn:d,formatNum:p,trim:v,splitWords:y,setOptions:g,getParamString:x,template:b,isArray:w,indexOf:S,emptyImageUrl:P,requestFn:F,cancelFn:k,requestAnimFrame:I,cancelAnimFrame:D};function W(){}W.extend=function(u){var h=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},O=h.__super__=this.prototype,C=o(O);C.constructor=h,h.prototype=C;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&&(X(u.includes),i.apply(null,[C].concat(u.includes))),i(C,u),delete C.statics,delete C.includes,C.options&&(C.options=O.options?o(O.options):{},i(C.options,u.options)),C._initHooks=[],C.callInitHooks=function(){if(!this._initHooksCalled){O.callInitHooks&&O.callInitHooks.call(this),this._initHooksCalled=!0;for(var G=0,ie=C._initHooks.length;G<ie;G++)C._initHooks[G].call(this)}},h},W.include=function(u){var h=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=h,this.mergeOptions(u.options)),this},W.mergeOptions=function(u){return i(this.prototype.options,u),this},W.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 X(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 C in u)this._on(C,u[C],h);else{u=y(u);for(var R=0,G=u.length;R<G;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 C in u)this._off(C,u[C],h);else{u=y(u);for(var R=arguments.length===1,G=0,ie=u.length;G<ie;G++)R?this._off(u[G]):this._off(u[G],h,O)}return this},_on:function(u,h,O,C){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};C&&(R.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(R)}},_off:function(u,h,O){var C,R,G;if(this._events&&(C=this._events[u],!!C)){if(arguments.length===1){if(this._firingCount)for(R=0,G=C.length;R<G;R++)C[R].fn=d;delete this._events[u];return}if(typeof h!="function"){console.warn("wrong listener type: "+typeof h);return}var ie=this._listens(u,h,O);if(ie!==!1){var ce=C[ie];this._firingCount&&(ce.fn=d,this._events[u]=C=C.slice()),C.splice(ie,1)}}},fire:function(u,h,O){if(!this.listens(u,O))return this;var C=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 G=0,ie=R.length;G<ie;G++){var ce=R[G],de=ce.fn;ce.once&&this.off(u,de,ce.ctx),de.call(ce.ctx||this,C)}this._firingCount--}}return O&&this._propagateEvent(C),this},listens:function(u,h,O,C){typeof u!="string"&&console.warn('"string" type argument expected');var R=h;typeof h!="function"&&(C=!!h,R=void 0,O=void 0);var G=this._events&&this._events[u];if(G&&G.length&&this._listens(u,R,O)!==!1)return!0;if(C){for(var ie in this._eventParents)if(this._eventParents[ie].listens(u,h,O,C))return!0}return!1},_listens:function(u,h,O){if(!this._events)return!1;var C=this._events[u]||[];if(!h)return!!C.length;O===this&&(O=void 0);for(var R=0,G=C.length;R<G;R++)if(C[R].fn===h&&C[R].ctx===O)return R;return!1},once:function(u,h,O){if(typeof u=="object")for(var C in u)this._on(C,u[C],h,!0);else{u=y(u);for(var R=0,G=u.length;R<G;R++)this._on(u[R],h,O,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[l(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[l(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=W.extend(Q);function Z(u,h,O){this.x=O?Math.round(u):u,this.y=O?Math.round(h):h}var z=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};Z.prototype={clone:function(){return new Z(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 Z(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new Z(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=z(this.x),this.y=z(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 Z?u:w(u)?new Z(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new Z(u.x,u.y):new Z(u,h,O)}function H(u,h){if(u)for(var O=h?[u,h]:u,C=0,R=O.length;C<R;C++)this.extend(O[C])}H.prototype={extend:function(u){var h,O;if(!u)return this;if(u instanceof Z||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 Z?u=B(u):u=ee(u),u instanceof H?(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,C=u.min,R=u.max,G=R.x>=h.x&&C.x<=O.x,ie=R.y>=h.y&&C.y<=O.y;return G&&ie},overlaps:function(u){u=ee(u);var h=this.min,O=this.max,C=u.min,R=u.max,G=R.x>h.x&&C.x<O.x,ie=R.y>h.y&&C.y<O.y;return G&&ie},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var h=this.min,O=this.max,C=Math.abs(h.x-O.x)*u,R=Math.abs(h.y-O.y)*u;return ee(B(h.x-C,h.y-R),B(O.x+C,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 H?u:new H(u,h)}function q(u,h){if(u)for(var O=h?[u,h]:u,C=0,R=O.length;C<R;C++)this.extend(O[C])}q.prototype={extend:function(u){var h=this._southWest,O=this._northEast,C,R;if(u instanceof re)C=u,R=u;else if(u instanceof q){if(C=u._southWest,R=u._northEast,!C||!R)return this}else return u?this.extend(ae(u)||ne(u)):this;return!h&&!O?(this._southWest=new re(C.lat,C.lng),this._northEast=new re(R.lat,R.lng)):(h.lat=Math.min(C.lat,h.lat),h.lng=Math.min(C.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,C=Math.abs(h.lat-O.lat)*u,R=Math.abs(h.lng-O.lng)*u;return new q(new re(h.lat-C,h.lng-R),new re(O.lat+C,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,C,R;return u instanceof q?(C=u.getSouthWest(),R=u.getNorthEast()):C=R=u,C.lat>=h.lat&&R.lat<=O.lat&&C.lng>=h.lng&&R.lng<=O.lng},intersects:function(u){u=ne(u);var h=this._southWest,O=this._northEast,C=u.getSouthWest(),R=u.getNorthEast(),G=R.lat>=h.lat&&C.lat<=O.lat,ie=R.lng>=h.lng&&C.lng<=O.lng;return G&&ie},overlaps:function(u){u=ne(u);var h=this._southWest,O=this._northEast,C=u.getSouthWest(),R=u.getNorthEast(),G=R.lat>h.lat&&C.lat<O.lat,ie=R.lng>h.lng&&C.lng<O.lng;return G&&ie},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 q?u:new q(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 ue={latLngToPoint:function(u,h){var O=this.projection.project(u),C=this.scale(h);return this.transformation._transform(O,C)},pointToLatLng:function(u,h){var O=this.scale(h),C=this.transformation.untransform(u,O);return this.projection.unproject(C)},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),C=this.transformation.transform(h.min,O),R=this.transformation.transform(h.max,O);return new H(C,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,C=u.alt;return new re(O,h,C)},wrapLatLngBounds:function(u){var h=u.getCenter(),O=this.wrapLatLng(h),C=h.lat-O.lat,R=h.lng-O.lng;if(C===0&&R===0)return u;var G=u.getSouthWest(),ie=u.getNorthEast(),ce=new re(G.lat-C,G.lng-R),de=new re(ie.lat-C,ie.lng-R);return new q(ce,de)}},A=i({},ue,{wrapLng:[-180,180],R:6371e3,distance:function(u,h){var O=Math.PI/180,C=u.lat*O,R=h.lat*O,G=Math.sin((h.lat-u.lat)*O/2),ie=Math.sin((h.lng-u.lng)*O/2),ce=G*G+Math.cos(C)*Math.cos(R)*ie*ie,de=2*Math.atan2(Math.sqrt(ce),Math.sqrt(1-ce));return this.R*de}}),N=6378137,U={R:N,MAX_LATITUDE:85.0511287798,project:function(u){var h=Math.PI/180,O=this.MAX_LATITUDE,C=Math.max(Math.min(O,u.lat),-O),R=Math.sin(C*h);return new Z(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=N*Math.PI;return new H([-u,-u],[u,u])}()};function J(u,h,O,C){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=C}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 Z((u.x/h-this._b)/this._a,(u.y/h-this._d)/this._c)}};function Y(u,h,O,C){return new J(u,h,O,C)}var oe=i({},A,{code:"EPSG:3857",projection:U,transformation:function(){var u=.5/(Math.PI*U.R);return Y(u,.5,-u,.5)}()}),he=i({},oe,{code:"EPSG:900913"});function Pe(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function se(u,h){var O="",C,R,G,ie,ce,de;for(C=0,G=u.length;C<G;C++){for(ce=u[C],R=0,ie=ce.length;R<ie;R++)de=ce[R],O+=(R?"L":"M")+de.x+" "+de.y;O+=h?Fe.svg?"z":"x":""}return O||"M0 0"}var pe=document.documentElement.style,ve="ActiveXObject"in window,xe=ve&&!document.addEventListener,Te="msLaunchUri"in navigator&&!("documentMode"in document),Ce=Pn("webkit"),Ae=Pn("android"),le=Pn("android 2")||Pn("android 3"),fe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=Ae&&Pn("Google")&&fe<537&&!("AudioNode"in window),ge=!!window.opera,we=!Te&&Pn("chrome"),ke=Pn("gecko")&&!Ce&&!ge&&!ve,Me=!we&&Pn("safari"),Qe=Pn("phantom"),et="OTransition"in pe,Ke=navigator.platform.indexOf("Win")===0,Wt=ve&&"transition"in pe,It="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!le,hn="MozPerspective"in pe,Bn=!window.L_DISABLE_3D&&(Wt||It||hn)&&!et&&!Qe,Bi=typeof orientation<"u"||Pn("mobile"),wn=Bi&&Ce,of=Bi&&It,Ui=!window.PointerEvent&&window.MSPointerEvent,Pp=!!(window.PointerEvent||Ui),Ep="ontouchstart"in window||!!window.TouchEvent,Cp=!window.L_NO_TOUCH&&(Ep||Pp),af=Bi&&ge,hs=Bi&&ke,Jt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Kt=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}(),Un=function(){return!!document.createElement("canvas").getContext}(),On=!!(document.createElementNS&&Pe("svg").createSVGRect),Sn=!!On&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),an=!On&&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}}(),hi=navigator.platform.indexOf("Mac")===0,pi=navigator.platform.indexOf("Linux")===0;function Pn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Fe={ie:ve,ielt9:xe,edge:Te,webkit:Ce,android:Ae,android23:le,androidStock:ye,opera:ge,chrome:we,gecko:ke,safari:Me,phantom:Qe,opera12:et,win:Ke,ie3d:Wt,webkit3d:It,gecko3d:hn,any3d:Bn,mobile:Bi,mobileWebkit:wn,mobileWebkit3d:of,msPointer:Ui,pointer:Pp,touch:Cp,touchNative:Ep,mobileOpera:af,mobileGecko:hs,retina:Jt,passiveEvents:Kt,canvas:Un,svg:On,vml:an,inlineSvg:Sn,mac:hi,linux:pi},RC=Fe.msPointer?"MSPointerDown":"pointerdown",$C=Fe.msPointer?"MSPointerMove":"pointermove",IC=Fe.msPointer?"MSPointerUp":"pointerup",DC=Fe.msPointer?"MSPointerCancel":"pointercancel",bb={touchstart:RC,touchmove:$C,touchend:IC,touchcancel:DC},FC={touchstart:R9,touchmove:Tp,touchend:Tp,touchcancel:Tp},Al={},BC=!1;function A9(u,h,O){return h==="touchstart"&&L9(),FC[h]?(O=FC[h].bind(this,O),u.addEventListener(bb[h],O,!1),O):(console.warn("wrong event specified:",h),d)}function k9(u,h,O){if(!bb[h]){console.warn("wrong event specified:",h);return}u.removeEventListener(bb[h],O,!1)}function N9(u){Al[u.pointerId]=u}function M9(u){Al[u.pointerId]&&(Al[u.pointerId]=u)}function UC(u){delete Al[u.pointerId]}function L9(){BC||(document.addEventListener(RC,N9,!0),document.addEventListener($C,M9,!0),document.addEventListener(IC,UC,!0),document.addEventListener(DC,UC,!0),BC=!0)}function Tp(u,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var O in Al)h.touches.push(Al[O]);h.changedTouches=[h],u(h)}}function R9(u,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&En(h),Tp(u,h)}function $9(u){var h={},O,C;for(C in u)O=u[C],h[C]=O&&O.bind?O.bind(u):O;return u=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var I9=200;function D9(u,h){u.addEventListener("dblclick",h);var O=0,C;function R(G){if(G.detail!==1){C=G.detail;return}if(!(G.pointerType==="mouse"||G.sourceCapabilities&&!G.sourceCapabilities.firesTouchEvents)){var ie=GC(G);if(!(ie.some(function(de){return de instanceof HTMLLabelElement&&de.attributes.for})&&!ie.some(function(de){return de instanceof HTMLInputElement||de instanceof HTMLSelectElement}))){var ce=Date.now();ce-O<=I9?(C++,C===2&&h($9(G))):C=1,O=ce}}}return u.addEventListener("click",R),{dblclick:h,simDblclick:R}}function F9(u,h){u.removeEventListener("dblclick",h.dblclick),u.removeEventListener("click",h.simDblclick)}var _b=kp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),sf=kp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),zC=sf==="webkitTransition"||sf==="OTransition"?sf+"End":"transitionend";function VC(u){return typeof u=="string"?document.getElementById(u):u}function lf(u,h){var O=u.style[h]||u.currentStyle&&u.currentStyle[h];if((!O||O==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(u,null);O=C?C[h]:null}return O==="auto"?null:O}function ct(u,h,O){var C=document.createElement(u);return C.className=h||"",O&&O.appendChild(C),C}function Dt(u){var h=u.parentNode;h&&h.removeChild(u)}function jp(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function kl(u){var h=u.parentNode;h&&h.lastChild!==u&&h.appendChild(u)}function Nl(u){var h=u.parentNode;h&&h.firstChild!==u&&h.insertBefore(u,h.firstChild)}function xb(u,h){if(u.classList!==void 0)return u.classList.contains(h);var O=Ap(u);return O.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(O)}function Xe(u,h){if(u.classList!==void 0)for(var O=y(h),C=0,R=O.length;C<R;C++)u.classList.add(O[C]);else if(!xb(u,h)){var G=Ap(u);wb(u,(G?G+" ":"")+h)}}function Yt(u,h){u.classList!==void 0?u.classList.remove(h):wb(u,v((" "+Ap(u)+" ").replace(" "+h+" "," ")))}function wb(u,h){u.className.baseVal===void 0?u.className=h:u.className.baseVal=h}function Ap(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function Ur(u,h){"opacity"in u.style?u.style.opacity=h:"filter"in u.style&&B9(u,h)}function B9(u,h){var O=!1,C="DXImageTransform.Microsoft.Alpha";try{O=u.filters.item(C)}catch{if(h===1)return}h=Math.round(h*100),O?(O.Enabled=h!==100,O.Opacity=h):u.style.filter+=" progid:"+C+"(opacity="+h+")"}function kp(u){for(var h=document.documentElement.style,O=0;O<u.length;O++)if(u[O]in h)return u[O];return!1}function ps(u,h,O){var C=h||new Z(0,0);u.style[_b]=(Fe.ie3d?"translate("+C.x+"px,"+C.y+"px)":"translate3d("+C.x+"px,"+C.y+"px,0)")+(O?" scale("+O+")":"")}function en(u,h){u._leaflet_pos=h,Fe.any3d?ps(u,h):(u.style.left=h.x+"px",u.style.top=h.y+"px")}function ms(u){return u._leaflet_pos||new Z(0,0)}var cf,uf,Ob;if("onselectstart"in document)cf=function(){Ye(window,"selectstart",En)},uf=function(){bt(window,"selectstart",En)};else{var ff=kp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);cf=function(){if(ff){var u=document.documentElement.style;Ob=u[ff],u[ff]="none"}},uf=function(){ff&&(document.documentElement.style[ff]=Ob,Ob=void 0)}}function Sb(){Ye(window,"dragstart",En)}function Pb(){bt(window,"dragstart",En)}var Np,Eb;function Cb(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Mp(),Np=u,Eb=u.style.outlineStyle,u.style.outlineStyle="none",Ye(window,"keydown",Mp))}function Mp(){Np&&(Np.style.outlineStyle=Eb,Np=void 0,Eb=void 0,bt(window,"keydown",Mp))}function WC(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Tb(u){var h=u.getBoundingClientRect();return{x:h.width/u.offsetWidth||1,y:h.height/u.offsetHeight||1,boundingClientRect:h}}var U9={__proto__:null,TRANSFORM:_b,TRANSITION:sf,TRANSITION_END:zC,get:VC,getStyle:lf,create:ct,remove:Dt,empty:jp,toFront:kl,toBack:Nl,hasClass:xb,addClass:Xe,removeClass:Yt,setClass:wb,getClass:Ap,setOpacity:Ur,testProp:kp,setTransform:ps,setPosition:en,getPosition:ms,get disableTextSelection(){return cf},get enableTextSelection(){return uf},disableImageDrag:Sb,enableImageDrag:Pb,preventOutline:Cb,restoreOutline:Mp,getSizedParentNode:WC,getScale:Tb};function Ye(u,h,O,C){if(h&&typeof h=="object")for(var R in h)Ab(u,R,h[R],O);else{h=y(h);for(var G=0,ie=h.length;G<ie;G++)Ab(u,h[G],O,C)}return this}var zi="_leaflet_events";function bt(u,h,O,C){if(arguments.length===1)HC(u),delete u[zi];else if(h&&typeof h=="object")for(var R in h)kb(u,R,h[R],O);else if(h=y(h),arguments.length===2)HC(u,function(ce){return S(h,ce)!==-1});else for(var G=0,ie=h.length;G<ie;G++)kb(u,h[G],O,C);return this}function HC(u,h){for(var O in u[zi]){var C=O.split(/\d/)[0];(!h||h(C))&&kb(u,C,null,null,O)}}var jb={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ab(u,h,O,C){var R=h+l(O)+(C?"_"+l(C):"");if(u[zi]&&u[zi][R])return this;var G=function(ce){return O.call(C||u,ce||window.event)},ie=G;!Fe.touchNative&&Fe.pointer&&h.indexOf("touch")===0?G=A9(u,h,G):Fe.touch&&h==="dblclick"?G=D9(u,G):"addEventListener"in u?h==="touchstart"||h==="touchmove"||h==="wheel"||h==="mousewheel"?u.addEventListener(jb[h]||h,G,Fe.passiveEvents?{passive:!1}:!1):h==="mouseenter"||h==="mouseleave"?(G=function(ce){ce=ce||window.event,Mb(u,ce)&&ie(ce)},u.addEventListener(jb[h],G,!1)):u.addEventListener(h,ie,!1):u.attachEvent("on"+h,G),u[zi]=u[zi]||{},u[zi][R]=G}function kb(u,h,O,C,R){R=R||h+l(O)+(C?"_"+l(C):"");var G=u[zi]&&u[zi][R];if(!G)return this;!Fe.touchNative&&Fe.pointer&&h.indexOf("touch")===0?k9(u,h,G):Fe.touch&&h==="dblclick"?F9(u,G):"removeEventListener"in u?u.removeEventListener(jb[h]||h,G,!1):u.detachEvent("on"+h,G),u[zi][R]=null}function vs(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function Nb(u){return Ab(u,"wheel",vs),this}function df(u){return Ye(u,"mousedown touchstart dblclick contextmenu",vs),u._leaflet_disable_click=!0,this}function En(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function gs(u){return En(u),vs(u),this}function GC(u){if(u.composedPath)return u.composedPath();for(var h=[],O=u.target;O;)h.push(O),O=O.parentNode;return h}function qC(u,h){if(!h)return new Z(u.clientX,u.clientY);var O=Tb(h),C=O.boundingClientRect;return new Z((u.clientX-C.left)/O.x-h.clientLeft,(u.clientY-C.top)/O.y-h.clientTop)}var z9=Fe.linux&&Fe.chrome?window.devicePixelRatio:Fe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function KC(u){return Fe.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/z9: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 Mb(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 V9={__proto__:null,on:Ye,off:bt,stopPropagation:vs,disableScrollPropagation:Nb,disableClickPropagation:df,preventDefault:En,stop:gs,getPropagationPath:GC,getMousePosition:qC,getWheelDelta:KC,isExternalTarget:Mb,addListener:Ye,removeListener:bt},YC=te.extend({run:function(u,h,O,C){this.stop(),this._el=u,this._inProgress=!0,this._duration=O||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=ms(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(){D(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),st=te.extend({options:{crs:oe,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=g(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=sf&&Fe.any3d&&!Fe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ye(this._proxy,zC,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 C=this._zoom!==h?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,h,O.zoom):this._tryAnimatedPan(u,O.pan);if(C)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||(Fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,h)},zoomOut:function(u,h){return u=u||(Fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,h)},setZoomAround:function(u,h,O){var C=this.getZoomScale(h),R=this.getSize().divideBy(2),G=u instanceof Z?u:this.latLngToContainerPoint(u),ie=G.subtract(R).multiplyBy(1-1/C),ce=this.containerPointToLatLng(R.add(ie));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]),C=B(h.paddingBottomRight||h.padding||[0,0]),R=this.getBoundsZoom(u,!1,O.add(C));if(R=typeof h.maxZoom=="number"?Math.min(h.maxZoom,R):R,R===1/0)return{center:u.getCenter(),zoom:R};var G=C.subtract(O).divideBy(2),ie=this.project(u.getSouthWest(),R),ce=this.project(u.getNorthEast(),R),de=this.unproject(ie.add(ce).divideBy(2).add(G),R);return{center:de,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 YC,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),h.noMoveStart||this.fire("movestart"),h.animate!==!1){Xe(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||!Fe.any3d)return this.setView(u,h,O);this._stop();var C=this.project(this.getCenter()),R=this.project(u),G=this.getSize(),ie=this._zoom;u=ae(u),h=h===void 0?ie:h;var ce=Math.max(G.x,G.y),de=ce*this.getZoomScale(ie,h),_e=R.distanceTo(C)||1,Le=1.42,ze=Le*Le;function Je(tn){var Hp=tn?-1:1,kz=tn?de:ce,Nz=de*de-ce*ce+Hp*ze*ze*_e*_e,Mz=2*kz*ze*_e,Wb=Nz/Mz,jT=Math.sqrt(Wb*Wb+1)-Wb,Lz=jT<1e-9?-18:Math.log(jT);return Lz}function zn(tn){return(Math.exp(tn)-Math.exp(-tn))/2}function pn(tn){return(Math.exp(tn)+Math.exp(-tn))/2}function Vr(tn){return zn(tn)/pn(tn)}var rr=Je(0);function Dl(tn){return ce*(pn(rr)/pn(rr+Le*tn))}function Cz(tn){return ce*(pn(rr)*Vr(rr+Le*tn)-zn(rr))/ze}function Tz(tn){return 1-Math.pow(1-tn,1.5)}var jz=Date.now(),CT=(Je(1)-rr)/Le,Az=O.duration?1e3*O.duration:1e3*CT*.8;function TT(){var tn=(Date.now()-jz)/Az,Hp=Tz(tn)*CT;tn<=1?(this._flyToFrame=I(TT,this),this._move(this.unproject(C.add(R.subtract(C).multiplyBy(Cz(Hp)/_e)),ie),this.getScaleZoom(ce/Dl(Hp),ie),{flyTo:!0})):this._move(u,h)._moveEnd(!0)}return this._moveStart(!0,O.noMoveStart),TT.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(),C=this._limitCenter(O,this._zoom,ne(u));return O.equals(C)||this.panTo(C,h),this._enforcingBounds=!1,this},panInside:function(u,h){h=h||{};var O=B(h.paddingTopLeft||h.padding||[0,0]),C=B(h.paddingBottomRight||h.padding||[0,0]),R=this.project(this.getCenter()),G=this.project(u),ie=this.getPixelBounds(),ce=ee([ie.min.add(O),ie.max.subtract(C)]),de=ce.getSize();if(!ce.contains(G)){this._enforcingBounds=!0;var _e=G.subtract(ce.getCenter()),Le=ce.extend(G).getSize().subtract(de);R.x+=_e.x<0?-Le.x:Le.x,R.y+=_e.y<0?-Le.y:Le.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(),C=h.divideBy(2).round(),R=O.divideBy(2).round(),G=C.subtract(R);return!G.x&&!G.y?this:(u.animate&&u.pan?this.panBy(G):(u.pan&&this._rawPanBy(G),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,C=new re(h,O),R=C.toBounds(u.coords.accuracy*2),G=this._locateOptions;if(G.setView){var ie=this.getBoundsZoom(R);this.setView(C,G.maxZoom?Math.min(ie,G.maxZoom):ie)}var ce={latlng:C,bounds:R,timestamp:u.timestamp};for(var de in u.coords)typeof u.coords[de]=="number"&&(ce[de]=u.coords[de]);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&&(D(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":""),C=ct("div",O,h||this._mapPane);return u&&(this._panes[u]=C),C},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 q(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 C=this.getZoom()||0,R=this.getMinZoom(),G=this.getMaxZoom(),ie=u.getNorthWest(),ce=u.getSouthEast(),de=this.getSize().subtract(O),_e=ee(this.project(ce,C),this.project(ie,C)).getSize(),Le=Fe.any3d?this.options.zoomSnap:1,ze=de.x/_e.x,Je=de.y/_e.y,zn=h?Math.max(ze,Je):Math.min(ze,Je);return C=this.getScaleZoom(zn,C),Le&&(C=Math.round(C/(Le/100))*(Le/100),C=h?Math.ceil(C/Le)*Le:Math.floor(C/Le)*Le),Math.max(R,Math.min(G,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(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 H(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 C=O.zoom(u*O.scale(h));return isNaN(C)?1/0:C},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 qC(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=VC(u);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ye(h,"scroll",this._onScroll,this),this._containerId=l(h)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Fe.any3d,Xe(u,"leaflet-container"+(Fe.touch?" leaflet-touch":"")+(Fe.retina?" leaflet-retina":"")+(Fe.ielt9?" leaflet-oldie":"")+(Fe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=lf(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 Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Xe(u.markerPane,"leaflet-zoom-hide"),Xe(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,h,O){en(this._mapPane,new Z(0,0));var C=!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"),C&&this.fire("load")},_moveStart:function(u,h){return u&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(u,h,O,C){h===void 0&&(h=this._zoom);var R=this._zoom!==h;return this._zoom=h,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),C?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 D(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[l(this._container)]=this;var h=u?bt:Ye;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),Fe.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){D(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=[],C,R=h==="mouseout"||h==="mouseover",G=u.target||u.srcElement,ie=!1;G;){if(C=this._targets[l(G)],C&&(h==="click"||h==="preclick")&&this._draggableMoved(C)){ie=!0;break}if(C&&C.listens(h,!0)&&(R&&!Mb(G,u)||(O.push(C),R))||G===this._container)break;G=G.parentNode}return!O.length&&!ie&&!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"&&Cb(h),this._fireDOMEvent(u,O)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,h,O){if(u.type==="click"){var C=i({},u);C.type="preclick",this._fireDOMEvent(C,C.type,O)}var R=this._findEventTargets(u,h);if(O){for(var G=[],ie=0;ie<O.length;ie++)O[ie].listens(h,!0)&&G.push(O[ie]);R=G.concat(R)}if(R.length){h==="contextmenu"&&En(u);var ce=R[0],de={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var _e=ce.getLatLng&&(!ce._radius||ce._radius<=10);de.containerPoint=_e?this.latLngToContainerPoint(ce.getLatLng()):this.mouseEventToContainerPoint(u),de.layerPoint=this.containerPointToLayerPoint(de.containerPoint),de.latlng=_e?ce.getLatLng():this.layerPointToLatLng(de.layerPoint)}for(ie=0;ie<R.length;ie++)if(R[ie].fire(h,de,!0),de.originalEvent._stopped||R[ie].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 ms(this._mapPane)||new Z(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 C=this._getNewPixelOrigin(O,h);return this.project(u,h)._subtract(C)},_latLngBoundsToNewLayerBounds:function(u,h,O){var C=this._getNewPixelOrigin(O,h);return ee([this.project(u.getSouthWest(),h)._subtract(C),this.project(u.getNorthWest(),h)._subtract(C),this.project(u.getSouthEast(),h)._subtract(C),this.project(u.getNorthEast(),h)._subtract(C)])},_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 C=this.project(u,h),R=this.getSize().divideBy(2),G=new H(C.subtract(R),C.add(R)),ie=this._getBoundsOffset(G,O,h);return Math.abs(ie.x)<=1&&Math.abs(ie.y)<=1?u:this.unproject(C.add(ie),h)},_limitOffset:function(u,h){if(!h)return u;var O=this.getPixelBounds(),C=new H(O.min.add(u),O.max.add(u));return u.add(this._getBoundsOffset(C,h))},_getBoundsOffset:function(u,h,O){var C=ee(this.project(h.getNorthEast(),O),this.project(h.getSouthWest(),O)),R=C.min.subtract(u.min),G=C.max.subtract(u.max),ie=this._rebound(R.x,-G.x),ce=this._rebound(R.y,-G.y);return new Z(ie,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(),C=Fe.any3d?this.options.zoomSnap:1;return C&&(u=Math.round(u/C)*C),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=ct("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(h){var O=_b,C=this._proxy.style[O];ps(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),C===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();ps(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 C=this.getZoomScale(h),R=this._getCenterOffset(u)._divideBy(1-1/C);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,C){this._mapPane&&(O&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=h,Xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:h,noUpdate:C}),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 W9(u,h){return new st(u,h)}var mi=W.extend({options:{position:"topright"},initialize:function(u){g(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(),C=u._controlCorners[O];return Xe(h,"leaflet-control"),O.indexOf("bottom")!==-1?C.insertBefore(h,C.firstChild):C.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()}}),hf=function(u){return new mi(u)};st.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=ct("div",h+"control-container",this._container);function C(R,G){var ie=h+R+" "+h+G;u[R+G]=ct("div",ie,O)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Dt(this._controlCorners[u]);Dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ZC=mi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,h,O,C){return O<C?-1:C<O?1:0}},initialize:function(u,h,O){g(this,O),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var C in u)this._addLayer(u[C],C);for(C in h)this._addLayer(h[C],C,!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 mi.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(l(u));return h&&this._layers.splice(this._layers.indexOf(h),1),this._map?this._update():this},expand:function(){Xe(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?(Xe(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=ct("div",u),O=this.options.collapsed;h.setAttribute("aria-haspopup",!0),df(h),Nb(h);var C=this._section=ct("section",u+"-list");O&&(this._map.on("click",this.collapse,this),Ye(h,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var R=this._layersLink=ct("a",u+"-toggle",h);R.href="#",R.title="Layers",R.setAttribute("role","button"),Ye(R,{keydown:function(G){G.keyCode===13&&this._expandSafely()},click:function(G){En(G),this._expandSafely()}},this),O||this.expand(),this._baseLayersList=ct("div",u+"-base",C),this._separator=ct("div",u+"-separator",C),this._overlaysList=ct("div",u+"-overlays",C),h.appendChild(C)},_getLayer:function(u){for(var h=0;h<this._layers.length;h++)if(this._layers[h]&&l(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(C,R){return this.options.sortFunction(C.layer,R.layer,C.name,R.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;jp(this._baseLayersList),jp(this._overlaysList),this._layerControlInputs=[];var u,h,O,C,R=0;for(O=0;O<this._layers.length;O++)C=this._layers[O],this._addItem(C),h=h||C.overlay,u=u||!C.overlay,R+=C.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(l(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"':"")+"/>",C=document.createElement("div");return C.innerHTML=O,C.firstChild},_addItem:function(u){var h=document.createElement("label"),O=this._map.hasLayer(u.layer),C;u.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=O):C=this._createRadioElement("leaflet-base-layers_"+l(this),O),this._layerControlInputs.push(C),C.layerId=l(u.layer),Ye(C,"click",this._onInputClick,this);var R=document.createElement("span");R.innerHTML=" "+u.name;var G=document.createElement("span");h.appendChild(G),G.appendChild(C),G.appendChild(R);var ie=u.overlay?this._overlaysList:this._baseLayersList;return ie.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,h,O,C=[],R=[];this._handlingClick=!0;for(var G=u.length-1;G>=0;G--)h=u[G],O=this._getLayer(h.layerId).layer,h.checked?C.push(O):h.checked||R.push(O);for(G=0;G<R.length;G++)this._map.hasLayer(R[G])&&this._map.removeLayer(R[G]);for(G=0;G<C.length;G++)this._map.hasLayer(C[G])||this._map.addLayer(C[G]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,h,O,C=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&&C<O.options.minZoom||O.options.maxZoom!==void 0&&C>O.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,Ye(u,"click",En),this.expand();var h=this;setTimeout(function(){bt(u,"click",En),h._preventClick=!1})}}),H9=function(u,h,O){return new ZC(u,h,O)},Lb=mi.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=ct("div",h+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,h+"-in",O,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.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,C,R){var G=ct("a",O,C);return G.innerHTML=u,G.href="#",G.title=h,G.setAttribute("role","button"),G.setAttribute("aria-label",h),df(G),Ye(G,"click",gs),Ye(G,"click",R,this),Ye(G,"click",this._refocusOnMap,this),G},_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())&&(Xe(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Xe(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Lb,this.addControl(this.zoomControl))});var G9=function(u){return new Lb(u)},XC=mi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var h="leaflet-control-scale",O=ct("div",h),C=this.options;return this._addScales(C,h+"-line",O),u.on(C.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=ct("div",h,O)),u.imperial&&(this._iScale=ct("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,C,R;h>5280?(O=h/5280,C=this._getRoundNum(O),this._updateScale(this._iScale,C+" mi",C/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}}),q9=function(u){return new XC(u)},K9='<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>',Rb=mi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Fe.inlineSvg?K9+" ":"")+"Leaflet</a>"},initialize:function(u){g(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ct("div","leaflet-control-attribution"),df(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> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new Rb().addTo(this)});var Y9=function(u){return new Rb(u)};mi.Layers=ZC,mi.Zoom=Lb,mi.Scale=XC,mi.Attribution=Rb,hf.layers=H9,hf.zoom=G9,hf.scale=q9,hf.attribution=Y9;var Vi=W.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}});Vi.addTo=function(u,h){return u.addHandler(h,this),this};var Z9={Events:Q},QC=Fe.touch?"touchstart mousedown":"mousedown",ia=te.extend({options:{clickTolerance:3},initialize:function(u,h,O,C){g(this,C),this._element=u,this._dragStartTarget=h||u,this._preventOutline=O},enable:function(){this._enabled||(Ye(this._dragStartTarget,QC,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ia._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,QC,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!xb(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&&Cb(this._element),Sb(),cf(),!this._moving)){this.fire("down");var h=u.touches?u.touches[0]:u,O=WC(this._element);this._startPoint=new Z(h.clientX,h.clientY),this._startPos=ms(this._element),this._parentScale=Tb(O);var C=u.type==="mousedown";Ye(document,C?"mousemove":"touchmove",this._onMove,this),Ye(document,C?"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 Z(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,Xe(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Xe(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),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),Pb(),uf();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 JC(u,h,O){var C,R=[1,4,2,8],G,ie,ce,de,_e,Le,ze,Je;for(G=0,Le=u.length;G<Le;G++)u[G]._code=ys(u[G],h);for(ce=0;ce<4;ce++){for(ze=R[ce],C=[],G=0,Le=u.length,ie=Le-1;G<Le;ie=G++)de=u[G],_e=u[ie],de._code&ze?_e._code&ze||(Je=Lp(_e,de,ze,h,O),Je._code=ys(Je,h),C.push(Je)):(_e._code&ze&&(Je=Lp(_e,de,ze,h,O),Je._code=ys(Je,h),C.push(Je)),C.push(de));u=C}return u}function eT(u,h){var O,C,R,G,ie,ce,de,_e,Le;if(!u||u.length===0)throw new Error("latlngs not passed");zr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var ze=ae([0,0]),Je=ne(u),zn=Je.getNorthWest().distanceTo(Je.getSouthWest())*Je.getNorthEast().distanceTo(Je.getNorthWest());zn<1700&&(ze=$b(u));var pn=u.length,Vr=[];for(O=0;O<pn;O++){var rr=ae(u[O]);Vr.push(h.project(ae([rr.lat-ze.lat,rr.lng-ze.lng])))}for(ce=de=_e=0,O=0,C=pn-1;O<pn;C=O++)R=Vr[O],G=Vr[C],ie=R.y*G.x-G.y*R.x,de+=(R.x+G.x)*ie,_e+=(R.y+G.y)*ie,ce+=ie*3;ce===0?Le=Vr[0]:Le=[de/ce,_e/ce];var Dl=h.unproject(B(Le));return ae([Dl.lat+ze.lat,Dl.lng+ze.lng])}function $b(u){for(var h=0,O=0,C=0,R=0;R<u.length;R++){var G=ae(u[R]);h+=G.lat,O+=G.lng,C++}return ae([h/C,O/C])}var X9={__proto__:null,clipPolygon:JC,polygonCenter:eT,centroid:$b};function tT(u,h){if(!h||!u.length)return u.slice();var O=h*h;return u=ez(u,O),u=J9(u,O),u}function nT(u,h,O){return Math.sqrt(pf(u,h,O,!0))}function Q9(u,h,O){return pf(u,h,O)}function J9(u,h){var O=u.length,C=typeof Uint8Array<"u"?Uint8Array:Array,R=new C(O);R[0]=R[O-1]=1,Ib(u,R,h,0,O-1);var G,ie=[];for(G=0;G<O;G++)R[G]&&ie.push(u[G]);return ie}function Ib(u,h,O,C,R){var G=0,ie,ce,de;for(ce=C+1;ce<=R-1;ce++)de=pf(u[ce],u[C],u[R],!0),de>G&&(ie=ce,G=de);G>O&&(h[ie]=1,Ib(u,h,O,C,ie),Ib(u,h,O,ie,R))}function ez(u,h){for(var O=[u[0]],C=1,R=0,G=u.length;C<G;C++)tz(u[C],u[R])>h&&(O.push(u[C]),R=C);return R<G-1&&O.push(u[G-1]),O}var rT;function iT(u,h,O,C,R){var G=C?rT:ys(u,O),ie=ys(h,O),ce,de,_e;for(rT=ie;;){if(!(G|ie))return[u,h];if(G&ie)return!1;ce=G||ie,de=Lp(u,h,ce,O,R),_e=ys(de,O),ce===G?(u=de,G=_e):(h=de,ie=_e)}}function Lp(u,h,O,C,R){var G=h.x-u.x,ie=h.y-u.y,ce=C.min,de=C.max,_e,Le;return O&8?(_e=u.x+G*(de.y-u.y)/ie,Le=de.y):O&4?(_e=u.x+G*(ce.y-u.y)/ie,Le=ce.y):O&2?(_e=de.x,Le=u.y+ie*(de.x-u.x)/G):O&1&&(_e=ce.x,Le=u.y+ie*(ce.x-u.x)/G),new Z(_e,Le,R)}function ys(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 tz(u,h){var O=h.x-u.x,C=h.y-u.y;return O*O+C*C}function pf(u,h,O,C){var R=h.x,G=h.y,ie=O.x-R,ce=O.y-G,de=ie*ie+ce*ce,_e;return de>0&&(_e=((u.x-R)*ie+(u.y-G)*ce)/de,_e>1?(R=O.x,G=O.y):_e>0&&(R+=ie*_e,G+=ce*_e)),ie=u.x-R,ce=u.y-G,C?ie*ie+ce*ce:new Z(R,G)}function zr(u){return!w(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function oT(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zr(u)}function aT(u,h){var O,C,R,G,ie,ce,de,_e;if(!u||u.length===0)throw new Error("latlngs not passed");zr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Le=ae([0,0]),ze=ne(u),Je=ze.getNorthWest().distanceTo(ze.getSouthWest())*ze.getNorthEast().distanceTo(ze.getNorthWest());Je<1700&&(Le=$b(u));var zn=u.length,pn=[];for(O=0;O<zn;O++){var Vr=ae(u[O]);pn.push(h.project(ae([Vr.lat-Le.lat,Vr.lng-Le.lng])))}for(O=0,C=0;O<zn-1;O++)C+=pn[O].distanceTo(pn[O+1])/2;if(C===0)_e=pn[0];else for(O=0,G=0;O<zn-1;O++)if(ie=pn[O],ce=pn[O+1],R=ie.distanceTo(ce),G+=R,G>C){de=(G-C)/R,_e=[ce.x-de*(ce.x-ie.x),ce.y-de*(ce.y-ie.y)];break}var rr=h.unproject(B(_e));return ae([rr.lat+Le.lat,rr.lng+Le.lng])}var nz={__proto__:null,simplify:tT,pointToSegmentDistance:nT,closestPointOnSegment:Q9,clipSegment:iT,_getEdgeIntersection:Lp,_getBitCode:ys,_sqClosestPointOnSegment:pf,isFlat:zr,_flat:oT,polylineCenter:aT},Db={project:function(u){return new Z(u.lng,u.lat)},unproject:function(u){return new re(u.y,u.x)},bounds:new H([-180,-90],[180,90])},Fb={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var h=Math.PI/180,O=this.R,C=u.lat*h,R=this.R_MINOR/O,G=Math.sqrt(1-R*R),ie=G*Math.sin(C),ce=Math.tan(Math.PI/4-C/2)/Math.pow((1-ie)/(1+ie),G/2);return C=-O*Math.log(Math.max(ce,1e-10)),new Z(u.lng*h*O,C)},unproject:function(u){for(var h=180/Math.PI,O=this.R,C=this.R_MINOR/O,R=Math.sqrt(1-C*C),G=Math.exp(-u.y/O),ie=Math.PI/2-2*Math.atan(G),ce=0,de=.1,_e;ce<15&&Math.abs(de)>1e-7;ce++)_e=R*Math.sin(ie),_e=Math.pow((1-_e)/(1+_e),R/2),de=Math.PI/2-2*Math.atan(G*_e)-ie,ie+=de;return new re(ie*h,u.x*h/O)}},rz={__proto__:null,LonLat:Db,Mercator:Fb,SphericalMercator:U},iz=i({},A,{code:"EPSG:3395",projection:Fb,transformation:function(){var u=.5/(Math.PI*Fb.R);return Y(u,.5,-u,.5)}()}),sT=i({},A,{code:"EPSG:4326",projection:Db,transformation:Y(1/180,1,-1/180,.5)}),oz=i({},ue,{projection:Db,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,C=h.lat-u.lat;return Math.sqrt(O*O+C*C)},infinite:!0});ue.Earth=A,ue.EPSG3395=iz,ue.EPSG3857=oe,ue.EPSG900913=he,ue.EPSG4326=sT,ue.Simple=oz;var vi=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[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(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})}}});st.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var h=l(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=l(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 l(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[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var h=l(u);this._zoomBoundLayers[h]&&(delete this._zoomBoundLayers[h],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,h=-1/0,O=this._getZoomSpan();for(var C in this._zoomBoundLayers){var R=this._zoomBoundLayers[C].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 Ml=vi.extend({initialize:function(u,h){g(this,h),this._layers={};var O,C;if(u)for(O=0,C=u.length;O<C;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,C;for(O in this._layers)C=this._layers[O],C[u]&&C[u].apply(C,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 l(u)}}),az=function(u,h){return new Ml(u,h)},yo=Ml.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),Ml.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),Ml.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 q;for(var h in this._layers){var O=this._layers[h];u.extend(O.getBounds?O.getBounds():O.getLatLng())}return u}}),sz=function(u,h){return new yo(u,h)},Ll=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){g(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 C=this._createImg(O,h&&h.tagName==="IMG"?h:null);return this._setIconStyles(C,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(C.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),C},_setIconStyles:function(u,h){var O=this.options,C=O[h+"Size"];typeof C=="number"&&(C=[C,C]);var R=B(C),G=B(h==="shadow"&&O.shadowAnchor||O.iconAnchor||R&&R.divideBy(2,!0));u.className="leaflet-marker-"+h+" "+(O.className||""),G&&(u.style.marginLeft=-G.x+"px",u.style.marginTop=-G.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 Fe.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function lz(u){return new Ll(u)}var mf=Ll.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 mf.imagePath!="string"&&(mf.imagePath=this._detectIconPath()),(this.options.imagePath||mf.imagePath)+Ll.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var h=function(O,C,R){var G=C.exec(O);return G&&G[R]};return u=h(u,/^url\((['"])?(.+)\1\)$/,2),u&&h(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=ct("div","leaflet-default-icon-path",document.body),h=lf(u,"background-image")||lf(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):""}}),lT=Vi.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(),Xe(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,C=this._marker.options.autoPanSpeed,R=this._marker.options.autoPanPadding,G=ms(h._icon),ie=O.getPixelBounds(),ce=O.getPixelOrigin(),de=ee(ie.min._subtract(ce).add(R),ie.max._subtract(ce).subtract(R));if(!de.contains(G)){var _e=B((Math.max(de.max.x,G.x)-de.max.x)/(ie.max.x-de.max.x)-(Math.min(de.min.x,G.x)-de.min.x)/(ie.min.x-de.min.x),(Math.max(de.max.y,G.y)-de.max.y)/(ie.max.y-de.max.y)-(Math.min(de.min.y,G.y)-de.min.y)/(ie.min.y-de.min.y)).multiplyBy(C);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&&(D(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,u)))},_onDrag:function(u){var h=this._marker,O=h._shadow,C=ms(h._icon),R=h._map.layerPointToLatLng(C);O&&en(O,C),h._latlng=R,u.latlng=R,u.oldLatLng=this._oldLatLng,h.fire("move",u).fire("drag",u)},_onDragEnd:function(u){D(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Rp=vi.extend({options:{icon:new mf,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){g(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),C=!1;O!==this._icon&&(this._icon&&this._removeIcon(),C=!0,u.title&&(O.title=u.title),O.tagName==="IMG"&&(O.alt=u.alt||"")),Xe(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&&Ye(O,"focus",this._panOnFocus,this);var R=u.icon.createShadow(this._shadow),G=!1;R!==this._shadow&&(this._removeShadow(),G=!0),R&&(Xe(R,h),R.alt=""),this._shadow=R,u.opacity<1&&this._updateOpacity(),C&&this.getPane().appendChild(this._icon),this._initInteraction(),R&&G&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),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&&(Xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),lT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new lT(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&&Ur(this._icon,u),this._shadow&&Ur(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),C=h.iconAnchor?B(h.iconAnchor):B(0,0);u.panInside(this._latlng,{paddingTopLeft:C,paddingBottomRight:O.subtract(C)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function cz(u,h){return new Rp(u,h)}var oa=vi.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 g(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)}}),$p=oa.extend({options:{fill:!0,radius:10},initialize:function(u,h){g(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(),C=[u+O,h+O];this._pxBounds=new H(this._point.subtract(C),this._point.add(C))},_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 uz(u,h){return new $p(u,h)}var Bb=$p.extend({initialize:function(u,h,O){if(typeof h=="number"&&(h=i({},O,{radius:h})),g(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 q(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,C=O.options.crs;if(C.distance===A.distance){var R=Math.PI/180,G=this._mRadius/A.R/R,ie=O.project([h+G,u]),ce=O.project([h-G,u]),de=ie.add(ce).divideBy(2),_e=O.unproject(de).lat,Le=Math.acos((Math.cos(G*R)-Math.sin(h*R)*Math.sin(_e*R))/(Math.cos(h*R)*Math.cos(_e*R)))/R;(isNaN(Le)||Le===0)&&(Le=G/Math.cos(Math.PI/180*h)),this._point=de.subtract(O.getPixelOrigin()),this._radius=isNaN(Le)?0:de.x-O.project([_e,u-Le]).x,this._radiusY=de.y-ie.y}else{var ze=C.unproject(C.project(this._latlng).subtract([this._mRadius,0]));this._point=O.latLngToLayerPoint(this._latlng),this._radius=this._point.x-O.latLngToLayerPoint(ze).x}this._updateBounds()}});function fz(u,h,O){return new Bb(u,h,O)}var bo=oa.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,h){g(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,C=pf,R,G,ie=0,ce=this._parts.length;ie<ce;ie++)for(var de=this._parts[ie],_e=1,Le=de.length;_e<Le;_e++){R=de[_e-1],G=de[_e];var ze=C(u,R,G,!0);ze<h&&(h=ze,O=C(u,R,G))}return O&&(O.distance=Math.sqrt(h)),O},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return aT(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 q,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return zr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var h=[],O=zr(u),C=0,R=u.length;C<R;C++)O?(h[C]=ae(u[C]),this._bounds.extend(h[C])):h[C]=this._convertLatLngs(u[C]);return h},_project:function(){var u=new H;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 Z(u,u);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(h),this._rawPxBounds.max.add(h)]))},_projectLatlngs:function(u,h,O){var C=u[0]instanceof re,R=u.length,G,ie;if(C){for(ie=[],G=0;G<R;G++)ie[G]=this._map.latLngToLayerPoint(u[G]),O.extend(ie[G]);h.push(ie)}else for(G=0;G<R;G++)this._projectLatlngs(u[G],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,C,R,G,ie,ce,de;for(O=0,R=0,G=this._rings.length;O<G;O++)for(de=this._rings[O],C=0,ie=de.length;C<ie-1;C++)ce=iT(de[C],de[C+1],u,C,!0),ce&&(h[R]=h[R]||[],h[R].push(ce[0]),(ce[1]!==de[C+1]||C===ie-2)&&(h[R].push(ce[1]),R++))}},_simplifyPoints:function(){for(var u=this._parts,h=this.options.smoothFactor,O=0,C=u.length;O<C;O++)u[O]=tT(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,C,R,G,ie,ce,de=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(O=0,G=this._parts.length;O<G;O++)for(ce=this._parts[O],C=0,ie=ce.length,R=ie-1;C<ie;R=C++)if(!(!h&&C===0)&&nT(u,ce[R],ce[C])<=de)return!0;return!1}});function dz(u,h){return new bo(u,h)}bo._flat=oT;var Rl=bo.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 eT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var h=bo.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){bo.prototype._setLatLngs.call(this,u),zr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return zr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,h=this.options.weight,O=new Z(h,h);if(u=new H(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 C=0,R=this._rings.length,G;C<R;C++)G=JC(this._rings[C],u,!0),G.length&&this._parts.push(G)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var h=!1,O,C,R,G,ie,ce,de,_e;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(G=0,de=this._parts.length;G<de;G++)for(O=this._parts[G],ie=0,_e=O.length,ce=_e-1;ie<_e;ce=ie++)C=O[ie],R=O[ce],C.y>u.y!=R.y>u.y&&u.x<(R.x-C.x)*(u.y-C.y)/(R.y-C.y)+C.x&&(h=!h);return h||bo.prototype._containsPoint.call(this,u,!0)}});function hz(u,h){return new Rl(u,h)}var _o=yo.extend({initialize:function(u,h){g(this,h),this._layers={},u&&this.addData(u)},addData:function(u){var h=w(u)?u:u.features,O,C,R;if(h){for(O=0,C=h.length;O<C;O++)R=h[O],(R.geometries||R.geometry||R.features||R.coordinates)&&this.addData(R);return this}var G=this.options;if(G.filter&&!G.filter(u))return this;var ie=Ip(u,G);return ie?(ie.feature=Bp(u),ie.defaultOptions=ie.options,this.resetStyle(ie),G.onEachFeature&&G.onEachFeature(u,ie),this.addLayer(ie)):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 Ip(u,h){var O=u.type==="Feature"?u.geometry:u,C=O?O.coordinates:null,R=[],G=h&&h.pointToLayer,ie=h&&h.coordsToLatLng||Ub,ce,de,_e,Le;if(!C&&!O)return null;switch(O.type){case"Point":return ce=ie(C),cT(G,u,ce,h);case"MultiPoint":for(_e=0,Le=C.length;_e<Le;_e++)ce=ie(C[_e]),R.push(cT(G,u,ce,h));return new yo(R);case"LineString":case"MultiLineString":return de=Dp(C,O.type==="LineString"?0:1,ie),new bo(de,h);case"Polygon":case"MultiPolygon":return de=Dp(C,O.type==="Polygon"?1:2,ie),new Rl(de,h);case"GeometryCollection":for(_e=0,Le=O.geometries.length;_e<Le;_e++){var ze=Ip({geometry:O.geometries[_e],type:"Feature",properties:u.properties},h);ze&&R.push(ze)}return new yo(R);case"FeatureCollection":for(_e=0,Le=O.features.length;_e<Le;_e++){var Je=Ip(O.features[_e],h);Je&&R.push(Je)}return new yo(R);default:throw new Error("Invalid GeoJSON object.")}}function cT(u,h,O,C){return u?u(h,O):new Rp(O,C&&C.markersInheritOptions&&C)}function Ub(u){return new re(u[1],u[0],u[2])}function Dp(u,h,O){for(var C=[],R=0,G=u.length,ie;R<G;R++)ie=h?Dp(u[R],h-1,O):(O||Ub)(u[R]),C.push(ie);return C}function zb(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 Fp(u,h,O,C){for(var R=[],G=0,ie=u.length;G<ie;G++)R.push(h?Fp(u[G],zr(u[G])?0:h-1,O,C):zb(u[G],C));return!h&&O&&R.length>0&&R.push(R[0].slice()),R}function $l(u,h){return u.feature?i({},u.feature,{geometry:h}):Bp(h)}function Bp(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var Vb={toGeoJSON:function(u){return $l(this,{type:"Point",coordinates:zb(this.getLatLng(),u)})}};Rp.include(Vb),Bb.include(Vb),$p.include(Vb),bo.include({toGeoJSON:function(u){var h=!zr(this._latlngs),O=Fp(this._latlngs,h?1:0,!1,u);return $l(this,{type:(h?"Multi":"")+"LineString",coordinates:O})}}),Rl.include({toGeoJSON:function(u){var h=!zr(this._latlngs),O=h&&!zr(this._latlngs[0]),C=Fp(this._latlngs,O?2:h?1:0,!0,u);return h||(C=[C]),$l(this,{type:(O?"Multi":"")+"Polygon",coordinates:C})}}),Ml.include({toMultiPoint:function(u){var h=[];return this.eachLayer(function(O){h.push(O.toGeoJSON(u).geometry.coordinates)}),$l(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",C=[];return this.eachLayer(function(R){if(R.toGeoJSON){var G=R.toGeoJSON(u);if(O)C.push(G.geometry);else{var ie=Bp(G);ie.type==="FeatureCollection"?C.push.apply(C,ie.features):C.push(ie)}}}),O?$l(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function uT(u,h){return new _o(u,h)}var pz=uT,Up=vi.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),g(this,O)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Xe(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&&kl(this._image),this},bringToBack:function(){return this._map&&Nl(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:ct("img");if(Xe(h,"leaflet-image-layer"),this._zoomAnimated&&Xe(h,"leaflet-zoom-animated"),this.options.className&&Xe(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;ps(this._image,O,h)},_reset:function(){var u=this._image,h=new H(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(){Ur(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()}}),mz=function(u,h,O){return new Up(u,h,O)},fT=Up.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:ct("video");if(Xe(h,"leaflet-image-layer"),this._zoomAnimated&&Xe(h,"leaflet-zoom-animated"),this.options.className&&Xe(h,this.options.className),h.onselectstart=d,h.onmousemove=d,h.onloadeddata=a(this.fire,this,"load"),u){for(var O=h.getElementsByTagName("source"),C=[],R=0;R<O.length;R++)C.push(O[R].src);this._url=O.length>0?C:[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 G=0;G<this._url.length;G++){var ie=ct("source");ie.src=this._url[G],h.appendChild(ie)}}});function vz(u,h,O){return new fT(u,h,O)}var dT=Up.extend({_initImage:function(){var u=this._image=this._url;Xe(u,"leaflet-image-layer"),this._zoomAnimated&&Xe(u,"leaflet-zoom-animated"),this.options.className&&Xe(u,this.options.className),u.onselectstart=d,u.onmousemove=d}});function gz(u,h,O){return new dT(u,h,O)}var Wi=vi.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),g(this,h)):(g(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&&Ur(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&Ur(this._container,1),this.bringToFront(),this.options.interactive&&(Xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(Ur(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&&kl(this._container),this},bringToBack:function(){return this._map&&Nl(this._container),this},_prepareOpen:function(u){var h=this._source;if(!h._map)return!1;if(h instanceof yo){h=null;var O=this._source._layers;for(var C in O)if(O[C]._map){h=O[C];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 C=this._containerBottom=-h.y,R=this._containerLeft=-Math.round(this._containerWidth/2)+h.x;this._container.style.bottom=C+"px",this._container.style.left=R+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(u,h,O,C){var R=h;return R instanceof u||(R=new u(C).setContent(h)),O&&R.setLatLng(O),R}}),vi.include({_initOverlay:function(u,h,O,C){var R=O;return R instanceof u?(g(R,C),R._source=this):(R=h&&!C?h:new u(C,this),R.setContent(O)),R}});var zp=Wi.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,Wi.prototype.openOn.call(this,u)},onAdd:function(u){Wi.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",vs))},onRemove:function(u){Wi.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",vs))},getEvents:function(){var u=Wi.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=ct("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),O=this._wrapper=ct("div",u+"-content-wrapper",h);if(this._contentNode=ct("div",u+"-content",O),df(h),Nb(this._contentNode),Ye(h,"contextmenu",vs),this._tipContainer=ct("div",u+"-tip-container",h),this._tip=ct("div",u+"-tip",this._tipContainer),this.options.closeButton){var C=this._closeButton=ct("a",u+"-close-button",h);C.setAttribute("role","button"),C.setAttribute("aria-label","Close popup"),C.href="#close",C.innerHTML='<span aria-hidden="true">×</span>',Ye(C,"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 C=u.offsetHeight,R=this.options.maxHeight,G="leaflet-popup-scrolled";R&&C>R?(h.height=R+"px",Xe(u,G)):Yt(u,G),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(lf(this._container,"marginBottom"),10)||0,O=this._container.offsetHeight+h,C=this._containerWidth,R=new Z(this._containerLeft,-O-this._containerBottom);R._add(ms(this._container));var G=u.layerPointToContainerPoint(R),ie=B(this.options.autoPanPadding),ce=B(this.options.autoPanPaddingTopLeft||ie),de=B(this.options.autoPanPaddingBottomRight||ie),_e=u.getSize(),Le=0,ze=0;G.x+C+de.x>_e.x&&(Le=G.x+C-_e.x+de.x),G.x-Le-ce.x<0&&(Le=G.x-ce.x),G.y+O+de.y>_e.y&&(ze=G.y+O-_e.y+de.y),G.y-ze-ce.y<0&&(ze=G.y-ce.y),(Le||ze)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Le,ze]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),yz=function(u,h){return new zp(u,h)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(u,h,O){return this._initOverlay(zp,u,h,O).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),vi.include({bindPopup:function(u,h){return this._popup=this._initOverlay(zp,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 yo||(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)){gs(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 Vp=Wi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Wi.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){Wi.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=Wi.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=ct("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var h,O,C=this._map,R=this._container,G=C.latLngToContainerPoint(C.getCenter()),ie=C.layerPointToContainerPoint(u),ce=this.options.direction,de=R.offsetWidth,_e=R.offsetHeight,Le=B(this.options.offset),ze=this._getAnchor();ce==="top"?(h=de/2,O=_e):ce==="bottom"?(h=de/2,O=0):ce==="center"?(h=de/2,O=_e/2):ce==="right"?(h=0,O=_e/2):ce==="left"?(h=de,O=_e/2):ie.x<G.x?(ce="right",h=0,O=_e/2):(ce="left",h=de+(Le.x+ze.x)*2,O=_e/2),u=u.subtract(B(h,O,!0)).add(Le).add(ze),Yt(R,"leaflet-tooltip-right"),Yt(R,"leaflet-tooltip-left"),Yt(R,"leaflet-tooltip-top"),Yt(R,"leaflet-tooltip-bottom"),Xe(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&&Ur(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])}}),bz=function(u,h){return new Vp(u,h)};st.include({openTooltip:function(u,h,O){return this._initOverlay(Vp,u,h,O).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),vi.include({bindTooltip:function(u,h){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Vp,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 yo||(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&&(Ye(h,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ye(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,C;this._tooltip.options.sticky&&u.originalEvent&&(O=this._map.mouseEventToContainerPoint(u.originalEvent),C=this._map.containerPointToLayerPoint(O),h=this._map.layerPointToLatLng(C)),this._tooltip.setLatLng(h)}});var hT=Ll.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?(jp(h),h.appendChild(O.html)):h.innerHTML=O.html!==!1?O.html:"",O.bgPos){var C=B(O.bgPos);h.style.backgroundPosition=-C.x+"px "+-C.y+"px"}return this._setIconStyles(h,"icon"),h},createShadow:function(){return null}});function _z(u){return new hT(u)}Ll.Default=mf;var vf=vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Fe.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){g(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&&(kl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Nl(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=c(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 Z?u:new Z(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),C=0,R=h.length,G;C<R;C++)G=h[C].style.zIndex,h[C]!==this._container&&G&&(O=u(O,+G));isFinite(O)&&(this.options.zIndex=O+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Fe.ielt9){Ur(this._container,this.options.opacity);var u=+new Date,h=!1,O=!1;for(var C in this._tiles){var R=this._tiles[C];if(!(!R.current||!R.loaded)){var G=Math.min(1,(u-R.loaded)/200);Ur(R.el,G),G<1?h=!0:(R.active?O=!0:this._onOpaqueTile(R),R.active=!0)}}O&&!this._noPrune&&this._pruneTiles(),h&&(D(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=ct("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 C=this._levels[u],R=this._map;return C||(C=this._levels[u]={},C.el=ct("div","leaflet-tile-container leaflet-zoom-animated",this._container),C.el.style.zIndex=h,C.origin=R.project(R.unproject(R.getPixelOrigin()),u).round(),C.zoom=u,this._setZoomTransform(C,R.getCenter(),R.getZoom()),d(C.el.offsetWidth),this._onCreateLevel(C)),this._level=C,C}},_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 C=h.coords;this._retainParent(C.x,C.y,C.z,C.z-5)||this._retainChildren(C.x,C.y,C.z,C.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,C){var R=Math.floor(u/2),G=Math.floor(h/2),ie=O-1,ce=new Z(+R,+G);ce.z=+ie;var de=this._tileCoordsToKey(ce),_e=this._tiles[de];return _e&&_e.active?(_e.retain=!0,!0):(_e&&_e.loaded&&(_e.retain=!0),ie>C?this._retainParent(R,G,ie,C):!1)},_retainChildren:function(u,h,O,C){for(var R=2*u;R<2*u+2;R++)for(var G=2*h;G<2*h+2;G++){var ie=new Z(R,G);ie.z=O+1;var ce=this._tileCoordsToKey(ie),de=this._tiles[ce];if(de&&de.active){de.retain=!0;continue}else de&&de.loaded&&(de.retain=!0);O+1<C&&this._retainChildren(R,G,O+1,C)}},_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,C){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 G=this.options.updateWhenZooming&&R!==this._tileZoom;(!C||G)&&(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 C=this._map.getZoomScale(O,u.zoom),R=u.origin.multiplyBy(C).subtract(this._map._getNewPixelOrigin(h,O)).round();Fe.any3d?ps(u.el,R,C):en(u.el,R)},_resetGrid:function(){var u=this._map,h=u.options.crs,O=this._tileSize=this.getTileSize(),C=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]],C).x/O.x),Math.ceil(u.project([0,h.wrapLng[1]],C).x/O.y)],this._wrapY=h.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([h.wrapLat[0],0],C).y/O.x),Math.ceil(u.project([h.wrapLat[1],0],C).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(),C=h.getZoomScale(O,this._tileZoom),R=h.project(u,this._tileZoom).floor(),G=h.getSize().divideBy(C*2);return new H(R.subtract(G),R.add(G))},_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 C=this._getTiledPixelBounds(u),R=this._pxBoundsToTileRange(C),G=R.getCenter(),ie=[],ce=this.options.keepBuffer,de=new H(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 Le=this._tiles[_e].coords;(Le.z!==this._tileZoom||!de.contains(new Z(Le.x,Le.y)))&&(this._tiles[_e].current=!1)}if(Math.abs(O-this._tileZoom)>1){this._setView(u,O);return}for(var ze=R.min.y;ze<=R.max.y;ze++)for(var Je=R.min.x;Je<=R.max.x;Je++){var zn=new Z(Je,ze);if(zn.z=this._tileZoom,!!this._isValidTile(zn)){var pn=this._tiles[this._tileCoordsToKey(zn)];pn?pn.current=!0:ie.push(zn)}}if(ie.sort(function(rr,Dl){return rr.distanceTo(G)-Dl.distanceTo(G)}),ie.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Vr=document.createDocumentFragment();for(Je=0;Je<ie.length;Je++)this._addTile(ie[Je],Vr);this._level.el.appendChild(Vr)}}}},_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 C=this._tileCoordsToBounds(u);return ne(this.options.bounds).overlaps(C)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var h=this._map,O=this.getTileSize(),C=u.scaleBy(O),R=C.add(O),G=h.unproject(C,u.z),ie=h.unproject(R,u.z);return[G,ie]},_tileCoordsToBounds:function(u){var h=this._tileCoordsToNwSe(u),O=new q(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 Z(+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){Xe(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,Fe.ielt9&&this.options.opacity<1&&Ur(u,this.options.opacity)},_addTile:function(u,h){var O=this._getTilePos(u),C=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[C]={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 C=this._tileCoordsToKey(u);O=this._tiles[C],O&&(O.loaded=+new Date,this._map._fadeAnimated?(Ur(O.el,0),D(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(O.active=!0,this._pruneTiles()),h||(Xe(O.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:O.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Fe.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 Z(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 H(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 xz(u){return new vf(u)}var Il=vf.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=g(this,h),h.detectRetina&&Fe.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 Ye(O,"load",a(this._tileOnLoad,this,h,O)),Ye(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:Fe.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 b(this._url,i(h,this.options))},_tileOnLoad:function(u,h){Fe.ielt9?setTimeout(a(u,this,null,h),0):u(null,h)},_tileOnError:function(u,h,O){var C=this.options.errorTileUrl;C&&h.getAttribute("src")!==C&&(h.src=C),u(O,h)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,h=this.options.maxZoom,O=this.options.zoomReverse,C=this.options.zoomOffset;return O&&(u=h-u),u+C},_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=P;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",P),vf.prototype._removeTile.call(this,u)},_tileReady:function(u,h,O){if(!(!this._map||O&&O.getAttribute("src")===P))return vf.prototype._tileReady.call(this,u,h,O)}});function pT(u,h){return new Il(u,h)}var mT=Il.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 C in h)C in this.options||(O[C]=h[C]);h=g(this,h);var R=h.detectRetina&&Fe.retina?2:1,G=this.getTileSize();O.width=G.x*R,O.height=G.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,Il.prototype.onAdd.call(this,u)},getTileUrl:function(u){var h=this._tileCoordsToNwSe(u),O=this._crs,C=ee(O.project(h[0]),O.project(h[1])),R=C.min,G=C.max,ie=(this._wmsVersion>=1.3&&this._crs===sT?[R.y,R.x,G.y,G.x]:[R.x,R.y,G.x,G.y]).join(","),ce=Il.prototype.getTileUrl.call(this,u);return ce+x(this.wmsParams,ce,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+ie},setParams:function(u,h){return i(this.wmsParams,u),h||this.redraw(),this}});function wz(u,h){return new mT(u,h)}Il.WMS=mT,pT.wms=wz;var xo=vi.extend({options:{padding:.1},initialize:function(u){g(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Xe(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),C=this._map.getSize().multiplyBy(.5+this.options.padding),R=this._map.project(this._center,h),G=C.multiplyBy(-O).add(R).subtract(this._map._getNewPixelOrigin(u,h));Fe.any3d?ps(this._container,G,O):en(this._container,G)},_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 H(O,O.add(h.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),vT=xo.extend({options:{tolerance:0},getEvents:function(){var u=xo.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){xo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ye(u,"mousemove",this._onMouseMove,this),Ye(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ye(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){D(this._redrawRequest),delete this._ctx,Dt(this._container),bt(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)){xo.prototype._update.call(this);var u=this._bounds,h=this._container,O=u.getSize(),C=Fe.retina?2:1;en(h,u.min),h.width=C*O.x,h.height=C*O.y,h.style.width=O.x+"px",h.style.height=O.y+"px",Fe.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){xo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(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,C=h.prev;O?O.prev=C:this._drawLast=C,C?C.next=O:this._drawFirst=O,delete u._order,delete this._layers[l(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=[],C,R;for(R=0;R<h.length;R++){if(C=Number(h[R]),isNaN(C))return;O.push(C)}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 H,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 C=this._drawFirst;C;C=C.next)u=C.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,C,R,G,ie=u._parts,ce=ie.length,de=this._ctx;if(ce){for(de.beginPath(),O=0;O<ce;O++){for(C=0,R=ie[O].length;C<R;C++)G=ie[O][C],de[C?"lineTo":"moveTo"](G.x,G.y);h&&de.closePath()}this._fillStroke(de,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var h=u._point,O=this._ctx,C=Math.max(Math.round(u._radius),1),R=(Math.max(Math.round(u._radiusY),1)||C)/C;R!==1&&(O.save(),O.scale(1,R)),O.beginPath(),O.arc(h.x,h.y/R,C,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,C,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))&&(C=O);this._fireEvent(C?[C]:!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,C,R=this._drawFirst;R;R=R.next)O=R.layer,O.options.interactive&&O._containsPoint(h)&&(C=O);C!==this._hoveredLayer&&(this._handleMouseOut(u),C&&(Xe(this._container,"leaflet-interactive"),this._fireEvent([C],u,"mouseover"),this._hoveredLayer=C)),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,C=h.prev;if(O)O.prev=C;else return;C?C.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,C=h.prev;if(C)C.next=O;else return;O?O.prev=C:C&&(this._drawLast=C),h.prev=null,h.next=this._drawFirst,this._drawFirst.prev=h,this._drawFirst=h,this._requestRedraw(u)}}});function gT(u){return Fe.canvas?new vT(u):null}var gf=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">')}}(),Oz={_initContainer:function(){this._container=ct("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(xo.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var h=u._container=gf("shape");Xe(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",u._path=gf("path"),h.appendChild(u._path),this._updateStyle(u),this._layers[l(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[l(u)]},_updateStyle:function(u){var h=u._stroke,O=u._fill,C=u.options,R=u._container;R.stroked=!!C.stroke,R.filled=!!C.fill,C.stroke?(h||(h=u._stroke=gf("stroke")),R.appendChild(h),h.weight=C.weight+"px",h.color=C.color,h.opacity=C.opacity,C.dashArray?h.dashStyle=w(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=C.lineCap.replace("butt","flat"),h.joinstyle=C.lineJoin):h&&(R.removeChild(h),u._stroke=null),C.fill?(O||(O=u._fill=gf("fill")),R.appendChild(O),O.color=C.fillColor||C.color,O.opacity=C.fillOpacity):O&&(R.removeChild(O),u._fill=null)},_updateCircle:function(u){var h=u._point.round(),O=Math.round(u._radius),C=Math.round(u._radiusY||O);this._setPath(u,u._empty()?"M0 0":"AL "+h.x+","+h.y+" "+O+","+C+" 0,"+65535*360)},_setPath:function(u,h){u._path.v=h},_bringToFront:function(u){kl(u._container)},_bringToBack:function(u){Nl(u._container)}},Wp=Fe.vml?gf:Pe,yf=xo.extend({_initContainer:function(){this._container=Wp("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wp("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Dt(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){xo.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=Wp("path");u.options.className&&Xe(h,u.options.className),u.options.interactive&&Xe(h,"leaflet-interactive"),this._updateStyle(u),this._layers[l(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[l(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),C=Math.max(Math.round(u._radiusY),1)||O,R="a"+O+","+C+" 0 1,0 ",G=u._empty()?"M0 0":"M"+(h.x-O)+","+h.y+R+O*2+",0 "+R+-O*2+",0 ";this._setPath(u,G)},_setPath:function(u,h){u._path.setAttribute("d",h)},_bringToFront:function(u){kl(u._path)},_bringToBack:function(u){Nl(u._path)}});Fe.vml&&yf.include(Oz);function yT(u){return Fe.svg||Fe.vml?new yf(u):null}st.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&&gT(u)||yT(u)}});var bT=Rl.extend({initialize:function(u,h){Rl.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 Sz(u,h){return new bT(u,h)}yf.create=Wp,yf.pointsToPath=se,_o.geometryToLayer=Ip,_o.coordsToLatLng=Ub,_o.coordsToLatLngs=Dp,_o.latLngToCoords=zb,_o.latLngsToCoords=Fp,_o.getFeature=$l,_o.asFeature=Bp,st.mergeOptions({boxZoom:!0});var _T=Vi.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(){Ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(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(),cf(),Sb(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ye(document,{contextmenu:gs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ct("div","leaflet-zoom-box",this._container),Xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var h=new H(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")),uf(),Pb(),bt(document,{contextmenu:gs,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 q(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())}});st.addInitHook("addHandler","boxZoom",_T),st.mergeOptions({doubleClickZoom:!0});var xT=Vi.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(),C=h.options.zoomDelta,R=u.originalEvent.shiftKey?O-C:O+C;h.options.doubleClickZoom==="center"?h.setZoom(R):h.setZoomAround(u.containerPoint,R)}});st.addInitHook("addHandler","doubleClickZoom",xT),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var wT=Vi.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))}Xe(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,C=this._draggable._newPos.x,R=(C-h+O)%u+h-O,G=(C+h+O)%u-h-O,ie=Math.abs(R+O)<Math.abs(G+O)?R:G;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=ie},_onDragEnd:function(u){var h=this._map,O=h.options,C=!O.inertia||u.noInertia||this._times.length<2;if(h.fire("dragend",u),C)h.fire("moveend");else{this._prunePositions(+new Date);var R=this._lastPos.subtract(this._positions[0]),G=(this._lastTime-this._times[0])/1e3,ie=O.easeLinearity,ce=R.multiplyBy(ie/G),de=ce.distanceTo([0,0]),_e=Math.min(O.inertiaMaxSpeed,de),Le=ce.multiplyBy(_e/de),ze=_e/(O.inertiaDeceleration*ie),Je=Le.multiplyBy(-ze/2).round();!Je.x&&!Je.y?h.fire("moveend"):(Je=h._limitOffset(Je,h.options.maxBounds),I(function(){h.panBy(Je,{duration:ze,easeLinearity:ie,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",wT),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var OT=Vi.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"),Ye(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(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,h=document.documentElement,O=u.scrollTop||h.scrollTop,C=u.scrollLeft||h.scrollLeft;this._map._container.focus(),window.scrollTo(C,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,C,R;for(C=0,R=O.left.length;C<R;C++)h[O.left[C]]=[-1*u,0];for(C=0,R=O.right.length;C<R;C++)h[O.right[C]]=[u,0];for(C=0,R=O.down.length;C<R;C++)h[O.down[C]]=[0,u];for(C=0,R=O.up.length;C<R;C++)h[O.up[C]]=[0,-1*u]},_setZoomDelta:function(u){var h=this._zoomKeys={},O=this.keyCodes,C,R;for(C=0,R=O.zoomIn.length;C<R;C++)h[O.zoomIn[C]]=u;for(C=0,R=O.zoomOut.length;C<R;C++)h[O.zoomOut[C]]=-u},_addHooks:function(){Ye(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var h=u.keyCode,O=this._map,C;if(h in this._panKeys){if(!O._panAnim||!O._panAnim._inProgress)if(C=this._panKeys[h],u.shiftKey&&(C=B(C).multiplyBy(3)),O.options.maxBounds&&(C=O._limitOffset(B(C),O.options.maxBounds)),O.options.worldCopyJump){var R=O.wrapLatLng(O.unproject(O.project(O.getCenter()).add(C)));O.panTo(R)}else O.panBy(C)}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;gs(u)}}});st.addInitHook("addHandler","keyboard",OT),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ST=Vi.extend({addHooks:function(){Ye(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var h=KC(u),O=this._map.options.wheelDebounceTime;this._delta+=h,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var C=Math.max(O-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),C),gs(u)},_performZoom:function(){var u=this._map,h=u.getZoom(),O=this._map.options.zoomSnap||0;u._stop();var C=this._delta/(this._map.options.wheelPxPerZoomLevel*4),R=4*Math.log(2/(1+Math.exp(-Math.abs(C))))/Math.LN2,G=O?Math.ceil(R/O)*O:R,ie=u._limitZoom(h+(this._delta>0?G:-G))-h;this._delta=0,this._startTime=null,ie&&(u.options.scrollWheelZoom==="center"?u.setZoom(h+ie):u.setZoomAround(this._lastMousePos,h+ie))}});st.addInitHook("addHandler","scrollWheelZoom",ST);var Pz=600;st.mergeOptions({tapHold:Fe.touchNative&&Fe.safari&&Fe.mobile,tapTolerance:15});var PT=Vi.extend({addHooks:function(){Ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(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 Z(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Ye(document,"touchend",En),Ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),Pz),Ye(document,"touchend touchcancel contextmenu",this._cancel,this),Ye(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){bt(document,"touchend",En),bt(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(u){var h=u.touches[0];this._newPos=new Z(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)}});st.addInitHook("addHandler","tapHold",PT),st.mergeOptions({touchZoom:Fe.touch,bounceAtZoomLimits:!0});var ET=Vi.extend({addHooks:function(){Xe(this._map._container,"leaflet-touch-zoom"),Ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Yt(this._map._container,"leaflet-touch-zoom"),bt(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]),C=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(C)._divideBy(2))),this._startDist=O.distanceTo(C),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),Ye(document,"touchmove",this._onTouchMove,this),Ye(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]),C=h.mouseEventToContainerPoint(u.touches[1]),R=O.distanceTo(C)/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 G=O._add(C)._divideBy(2)._subtract(this._centerPoint);if(R===1&&G.x===0&&G.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(G),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),D(this._animRequest);var ie=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(ie,this,!0),En(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,D(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});st.addInitHook("addHandler","touchZoom",ET),st.BoxZoom=_T,st.DoubleClickZoom=xT,st.Drag=wT,st.Keyboard=OT,st.ScrollWheelZoom=ST,st.TapHold=PT,st.TouchZoom=ET,n.Bounds=H,n.Browser=Fe,n.CRS=ue,n.Canvas=vT,n.Circle=Bb,n.CircleMarker=$p,n.Class=W,n.Control=mi,n.DivIcon=hT,n.DivOverlay=Wi,n.DomEvent=V9,n.DomUtil=U9,n.Draggable=ia,n.Evented=te,n.FeatureGroup=yo,n.GeoJSON=_o,n.GridLayer=vf,n.Handler=Vi,n.Icon=Ll,n.ImageOverlay=Up,n.LatLng=re,n.LatLngBounds=q,n.Layer=vi,n.LayerGroup=Ml,n.LineUtil=nz,n.Map=st,n.Marker=Rp,n.Mixin=Z9,n.Path=oa,n.Point=Z,n.PolyUtil=X9,n.Polygon=Rl,n.Polyline=bo,n.Popup=zp,n.PosAnimation=YC,n.Projection=rz,n.Rectangle=bT,n.Renderer=xo,n.SVG=yf,n.SVGOverlay=dT,n.TileLayer=Il,n.Tooltip=Vp,n.Transformation=J,n.Util=K,n.VideoOverlay=fT,n.bind=a,n.bounds=ee,n.canvas=gT,n.circle=fz,n.circleMarker=uz,n.control=hf,n.divIcon=_z,n.extend=i,n.featureGroup=sz,n.geoJSON=uT,n.geoJson=pz,n.gridLayer=xz,n.icon=lz,n.imageOverlay=mz,n.latLng=ae,n.latLngBounds=ne,n.layerGroup=az,n.map=W9,n.marker=cz,n.point=B,n.polygon=hz,n.polyline=dz,n.popup=yz,n.rectangle=Sz,n.setOptions=g,n.stamp=l,n.svg=yT,n.svgOverlay=gz,n.tileLayer=pT,n.tooltip=bz,n.transformation=Y,n.version=r,n.videoOverlay=vz;var Ez=window.L;n.noConflict=function(){return window.L=Ez,this},window.L=n})})(HO,HO.exports);var gp=HO.exports;const e4=at(gp);function sC(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function lC(e,t){return t==null?function(r,i){const o=M.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=M.useRef();o.current||(o.current=e(r,i));const a=M.useRef(r),{instance:s}=o.current;return M.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function SMe(e,t){M.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 oB(e){return function(n){const r=rB(),i=e(aC(n,r),r);return eB(r.map,n.attribution),iB(i.current,n.eventHandlers),SMe(i.current,r),i}}function PMe(e,t){const n=lC(e,t),r=oB(n);return _Me(r)}function EMe(e,t){const n=lC(e),r=OMe(n,t);return xMe(r)}function CMe(e,t){const n=lC(e,t),r=oB(n);return wMe(r)}function TMe(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 GO(){return GO=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},GO.apply(this,arguments)}function jMe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:c,...f},d){const[p]=M.useState({className:i,id:o,style:s}),[v,y]=M.useState(null);M.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const g=M.useCallback(_=>{if(_!==null&&v===null){const b=new gp.Map(_,f);n!=null&&c!=null?b.setView(n,c):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),y(yMe(b))}},[]);M.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const x=v?V.createElement(nB,{value:v},r):a??null;return V.createElement("div",GO({},p,{ref:g}),x)}const AMe=M.forwardRef(jMe),kMe=PMe(function({position:t,...n},r){const i=new gp.Marker(t,n);return sC(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())}),NMe=EMe(function(t,n){const r=new gp.Popup(t,n.overlayContainer);return sC(r,n)},function(t,n,{position:r},i){M.useEffect(function(){const{instance:a}=t;function s(c){c.popup===a&&(a.update(),i(!0))}function l(c){c.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:l}),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:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),MMe=CMe(function({url:t,...n},r){const i=new gp.TileLayer(t,aC(n,r));return sC(i,r)},function(t,n,r){TMe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),LMe={"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"},aB={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"},Wn={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"},ha={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class be{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=be.getVersionPrecision(t),o=be.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=be.map([t,n],c=>{const f=a-be.getVersionPrecision(c),d=c+new Array(f+1).join(".0");return be.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{r[l]=a[l]})}return t}static getBrowserAlias(t){return LMe[t]}static getBrowserTypeByAlias(t){return aB[t]||""}}const vt=/version\/(\d+(\.?_?\d+)+)/i,RMe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(vt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(vt,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(vt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(vt,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(vt,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(vt,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(vt,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(vt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(vt,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(vt,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(vt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(vt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(vt,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)}}}],$Me=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Wn.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Wn.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:Wn.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Wn.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:Wn.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:Wn.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:Wn.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:Wn.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:Wn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Wn.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Wn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Wn.Linux}}},{test:[/CrOS/],describe(){return{name:Wn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Wn.PlayStation4,version:t}}}],IMe=[{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}}}],DMe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:ha.Blink};const n=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:ha.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:ha.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:ha.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:ha.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ha.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:ha.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class t4{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(RMe,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($Me,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(IMe,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(DMe,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 l=t[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=be.find(s,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=be.find(s,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const s=Object.keys(i),l=be.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}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 FMe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new t4(t,n)}static parse(t){return new t4(t).getResult()}static get BROWSER_MAP(){return aB}static get ENGINE_MAP(){return ha}static get OS_MAP(){return Wn}static get PLATFORMS_MAP(){return Zt}}var BMe=Object.defineProperty,UMe=(e,t,n)=>t in e?BMe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,za=(e,t,n)=>UMe(e,typeof t!="symbol"?t+"":t,n);const zMe=e=>(e==null?void 0:e.type)===WP.INVALID_ARGUMENT,VMe=e=>(e==null?void 0:e.type)===WP.INVALID_SHORT_URL_DELETION,WMe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Br=e=>WMe(e)?e:void 0,cC=e=>"error"in e,ho=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,zMe(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),yl=({style:e,className:t,...n})=>m.jsx("button",{type:"button",className:Oe("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),sB=M.createContext(""),HMe=sB.Provider,ds=()=>M.useContext(sB),lB=M.createContext(void 0),{Provider:uC}=lB,cb=()=>M.useContext(lB),GMe=5,fC=()=>{const[e,t]=M.useState([]),n=M.useMemo(()=>e.length>=GMe,[e.length]),r=M.useCallback(s=>!n&&t(l=>[...l,s]),[n]),i=M.useCallback(s=>!n&&e.every(l=>l.name!==s),[e,n]),o=M.useCallback(s=>t(l=>l.filter(c=>c!==s)),[]),a=M.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},dC=({className:e,type:t})=>{const n=ds(),r=cb(),i=M.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(l=>l.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return m.jsx("div",{className:Oe("top-sticky",e),children:m.jsxs(gt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[m.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((l,c)=>{var f;return m.jsxs("li",{className:Oe("badge pe-1",{"bg-secondary":!((f=l.style)!=null&&f.backgroundColor)}),style:l.style,children:[l.name,m.jsx(yl,{"aria-label":`Remove ${l.name}`,className:"fw-bold fs-6",onClick:()=>s(l),children:"×"})]},`${l.name}_${c}`)})}),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:At,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[m.jsx(je,{icon:Jy,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:"×"})]})]})})},Ed=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,qMe=(e,t)=>!e.domain&&t===fb?!0:e.domain===t,KMe=(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}},cB=e=>e.replaceAll("/","__"),hC=e=>e.replaceAll("__","/"),pC=({domain:e,shortCode:t})=>`${e??fb}__${cB(t)}`,uB=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===fb?null:t,shortCode:hC(n)}},YMe="yyyy-MM-dd",fB="yyyy-MM-dd HH:mm",Xa=()=>new Date,mC=e=>typeof e!="string",vC=(e,t)=>!e||!mC(e)?e:t?pg(e,t):wae(e),Qa=e=>vC(e,void 0),Ta=e=>vC(e,YMe),zh=e=>vC(e,fB),Er=e=>mC(e)?e:Ka(e),yp=(e,t,n)=>{const r=Er(e),i=t&&Er(t),o=n&&Er(n);if(i&&o)try{return Pae(r,{start:i,end:o})}catch{return!1}return i?s2(r,i)||Sae(r,i):o?s2(r,o)||mg(r,o):!0},ws=(e,t)=>s2(e,t)||mg(e,t),ub="all",dB={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[ub]:void 0},hB=Object.keys(dB),ZMe=e=>!e||!e.startDate&&!e.endDate,wy=e=>typeof e=="string"&&hB.includes(e),XMe=hB.filter(e=>e!==ub),n4=e=>e?Er(e):null,pB=(e,t)=>({startDate:n4(e),endDate:n4(t)}),QMe=e=>{if(!(!e||ZMe(e)))return e.startDate&&!e.endDate?`Since ${Ta(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Ta(e.endDate)}`:`${Ta(e.startDate)} - ${Ta(e.endDate)}`},mB=e=>{if(!(!e||e===ub))return wy(e)?dB[e]:QMe(e)},Qr=e=>hl(vg(Xa(),e)),Zl=e=>({startDate:e,endDate:Jc(Xa())}),vB=e=>{var t;return((t=[[()=>e==="today",()=>Zl(hl(Xa()))],[()=>e==="yesterday",()=>({startDate:Qr(1),endDate:Jc(vg(Xa(),1))})],[()=>e==="last7Days",()=>Zl(Qr(7))],[()=>e==="last30Days",()=>Zl(Qr(30))],[()=>e==="last90Days",()=>Zl(Qr(90))],[()=>e==="last180Days",()=>Zl(Qr(180))],[()=>e==="last365Days",()=>Zl(Qr(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},JMe=e=>{var t;const n=Er(e);return((t=[[()=>ws(hl(Xa()),n),"today"],[()=>ws(Qr(1),n),"yesterday"],[()=>ws(Qr(7),n),"last7Days"],[()=>ws(Qr(30),n),"last30Days"],[()=>ws(Qr(90),n),"last90Days"],[()=>ws(Qr(180),n),"last180Days"],[()=>ws(Qr(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??ub},gB=e=>wy(e)?vB(e):e,yB=e=>!!(e&&e.startDate),eLe=({startDate:e,endDate:t})=>{const n=UD(Jc(t??new Date),hl(e))+1,r=vg(hl(e),n),i=vg(Jc(e),1);return{startDate:r,endDate:i}},tLe=e=>{if(yB(e))return UD(e.endDate??new Date,e.startDate)},gC=e=>e.type!==void 0,nLe=e=>e.type!==void 0,rLe=e=>{const t=$D(e,n=>gC(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},bB=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Ed(o,t,n)&&yp(a.date,i,r)),_B=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&qMe(i,t)&&yp(o.date,r,n)),xB=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&yp(o.date,r,n)),jm=(e,t)=>RD(e,n=>n[t]),iLe=e=>{const t=((e==null?void 0:e.startDate)&&Qa(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&Qa(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},qO=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=iLe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},oLe=e=>yB(e.dateRange),aLe=({dateRange:e,...t})=>({...t,dateRange:eLe(e)}),fn=(e,t)=>LD(e,t,{serializeError:n=>n}),r4=5e3,sLe=2,lLe=4,cLe=({currentPage:e,pagesCount:t})=>e>=t,uLe=(e,t)=>t*100/e,wB=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async l=>e({...a,page:l,itemsPerPage:r4}).then(({data:c})=>c))).then(l=>l.flat()),o=async(a,s,l=0)=>{if(t())return[];const c=await i(a,s[l]);return n(uLe(s.length,l+1)),l<s.length-1?c.concat(await o(a,s,l+1)):c};return async a=>{const{pagination:s,data:l}=await e({...a,page:1,itemsPerPage:r4});if(cLe(s))return l;const c=HP(sLe,s.pagesCount+1),f=Ac(c,r);return s.pagesCount-1>r&&n(0),l.concat(await o(a,f))}},bp=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),_p=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Xn(`${e}/progressChanged`),i=Xn(`${e}/fallbackToInterval`),o=fn(e,async(a,{getState:s,dispatch:l})=>{var c;const{params:f,options:d}=a,{visitsLoader:p,lastVisitLoader:v}=t(a),y=tLe(f.dateRange),g=qO(f),x=d.loadPrevInterval&&oLe(f)?qO(aLe(f)):void 0,_=lLe/(x?2:1),b=x?{main:0,prev:0}:{main:0},w=(j,F)=>{b[j]=F;const k=Object.values(b),I=k.reduce((D,K)=>D+K,0);l(r(I/k.length))},S=wB({visitsLoader:p,shouldCancel:()=>n(s),progressChanged:j=>w("main",j),batchSize:_}),[P,E,T]=await Promise.all([S(g),v((c=f.filter)==null?void 0:c.excludeBots),x?S(x).then(j=>j.map(F=>{if(y===void 0)return F;const{date:k,...I}=F,D=KP(Er(k),y);return{...I,date:Qa(D)}})):Promise.resolve(void 0)]);return!P.length&&E&&l(i(JMe(E.date))),{...a,visits:P,prevVisits:T}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},tf=Xn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),xp=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:l,fallbackToInterval:c}=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,(y,{error:g})=>({...n,errorData:Br(g)??null})),v.addCase(s,(y,{payload:g})=>({...y,...g,loading:!1,progress:null,errorData:null})),v.addCase(l,(y,{payload:g})=>({...y,progress:g})),v.addCase(c,(y,{payload:g})=>({...y,fallbackInterval:g})),v.addCase(tf,(y,{payload:g})=>{const{visits:x}=y,_=r(y,g.createdVisits).map(({visit:b})=>b);return _.length?{...y,visits:[..._,...x]}:y}),i==null||i(v)}}),{cancelGetVisits:p}=d;return{reducer:f,cancelGetVisits:p}},OB="shlink/domainVisits",fb="DEFAULT",fLe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},dLe=e=>_p({typePrefix:`${OB}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=bp(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),hLe=e=>xp({name:OB,initialState:fLe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>_B(r,t,n==null?void 0:n.dateRange)}),iv=({className:e="",placement:t,children:n})=>{const r=Mi();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(je,{icon:cP})}),m.jsx(Fr,{target:r,placement:t,children:n})]})},SB=e=>t=>{t.preventDefault(),e()},yC=(e,t,n=1)=>HP(n,e+1).map(t),pLe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Rs=e=>e!=null&&!pLe(e),d_=e=>e||null,KO=e=>e?"true":"false",h_=e=>e===void 0?void 0:KO(e),p_=({isLast:e,...t})=>m.jsx(ev,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),mLe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=M.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[c,f]=M.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[d,p]=M.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),v=SB(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:d_(s),regular404Redirect:d_(c),invalidShortUrlRedirect:d_(d)}}).then(t));return m.jsx(vr,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:v,children:[m.jsxs(mo,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Li,{children:[m.jsxs(p_,{value:s,onChange:l,children:[m.jsxs(iv,{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(p_,{value:c,onChange:f,children:[m.jsxs(iv,{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(p_,{value:d,isLast:!0,onChange:p,children:[m.jsx(iv,{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(as,{children:[m.jsx(qe,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"primary",children:"Save"})]})]})})},vLe=({domain:e,editDomainRedirects:t})=>{const[n,r]=Lt(),i=ds(),o=cb();return m.jsxs(l0,{children:[m.jsxs(Ne,{tag:At,to:`${i}/domain/${e.domain}${e.isDefault?`_${fb}`:""}/visits`,children:[m.jsx(je,{icon:lP,fixedWidth:!0})," Visit stats"]}),m.jsxs(Ne,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[m.jsx(je,{icon:Jy,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{onClick:r,children:[m.jsx(je,{fixedWidth:!0,icon:sP})," Edit redirects"]}),m.jsx(mLe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},gLe=(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 Xae({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},yLe=(e,t)=>{const[n,r]=M.useState(t),i=M.useCallback(o=>{const{location:a,history:s}=window,l=mD(a.search);l[e]=o,s.pushState(null,"",`${a.pathname}?${s0(l)}`),r(o)},[e]);return[n,i]},bC=e=>{const t=$u();return M.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},bLe=()=>{const e=po();return M.useCallback(()=>e(-1),[e])},_C=(e,t)=>{const n=M.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=M.useState(n());return M.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},_Le=(e,t,n)=>{M.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},xLe=({status:e,matchMedia:t=window.matchMedia})=>{const n=Mi(),r=_C(991,t);return e==="validating"?m.jsx(je,{fixedWidth:!0,icon:R6,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(je,{fixedWidth:!0,icon:qd,className:"text-muted"}):m.jsx(je,{fixedWidth:!0,icon:_x,className:"text-danger"})}),m.jsx(Fr,{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(hr,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},m_=({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)"})]})]}),wLe=()=>m.jsxs(m.Fragment,{children:[m.jsx(je,{fixedWidth:!0,icon:lK,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Fr,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),OLe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return M.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(wLe,{})}),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(m_,{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(m_,{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(m_,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(xLe,{status:s})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(vLe,{domain:e,editDomainRedirects:t})})]})},i4=[{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}],SLe=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:o,defaultRedirects:a,loading:s,error:l,errorData:c}=e,f=a??((i=o.find(({isDefault:p})=>p))==null?void 0:i.redirects),d=fC();return s?m.jsx(zo,{loading:!0}):m.jsxs(uC,{value:d,children:[m.jsx(ip,{className:"mb-3",onChange:t}),m.jsx(dC,{type:"domains",className:"mb-3"}),l?m.jsx(Zn,{type:"error",children:m.jsx(ho,{errorData:c,fallbackMessage:"Error loading domains :("})}):m.jsx(gt,{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:i4.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:i4.length,className:"text-center",children:"No results found"})}),o.map(p=>m.jsx(OLe,{domain:p,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:f},p.domain))]})]})})]})},PLe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ELe=e=>fn(PLe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Am="shlink/domainsList",km={domains:[],filteredDomains:[],loading:!1,error:!1},o4=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},a4=(e,t)=>n=>n.domain!==e?n:{...n,status:t},CLe=(e,t)=>{const n=fn(`${Am}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=fn(`${Am}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=Xn(`${Am}/filterDomains`),{reducer:o}=Qt({name:Am,initialState:km,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...km,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...km,error:!0,errorData:Br(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...km,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...c},{payload:f})=>({...c,domains:s.map(a4(f.domain,f.status)),filteredDomains:l.map(a4(f.domain,f.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(o4(l)),filteredDomains:s.filteredDomains.map(o4(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},TLe=(e,t)=>{e.serviceFactory("ManageDomains",()=>SLe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",CLe,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",ELe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},s4="shlink/mercure",jLe={loading:!0,error:!1},ALe=e=>{const t=fn(`${s4}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Qt({name:s4,initialState:jLe,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}},kLe=e=>{e.serviceFactory("mercureInfoReducerCreator",ALe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Rt(e){return M.useRef(e).current}function $t(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const NLe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:d})=>n(JSON.parse(d)),c=({status:d})=>d===401&&r(),f=t.map(d=>{const p=new URL(i);p.searchParams.append("topic",d);const v=new Qae.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return v.onmessage=l,v.onerror=c,v});return()=>f.forEach(d=>d.close())};function Di(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Mu();return M.useEffect(()=>{const{interval:l}=a,c=v=>l?n.add(v):i([v]),f=t(s),d=NLe(a,f,c,o);if(!l)return d;const p=setInterval(()=>{i([...n]),n.clear()},l*1e3*60);return()=>{clearInterval(p),d==null||d()}},[i,o,a,s]),m.jsx(e,{...r})}}class Jn{}za(Jn,"visits","https://shlink.io/new-visit"),za(Jn,"orphanVisits","https://shlink.io/new-orphan-visit"),za(Jn,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const xC="shlink/shortUrlDeletion",l4={shortCode:"",loading:!1,deleted:!1,error:!1},MLe=e=>fn(`${xC}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),PB=Xn(`${xC}/shortUrlDeleted`),LLe=e=>{const{actions:t,reducer:n}=Qt({name:xC,initialState:l4,reducers:{resetDeleteShortUrl:()=>l4},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Br(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}},EB="shlink/shortUrlsList",CB=5,RLe={loading:!0,error:!1},$Le=e=>fn(`${EB}/listShortUrls`,t=>e().listShortUrls(t??{})),ILe=(e,t,n)=>Qt({name:EB,initialState:RLe,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,CB-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Ed(a,s,l)?o:a}))}),r.addCase(PB,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Ed(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(tf,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:l})=>l&&Ed(a,l.shortCode,l.domain)))==null?void 0:s.shortUrl)??a}))})}}),c4=10,{ceil:DLe}=Math,FLe=new Intl.NumberFormat("en-US"),qt=e=>FLe.format(Number(e)),BLe=e=>DLe(e/c4)*c4,YO=({children:e,title:t,link:n,tooltip:r})=>{const i=Mi();return m.jsxs(m.Fragment,{children:[m.jsxs(Dr,{innerRef:i,className:"highlight-card",body:!0,tag:At,to:n,children:[m.jsx(je,{size:"3x",className:"highlight-card__link-icon",icon:dse}),m.jsx(nD,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),m.jsx(tD,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&m.jsx(Fr,{target:i,placement:"bottom",children:r})]})},u4=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(YO,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:qt(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":qt(t&&n.nonBots?n.nonBots:n.total)}),f4=({children:e,titleLinkText:t,titleLink:n,title:r})=>m.jsxs(Dr,{children:[m.jsxs(np,{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(At,{to:n,children:[t," »"]})]}),m.jsx(tp,{children:e})]}),TB=Di(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=Rt(TB),{loading:s,shortUrls:l}=e,{loading:c}=n,{loading:f,nonOrphanVisits:d,orphanVisits:p}=i,v=ds(),y=po(),g=nr("visits");return M.useEffect(()=>{t({itemsPerPage:CB,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),m.jsxs(m.Fragment,{children:[m.jsxs(Pr,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(u4,{title:"Visits",link:`${v}/non-orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:d})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(u4,{title:"Orphan visits",link:`${v}/orphan-visits`,excludeBots:(g==null?void 0:g.excludeBots)??!1,loading:f,visitsSummary:p})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(YO,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:s?"Loading...":qt((l==null?void 0:l.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(YO,{title:"Tags",link:`${v}/manage-tags`,children:c?"Loading...":qt(n.tags.length)})})]}),m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(f4,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${v}/create-short-url`,children:m.jsx(a,{basicMode:!0})}),m.jsx(f4,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${v}/list-short-urls/1`,children:m.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:x=>y(`${v}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[Jn.visits,Jn.orphanVisits]),ULe=$t(TB,["ShortUrlsTable","CreateShortUrl"]);function zLe(e,t){e.factory("Overview",ULe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const jB="shlink/setShortUrlRedirectRules",d4={saving:!1,saved:!1,error:!1},VLe=e=>fn(`${jB}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),WLe=e=>{const{reducer:t,actions:n}=Qt({name:jB,initialState:d4,reducers:{resetSetRules:()=>d4},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:Br(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},AB="shlink/getShortUrlRedirectRules",HLe={loading:!0,error:!1},GLe=e=>fn(`${AB}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),qLe=e=>Qt({name:AB,initialState:HLe,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 KLe(e,t){var n=!1;return function(...r){n||(e.call(null,...r),n=!0,setTimeout(function(){n=!1},t))}}function kB(e){return e.split(" ").filter(t=>t)}var NB=typeof window<"u";function bl(e,t,n=!1){if(!t)return;const r=kB(t);if(r.length&&!r.includes("longTouch"))for(const i of e){if(!wp(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 Oy(e,t){if(!t)return;const n=kB(t);if(n.length)for(const r of e){if(!wp(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 MB(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 YLe(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(!wp(r))return;let i,o=!0;for(;r&&o;){if(ao.has(r)||Ei.has(r)){o=!1,i=Ei.has(r);break}r=r.parentNode}if(i){const a=Ei.get(r);return a?{parent:{el:r,data:a}}:void 0}else{const a=ao.get(r);if(!a)return;const s=Ei.get(r.parentNode);return s?{node:{el:r,data:a},parent:{el:r.parentNode,data:s}}:void 0}}function wp(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function LB(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 RB(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(!wp(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];RB(o,a,n)}}function Tl(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var h4={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},ao=new WeakMap,Ei=new WeakMap,Ge=void 0;function ZLe(){Ge=void 0}function $B(e){return Ge={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},Ge}function XLe(e,t){return Ge={...e,...t},Ge}function IB(e){const{x:t,y:n}=Tl(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:MB(e.targetData.node.el)}}function QLe(e,t){const n=DB(e),r=[...ZO(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,XO(t.targetData.parent.el,t.targetData.parent.data,[...r])}function ZO(e,t){return[...t.getValues(e)]}function XO(e,t,n){t.setValues(n,e)}function DB(e){return[...e.draggedNodes.map(t=>t.data.value)]}function JLe({parent:e,getValues:t,setValues:n,config:r={}}){var i,o;if(!NB)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),Ge){Ge.remapJustFinished=!1,Ge.lastTargetValue=void 0;const{x:l,y:c}=Tl(s);Ge.coordinates.y=c,Ge.coordinates.x=l,db()}}),FB(e);const a={getValues:t,setValues:n,config:{handleDragstart:r4e,handleDragoverNode:j4e,handleDragoverParent:A4e,handleEnd:h4e,handleTouchstart:m4e,handleTouchmove:b4e,handleTouchOverNode:l4e,handleTouchOverParent:k4e,performSort:QLe,performTransfer:R4e,root:document,setupNode:c4e,setupNodeRemap:zB,reapplyDragClasses:u4e,tearDownNode:d4e,tearDownNodeRemap:f4e,remapFinished:n4e,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{}};e4e(e,a),(i=r.plugins)==null||i.forEach(s=>{var l,c;(c=(l=s(e))==null?void 0:l.tearDown)==null||c.call(l)}),(o=r.plugins)==null||o.forEach(s=>{var l,c;(c=(l=s(e))==null?void 0:l.setup)==null||c.call(l)}),BB(e,!0)}function FB(e){const t=Ei.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function e4e(e,t){new MutationObserver(t4e).observe(e,{childList:!0}),Ei.set(e,t),t.abortControllers.mainParent=LB(e,{dragover:$4e(KLe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function t4e(e){const t=e[0].target;t instanceof HTMLElement&&BB(t)}function BB(e,t){const n=Ei.get(e);if(!n)return;const r=[],i=n.config;for(let s=0;s<e.children.length;s++){const l=e.children[s];if(!wp(l))continue;const c=ao.get(l);(t||!c)&&i.tearDownNode({node:l,parent:e,nodeData:c,parentData:n}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(l))&&r.push(l)}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 l=r[s],c=ao.get(l),f=Object.assign(c??{privateClasses:[],abortControllers:{}},{value:o[s],index:s});if(Ge&&f.value===Ge.draggedNode.data.value&&(Ge.draggedNode.data=f,Ge.draggedNode.el=l),Ge&&Ge.draggedNodes.map(p=>p.data.value).includes(f.value)){const p=Ge.draggedNodes.find(v=>v.data.value===f.value);p&&(p.el=l)}a.push({el:l,data:f});const d={node:l,parent:e,parentData:n,nodeData:f};(t||!c)&&i.setupNode(d),zB(d)}Ei.set(e,{...n,enabledNodes:a}),i.remapFinished(n)}function n4e(){Ge&&(Ge.preventEnter=!1,Ge.swappedNodeValue=void 0,Ge.remapJustFinished=!0)}function r4e(e){e.e instanceof DragEvent&&s4e({e:e.e,targetData:e.targetData})}function i4e(e,t,n){bl([e],t),setTimeout(()=>{Oy([e],t),bl([e],n)})}function o4e(e){const t=$B(IB(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 UB(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=Tl(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 a4e(e){if(!UB(e))return;const t=v4e(e);g4e(e,t),y4e(e,t)}function s4e(e){if(!UB(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,n=o4e(e),r=e.targetData.node.el.style.zIndex;n.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",i4e(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function l4e(e){Ge&&(e.detail.targetData.parent.el===Ge.lastParent.el?HB(e.detail,Ge):hb(e.detail,Ge))}function c4e(e){var t;const n=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=LB(e.node,{dragstart:Xl(n.handleDragstart),dragover:Xl(n.handleDragoverNode),dragend:Xl(n.handleEnd),touchstart:Xl(n.handleTouchstart),touchmove:Xl(n.handleTouchmove),touchend:Xl(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 zB(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 u4e(e,t){if(!Ge)return;const n="touchedNode"in Ge?t.config.touchDropZoneClass:t.config.dropZoneClass;Ge.draggedNode.el===e&&bl([e],n,!0)}function f4e(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 d4e(e){var t,n,r,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,l;(l=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||l.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 h4e(e){Ge&&(p4e(e,Ge),ZLe())}function p4e(e,t){var n,r,i,o;document.removeEventListener("contextmenu",VB),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(n=Ei.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),bl(t.draggedNodes.map(l=>l.el),s,!0),Oy(t.draggedNodes.map(l=>l.el),s),a!=null&&a.longTouchClass&&Oy(t.draggedNodes.map(l=>l.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 m4e(e){e.e instanceof TouchEvent&&a4e({e:e.e,targetData:e.targetData})}function v4e(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return XLe($B(IB(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:MB(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 VB(e){e.preventDefault()}function g4e(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),RB(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",VB)}function y4e(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,n.longTouchClass&&e.e.cancelable&&bl(t.draggedNodes.map(r=>r.el),n.longTouchClass),e.e.preventDefault())},n.longTouchTimeout||200))}function b4e(e){!Ge||!("touchedNode"in Ge)||T4e(e,Ge)}function _4e(e,t){t.longTouchClass&&Oy(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&bl([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&bl(e.draggedNodes.map(n=>n.el),t.touchDropZoneClass)}function x4e(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 w4e(e){const t=x4e(Ge);if(t)switch(e){case"down":return E4e(t.state,t);case"up":return P4e(t.state,t);case"right":return O4e(t.state,t);case"left":return S4e(t.state,t)}}function O4e(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 S4e(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 P4e(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 E4e(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 C4e(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:n,y:r}=Tl(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`,_4e(t,e.targetData.parent.data.config)}function T4e(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),C4e(e,t),db();const n=YLe(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 db(){for(const e of Object.keys(h4)){const[t,n]=h4[e];WB(e,t,n)}}function WB(e,t,n){const r=w4e(e);r&&(r.scrollParent.scrollBy(t,n),setTimeout(()=>{WB(e,t,n)},"touchedNode"in r?10:100))}function j4e(e){if(!Ge)return;const{x:t,y:n}=Tl(e.e);Ge.coordinates.y=n,Ge.coordinates.x=t,db(),M4e(e,Ge)}function A4e(e){if(!Ge)return;const{x:t,y:n}=Tl(e.e);Ge.coordinates.y=n,Ge.coordinates.x=t,db(),hb(e,Ge)}function k4e(e){Ge&&hb(e.detail,Ge)}function N4e(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 M4e(e,t){var n;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((n=t.lastParent)==null?void 0:n.el)?HB(e,t):hb(e,t)}function L4e(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,l=o.x-a.x;let c;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(l)?c=s>0?"above":"below":c=l>0?"left":"right";const d=t.lastParent.data.config.threshold;switch(c){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 HB(e,t){const{x:n,y:r}=Tl(e.e);L4e(e,t,n,r)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function Xl(e){function t(n){var r;const i=ao.get(n),o=n.parentNode||((r=Ge==null?void 0:Ge.lastParent)==null?void 0:r.el);if(!i)return;const a=Ei.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 R4e(e,t){const n=DB(e),r=ZO(e.lastParent.el,e.lastParent.data).filter(s=>!n.includes(s)),i=ZO(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)),XO(e.lastParent.el,e.lastParent.data,r),XO(t.targetData.parent.el,t.targetData.parent.data,i)}function hb(e,t){N4e(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function $4e(e){function t(n){const r=Ei.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 I4e(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 D4e(e,t){const n=I4e(e);n&&t(n)}var Sy=new WeakMap;function F4e(e){const t=Sy.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function B4e(e,t){const n=Sy.get(t);n&&n[1](e),Sy.set(t,[e,n[1]])}function U4e(e,t){return n=>{Sy.set(n,t),JLe({parent:n,getValues:F4e,setValues:B4e,config:e})}}function p4(e){NB&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;D4e(n,U4e(i,r))}))}function z4e(e,t={}){const n=M.useRef(null),[r,i]=M.useState(e);function o(a={}){p4({parent:n,state:[r,i],...a})}return M.useEffect(()=>{p4({parent:n,state:[r,i],...t})},[r]),M.useEffect(()=>()=>{n.current&&FB(n.current)},[]),[n,r,i,o]}const pb=()=>{const e=po(),t=ds(),n=$u(),r=M.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f}=n,d=o?Jre(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...f,orderBy:d,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}},[n]),i=M.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:d,...p}=a,v={...p,orderBy:s&&Qre(s),tags:l.length>0?l.join(","):void 0,excludeBots:h_(c),excludeMaxVisitsReached:h_(f),excludePastValidUntil:h_(d)},y=s0(v),g=y?`?${y}`:"";e(`${t}/list-short-urls/1${g}`)},[r,e,t]);return[r,i]},wC=()=>{const{domain:e}=$u(),{shortCode:t=""}=Mu();return M.useMemo(()=>({shortCode:hC(t),domain:e}),[e,t])},mb=()=>{const e=bLe();return m.jsx(qe,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:m.jsx(je,{icon:xK})})},V4e=(e,{maxVersion:t,minVersion:n})=>{const r=!n||u2(e,n,">=");return(!t||u2(e,t,"<="))&&r},GB={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"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.*"}};Object.freeze(GB);const ua=(e,t)=>t==="latest"||V4e(t,GB[e]),qB=e=>({excludeBotsOnShortUrls:ua("excludeBotsOnShortUrls",e),filterDisabledUrls:ua("filterDisabledUrls",e),deviceLongUrls:ua("deviceLongUrls",e),shortUrlVisitsDeletion:ua("shortUrlVisitsDeletion",e),orphanVisitsDeletion:ua("orphanVisitsDeletion",e),shortUrlRedirectRules:ua("shortUrlRedirectRules",e),urlValidation:ua("urlValidation",e),ipRedirectCondition:ua("ipRedirectCondition",e)}),KB=M.createContext(qB("0.0.0")),W4e=KB.Provider,H4e=e=>M.useMemo(()=>qB(e),[e]),Ko=e=>M.useContext(KB)[e],G4e={android:"Android",ios:"iOS",desktop:"Desktop"},q4e=({deviceType:e,onDeviceTypeChange:t})=>{const n=M.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(G4e).map(([r,i])=>m.jsx("option",{value:r,children:i},r))]})]})},YB=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=M.useId();return m.jsxs("div",{children:[m.jsxs("label",{htmlFor:i,children:[n,":"]}),m.jsx(An,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:r,required:!0})]})},K4e=({language:e,onLanguageChange:t})=>m.jsx(YB,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),Y4e=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=M.useId(),o=M.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:i,children:"Param name:"}),m.jsx(An,{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(An,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},Z4e=({ipAddress:e,onIpAddressChange:t})=>m.jsx(YB,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),X4e=({condition:e,onConditionChange:t,onDelete:n})=>{const r=M.useId(),i=M.useCallback(c=>t({type:c,matchValue:"",matchKey:null}),[t]),o=M.useCallback(c=>t({...e,matchValue:c}),[e,t]),a=M.useCallback(c=>t({...e,matchKey:c}),[e,t]),s=Ko("ipRedirectCondition"),l=M.useMemo(()=>{const c={device:"Device type",language:"Language","query-param":"Query param"};return s?{...c,"ip-address":"IP address"}: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:B6,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:c=>i(c.target.value),children:Object.entries(l).map(([c,f])=>m.jsx("option",{value:c,children:f},c))})]}),e.type==="device"&&m.jsx(q4e,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&m.jsx(K4e,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&m.jsx(Y4e,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&m.jsx(Z4e,{ipAddress:e.matchValue,onIpAddressChange:o})]})},ZB=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=M.useState(r??{longUrl:"",conditions:[]}),a=M.useCallback(v=>{v.preventDefault(),v.stopPropagation(),i&&n(i),t()},[n,i,t]),s=M.useCallback(()=>o(({longUrl:v,conditions:y})=>({longUrl:v,conditions:[...y,{type:"device",matchValue:"",matchKey:null}]})),[]),l=M.useCallback((v,y)=>o(({longUrl:g,conditions:x})=>{const _=[...x];return _[v]=y,{longUrl:g,conditions:_}}),[]),c=M.useCallback(v=>o(({longUrl:y,conditions:g})=>{const x=[...g];return x.splice(v,1),{longUrl:y,conditions:x}}),[]),f=Mi(),d=M.useCallback(()=>{var v;return(v=f==null?void 0:f.current)==null?void 0:v.focus()},[f]),p=M.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return m.jsx(vr,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:d,onClosed:p,children:m.jsxs("form",{onSubmit:a,children:[m.jsx(mo,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),m.jsxs(Li,{children:[m.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),m.jsx(An,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:v=>o(y=>({...y,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:Zh})})]}),i.conditions.length===0&&m.jsx("div",{className:"text-center",children:m.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&m.jsx(Pr,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((v,y)=>m.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:m.jsx(X4e,{condition:v,onConditionChange:g=>l(y,g),onDelete:()=>c(y)})},`${y}_${v.type}`))})]}),m.jsxs(as,{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"})]})]})})},Q4e=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,l]=Lt();return m.jsxs(gt,{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:CK})}),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:zK})}),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:IK})})]}),m.jsxs("div",{className:"flex-grow-1",children:[m.jsxs("div",{className:"mb-2",children:[m.jsx("b",{children:"Long URL:"})," ",m.jsx(hr,{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((c,f)=>m.jsxs("div",{className:"badge bg-secondary",children:[c.type==="device"&&m.jsxs(m.Fragment,{children:["Device is ",c.matchValue]}),c.type==="language"&&m.jsxs(m.Fragment,{children:[c.matchValue," language is accepted"]}),c.type==="query-param"&&m.jsxs(m.Fragment,{children:["Query string contains ",c.matchKey,"=",c.matchValue]}),c.type==="ip-address"&&m.jsxs(m.Fragment,{children:["IP address matches ",c.matchValue]})]},`${c.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:l,children:m.jsx(je,{icon:L6})}),m.jsx(qe,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:m.jsx(je,{icon:Jq})})]})]}),m.jsx(ZB,{onSave:a,isOpen:s,toggle:l,initialData:n})]})},J4e=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=wC(),{shortUrls:l}=r,c=s&&(l==null?void 0:l.get(s)),[f,d,p]=z4e([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:v,saved:y,errorData:g}=o,[x,_]=Lt(),b=M.useCallback(F=>p((k=[])=>[...k,F]),[p]),w=M.useCallback(F=>p((k=[])=>{const I=[...k];return I.splice(F,1),I}),[p]),S=M.useCallback((F,k)=>p((I=[])=>{const D=[...I];return D[F]=k,D}),[p]),P=M.useCallback((F,k)=>p((I=[])=>{if(!I[k])return I;const D=[...I],K=D[k];return D[k]=D[F],D[F]=K,D}),[p]),E=M.useCallback(F=>P(F,F-1),[P]),T=M.useCallback(F=>P(F,F+1),[P]),j=M.useCallback(F=>{F.preventDefault(),d&&i({shortUrl:s,data:{redirectRules:d}})},[s,d,i]);return M.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),M.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(Dr,{body:!0,children:[m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(mb,{}),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(hr,{href:(c==null?void 0:c.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(hr,{href:e.defaultLongUrl??""})]})]})}),m.jsx("div",{children:m.jsxs(qe,{outline:!0,color:"primary",onClick:_,children:[m.jsx(je,{icon:Zh,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(gt,{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((F,k)=>m.jsx(Q4e,{redirectRule:F,priority:k+1,isLast:k===d.length-1,onDelete:()=>w(k),onMoveUp:()=>E(k),onMoveDown:()=>T(k),onUpdate:I=>S(k,I)},`${F.longUrl}_${k}`))}),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"})})]}),g&&m.jsx(Zn,{type:"error",children:m.jsx(ho,{errorData:g,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),y&&m.jsx(Zn,{type:"success",children:"Redirect rules properly saved."}),m.jsx(ZB,{isOpen:x,toggle:_,onSave:b})]})},eRe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>J4e),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",GLe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",VLe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",qLe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",WLe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},tRe=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}),XB=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=Rt(XB),a=nr("shortUrlCreation"),s=M.useMemo(()=>tRe(a),[a]);return m.jsxs(m.Fragment,{children:[m.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async l=>(n(),e(l))}),m.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},nRe=$t(XB,["ShortUrlForm","CreateShortUrlResult"]),QB=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Rt(QB),o=wC(),{loading:a,error:s,errorData:l,shortUrls:c}=e,f=o&&(c==null?void 0:c.get(o)),{saving:d,saved:p,error:v,errorData:y}=n,g=nr("shortUrlCreation"),x=M.useMemo(()=>KMe(f,g),[f,g]);return M.useEffect(()=>{o&&t([o])},[t,o]),a?m.jsx(zo,{loading:!0}):s?m.jsx(Zn,{type:"error",children:m.jsx(ho,{errorData:l,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(Dr,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(mb,{}),m.jsx("div",{className:"text-center flex-grow-1",children:m.jsxs("small",{children:["Edit ",m.jsx(hr,{href:(f==null?void 0:f.shortUrl)??""})]})})]})})}),m.jsx(i,{initialState:x,saving:d,onSave:async _=>{f&&r({...f,data:_})}}),p&&v&&m.jsx(Zn,{type:"error",className:"mt-3",children:m.jsx(ho,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),p&&!v&&m.jsx(Zn,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},rRe=$t(QB,["ShortUrlForm"]),JB=({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))},eU=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=Rt(eU),[i,o]=r(),{error:a,saved:s}=e;if(M.useEffect(()=>{t()},[t]),a)return m.jsxs(Zn,{type:"error",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"error-close-button",icon:_x,className:"float-end pointer",onClick:t}),m.jsx(ho,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=e.result;return m.jsxs(Zn,{type:"success",className:"mt-3",children:[n&&m.jsx(je,{"data-testid":"success-close-button",icon:_x,className:"float-end pointer",onClick:t}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:l})]}),m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>JB({text:l,onCopy:o}),children:[m.jsx(je,{icon:XD})," Copy ",m.jsxs("span",{className:"sr-only",children:[l," to clipboard"]})]}),m.jsx(o0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},iRe=$t(eU,["useTimeoutToggle"]),v_="delete",oRe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=M.useState("");M.useEffect(()=>i,[i]);const{loading:c,error:f,deleted:d,errorData:p}=r,v=M.useCallback(()=>{i(),t()},[i,t]),y=M.useCallback(g=>(g.preventDefault(),o(e).then(x=>!cC(x)&&t())),[o,e,t]);return m.jsx(vr,{isOpen:n,toggle:v,centered:!0,onClosed:()=>d&&a(e),children:m.jsxs("form",{onSubmit:y,children:[m.jsx(mo,{toggle:v,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(Li,{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:v_})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${v_}`,value:s,onChange:g=>l(g.target.value)}),f&&m.jsx(Zn,{type:VMe(p)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(ho,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(as,{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!==v_||c,children:c?"Deleting...":"Delete"})]})]})})},tU=({amount:e=0,loading:t=!1,...n})=>m.jsxs(qe,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(je,{icon:iK})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",qt(e),")"]})]}),m4=20,nU=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Rt(nU),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=pb(),[c,,f,d]=Lt(),p=M.useCallback(async()=>{const v=e/m4,y=async(x=1)=>{const{data:_}=await t().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:m4});return x>=v?_:_.concat(await y(x+1))};f();const g=await y();n.exportShortUrls(g.map(x=>{var _;const{hostname:b,pathname:w}=new URL(x.shortUrl),S=w.substring(1);return{createdAt:x.dateCreated,domain:b,shortCode:S,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((_=x==null?void 0:x.visitsSummary)==null?void 0:_.total)??x.visitsCount??0}})),d()},[e,t,a,s,n,i,o,f,d,r,l]);return m.jsx(tU,{loading:c,className:"btn-md-block",amount:e,onClick:p})},aRe=$t(nU,["apiClientFactory","ReportExporter"]),rU=({text:e,onCopy:t,copyToClipboard:n=JB})=>m.jsx(yl,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:m.jsx(je,{icon:XD,className:"fs-5"})}),sRe=(e,t)=>{const n=`${e}/qr-code`,r=s0({...t});return`${n}${r?`?${r}`:""}`},v4=({name:e,value:t,step:n,min:r,max:i,onChange:o,className:a,initial:s=r})=>{const l=M.useId();return m.jsxs(cl,{className:a,children:[t===void 0&&m.jsxs(qe,{outline:!0,color:"link",className:"text-start fst-italic w-100",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},onClick:()=>o(s),children:["Customize ",e]}),t!==void 0&&m.jsxs("div",{className:"d-flex gap-3",children:[m.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[m.jsxs("label",{htmlFor:l,className:"text-capitalize",children:[e,": ",t,"px"]}),m.jsx("input",{id:l,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:c=>o(Number(c.target.value))})]}),m.jsx(qe,{"aria-label":`Default ${e}`,title:`Default ${e}`,outline:!0,color:"link",onClick:()=>o(void 0),style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},children:m.jsx(je,{icon:D6})})]})]})},lRe=({errorCorrection:e,onChange:t})=>m.jsxs(ea,{text:e?`Error correction (${e})`:m.jsx("i",{children:"Default error correction"}),children:[m.jsx(Ne,{active:!e,onClick:()=>t(void 0),children:"Default"}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{active:e==="L",onClick:()=>t("L"),children:[m.jsx("b",{children:"L"}),"ow"]}),m.jsxs(Ne,{active:e==="M",onClick:()=>t("M"),children:[m.jsx("b",{children:"M"}),"edium"]}),m.jsxs(Ne,{active:e==="Q",onClick:()=>t("Q"),children:[m.jsx("b",{children:"Q"}),"uartile"]}),m.jsxs(Ne,{active:e==="H",onClick:()=>t("H"),children:[m.jsx("b",{children:"H"}),"igh"]})]}),cRe=({format:e,onChange:t})=>m.jsxs(ea,{text:e?`Format (${e})`:m.jsx("i",{children:"Default format"}),children:[m.jsx(Ne,{active:!e,onClick:()=>t(void 0),children:"Default"}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(Ne,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),iU=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=Rt(iU),[o,a]=M.useState(),[s,l]=M.useState(),[c,f]=M.useState(),[d,p]=M.useState(),v=M.useMemo(()=>sRe(e,{size:o,format:c,margin:s,errorCorrection:d}),[e,o,c,s,d]),[y,g]=M.useState(),x=M.useCallback(_=>{const b=_.target,{naturalWidth:w}=b;w<500?g(void 0):g(w<800?"lg":"xl")},[]);return m.jsxs(vr,{isOpen:r,toggle:n,centered:!0,size:y,children:[m.jsxs(mo,{toggle:n,children:["QR code for ",m.jsx(hr,{href:e,children:e})]}),m.jsxs(Li,{children:[m.jsxs(Pr,{children:[m.jsx(v4,{className:"col-sm-6",name:"size",value:o,step:10,min:50,max:1e3,initial:300,onChange:a}),m.jsx(v4,{className:"col-sm-6",name:"margin",value:s,step:1,min:0,max:100,onChange:l}),m.jsx(cl,{className:"d-grid col-sm-6",children:m.jsx(cRe,{format:c,onChange:f})}),m.jsx(cl,{className:"col-sm-6",children:m.jsx(lRe,{errorCorrection:d,onChange:p})})]}),m.jsxs("div",{className:"text-center",children:[m.jsxs("div",{className:"mb-3",children:[m.jsx(hr,{href:v}),m.jsx(rU,{text:v})]}),m.jsx("img",{src:v,alt:"QR code",className:"shadow-lg",style:{maxWidth:"100%"},onLoad:x}),m.jsx("div",{className:"mt-3",children:m.jsxs(qe,{block:!0,color:"primary",onClick:()=>{i.saveImage(v,`${t}-qr-code.${c}`).catch(()=>{})},children:["Download ",m.jsx(je,{icon:F6,className:"ms-1"})]})})]})]})]})},uRe=$t(iU,["ImageDownloader"]),Py=({date:e,format:t=fB,relative:n=!1})=>{const r=mC(e)?e:Ka(e);return m.jsx("time",{dateTime:`${Oae(r)}000`,children:n?`${xae(Xa(),r)} ago`:pg(r,t)})},fRe=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:ZK,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&&mg(Er(a),Xa())?{icon:oA,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:zh(Er(a))}),"."]})}:o&&mg(Xa(),Er(o))?{icon:oA,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:zh(Er(o))}),"."]})}:{icon:qd,className:"text-primary",description:"This short URL can be visited normally."}},dRe=({shortUrl:e})=>{const t=Mi(),{icon:n,className:r,description:i}=fRe(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(Fr,{target:t,placement:"bottom",children:i})]})},hRe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${cB(t)}/${r}${i}`},ov=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=ds();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(At,{to:hRe(o,e,t),...i,children:r})},oU=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=Mi(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},l=!!o||!!a||!!s,c=m.jsx(ov,{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:qt(e)})});return l?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[c,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&m.jsxs(m.Fragment,{children:[" / ",qt(o)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(je,{icon:cP})})]})]}),m.jsx(Fr,{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:qt(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:zh(Er(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:zh(Er(s))}),"."]})]})})]}):c},pRe=e=>!!e.onClose,mRe=e=>!!e.onClick,vb=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=mRe(e),a=o?yl:"span",s=M.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,pRe(e)&&m.jsx(yl,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},vRe=({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(vb,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),aU=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:l}=Rt(aU),[c,f]=l(),[d,p]=l(!1,500),v=M.useRef(!0),[{excludeBots:y}]=pb(),g=nr("visits"),x=y??(g==null?void 0:g.excludeBots);return M.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(Py,{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(hr,{href:e.shortUrl})}),m.jsx(rU,{text:e.shortUrl,onCopy:f}),m.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!c,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(hr,{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(hr,{href:e.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(vRe,{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(oU,{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.jsx(dRe,{shortUrl:e})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(a,{shortUrl:e})})]})},gRe=$t(aU,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),sU=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r,QrCodeModal:i}=Rt(sU),[o,,a,s]=Lt(),[l,,c,f]=Lt(),d=cb(),p=Ko("shortUrlRedirectRules"),{confirmDeletions:v=!0}=nr("shortUrlsList",{}),y=M.useCallback(async()=>{const g=await t(e);cC(g)||n(e)},[t,e,n]);return m.jsxs(l0,{minWidth:p?220:190,children:[m.jsxs(Ne,{tag:ov,shortUrl:e,suffix:"visits",asLink:!0,children:[m.jsx(je,{icon:lP,fixedWidth:!0})," Visit stats"]}),d&&m.jsxs(m.Fragment,{children:[m.jsxs(Ne,{disabled:!d.canAddItemWithName(e.shortUrl),onClick:()=>d.addItemToCompare({name:e.shortUrl,query:pC(e)}),children:[m.jsx(je,{icon:Jy,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"})]}),m.jsxs(Ne,{tag:ov,shortUrl:e,suffix:"edit",asLink:!0,children:[m.jsx(je,{icon:sP,fixedWidth:!0})," Edit short URL"]}),p&&m.jsxs(Ne,{tag:ov,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[m.jsx(je,{icon:QK,fixedWidth:!0})," Manage redirect rules"]}),m.jsxs(Ne,{onClick:a,children:[m.jsx(je,{icon:qK,fixedWidth:!0})," QR code"]}),m.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:v?c:y,children:[m.jsx(je,{icon:aP,fixedWidth:!0})," Delete short URL"]}),m.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:l,toggle:f})]})},yRe=$t(sU,["DeleteShortUrlModal","QrCodeModal"]),lU="shlink/shortUrlCreation",g4={saving:!1,saved:!1,error:!1},bRe=e=>fn(`${lU}/createShortUrl`,t=>e().createShortUrl(t)),_Re=e=>{const{reducer:t,actions:n}=Qt({name:lU,initialState:g4,reducers:{resetCreateShortUrl:()=>g4},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:Br(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},cU="shlink/shortUrlEdition",xRe={saving:!1,saved:!1,error:!1},wRe=e=>fn(`${cU}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),ORe=e=>Qt({name:cU,initialState:xRe,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:Br(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),y4="shlink/shortUrlsDetails",b4={loading:!1,error:!1},SRe=e=>{const t=fn(`${y4}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var l;const{shortCode:c,domain:f}=s,d=(l=o==null?void 0:o.shortUrls)==null?void 0:l.data.find(p=>Ed(p,c,f));return[s,d??await e().getShortUrl(c,f)]}));return new Map(a)}),{reducer:n}=Qt({name:y4,initialState:b4,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Br(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...b4,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},PRe=({domains:e,value:t,onChange:n})=>{const[r,,i,o]=Lt(),a=!t,s=M.useCallback(()=>{n(""),o()},[n,o]),l=M.useCallback(()=>{n(""),i()},[n,i]);return r?m.jsxs(a0,{children:[m.jsx(An,{value:t??"",placeholder:"Domain",onChange:c=>n(c.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:EK})}),m.jsx(Fr,{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:c,isDefault:f})=>m.jsxs(Ne,{active:(t===c||f)&&a,onClick:()=>n(c),className:"d-flex justify-content-between align-items-center",children:[c,f&&m.jsx("span",{className:"text-muted",children:"default"})]},c)),m.jsx(Ne,{divider:!0}),m.jsx(Ne,{onClick:l,children:m.jsx("i",{children:"New domain"})})]})},g_=({icon:e,className:t,...n})=>{const r=Mi();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(An,{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()}})]})},ERe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=M.useCallback(({target:l})=>{if(!l.value){r==null||r(null);return}r==null||r(Er(l.value))},[r]),s=M.useMemo(()=>i?zh:Ta,[i]);return m.jsx(An,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},Ey=({label:e,id:t,...n})=>{const r=M.useId();return m.jsxs(m.Fragment,{children:[m.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),m.jsx(ERe,{id:t??r,...n})]})},y_=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx(pD,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(iv,{placement:"right",children:t})]}),CRe=({isOpen:e,toggle:t})=>m.jsxs(vr,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(mo,{toggle:t,children:"Info"}),m.jsxs(Li,{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"})]})]})]}),TRe=()=>{const[e,t]=Lt();return m.jsxs(m.Fragment,{children:[m.jsx(yl,{className:"p-0",title:"What does this mean?",onClick:t,children:m.jsx(je,{icon:cP})}),m.jsx(CRe,{isOpen:e,toggle:t})]})},Nm=e=>typeof e=="string"?Ka(e):e,jRe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,uU=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:o})=>{var a,s,l;const{TagsSelector:c}=Rt(uU),[f,d]=M.useState(r),p=jRe(f),v=Ko("deviceLongUrls"),y=Ko("urlValidation"),g=y||p,x=M.useCallback(()=>d(r),[r]),_=M.useCallback((E,T)=>Rs(E)?E:Rs(T)?null:void 0,[]),b=M.useCallback((E,T)=>d(({deviceLongUrls:j={},...F})=>{var k;return{...F,deviceLongUrls:{...j,[E]:_(T,(k=r.deviceLongUrls)==null?void 0:k[E])}}}),[r.deviceLongUrls,_]),w=M.useCallback(E=>d(T=>({...T,tags:E})),[]),S=M.useCallback(async E=>(E.preventDefault(),n(f).then(T=>p&&!cC(T)&&x()).catch(()=>{})),[p,n,x,f]),P=M.useMemo(()=>m.jsxs("div",{className:"d-flex flex-column gap-3",children:[m.jsx(An,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:f.longUrl,onChange:E=>d(T=>({...T,longUrl:E.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(An,{bsSize:"lg",placeholder:"Custom slug",value:f.customSlug??"",onChange:E=>d(T=>({...T,customSlug:E.target.value}))})}),m.jsx("div",{className:Oe("w-100",{"w-lg-50":e}),children:m.jsx(c,{tags:i.tags,selectedTags:f.tags??[],onChange:w})})]})]}),[c,e,w,p,f,i.tags]);return m.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:S,children:[e&&P,!e&&m.jsxs(m.Fragment,{children:[m.jsxs(Pr,{children:[m.jsx("div",{className:Oe("mb-3",{"col-sm-6":v,"col-12":!v}),children:m.jsx(gt,{title:"Main options",children:P})}),v&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(gt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(g_,{type:"url",icon:_se,placeholder:"Android-specific redirection",value:((a=f.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:E})=>b("android",E.value)}),m.jsx(g_,{type:"url",icon:bse,placeholder:"iOS-specific redirection",value:((s=f.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:E})=>b("ios",E.value)}),m.jsx(g_,{type:"url",icon:XK,placeholder:"Desktop-specific redirection",value:((l=f.deviceLongUrls)==null?void 0:l.desktop)??"",onChange:({target:E})=>b("desktop",E.value)})]})})]}),m.jsxs(Pr,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(gt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[m.jsx(An,{placeholder:"Title",value:f.title??"",onChange:({target:E})=>d(T=>({...T,title:_(E.value,r.title)}))}),p&&m.jsxs(m.Fragment,{children:[m.jsxs(Pr,{children:[m.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:m.jsx(An,{placeholder:"Custom slug",value:f.customSlug??"",onChange:E=>d(T=>({...T,customSlug:E.target.value})),disabled:Rs(f.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:m.jsx(An,{type:"number",placeholder:"Short code length",value:f.shortCodeLength??"",onChange:E=>d(T=>({...T,shortCodeLength:E.target.value})),min:4,disabled:Rs(f.customSlug)})})]}),m.jsx(PRe,{value:f.domain,onChange:E=>d(T=>({...T,domain:E})),domains:o.domains})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(gt,{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(Ey,{label:"Enabled since",withTime:!0,maxDate:f.validUntil?Nm(f.validUntil):void 0,value:f.validSince?Nm(f.validSince):null,onChange:E=>d(T=>({...T,validSince:Qa(E)}))})}),m.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:m.jsx(Ey,{label:"Enabled until",withTime:!0,minDate:f.validSince?Nm(f.validSince):void 0,value:f.validUntil?Nm(f.validUntil):null,onChange:E=>d(T=>({...T,validUntil:Qa(E)}))})})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),m.jsx(An,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:f.maxVisits??"",onChange:E=>d(T=>({...T,maxVisits:Rs(E.target.value)?Number(E.target.value):null}))})]})]})})]}),m.jsxs(Pr,{children:[g&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(gt,{title:"Extra checks",children:[y&&m.jsx(y_,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:f.validateUrl,onChange:E=>d(T=>({...T,validateUrl:E})),children:"Validate URL"}),p&&m.jsxs("p",{children:[m.jsx(pD,{inline:!0,className:"me-2",checked:f.findIfExists,onChange:E=>d(T=>({...T,findIfExists:E})),children:"Use existing URL if found"}),m.jsx(TRe,{})]})]})}),m.jsx("div",{className:Oe("mb-3",{"col-sm-6":g}),children:m.jsxs(gt,{title:"Configure behavior",children:[m.jsx(y_,{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:E=>d(T=>({...T,crawlable:E})),children:"Make it crawlable"}),m.jsx(y_,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:f.forwardQuery,onChange:E=>d(T=>({...T,forwardQuery:E})),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"})})]})},ARe=$t(uU,["TagsSelector"]),kRe=({active:e,allText:t,onChange:n})=>m.jsxs(m.Fragment,{children:[m.jsx(Ne,{active:e==="all",onClick:()=>n("all"),children:t}),m.jsx(Ne,{divider:!0,tag:"hr"}),XMe.map(r=>m.jsx(Ne,{active:e===r,onClick:()=>n(r),children:mB(r)},r))]}),NRe=({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(Ey,{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(Ey,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Jc(o))})})]}),OC=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=M.useMemo(()=>mB(t)??n,[t,n]),[o,a]=M.useMemo(()=>wy(t)?[void 0,t]:[t,void 0],[t]),s=M.useCallback(l=>{wy(l)?e(vB(l),l):e(l)},[e]);return m.jsxs(ea,{disabled:r,text:i,children:[m.jsx(kRe,{allText:n,active:a,onChange:s}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx("div",{className:"px-3 py-1",children:m.jsx(NRe,{...o,onStartDateChange:l=>s({...o,startDate:l}),onEndDateChange:l=>s({...o,endDate:l})})})]})},MRe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},LRe=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return m.jsxs(ea,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Visits:"}),m.jsx(Ne,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),m.jsx(Ne,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),m.jsx(Ne,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0}),children:m.jsx("i",{children:"Reset to defaults"})})]})},fU=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i})=>{const{ExportShortUrlsBtn:o,TagsSelector:a}=Rt(fU),[{search:s,tags:l,startDate:c,endDate:f,excludeBots:d,excludeMaxVisitsReached:p,excludePastValidUntil:v,tagsMode:y="any"},g]=pb(),x=Ko("filterDisabledUrls"),_=nr("visits"),[b,w]=M.useState(),S=M.useCallback(({startDate:j,endDate:F},k)=>{g({startDate:Qa(j)??void 0,endDate:Qa(F)??void 0}),w(k)},[g]),P=M.useCallback(j=>g({search:j||void 0}),[g]),E=M.useCallback(j=>g({tags:j}),[g]),T=M.useCallback(()=>g({tagsMode:y==="any"?"all":"any"}),[y,g]);return m.jsxs("div",{className:Oe("short-urls-filtering-bar-container",e),children:[m.jsx(ip,{initialValue:s,onChange:P}),m.jsxs(a0,{className:"mt-3",children:[m.jsx(a,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:l,onChange:E}),l.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(qe,{outline:!0,color:"secondary",onClick:T,id:"tagsModeBtn","aria-label":"Change tags mode",children:m.jsx(je,{className:"short-urls-filtering-bar__tags-icon",icon:y==="all"?I6:SK})}),m.jsx(Fr,{target:"tagsModeBtn",placement:"left",children:y==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(Pr,{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(OC,{defaultText:"All short URLs",dateRangeOrInterval:b??pB(c,f),onDatesChange:S})}),m.jsx(LRe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:d??(_==null?void 0:_.excludeBots),excludeMaxVisitsReached:p,excludePastValidUntil:v},onChange:g,supportsDisabledFiltering:x})]})}),m.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:m.jsx(o,{amount:t})}),m.jsx("div",{className:"col-6 d-lg-none mt-3",children:m.jsx(op,{prefixed:!1,items:MRe,order:n,onChange:r})})]})]})},RRe=$t(fU,["ExportShortUrlsBtn","TagsSelector"]);function Cd({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(je,{icon:e.dir==="ASC"?vK:TK,className:n})}const Ql=2,QO="...",dU=(e,t)=>{const n=HP(Math.max(Ql,e-Ql),Math.min(t-1,e+Ql)+1);return e-Ql>Ql&&n.unshift(QO),e+Ql<t-1&&n.push(QO),n.unshift(1),n.push(t),n},Vh=e=>e===QO,hU=e=>Vh(e)?e:qt(e),pU=(e,t)=>Vh(e)?`${e}_${t}`:`${e}`,$Re=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=ds(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const a=()=>dU(n,r).map((s,l)=>m.jsx(Zs,{disabled:Vh(s),active:n===s,children:m.jsx(Xs,{tag:At,to:o(s),children:hU(s)})},pU(s,l)));return m.jsxs(DP,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(Zs,{disabled:n===1,children:m.jsx(Xs,{previous:!0,tag:At,to:o(n-1)})}),a(),m.jsx(Zs,{disabled:n>=r,children:m.jsx(Xs,{next:!0,tag:At,to:o(n+1)})})]})},IRe={field:"dateCreated",dir:"DESC"},mU=Di(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=Rt(mU),{page:s}=Mu(),l=pr(),[{tags:c,search:f,startDate:d,endDate:p,orderBy:v,tagsMode:y,excludeBots:g,excludePastValidUntil:x,excludeMaxVisitsReached:_},b]=pb(),w=YP(),[S,P]=M.useState(v??((n=w.shortUrlsList)==null?void 0:n.defaultOrdering)??IRe),{pagination:E}=(t==null?void 0:t.shortUrls)??{},T=M.useMemo(()=>{var X;return g??((X=w.visits)==null?void 0:X.excludeBots)},[g,(r=w.visits)==null?void 0:r.excludeBots]),j=Ko("excludeBotsOnShortUrls"),F=M.useCallback((X,Q)=>{b({orderBy:{field:X,dir:Q}}),P({field:X,dir:Q})},[b]),k=X=>()=>F(X,c0(X,S.field,S.dir)),I=X=>m.jsx(Cd,{currentOrder:S,field:X}),D=M.useCallback(X=>b({tags:[...new Set([...c,X])]}),[c,b]),K=M.useCallback(({field:X,dir:Q})=>j&&T&&X==="visits"?{field:"nonBotVisits",dir:Q}:{field:X,dir:Q},[T,j]),W=fC();return M.useEffect(()=>{e({page:s,searchTerm:f,tags:c,startDate:d,endDate:p,orderBy:K(S),tagsMode:y,excludePastValidUntil:x,excludeMaxVisitsReached:_})},[e,K,s,f,c,d,p,S,y,x,_]),m.jsxs(uC,{value:W,children:[m.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:S,handleOrderBy:F,className:"mb-3"}),m.jsx(dC,{type:"short-urls",className:"mb-3"}),m.jsxs(Dr,{body:!0,className:Oe({"pb-0":!t.loading}),children:[m.jsx(o,{shortUrlsList:t,orderByColumn:k,renderOrderIcon:I,onTagClick:D}),!t.loading&&m.jsx($Re,{paginator:E,currentQueryString:l.search})]})]})},()=>[Jn.visits]),DRe=$t(mU,["ShortUrlsTable","ShortUrlsFilteringBar"]),vU=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=Rt(vU),{error:a,loading:s,shortUrls:l}=n,c=Oe({"short-urls-table__header-cell--with-action":!!e}),f=Oe("short-urls-table__header-cell",c),d=Oe("table table-hover responsive-table short-urls-table",i),p=()=>a?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&(!l||l.data.length===0)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(v=>m.jsx(o,{shortUrl:v,onTagClick:r},v.shortUrl));return m.jsxs("table",{className:d,children:[m.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:m.jsxs("tr",{children:[m.jsxs("th",{className:f,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),m.jsxs("th",{className:f,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),m.jsxs("th",{className:"short-urls-table__header-cell",children:[m.jsxs(yl,{className:Oe("p-0",c),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",m.jsxs(yl,{className:Oe("p-0",c),onClick:e==null?void 0:e("longUrl"),children:[m.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),m.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),m.jsx("th",{className:f,onClick:e==null?void 0:e("visits"),children:m.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),m.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),m.jsx("tbody",{children:p()})]})},FRe=$t(vU,["ShortUrlsRow"]),BRe=(e,t)=>{e.factory("ShortUrlsList",DRe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",FRe),e.factory("ShortUrlsRow",gRe),e.factory("CreateShortUrlResult",iRe),e.factory("ShortUrlsRowMenu",yRe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",ARe),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",nRe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",rRe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>oRe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",uRe),e.factory("ExportShortUrlsBtn",aRe),e.factory("ShortUrlsFilteringBar",RRe),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",ILe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",_Re,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",ORe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",LLe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",SRe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",$Le,"apiClientFactory"),e.serviceFactory("createShortUrl",bRe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",MLe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>PB),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",wRe,"apiClientFactory")},URe=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:c}=i;return m.jsxs(vr,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[m.jsx(mo,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(Li,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",s&&m.jsx(Zn,{type:"error",small:!0,className:"mt-2",children:m.jsx(ho,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(as,{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"})]})]})},gU=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=Rt(gU),[s,l]=M.useState(e),[c,f]=M.useState(a.getColorForKey(e)),{editing:d,error:p,edited:v,errorData:y}=o,g=SB(async()=>{await t({oldName:e,newName:s,color:c}),n()}),x=M.useCallback(()=>v&&r({oldName:e,newName:s,color:c}),[c,v,s,e,r]);return m.jsx(vr,{isOpen:i,toggle:n,centered:!0,onClosed:x,children:m.jsxs("form",{name:"editTag",onSubmit:g,children:[m.jsx(mo,{toggle:n,children:"Edit tag"}),m.jsxs(Li,{children:[m.jsxs(a0,{children:[m.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:c,borderColor:c},children:[m.jsx(je,{icon:gK,className:"position-absolute top-50 start-50 translate-middle text-white"}),m.jsx(An,{className:"form-control-color opacity-0",type:"color",value:c,onChange:_=>f(_.target.value)})]}),m.jsx(An,{value:s,placeholder:"Tag",required:!0,onChange:({target:_})=>l(_.value)})]}),p&&m.jsx(Zn,{type:"error",small:!0,className:"mt-2",children:m.jsx(ho,{errorData:y,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(as,{children:[m.jsx(qe,{type:"button",color:"link",onClick:n,children:"Cancel"}),m.jsx(qe,{color:"primary",disabled:d,children:d?"Saving...":"Save"})]})]})})},zRe=$t(gU,["ColorGenerator"]),VRe=/\s+/g,yU=e=>e.trim().toLowerCase().replace(VRe,"-"),bU=({color:e})=>m.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),_U=({tag:e,colorGenerator:t})=>m.jsx(bU,{color:t.getColorForKey(e)});let _4=1;const xU="Tag not found",wU="Add tag",WRe=e=>e!==xU,HRe=e=>e===wU,x4=e=>(_4+=1,{label:e,value:`${e}${_4}`}),GRe=e=>({tag:t,onClick:n})=>m.jsx(vb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),qRe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=WRe(n.label),s=HRe(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(_U,{tag:`${n.label}`,colorGenerator:e}),s?m.jsxs("i",{children:['Add "',yU(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):m.jsx("i",{children:n.label})})},OU=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=Rt(OU),a=nr("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=Mi();return m.jsx(yle,{ref:l,selected:e.map(x4),suggestions:r.filter(c=>!e.includes(c)).map(x4),renderTag:GRe(o),renderOption:qRe(o,l),activateFirstOption:!0,allowNew:!i,newOptionText:wU,noOptionsText:xU,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(c,f)=>{const d=c.toLowerCase().trim();return d.length<1?[]:[...f.filter(({label:p})=>s==="includes"?p.includes(d):p.startsWith(d))].slice(0,5)},onDelete:c=>{const f=[...e];f.splice(c,1),t(f)},onAdd:({label:c})=>t([...new Set([...e,...c.split(",").map(yU)])])})},KRe=$t(OU,["ColorGenerator"]),JO="shlink/tagDelete",YRe={deleting:!1,deleted:!1,error:!1},SU=Xn(`${JO}/tagDeleted`),ZRe=e=>{const t=fn(`${JO}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Qt({name:JO,initialState:YRe,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:Br(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},SC="shlink/tagEdit",XRe={editing:!1,edited:!1,error:!1},PU=Xn(`${SC}/tagEdited`),QRe=(e,t)=>fn(`${SC}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),JRe=e=>Qt({name:SC,initialState:XRe,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:Br(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}})}}),PC="shlink/tagsList",b_={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},w4=(e,t)=>n=>n===e?t:n,O4=(e,t)=>e.filter(n=>n!==t),e$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}),t$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),{})),n$e=e=>fn(`${PC}/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}}),EU=Xn(`${PC}/filterTags`),r$e=(e,t)=>Qt({name:PC,initialState:b_,reducers:{},extraReducers:n=>{n.addCase(EU,(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})=>({...b_,error:!0,errorData:Br(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...b_,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(SU,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:O4(r,a),filteredTags:O4(i,a)})),n.addCase(PU,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(w4(s.oldName,s.newName)).sort(),filteredTags:i.map(w4(s.oldName,s.newName)).sort()})),n.addCase(tf,(r,{payload:i})=>({...r,stats:e$e(t$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)))}))}}),i$e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},CU=Di(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=Rt(CU),o=YP(),[a,s]=M.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),l=M.useMemo(()=>{const f=t.filteredTags.map(d=>{var p,v,y;const g=t.stats[d],x=((p=o.visits)!=null&&p.excludeBots?(v=g==null?void 0:g.visitsSummary)==null?void 0:v.nonBots:(y=g==null?void 0:g.visitsSummary)==null?void 0:y.total)??(g==null?void 0:g.visitsCount)??0;return{tag:d,visits:x,shortUrls:(g==null?void 0:g.shortUrlsCount)??0}});return yD(f,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),c=fC();return t.loading?m.jsx(zo,{loading:!0}):t.error?m.jsx(Zn,{type:"error",children:m.jsx(ho,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):m.jsxs(uC,{value:c,children:[m.jsx(ip,{className:"mb-3",onChange:e}),m.jsx(Pr,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(op,{items:i$e,order:a,onChange:(f,d)=>s({field:f,dir:d})})})}),m.jsx(dC,{type:"tags",className:"mb-3"}),m.jsx(i,{sortedTags:l,currentOrder:a,orderByColumn:f=>()=>{const d=c0(f,a.field,a.dir);s({field:d?f:void 0,dir:d})}})]})},()=>[Jn.visits]),o$e=$t(CU,["TagsTable"]),EC=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Vh(o)&&n(o);return m.jsxs(DP,{listClassName:Oe("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(Zs,{disabled:t<=1,children:m.jsx(Xs,{previous:!0,tag:"span",onClick:i(t-1)})}),dU(t,e).map((o,a)=>m.jsx(Zs,{disabled:Vh(o),active:t===o,children:m.jsx(Xs,{role:"link",tag:"span",onClick:i(o),children:hU(o)})},pU(o,a))),m.jsx(Zs,{disabled:t>=e,children:m.jsx(Xs,{next:!0,tag:"span",onClick:i(t+1)})})]})},a$e=20,TU=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Rt(TU),i=M.useRef(!0),{page:o=1}=$u(),[a,s]=yLe("page",Number(o)),l=M.useCallback(p=>{s(p),scrollTo(0,0)},[s]),c=Ac(e,a$e),f=c.length>1,d=c[a-1]??[];return M.useEffect(()=>{i.current||l(1),i.current=!1},[l,e]),m.jsxs(gt,{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(Cd,{currentOrder:n,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",m.jsx(Cd,{currentOrder:n,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",m.jsx(Cd,{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(EC,{pagesCount:c.length,currentPage:a,setCurrentPage:l})})]},a)},s$e=$t(TU,["TagsTableRow"]),jU=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Rt(jU),[i,o]=Lt(),[a,s]=Lt(),l=ds(),c=cb();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx(_U,{tag:e.tag,colorGenerator:r})," ",e.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(At,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:qt(e.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(At,{to:`${l}/tag/${e.tag}/visits`,children:qt(e.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(l0,{children:[m.jsxs(Ne,{onClick:s,children:[m.jsx(je,{icon:L6,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(Ne,{disabled:!c||!c.canAddItemWithName(e.tag),onClick:()=>c==null?void 0:c.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[m.jsx(je,{icon:Jy,fixedWidth:!0})," Compare visits"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:o,children:[m.jsx(je,{icon:_K,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})]})},l$e=$t(jU,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),c$e=(e,t)=>{e.factory("TagsSelector",KRe),e.serviceFactory("DeleteTagConfirmModal",()=>URe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",zRe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",l$e),e.factory("TagsTable",s$e),e.factory("TagsList",o$e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",JRe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",ZRe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",r$e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",n$e,"apiClientFactory"),e.serviceFactory("filterTags",()=>EU),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>SU),e.serviceFactory("editTag",QRe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>PU)},u$e=new o5,f$e=e=>u$e.parse(e),d$e=6,S4="0123456789ABCDEF",h$e=128,{floor:p$e,random:m$e,sqrt:v$e,round:g$e}=Math,y$e=()=>`#${yC(d$e,()=>S4[p$e(m$e()*S4.length)]).join("")}`,P4=e=>e.toLowerCase().trim(),b$e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),_$e=(e=0,t=0,n=0)=>g$e(v$e(.299*e**2+.587*t**2+.114*n**2));class x$e{constructor(t){za(this,"colors"),za(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=P4(t);return this.colors[n]||this.setColorForKey(n,y$e())}setColorForKey(t,n){var r;const i=P4(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);if(this.lights[n]===void 0){const r=b$e(n);this.lights[n]=_$e(...r)>=h$e}return this.lights[n]}}const AU=({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)},w$e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);AU(e,i,n)};class O$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);AU(this.window,i,n)}}class S$e{constructor(t,n){za(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),za(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),za(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);w$e(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function P$e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",O$e,"fetch","window"),e.service("ColorGenerator",x$e,"TagColorsStorage"),e.constant("jsonToCsv",f$e),e.service("ReportExporter",S$e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>vD)}const Op=({visits:e,shortUrl:t,children:n,title:r})=>m.jsx("header",{children:m.jsxs(Dr,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(mb,{}),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(oU,{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})]})}),gb=({children:e,className:t})=>m.jsx("div",{className:Oe("d-flex justify-content-between align-items-center",t),children:e}),kU=({title:e,footer:t,children:n})=>m.jsxs(Dr,{role:"document",children:[m.jsx(np,{className:"chart-card__header",children:e}),m.jsx(tp,{children:n}),t&&m.jsx(eD,{className:"chart-card__footer--sticky",children:t})]}),NU={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},E$e={marginBottom:"5px",fontWeight:"bold"},MU={contentStyle:NU,labelStyle:E$e,itemStyle:{padding:0}},E4=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],LU=e=>E4[e%E4.length],Cy=()=>ap()?"#46e587":"#1DAA58",C$e=()=>ap()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",T$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:[" (",qt(i),")"]})]})]},n))}),C4=e=>M.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:LU(r)})),[e]),j$e=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=C4(e),o=C4(t),a=o.length>0,s=ap()?rie:nie;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?M.Fragment:wE,{children:m.jsxs(mMe,{...r,children:[m.jsx(Yr,{formatter:qt,contentStyle:NU,itemStyle:{color:"white"}}),m.jsx(fo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((l,c)=>m.jsx(Fa,{fill:l.color,stroke:s},`${l.name}-${c}`))}),a&&m.jsx(fo,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:Cy()})]})})})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:m.jsx(T$e,{chartData:i,showNumbers:n})})]})},T4=({title:e,...t})=>{const[n,r]=Lt(!1);return m.jsx(kU,{title:m.jsxs(gb,{children:[e,m.jsx("div",{children:m.jsx(Vo,{checked:n,onChange:r,children:"Show numbers"})})]}),children:m.jsx(j$e,{...t,showNumbersInLegend:n})})},A$e=M.forwardRef(({visitsGroups:e},t)=>{const n=M.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(bU,{color:RU(i)}),m.jsxs("strong",{children:[r," (",qt(i.length),")"]})]},`${r}${o}`))})}),k$e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},N$e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},M$e={hourly:moe,daily:m0,weekly:poe,monthly:hg},CC={hourly:e=>pg(e,"yyyy-MM-dd HH:00"),daily:e=>Ta(e),weekly(e){const t=Ta(ah(e)),n=Ta(Ooe(e));return`${t} - ${n}`},monthly:e=>pg(e,"yyyy-MM")},L$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=>Ka(a[a.length-1].date)),o=BD(i);return((t=[[()=>m0(r,o)<=2,"hourly"],[()=>hg(r,o)<=1,"daily"],[()=>hg(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},R$e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=RD(t[r],i=>CC[e](Ka(i.date))),n),{}),$$e=(e,t)=>t.reduce((n,r)=>{const i=CC[e](Ka(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),I$e=(e,t)=>{const n=Object.values(t).filter(f=>f.length>0).map(f=>[...f].reverse());if(n.length===0)return[];const r=M$e[e],i=CC[e],o=N$e[e],a=n.flat(),s=Ka(a[0].date),l=Ka(a[a.length-1].date),c=r(l,s)||1;return[{formattedDate:i(s),date:s},...yC(c,f=>{const d=loe(s,o(f));return{formattedDate:i(d),date:d}})]},RU=e=>{if(e.color)return e.color;const t={main:nh,highlighted:e2,previous:Cy()};return e.type?t[e.type]:nh},j4=(e,t)=>M.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),D$e=(e,t,n)=>{const r=j4(e,"main"),i=j4(e,"highlighted"),o=M.useMemo(()=>n?$$e(t,r):{},[n,t,r]),a=M.useCallback((s,{payload:l})=>{const c=o[l.formattedDate]??[];n==null||n(c===i?[]:c)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},A4=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},$U=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r,onDateRangeChange:i})=>{const[o,a]=M.useState(L$e(e)),s=_C(767,r??window.matchMedia),l=M.useMemo(()=>{const D=R$e(o,e),K=Object.keys(D);return I$e(o,e).map(({formattedDate:W,date:X})=>({date:X,formattedDate:W,...K.reduce((Q,te)=>(Q[te]=D[te][W]??0,Q),{})}))},[o,e]),c=D$e(e,o,t),[f,d,,p]=Lt(),v=Mi(),y=M.useId(),g=Mi(),[x,_]=M.useState(s?300:400);M.useLayoutEffect(()=>{if(!f)return _(s?300:400),()=>{};const D=new ResizeObserver(()=>{const{height:K}=v.current.getBoundingClientRect(),{height:W}=g.current.getBoundingClientRect();_(K-W-48)});return D.observe(v.current),D.observe(g.current),()=>D.disconnect()},[v,f,s,g]),_Le("Escape",p,f);const b=n?M.Fragment:wE,w=M.useMemo(()=>n?{}:{width:"100%",height:x},[n,x]),[S,P]=M.useState(),[E,T]=M.useState(),j=M.useCallback(()=>{P(void 0),T(void 0)},[]),F=M.useCallback((D,K)=>{const W=A4(D);K.button===0&&W&&P(W)},[]),k=M.useCallback(D=>{const K=A4(D);S&&K&&T(K)},[S]),I=M.useCallback(()=>{if(!S||!E)return;const D=[S.date,E.date],K=foe(D),W=BD(D);j(),i({startDate:K,endDate:W})},[i,j,E,S]);return m.jsxs(Dr,{className:Oe({"fixed-top fixed-bottom":f}),"data-testid":"line-chart-card",children:[m.jsxs(np,{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":y,size:"sm",color:"link",onClick:d,children:m.jsx(je,{icon:f?eK:YK})}),m.jsxs(rp,{className:"d-flex align-items-center",children:[m.jsx(Jo,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(os,{end:!0,children:Object.entries(k$e).map(([D,K])=>m.jsx(Ne,{active:o===D,onClick:()=>a(D),children:K},D))})]})]})]}),m.jsxs(tp,{innerRef:v,id:y,children:[m.jsx(b,{...w,children:m.jsxs(pMe,{className:"user-select-none",data:l,...n,onMouseDown:F,onMouseMove:k,onMouseUp:I,children:[m.jsx(Ju,{dataKey:"formattedDate"}),m.jsx(ef,{tickFormatter:qt,yAxisId:"1"}),m.jsx(Yr,{formatter:qt,...MU}),m.jsx(iC,{strokeOpacity:ap()?.1:.9}),Object.entries(e).map(([D,K])=>K.length>0&&m.jsx(Qu,{yAxisId:"1",dataKey:D,type:"monotone",stroke:RU(K),strokeWidth:2,activeDot:K.type==="previous"?void 0:c,strokeDasharray:K.type==="previous"?"8 3":void 0},D)),S&&E&&m.jsx(vp,{yAxisId:"1",x1:S.formattedDate,x2:E.formattedDate})]})}),m.jsx(A$e,{visitsGroups:e,ref:g})]})]})},F$e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs(rp,{children:[m.jsx(Jo,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(os,{end:!0,children:[t.map(i=>m.jsxs(Ne,{active:i===n,onClick:()=>r(i),children:[m.jsx("b",{children:i})," items per page"]},i)),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{disabled:n===1/0,onClick:()=>r(1/0),children:m.jsx("i",{children:"Clear pagination"})})]})]}),k4=e=>e.startsWith("hidden_"),B$e=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=M.useMemo(()=>Object.entries(e).map(([d,p])=>{const v=(n==null?void 0:n[d])??0,y=(t==null?void 0:t[d])??0,g=k4(d);return{name:d,amount:Math.max(p,y),nonHighlightedAmount:g?null:p-v,highlightedAmount:g?null:v,prevAmount:g?null:y}}),[e,t,n]),l=M.useMemo(()=>{const d=s.reduce((p,{name:v})=>p>v.length?p:v.length,0);return Math.min(150,d*7)},[s]),c=a?M.Fragment:wE,f=M.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return m.jsx(c,{...f,children:m.jsxs(vMe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[m.jsx(Ju,{type:"number",dataKey:"amount",tickFormatter:qt,domain:i?[0,i]:void 0}),m.jsx(ef,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:d=>k4(d)?"":d}),m.jsx(iC,{strokeOpacity:ap()?.05:.9}),m.jsx(Yr,{filterNull:!0,...MU,formatter:(d,p)=>[qt(d),p==="highlightedAmount"?r:p==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),m.jsx(Lo,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:nh,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Fa,{fill:eie,stroke:nh,strokeWidth:2},d.name))}),n&&m.jsx(Lo,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:e2,onClick:({name:d})=>o==null?void 0:o(d),children:s.map(d=>m.jsx(Fa,{fill:tie,stroke:e2,strokeWidth:2},d.name))}),t&&m.jsx(Lo,{dataKey:"prevAmount",fill:Cy(),children:s.map(d=>m.jsx(Fa,{fill:C$e(),stroke:Cy(),strokeWidth:2},d.name))})]})})},U$e=e=>typeof e=="string"?e.toLowerCase():e,z$e=([e])=>e,V$e=([,e])=>e,Mm=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[l,c]=M.useState({}),[f,d]=M.useState(1),[p,v]=M.useState(50),y=M.useCallback((j,F)=>{const k=Object.entries(j),I=l.field?ooe(k,([D,K])=>U$e(l.field===Object.keys(F)[0]?D:K)):k;return!l.dir||l.dir==="ASC"?I:[...I].reverse()},[l.dir,l.field]),g=M.useCallback(j=>{const F=j[f-1];if(f<j.length)return F;const k=j[0].length;return[...F,...yC(k-F.length,I=>[`hidden_${I}`,0])]},[f]),x=M.useCallback(j=>m.jsx(EC,{currentPage:f,pagesCount:j,setCurrentPage:d}),[f]),_=M.useCallback((j,F,k,I)=>{const D=y(j,F),K=D.map(z$e),W=k&&Object.entries({...E3(K,K.map(()=>0)),...k}),X=I&&Object.entries({...E3(K,K.map(()=>0)),...I});if(D.length<=p)return{currentPageStats:Object.fromEntries(D),currentPageHighlightedStats:W&&Object.fromEntries(W),currentPagePrevStats:X&&Object.fromEntries(X)};const Q=Ac(D,p),te=W&&Ac(W,p),Z=X&&Ac(X,p);return{currentPageStats:Object.fromEntries(g(Q)),currentPageHighlightedStats:te&&Object.fromEntries(g(te)),currentPagePrevStats:Z&&Object.fromEntries(g(Z)),pagination:x(Q.length),max:BLe(Math.max(...D.map(V$e)))}},[g,y,p,x]),{currentPageStats:b,currentPagePrevStats:w,currentPageHighlightedStats:S,pagination:P,max:E}=M.useMemo(()=>_(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[_,n,t,i,e]),T=M.useMemo(()=>Object.keys(b),[b]);return m.jsx(kU,{title:m.jsxs(gb,{children:[r,m.jsxs("div",{className:"d-flex gap-3",children:[o==null?void 0:o(P?T:void 0),a&&Object.keys(e).length>50&&m.jsx(F$e,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:p,setValue:j=>{v(j),d(1)}}),m.jsx(op,{isButton:!1,right:!0,items:i,order:l,onChange:(j,F)=>{c({field:j,dir:F}),d(1)}})]})]}),footer:P,children:m.jsx(B$e,{stats:b,prevStats:w,highlightedStats:S,max:E,...s})})},N4=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Qa(t[e])||""},IU=()=>{const e=po(),t=$u(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,l=M.useMemo(()=>({dateRange:n!=null||r!=null?pB(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]),c=M.useCallback(f=>{const{dateRange:d,visitsFilter:p={},loadPrevInterval:v}=p0(l,f),{excludeBots:y,orphanVisitsType:g}=p,x={...s,startDate:N4("startDate",d),endDate:N4("endDate",d),excludeBots:y===void 0?void 0:KO(y),orphanVisitsType:g,loadPrevInterval:v===void 0?void 0:KO(v)},_=s0(x),b=_?`?${_}`:"";e(b,{replace:!0,relative:"route"})},[l,e,s]);return[l,c]},W$e=()=>m.jsx(MMe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),H$e=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}},DU=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx(vr,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(Li,{className:"map-modal__modal-body",children:[m.jsxs(gb,{className:"map-modal__modal-title fs-4",children:[n,m.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),m.jsxs(AMe,{...H$e(r),children:[m.jsx(W$e,{}),r.map(({cityName:i,latLong:o,count:a},s)=>m.jsx(kMe,{position:o,children:m.jsxs(NMe,{children:[m.jsx("b",{children:a})," visit",a>1?"s":""," from ",m.jsx("b",{children:i})]})},s))]})]})}),G$e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=Lt(),[a,s]=Lt(),[l,c]=M.useState([]),f=M.useCallback(d=>{c(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:bx})}),t&&m.jsxs(is,{isOpen:a,toggle:s,children:[m.jsx(Jo,{color:"link",className:"p-0",title:"Show in map",children:m.jsx(je,{icon:bx})}),m.jsxs(os,{end:!0,children:[m.jsx(Ne,{onClick:()=>f(),children:"Show all locations"}),m.jsx(Ne,{onClick:()=>f(({cityName:d})=>t.includes(d)),children:"Show locations in current page"})]})]}),m.jsx(DU,{toggle:o,isOpen:r,title:e,locations:l})]})},FU=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:l=!1}=t,c=p=>({active:a===p,onClick:()=>e({...t,orphanVisitsType:p===a?void 0:p})}),f=M.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),d=M.useCallback(()=>e({...t,loadPrevInterval:!l}),[l,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(Ne,{active:l,onClick:d,children:"Compare with previous period"}),m.jsx(Ne,{divider:!0,tag:"hr"})]}),m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Bots:"}),m.jsx(Ne,{active:s,onClick:f,children:"Exclude potential bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),m.jsx(Ne,{...c("base_url"),children:"Base URL"}),m.jsx(Ne,{...c("invalid_short_url"),children:"Invalid short URL"}),m.jsx(Ne,{...c("regular_404"),children:"Regular 404"})]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsx(Ne,{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"})})]})},BU=({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(oD,{value:r,striped:r>=100,className:"mt-3"})]}),n&&m.jsx(Zn,{type:"error",children:m.jsx(ho,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},av=({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})]}),q$e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=Lt();return m.jsx(gt,{title:m.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:m.jsxs(gb,{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..."})]})]})})},Lm="Others",K$e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],Y$e=e=>{if(!Rs(e))return{browser:Lm,os:Lm};const{browser:{name:t},os:{name:n}}=FMe.parse(e);return{os:n??Lm,browser:t&&K$e.includes(t)?t:Lm}},Z$e=e=>{var t;return Rs(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},UU=(e,t)=>e[t]!==void 0,M4=e=>typeof e=="number"?e:e?parseFloat(e):0,X$e=(e,{os:t})=>{e[t]=(e[t]||0)+1},Q$e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},J$e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},zU=e=>(t,n)=>{const r=UU(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},e6e=zU("country"),t6e=zU("city"),n6e=(e,t)=>{if(!UU(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[M4(r),M4(i)]};o.count+=1,e[n]=o},r6e=(e,t)=>{if(!nLe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},eS=e=>e.reduce((t,n)=>(X$e(t.os,n),Q$e(t.browsers,n),J$e(t.referrers,n),e6e(t.countries,n),t6e(t.cities,n),n6e(t.citiesForMap,n),r6e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Ty=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t;return{date:r,potentialBot:a,userAgent:n,...Y$e(n),referer:Z$e(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:gC(t)?t.type:void 0}}),i6e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Ty,processStatsFromVisits:eS},Symbol.toStringTag,{value:"Module"})),Jf=20,o6e=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...a},s,l)=>{const c=l?o:`${r} ${i}`;return`${e} ${t} ${n} ${c} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},a6e=(e,t,n)=>t.filter(r=>o6e(r,e,n)),s6e=(e,t)=>yD(t,e),l6e=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?a6e(t,e,r):[...e],o=s6e(n,i),a=o.length;return{visitsGroups:Ac(o,Jf),total:a}},Gi="visits-table__header-cell visits-table__sticky",c6e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const o=_C(767,r),[a,s]=M.useState(),l=M.useCallback(j=>{s(j),x(1),n([])},[n]),[c,f]=M.useState({}),[d,p]=Lt(),v=M.useCallback(()=>{p(),f({})},[p]),y=M.useMemo(()=>l6e({visits:e,searchTerm:a,order:c,searchInRawUserAgent:d}),[e,a,c,d]),[g,x]=M.useState(1),_=g*Jf,b=_-Jf,w=M.useMemo(()=>{var j,F;return!!((F=(j=y.visitsGroups[g-1])==null?void 0:j[0])!=null&&F.visitedUrl)},[g,y.visitsGroups]),S=6+Number(w)+(d?1:2),P=y.total>0,E=j=>f({field:j,dir:c0(j,c.field,c.dir)}),T=j=>m.jsx(Cd,{currentOrder:c,field:j,className:"visits-table__header-icon"});return m.jsx(gt,{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":P}),children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:`${Gi} text-center`,onClick:()=>n(t.length<y.total?y.visitsGroups.flat():[]),children:[m.jsx("span",{className:"sr-only",children:"Is selected"}),m.jsx(je,{icon:qd,className:Oe({"text-primary":t.length>0})})]}),m.jsxs("th",{className:`${Gi} text-center`,onClick:()=>E("potentialBot"),children:[m.jsx("span",{className:"sr-only",children:"Is bot"}),m.jsx(je,{icon:aA}),T("potentialBot")]}),m.jsxs("th",{className:Gi,onClick:()=>E("date"),children:["Date",T("date")]}),m.jsxs("th",{className:Gi,onClick:()=>E("country"),children:["Country",T("country")]}),m.jsxs("th",{className:Gi,onClick:()=>E("city"),children:["City",T("city")]}),d?m.jsxs("th",{className:Gi,onClick:()=>E("userAgent"),children:["User agent",T("userAgent")]}):m.jsxs(m.Fragment,{children:[m.jsxs("th",{className:Gi,onClick:()=>E("browser"),children:["Browser",T("browser")]}),m.jsxs("th",{className:Gi,onClick:()=>E("os"),children:["OS",T("os")]})]}),m.jsxs("th",{className:Gi,onClick:()=>E("referer"),children:["Referrer",T("referer")]}),w&&m.jsxs("th",{className:Gi,onClick:()=>E("visitedUrl"),children:["Visited URL",T("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"p-0",children:m.jsx(ip,{noBorder:!0,large:!1,onChange:l})})})]}),m.jsxs("tbody",{children:[!P&&m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"text-center",children:"There are no visits matching current filter"})}),(i=y.visitsGroups[g-1])==null?void 0:i.map((j,F)=>{const k=t.includes(j);return m.jsxs("tr",{style:{cursor:"pointer"},className:Oe({"table-active":k}),onClick:()=>n(k?t.filter(I=>I!==j):[...t,j]),children:[m.jsx("td",{className:"text-center",children:k&&m.jsx(je,{icon:qd,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:j.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:aA,id:`botIcon${F}`}),m.jsx(Fr,{placement:"right",target:`botIcon${F}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(Py,{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})]},F)})]}),y.total>Jf&&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(EC,{pagesCount:Math.ceil(y.total/Jf),currentPage:g,setCurrentPage:x,centered:o}),m.jsxs("div",{children:["Visits ",m.jsx("b",{children:qt(b+1)})," to"," ",m.jsx("b",{children:qt(Math.min(_,y.total))})," of"," ",m.jsx("b",{children:qt(y.total)})]})]})})})})]})})})},pa={byTime:{title:"By time",subPath:"by-time",icon:nK},byContext:{title:"By context",subPath:"by-context",icon:lP},byLocation:{title:"By location",subPath:"by-location",icon:bx},list:{title:"List",subPath:"list",icon:$6},options:{title:"Options",subPath:"options",icon:U6,shouldRender:({deletion:e})=>!!e}};Object.freeze(pa);const __=({display:e})=>e&&m.jsx("div",{className:"mt-3 mx-auto w-75",children:m.jsx(gt,{children:m.jsxs("div",{className:"d-flex gap-2",children:[m.jsx(je,{icon:eY,className:"mt-1"}),m.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let Rm;const Sp=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:l,prevVisits:c,loading:f,errorData:d,fallbackInterval:p}=n,[{dateRange:v,visitsFilter:y,loadPrevInterval:g},x]=IU(),_=nr("visits"),[b,w]=M.useState(),S=M.useCallback(({startDate:A,endDate:N},U)=>{x({dateRange:{startDate:A??void 0,endDate:N??void 0}}),w(U)},[x]),P=M.useRef(v??p??(_==null?void 0:_.defaultInterval)??"last30Days"),[E,T]=M.useState([]),[j,F]=M.useState(),k=M.useRef(!0),{search:I}=pr(),D=M.useCallback(A=>A?`${A}${I}`:I,[I]),K=M.useMemo(()=>Ty(l),[l]),W=M.useMemo(()=>c&&Ty(c),[c]),{os:X,browsers:Q,referrers:te,countries:Z,cities:z,citiesForMap:B,visitedUrls:H}=M.useMemo(()=>eS(K),[K]),ee=M.useMemo(()=>eS(W??[]),[W]),q=M.useMemo(()=>Object.fromEntries([["Visits",Object.assign(K,{type:"main"})],W&&["Previous period",Object.assign(W,{type:"previous"})],E.length>0&&[j??"Selected",Object.assign(E,{type:"highlighted"})]].filter(Boolean)),[j,E,W,K]),ne=M.useMemo(()=>({...y,excludeBots:y.excludeBots??(_==null?void 0:_.excludeBots),loadPrevInterval:g??(_==null?void 0:_.loadPrevInterval)}),[g,y,_==null?void 0:_.excludeBots,_==null?void 0:_.loadPrevInterval]),re=M.useMemo(()=>Object.values(B),[B]),ae=M.useCallback(A=>{Rm=void 0,T(A)},[]),ue=M.useCallback((A,N)=>{const U=`${A}_${N}`;Rm===U?(T([]),F(void 0),Rm=void 0):(T(K.filter(J=>J[A]===N)),F(N),Rm=U)},[K]);return M.useEffect(()=>i,[i]),M.useEffect(()=>{const A=v??gB(P.current),{loadPrevInterval:N,...U}=ne,J={doIntervalFallback:k.current,loadPrevInterval:N};r({dateRange:A,filter:U},J),ae([]),k.current=!1},[v,y,r,ne,ae]),M.useEffect(()=>{p&&P.current===((_==null?void 0:_.defaultInterval)??"last30Days")&&(P.current=p)},[p,_==null?void 0:_.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(OC,{disabled:f,dateRangeOrInterval:b??v??P.current,defaultText:"All visits",onDatesChange:S})}),m.jsx(FU,{disabled:f,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ne,onChange:({loadPrevInterval:A,...N})=>x({visitsFilter:N,loadPrevInterval:A})})]})}),l.length>0&&m.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:m.jsxs("div",{className:"d-flex",children:[m.jsx(tU,{className:"btn-md-block",amount:K.length,onClick:()=>a(K)}),m.jsxs(qe,{outline:!0,disabled:E.length===0,className:"btn-md-block ms-2",onClick:()=>ae([]),children:["Clear selection ",E.length>0&&m.jsxs(m.Fragment,{children:["(",qt(E.length),")"]})]})]})})]})}),m.jsxs("section",{className:"mt-3",children:[m.jsx(BU,{info:n}),!f&&!d&&m.jsxs(m.Fragment,{children:[m.jsx(gD,{fill:!0,children:Object.values(pa).map(({title:A,icon:N,subPath:U,shouldRender:J},Y)=>!J||J(e)?m.jsxs(md,{to:D(U),replace:!0,children:[m.jsx(je,{icon:N}),m.jsx("span",{className:"ms-2 d-none d-lg-inline",children:A})]},Y):void 0).filter(Boolean)}),m.jsx(Pr,{children:m.jsxs(Xy,{children:[m.jsx(ot,{path:pa.byTime.subPath,element:m.jsxs(av,{showFallback:l.length===0,children:[m.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:m.jsx($U,{visitsGroups:q,setSelectedVisits:ae,onDateRangeChange:S})}),m.jsx(__,{display:!!ne.loadPrevInterval&&!c})]})}),m.jsx(ot,{path:pa.byContext.subPath,element:m.jsxs(av,{showFallback:l.length===0,children:[m.jsx("div",{className:Oe("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(T4,{title:"Operating systems",stats:X,prevStats:ee.os})}),m.jsx("div",{className:Oe("mt-3 col-lg-6",{"col-xl-4":!s}),children:m.jsx(T4,{title:"Browsers",stats:Q,prevStats:ee.browsers})}),m.jsx("div",{className:Oe("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:m.jsx(Mm,{title:"Referrers",withPagination:!1,stats:te,prevStats:ee.referrers,highlightedStats:jm(E,"referer"),highlightedLabel:j,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:A=>ue("referer",A)})}),s&&m.jsx("div",{className:"mt-3 col-lg-6",children:m.jsx(Mm,{title:"Visited URLs",stats:H,prevStats:ee.visitedUrls,highlightedStats:jm(E,"visitedUrl"),highlightedLabel:j,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:A=>ue("visitedUrl",A)})}),m.jsx("div",{className:"col-12",children:m.jsx(__,{display:!!ne.loadPrevInterval&&!c})})]})}),m.jsx(ot,{path:pa.byLocation.subPath,element:m.jsxs(av,{showFallback:l.length===0,children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Mm,{title:"Countries",stats:Z,prevStats:ee.countries,highlightedStats:jm(E,"country"),highlightedLabel:j,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:A=>ue("country",A)})}),m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Mm,{title:"Cities",stats:z,prevStats:ee.cities,highlightedStats:jm(E,"city"),highlightedLabel:j,extraHeaderContent:A=>re.length>0&&m.jsx(G$e,{modalTitle:"Cities",locations:re,activeCities:A}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:A=>ue("city",A)})}),m.jsx("div",{className:"col-12",children:m.jsx(__,{display:!!ne.loadPrevInterval&&!c})})]})}),m.jsx(ot,{path:pa.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(c6e,{visits:K,selectedVisits:E,setSelectedVisits:ae})})}),o&&m.jsx(ot,{path:pa.options.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(q$e,{...o})})}),m.jsx(ot,{path:"*",element:m.jsx(eP,{replace:!0,to:D(pa.byTime.subPath)})})]})})]})]})]})},VU=Di(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Rt(VU),{domain:i=""}=Mu(),[o,a=o]=i.split("_"),s=M.useCallback((c,f)=>e({domain:a,options:f,params:c}),[a,e]),l=M.useCallback(c=>r.exportVisits(`domain_${o}_visits.csv`,c),[o,r]);return m.jsx(Sp,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:m.jsx(Op,{visits:t.visits,title:`"${o}" visits`})})},()=>[Jn.visits]),u6e=$t(VU,["ReportExporter"]),WU=Di(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Rt(WU),i=M.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=M.useCallback((a,s)=>e({options:s,params:a}),[e]);return m.jsx(Sp,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:m.jsx(Op,{title:"Non-orphan visits",visits:t.visits})})},()=>[Jn.visits]),f6e=$t(WU,["ReportExporter"]),HU=Di(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=Ko("orphanVisitsDeletion"),{ReportExporter:a}=Rt(HU),s=M.useCallback(f=>a.exportVisits("orphan_visits.csv",f),[a]),l=M.useCallback((f,d)=>{var p;return e({options:d,params:f,orphanVisitsType:(p=f.filter)==null?void 0:p.orphanVisitsType})},[e]),c=M.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return m.jsx(Sp,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:c,isOrphanVisits:!0,children:m.jsx(Op,{title:"Orphan visits",visits:t.visits})})},()=>[Jn.orphanVisits]),d6e=$t(HU,["ReportExporter"]),GU="shlink/orphanVisits",h6e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},p6e=e=>_p({typePrefix:`${GU}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=bp(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),m6e=e=>xp({name:GU,initialState:h6e,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>yp(o.date,r,i))}}),qU="shlink/orphanVisits",v6e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},g6e=(e,t)=>!t||t===e.type,y6e=({data:e,...t},n)=>{const r=e.filter(i=>gC(i)&&g6e(i,n));return{...t,data:r}},b6e=e=>_p({typePrefix:`${qU}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits({...s,type:t}).then(l=>y6e(l,t)),a=bp(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),_6e=(e,t)=>xp({name:qU,initialState:v6e,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&&yp(a.date,i,o))}}),KU="shlink/orphanVisitsDeletion",L4={deletedVisits:0,deleting:!1,error:!1},x6e=e=>fn(`${KU}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),w6e=e=>Qt({name:KU,initialState:L4,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:Br(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...L4,deletedVisits:i}})}}),YU="shlink/shortUrlVisits",O6e={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},S6e=e=>_p({typePrefix:`${YU}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=l=>i.getShortUrlVisits(t,{...l,domain:n}),s=bp(o,l=>i.getShortUrlVisits(t,{...l,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),P6e=(e,t)=>xp({name:YU,initialState:O6e,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)=>bB(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),ZU="shlink/shortUrlVisitsDeletion",R4={shortCode:"",deletedVisits:0,deleting:!1,error:!1},E6e=e=>fn(`${ZU}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),C6e=e=>Qt({name:ZU,initialState:R4,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:Br(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...R4,shortCode:i,domain:o,deletedVisits:a}})}}),XU="shlink/tagVisits",T6e={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},j6e=e=>_p({typePrefix:`${XU}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=bp(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),A6e=e=>xp({name:XU,initialState:T6e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>xB(r,t,n==null?void 0:n.dateRange)}),QU="shlink/visitsOverview",$m={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},$4=e=>e.filter(({visit:t})=>t.potentialBot).length,k6e=e=>fn(`${QU}/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}}))),N6e=e=>Qt({name:QU,initialState:$m,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...$m,loading:!0})),t.addCase(e.rejected,()=>({...$m,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...$m,...r})),t.addCase(tf,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=rLe(o.createdVisits),l=a.length,c=$4(a),f=l-c,d=s.length,p=$4(s),v=d-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+d,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+v}}})}}),M6e=({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(Op,{title:m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(hr,{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(Py,{date:e.dateCreated,relative:!0})}),m.jsx(Fr,{placement:"bottom",target:"created",children:m.jsx(Py,{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(hr,{href:o,children:a??o})]})]})},JU=Di(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=Ko("shortUrlVisitsDeletion"),{ReportExporter:l}=Rt(JU),c=wC(),f=M.useMemo(()=>{var y;return(y=n.shortUrls)==null?void 0:y.get(c)},[c,n.shortUrls]),d=M.useCallback((y,g)=>r({...c,options:g,params:y}),[r,c]),p=M.useCallback(y=>l.exportVisits(`short-url_${f==null?void 0:f.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,y),[l,f==null?void 0:f.shortUrl]),v=M.useMemo(()=>s?{deleteVisits:()=>o(c),visitsDeletion:t}:void 0,[o,c,t,s]);return M.useEffect(()=>{i([c])},[c,i]),m.jsx(Sp,{getVisits:d,cancelGetVisits:a,visitsInfo:e,exportCsv:p,deletion:v,children:m.jsx(M6e,{shortUrl:f,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Jn.shortUrlVisits(hC(e.shortCode))]:[]),L6e=$t(JU,["ReportExporter"]),R6e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return m.jsx(Op,{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(vb,{text:r,colorGenerator:t})]}),visits:n})},e9=Di(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Rt(e9),{tag:o=""}=Mu(),a=M.useCallback((l,c)=>e({tag:o,params:l,options:c}),[e,o]),s=M.useCallback(l=>i.exportVisits(`tag_${o}_visits.csv`,l),[i,o]);return m.jsx(Sp,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:m.jsx(R6e,{tagVisits:t,colorGenerator:r})})},()=>[Jn.visits]),$6e=$t(e9,["ColorGenerator","ReportExporter"]),TC=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=nr("visits"),l=M.useMemo(()=>Object.keys(a).reduce((b,w,S)=>(b[w]=Object.assign(Ty(a[w]),{color:(t==null?void 0:t[w])??LU(S)}),b),{}),[t,a]),c=M.useMemo(()=>Object.values(a).every(b=>b.length===0),[a]),[{dateRange:f,visitsFilter:d},p]=IU(),[v,y]=M.useState(),g=M.useCallback(({startDate:b,endDate:w},S)=>{p({dateRange:{startDate:b??void 0,endDate:w??void 0}}),y(S)},[p]),x=M.useRef(f??(s==null?void 0:s.defaultInterval)??"last30Days"),_=M.useMemo(()=>({...d,excludeBots:d.excludeBots??(s==null?void 0:s.excludeBots)}),[d,s==null?void 0:s.excludeBots]);return M.useEffect(()=>{const b=f??gB(x.current);return n({params:{dateRange:b,filter:_}}),i},[i,f,n,_]),m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mb-3",children:m.jsxs(gt,{bodyClassName:"d-flex",children:[m.jsx(mb,{}),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(OC,{disabled:o,defaultText:"All visits",dateRangeOrInterval:v??f??x.current,onDatesChange:g})}),m.jsx(FU,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:_,onChange:({orphanVisitsType:b,excludeBots:w})=>p({visitsFilter:{orphanVisitsType:b,excludeBots:w}})})]})}),m.jsx(BU,{info:r}),!o&&m.jsx(av,{showFallback:c,children:m.jsx($U,{visitsGroups:l,onDateRangeChange:g})})]})},I6e=Di(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=bC("domains"),i=M.useCallback(o=>e({...o,domains:r}),[r,e]);return m.jsx(TC,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Jn.visits]),D6e=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(l=>[l,0])),a=(l,c)=>{o[l]=c;const f=Object.values(o),d=f.reduce((p,v)=>p+v,0);n(d/f.length)},s=Object.entries(e).map(([l,c])=>[l,wB({visitsLoader:c,batchSize:i,shouldCancel:t,progressChanged:f=>a(l,f)})]);return async l=>{const c=await Promise.all(s.map(async([f,d])=>{const p=await d(l);return[f,p]}));return Object.fromEntries(c)}},jC=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Xn(`${e}/progressChanged`),i=fn(e,async(o,{getState:a,dispatch:s})=>{const l=t(o),c=await D6e({visitsLoaders:l,shouldCancel:()=>n(a),progressChanged:f=>s(r(f))})(qO(o.params));return{...o,visitsGroups:c}});return Object.assign(i,{progressChanged:r})},AC=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:l,actions:c}=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:Br(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(tf,(p,{payload:v})=>{const{visitsGroups:y,...g}=p,x=Object.keys(y).map(b=>{const w=r({...g,groupKey:b},v.createdVisits).map(({visit:S})=>S);return[b,[...w,...y[b]]]}),_=Object.fromEntries(x);return{...g,visitsGroups:_}})}}),{cancelGetVisits:f}=c;return{reducer:l,cancelGetVisits:f}},t9="shlink/domainVisitsComparison",F6e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},B6e=e=>jC({typePrefix:`${t9}/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}),U6e=e=>AC({name:t9,initialState:F6e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>_B(r,t,n==null?void 0:n.dateRange)}),n9="shlink/shortUrlVisitsComparison",z6e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},V6e=e=>jC({typePrefix:`${n9}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[pC(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),W6e=e=>AC({name:n9,initialState:z6e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>bB(r,uB(t),n==null?void 0:n.dateRange)}),r9="shlink/tagVisitsComparison",H6e={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},G6e=e=>jC({typePrefix:`${r9}/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}),q6e=e=>AC({name:r9,initialState:H6e,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>xB(r,t,n==null?void 0:n.dateRange)}),K6e=Di(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=bC("short-urls"),a=M.useMemo(()=>o.map(uB),[o]),s=M.useCallback(f=>e({...f,shortUrls:a}),[e,a]),l=M.useMemo(()=>{var f;return[...((f=r.shortUrls)==null?void 0:f.values())??[]]},[r.shortUrls]),c=M.useMemo(()=>{const{visitsGroups:f,loading:d,...p}=t,v=l.reduce((y,g)=>(y[g.shortUrl]=f[pC(g)]??[],y),{});return{...p,visitsGroups:v,loading:d||r.loading}},[t,r.loading,l]);return M.useEffect(()=>{a.length>0&&i(a)},[i,a]),m.jsx(TC,{title:m.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${l.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:c,cancelGetVisitsComparison:n})},()=>[Jn.visits]),i9=Di(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Rt(i9),i=bC("tags"),o=M.useCallback(l=>e({...l,tags:i}),[e,i]),{visitsGroups:a}=t,s=M.useMemo(()=>Object.keys(a).reduce((l,c)=>(l[c]=r.getColorForKey(c),l),{}),[r,a]);return m.jsx(TC,{title:m.jsxs(m.Fragment,{children:["Comparing ",i.map(l=>m.jsx(vb,{colorGenerator:r,text:l},l))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[Jn.visits]),Y6e=$t(i9,["ColorGenerator"]),Z6e=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>DU),e.factory("ShortUrlVisits",L6e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",$6e),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",Y6e),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>I6e),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>K6e),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",u6e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",d6e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",f6e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>i6e),e.serviceFactory("getShortUrlVisits",S6e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",V6e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",E6e,"apiClientFactory"),e.serviceFactory("getTagVisits",j6e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",G6e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",dLe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",B6e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",b6e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",x6e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",p6e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>tf),e.serviceFactory("loadVisitsOverview",k6e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",N6e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",hLe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",m6e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",_6e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",w6e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",P6e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",C6e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",A6e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",q6e,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",U6e,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",W6e,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},zf=({children:e,to:t,className:n,...r})=>m.jsx(x6,{className:({isActive:i})=>Oe("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),X6e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=pr(),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(zf,{to:i("/overview"),children:[m.jsx(je,{fixedWidth:!0,icon:NK}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(zf,{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:$6}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(zf,{to:i("/create-short-url"),children:[m.jsx(je,{fixedWidth:!0,icon:DK,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(zf,{to:i("/manage-tags"),children:[m.jsx(je,{fixedWidth:!0,icon:I6}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(zf,{to:i("/manage-domains"),children:[m.jsx(je,{fixedWidth:!0,icon:fK}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},o9=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:l,Overview:c,EditShortUrl:f,ManageDomains:d,TagVisitsComparison:p,DomainVisitsComparison:v,ShortUrlVisitsComparison:y,ShortUrlRedirectRules:g}=Rt(o9),x=pr(),_=ds(),[b,w,S,P]=Lt();M.useEffect(()=>P(),[x,P]);const E=Oe("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),T=gLe(S,P),j=Ko("shortUrlRedirectRules");return m.jsxs(m.Fragment,{children:[m.jsx(je,{icon:aK,className:E,onClick:w}),m.jsx("div",{...T,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(X6e,{routePrefix:_,showOnMobile:b}),m.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>P(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(Xy,{children:[m.jsx(ot,{index:!0,element:m.jsx(eP,{replace:!0,to:"overview"})}),m.jsx(ot,{path:"/overview",element:m.jsx(c,{})}),m.jsx(ot,{path:"/list-short-urls/:page",element:m.jsx(n,{})}),m.jsx(ot,{path:"/create-short-url",element:m.jsx(r,{})}),m.jsx(ot,{path:"/short-code/:shortCode/visits/*",element:m.jsx(i,{})}),m.jsx(ot,{path:"/short-code/:shortCode/edit",element:m.jsx(f,{})}),j&&m.jsx(ot,{path:"/short-code/:shortCode/redirect-rules",element:m.jsx(g,{})}),m.jsx(ot,{path:"/short-urls/compare-visits",element:m.jsx(y,{})}),m.jsx(ot,{path:"/tag/:tag/visits/*",element:m.jsx(o,{})}),m.jsx(ot,{path:"/tags/compare-visits",element:m.jsx(p,{})}),m.jsx(ot,{path:"/domain/:domain/visits/*",element:m.jsx(a,{})}),m.jsx(ot,{path:"/orphan-visits/*",element:m.jsx(s,{})}),m.jsx(ot,{path:"/non-orphan-visits/*",element:m.jsx(l,{})}),m.jsx(ot,{path:"/manage-tags",element:m.jsx(t,{})}),m.jsx(ot,{path:"/manage-domains",element:m.jsx(d,{})}),m.jsx(ot,{path:"/domains/compare-visits",element:m.jsx(v,{})}),e&&m.jsx(ot,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},Q6e=$t(o9,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),J6e=!0,eIe=e=>ND({devTools:!J6e,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})}),tIe=e=>{e.factory("Main",Q6e),e.factory("store",eIe)},Fi=new N6,{container:nIe}=Fi,rIe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),iIe=(e,t)=>(...n)=>e[t](...n),oIe=(e,t)=>({...e,[t]:iIe(nIe,t)}),nf=(e,t=[])=>l6(e?rIe(e):null,t.reduce(oIe,{}));tIe(Fi);BRe(Fi,nf);c$e(Fi,nf);Z6e(Fi,nf);kLe(Fi);TLe(Fi,nf);zLe(Fi,nf);P$e(Fi);eRe(Fi,nf);let I4;const aIe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=H4e(t),l=M.useRef(),[c,f]=M.useState(),d=wl(),p=M.useMemo(()=>d?M.Fragment:_6,[d]);return M.useEffect(()=>{I4=n,e.value("apiClientFactory",()=>I4),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:y,store:g,loadMercureInfo:x,listTags:_,listDomains:b}=v;l.current=m.jsx(y,{createNotFound:o}),f(g),g.dispatch(x(r)),g.dispatch(_()),g.dispatch(b())},[n,o,r,a]),c?m.jsx(c6,{store:c,children:m.jsx(ZD,{value:r??{},children:m.jsx(W4e,{value:s,children:m.jsx(HMe,{value:i,children:m.jsx(p,{children:l.current})})})})}):m.jsx(m.Fragment,{})},sIe="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=",lIe="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==",cIe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",uIe=()=>{delete e4.Icon.Default.prototype._getIconUrl,e4.Icon.Default.mergeOptions({iconRetinaUrl:lIe,iconUrl:sIe,shadowUrl:cIe})};uIe();const fIe=aIe(Fi);function jy(e){return t=>{const{resetSelectedServer:n}=t;return M.useEffect(()=>{n()},[n]),m.jsx(e,{...t})}}let dIe=class extends M.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(gt,{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 hIe=({id:e,name:t})=>m.jsxs(uD,{tag:At,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(je,{icon:VK,className:"servers-list__server-item-icon"})]}),a9=({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(lD,{"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(hIe,{id:r,name:i},r))})]}),s9=({color:e=nh,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"})]})}),pIe=({servers:e})=>{const t=po(),n=Object.values(e),r=n.length>0;return M.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),m.jsx("div",{className:"w-100",children:m.jsx(Dr,{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(s9,{})})}),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(a9,{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(At,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(je,{icon:Zh})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0",children:m.jsx(hr,{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:OK})]})})})]})})]})]})})})},l9=()=>{const{ServersDropdown:e}=Ri(l9),[t,n,,r]=Lt(),i=pr(),{pathname:o}=i;M.useEffect(r,[i,r]);const a="/settings",s=Oe("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(kI,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(NI,{tag:At,to:"/",children:[m.jsx(s9,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(MI,{onClick:n,children:m.jsx(je,{icon:UK,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(EP,{tag:At,to:a,active:o.startsWith(a),children:[m.jsx(je,{icon:GK})," Settings"]})}),m.jsx(e,{})]})})]})},mIe=$i(l9,["ServersDropdown"]),vIe=({children:e})=>{const t=pr();return M.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},c9=ID(e=>e,e=>{try{return u2(e,e,"=")}catch{return!1}}),u9=e=>c9(e)?`v${e}`:e,f9=(e,t="latest")=>c9(e)?e:t,gIe="%_VERSION_%",yIe=e=>u9(f9(e)),D4=({project:e,version:t})=>m.jsx(hr,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),bIe=({selectedServer:e,clientVersion:t=gIe})=>{const n=yIe(t);return m.jsxs("small",{className:"text-muted",children:[oP(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx(D4,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx(D4,{project:"shlink-web-client",version:n})]})},_Ie=({selectedServer:e})=>m.jsx("div",{className:Oe("text-center",{"shlink-versions-container--with-sidebar":oP(e)}),children:m.jsx(bIe,{selectedServer:e})}),rf=({children:e,className:t})=>m.jsx("div",{className:Oe("no-menu-wrapper container-xl",t),children:e});function d9(e){const t=n=>{const{ServerError:r}=Ri(t),i=Mu(),{selectServer:o,selectedServer:a}=n;return M.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?Gq(a)?m.jsx(r,{}):m.jsx(e,{...n}):m.jsx(rf,{children:m.jsx(zo,{loading:!0})})};return t}const h9=d9(M.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Ri(h9);if(!oP(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(bD,{to:`${a}${s}`,children:"List short URLs"})})})),xIe=$i(h9,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),wIe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",ioe,"fetch"),e.serviceFactory("ScrollToTop",()=>vIe),e.factory("MainHeader",mIe),e.serviceFactory("Home",()=>pIe),e.decorator("Home",jy),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>fIe),e.factory("ShlinkWebComponentContainer",xIe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>_Ie),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>dIe)},p9=()=>{const e=po();return M.useCallback(()=>e(-1),[e])};function OIe(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 SIe(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const PIe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function EIe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=$D(t,o=>PIe(n,o)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function Ay(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const o=OIe(i);let a=o,s=1;for(;n.has(a);)a=`${o}-${s}`,s++;r.push({...i,id:a}),n.add(a)}),r}const m9=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs(vr,{centered:!0,isOpen:e,children:[m.jsxs(mo,{children:["Duplicated server",i&&"s"]}),m.jsxs(Li,{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(M.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(as,{children:[m.jsx(qe,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),m.jsx(qe,{color:"primary",onClick:r,children:"Save anyway"})]})]})},CIe=e=>t=>{t.preventDefault(),e()},v9=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=M.useState((t==null?void 0:t.name)??""),[a,s]=M.useState((t==null?void 0:t.url)??""),[l,c]=M.useState((t==null?void 0:t.apiKey)??""),f=CIe(()=>e({name:i,url:a,apiKey:l}));return m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(gt,{className:"mb-3",title:r,children:[m.jsx(ev,{value:i,onChange:o,children:"Name"}),m.jsx(ev,{type:"url",value:a,onChange:s,children:"URL"}),m.jsx(ev,{value:l,onChange:c,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},F4=4e3,B4=({type:e})=>m.jsx("div",{className:"mt-3",children:m.jsxs(Zn,{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."]})}),g9=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Ri(g9),i=po(),o=p9(),a=!!Object.keys(e).length,[s,l]=r(!1,F4),[c,f]=r(!1,F4),[d,p]=Lt(),[v,y]=M.useState(),g=M.useCallback(_=>{const[b]=Ay(e,[_]);t([b]),i(`/server/${b.id}`)},[t,i,e]),x=M.useCallback(_=>{y(_),Object.values(e).some(({url:w,apiKey:S})=>_.url===w&&_.apiKey===S)?p():g(_)},[g,e,p]);return m.jsxs(rf,{children:[m.jsxs(v9,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:x,children:[!a&&m.jsx(n,{tooltipPlacement:"top",onImport:l,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(B4,{type:"success"}),c&&m.jsx(B4,{type:"error"}),m.jsx(m9,{isOpen:d,duplicatedServers:v?[v]:[],onDiscard:o,onSave:()=>v&&g(v)})]})},TIe=$i(g9,["ImportServersBtn","useTimeoutToggle"]),y9=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Ri(y9),[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:aP}),m.jsx("span",{className:r,children:n??"Remove this server"})]}),m.jsx(i,{server:e,isOpen:o,toggle:s})]})},jIe=$i(y9,["DeleteServerModal"]),AIe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=po(),a=M.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return m.jsxs(vr,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[m.jsx(mo,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(Li,{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(as,{children:[m.jsx(qe,{color:"link",onClick:t,children:"Cancel"}),m.jsx(qe,{color:"danger",onClick:s,children:"Delete"})]})]})},kIe=d9(({editServer:e,selectedServer:t,selectServer:n})=>{const r=p9(),{reconnect:i}=$u();if(!cd(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return m.jsx(rf,{children:m.jsxs(v9,{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"})]})})}),NIe=$i(kIe,["ServerError"]),b9=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Ri(b9),l=Mi(),[c,f]=M.useState([]),[d,,p,v]=Lt(),y=M.useRef([]),g=M.useRef([]),x=M.useCallback(S=>{e(S),r()},[e,r]),_=M.useCallback(async({target:S})=>{var P;return s.importServersFromFile((P=S.files)==null?void 0:P[0]).then(E=>{const{duplicatedServers:T,newServers:j}=EIe(t,E);y.current=Ay(t,E),g.current=Ay(t,j),T.length===0?x(y.current):(f(T),p())}).then(()=>{S.value=null}).catch(i)},[x,i,t,s,p]),b=M.useCallback(()=>{x(y.current),v()},[x,v]),w=M.useCallback(()=>{x(g.current),v()},[x,v]);return m.jsxs(m.Fragment,{children:[m.jsxs(qe,{outline:!0,id:"importBtn",className:a,onClick:()=>{var S;return(S=l.current)==null?void 0:S.click()},children:[m.jsx(je,{icon:pK,fixedWidth:!0})," ",n??"Import from file"]}),m.jsxs(Fr,{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:l,onChange:_,"data-testid":"csv-file-input"}),m.jsx(m9,{isOpen:d,duplicatedServers:c,onDiscard:w,onSave:b})]})},MIe=$i(b9,["ServersImporter"]),_9=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Ri(_9);return m.jsx(rf,{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:[!cd(t)&&"Could not find this Shlink server.",cd(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(a9,{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(At,{to:"/server/create",children:"add a new one"}),"."]})}),cd(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(At,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},LIe=$i(_9,["DeleteServerButton"]),RIe=4e3,x9=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Ri(x9),[o,a]=M.useState(""),s=M.useMemo(()=>Object.values(e),[e]),l=M.useMemo(()=>s.filter(({name:p,url:v})=>`${p} ${v}`.toLowerCase().match(o.toLowerCase())),[s,o]),c=s.some(({autoConnect:p})=>!!p),[f,d]=r(!1,RIe);return m.jsxs(rf,{className:"d-flex flex-column gap-3",children:[m.jsx(ip,{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"}),l.length>0&&m.jsxs(qe,{outline:!0,className:"flex-fill",onClick:async()=>t.exportServers(),children:[m.jsx(je,{icon:F6,fixedWidth:!0})," Export servers"]})]}),m.jsxs(qe,{outline:!0,color:"primary",className:"ms-md-auto",tag:At,to:"/server/create",children:[m.jsx(je,{icon:Zh,fixedWidth:!0})," Add a server"]})]}),m.jsx(gt,{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:[c&&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:[!l.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),l.map(p=>m.jsx(i,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&m.jsx("div",{children:m.jsx(Zn,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},$Ie=$i(x9,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),w9=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Ri(w9);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:qd,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Fr,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(At,{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})})]})},IIe=$i(w9,["ManageServersRowDropdown"]),O9=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Ri(O9),[r,,i,o]=Lt(),a=`/server/${e.id}`,{autoConnect:s}=e,l=s?dK:hse;return m.jsxs(l0,{minWidth:s?210:170,children:[m.jsxs(Ne,{tag:At,to:a,children:[m.jsx(je,{icon:uK,fixedWidth:!0})," Connect"]}),m.jsxs(Ne,{tag:At,to:`${a}/edit`,children:[m.jsx(je,{icon:sP,fixedWidth:!0})," Edit server"]}),m.jsxs(Ne,{onClick:()=>t(e,!s),children:[m.jsx(je,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{className:"dropdown-item--danger",onClick:i,children:[m.jsx(je,{icon:aP,fixedWidth:!0})," Remove server"]}),m.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},DIe=$i(O9,["DeleteServerModal"]),S9=(e,t)=>LD(e,t,{serializeError:n=>n}),FIe={},{actions:BIe,reducer:UIe}=Qt({name:"shlink/servers",initialState:FIe,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:SIe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:zIe,deleteServer:VIe,setAutoConnect:WIe,createServers:P9}=BIe,HIe=UIe,GIe=e=>Ay({},Array.isArray(e)?e.filter(M6):[]),qIe=e=>S9("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${$v.homepage}/servers.json`),i=GIe(r);n(P9(i))}),kC="shlink/selectedServer",KIe="1.0.0",YIe="999.999.999",ZIe="latest",XIe=e=>f9(e===ZIe?YIe:e,KIe),QIe=ID(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:XIe(n),printableVersion:u9(n)}))),U4=null,NC=Xn(`${kC}/resetSelectedServer`),JIe=e=>S9(`${kC}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(NC());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:l}=await QIe(o,()=>a.health());return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),eDe=e=>Qt({name:kC,initialState:U4,reducers:{},extraReducers:t=>{t.addCase(NC,()=>U4),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),tDe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?m.jsxs(Ne,{tag:At,to:"/server/create",children:[m.jsx(je,{icon:Zh})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]}):m.jsxs(m.Fragment,{children:[n.map(({name:i,id:o})=>m.jsx(Ne,{tag:At,to:`/server/${o}`,active:qq(t)===o,children:i},o)),m.jsx(Ne,{divider:!0,tag:"hr"}),m.jsxs(Ne,{tag:At,to:"/manage-servers",children:[m.jsx(je,{icon:iA})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs(rp,{nav:!0,inNavbar:!0,children:[m.jsxs(Jo,{nav:!0,caret:!0,children:[m.jsx(je,{icon:iA})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(os,{end:!0,style:{right:0},children:r()})]})},nDe=({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)},rDe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);nDe(e,i,n)},iDe="shlink-servers.csv";class oDe{constructor(t,n,r){Fl(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(Kq);try{const n=this.jsonToCsv(t);rDe(this.window,n,iDe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const aDe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",sDe=e=>Array.isArray(e)&&e.every(aDe);class lDe{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(!sDe(r))throw new Error("Provided file does not have the right format.");return r}}const cDe=(e,t)=>{e.factory("ManageServers",$Ie),e.decorator("ManageServers",jy),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",IIe),e.factory("ManageServersRowDropdown",DIe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",TIe),e.decorator("CreateServer",jy),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",NIe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>tDe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>AIe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",jIe),e.factory("ImportServersBtn",MIe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",LIe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",lDe,"csvToJson"),e.service("ServersExporter",oDe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",JIe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>P9),e.serviceFactory("deleteServer",()=>VIe),e.serviceFactory("editServer",()=>zIe),e.serviceFactory("setAutoConnect",()=>WIe),e.serviceFactory("fetchServers",qIe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>NC),e.serviceFactory("selectedServerReducerCreator",eDe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},E9={field:"dateCreated",dir:"DESC"},uDe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:FP()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:E9}},{reducer:fDe,actions:dDe}=Qt({name:"shlink/settings",initialState:uDe,reducers:{setSettings:(e,{payload:t})=>p0(e,t)}}),{setSettings:hDe}=dDe,pDe=fDe,mDe=({settings:e,setSettings:t})=>m.jsx(rf,{children:m.jsx(use,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:E9})}),vDe=(e,t)=>{e.serviceFactory("Settings",()=>mDe),e.decorator("Settings",jy),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>hDe)};var gDe=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(y){var g=[];for(var x in y)g.push(x);return g};e.exports=d;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var f=l[c];d.prototype[f]||(d.prototype[f]=s.prototype[f])}function d(y){if(!(this instanceof d))return new d(y);a.call(this,y),s.call(this,y),y&&y.readable===!1&&(this.readable=!1),y&&y.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,y&&y.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(v,this)}function v(y){y.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(y){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),d.prototype._destroy=function(y,g){this.push(null),this.end(),r.nextTick(g,y)}},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 c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(A,N){if(s()<N)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(A=new Uint8Array(N)).__proto__=c.prototype:(A===null&&(A=new c(N)),A.length=N),A}function c(A,N,U){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(A,N,U);if(typeof A=="number"){if(typeof N=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,A)}return f(this,A,N,U)}function f(A,N,U,J){if(typeof N=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&N instanceof ArrayBuffer?function(Y,oe,he,Pe){if(oe.byteLength,he<0||oe.byteLength<he)throw new RangeError("'offset' is out of bounds");if(oe.byteLength<he+(Pe||0))throw new RangeError("'length' is out of bounds");return oe=he===void 0&&Pe===void 0?new Uint8Array(oe):Pe===void 0?new Uint8Array(oe,he):new Uint8Array(oe,he,Pe),c.TYPED_ARRAY_SUPPORT?(Y=oe).__proto__=c.prototype:Y=v(Y,oe),Y}(A,N,U,J):typeof N=="string"?function(Y,oe,he){if(typeof he=="string"&&he!==""||(he="utf8"),!c.isEncoding(he))throw new TypeError('"encoding" must be a valid string encoding');var Pe=0|g(oe,he),se=(Y=l(Y,Pe)).write(oe,he);return se!==Pe&&(Y=Y.slice(0,se)),Y}(A,N,U):function(Y,oe){if(c.isBuffer(oe)){var he=0|y(oe.length);return(Y=l(Y,he)).length===0||oe.copy(Y,0,0,he),Y}if(oe){if(typeof ArrayBuffer<"u"&&oe.buffer instanceof ArrayBuffer||"length"in oe)return typeof oe.length!="number"||function(Pe){return Pe!=Pe}(oe.length)?l(Y,0):v(Y,oe);if(oe.type==="Buffer"&&a(oe.data))return v(Y,oe.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(A,N)}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,N){if(d(N),A=l(A,N<0?0:0|y(N)),!c.TYPED_ARRAY_SUPPORT)for(var U=0;U<N;++U)A[U]=0;return A}function v(A,N){var U=N.length<0?0:0|y(N.length);A=l(A,U);for(var J=0;J<U;J+=1)A[J]=255&N[J];return A}function y(A){if(A>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|A}function g(A,N){if(c.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 U=A.length;if(U===0)return 0;for(var J=!1;;)switch(N){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":case void 0:return re(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return ae(A).length;default:if(J)return re(A).length;N=(""+N).toLowerCase(),J=!0}}function x(A,N,U){var J=A[N];A[N]=A[U],A[U]=J}function _(A,N,U,J,Y){if(A.length===0)return-1;if(typeof U=="string"?(J=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,isNaN(U)&&(U=Y?0:A.length-1),U<0&&(U=A.length+U),U>=A.length){if(Y)return-1;U=A.length-1}else if(U<0){if(!Y)return-1;U=0}if(typeof N=="string"&&(N=c.from(N,J)),c.isBuffer(N))return N.length===0?-1:b(A,N,U,J,Y);if(typeof N=="number")return N&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(A,N,U):Uint8Array.prototype.lastIndexOf.call(A,N,U):b(A,[N],U,J,Y);throw new TypeError("val must be string, number or Buffer")}function b(A,N,U,J,Y){var oe,he=1,Pe=A.length,se=N.length;if(J!==void 0&&((J=String(J).toLowerCase())==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(A.length<2||N.length<2)return-1;he=2,Pe/=2,se/=2,U/=2}function pe(Ce,Ae){return he===1?Ce[Ae]:Ce.readUInt16BE(Ae*he)}if(Y){var ve=-1;for(oe=U;oe<Pe;oe++)if(pe(A,oe)===pe(N,ve===-1?0:oe-ve)){if(ve===-1&&(ve=oe),oe-ve+1===se)return ve*he}else ve!==-1&&(oe-=oe-ve),ve=-1}else for(U+se>Pe&&(U=Pe-se),oe=U;oe>=0;oe--){for(var xe=!0,Te=0;Te<se;Te++)if(pe(A,oe+Te)!==pe(N,Te)){xe=!1;break}if(xe)return oe}return-1}function w(A,N,U,J){U=Number(U)||0;var Y=A.length-U;J?(J=Number(J))>Y&&(J=Y):J=Y;var oe=N.length;if(oe%2!=0)throw new TypeError("Invalid hex string");J>oe/2&&(J=oe/2);for(var he=0;he<J;++he){var Pe=parseInt(N.substr(2*he,2),16);if(isNaN(Pe))return he;A[U+he]=Pe}return he}function S(A,N,U,J){return ue(re(N,A.length-U),A,U,J)}function P(A,N,U,J){return ue(function(Y){for(var oe=[],he=0;he<Y.length;++he)oe.push(255&Y.charCodeAt(he));return oe}(N),A,U,J)}function E(A,N,U,J){return P(A,N,U,J)}function T(A,N,U,J){return ue(ae(N),A,U,J)}function j(A,N,U,J){return ue(function(Y,oe){for(var he,Pe,se,pe=[],ve=0;ve<Y.length&&!((oe-=2)<0);++ve)Pe=(he=Y.charCodeAt(ve))>>8,se=he%256,pe.push(se),pe.push(Pe);return pe}(N,A.length-U),A,U,J)}function F(A,N,U){return N===0&&U===A.length?i.fromByteArray(A):i.fromByteArray(A.slice(N,U))}function k(A,N,U){U=Math.min(A.length,U);for(var J=[],Y=N;Y<U;){var oe,he,Pe,se,pe=A[Y],ve=null,xe=pe>239?4:pe>223?3:pe>191?2:1;if(Y+xe<=U)switch(xe){case 1:pe<128&&(ve=pe);break;case 2:(192&(oe=A[Y+1]))==128&&(se=(31&pe)<<6|63&oe)>127&&(ve=se);break;case 3:oe=A[Y+1],he=A[Y+2],(192&oe)==128&&(192&he)==128&&(se=(15&pe)<<12|(63&oe)<<6|63&he)>2047&&(se<55296||se>57343)&&(ve=se);break;case 4:oe=A[Y+1],he=A[Y+2],Pe=A[Y+3],(192&oe)==128&&(192&he)==128&&(192&Pe)==128&&(se=(15&pe)<<18|(63&oe)<<12|(63&he)<<6|63&Pe)>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(Te){var Ce=Te.length;if(Ce<=I)return String.fromCharCode.apply(String,Te);for(var Ae="",le=0;le<Ce;)Ae+=String.fromCharCode.apply(String,Te.slice(le,le+=I));return Ae}(J)}t.Buffer=c,t.SlowBuffer=function(A){return+A!=A&&(A=0),c.alloc(+A)},t.INSPECT_MAX_BYTES=50,c.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(),c.poolSize=8192,c._augment=function(A){return A.__proto__=c.prototype,A},c.from=function(A,N,U){return f(null,A,N,U)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(A,N,U){return function(J,Y,oe,he){return d(Y),Y<=0?l(J,Y):oe!==void 0?typeof he=="string"?l(J,Y).fill(oe,he):l(J,Y).fill(oe):l(J,Y)}(null,A,N,U)},c.allocUnsafe=function(A){return p(null,A)},c.allocUnsafeSlow=function(A){return p(null,A)},c.isBuffer=function(A){return!(A==null||!A._isBuffer)},c.compare=function(A,N){if(!c.isBuffer(A)||!c.isBuffer(N))throw new TypeError("Arguments must be Buffers");if(A===N)return 0;for(var U=A.length,J=N.length,Y=0,oe=Math.min(U,J);Y<oe;++Y)if(A[Y]!==N[Y]){U=A[Y],J=N[Y];break}return U<J?-1:J<U?1:0},c.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}},c.concat=function(A,N){if(!a(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return c.alloc(0);var U;if(N===void 0)for(N=0,U=0;U<A.length;++U)N+=A[U].length;var J=c.allocUnsafe(N),Y=0;for(U=0;U<A.length;++U){var oe=A[U];if(!c.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(J,Y),Y+=oe.length}return J},c.byteLength=g,c.prototype._isBuffer=!0,c.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 N=0;N<A;N+=2)x(this,N,N+1);return this},c.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 N=0;N<A;N+=4)x(this,N,N+3),x(this,N+1,N+2);return this},c.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 N=0;N<A;N+=8)x(this,N,N+7),x(this,N+1,N+6),x(this,N+2,N+5),x(this,N+3,N+4);return this},c.prototype.toString=function(){var A=0|this.length;return A===0?"":arguments.length===0?k(this,0,A):(function(N,U,J){var Y=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=(U>>>=0))return"";for(N||(N="utf8");;)switch(N){case"hex":return W(this,U,J);case"utf8":case"utf-8":return k(this,U,J);case"ascii":return D(this,U,J);case"latin1":case"binary":return K(this,U,J);case"base64":return F(this,U,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,U,J);default:if(Y)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),Y=!0}}).apply(this,arguments)},c.prototype.equals=function(A){if(!c.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||c.compare(this,A)===0},c.prototype.inspect=function(){var A="",N=t.INSPECT_MAX_BYTES;return this.length>0&&(A=this.toString("hex",0,N).match(/.{2}/g).join(" "),this.length>N&&(A+=" ... ")),"<Buffer "+A+">"},c.prototype.compare=function(A,N,U,J,Y){if(!c.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(N===void 0&&(N=0),U===void 0&&(U=A?A.length:0),J===void 0&&(J=0),Y===void 0&&(Y=this.length),N<0||U>A.length||J<0||Y>this.length)throw new RangeError("out of range index");if(J>=Y&&N>=U)return 0;if(J>=Y)return-1;if(N>=U)return 1;if(N>>>=0,U>>>=0,J>>>=0,Y>>>=0,this===A)return 0;for(var oe=Y-J,he=U-N,Pe=Math.min(oe,he),se=this.slice(J,Y),pe=A.slice(N,U),ve=0;ve<Pe;++ve)if(se[ve]!==pe[ve]){oe=se[ve],he=pe[ve];break}return oe<he?-1:he<oe?1:0},c.prototype.includes=function(A,N,U){return this.indexOf(A,N,U)!==-1},c.prototype.indexOf=function(A,N,U){return _(this,A,N,U,!0)},c.prototype.lastIndexOf=function(A,N,U){return _(this,A,N,U,!1)},c.prototype.write=function(A,N,U,J){if(N===void 0)J="utf8",U=this.length,N=0;else if(U===void 0&&typeof N=="string")J=N,U=this.length,N=0;else{if(!isFinite(N))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");N|=0,isFinite(U)?(U|=0,J===void 0&&(J="utf8")):(J=U,U=void 0)}var Y=this.length-N;if((U===void 0||U>Y)&&(U=Y),A.length>0&&(U<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var oe=!1;;)switch(J){case"hex":return w(this,A,N,U);case"utf8":case"utf-8":return S(this,A,N,U);case"ascii":return P(this,A,N,U);case"latin1":case"binary":return E(this,A,N,U);case"base64":return T(this,A,N,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,A,N,U);default:if(oe)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),oe=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function D(A,N,U){var J="";U=Math.min(A.length,U);for(var Y=N;Y<U;++Y)J+=String.fromCharCode(127&A[Y]);return J}function K(A,N,U){var J="";U=Math.min(A.length,U);for(var Y=N;Y<U;++Y)J+=String.fromCharCode(A[Y]);return J}function W(A,N,U){var J=A.length;(!N||N<0)&&(N=0),(!U||U<0||U>J)&&(U=J);for(var Y="",oe=N;oe<U;++oe)Y+=ne(A[oe]);return Y}function X(A,N,U){for(var J=A.slice(N,U),Y="",oe=0;oe<J.length;oe+=2)Y+=String.fromCharCode(J[oe]+256*J[oe+1]);return Y}function Q(A,N,U){if(A%1!=0||A<0)throw new RangeError("offset is not uint");if(A+N>U)throw new RangeError("Trying to access beyond buffer length")}function te(A,N,U,J,Y,oe){if(!c.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>Y||N<oe)throw new RangeError('"value" argument is out of bounds');if(U+J>A.length)throw new RangeError("Index out of range")}function Z(A,N,U,J){N<0&&(N=65535+N+1);for(var Y=0,oe=Math.min(A.length-U,2);Y<oe;++Y)A[U+Y]=(N&255<<8*(J?Y:1-Y))>>>8*(J?Y:1-Y)}function z(A,N,U,J){N<0&&(N=4294967295+N+1);for(var Y=0,oe=Math.min(A.length-U,4);Y<oe;++Y)A[U+Y]=N>>>8*(J?Y:3-Y)&255}function B(A,N,U,J,Y,oe){if(U+J>A.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function H(A,N,U,J,Y){return Y||B(A,0,U,4),o.write(A,N,U,J,23,4),U+4}function ee(A,N,U,J,Y){return Y||B(A,0,U,8),o.write(A,N,U,J,52,8),U+8}c.prototype.slice=function(A,N){var U,J=this.length;if(A=~~A,N=N===void 0?J:~~N,A<0?(A+=J)<0&&(A=0):A>J&&(A=J),N<0?(N+=J)<0&&(N=0):N>J&&(N=J),N<A&&(N=A),c.TYPED_ARRAY_SUPPORT)(U=this.subarray(A,N)).__proto__=c.prototype;else{var Y=N-A;U=new c(Y,void 0);for(var oe=0;oe<Y;++oe)U[oe]=this[oe+A]}return U},c.prototype.readUIntLE=function(A,N,U){A|=0,N|=0,U||Q(A,N,this.length);for(var J=this[A],Y=1,oe=0;++oe<N&&(Y*=256);)J+=this[A+oe]*Y;return J},c.prototype.readUIntBE=function(A,N,U){A|=0,N|=0,U||Q(A,N,this.length);for(var J=this[A+--N],Y=1;N>0&&(Y*=256);)J+=this[A+--N]*Y;return J},c.prototype.readUInt8=function(A,N){return N||Q(A,1,this.length),this[A]},c.prototype.readUInt16LE=function(A,N){return N||Q(A,2,this.length),this[A]|this[A+1]<<8},c.prototype.readUInt16BE=function(A,N){return N||Q(A,2,this.length),this[A]<<8|this[A+1]},c.prototype.readUInt32LE=function(A,N){return N||Q(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},c.prototype.readUInt32BE=function(A,N){return N||Q(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},c.prototype.readIntLE=function(A,N,U){A|=0,N|=0,U||Q(A,N,this.length);for(var J=this[A],Y=1,oe=0;++oe<N&&(Y*=256);)J+=this[A+oe]*Y;return J>=(Y*=128)&&(J-=Math.pow(2,8*N)),J},c.prototype.readIntBE=function(A,N,U){A|=0,N|=0,U||Q(A,N,this.length);for(var J=N,Y=1,oe=this[A+--J];J>0&&(Y*=256);)oe+=this[A+--J]*Y;return oe>=(Y*=128)&&(oe-=Math.pow(2,8*N)),oe},c.prototype.readInt8=function(A,N){return N||Q(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},c.prototype.readInt16LE=function(A,N){N||Q(A,2,this.length);var U=this[A]|this[A+1]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt16BE=function(A,N){N||Q(A,2,this.length);var U=this[A+1]|this[A]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt32LE=function(A,N){return N||Q(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},c.prototype.readInt32BE=function(A,N){return N||Q(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},c.prototype.readFloatLE=function(A,N){return N||Q(A,4,this.length),o.read(this,A,!0,23,4)},c.prototype.readFloatBE=function(A,N){return N||Q(A,4,this.length),o.read(this,A,!1,23,4)},c.prototype.readDoubleLE=function(A,N){return N||Q(A,8,this.length),o.read(this,A,!0,52,8)},c.prototype.readDoubleBE=function(A,N){return N||Q(A,8,this.length),o.read(this,A,!1,52,8)},c.prototype.writeUIntLE=function(A,N,U,J){A=+A,N|=0,U|=0,J||te(this,A,N,U,Math.pow(2,8*U)-1,0);var Y=1,oe=0;for(this[N]=255&A;++oe<U&&(Y*=256);)this[N+oe]=A/Y&255;return N+U},c.prototype.writeUIntBE=function(A,N,U,J){A=+A,N|=0,U|=0,J||te(this,A,N,U,Math.pow(2,8*U)-1,0);var Y=U-1,oe=1;for(this[N+Y]=255&A;--Y>=0&&(oe*=256);)this[N+Y]=A/oe&255;return N+U},c.prototype.writeUInt8=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,1,255,0),c.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[N]=255&A,N+1},c.prototype.writeUInt16LE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[N]=255&A,this[N+1]=A>>>8):Z(this,A,N,!0),N+2},c.prototype.writeUInt16BE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[N]=A>>>8,this[N+1]=255&A):Z(this,A,N,!1),N+2},c.prototype.writeUInt32LE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[N+3]=A>>>24,this[N+2]=A>>>16,this[N+1]=A>>>8,this[N]=255&A):z(this,A,N,!0),N+4},c.prototype.writeUInt32BE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[N]=A>>>24,this[N+1]=A>>>16,this[N+2]=A>>>8,this[N+3]=255&A):z(this,A,N,!1),N+4},c.prototype.writeIntLE=function(A,N,U,J){if(A=+A,N|=0,!J){var Y=Math.pow(2,8*U-1);te(this,A,N,U,Y-1,-Y)}var oe=0,he=1,Pe=0;for(this[N]=255&A;++oe<U&&(he*=256);)A<0&&Pe===0&&this[N+oe-1]!==0&&(Pe=1),this[N+oe]=(A/he>>0)-Pe&255;return N+U},c.prototype.writeIntBE=function(A,N,U,J){if(A=+A,N|=0,!J){var Y=Math.pow(2,8*U-1);te(this,A,N,U,Y-1,-Y)}var oe=U-1,he=1,Pe=0;for(this[N+oe]=255&A;--oe>=0&&(he*=256);)A<0&&Pe===0&&this[N+oe+1]!==0&&(Pe=1),this[N+oe]=(A/he>>0)-Pe&255;return N+U},c.prototype.writeInt8=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,1,127,-128),c.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[N]=255&A,N+1},c.prototype.writeInt16LE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[N]=255&A,this[N+1]=A>>>8):Z(this,A,N,!0),N+2},c.prototype.writeInt16BE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[N]=A>>>8,this[N+1]=255&A):Z(this,A,N,!1),N+2},c.prototype.writeInt32LE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[N]=255&A,this[N+1]=A>>>8,this[N+2]=A>>>16,this[N+3]=A>>>24):z(this,A,N,!0),N+4},c.prototype.writeInt32BE=function(A,N,U){return A=+A,N|=0,U||te(this,A,N,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),c.TYPED_ARRAY_SUPPORT?(this[N]=A>>>24,this[N+1]=A>>>16,this[N+2]=A>>>8,this[N+3]=255&A):z(this,A,N,!1),N+4},c.prototype.writeFloatLE=function(A,N,U){return H(this,A,N,!0,U)},c.prototype.writeFloatBE=function(A,N,U){return H(this,A,N,!1,U)},c.prototype.writeDoubleLE=function(A,N,U){return ee(this,A,N,!0,U)},c.prototype.writeDoubleBE=function(A,N,U){return ee(this,A,N,!1,U)},c.prototype.copy=function(A,N,U,J){if(U||(U=0),J||J===0||(J=this.length),N>=A.length&&(N=A.length),N||(N=0),J>0&&J<U&&(J=U),J===U||A.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=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-N<J-U&&(J=A.length-N+U);var Y,oe=J-U;if(this===A&&U<N&&N<J)for(Y=oe-1;Y>=0;--Y)A[Y+N]=this[Y+U];else if(oe<1e3||!c.TYPED_ARRAY_SUPPORT)for(Y=0;Y<oe;++Y)A[Y+N]=this[Y+U];else Uint8Array.prototype.set.call(A,this.subarray(U,U+oe),N);return oe},c.prototype.fill=function(A,N,U,J){if(typeof A=="string"){if(typeof N=="string"?(J=N,N=0,U=this.length):typeof U=="string"&&(J=U,U=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"&&!c.isEncoding(J))throw new TypeError("Unknown encoding: "+J)}else typeof A=="number"&&(A&=255);if(N<0||this.length<N||this.length<U)throw new RangeError("Out of range index");if(U<=N)return this;var oe;if(N>>>=0,U=U===void 0?this.length:U>>>0,A||(A=0),typeof A=="number")for(oe=N;oe<U;++oe)this[oe]=A;else{var he=c.isBuffer(A)?A:re(new c(A,J).toString()),Pe=he.length;for(oe=0;oe<U-N;++oe)this[oe+N]=he[oe%Pe]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function ne(A){return A<16?"0"+A.toString(16):A.toString(16)}function re(A,N){var U;N=N||1/0;for(var J=A.length,Y=null,oe=[],he=0;he<J;++he){if((U=A.charCodeAt(he))>55295&&U<57344){if(!Y){if(U>56319){(N-=3)>-1&&oe.push(239,191,189);continue}if(he+1===J){(N-=3)>-1&&oe.push(239,191,189);continue}Y=U;continue}if(U<56320){(N-=3)>-1&&oe.push(239,191,189),Y=U;continue}U=65536+(Y-55296<<10|U-56320)}else Y&&(N-=3)>-1&&oe.push(239,191,189);if(Y=null,U<128){if((N-=1)<0)break;oe.push(U)}else if(U<2048){if((N-=2)<0)break;oe.push(U>>6|192,63&U|128)}else if(U<65536){if((N-=3)<0)break;oe.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;oe.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return oe}function ae(A){return i.toByteArray(function(N){if((N=function(U){return U.trim?U.trim():U.replace(/^\s+|\s+$/g,"")}(N).replace(q,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N}(A))}function ue(A,N,U,J){for(var Y=0;Y<J&&!(Y+U>=N.length||Y>=A.length);++Y)N[Y+U]=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 l,c=[],f=!1,d=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):d=-1,c.length&&v())}function v(){if(!f){var x=s(p);f=!0;for(var _=c.length;_;){for(l=c,c=[];++d<_;)l&&l[d].run();d=-1,_=c.length}l=null,f=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(x)}}function y(x,_){this.fun=x,this.array=_}function g(){}i.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)_[b-1]=arguments[b];c.push(new y(x,_)),c.length!==1||f||s(v)},y.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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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 l,c,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(f-1),c=0;c<l.length;)l[c++]=arguments[c];return r.nextTick(function(){i.apply(null,l)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,l){for(var c in s)l[c]=s[c]}function a(s,l,c){return i(s,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,c)},a.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return l!==void 0?typeof c=="string"?f.fill(l,c):f.fill(l):f.fill(0),f},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,c,f,d,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var v=new Error('Uncaught, unspecified "error" event. ('+s+")");throw v.context=s,v}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,d=0;d<c;d++)p[d].apply(this,f);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(a,c),l||(l=!0,s.apply(this,arguments))}return c.listener=s,this.on(a,c),this},n.prototype.removeListener=function(a,s){var l,c,f,d;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,c=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(d=f;d-- >0;)if(l[d]===s||l[d].listener&&l[d].listener===s){c=d;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(k){var I=this;this.next=null,this.entry=null,this.finish=function(){(function(D,K,W){var X=D.entry;for(D.entry=null;X;){var Q=X.callback;K.pendingcb--,Q(void 0),X=X.next}K.corkedRequestsFree?K.corkedRequestsFree.next=D:K.corkedRequestsFree=D})(I,k)}}e.exports=w;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;w.WritableState=b;var f=n(5);f.inherits=n(2);var d,p={deprecate:n(44)},v=n(24),y=n(7).Buffer,g=o.Uint8Array||function(){},x=n(25);function _(){}function b(k,I){l=l||n(1),k=k||{};var D=I instanceof l;this.objectMode=!!k.objectMode,D&&(this.objectMode=this.objectMode||!!k.writableObjectMode);var K=k.highWaterMark,W=k.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=K||K===0?K:D&&(W||W===0)?W:X,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=k.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=k.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){(function(Z,z){var B=Z._writableState,H=B.sync,ee=B.writecb;if(function(ne){ne.writing=!1,ne.writecb=null,ne.length-=ne.writelen,ne.writelen=0}(B),z)(function(ne,re,ae,ue,A){--re.pendingcb,ae?(a.nextTick(A,ue),a.nextTick(F,ne,re),ne._writableState.errorEmitted=!0,ne.emit("error",ue)):(A(ue),ne._writableState.errorEmitted=!0,ne.emit("error",ue),F(ne,re))})(Z,B,H,z,ee);else{var q=T(B);q||B.corked||B.bufferProcessing||!B.bufferedRequest||E(Z,B),H?c(P,Z,B,q,ee):P(Z,B,q,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(k){if(l=l||n(1),!(d.call(w,this)||this instanceof l))return new w(k);this._writableState=new b(k,this),this.writable=!0,k&&(typeof k.write=="function"&&(this._write=k.write),typeof k.writev=="function"&&(this._writev=k.writev),typeof k.destroy=="function"&&(this._destroy=k.destroy),typeof k.final=="function"&&(this._final=k.final)),v.call(this)}function S(k,I,D,K,W,X,Q){I.writelen=K,I.writecb=Q,I.writing=!0,I.sync=!0,D?k._writev(W,I.onwrite):k._write(W,X,I.onwrite),I.sync=!1}function P(k,I,D,K){D||function(W,X){X.length===0&&X.needDrain&&(X.needDrain=!1,W.emit("drain"))}(k,I),I.pendingcb--,K(),F(k,I)}function E(k,I){I.bufferProcessing=!0;var D=I.bufferedRequest;if(k._writev&&D&&D.next){var K=I.bufferedRequestCount,W=new Array(K),X=I.corkedRequestsFree;X.entry=D;for(var Q=0,te=!0;D;)W[Q]=D,D.isBuf||(te=!1),D=D.next,Q+=1;W.allBuffers=te,S(k,I,!0,I.length,W,"",X.finish),I.pendingcb++,I.lastBufferedRequest=null,X.next?(I.corkedRequestsFree=X.next,X.next=null):I.corkedRequestsFree=new s(I),I.bufferedRequestCount=0}else{for(;D;){var Z=D.chunk,z=D.encoding,B=D.callback;if(S(k,I,!1,I.objectMode?1:Z.length,Z,z,B),D=D.next,I.bufferedRequestCount--,I.writing)break}D===null&&(I.lastBufferedRequest=null)}I.bufferedRequest=D,I.bufferProcessing=!1}function T(k){return k.ending&&k.length===0&&k.bufferedRequest===null&&!k.finished&&!k.writing}function j(k,I){k._final(function(D){I.pendingcb--,D&&k.emit("error",D),I.prefinished=!0,k.emit("prefinish"),F(k,I)})}function F(k,I){var D=T(I);return D&&(function(K,W){W.prefinished||W.finalCalled||(typeof K._final=="function"?(W.pendingcb++,W.finalCalled=!0,a.nextTick(j,K,W)):(W.prefinished=!0,K.emit("prefinish")))}(k,I),I.pendingcb===0&&(I.finished=!0,k.emit("finish"))),D}f.inherits(w,v),b.prototype.getBuffer=function(){for(var k=this.bufferedRequest,I=[];k;)I.push(k),k=k.next;return I},function(){try{Object.defineProperty(b.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(k){return!!d.call(this,k)||this===w&&k&&k._writableState instanceof b}})):d=function(k){return k instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(k,I,D){var K=this._writableState,W=!1,X=!K.objectMode&&function(Q){return y.isBuffer(Q)||Q instanceof g}(k);return X&&!y.isBuffer(k)&&(k=function(Q){return y.from(Q)}(k)),typeof I=="function"&&(D=I,I=null),X?I="buffer":I||(I=K.defaultEncoding),typeof D!="function"&&(D=_),K.ended?function(Q,te){var Z=new Error("write after end");Q.emit("error",Z),a.nextTick(te,Z)}(this,D):(X||function(Q,te,Z,z){var B=!0,H=!1;return Z===null?H=new TypeError("May not write null values to stream"):typeof Z=="string"||Z===void 0||te.objectMode||(H=new TypeError("Invalid non-string/buffer chunk")),H&&(Q.emit("error",H),a.nextTick(z,H),B=!1),B}(this,K,k,D))&&(K.pendingcb++,W=function(Q,te,Z,z,B,H){if(!Z){var ee=function(ae,ue,A){return ae.objectMode||ae.decodeStrings===!1||typeof ue!="string"||(ue=y.from(ue,A)),ue}(te,z,B);z!==ee&&(Z=!0,B="buffer",z=ee)}var q=te.objectMode?1:z.length;te.length+=q;var ne=te.length<te.highWaterMark;if(ne||(te.needDrain=!0),te.writing||te.corked){var re=te.lastBufferedRequest;te.lastBufferedRequest={chunk:z,encoding:B,isBuf:Z,callback:H,next:null},re?re.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else S(Q,te,!1,q,z,B,H);return ne}(this,K,X,k,I,D)),W},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var k=this._writableState;k.corked&&(k.corked--,k.writing||k.corked||k.finished||k.bufferProcessing||!k.bufferedRequest||E(this,k))},w.prototype.setDefaultEncoding=function(k){if(typeof k=="string"&&(k=k.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((k+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+k);return this._writableState.defaultEncoding=k,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(k,I,D){D(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(k,I,D){var K=this._writableState;typeof k=="function"?(D=k,k=null,I=null):typeof I=="function"&&(D=I,I=null),k!=null&&this.write(k,I),K.corked&&(K.corked=1,this.uncork()),K.ending||K.finished||function(W,X,Q){X.ending=!0,F(W,X),Q&&(X.finished?a.nextTick(Q):W.once("finish",Q)),X.ended=!0,W.writable=!1}(this,K,D)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(k){this._writableState&&(this._writableState.destroyed=k)}}),w.prototype.destroy=x.destroy,w.prototype._undestroy=x.undestroy,w.prototype._destroy=function(k,I){this.end(),I(k)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,c){function f(v,y){if(!l[v]){if(!s[v]){var g=typeof _dereq_=="function"&&_dereq_;if(!y&&g)return g(v,!0);if(d)return d(v,!0);var x=new Error("Cannot find module '"+v+"'");throw x.code="MODULE_NOT_FOUND",x}var _=l[v]={exports:{}};s[v][0].call(_.exports,function(b){return f(s[v][1][b]||b)},_,_.exports,a,s,l,c)}return l[v].exports}for(var d=typeof _dereq_=="function"&&_dereq_,p=0;p<c.length;p++)f(c[p]);return f}({1:[function(a,s,l){s.exports=function(c){var f=c._SomePromiseArray;function d(p){var v=new f(p),y=v.promise();return v.setHowMany(1),v.setUnwrap(),v.init(),y}c.any=function(p){return d(p)},c.prototype.any=function(){return d(this)}}},{}],2:[function(a,s,l){var c;try{throw new Error}catch(_){c=_}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 _=this;this.drainQueues=function(){_._drainQueues()},this._schedule=f}function y(_,b,w){this._lateQueue.push(_,b,w),this._queueTick()}function g(_,b,w){this._normalQueue.push(_,b,w),this._queueTick()}function x(_){this._normalQueue._pushOne(_),this._queueTick()}v.prototype.setScheduler=function(_){var b=this._schedule;return this._schedule=_,this._customScheduler=!0,b},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){b?(r.stderr.write("Fatal "+(_ instanceof Error?_.stack:_)+`
|
||
`),r.exit(2)):this.throwLater(_)},v.prototype.throwLater=function(_,b){if(arguments.length===1&&(b=_,_=function(){throw b}),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?y.call(this,_,b,w):this._schedule(function(){setTimeout(function(){_.call(b,w)},100)})},v.prototype.invoke=function(_,b,w){this._trampolineEnabled?g.call(this,_,b,w):this._schedule(function(){_.call(b,w)})},v.prototype.settlePromises=function(_){this._trampolineEnabled?x.call(this,_):this._schedule(function(){_._settlePromises()})}):(v.prototype.invokeLater=y,v.prototype.invoke=g,v.prototype.settlePromises=x),v.prototype._drainQueue=function(_){for(;_.length()>0;){var b=_.shift();if(typeof b=="function"){var w=_.shift(),S=_.shift();b.call(w,S)}else b._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=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(c,f,d,p){var v=!1,y=function(b,w){this._reject(w)},g=function(b,w){w.promiseRejectionQueued=!0,w.bindingPromise._then(y,y,null,this,b)},x=function(b,w){!(50397184&this._bitField)&&this._resolveCallback(w.target)},_=function(b,w){w.promiseRejectionQueued||this._reject(b)};c.prototype.bind=function(b){v||(v=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var w=d(b),S=new c(f);S._propagateFrom(this,1);var P=this._target();if(S._setBoundTo(w),w instanceof c){var E={promiseRejectionQueued:!1,promise:S,target:P,bindingPromise:w};P._then(f,g,void 0,S,E),w._then(x,_,void 0,S,E),S._setOnCancel(w)}else S._resolveCallback(P);return S},c.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(b,w){return c.resolve(w).bind(b)}}},{}],4:[function(a,s,l){var c;typeof Promise<"u"&&(c=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var c=Object.create;if(c){var f=c(null),d=c(null);f[" size"]=d[" size"]=0}s.exports=function(p){var v=a("./util"),y=v.canEvaluate;function g(b){return function(w,S){var P;if(w!=null&&(P=w[S]),typeof P!="function"){var E="Object "+v.classString(w)+" has no method '"+v.toString(S)+"'";throw new p.TypeError(E)}return P}(b,this.pop()).apply(b,this)}function x(b){return b[this]}function _(b){var w=+this;return w<0&&(w=Math.max(0,w+b.length)),b[w]}v.isIdentifier,p.prototype.call=function(b){var w=[].slice.call(arguments,1);return w.push(b),this._then(g,void 0,void 0,w,void 0)},p.prototype.get=function(b){var w;if(typeof b=="number")w=_;else if(y){var S=(void 0)(b);w=S!==null?S:x}else w=x;return this._then(w,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(c,f,d,p){var v=a("./util"),y=v.tryCatch,g=v.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,b=_;_._isCancellable();){if(!_._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var w=_._cancellationParent;if(w==null||!w._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),b=_,_=w}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(_){return _===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(_,b){if(v.isArray(_))for(var w=0;w<_.length;++w)this._doInvokeOnCancel(_[w],b);else if(_!==void 0)if(typeof _=="function"){if(!b){var S=y(_).call(this._boundValue());S===g&&(this._attachExtraTrace(S.e),x.throwLater(S.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,_)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(c){var f=a("./util"),d=a("./es5").keys,p=f.tryCatch,v=f.errorObj;return function(y,g,x){return function(_){var b=x._boundValue();e:for(var w=0;w<y.length;++w){var S=y[w];if(S===Error||S!=null&&S.prototype instanceof Error){if(_ instanceof S)return p(g).call(b,_)}else if(typeof S=="function"){var P=p(S).call(b,_);if(P===v)return P;if(P)return p(g).call(b,_)}else if(f.isObject(_)){for(var E=d(S),T=0;T<E.length;++T){var j=E[T];if(S[j]!=_[j])continue e}return p(g).call(b,_)}}return c}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(c){var f=!1,d=[];function p(){this._trace=new p.CapturedTrace(v())}function v(){var y=d.length-1;if(y>=0)return d[y]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.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 y=d.pop(),g=y._promiseCreated;return y._promiseCreated=null,g}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var y=c.prototype._pushContext,g=c.prototype._popContext,x=c._peekContext,_=c.prototype._peekContext,b=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=y,c.prototype._popContext=g,c._peekContext=x,c.prototype._peekContext=_,c.prototype._promiseCreated=b,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=v,c.prototype._promiseCreated=function(){var w=this._peekContext();w&&w._promiseCreated==null&&(w._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(c,f){var d,p,v,y=c._getDomain,g=c._async,x=a("./errors").Warning,_=a("./util"),b=_.canAttachTrace,w=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,S=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,E=null,T=null,j=!1,F=_.env("BLUEBIRD_DEBUG")!=0,k=!(_.env("BLUEBIRD_WARNINGS")==0||!F&&!_.env("BLUEBIRD_WARNINGS")),I=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!F&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),D=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(k||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var le=this._target();le._bitField=-1048577&le._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var le=this;setTimeout(function(){le._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){he("rejectionHandled",d,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var le=this._settledValue();this._setUnhandledRejectionIsNotified(),he("unhandledRejection",p,le,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(le,fe,ye){return U(le,fe,ye||this)},c.onPossiblyUnhandledRejection=function(le){var fe=y();p=typeof le=="function"?fe===null?le:_.domainBind(fe,le):void 0},c.onUnhandledRejectionHandled=function(le){var fe=y();d=typeof le=="function"?fe===null?le:_.domainBind(fe,le):void 0};var K=function(){};c.longStackTraces=function(){if(g.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=c.prototype._captureStackTrace,fe=c.prototype._attachExtraTrace;Ae.longStackTraces=!0,K=function(){if(g.haveItemsQueued()&&!Ae.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);c.prototype._captureStackTrace=le,c.prototype._attachExtraTrace=fe,f.deactivateLongStackTraces(),g.enableTrampoline(),Ae.longStackTraces=!1},c.prototype._captureStackTrace=A,c.prototype._attachExtraTrace=N,f.activateLongStackTraces(),g.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Ae.longStackTraces&&se()};var W=function(){try{if(typeof CustomEvent=="function"){var le=new CustomEvent("CustomEvent");return _.global.dispatchEvent(le),function(fe,ye){var ge=new CustomEvent(fe.toLowerCase(),{detail:ye,cancelable:!0});return!_.global.dispatchEvent(ge)}}return typeof Event=="function"?(le=new Event("CustomEvent"),_.global.dispatchEvent(le),function(fe,ye){var ge=new Event(fe.toLowerCase(),{cancelable:!0});return ge.detail=ye,!_.global.dispatchEvent(ge)}):((le=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(le),function(fe,ye){var ge=document.createEvent("CustomEvent");return ge.initCustomEvent(fe.toLowerCase(),!1,!0,ye),!_.global.dispatchEvent(ge)})}catch{}return function(){return!1}}(),X=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(le){var fe="on"+le.toLowerCase(),ye=_.global[fe];return!!ye&&(ye.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Q(le,fe){return{promise:fe}}var te={promiseCreated:Q,promiseFulfilled:Q,promiseRejected:Q,promiseResolved:Q,promiseCancelled:Q,promiseChained:function(le,fe,ye){return{promise:fe,child:ye}},warning:function(le,fe){return{warning:fe}},unhandledRejection:function(le,fe,ye){return{reason:fe,promise:ye}},rejectionHandled:Q},Z=function(le){var fe=!1;try{fe=X.apply(null,arguments)}catch(ge){g.throwLater(ge),fe=!0}var ye=!1;try{ye=W(le,te[le].apply(null,arguments))}catch(ge){g.throwLater(ge),ye=!0}return ye||fe};function z(){return!1}function B(le,fe,ye){var ge=this;try{le(fe,ye,function(we){if(typeof we!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(we));ge._attachCancellationCallback(we)})}catch(we){return we}}function H(le){if(!this._isCancellable())return this;var fe=this._onCancel();fe!==void 0?_.isArray(fe)?fe.push(le):this._setOnCancel([fe,le]):this._setOnCancel(le)}function ee(){return this._onCancelField}function q(le){this._onCancelField=le}function ne(){this._cancellationParent=void 0,this._onCancelField=void 0}function re(le,fe){if(1&fe){this._cancellationParent=le;var ye=le._branchesRemainingToCancel;ye===void 0&&(ye=0),le._branchesRemainingToCancel=ye+1}2&fe&&le._isBound()&&this._setBoundTo(le._boundTo)}c.config=function(le){if("longStackTraces"in(le=Object(le))&&(le.longStackTraces?c.longStackTraces():!le.longStackTraces&&c.hasLongStackTraces()&&K()),"warnings"in le){var fe=le.warnings;Ae.warnings=!!fe,D=Ae.warnings,_.isObject(fe)&&"wForgottenReturn"in fe&&(D=!!fe.wForgottenReturn)}if("cancellation"in le&&le.cancellation&&!Ae.cancellation){if(g.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=ne,c.prototype._propagateFrom=re,c.prototype._onCancel=ee,c.prototype._setOnCancel=q,c.prototype._attachCancellationCallback=H,c.prototype._execute=B,ae=re,Ae.cancellation=!0}return"monitoring"in le&&(le.monitoring&&!Ae.monitoring?(Ae.monitoring=!0,c.prototype._fireEvent=Z):!le.monitoring&&Ae.monitoring&&(Ae.monitoring=!1,c.prototype._fireEvent=z)),c},c.prototype._fireEvent=z,c.prototype._execute=function(le,fe,ye){try{le(fe,ye)}catch(ge){return ge}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(le){},c.prototype._attachCancellationCallback=function(le){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(le,fe){};var ae=function(le,fe){2&fe&&le._isBound()&&this._setBoundTo(le._boundTo)};function ue(){var le=this._boundTo;return le!==void 0&&le instanceof c?le.isFulfilled()?le.value():void 0:le}function A(){this._trace=new Te(this._peekContext())}function N(le,fe){if(b(le)){var ye=this._trace;if(ye!==void 0&&fe&&(ye=ye._parent),ye!==void 0)ye.attachExtraTrace(le);else if(!le.__stackCleaned__){var ge=Y(le);_.notEnumerableProp(le,"stack",ge.message+`
|
||
`+ge.stack.join(`
|
||
`)),_.notEnumerableProp(le,"__stackCleaned__",!0)}}}function U(le,fe,ye){if(Ae.warnings){var ge,we=new x(le);if(fe)ye._attachExtraTrace(we);else if(Ae.longStackTraces&&(ge=c._peekContext()))ge.attachExtraTrace(we);else{var ke=Y(we);we.stack=ke.message+`
|
||
`+ke.stack.join(`
|
||
`)}Z("warning",we)||oe(we,"",!0)}}function J(le){for(var fe=[],ye=0;ye<le.length;++ye){var ge=le[ye],we=ge===" (No stack trace)"||E.test(ge),ke=we&&pe(ge);we&&!ke&&(j&&ge.charAt(0)!==" "&&(ge=" "+ge),fe.push(ge))}return fe}function Y(le){var fe=le.stack,ye=le.toString();return fe=typeof fe=="string"&&fe.length>0?function(ge){for(var we=ge.stack.replace(/\s+$/g,"").split(`
|
||
`),ke=0;ke<we.length;++ke){var Me=we[ke];if(Me===" (No stack trace)"||E.test(Me))break}return ke>0&&ge.name!="SyntaxError"&&(we=we.slice(ke)),we}(le):[" (No stack trace)"],{message:ye,stack:le.name=="SyntaxError"?fe:J(fe)}}function oe(le,fe,ye){if(typeof console<"u"){var ge;if(_.isObject(le)){var we=le.stack;ge=fe+T(we,le)}else ge=fe+String(le);typeof v=="function"?v(ge,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ge)}}function he(le,fe,ye,ge){var we=!1;try{typeof fe=="function"&&(we=!0,le==="rejectionHandled"?fe(ge):fe(ye,ge))}catch(ke){g.throwLater(ke)}le==="unhandledRejection"?Z(le,ye,ge)||we||oe(ye,"Unhandled rejection "):Z(le,ge)}function Pe(le){var fe;if(typeof le=="function")fe="[function "+(le.name||"anonymous")+"]";else{if(fe=le&&typeof le.toString=="function"?le.toString():_.toString(le),/\[object [a-zA-Z0-9$_]+\]/.test(fe))try{fe=JSON.stringify(le)}catch{}fe.length===0&&(fe="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(fe)+">, no stack trace)"}function se(){return typeof Ce=="function"}var pe=function(){return!1},ve=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function xe(le){var fe=le.match(ve);if(fe)return{fileName:fe[1],line:parseInt(fe[2],10)}}function Te(le){this._parent=le,this._promisesCreated=0;var fe=this._length=1+(le===void 0?0:le._length);Ce(this,Te),fe>32&&this.uncycle()}_.inherits(Te,Error),f.CapturedTrace=Te,Te.prototype.uncycle=function(){var le=this._length;if(!(le<2)){for(var fe=[],ye={},ge=0,we=this;we!==void 0;++ge)fe.push(we),we=we._parent;for(ge=(le=this._length=ge)-1;ge>=0;--ge){var ke=fe[ge].stack;ye[ke]===void 0&&(ye[ke]=ge)}for(ge=0;ge<le;++ge){var Me=ye[fe[ge].stack];if(Me!==void 0&&Me!==ge){Me>0&&(fe[Me-1]._parent=void 0,fe[Me-1]._length=1),fe[ge]._parent=void 0,fe[ge]._length=1;var Qe=ge>0?fe[ge-1]:this;Me<le-1?(Qe._parent=fe[Me+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var et=Qe._length+1,Ke=ge-2;Ke>=0;--Ke)fe[Ke]._length=et,et++;return}}}},Te.prototype.attachExtraTrace=function(le){if(!le.__stackCleaned__){this.uncycle();for(var fe=Y(le),ye=fe.message,ge=[fe.stack],we=this;we!==void 0;)ge.push(J(we.stack.split(`
|
||
`))),we=we._parent;(function(ke){for(var Me=ke[0],Qe=1;Qe<ke.length;++Qe){for(var et=ke[Qe],Ke=Me.length-1,Wt=Me[Ke],It=-1,hn=et.length-1;hn>=0;--hn)if(et[hn]===Wt){It=hn;break}for(hn=It;hn>=0;--hn){var Bn=et[hn];if(Me[Ke]!==Bn)break;Me.pop(),Ke--}Me=et}})(ge),function(ke){for(var Me=0;Me<ke.length;++Me)(ke[Me].length===0||Me+1<ke.length&&ke[Me][0]===ke[Me+1][0])&&(ke.splice(Me,1),Me--)}(ge),_.notEnumerableProp(le,"stack",function(ke,Me){for(var Qe=0;Qe<Me.length-1;++Qe)Me[Qe].push("From previous event:"),Me[Qe]=Me[Qe].join(`
|
||
`);return Qe<Me.length&&(Me[Qe]=Me[Qe].join(`
|
||
`)),ke+`
|
||
`+Me.join(`
|
||
`)}(ye,ge)),_.notEnumerableProp(le,"__stackCleaned__",!0)}};var Ce=function(){var le=/^\s*at\s*/,fe=function(ke,Me){return typeof ke=="string"?ke:Me.name!==void 0&&Me.message!==void 0?Me.toString():Pe(Me)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,E=le,T=fe;var ye=Error.captureStackTrace;return pe=function(ke){return w.test(ke)},function(ke,Me){Error.stackTraceLimit+=6,ye(ke,Me),Error.stackTraceLimit-=6}}var ge,we=new Error;if(typeof we.stack=="string"&&we.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=0)return E=/@/,T=fe,j=!0,function(ke){ke.stack=new Error().stack};try{throw new Error}catch(ke){ge="stack"in ke}return"stack"in we||!ge||typeof Error.stackTraceLimit!="number"?(T=function(ke,Me){return typeof ke=="string"?ke:typeof Me!="object"&&typeof Me!="function"||Me.name===void 0||Me.message===void 0?Pe(Me):Me.toString()},null):(E=le,T=fe,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Me){ke.stack=Me.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(v=function(le){console.warn(le)},_.isNode&&r.stderr.isTTY?v=function(le,fe){var ye=fe?"\x1B[33m":"\x1B[31m";console.warn(ye+le+`\x1B[0m
|
||
`)}:_.isNode||typeof new Error().stack!="string"||(v=function(le,fe){console.warn("%c"+le,fe?"color: darkorange":"color: red")}));var Ae={warnings:k,longStackTraces:!1,cancellation:!1,monitoring:!1};return I&&c.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 ue},checkForgottenReturns:function(le,fe,ye,ge,we){if(le===void 0&&fe!==null&&D){if(we!==void 0&&we._returnedNonUndefined()||!(65535&ge._bitField))return;ye&&(ye+=" ");var ke="",Me="";if(fe._trace){for(var Qe=fe._trace.stack.split(`
|
||
`),et=J(Qe),Ke=et.length-1;Ke>=0;--Ke){var Wt=et[Ke];if(!S.test(Wt)){var It=Wt.match(P);It&&(ke="at "+It[1]+":"+It[2]+":"+It[3]+" ");break}}if(et.length>0){var hn=et[0];for(Ke=0;Ke<Qe.length;++Ke)if(Qe[Ke]===hn){Ke>0&&(Me=`
|
||
`+Qe[Ke-1]);break}}}var Bn="a promise was created in a "+ye+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Me;ge._warn(Bn,!0,fe)}},setBounds:function(le,fe){if(se()){for(var ye,ge,we=le.stack.split(`
|
||
`),ke=fe.stack.split(`
|
||
`),Me=-1,Qe=-1,et=0;et<we.length;++et)if(Ke=xe(we[et])){ye=Ke.fileName,Me=Ke.line;break}for(et=0;et<ke.length;++et){var Ke;if(Ke=xe(ke[et])){ge=Ke.fileName,Qe=Ke.line;break}}Me<0||Qe<0||!ye||!ge||ye!==ge||Me>=Qe||(pe=function(Wt){if(w.test(Wt))return!0;var It=xe(Wt);return!!(It&&It.fileName===ye&&Me<=It.line&&It.line<=Qe)})}},warn:U,deprecated:function(le,fe){var ye=le+" is deprecated and will be removed in a future version.";return fe&&(ye+=" Use "+fe+" instead."),U(ye)},CapturedTrace:Te,fireDomEvent:W,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(c){function f(){return this.value}function d(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(d,void 0,void 0,{reason:p},void 0)},c.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})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var v=arguments[1];return v instanceof c&&v.suppressUnhandledRejections(),this.caught(p,function(){return v})}}},{}],11:[function(a,s,l){s.exports=function(c,f){var d=c.reduce,p=c.all;function v(){return p(this)}c.prototype.each=function(y){return d(this,y,f,0)._then(v,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(y){return d(this,y,f,f)},c.each=function(y,g){return d(y,g,f,0)._then(v,void 0,void 0,y,void 0)},c.mapSeries=function(y,g){return d(y,g,f,f)}}},{}],12:[function(a,s,l){var c,f,d=a("./es5"),p=d.freeze,v=a("./util"),y=v.inherits,g=v.notEnumerableProp;function x(k,I){function D(K){if(!(this instanceof D))return new D(K);g(this,"message",typeof K=="string"?K:I),g(this,"name",k),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return y(D,Error),D}var _=x("Warning","warning"),b=x("CancellationError","cancellation error"),w=x("TimeoutError","timeout error"),S=x("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=x("TypeError","type error"),f=x("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),E=0;E<P.length;++E)typeof Array.prototype[P[E]]=="function"&&(S.prototype[P[E]]=Array.prototype[P[E]]);d.defineProperty(S.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),S.prototype.isOperational=!0;var T=0;function j(k){if(!(this instanceof j))return new j(k);g(this,"name","OperationalError"),g(this,"message",k),this.cause=k,this.isOperational=!0,k instanceof Error?(g(this,"message",k.message),g(this,"stack",k.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}S.prototype.toString=function(){var k=Array(4*T+1).join(" "),I=`
|
||
`+k+`AggregateError of:
|
||
`;T++,k=Array(4*T+1).join(" ");for(var D=0;D<this.length;++D){for(var K=this[D]===this?"[Circular AggregateError]":this[D]+"",W=K.split(`
|
||
`),X=0;X<W.length;++X)W[X]=k+W[X];I+=(K=W.join(`
|
||
`))+`
|
||
`}return T--,I},y(j,Error);var F=Error.__BluebirdErrorTypes__;F||(F=p({CancellationError:b,TimeoutError:w,OperationalError:j,RejectionError:j,AggregateError:S}),d.defineProperty(Error,"__BluebirdErrorTypes__",{value:F,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:c,RangeError:f,CancellationError:F.CancellationError,OperationalError:F.OperationalError,TimeoutError:F.TimeoutError,AggregateError:F.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(a,s,l){var c=function(){return this===void 0}();if(c)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:c,propertyIsWritable:function(y,g){var x=Object.getOwnPropertyDescriptor(y,g);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,d={}.toString,p={}.constructor.prototype,v=function(y){var g=[];for(var x in y)f.call(y,x)&&g.push(x);return g};s.exports={isArray:function(y){try{return d.call(y)==="[object Array]"}catch{return!1}},keys:v,names:v,defineProperty:function(y,g,x){return y[g]=x.value,y},getDescriptor:function(y,g){return{value:y[g]}},freeze:function(y){return y},getPrototypeOf:function(y){try{return Object(y).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(c,f){var d=c.map;c.prototype.filter=function(p,v){return d(this,p,v,f)},c.filter=function(p,v,y){return d(p,v,y,f)}}},{}],15:[function(a,s,l){s.exports=function(c,f,d){var p=a("./util"),v=c.CancellationError,y=p.errorObj,g=a("./catch_filter")(d);function x(E,T,j){this.promise=E,this.type=T,this.handler=j,this.called=!1,this.cancelPromise=null}function _(E){this.finallyHandler=E}function b(E,T){return E.cancelPromise!=null&&(arguments.length>1?E.cancelPromise._reject(T):E.cancelPromise._cancel(),E.cancelPromise=null,!0)}function w(){return P.call(this,this.promise._target()._settledValue())}function S(E){if(!b(this,E))return y.e=E,y}function P(E){var T=this.promise,j=this.handler;if(!this.called){this.called=!0;var F=this.isFinallyHandler()?j.call(T._boundValue()):j.call(T._boundValue(),E);if(F===d)return F;if(F!==void 0){T._setReturnedNonUndefined();var k=f(F,T);if(k instanceof c){if(this.cancelPromise!=null){if(k._isCancelled()){var I=new v("late cancellation observer");return T._attachExtraTrace(I),y.e=I,y}k.isPending()&&k._attachCancellationCallback(new _(this))}return k._then(w,S,void 0,this,void 0)}}}return T.isRejected()?(b(this),y.e=E,y):(b(this),E)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){b(this.finallyHandler)},c.prototype._passThrough=function(E,T,j,F){return typeof E!="function"?this.then():this._then(j,F,void 0,new x(this,T,E),void 0)},c.prototype.lastly=c.prototype.finally=function(E){return this._passThrough(E,0,P,P)},c.prototype.tap=function(E){return this._passThrough(E,1,P)},c.prototype.tapCatch=function(E){var T=arguments.length;if(T===1)return this._passThrough(E,1,void 0,P);var j,F=new Array(T-1),k=0;for(j=0;j<T-1;++j){var I=arguments[j];if(!p.isObject(I))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(I)));F[k++]=I}F.length=k;var D=arguments[j];return this._passThrough(g(F,D,this),1,void 0,P)},x}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(c,f,d,p,v,y){var g=a("./errors").TypeError,x=a("./util"),_=x.errorObj,b=x.tryCatch,w=[];function S(P,E,T,j){if(y.cancellation()){var F=new c(d),k=this._finallyPromise=new c(d);this._promise=F.lastly(function(){return k}),F._captureStackTrace(),F._setOnCancel(this)}else(this._promise=new c(d))._captureStackTrace();this._stack=j,this._generatorFunction=P,this._receiver=E,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,y.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},S.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=b(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var E=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=E,this._promise._attachExtraTrace(E),this._promise._pushContext(),P=b(this._generator.throw).call(this._generator,E),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},S.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var E=b(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(E)},S.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var E=b(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(E)},S.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var P=this._yieldedPromise;this._yieldedPromise=null,P.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(P){var E=this._promise;if(P===_)return this._cleanup(),this._cancellationPhase?E.cancel():E._rejectCallback(P.e,!1);var T=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?E.cancel():E._resolveCallback(T);var j=p(T,this._promise);if(j instanceof c||(j=function(k,I,D){for(var K=0;K<I.length;++K){D._pushContext();var W=b(I[K])(k);if(D._popContext(),W===_){D._pushContext();var X=c.reject(_.e);return D._popContext(),X}var Q=p(W,D);if(Q instanceof c)return Q}return null}(j,this._yieldHandlers,this._promise))!==null){var F=(j=j._target())._bitField;50397184&F?33554432&F?c._async.invoke(this._promiseFulfilled,this,j._value()):16777216&F?c._async.invoke(this._promiseRejected,this,j._reason()):this._promiseCancelled():(this._yieldedPromise=j,j._proxy(this,null))}else this._promiseRejected(new g(`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(`
|
||
`)))},c.coroutine=function(P,E){if(typeof P!="function")throw new g(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var T=Object(E).yieldHandler,j=S,F=new Error().stack;return function(){var k=P.apply(this,arguments),I=new j(void 0,void 0,T,F),D=I.promise();return I._generator=k,I._promiseFulfilled(void 0),D}},c.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new g("expecting a function but got "+x.classString(P));w.push(P)},c.spawn=function(P){if(y.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var E=new S(P,this),T=E.promise();return E._run(c.spawn),T}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(c,f,d,p,v,y){var g=a("./util");g.canEvaluate,g.tryCatch,g.errorObj,c.join=function(){var x,_=arguments.length-1;_>0&&typeof arguments[_]=="function"&&(x=arguments[_]);var b=[].slice.call(arguments);x&&b.pop();var w=new f(b).promise();return x!==void 0?w.spread(x):w}}},{"./util":36}],18:[function(a,s,l){s.exports=function(c,f,d,p,v,y){var g=c._getDomain,x=a("./util"),_=x.tryCatch,b=x.errorObj,w=c._async;function S(E,T,j,F){this.constructor$(E),this._promise._captureStackTrace();var k=g();this._callback=k===null?T:x.domainBind(k,T),this._preservedValues=F===v?new Array(this.length()):null,this._limit=j,this._inFlight=0,this._queue=[],w.invoke(this._asyncInit,this,void 0)}function P(E,T,j,F){if(typeof T!="function")return d("expecting a function but got "+x.classString(T));var k=0;if(j!==void 0){if(typeof j!="object"||j===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(j)));if(typeof j.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(j.concurrency)));k=j.concurrency}return new S(E,T,k=typeof k=="number"&&isFinite(k)&&k>=1?k:0,F).promise()}x.inherits(S,f),S.prototype._asyncInit=function(){this._init$(void 0,-2)},S.prototype._init=function(){},S.prototype._promiseFulfilled=function(E,T){var j=this._values,F=this.length(),k=this._preservedValues,I=this._limit;if(T<0){if(j[T=-1*T-1]=E,I>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(I>=1&&this._inFlight>=I)return j[T]=E,this._queue.push(T),!1;k!==null&&(k[T]=E);var D=this._promise,K=this._callback,W=D._boundValue();D._pushContext();var X=_(K).call(W,E,T,F),Q=D._popContext();if(y.checkForgottenReturns(X,Q,k!==null?"Promise.filter":"Promise.map",D),X===b)return this._reject(X.e),!0;var te=p(X,this._promise);if(te instanceof c){var Z=(te=te._target())._bitField;if(!(50397184&Z))return I>=1&&this._inFlight++,j[T]=te,te._proxy(this,-1*(T+1)),!1;if(!(33554432&Z))return 16777216&Z?(this._reject(te._reason()),!0):(this._cancel(),!0);X=te._value()}j[T]=X}return++this._totalResolved>=F&&(k!==null?this._filter(j,k):this._resolve(j),!0)},S.prototype._drainQueue=function(){for(var E=this._queue,T=this._limit,j=this._values;E.length>0&&this._inFlight<T;){if(this._isResolved())return;var F=E.pop();this._promiseFulfilled(j[F],F)}},S.prototype._filter=function(E,T){for(var j=T.length,F=new Array(j),k=0,I=0;I<j;++I)E[I]&&(F[k++]=T[I]);F.length=k,this._resolve(F)},S.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(E,T){return P(this,E,T,null)},c.map=function(E,T,j,F){return P(E,T,j,F)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(c,f,d,p,v){var y=a("./util"),g=y.tryCatch;c.method=function(x){if(typeof x!="function")throw new c.TypeError("expecting a function but got "+y.classString(x));return function(){var _=new c(f);_._captureStackTrace(),_._pushContext();var b=g(x).apply(this,arguments),w=_._popContext();return v.checkForgottenReturns(b,w,"Promise.method",_),_._resolveFromSyncValue(b),_}},c.attempt=c.try=function(x){if(typeof x!="function")return p("expecting a function but got "+y.classString(x));var _,b=new c(f);if(b._captureStackTrace(),b._pushContext(),arguments.length>1){v.deprecated("calling Promise.try with more than 1 argument");var w=arguments[1],S=arguments[2];_=y.isArray(w)?g(x).apply(S,w):g(x).call(S,w)}else _=g(x)();var P=b._popContext();return v.checkForgottenReturns(_,P,"Promise.try",b),b._resolveFromSyncValue(_),b},c.prototype._resolveFromSyncValue=function(x){x===y.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,l){var c=a("./util"),f=c.maybeWrapAsError,d=a("./errors").OperationalError,p=a("./es5"),v=/^(?:name|message|stack|cause)$/;function y(g){var x;if(function(S){return S instanceof Error&&p.getPrototypeOf(S)===Error.prototype}(g)){(x=new d(g)).name=g.name,x.message=g.message,x.stack=g.stack;for(var _=p.keys(g),b=0;b<_.length;++b){var w=_[b];v.test(w)||(x[w]=g[w])}return x}return c.markAsOriginatingFromRejection(g),g}s.exports=function(g,x){return function(_,b){if(g!==null){if(_){var w=y(f(_));g._attachExtraTrace(w),g._reject(w)}else if(x){var S=[].slice.call(arguments,1);g._fulfill(S)}else g._fulfill(b);g=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(c){var f=a("./util"),d=c._async,p=f.tryCatch,v=f.errorObj;function y(_,b){if(!f.isArray(_))return g.call(this,_,b);var w=p(b).apply(this._boundValue(),[null].concat(_));w===v&&d.throwLater(w.e)}function g(_,b){var w=this._boundValue(),S=_===void 0?p(b).call(w,null):p(b).call(w,null,_);S===v&&d.throwLater(S.e)}function x(_,b){if(!_){var w=new Error(_+"");w.cause=_,_=w}var S=p(b).call(this._boundValue(),_);S===v&&d.throwLater(S.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,b){if(typeof _=="function"){var w=g;b!==void 0&&Object(b).spread&&(w=y),this._then(w,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var c=function(){return new S(`circular promise resolution chain
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)},f=function(){return new z.PromiseInspection(this._target())},d=function(q){return z.reject(new S(q))};function p(){}var v,y={},g=a("./util");v=g.isNode?function(){var q=r.domain;return q===void 0&&(q=null),q}:function(){return null},g.notEnumerableProp(z,"_getDomain",v);var x=a("./es5"),_=a("./async"),b=new _;x.defineProperty(z,"_async",{value:b});var w=a("./errors"),S=z.TypeError=w.TypeError;z.RangeError=w.RangeError;var P=z.CancellationError=w.CancellationError;z.TimeoutError=w.TimeoutError,z.OperationalError=w.OperationalError,z.RejectionError=w.OperationalError,z.AggregateError=w.AggregateError;var E=function(){},T={},j={},F=a("./thenables")(z,E),k=a("./promise_array")(z,E,F,d,p),I=a("./context")(z),D=I.create,K=a("./debuggability")(z,I),W=(K.CapturedTrace,a("./finally")(z,F,j)),X=a("./catch_filter")(j),Q=a("./nodeback"),te=g.errorObj,Z=g.tryCatch;function z(q){q!==E&&function(ne,re){if(ne==null||ne.constructor!==z)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 "+g.classString(re))}(this,q),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(q),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function B(q){this.promise._resolveCallback(q)}function H(q){this.promise._rejectCallback(q,!1)}function ee(q){var ne=new z(E);ne._fulfillmentHandler0=q,ne._rejectionHandler0=q,ne._promise0=q,ne._receiver0=q}return z.prototype.toString=function(){return"[object Promise]"},z.prototype.caught=z.prototype.catch=function(q){var ne=arguments.length;if(ne>1){var re,ae=new Array(ne-1),ue=0;for(re=0;re<ne-1;++re){var A=arguments[re];if(!g.isObject(A))return d("Catch statement predicate: expecting an object but got "+g.classString(A));ae[ue++]=A}return ae.length=ue,q=arguments[re],this.then(void 0,X(ae,q,this))}return this.then(void 0,q)},z.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},z.prototype.then=function(q,ne){if(K.warnings()&&arguments.length>0&&typeof q!="function"&&typeof ne!="function"){var re=".then() only accepts functions but was passed: "+g.classString(q);arguments.length>1&&(re+=", "+g.classString(ne)),this._warn(re)}return this._then(q,ne,void 0,void 0,void 0)},z.prototype.done=function(q,ne){this._then(q,ne,void 0,void 0,void 0)._setIsFinal()},z.prototype.spread=function(q){return typeof q!="function"?d("expecting a function but got "+g.classString(q)):this.all()._then(q,void 0,void 0,T,void 0)},z.prototype.toJSON=function(){var q={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(q.fulfillmentValue=this.value(),q.isFulfilled=!0):this.isRejected()&&(q.rejectionReason=this.reason(),q.isRejected=!0),q},z.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new k(this).promise()},z.prototype.error=function(q){return this.caught(g.originatesFromRejection,q)},z.getNewLibraryCopy=s.exports,z.is=function(q){return q instanceof z},z.fromNode=z.fromCallback=function(q){var ne=new z(E);ne._captureStackTrace();var re=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=Z(q)(Q(ne,re));return ae===te&&ne._rejectCallback(ae.e,!0),ne._isFateSealed()||ne._setAsyncGuaranteed(),ne},z.all=function(q){return new k(q).promise()},z.cast=function(q){var ne=F(q);return ne instanceof z||((ne=new z(E))._captureStackTrace(),ne._setFulfilled(),ne._rejectionHandler0=q),ne},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(q){var ne=new z(E);return ne._captureStackTrace(),ne._rejectCallback(q,!0),ne},z.setScheduler=function(q){if(typeof q!="function")throw new S("expecting a function but got "+g.classString(q));return b.setScheduler(q)},z.prototype._then=function(q,ne,re,ae,ue){var A=ue!==void 0,N=A?ue:new z(E),U=this._target(),J=U._bitField;A||(N._propagateFrom(this,3),N._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&J?this._boundValue():U===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,N));var Y=v();if(50397184&J){var oe,he,Pe=U._settlePromiseCtx;33554432&J?(he=U._rejectionHandler0,oe=q):16777216&J?(he=U._fulfillmentHandler0,oe=ne,U._unsetRejectionIsUnhandled()):(Pe=U._settlePromiseLateCancellationObserver,he=new P("late cancellation observer"),U._attachExtraTrace(he),oe=ne),b.invoke(Pe,U,{handler:Y===null?oe:typeof oe=="function"&&g.domainBind(Y,oe),promise:N,receiver:ae,value:he})}else U._addCallbacks(q,ne,N,ae,Y);return N},z.prototype._length=function(){return 65535&this._bitField},z.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},z.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},z.prototype._setLength=function(q){this._bitField=-65536&this._bitField|65535&q},z.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},z.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},z.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},z.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},z.prototype._isFinal=function(){return(4194304&this._bitField)>0},z.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},z.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},z.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},z.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},z.prototype._receiverAt=function(q){var ne=q===0?this._receiver0:this[4*q-4+3];if(ne!==y)return ne===void 0&&this._isBound()?this._boundValue():ne},z.prototype._promiseAt=function(q){return this[4*q-4+2]},z.prototype._fulfillmentHandlerAt=function(q){return this[4*q-4+0]},z.prototype._rejectionHandlerAt=function(q){return this[4*q-4+1]},z.prototype._boundValue=function(){},z.prototype._migrateCallback0=function(q){q._bitField;var ne=q._fulfillmentHandler0,re=q._rejectionHandler0,ae=q._promise0,ue=q._receiverAt(0);ue===void 0&&(ue=y),this._addCallbacks(ne,re,ae,ue,null)},z.prototype._migrateCallbackAt=function(q,ne){var re=q._fulfillmentHandlerAt(ne),ae=q._rejectionHandlerAt(ne),ue=q._promiseAt(ne),A=q._receiverAt(ne);A===void 0&&(A=y),this._addCallbacks(re,ae,ue,A,null)},z.prototype._addCallbacks=function(q,ne,re,ae,ue){var A=this._length();if(A>=65531&&(A=0,this._setLength(0)),A===0)this._promise0=re,this._receiver0=ae,typeof q=="function"&&(this._fulfillmentHandler0=ue===null?q:g.domainBind(ue,q)),typeof ne=="function"&&(this._rejectionHandler0=ue===null?ne:g.domainBind(ue,ne));else{var N=4*A-4;this[N+2]=re,this[N+3]=ae,typeof q=="function"&&(this[N+0]=ue===null?q:g.domainBind(ue,q)),typeof ne=="function"&&(this[N+1]=ue===null?ne:g.domainBind(ue,ne))}return this._setLength(A+1),A},z.prototype._proxy=function(q,ne){this._addCallbacks(void 0,void 0,ne,q,null)},z.prototype._resolveCallback=function(q,ne){if(!(117506048&this._bitField)){if(q===this)return this._rejectCallback(c(),!1);var re=F(q,this);if(!(re instanceof z))return this._fulfill(q);ne&&this._propagateFrom(re,2);var ae=re._target();if(ae!==this){var ue=ae._bitField;if(50397184&ue)if(33554432&ue)this._fulfill(ae._value());else if(16777216&ue)this._reject(ae._reason());else{var U=new P("late cancellation observer");ae._attachExtraTrace(U),this._reject(U)}else{var A=this._length();A>0&&ae._migrateCallback0(this);for(var N=1;N<A;++N)ae._migrateCallbackAt(this,N);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(c())}},z.prototype._rejectCallback=function(q,ne,re){var ae=g.ensureErrorObject(q),ue=ae===q;if(!ue&&!re&&K.warnings()){var A="a promise was rejected with a non-error: "+g.classString(q);this._warn(A,!0)}this._attachExtraTrace(ae,!!ne&&ue),this._reject(q)},z.prototype._resolveFromExecutor=function(q){if(q!==E){var ne=this;this._captureStackTrace(),this._pushContext();var re=!0,ae=this._execute(q,function(ue){ne._resolveCallback(ue)},function(ue){ne._rejectCallback(ue,re)});re=!1,this._popContext(),ae!==void 0&&ne._rejectCallback(ae,!0)}},z.prototype._settlePromiseFromHandler=function(q,ne,re,ae){var ue=ae._bitField;if(!(65536&ue)){var A;ae._pushContext(),ne===T?re&&typeof re.length=="number"?A=Z(q).apply(this._boundValue(),re):(A=te).e=new S("cannot .spread() a non-array: "+g.classString(re)):A=Z(q).call(ne,re);var N=ae._popContext();!(65536&(ue=ae._bitField))&&(A===j?ae._reject(re):A===te?ae._rejectCallback(A.e,!1):(K.checkForgottenReturns(A,N,"",ae,this),ae._resolveCallback(A)))}},z.prototype._target=function(){for(var q=this;q._isFollowing();)q=q._followee();return q},z.prototype._followee=function(){return this._rejectionHandler0},z.prototype._setFollowee=function(q){this._rejectionHandler0=q},z.prototype._settlePromise=function(q,ne,re,ae){var ue=q instanceof z,A=this._bitField,N=(134217728&A)!=0;65536&A?(ue&&q._invokeInternalOnCancel(),re instanceof W&&re.isFinallyHandler()?(re.cancelPromise=q,Z(ne).call(re,ae)===te&&q._reject(te.e)):ne===f?q._fulfill(f.call(re)):re instanceof p?re._promiseCancelled(q):ue||q instanceof k?q._cancel():re.cancel()):typeof ne=="function"?ue?(N&&q._setAsyncGuaranteed(),this._settlePromiseFromHandler(ne,re,ae,q)):ne.call(re,ae,q):re instanceof p?re._isResolved()||(33554432&A?re._promiseFulfilled(ae,q):re._promiseRejected(ae,q)):ue&&(N&&q._setAsyncGuaranteed(),33554432&A?q._fulfill(ae):q._reject(ae))},z.prototype._settlePromiseLateCancellationObserver=function(q){var ne=q.handler,re=q.promise,ae=q.receiver,ue=q.value;typeof ne=="function"?re instanceof z?this._settlePromiseFromHandler(ne,ae,ue,re):ne.call(ae,ue,re):re instanceof z&&re._reject(ue)},z.prototype._settlePromiseCtx=function(q){this._settlePromise(q.promise,q.handler,q.receiver,q.value)},z.prototype._settlePromise0=function(q,ne,re){var ae=this._promise0,ue=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,q,ue,ne)},z.prototype._clearCallbackDataAtIndex=function(q){var ne=4*q-4;this[ne+2]=this[ne+3]=this[ne+0]=this[ne+1]=void 0},z.prototype._fulfill=function(q){var ne=this._bitField;if(!((117506048&ne)>>>16)){if(q===this){var re=c();return this._attachExtraTrace(re),this._reject(re)}this._setFulfilled(),this._rejectionHandler0=q,(65535&ne)>0&&(134217728&ne?this._settlePromises():b.settlePromises(this))}},z.prototype._reject=function(q){var ne=this._bitField;if(!((117506048&ne)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=q,this._isFinal())return b.fatalError(q,g.isNode);(65535&ne)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},z.prototype._fulfillPromises=function(q,ne){for(var re=1;re<q;re++){var ae=this._fulfillmentHandlerAt(re),ue=this._promiseAt(re),A=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(ue,ae,A,ne)}},z.prototype._rejectPromises=function(q,ne){for(var re=1;re<q;re++){var ae=this._rejectionHandlerAt(re),ue=this._promiseAt(re),A=this._receiverAt(re);this._clearCallbackDataAtIndex(re),this._settlePromise(ue,ae,A,ne)}},z.prototype._settlePromises=function(){var q=this._bitField,ne=65535&q;if(ne>0){if(16842752&q){var re=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,re,q),this._rejectPromises(ne,re)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,q),this._fulfillPromises(ne,ae)}this._setLength(0)}this._clearCancellationData()},z.prototype._settledValue=function(){var q=this._bitField;return 33554432&q?this._rejectionHandler0:16777216&q?this._fulfillmentHandler0:void 0},z.defer=z.pending=function(){return K.deprecated("Promise.defer","new Promise"),{promise:new z(E),resolve:B,reject:H}},g.notEnumerableProp(z,"_makeSelfResolutionError",c),a("./method")(z,E,F,d,K),a("./bind")(z,E,F,K),a("./cancel")(z,k,d,K),a("./direct_resolve")(z),a("./synchronous_inspection")(z),a("./join")(z,k,F,E,b,v),z.Promise=z,z.version="3.5.1",a("./map.js")(z,k,d,F,E,K),a("./call_get.js")(z),a("./using.js")(z,d,F,D,E,K),a("./timers.js")(z,E,K),a("./generators.js")(z,d,E,F,p,K),a("./nodeify.js")(z),a("./promisify.js")(z,E),a("./props.js")(z,k,F,d),a("./race.js")(z,E,F,d),a("./reduce.js")(z,k,d,F,E,K),a("./settle.js")(z,k,K),a("./some.js")(z,k,d),a("./filter.js")(z,E),a("./each.js")(z,E),a("./any.js")(z),g.toFastProperties(z),g.toFastProperties(z.prototype),ee({a:1}),ee({b:2}),ee({c:3}),ee(1),ee(function(){}),ee(void 0),ee(!1),ee(new z(E)),K.setBounds(_.firstLineError,g.lastLineError),z}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,l){s.exports=function(c,f,d,p,v){var y=a("./util");function g(x){var _=this._promise=new c(f);x instanceof c&&_._propagateFrom(x,3),_._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return y.isArray,y.inherits(g,v),g.prototype.length=function(){return this._length},g.prototype.promise=function(){return this._promise},g.prototype._init=function x(_,b){var w=d(this._values,this._promise);if(w instanceof c){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,b);if(!(33554432&S))return 16777216&S?this._reject(w._reason()):this._cancel();w=w._value()}if((w=y.asArray(w))!==null)w.length!==0?this._iterate(w):b===-5?this._resolveEmptyArray():this._resolve(function(E){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+y.classString(w)).reason();this._promise._rejectCallback(P,!1)}},g.prototype._iterate=function(x){var _=this.getActualLength(x.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var b=this._promise,w=!1,S=null,P=0;P<_;++P){var E=d(x[P],b);S=E instanceof c?(E=E._target())._bitField:null,w?S!==null&&E.suppressUnhandledRejections():S!==null?50397184&S?w=33554432&S?this._promiseFulfilled(E._value(),P):16777216&S?this._promiseRejected(E._reason(),P):this._promiseCancelled(P):(E._proxy(this,P),this._values[P]=E):w=this._promiseFulfilled(E,P)}w||b._setAsyncGuaranteed()},g.prototype._isResolved=function(){return this._values===null},g.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},g.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},g.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},g.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseCancelled=function(){return this._cancel(),!0},g.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},g.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var _=0;_<x.length;++_)x[_]instanceof c&&x[_].cancel()}},g.prototype.shouldCopyValues=function(){return!0},g.prototype.getActualLength=function(x){return x},g}},{"./util":36}],24:[function(a,s,l){s.exports=function(c,f){var d={},p=a("./util"),v=a("./nodeback"),y=p.withAppended,g=p.maybeWrapAsError,x=p.canEvaluate,_=a("./errors").TypeError,b={__isPromisified__:!0},w=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),S=function(D){return p.isIdentifier(D)&&D.charAt(0)!=="_"&&D!=="constructor"};function P(D){return!w.test(D)}function E(D){try{return D.__isPromisified__===!0}catch{return!1}}function T(D,K,W){var X=p.getDataPropertyOrDefault(D,K+W,b);return!!X&&E(X)}function j(D,K,W,X){for(var Q=p.inheritedDataKeys(D),te=[],Z=0;Z<Q.length;++Z){var z=Q[Z],B=D[z],H=X===S||S(z);typeof B!="function"||E(B)||T(D,z,K)||!X(z,B,D,H)||te.push(z,B)}return function(ee,q,ne){for(var re=0;re<ee.length;re+=2){var ae=ee[re];if(ne.test(ae)){for(var ue=ae.replace(ne,""),A=0;A<ee.length;A+=2)if(ee[A]===ue)throw new _(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",q))}}}(te,K,W),te}var F=function(D){return D.replace(/([$])/,"\\$")},k=x?void 0:function(D,K,W,X,Q,te){var Z=function(){return this}(),z=D;function B(){var H=K;K===d&&(H=this);var ee=new c(f);ee._captureStackTrace();var q=typeof z=="string"&&this!==Z?this[z]:D,ne=v(ee,te);try{q.apply(H,y(arguments,ne))}catch(re){ee._rejectCallback(g(re),!0,!0)}return ee._isFateSealed()||ee._setAsyncGuaranteed(),ee}return typeof z=="string"&&(D=X),p.notEnumerableProp(B,"__isPromisified__",!0),B};function I(D,K,W,X,Q){for(var te=new RegExp(F(K)+"$"),Z=j(D,K,te,W),z=0,B=Z.length;z<B;z+=2){var H=Z[z],ee=Z[z+1],q=H+K;if(X===k)D[q]=k(H,d,H,ee,K,Q);else{var ne=X(ee,function(){return k(H,d,H,ee,K,Q)});p.notEnumerableProp(ne,"__isPromisified__",!0),D[q]=ne}}return p.toFastProperties(D),D}c.promisify=function(D,K){if(typeof D!="function")throw new _("expecting a function but got "+p.classString(D));if(E(D))return D;var W=(K=Object(K)).context===void 0?d:K.context,X=!!K.multiArgs,Q=function(te,Z,z){return k(te,Z,void 0,te,null,X)}(D,W);return p.copyDescriptors(D,Q,P),Q},c.promisifyAll=function(D,K){if(typeof D!="function"&&typeof D!="object")throw new _(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var W=!!(K=Object(K)).multiArgs,X=K.suffix;typeof X!="string"&&(X="Async");var Q=K.filter;typeof Q!="function"&&(Q=S);var te=K.promisifier;if(typeof te!="function"&&(te=k),!p.isIdentifier(X))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var Z=p.inheritedDataKeys(D),z=0;z<Z.length;++z){var B=D[Z[z]];Z[z]!=="constructor"&&p.isClass(B)&&(I(B.prototype,X,Q,te,W),I(B,X,Q,te,W))}return I(D,X,Q,te,W)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(c,f,d,p){var v,y=a("./util"),g=y.isObject,x=a("./es5");typeof Map=="function"&&(v=Map);var _=function(){var S=0,P=0;function E(T,j){this[S]=T,this[S+P]=j,S++}return function(T){P=T.size,S=0;var j=new Array(2*T.size);return T.forEach(E,j),j}}();function b(S){var P,E=!1;if(v!==void 0&&S instanceof v)P=_(S),E=!0;else{var T=x.keys(S),j=T.length;P=new Array(2*j);for(var F=0;F<j;++F){var k=T[F];P[F]=S[k],P[F+j]=k}}this.constructor$(P),this._isMap=E,this._init$(void 0,E?-6:-3)}function w(S){var P,E=d(S);return g(E)?(P=E instanceof c?E._then(c.props,void 0,void 0,void 0,void 0):new b(E).promise(),E instanceof c&&P._propagateFrom(E,2),P):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}y.inherits(b,f),b.prototype._init=function(){},b.prototype._promiseFulfilled=function(S,P){if(this._values[P]=S,++this._totalResolved>=this._length){var E;if(this._isMap)E=function(k){for(var I=new v,D=k.length/2|0,K=0;K<D;++K){var W=k[D+K],X=k[K];I.set(W,X)}return I}(this._values);else{E={};for(var T=this.length(),j=0,F=this.length();j<F;++j)E[this._values[j+T]]=this._values[j]}return this._resolve(E),!0}return!1},b.prototype.shouldCopyValues=function(){return!1},b.prototype.getActualLength=function(S){return S>>1},c.prototype.props=function(){return w(this)},c.props=function(S){return w(S)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity<f},c.prototype._pushOne=function(f){var d=this.length();this._checkCapacity(d+1),this[this._front+d&this._capacity-1]=f,this._length=d+1},c.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 y=this._front+v-3;this._checkCapacity(v);var g=this._capacity-1;this[y+0&g]=f,this[y+1&g]=d,this[y+2&g]=p,this._length=v},c.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},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(f){var d=this._capacity;this._capacity=f,function(p,v,y,g,x){for(var _=0;_<x;++_)y[_+g]=p[_+0],p[_+0]=void 0}(this,0,this,d,this._front+this._length&d-1)},s.exports=c},{}],27:[function(a,s,l){s.exports=function(c,f,d,p){var v=a("./util"),y=function(x){return x.then(function(_){return g(_,x)})};function g(x,_){var b=d(x);if(b instanceof c)return y(b);if((x=v.asArray(x))===null)return p("expecting an array or an iterable object but got "+v.classString(x));var w=new c(f);_!==void 0&&w._propagateFrom(_,3);for(var S=w._fulfill,P=w._reject,E=0,T=x.length;E<T;++E){var j=x[E];(j!==void 0||E in x)&&c.cast(j)._then(S,P,void 0,w,null)}return w}c.race=function(x){return g(x,void 0)},c.prototype.race=function(){return g(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(c,f,d,p,v,y){var g=c._getDomain,x=a("./util"),_=x.tryCatch;function b(T,j,F,k){this.constructor$(T);var I=g();this._fn=I===null?j:x.domainBind(I,j),F!==void 0&&(F=c.resolve(F))._attachCancellationCallback(this),this._initialValue=F,this._currentCancellable=null,this._eachValues=k===v?Array(this._length):k===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,F,k){return typeof j!="function"?d("expecting a function but got "+x.classString(j)):new b(T,j,F,k).promise()}function P(T){this.accum=T,this.array._gotAccum(T);var j=p(this.value,this.array._promise);return j instanceof c?(this.array._currentCancellable=j,j._then(E,void 0,void 0,this,void 0)):E.call(this,j)}function E(T){var j,F=this.array,k=F._promise,I=_(F._fn);k._pushContext(),(j=F._eachValues!==void 0?I.call(k._boundValue(),T,this.index,this.length):I.call(k._boundValue(),this.accum,T,this.index,this.length))instanceof c&&(F._currentCancellable=j);var D=k._popContext();return y.checkForgottenReturns(j,D,F._eachValues!==void 0?"Promise.each":"Promise.reduce",k),j}x.inherits(b,f),b.prototype._gotAccum=function(T){this._eachValues!==void 0&&this._eachValues!==null&&T!==v&&this._eachValues.push(T)},b.prototype._eachComplete=function(T){return this._eachValues!==null&&this._eachValues.push(T),this._eachValues},b.prototype._init=function(){},b.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},b.prototype.shouldCopyValues=function(){return!1},b.prototype._resolve=function(T){this._promise._resolveCallback(T),this._values=null},b.prototype._resultCancelled=function(T){if(T===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},b.prototype._iterate=function(T){var j,F;this._values=T;var k=T.length;if(this._initialValue!==void 0?(j=this._initialValue,F=0):(j=c.resolve(T[0]),F=1),this._currentCancellable=j,!j.isRejected())for(;F<k;++F){var I={accum:null,value:T[F],index:F,length:k,array:this};j=j._then(P,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)},c.prototype.reduce=function(T,j){return S(this,T,j,null)},c.reduce=function(T,j,F,k){return S(T,j,F,k)}}},{"./util":36}],29:[function(a,s,l){var c,f=a("./util"),d=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,v=r.nextTick;c=f.isRecentNode?function(g){p.call(i,g)}:function(g){v.call(r,g)}}else if(typeof d=="function"&&typeof d.resolve=="function"){var y=d.resolve();c=function(g){y.then(g)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(g){o(g)}:typeof setTimeout<"u"?function(g){setTimeout(g,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var g=document.createElement("div"),x={attributes:!0},_=!1,b=document.createElement("div");return new MutationObserver(function(){g.classList.toggle("foo"),_=!1}).observe(b,x),function(w){var S=new MutationObserver(function(){S.disconnect(),w()});S.observe(g,x),_||(_=!0,b.classList.toggle("foo"))}}();s.exports=c},{"./util":36}],30:[function(a,s,l){s.exports=function(c,f,d){var p=c.PromiseInspection;function v(y){this.constructor$(y)}a("./util").inherits(v,f),v.prototype._promiseResolved=function(y,g){return this._values[y]=g,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseFulfilled=function(y,g){var x=new p;return x._bitField=33554432,x._settledValueField=y,this._promiseResolved(g,x)},v.prototype._promiseRejected=function(y,g){var x=new p;return x._bitField=16777216,x._settledValueField=y,this._promiseResolved(g,x)},c.settle=function(y){return d.deprecated(".settle()",".reflect()"),new v(y).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(c,f,d){var p=a("./util"),v=a("./errors").RangeError,y=a("./errors").AggregateError,g=p.isArray,x={};function _(w){this.constructor$(w),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(w,S){if((0|S)!==S||S<0)return d(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var P=new _(w),E=P.promise();return P.setHowMany(S),P.init(),E}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var w=g(this._values);!this._isResolved()&&w&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(w){this._howMany=w},_.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)},_.prototype._promiseRejected=function(w){return this._addRejected(w),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var w=new y,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},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(w){this._values.push(w)},_.prototype._addFulfilled=function(w){this._values[this._totalResolved++]=w},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(w){var S="Input array must contain at least "+this._howMany+" items but contains only "+w+" items";return new v(S)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(w,S){return b(w,S)},c.prototype.some=function(w){return b(this,w)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(c){function f(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._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},y=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},g=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},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return g.call(this._target())},c.prototype.isRejected=function(){return y.call(this._target())},c.prototype.isFulfilled=function(){return v.call(this._target())},c.prototype.isResolved=function(){return x.call(this._target())},c.prototype.value=function(){return d.call(this._target())},c.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(c,f){var d=a("./util"),p=d.errorObj,v=d.isObject,y={}.hasOwnProperty;return function(g,x){if(v(g)){if(g instanceof c)return g;var _=function(w){try{return function(S){return S.then}(w)}catch(S){return p.e=S,p}}(g);if(_===p){x&&x._pushContext();var b=c.reject(_.e);return x&&x._popContext(),b}if(typeof _=="function")return function(w){try{return y.call(w,"_promise0")}catch{return!1}}(g)?(b=new c(f),g._then(b._fulfill,b._reject,void 0,b,null),b):function(w,S,P){var E=new c(f),T=E;P&&P._pushContext(),E._captureStackTrace(),P&&P._popContext();var j=!0,F=d.tryCatch(S).call(w,function(k){E&&(E._resolveCallback(k),E=null)},function(k){E&&(E._rejectCallback(k,j,!0),E=null)});return j=!1,E&&F===p&&(E._rejectCallback(F.e,!0,!0),E=null),T}(g,_,x)}return g}}},{"./util":36}],34:[function(a,s,l){s.exports=function(c,f,d){var p=a("./util"),v=c.TimeoutError;function y(w){this.handle=w}y.prototype._resultCancelled=function(){clearTimeout(this.handle)};var g=function(w){return x(+this).thenReturn(w)},x=c.delay=function(w,S){var P,E;return S!==void 0?(P=c.resolve(S)._then(g,null,null,w,void 0),d.cancellation()&&S instanceof c&&P._setOnCancel(S)):(P=new c(f),E=setTimeout(function(){P._fulfill()},+w),d.cancellation()&&P._setOnCancel(new y(E)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function _(w){return clearTimeout(this.handle),w}function b(w){throw clearTimeout(this.handle),w}c.prototype.delay=function(w){return x(w,this)},c.prototype.timeout=function(w,S){var P,E;w=+w;var T=new y(setTimeout(function(){P.isPending()&&function(j,F,k){var I;I=typeof F!="string"?F instanceof Error?F:new v("operation timed out"):new v(F),p.markAsOriginatingFromRejection(I),j._attachExtraTrace(I),j._reject(I),k!=null&&k.cancel()}(P,S,E)},w));return d.cancellation()?(E=this.then(),(P=E._then(_,b,void 0,T,void 0))._setOnCancel(T)):P=this._then(_,b,void 0,T,void 0),P}}},{"./util":36}],35:[function(a,s,l){s.exports=function(c,f,d,p,v,y){var g=a("./util"),x=a("./errors").TypeError,_=a("./util").inherits,b=g.errorObj,w=g.tryCatch,S={};function P(I){setTimeout(function(){throw I},0)}function E(I,D){var K=0,W=I.length,X=new c(v);return function Q(){if(K>=W)return X._fulfill();var te=function(Z){var z=d(Z);return z!==Z&&typeof Z._isDisposable=="function"&&typeof Z._getDisposer=="function"&&Z._isDisposable()&&z._setDisposable(Z._getDisposer()),z}(I[K++]);if(te instanceof c&&te._isDisposable()){try{te=d(te._getDisposer().tryDispose(D),I.promise)}catch(Z){return P(Z)}if(te instanceof c)return te._then(Q,P,null,null,null)}Q()}(),X}function T(I,D,K){this._data=I,this._promise=D,this._context=K}function j(I,D,K){this.constructor$(I,D,K)}function F(I){return T.isDisposer(I)?(this.resources[this.index]._setDisposable(I),I.promise()):I}function k(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 D=this.resource(),K=this._context;K!==void 0&&K._pushContext();var W=D!==S?this.doDispose(D,I):null;return K!==void 0&&K._popContext(),this._promise._unsetDisposable(),this._data=null,W},T.isDisposer=function(I){return I!=null&&typeof I.resource=="function"&&typeof I.tryDispose=="function"},_(j,T),j.prototype.doDispose=function(I,D){return this.data().call(I,I,D)},k.prototype._resultCancelled=function(){for(var I=this.length,D=0;D<I;++D){var K=this[D];K instanceof c&&K.cancel()}},c.using=function(){var I=arguments.length;if(I<2)return f("you must pass at least 2 arguments to Promise.using");var D,K=arguments[I-1];if(typeof K!="function")return f("expecting a function but got "+g.classString(K));var W=!0;I===2&&Array.isArray(arguments[0])?(I=(D=arguments[0]).length,W=!1):(D=arguments,I--);for(var X=new k(I),Q=0;Q<I;++Q){var te=D[Q];if(T.isDisposer(te)){var Z=te;(te=te.promise())._setDisposable(Z)}else{var z=d(te);z instanceof c&&(te=z._then(F,null,null,{resources:X,index:Q},void 0))}X[Q]=te}var B=new Array(X.length);for(Q=0;Q<B.length;++Q)B[Q]=c.resolve(X[Q]).reflect();var H=c.all(B).then(function(q){for(var ne=0;ne<q.length;++ne){var re=q[ne];if(re.isRejected())return b.e=re.error(),b;if(!re.isFulfilled())return void H.cancel();q[ne]=re.value()}ee._pushContext(),K=w(K);var ae=W?K.apply(void 0,q):K(q),ue=ee._popContext();return y.checkForgottenReturns(ae,ue,"Promise.using",ee),ae}),ee=H.lastly(function(){var q=new c.PromiseInspection(H);return E(X,q)});return X.promise=ee,ee._setOnCancel(X),ee},c.prototype._setDisposable=function(I){this._bitField=131072|this._bitField,this._disposer=I},c.prototype._isDisposable=function(){return(131072&this._bitField)>0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.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,l){var c,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 y(){try{var W=c;return c=null,W.apply(this,arguments)}catch(X){return p.e=X,p}}function g(W){return W==null||W===!0||W===!1||typeof W=="string"||typeof W=="number"}function x(W,X,Q){if(g(W))return W;var te={value:Q,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(W,X,te),W}var _=function(){var W=[Array.prototype,Object.prototype,Function.prototype],X=function(Z){for(var z=0;z<W.length;++z)if(W[z]===Z)return!0;return!1};if(f.isES5){var Q=Object.getOwnPropertyNames;return function(Z){for(var z=[],B=Object.create(null);Z!=null&&!X(Z);){var H;try{H=Q(Z)}catch{return z}for(var ee=0;ee<H.length;++ee){var q=H[ee];if(!B[q]){B[q]=!0;var ne=Object.getOwnPropertyDescriptor(Z,q);ne!=null&&ne.get==null&&ne.set==null&&z.push(q)}}Z=f.getPrototypeOf(Z)}return z}}var te={}.hasOwnProperty;return function(Z){if(X(Z))return[];var z=[];e:for(var B in Z)if(te.call(Z,B))z.push(B);else{for(var H=0;H<W.length;++H)if(te.call(W[H],B))continue e;z.push(B)}return z}}(),b=/this\s*\.\s*\S+\s*=/,w=/^[a-z$_][a-z$_0-9]*$/i;function S(W){try{return W+""}catch{return"[no string representation]"}}function P(W){return W instanceof Error||W!==null&&typeof W=="object"&&typeof W.message=="string"&&typeof W.name=="string"}function E(W){return P(W)&&f.propertyIsWritable(W,"stack")}var T="stack"in new Error?function(W){return E(W)?W:new Error(S(W))}:function(W){if(E(W))return W;try{throw new Error(S(W))}catch(X){return X}};function j(W){return{}.toString.call(W)}var F=function(W){return f.isArray(W)?W:null};if(typeof Symbol<"u"&&Symbol.iterator){var k=typeof Array.from=="function"?function(W){return Array.from(W)}:function(W){for(var X,Q=[],te=W[Symbol.iterator]();!(X=te.next()).done;)Q.push(X.value);return Q};F=function(W){return f.isArray(W)?W:W!=null&&typeof W[Symbol.iterator]=="function"?k(W):null}}var I=r!==void 0&&j(r).toLowerCase()==="[object process]",D=r!==void 0&&r.env!==void 0,K={isClass:function(W){try{if(typeof W=="function"){var X=f.names(W.prototype),Q=f.isES5&&X.length>1,te=X.length>0&&!(X.length===1&&X[0]==="constructor"),Z=b.test(W+"")&&f.names(W).length>0;if(Q||te||Z)return!0}return!1}catch{return!1}},isIdentifier:function(W){return w.test(W)},inheritedDataKeys:_,getDataPropertyOrDefault:function(W,X,Q){if(!f.isES5)return{}.hasOwnProperty.call(W,X)?W[X]:void 0;var te=Object.getOwnPropertyDescriptor(W,X);return te!=null?te.get==null&&te.set==null?te.value:Q:void 0},thrower:function(W){throw W},isArray:f.isArray,asArray:F,notEnumerableProp:x,isPrimitive:g,isObject:function(W){return typeof W=="function"||typeof W=="object"&&W!==null},isError:P,canEvaluate:d,errorObj:p,tryCatch:function(W){return c=W,y},inherits:function(W,X){var Q={}.hasOwnProperty;function te(){for(var Z in this.constructor=W,this.constructor$=X,X.prototype)Q.call(X.prototype,Z)&&Z.charAt(Z.length-1)!=="$"&&(this[Z+"$"]=X.prototype[Z])}return te.prototype=X.prototype,W.prototype=new te,W.prototype},withAppended:function(W,X){var Q,te=W.length,Z=new Array(te+1);for(Q=0;Q<te;++Q)Z[Q]=W[Q];return Z[Q]=X,Z},maybeWrapAsError:function(W){return g(W)?new Error(S(W)):W},toFastProperties:function(W){return W},filledRange:function(W,X,Q){for(var te=new Array(W),Z=0;Z<W;++Z)te[Z]=X+Z+Q;return te},toString:S,canAttachTrace:E,ensureErrorObject:T,originatesFromRejection:function(W){return W!=null&&(W instanceof Error.__BluebirdErrorTypes__.OperationalError||W.isOperational===!0)},markAsOriginatingFromRejection:function(W){try{x(W,"isOperational",!0)}catch{}},classString:j,copyDescriptors:function(W,X,Q){for(var te=f.names(W),Z=0;Z<te.length;++Z){var z=te[Z];if(Q(z))try{f.defineProperty(X,z,f.getDescriptor(W,z))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:I,hasEnvVariables:D,env:function(W){return D?r.env[W]:void 0},global:v,getNativePromise:function(){if(typeof Promise=="function")try{var W=new Promise(function(){});if({}.toString.call(W)==="[object Promise]")return Promise}catch{}},domainBind:function(W,X){return W.bind(X)}};K.isRecentNode=K.isNode&&function(){var W=r.versions.node.split(".").map(Number);return W[0]===0&&W[1]>10||W[0]>0}(),K.isNode&&K.toFastProperties(r);try{throw new Error}catch(W){K.lastLineError=W}s.exports=K},{"./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 l=function(B,H){return B.listeners(H).length},c=n(24),f=n(7).Buffer,d=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var v=n(41),y=void 0;y=v&&v.debuglog?v.debuglog("stream"):function(){};var g,x=n(42),_=n(25);p.inherits(S,c);var b=["error","close","destroy","pause","resume"];function w(B,H){a=a||n(1),B=B||{};var ee=H instanceof a;this.objectMode=!!B.objectMode,ee&&(this.objectMode=this.objectMode||!!B.readableObjectMode);var q=B.highWaterMark,ne=B.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=q||q===0?q: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&&(g||(g=n(26).StringDecoder),this.decoder=new g(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)),c.call(this)}function P(B,H,ee,q,ne){var re,ae=B._readableState;return H===null?(ae.reading=!1,function(ue,A){if(!A.ended){if(A.decoder){var N=A.decoder.end();N&&N.length&&(A.buffer.push(N),A.length+=A.objectMode?1:N.length)}A.ended=!0,F(ue)}}(B,ae)):(ne||(re=function(ue,A){var N;return function(U){return f.isBuffer(U)||U instanceof d}(A)||typeof A=="string"||A===void 0||ue.objectMode||(N=new TypeError("Invalid non-string/buffer chunk")),N}(ae,H)),re?B.emit("error",re):ae.objectMode||H&&H.length>0?(typeof H=="string"||ae.objectMode||Object.getPrototypeOf(H)===f.prototype||(H=function(ue){return f.from(ue)}(H)),q?ae.endEmitted?B.emit("error",new Error("stream.unshift() after end event")):E(B,ae,H,!0):ae.ended?B.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!ee?(H=ae.decoder.write(H),ae.objectMode||H.length!==0?E(B,ae,H,!1):I(B,ae)):E(B,ae,H,!1))):q||(ae.reading=!1)),function(ue){return!ue.ended&&(ue.needReadable||ue.length<ue.highWaterMark||ue.length===0)}(ae)}function E(B,H,ee,q){H.flowing&&H.length===0&&!H.sync?(B.emit("data",ee),B.read(0)):(H.length+=H.objectMode?1:ee.length,q?H.buffer.unshift(ee):H.buffer.push(ee),H.needReadable&&F(B)),I(B,H)}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=_.destroy,S.prototype._undestroy=_.undestroy,S.prototype._destroy=function(B,H){this.push(null),H(B)},S.prototype.push=function(B,H){var ee,q=this._readableState;return q.objectMode?ee=!0:typeof B=="string"&&((H=H||q.defaultEncoding)!==q.encoding&&(B=f.from(B,H),H=""),ee=!0),P(this,B,H,!1,ee)},S.prototype.unshift=function(B){return P(this,B,null,!0,!1)},S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(B){return g||(g=n(26).StringDecoder),this._readableState.decoder=new g(B),this._readableState.encoding=B,this};var T=8388608;function j(B,H){return B<=0||H.length===0&&H.ended?0:H.objectMode?1:B!=B?H.flowing&&H.length?H.buffer.head.data.length:H.length:(B>H.highWaterMark&&(H.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<=H.length?B:H.ended?H.length:(H.needReadable=!0,0))}function F(B){var H=B._readableState;H.needReadable=!1,H.emittedReadable||(y("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(k,B):k(B))}function k(B){y("emit readable"),B.emit("readable"),X(B)}function I(B,H){H.readingMore||(H.readingMore=!0,o.nextTick(D,B,H))}function D(B,H){for(var ee=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(y("maybeReadMore read 0"),B.read(0),ee!==H.length);)ee=H.length;H.readingMore=!1}function K(B){y("readable nexttick read 0"),B.read(0)}function W(B,H){H.reading||(y("resume read 0"),B.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,B.emit("resume"),X(B),H.flowing&&!H.reading&&B.read(0)}function X(B){var H=B._readableState;for(y("flow",H.flowing);H.flowing&&B.read()!==null;);}function Q(B,H){return H.length===0?null:(H.objectMode?ee=H.buffer.shift():!B||B>=H.length?(ee=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear()):ee=function(q,ne,re){var ae;return q<ne.head.data.length?(ae=ne.head.data.slice(0,q),ne.head.data=ne.head.data.slice(q)):ae=q===ne.head.data.length?ne.shift():re?function(ue,A){var N=A.head,U=1,J=N.data;for(ue-=J.length;N=N.next;){var Y=N.data,oe=ue>Y.length?Y.length:ue;if(oe===Y.length?J+=Y:J+=Y.slice(0,ue),(ue-=oe)==0){oe===Y.length?(++U,N.next?A.head=N.next:A.head=A.tail=null):(A.head=N,N.data=Y.slice(oe));break}++U}return A.length-=U,J}(q,ne):function(ue,A){var N=f.allocUnsafe(ue),U=A.head,J=1;for(U.data.copy(N),ue-=U.data.length;U=U.next;){var Y=U.data,oe=ue>Y.length?Y.length:ue;if(Y.copy(N,N.length-ue,0,oe),(ue-=oe)==0){oe===Y.length?(++J,U.next?A.head=U.next:A.head=A.tail=null):(A.head=U,U.data=Y.slice(oe));break}++J}return A.length-=J,N}(q,ne),ae}(B,H.buffer,H.decoder),ee);var ee}function te(B){var H=B._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,o.nextTick(Z,H,B))}function Z(B,H){B.endEmitted||B.length!==0||(B.endEmitted=!0,H.readable=!1,H.emit("end"))}function z(B,H){for(var ee=0,q=B.length;ee<q;ee++)if(B[ee]===H)return ee;return-1}S.prototype.read=function(B){y("read",B),B=parseInt(B,10);var H=this._readableState,ee=B;if(B!==0&&(H.emittedReadable=!1),B===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return y("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?te(this):F(this),null;if((B=j(B,H))===0&&H.ended)return H.length===0&&te(this),null;var q,ne=H.needReadable;return y("need readable",ne),(H.length===0||H.length-B<H.highWaterMark)&&y("length less than watermark",ne=!0),H.ended||H.reading?y("reading or ended",ne=!1):ne&&(y("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(B=j(ee,H))),(q=B>0?Q(B,H):null)===null?(H.needReadable=!0,B=0):H.length-=B,H.length===0&&(H.ended||(H.needReadable=!0),ee!==B&&H.ended&&te(this)),q!==null&&this.emit("data",q),q},S.prototype._read=function(B){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(B,H){var ee=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=B;break;case 1:q.pipes=[q.pipes,B];break;default:q.pipes.push(B)}q.pipesCount+=1,y("pipe count=%d opts=%j",q.pipesCount,H);var ne=H&&H.end===!1||B===i.stdout||B===i.stderr?oe:re;function re(){y("onend"),B.end()}q.endEmitted?o.nextTick(ne):ee.once("end",ne),B.on("unpipe",function he(Pe,se){y("onunpipe"),Pe===ee&&se&&se.hasUnpiped===!1&&(se.hasUnpiped=!0,y("cleanup"),B.removeListener("close",J),B.removeListener("finish",Y),B.removeListener("drain",ae),B.removeListener("error",U),B.removeListener("unpipe",he),ee.removeListener("end",re),ee.removeListener("end",oe),ee.removeListener("data",N),ue=!0,!q.awaitDrain||B._writableState&&!B._writableState.needDrain||ae())});var ae=function(he){return function(){var Pe=he._readableState;y("pipeOnDrain",Pe.awaitDrain),Pe.awaitDrain&&Pe.awaitDrain--,Pe.awaitDrain===0&&l(he,"data")&&(Pe.flowing=!0,X(he))}}(ee);B.on("drain",ae);var ue=!1,A=!1;function N(he){y("ondata"),A=!1,B.write(he)!==!1||A||((q.pipesCount===1&&q.pipes===B||q.pipesCount>1&&z(q.pipes,B)!==-1)&&!ue&&(y("false write response, pause",ee._readableState.awaitDrain),ee._readableState.awaitDrain++,A=!0),ee.pause())}function U(he){y("onerror",he),oe(),B.removeListener("error",U),l(B,"error")===0&&B.emit("error",he)}function J(){B.removeListener("finish",Y),oe()}function Y(){y("onfinish"),B.removeListener("close",J),oe()}function oe(){y("unpipe"),ee.unpipe(B)}return ee.on("data",N),function(he,Pe,se){if(typeof he.prependListener=="function")return he.prependListener(Pe,se);he._events&&he._events[Pe]?s(he._events[Pe])?he._events[Pe].unshift(se):he._events[Pe]=[se,he._events[Pe]]:he.on(Pe,se)}(B,"error",U),B.once("close",J),B.once("finish",Y),B.emit("pipe",ee),q.flowing||(y("pipe resume"),ee.resume()),B},S.prototype.unpipe=function(B){var H=this._readableState,ee={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return B&&B!==H.pipes?this:(B||(B=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,B&&B.emit("unpipe",this,ee),this);if(!B){var q=H.pipes,ne=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var re=0;re<ne;re++)q[re].emit("unpipe",this,ee);return this}var ae=z(H.pipes,B);return ae===-1?this:(H.pipes.splice(ae,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),B.emit("unpipe",this,ee),this)},S.prototype.on=function(B,H){var ee=c.prototype.on.call(this,B,H);if(B==="data")this._readableState.flowing!==!1&&this.resume();else if(B==="readable"){var q=this._readableState;q.endEmitted||q.readableListening||(q.readableListening=q.needReadable=!0,q.emittedReadable=!1,q.reading?q.length&&F(this):o.nextTick(K,this))}return ee},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var B=this._readableState;return B.flowing||(y("resume"),B.flowing=!0,function(H,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,o.nextTick(W,H,ee))}(this,B)),this},S.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this},S.prototype.wrap=function(B){var H=this,ee=this._readableState,q=!1;for(var ne in B.on("end",function(){if(y("wrapped end"),ee.decoder&&!ee.ended){var ae=ee.decoder.end();ae&&ae.length&&H.push(ae)}H.push(null)}),B.on("data",function(ae){y("wrapped data"),ee.decoder&&(ae=ee.decoder.write(ae)),(!ee.objectMode||ae!=null)&&(ee.objectMode||ae&&ae.length)&&(H.push(ae)||(q=!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<b.length;re++)B.on(b[re],this.emit.bind(this,b[re]));return this._read=function(ae){y("wrapped _read",ae),q&&(q=!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,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(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(y){switch((y=""+y)&&y.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(y){var g;switch(this.encoding=function(x){var _=function(b){if(!b)return"utf8";for(var w;;)switch(b){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 b;default:if(w)return;b=(""+b).toLowerCase(),w=!0}}(x);if(typeof _!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return _||x}(y),this.encoding){case"utf16le":this.text=l,this.end=c,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=f,this.end=d,g=3;break;default:return this.write=p,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(g)}function a(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function s(y){var g=this.lastTotal-this.lastNeed,x=function(_,b,w){if((192&b[0])!=128)return _.lastNeed=0,"<22>";if(_.lastNeed>1&&b.length>1){if((192&b[1])!=128)return _.lastNeed=1,"<22>";if(_.lastNeed>2&&b.length>2&&(192&b[2])!=128)return _.lastNeed=2,"<22>"}}(this,y);return x!==void 0?x:this.lastNeed<=y.length?(y.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,g,0,y.length),void(this.lastNeed-=y.length))}function l(y,g){if((y.length-g)%2==0){var x=y.toString("utf16le",g);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",g,y.length-1)}function c(y){var g=y&&y.length?this.write(y):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,x)}return g}function f(y,g){var x=(y.length-g)%3;return x===0?y.toString("base64",g):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",g,y.length-x))}function d(y){var g=y&&y.length?this.write(y):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function p(y){return y.toString(this.encoding)}function v(y){return y&&y.length?this.write(y):""}t.StringDecoder=o,o.prototype.write=function(y){if(y.length===0)return"";var g,x;if(this.lastNeed){if((g=this.fillLast(y))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<y.length?g?g+this.text(y,x):this.text(y,x):g||""},o.prototype.end=function(y){var g=y&&y.length?this.write(y):"";return this.lastNeed?g+"<22>":g},o.prototype.text=function(y,g){var x=function(b,w,S){var P=w.length-1;if(P<S)return 0;var E=a(w[P]);return E>=0?(E>0&&(b.lastNeed=E-1),E):--P<S||E===-2?0:(E=a(w[P]))>=0?(E>0&&(b.lastNeed=E-2),E):--P<S||E===-2?0:(E=a(w[P]))>=0?(E>0&&(E===2?E=0:b.lastNeed=E-3),E):0}(this,y,g);if(!this.lastNeed)return y.toString("utf8",g);this.lastTotal=x;var _=y.length-(x-this.lastNeed);return y.copy(this.lastChar,0,_),y.toString("utf8",g,_)},o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:(function(c,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(c);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(c,f){s(l,c,f)}):s(this,null,null)}function s(l,c,f){if(c)return l.emit("error",c);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,c)},o.prototype._transform=function(l,c,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,c,f){var d=this._transformState;if(d.writecb=f,d.writechunk=l,d.writeencoding=c,!d.transforming){var p=this._readableState;(d.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(l){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},o.prototype._destroy=function(l,c){var f=this;r.prototype._destroy.call(this,l,function(d){c(d),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,c){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=s,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var x in g)g.hasOwnProperty(x)&&(y[x]=g[x])};return function(y,g){function x(){this.constructor=y}v(y,g),y.prototype=g===null?Object.create(g):(x.prototype=g.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),l=n(51),c=o(n(15)),f=n(52),d=n(105),p=function(v){function y(g,x){x===void 0&&(x={});var _=v.call(this,x)||this;return _.options=x,_.params=s.mergeParams(g),_.runtime=l.initParseRuntime(_),_.result=new d.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(b){r(function(){_.result.processError(b),_.emit("done",b)})}),_.once("done",function(){_.processor.destroy()}),_}return i(y,v),y.prototype.preRawData=function(g){return this.runtime.preRawDataHook=g,this},y.prototype.preFileLine=function(g){return this.runtime.preFileLineHook=g,this},y.prototype.subscribe=function(g,x,_){return this.parseRuntime.subscribe={onNext:g,onError:x,onCompleted:_},this},y.prototype.fromFile=function(g,x){var _=this,b=n(!function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}());return b.exists(g,function(w){w?b.createReadStream(g,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},y.prototype.fromStream=function(g){return g.pipe(this),this},y.prototype.fromString=function(g){g.toString();var x=new a.Readable,_=0;return x._read=function(b){if(_>=g.length)this.push(null);else{var w=g.substr(_,b);this.push(w),_+=b}},this.fromStream(x)},y.prototype.then=function(g,x){var _=this;return new c.default(function(b,w){_.parseRuntime.then={onfulfilled:function(S){b(g?g(S):S)},onrejected:function(S){x?b(x(S)):w(S)}}})},Object.defineProperty(y.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),y.prototype._transform=function(g,x,_){var b=this;this.processor.process(g).then(function(w){if(w.length>0)return b.runtime.started=!0,b.result.processResult(w)}).then(function(){b.emit("drained"),_()},function(w){b.runtime.hasError=!0,b.runtime.error=w,b.emit("error",w),_()})},y.prototype._flush=function(g){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(g)},function(_){x.emit("error",_),g()})},y.prototype.processEnd=function(g){this.result.endProcess(),this.emit("done"),g()},Object.defineProperty(y.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),y}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,c={},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(g){i.nextTick(function(){y(g)})}:function(){if(o.postMessage&&!o.importScripts){var g=!0,x=o.onmessage;return o.onmessage=function(){g=!1},o.postMessage("","*"),o.onmessage=x,g}}()?function(){var g="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(g)===0&&y(+_.data.slice(g.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(_){o.postMessage(g+_,"*")}}():o.MessageChannel?function(){var g=new MessageChannel;g.port1.onmessage=function(x){y(x.data)},s=function(x){g.port2.postMessage(x)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var g=d.documentElement;s=function(x){var _=d.createElement("script");_.onreadystatechange=function(){y(x),_.onreadystatechange=null,g.removeChild(_),_=null},g.appendChild(_)}}():s=function(g){setTimeout(y,0,g)},p.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var x=new Array(arguments.length-1),_=0;_<x.length;_++)x[_]=arguments[_+1];var b={callback:g,args:x};return c[l]=b,s(l),l++},p.clearImmediate=v}function v(g){delete c[g]}function y(g){if(f)setTimeout(y,0,g);else{var x=c[g];if(x){f=!0;try{(function(_){var b=_.callback,w=_.args;switch(w.length){case 0:b();break;case 1:b(w[0]);break;case 2:b(w[0],w[1]);break;case 3:b(w[0],w[1],w[2]);break;default:b.apply(a,w)}})(x)}finally{v(g),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function l(g){o.writable&&o.write(g)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",c),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(g){if(y(),r.listenerCount(this,"error")===0)throw g}function y(){s.removeListener("data",l),o.removeListener("drain",c),s.removeListener("end",d),s.removeListener("close",p),s.removeListener("error",v),o.removeListener("error",v),s.removeListener("end",y),s.removeListener("close",y),o.removeListener("close",y)}return s.on("error",v),o.on("error",v),s.on("end",y),s.on("close",y),o.on("close",y),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=c(p),y=v[0],g=v[1];return 3*(y+g)/4-g},t.toByteArray=function(p){for(var v,y=c(p),g=y[0],x=y[1],_=new o(3*(g+x)/4-x),b=0,w=x>0?g-4:g,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),_},t.fromByteArray=function(p){for(var v,y=p.length,g=y%3,x=[],_=0,b=y-g;_<b;_+=16383)x.push(d(p,_,_+16383>b?b:_+16383));return g===1?(v=p[y-1],x.push(r[v>>2]+r[v<<4&63]+"==")):g===2&&(v=(p[y-2]<<8)+p[y-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,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=v),[y,y===v?0:4-y%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function d(p,v,y){for(var g,x=[],_=v;_<y;_+=3)g=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(255&p[_+2]),x.push(f(g));return x.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,a){var s,l,c=8*a-o-1,f=(1<<c)-1,d=f>>1,p=-7,v=i?a-1:0,y=i?-1:1,g=n[r+v];for(v+=y,s=g&(1<<-p)-1,g>>=-p,p+=c;p>0;s=256*s+n[r+v],v+=y,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+v],v+=y,p-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:1/0*(g?-1:1);l+=Math.pow(2,o),s-=d}return(g?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,c,f,d=8*s-a-1,p=(1<<d)-1,v=p>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:s-1,x=o?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+v>=1?y/f:y*Math.pow(2,1-v))*f>=2&&(l++,f/=2),l+v>=p?(c=0,l=p):l+v>=1?(c=(r*f-1)*Math.pow(2,a),l+=v):(c=r*Math.pow(2,v-1)*Math.pow(2,a),l=0));a>=8;n[i+g]=255&c,g+=x,c/=256,a-=8);for(l=l<<a|c,d+=a;d>0;n[i+g]=255&l,g+=x,l/=256,d-=8);n[i+g-x]|=128*_}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=s+l.data;return c},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var w in b)b.hasOwnProperty(w)&&(_[w]=b[w])};return function(_,b){function w(){this.constructor=_}x(_,b),_.prototype=b===null?Object.create(b):(w.prototype=b.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)),l=n(54),c=o(n(16)),f=n(57),d=n(28),p=n(58),v=o(n(59)),y=o(n(29)),g=function(x){function _(){var b=x!==null&&x.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(_,x),_.prototype.flush=function(){var b=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 b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?s.default.reject(y.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):s.default.resolve(S)})}return s.default.resolve([])},_.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(_.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(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(b,w){var S,P=this;return w===void 0&&(w=!1),S=w?b.toString():l.prepareData(b,this.converter.parseRuntime),s.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(S):S}).then(function(E){return E&&E.length>0?P.processCSV(E,w):s.default.resolve([])})},_.prototype.processCSV=function(b,w){var S=this,P=this.params,E=this.runtime;E.eol||c.default(b,E),this.needEmitEol&&!this.eolEmitted&&E.eol&&(this.converter.emit("eol",E.eol),this.eolEmitted=!0),P.ignoreEmpty&&!E.started&&(b=d.trimLeft(b));var T=f.stringToLines(b,E);return w?(T.lines.push(T.partial),T.partial=""):this.prependLeftBuf(d.bufFromString(T.partial)),T.lines.length>0?(E.preFileLineHook?this.runPreLineHook(T.lines):s.default.resolve(T.lines)).then(function(j){return E.started||S.runtime.headers?S.processCSVBody(j):S.processDataWithHead(j)}):s.default.resolve([])},_.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var w="",S=[];b.length;){var P=w+b.shift(),E=this.rowSplit.parse(P);if(E.closed){S=E.cells,w="";break}w=P+c.default(P,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 b=this.runtime.headers,w=0;w<b.length;w++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(b[w])){if(!this.params.includeColumns||!this.params.includeColumns.test(b[w]))continue;this.runtime.selectedColumns.push(w)}else this.runtime.selectedColumns.push(w);else this.params.includeColumns?this.params.includeColumns.test(b[w])&&this.runtime.selectedColumns.push(w):this.runtime.selectedColumns.push(w);this.runtime.headers=d.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},_.prototype.processCSVBody=function(b){if(this.params.output==="line")return b;var w=this.rowSplit.parseMultiLines(b);return this.prependLeftBuf(d.bufFromString(w.partial)),this.params.output==="csv"?w.rowsCells:v.default(w.rowsCells,this.converter)},_.prototype.prependLeftBuf=function(b){b&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([b,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=b)},_.prototype.runPreLineHook=function(b){var w=this;return new s.default(function(S,P){(function E(T,j,F,k){if(F>=T.length)k();else if(j.preFileLineHook){var I=T[F],D=j.preFileLineHook(I,j.parsedLineNumber+F);if(F++,D&&D.then)D.then(function(K){T[F-1]=K,E(T,j,F,k)});else{for(T[F-1]=D;F<T.length;)T[F]=j.preFileLineHook(T[F],j.parsedLineNumber+F),F++;k()}}else k()})(b,w.runtime,0,function(E){E?P(E):S(b)})})},_}(a.Processor);t.ProcessorLocal=g}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var l=function(f,d){return d.csvLineBuffer&&d.csvLineBuffer.length>0?r.concat([d.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var c=function(f,d){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(d.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,a){var s=i.default(o,a),l=o.split(s);return{lines:l,partial:l.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function l(c){this.conv=c,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=c.parseParam.quote,this.trim=c.parseParam.trim,this.escape=c.parseParam.escape}return Object.defineProperty(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.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(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,v=c.split(p);if(f==="off"){if(d)for(var y=0;y<v.length;y++)v[y]=v[y].trim();return{cells:v,closed:!0}}return this.toCSVRow(v,d,f,p)},l.prototype.toCSVRow=function(c,f,d,p){for(var v=[],y=!1,g="",x=0,_=c.length;x<_;x++){var b=c[x];!y&&f&&(b=o.trimLeft(b));var w=b.length;if(y)this.isQuoteClose(b)?(y=!1,g+=p+(b=b.substr(0,w-1)),g=this.escapeQuote(g),f&&(g=o.trimRight(g)),v.push(g),g=""):g+=p+b;else{if(w===2&&b===this.quote+this.quote){v.push("");continue}if(this.isQuoteOpen(b)){if(b=b.substr(1),this.isQuoteClose(b)){b=b.substring(0,b.lastIndexOf(d)),b=this.escapeQuote(b),v.push(b);continue}if(b.indexOf(d)!==-1){for(var S=0,P="",E=0,T=b;E<T.length;E++){var j=T[E];j===d&&P!==this.escape?(S++,P=""):P=j}if(S%2==1){f&&(b=o.trimRight(b)),v.push(d+b);continue}y=!0,g+=b;continue}y=!0,g+=b;continue}f&&(b=o.trimRight(b)),v.push(b)}}return{cells:v,closed:!y}},l.prototype.getDelimiter=function(c){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 y=c.split(v).length;y>d&&(p=v,d=y)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,d=this.escape;return c[0]===f&&(c[1]!==f||c[1]===d&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,d=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,v=c.length-1;c[v]===f||c[v]===d;)v--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){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 c.replace(d,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],d="";c.length;){var p=d+c.shift(),v=this.parse(p);v.cells.length===0&&this.conv.parseParam.ignoreEmpty||(v.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(v.cells,this.conv.parseRuntime.selectedColumns)):f.push(v.cells),d=""):d=p+(i.default(p,this.conv.parseRuntime)||`
|
||
`))}return{rowsCells:f,partial:d}},l}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};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(b.parseParam.checkColumn&&b.parseRuntime.headers&&_.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+w);return function(S,P,E){for(var T=!1,j={},F=0,k=S.length;F<k;F++){var I=S[F];if(!E.parseParam.ignoreEmpty||I!==""){T=!0;var D=P[F];D&&D!==""||(D=P[F]="field"+(F+1));var K=c(D,F,E);if(K){var W=K(I,D,j,S,F);W!==void 0&&f(j,D,W,E,F)}else E.parseParam.checkType&&(I=v(I,D,F,E)(I)),I!==void 0&&f(j,D,I,E,F)}}return T?j:null}(_,b.parseRuntime.headers||[],b)||null}t.default=function(_,b){for(var w=[],S=0,P=_.length;S<P;S++){var E=s(_[S],b,S);E&&w.push(E)}return w};var l={string:g,number:y,omit:function(){}};function c(_,b,w){if(w.parseRuntime.columnConv[b]!==void 0)return w.parseRuntime.columnConv[b];var S=w.parseParam.colParser[_];if(S===void 0)return w.parseRuntime.columnConv[b]=null;if(typeof S=="object"&&(S=S.cellParser||"string"),typeof S=="string"){S=S.trim().toLowerCase();var P=l[S];return w.parseRuntime.columnConv[b]=P||null}return w.parseRuntime.columnConv[b]=typeof S=="function"?S:null}function f(_,b,w,S,P){if(!S.parseRuntime.columnValueSetter[P])if(S.parseParam.flatKeys)S.parseRuntime.columnValueSetter[P]=d;else if(b.indexOf(".")>-1){for(var E=b.split("."),T=!0;E.length>0;)if(E.shift().length===0){T=!1;break}!T||S.parseParam.colParser[b]&&S.parseParam.colParser[b].flat?S.parseRuntime.columnValueSetter[P]=d:S.parseRuntime.columnValueSetter[P]=p}else S.parseRuntime.columnValueSetter[P]=d;S.parseParam.nullObject===!0&&w==="null"&&(w=null),S.parseRuntime.columnValueSetter[P](_,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]:b.indexOf("number#!")>-1?S.parseRuntime.headerType[w]=y:b.indexOf("string#!")>-1?S.parseRuntime.headerType[w]=g:S.parseParam.checkType?S.parseRuntime.headerType[w]=x:S.parseRuntime.headerType[w]=g}function y(_){var b=parseFloat(_);return isNaN(b)?_:b}function g(_){return _.toString()}function x(_){var b=_.trim();return b===""?g(_):a.test(b)?y(_):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(w){var S=w.trim();return S.length!==5||S.toLowerCase()!=="false"}(_):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(w){try{return JSON.parse(w)}catch{return w}}(_):g(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,c,f,d){if(!a(l))return l;for(var p=-1,v=(c=i(c,l)).length,y=v-1,g=l;g!=null&&++p<v;){var x=s(c[p]),_=f;if(p!=y){var b=g[x];(_=d?d(b,x,g):void 0)===void 0&&(_=a(b)?b:o(c[p+1])?[]:{})}r(g,x,_),g=g[x]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,l){var c=a[s];o.call(a,s)&&i(c,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,p=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(v){return!(!o(v)||i(v))&&(r(v)?p:s).test(a(v))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(l){var c=o.call(l,s),f=l[s];try{l[s]=void 0;var d=!0}catch{}var p=a.call(l);return d&&(c?l[s]=f:delete l[s]),p}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,l){if(r(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s in Object(l)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,c,f,d){s.push(f?d.replace(i,"$1"):c||l)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var c=arguments,f=s?s.apply(this,c):c[0],d=l.cache;if(d.has(f))return d.get(f);var p=a.apply(this,c);return l.cache=d.set(f,p)||d,p};return l.cache=new(o.Cache||r),l}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(a(f))return l?l.call(f):"";var d=f+"";return d=="0"&&1/f==-1/0?"-0":d}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function l(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){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 y(g,x,_,b,w){if(_>=g.length)w();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var S=x.parseRuntime.subscribe.onNext,P=g[_],E=S(P,x.parseRuntime.parsedLineNumber+_);if(_++,E&&E.then)E.then(function(){(function(j,F,k,I,D,K,W){D&&s(k,W),y(j,k,I,D,K)})(g,0,x,_,b,w,P)},w);else{for(b&&s(x,P);_<g.length;){var T=g[_];S(T,x.parseRuntime.parsedLineNumber+_),_++,b&&s(x,T)}w()}}else{if(b)for(;_<g.length;)T=g[_++],s(x,T);w()}}(c,f.converter,0,f.needPushDownstream,function(y){y?v(y):(f.appendFinalResult(c),p())}):(f.appendFinalResult(c),p())})},l.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},l.prototype.processError=function(c){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(c),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(c)},l.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},l}();function s(l,c){if(typeof c!="object"||l.options.objectMode)l.push(c);else{var f=JSON.stringify(c);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
|
||
`,t.homedir=function(){return"/"}}]);const yDe=at(gDe),bDe=e=>new Promise(t=>{yDe().fromString(e).then(t)}),_De=new o5,xDe=e=>_De.parse(e),wDe="shlink",z4=e=>`${wDe}.${e}`;class ODe{constructor(t){Fl(this,"get",t=>{const n=this.localStorage.getItem(z4(t));return n?JSON.parse(n):void 0});Fl(this,"set",(t,n)=>this.localStorage.setItem(z4(t),JSON.stringify(n)));this.localStorage=t}}class SDe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const PDe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",ODe,"localStorage"),e.service("TagColorsStorage",SDe,"Storage"),e.constant("csvToJson",bDe),e.constant("jsonToCsv",xDe),e.serviceFactory("useTimeoutToggle",()=>vD)},jl=new N6,{container:MC}=jl,EDe=(e,t)=>(...n)=>e[t](...n),CDe=(e,t)=>({...e,[t]:EDe(MC,t)}),TDe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),yb=(e,t=[])=>l6(e?TDe(e):null,t.reduce(CDe,{}));roe(jl,yb);wIe(jl,yb);Qq(jl);cDe(jl,yb);PDe(jl);vDe(jl,yb);var LC={},tS={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 c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return r.apply(void 0,c)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!1,c)}t.merge=r;function i(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!0,c)}t.recursive=i;function o(c){if(Array.isArray(c)){for(var f=[],d=0;d<c.length;++d)f.push(o(c[d]));return f}else if(a(c)){var f={};for(var d in c)f[d]=o(c[d]);return f}else return c}t.clone=o;function a(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=a;function s(c,f){if(!a(c))return f;for(var d in f)d==="__proto__"||d==="constructor"||d==="prototype"||(c[d]=a(c[d])&&a(f[d])?s(c[d],f[d]):f[d]);return c}function l(c,f,d){var p;(c||!a(p=d.shift()))&&(p={});for(var v=0;v<d.length;++v){var y=d[v];if(a(y)){for(var g in y)if(!(g==="__proto__"||g==="constructor"||g==="prototype")){var x=c?o(y[g]):y[g];p[g]=f?s(p[g],x):x}}}return p}})(tS,tS.exports);var jDe=tS.exports;(function(e){var t=n(jDe);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=K,e.combineLoads=D,e.load=I,e.save=k;function n(z){return z&&z.__esModule?z:{default:z}}function r(z,B){return l(z)||s(z,B)||o(z,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(z,B){if(z){if(typeof z=="string")return a(z,B);var H=Object.prototype.toString.call(z).slice(8,-1);return H==="Object"&&z.constructor&&(H=z.constructor.name),H==="Map"||H==="Set"?Array.from(z):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?a(z,B):void 0}}function a(z,B){(B==null||B>z.length)&&(B=z.length);for(var H=0,ee=Array(B);H<B;H++)ee[H]=z[H];return ee}function s(z,B){var H=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(H!=null){var ee,q,ne=[],re=!0,ae=!1;try{for(H=H.call(z);!(re=(ee=H.next()).done)&&(ne.push(ee.value),!(B&&ne.length===B));re=!0);}catch(ue){ae=!0,q=ue}finally{try{re||H.return==null||H.return()}finally{if(ae)throw q}}return ne}}function l(z){if(Array.isArray(z))return z}function c(z){"@babel/helpers - typeof";return c=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},c(z)}function f(z,B,H){return B in z?Object.defineProperty(z,B,{value:H,enumerable:!0,configurable:!0,writable:!0}):z[B]=H,z}var d="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",v="_",y=[],g=[],x=0,_=!1,b=!1,w=new Map;function S(z){console.warn(d,z)}function P(){}var E=function(z){return z?P:S};function T(z,B){return B===void 0?null:z.length===1?B[z[0]]:T(z.slice(1),B[z[0]])}function j(z){function B(ee,q){return ee.length===0?q:B(ee.slice(1),f({},ee[0],q))}var H=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return B(z.split(".").reverse(),H)}function F(z){this.warnFn=z||S}Object.defineProperty(F.prototype,"length",{get:function(){try{return localStorage.length}catch(z){this.warnFn(z)}return 0},configurable:!0,enumerable:!0}),F.prototype.key=function(z){try{return localStorage.key(z)}catch(B){this.warnFn(B)}return null},F.prototype.setItem=function(z,B){try{localStorage.setItem(z,JSON.stringify(B))}catch(H){this.warnFn(H)}},F.prototype.getItem=function(z){try{return JSON.parse(localStorage.getItem(z))}catch(B){this.warnFn(B)}return null},F.prototype.removeItem=function(z){try{localStorage.removeItem(z)}catch(B){this.warnFn(B)}};function k(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=z.states,H=B===void 0?y:B,ee=z.ignoreStates,q=ee===void 0?g:ee,ne=z.namespace,re=ne===void 0?p:ne,ae=z.namespaceSeparator,ue=ae===void 0?v:ae,A=z.debounce,N=A===void 0?x:A,U=z.disableWarnings,J=U===void 0?b:U;return function(Y){return function(oe){return function(he){function Pe(Ce,Ae){return 1<Ce.split(".").length?T(Ce.split("."),Ae):T([Ce],Ae)}function se(){H.length===0?Te.setItem(re,pe):H.forEach(function(Ce){var Ae=re+ue+Ce,le=Pe(Ce,pe);le?Te.setItem(Ae,le):Te.removeItem(Ae)})}var pe,ve=E(J),xe=oe(he);W(H)||(console.error(d,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),H=y),W(q)||(console.error(d,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),q=g),0<q.length&&(q=q.filter(function(Ce){return X(Ce)?Ce:void console.error(d,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),X(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),X(ue)||(console.error(d,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ue=v),Q(N)||(console.error(d,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),N=x),pe=0<q.length?Z(q,Y.getState()):Y.getState();var Te=new F(ve);return N?(w.get(H+re)&&clearTimeout(w.get(H+re)),w.set(H+re,setTimeout(function(){se()},N))):se(),xe}}}}function I(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=z.states,H=B===void 0?y:B,ee=z.immutablejs,q=ee===void 0?_:ee,ne=z.namespace,re=ne===void 0?p:ne,ae=z.namespaceSeparator,ue=ae===void 0?v:ae,A=z.preloadedState,N=A===void 0?{}:A,U=z.disableWarnings,J=U===void 0?b:U,Y=E(J);W(H)||(console.error(d,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),H=y),X(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),X(ue)||(console.error(d,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ue=v),q===!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 oe=new F(Y),he=N;if(H.length===0){var Pe=oe.getItem(re);Pe&&(he=Pe)}else H.forEach(function(se){var pe=re+ue+se,ve=oe.getItem(pe);ve?he=t.default.recursive(he,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 he}function D(){for(var z={},B=arguments.length,H=Array(B),ee=0;ee<B;ee++)H[ee]=arguments[ee];return H.forEach(function(q){for(var ne in te(q)||(console.error(d,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),q={}),q)z[ne]=q[ne]}),z}function K(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},B=z.namespace,H=B===void 0?p:B,ee=z.disableWarnings,q=ee===void 0?b:ee,ne=E(q);X(H)||(console.error(d,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),H=p);for(var re,ae=new F(ne),ue=ae.length,A=0;A<ue;A++)re=ae.key(A),re&&re.slice(0,H.length)===H&&ae.removeItem(re)}function W(z){return Object.prototype.toString.call(z)==="[object Array]"}function X(z){return typeof z=="string"}function Q(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function te(z){return z!==null&&c(z)==="object"}function Z(z,B){var H=Object.entries(B).reduce(function(ee,q){var ne=r(q,2),re=ne[0];return ne[1],z.indexOf(re)===-1&&(ee[re]=B[re]),ee},{});return H}})(LC);const ADe=e=>UP({appUpdated:noe,servers:HIe,selectedServer:e.selectedServerReducer,settings:pDe}),kDe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),NDe=!0,C9={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},MDe=kDe(LC.load(C9)),LDe=e=>ND({devTools:!NDe,reducer:ADe(e),preloadedState:MDe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(LC.save(C9))}),RDe=!!(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 $De(e){if("serviceWorker"in navigator){if(new URL($v.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${$v.homepage}/service-worker.js`;RDe?(IDe(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")})):T9(n,e)})}}function T9(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 IDe(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()})}):T9(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const j9=LDe(MC),{App:DDe,ScrollToTop:FDe,ErrorHandler:BDe,appUpdateAvailable:UDe}=MC;t6(document.getElementById("root")).render(m.jsx(c6,{store:j9,children:m.jsx(_6,{basename:$v.homepage,children:m.jsx(BDe,{children:m.jsx(FDe,{children:m.jsx(DDe,{})})})})}));$De({onUpdate(){j9.dispatch(UDe())}});
|