shlink-web-client/dependabot/npm_and_yarn/stylelint-15.10.1/assets/index-8d97adc4.js

999 lines
1.4 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var g$=Object.defineProperty;var v$=(e,t,n)=>t in e?g$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(v$(e,typeof t!="symbol"?t+"":t,n),n);function y$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var $l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var TL={exports:{}},iy={},OL={exports:{}},it={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kd=Symbol.for("react.element"),b$=Symbol.for("react.portal"),w$=Symbol.for("react.fragment"),x$=Symbol.for("react.strict_mode"),S$=Symbol.for("react.profiler"),C$=Symbol.for("react.provider"),E$=Symbol.for("react.context"),T$=Symbol.for("react.forward_ref"),O$=Symbol.for("react.suspense"),P$=Symbol.for("react.memo"),k$=Symbol.for("react.lazy"),rO=Symbol.iterator;function M$(e){return e===null||typeof e!="object"?null:(e=rO&&e[rO]||e["@@iterator"],typeof e=="function"?e:null)}var PL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kL=Object.assign,ML={};function Vc(e,t,n){this.props=e,this.context=t,this.refs=ML,this.updater=n||PL}Vc.prototype.isReactComponent={};Vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RL(){}RL.prototype=Vc.prototype;function b2(e,t,n){this.props=e,this.context=t,this.refs=ML,this.updater=n||PL}var w2=b2.prototype=new RL;w2.constructor=b2;kL(w2,Vc.prototype);w2.isPureReactComponent=!0;var iO=Array.isArray,NL=Object.prototype.hasOwnProperty,x2={current:null},LL={key:!0,ref:!0,__self:!0,__source:!0};function DL(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)NL.call(t,r)&&!LL.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:kd,type:e,key:o,ref:s,props:i,_owner:x2.current}}function R$(e,t){return{$$typeof:kd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function S2(e){return typeof e=="object"&&e!==null&&e.$$typeof===kd}function N$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oO=/\/+/g;function n0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?N$(""+e.key):t.toString(36)}function Up(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case kd:case b$:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+n0(s,0):r,iO(i)?(n="",e!=null&&(n=e.replace(oO,"$&/")+"/"),Up(i,t,n,"",function(c){return c})):i!=null&&(S2(i)&&(i=R$(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(oO,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",iO(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+n0(o,a);s+=Up(o,t,n,l,i)}else if(l=M$(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+n0(o,a++),s+=Up(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 s}function Fh(e,t,n){if(e==null)return e;var r=[],i=0;return Up(e,r,"","",function(o){return t.call(n,o,i++)}),r}function L$(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 ur={current:null},Vp={transition:null},D$={ReactCurrentDispatcher:ur,ReactCurrentBatchConfig:Vp,ReactCurrentOwner:x2};it.Children={map:Fh,forEach:function(e,t,n){Fh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fh(e,function(){t++}),t},toArray:function(e){return Fh(e,function(t){return t})||[]},only:function(e){if(!S2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=Vc;it.Fragment=w$;it.Profiler=S$;it.PureComponent=b2;it.StrictMode=x$;it.Suspense=O$;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D$;it.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=kL({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=x2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)NL.call(t,l)&&!LL.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:kd,type:e.type,key:i,ref:o,props:r,_owner:s}};it.createContext=function(e){return e={$$typeof:E$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:C$,_context:e},e.Consumer=e};it.createElement=DL;it.createFactory=function(e){var t=DL.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:T$,render:e}};it.isValidElement=S2;it.lazy=function(e){return{$$typeof:k$,_payload:{_status:-1,_result:e},_init:L$}};it.memo=function(e,t){return{$$typeof:P$,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Vp.transition;Vp.transition={};try{e()}finally{Vp.transition=t}};it.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};it.useCallback=function(e,t){return ur.current.useCallback(e,t)};it.useContext=function(e){return ur.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return ur.current.useDeferredValue(e)};it.useEffect=function(e,t){return ur.current.useEffect(e,t)};it.useId=function(){return ur.current.useId()};it.useImperativeHandle=function(e,t,n){return ur.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return ur.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return ur.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return ur.current.useMemo(e,t)};it.useReducer=function(e,t,n){return ur.current.useReducer(e,t,n)};it.useRef=function(e){return ur.current.useRef(e)};it.useState=function(e){return ur.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return ur.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return ur.current.useTransition()};it.version="18.2.0";OL.exports=it;var V=OL.exports;const U=ri(V),W1=y$({__proto__:null,default:U},[V]);/**
* @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 A$=V,j$=Symbol.for("react.element"),I$=Symbol.for("react.fragment"),F$=Object.prototype.hasOwnProperty,$$=A$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B$={key:!0,ref:!0,__self:!0,__source:!0};function AL(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)F$.call(t,r)&&!B$.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:j$,type:e,key:o,ref:s,props:i,_owner:$$.current}}iy.Fragment=I$;iy.jsx=AL;iy.jsxs=AL;TL.exports=iy;var g=TL.exports;/*!
* @kurkle/color v0.3.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/function Md(e){return e+.5|0}const ls=(e,t,n)=>Math.max(Math.min(e,n),t);function $u(e){return ls(Md(e*2.55),0,255)}function bs(e){return ls(Md(e*255),0,255)}function po(e){return ls(Md(e/2.55)/100,0,1)}function sO(e){return ls(Md(e*100),0,100)}const Vr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Y1=[..."0123456789ABCDEF"],z$=e=>Y1[e&15],U$=e=>Y1[(e&240)>>4]+Y1[e&15],$h=e=>(e&240)>>4===(e&15),V$=e=>$h(e.r)&&$h(e.g)&&$h(e.b)&&$h(e.a);function H$(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Vr[e[1]]*17,g:255&Vr[e[2]]*17,b:255&Vr[e[3]]*17,a:t===5?Vr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Vr[e[1]]<<4|Vr[e[2]],g:Vr[e[3]]<<4|Vr[e[4]],b:Vr[e[5]]<<4|Vr[e[6]],a:t===9?Vr[e[7]]<<4|Vr[e[8]]:255})),n}const W$=(e,t)=>e<255?t(e):"";function Y$(e){var t=V$(e)?z$:U$;return e?"#"+t(e.r)+t(e.g)+t(e.b)+W$(e.a,t):void 0}const q$=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function jL(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function G$(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function Z$(e,t,n){const r=jL(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function K$(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function C2(e){const n=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;let l,c,f;return o!==s&&(f=o-s,c=a>.5?f/(2-o-s):f/(o+s),l=K$(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function E2(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(bs)}function T2(e,t,n){return E2(jL,e,t,n)}function X$(e,t,n){return E2(Z$,e,t,n)}function Q$(e,t,n){return E2(G$,e,t,n)}function IL(e){return(e%360+360)%360}function J$(e){const t=q$.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?$u(+t[5]):bs(+t[5]));const i=IL(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=X$(i,o,s):t[1]==="hsv"?r=Q$(i,o,s):r=T2(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function e7(e,t){var n=C2(e);n[0]=IL(n[0]+t),n=T2(n),e.r=n[0],e.g=n[1],e.b=n[2]}function t7(e){if(!e)return;const t=C2(e),n=t[0],r=sO(t[1]),i=sO(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${po(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const aO={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lO={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function n7(){const e={},t=Object.keys(lO),n=Object.keys(aO);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,aO[o]);o=parseInt(lO[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let Bh;function r7(e){Bh||(Bh=n7(),Bh.transparent=[0,0,0,0]);const t=Bh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const i7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function o7(e){const t=i7.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?$u(s):ls(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?$u(r):ls(r,0,255)),i=255&(t[4]?$u(i):ls(i,0,255)),o=255&(t[6]?$u(o):ls(o,0,255)),{r,g:i,b:o,a:n}}}function s7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${po(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const r0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Sl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function a7(e,t,n){const r=Sl(po(e.r)),i=Sl(po(e.g)),o=Sl(po(e.b));return{r:bs(r0(r+n*(Sl(po(t.r))-r))),g:bs(r0(i+n*(Sl(po(t.g))-i))),b:bs(r0(o+n*(Sl(po(t.b))-o))),a:e.a+n*(t.a-e.a)}}function zh(e,t,n){if(e){let r=C2(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=T2(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function FL(e,t){return e&&Object.assign(t||{},e)}function cO(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bs(e[3]))):(t=FL(e,{r:0,g:0,b:0,a:1}),t.a=bs(t.a)),t}function l7(e){return e.charAt(0)==="r"?o7(e):J$(e)}class Lf{constructor(t){if(t instanceof Lf)return t;const n=typeof t;let r;n==="object"?r=cO(t):n==="string"&&(r=H$(t)||r7(t)||l7(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=FL(this._rgb);return t&&(t.a=po(t.a)),t}set rgb(t){this._rgb=cO(t)}rgbString(){return this._valid?s7(this._rgb):void 0}hexString(){return this._valid?Y$(this._rgb):void 0}hslString(){return this._valid?t7(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=a7(this._rgb,t._rgb,n)),this}clone(){return new Lf(this.rgb)}alpha(t){return this._rgb.a=bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Md(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return zh(this._rgb,2,t),this}darken(t){return zh(this._rgb,2,-t),this}saturate(t){return zh(this._rgb,1,t),this}desaturate(t){return zh(this._rgb,1,-t),this}rotate(t){return e7(this._rgb,t),this}}/*!
* Chart.js v4.1.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/function co(){}const c7=(()=>{let e=0;return()=>e++})();function ct(e){return e===null||typeof e>"u"}function kt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function rt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function qt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Tr(e,t){return qt(e)?e:t}function Ke(e,t){return typeof e>"u"?t:e}const u7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,$L=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ct(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function vt(e,t,n,r){let i,o,s;if(kt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(rt(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function og(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function sg(e){if(kt(e))return e.map(sg);if(rt(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=sg(e[n[i]]);return t}return e}function BL(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function f7(e,t,n,r){if(!BL(e))return;const i=t[e],o=n[e];rt(i)&&rt(o)?Df(i,o,r):t[e]=sg(o)}function Df(e,t,n){const r=kt(t)?t:[t],i=r.length;if(!rt(e))return e;n=n||{};const o=n.merger||f7;let s;for(let a=0;a<i;++a){if(s=r[a],!rt(s))continue;const l=Object.keys(s);for(let c=0,f=l.length;c<f;++c)o(l[c],e,s,n)}return e}function tf(e,t){return Df(e,t,{merger:d7})}function d7(e,t,n){if(!BL(e))return;const r=t[e],i=n[e];rt(r)&&rt(i)?tf(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=sg(i))}const uO={"":e=>e,x:e=>e.x,y:e=>e.y};function h7(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function p7(e){const t=h7(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function As(e,t){return(uO[t]||(uO[t]=p7(t)))(e)}function O2(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Qr=e=>typeof e<"u",js=e=>typeof e=="function",fO=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function m7(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const It=Math.PI,Mt=2*It,g7=Mt+It,ag=Number.POSITIVE_INFINITY,v7=It/180,Gt=It/2,da=It/4,dO=It*2/3,cs=Math.log10,Gi=Math.sign;function nf(e,t,n){return Math.abs(e-t)<n}function hO(e){const t=Math.round(e);e=nf(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(cs(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function y7(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function yc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function _7(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function zL(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function yi(e){return e*(It/180)}function P2(e){return e*(180/It)}function pO(e){if(!qt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function UL(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*It&&(o+=Mt),{angle:o,distance:i}}function q1(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function b7(e,t){return(e-t+g7)%Mt-It}function Pr(e){return(e%Mt+Mt)%Mt}function Af(e,t,n,r){const i=Pr(e),o=Pr(t),s=Pr(n),a=Pr(o-i),l=Pr(s-i),c=Pr(i-o),f=Pr(i-s);return i===o||i===s||r&&o===s||a>l&&c<f}function En(e,t,n){return Math.max(t,Math.min(n,e))}function w7(e){return En(e,-32768,32767)}function _o(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function k2(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const bo=(e,t,n,r)=>k2(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),x7=(e,t,n)=>k2(e,n,r=>e[r][t]>=n);function S7(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const VL=["push","pop","shift","splice","unshift"];function C7(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),VL.forEach(n=>{const r="_onData"+O2(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function mO(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(VL.forEach(o=>{delete e[o]}),delete e._chartjs)}function HL(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const WL=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function YL(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,WL.call(window,()=>{r=!1,e.apply(t,n)}))}}function E7(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const M2=e=>e==="start"?"left":e==="end"?"right":"center",Kn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,T7=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function qL(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(i=En(Math.min(bo(a,s.axis,c).lo,n?r:bo(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=En(Math.max(bo(a,s.axis,f,!0).hi+1,n?0:bo(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function GL(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Uh=e=>e===0||e===1,gO=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Mt/n)),vO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Mt/n)+1,rf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Gt)+1,easeOutSine:e=>Math.sin(e*Gt),easeInOutSine:e=>-.5*(Math.cos(It*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Uh(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Uh(e)?e:gO(e,.075,.3),easeOutElastic:e=>Uh(e)?e:vO(e,.075,.3),easeInOutElastic(e){return Uh(e)?e:e<.5?.5*gO(e*2,.1125,.45):.5+.5*vO(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-rf.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?rf.easeInBounce(e*2)*.5:rf.easeOutBounce(e*2-1)*.5+.5};function ZL(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function yO(e){return ZL(e)?e:new Lf(e)}function i0(e){return ZL(e)?e:new Lf(e).saturate(.5).darken(.1).hexString()}const O7=["x","y","borderWidth","radius","tension"],P7=["color","borderColor","backgroundColor"];function k7(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:P7},numbers:{type:"number",properties:O7}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function M7(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const _O=new Map;function R7(e,t){t=t||{};const n=e+JSON.stringify(t);let r=_O.get(n);return r||(r=new Intl.NumberFormat(e,t),_O.set(n,r)),r}function Rd(e,t,n){return R7(t,n).format(e)}const KL={values(e){return kt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=N7(e,n)}const s=cs(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Rd(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(cs(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?KL.numeric.call(this,e,t,n):""}};function N7(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var oy={formatters:KL};function L7(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:oy.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ha=Object.create(null),G1=Object.create(null);function of(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function o0(e,t,n){return typeof t=="string"?Df(of(e,t),n):Df(of(e,""),t)}class D7{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>i0(i.backgroundColor),this.hoverBorderColor=(r,i)=>i0(i.borderColor),this.hoverColor=(r,i)=>i0(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return o0(this,t,n)}get(t){return of(this,t)}describe(t,n){return o0(G1,t,n)}override(t,n){return o0(Ha,t,n)}route(t,n,r,i){const o=of(this,t),s=of(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return rt(l)?Object.assign({},c,l):Ke(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var tn=new D7({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[k7,M7,L7]);function A7(e){return!e||ct(e.size)||ct(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function lg(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function j7(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,f,h,p;for(l=0;l<a;l++)if(h=n[l],h!=null&&kt(h)!==!0)s=lg(e,i,o,s,h);else if(kt(h))for(c=0,f=h.length;c<f;c++)p=h[c],p!=null&&!kt(p)&&(s=lg(e,i,o,s,p));e.restore();const m=o.length/2;if(m>n.length){for(l=0;l<m;l++)delete i[o[l]];o.splice(0,m)}return s}function ha(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function bO(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Z1(e,t,n,r){XL(e,t,n,r,null)}function XL(e,t,n,r,i){let o,s,a,l,c,f,h,p;const m=t.pointStyle,v=t.rotation,y=t.radius;let x=(v||0)*v7;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(x),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,y,0,0,Mt):e.arc(n,r,y,0,Mt),e.closePath();break;case"triangle":f=i?i/2:y,e.moveTo(n+Math.sin(x)*f,r-Math.cos(x)*y),x+=dO,e.lineTo(n+Math.sin(x)*f,r-Math.cos(x)*y),x+=dO,e.lineTo(n+Math.sin(x)*f,r-Math.cos(x)*y),e.closePath();break;case"rectRounded":c=y*.516,l=y-c,s=Math.cos(x+da)*l,h=Math.cos(x+da)*(i?i/2-c:l),a=Math.sin(x+da)*l,p=Math.sin(x+da)*(i?i/2-c:l),e.arc(n-h,r-a,c,x-It,x-Gt),e.arc(n+p,r-s,c,x-Gt,x),e.arc(n+h,r+a,c,x,x+Gt),e.arc(n-p,r+s,c,x+Gt,x+It),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,f=i?i/2:l,e.rect(n-f,r-l,2*f,2*l);break}x+=da;case"rectRot":h=Math.cos(x)*(i?i/2:y),s=Math.cos(x)*y,a=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-a),e.lineTo(n+p,r-s),e.lineTo(n+h,r+a),e.lineTo(n-p,r+s),e.closePath();break;case"crossRot":x+=da;case"cross":h=Math.cos(x)*(i?i/2:y),s=Math.cos(x)*y,a=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-a),e.lineTo(n+h,r+a),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"star":h=Math.cos(x)*(i?i/2:y),s=Math.cos(x)*y,a=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-a),e.lineTo(n+h,r+a),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s),x+=da,h=Math.cos(x)*(i?i/2:y),s=Math.cos(x)*y,a=Math.sin(x)*y,p=Math.sin(x)*(i?i/2:y),e.moveTo(n-h,r-a),e.lineTo(n+h,r+a),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"line":s=i?i/2:Math.cos(x)*y,a=Math.sin(x)*y,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(x)*(i?i/2:y),r+Math.sin(x)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function jf(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function sy(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ay(e){e.restore()}function I7(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function F7(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Wa(e,t,n,r,i,o={}){const s=kt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,$7(e,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&z7(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),ct(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),B7(e,n,r,c,o),r+=i.lineHeight;e.restore()}function $7(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ct(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function B7(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,f=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,f),e.lineTo(a,f),e.stroke()}}function z7(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function If(e,t){const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-Gt,It,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,It,Gt,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,Gt,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-Gt,!0),e.lineTo(n+s.topLeft,r)}const U7=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,V7=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function H7(e,t){const n=(""+e).match(U7);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const W7=e=>+e||0;function R2(e,t){const n={},r=rt(t),i=r?Object.keys(t):t,o=rt(e)?r?s=>Ke(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=W7(o(s));return n}function QL(e){return R2(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Aa(e){return R2(e,["topLeft","topRight","bottomLeft","bottomRight"])}function er(e){const t=QL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function gn(e,t){e=e||{},t=t||tn.font;let n=Ke(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ke(e.style,t.style);r&&!(""+r).match(V7)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ke(e.family,t.family),lineHeight:H7(Ke(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ke(e.weight,t.weight),string:""};return i.string=A7(i),i}function Bu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;o<s;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&kt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function Y7(e,t,n){const{min:r,max:i}=e,o=$L(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function qs(e,t){return Object.assign(Object.create(e),t)}function N2(e,t=[""],n=e,r,i=()=>e[0]){Qr(r)||(r=nD("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>N2([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return eD(s,a,()=>eB(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return xO(s).includes(a)},ownKeys(s){return xO(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function _c(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:JL(e,r),setContext:o=>_c(e,o,n,r),override:o=>_c(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return eD(o,s,()=>G7(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function JL(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:js(n)?n:()=>n,isIndexable:js(r)?r:()=>r}}const q7=(e,t)=>e?e+O2(t):t,L2=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function eD(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function G7(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return js(a)&&s.isScriptable(t)&&(a=Z7(t,a,e,n)),kt(a)&&a.length&&(a=K7(t,a,e,s.isIndexable)),L2(t,a)&&(a=_c(a,i,o&&o[t],s)),a}function Z7(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),L2(e,t)&&(t=D2(i._scopes,i,e,t)),t}function K7(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(Qr(o.index)&&r(e))t=t[o.index%t.length];else if(rt(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=D2(c,i,e,f);t.push(_c(h,o,s&&s[e],a))}}return t}function tD(e,t,n){return js(e)?e(t,n):e}const X7=(e,t)=>e===!0?t:typeof e=="string"?As(t,e):void 0;function Q7(e,t,n,r,i){for(const o of t){const s=X7(n,o);if(s){e.add(s);const a=tD(s._fallback,n,i);if(Qr(a)&&a!==n&&a!==r)return a}else if(s===!1&&Qr(r)&&n!==r)return null}return!1}function D2(e,t,n,r){const i=t._rootScopes,o=tD(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=wO(a,s,n,o||n,r);return l===null||Qr(o)&&o!==n&&(l=wO(a,s,o,l,r),l===null)?!1:N2(Array.from(a),[""],i,o,()=>J7(t,n,r))}function wO(e,t,n,r,i){for(;n;)n=Q7(e,t,n,r,i);return n}function J7(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return kt(i)&&rt(n)?n:i||{}}function eB(e,t,n,r){let i;for(const o of t)if(i=nD(q7(o,e),n),Qr(i))return L2(e,i)?D2(n,r,e,i):i}function nD(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Qr(r))return r}}function xO(e){let t=e._keys;return t||(t=e._keys=tB(e._scopes)),t}function tB(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function rD(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,f;for(a=0,l=r;a<l;++a)c=a+n,f=t[c],s[a]={r:i.parse(As(f,o),c)};return s}const nB=Number.EPSILON||1e-14,bc=(e,t)=>t<e.length&&!e[t].skip&&e[t],iD=e=>e==="x"?"y":"x";function rB(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=q1(o,i),l=q1(s,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-h*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function iB(e,t,n){const r=e.length;let i,o,s,a,l,c=bc(e,0);for(let f=0;f<r-1;++f)if(l=c,c=bc(e,f+1),!(!l||!c)){if(nf(t[f],0,nB)){n[f]=n[f+1]=0;continue}i=n[f]/t[f],o=n[f+1]/t[f],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[f]=i*s*t[f],n[f+1]=o*s*t[f])}}function oB(e,t,n="x"){const r=iD(n),i=e.length;let o,s,a,l=bc(e,0);for(let c=0;c<i;++c){if(s=a,a=l,l=bc(e,c+1),!a)continue;const f=a[n],h=a[r];s&&(o=(f-s[n])/3,a[`cp1${n}`]=f-o,a[`cp1${r}`]=h-o*t[c]),l&&(o=(l[n]-f)/3,a[`cp2${n}`]=f+o,a[`cp2${r}`]=h+o*t[c])}}function sB(e,t="x"){const n=iD(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,c=bc(e,0);for(s=0;s<r;++s)if(a=l,l=c,c=bc(e,s+1),!!l){if(c){const f=c[t]-l[t];i[s]=f!==0?(c[n]-l[n])/f:0}o[s]=a?c?Gi(i[s-1])!==Gi(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}iB(e,i,o),oB(e,o,t)}function Vh(e,t,n){return Math.max(Math.min(e,n),t)}function aB(e,t){let n,r,i,o,s,a=jf(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&jf(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=Vh(i.cp1x,t.left,t.right),i.cp1y=Vh(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=Vh(i.cp2x,t.left,t.right),i.cp2y=Vh(i.cp2y,t.top,t.bottom)))}function lB(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")sB(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=rB(c,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&aB(e,n)}function oD(){return typeof window<"u"&&typeof document<"u"}function A2(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function cg(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const ly=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function cB(e,t){return ly(e).getPropertyValue(t)}const uB=["top","right","bottom","left"];function ja(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=uB[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const fB=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function dB(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(fB(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function ba(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ly(n),o=i.boxSizing==="border-box",s=ja(i,"padding"),a=ja(i,"border","width"),{x:l,y:c,box:f}=dB(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:m,height:v}=t;return o&&(m-=s.width+a.width,v-=s.height+a.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function hB(e,t,n){let r,i;if(t===void 0||n===void 0){const o=A2(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=ly(o),l=ja(a,"border","width"),c=ja(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=cg(a.maxWidth,o,"clientWidth"),i=cg(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||ag,maxHeight:i||ag}}const Hh=e=>Math.round(e*10)/10;function pB(e,t,n,r){const i=ly(e),o=ja(i,"margin"),s=cg(i.maxWidth,e,"clientWidth")||ag,a=cg(i.maxHeight,e,"clientHeight")||ag,l=hB(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=ja(i,"border","width"),m=ja(i,"padding");c-=m.width+p.width,f-=m.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Hh(Math.min(c,s,l.maxWidth)),f=Hh(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Hh(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Hh(Math.floor(f*r))),{width:c,height:f}}function SO(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const mB=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function CO(e,t){const n=cB(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function wa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function gB(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function vB(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=wa(e,i,n),a=wa(i,o,n),l=wa(o,t,n),c=wa(s,a,n),f=wa(a,l,n);return wa(c,f,n)}const yB=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},_B=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function nc(e,t,n){return e?yB(t,n):_B()}function sD(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function aD(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function lD(e){return e==="angle"?{between:Af,compare:b7,normalize:Pr}:{between:_o,compare:(t,n)=>t-n,normalize:t=>t}}function EO({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function bB(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=lD(r),l=t.length;let{start:c,end:f,loop:h}=e,p,m;if(h){for(c+=l,f+=l,p=0,m=l;p<m&&s(a(t[c%l][r]),i,o);++p)c--,f--;c%=l,f%=l}return f<c&&(f+=l),{start:c,end:f,loop:h,style:e.style}}function cD(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=lD(r),{start:f,end:h,loop:p,style:m}=bB(e,t,n),v=[];let y=!1,x=null,_,w,S;const T=()=>l(i,S,_)&&a(i,S)!==0,P=()=>a(o,_)===0||l(o,S,_),k=()=>y||T(),N=()=>!y||P();for(let D=f,z=f;D<=h;++D)w=t[D%s],!w.skip&&(_=c(w[r]),_!==S&&(y=l(_,i,o),x===null&&k()&&(x=a(_,i)===0?D:z),x!==null&&N()&&(v.push(EO({start:x,end:D,loop:p,count:s,style:m})),x=null),z=D,S=_));return x!==null&&v.push(EO({start:x,end:h,loop:p,count:s,style:m})),v}function uD(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=cD(r[i],e.points,t);o.length&&n.push(...o)}return n}function wB(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function xB(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function SB(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=wB(n,i,o,r);if(r===!0)return TO(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+i:a,c=!!e._fullLoop&&s===0&&a===i-1;return TO(e,xB(n,s,l,c),n,t)}function TO(e,t,n,r){return!r||!r.setContext||!n?t:CB(e,t,n,r)}function CB(e,t,n,r){const i=e._chart.getContext(),o=OO(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let f=o,h=t[0].start,p=h;function m(v,y,x,_){const w=a?-1:1;if(v!==y){for(v+=l;n[v%l].skip;)v-=w;for(;n[y%l].skip;)y+=w;v%l!==y%l&&(c.push({start:v%l,end:y%l,loop:x,style:_}),f=_,h=y%l)}}for(const v of t){h=a?h:v.start;let y=n[h%l],x;for(p=h+1;p<=v.end;p++){const _=n[p%l];x=OO(r.setContext(qs(i,{type:"segment",p0:y,p1:_,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:s}))),EB(x,f)&&m(h,p-1,v.loop,f),y=_,f=x}h<p-1&&m(h,p-1,v.loop,f)}return c}function OO(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function EB(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
* Chart.js v4.1.1
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/class TB{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=WL.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var uo=new TB;const PO="transparent",OB={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=yO(e||PO),i=r.valid&&yO(t||PO);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class PB{constructor(t,n,r,i){const o=n[r];i=Bu([t.to,i,o,t.from]);const s=Bu([t.from,o,i]);this._active=!0,this._fn=t.fn||OB[t.type||typeof s],this._easing=rf[t.easing]||rf.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Bu([t.to,n,i,t.from]),this._from=Bu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class fD{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!rt(t))return;const n=Object.keys(tn.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!rt(o))return;const s={};for(const a of n)s[a]=o[a];(kt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=MB(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&kB(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,a);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new PB(p,t,c,f),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return uo.add(this._chart,r),!0}}function kB(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function MB(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function kO(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function RB(e,t,n){if(n===!1)return!1;const r=kO(e,n),i=kO(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function NB(e){let t,n,r,i;return rt(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function dD(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function MO(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let s,a,l,c;if(t!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=e.values[l],qt(c)&&(o||t===0||Gi(t)===Gi(c))&&(t+=c)}return t}}function LB(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function RO(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function DB(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function AB(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function jB(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function NO(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function LO(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,f=DB(o,s,r),h=t.length;let p;for(let m=0;m<h;++m){const v=t[m],{[l]:y,[c]:x}=v,_=v._stacks||(v._stacks={});p=_[c]=jB(i,f,y),p[a]=x,p._top=NO(p,s,!0,r.type),p._bottom=NO(p,s,!1,r.type);const w=p._visualValues||(p._visualValues={});w[a]=x}}function s0(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function IB(e,t){return qs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function FB(e,t,n){return qs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function _u(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const a0=e=>e==="reset"||e==="none",DO=(e,t)=>t?e:Object.assign({},e),$B=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:dD(n,!0),values:null};class wi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=RO(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&_u(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,v)=>h==="x"?p:h==="r"?v:m,o=n.xAxisID=Ke(r.xAxisID,s0(t,"x")),s=n.yAxisID=Ke(r.yAxisID,s0(t,"y")),a=n.rAxisID=Ke(r.rAxisID,s0(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),f=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&mO(this._data,this),t._stacked&&_u(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(rt(n))this._data=LB(n);else if(r!==n){if(r){mO(r,this);const i=this._cachedMeta;_u(i),i._parsed=[]}n&&Object.isExtensible(n)&&C7(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=RO(n.vScale,n),n.stack!==r.stack&&(i=!0,_u(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&LO(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{kt(i[t])?p=this.parseArrayData(r,i,t,n):rt(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]<c[a];for(f=0;f<n;++f)r._parsed[f+t]=h=p[f],l&&(m()&&(l=!1),c=h);r._sorted=l}s&&LO(this,p)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),f=o===s,h=new Array(i);let p,m,v;for(p=0,m=i;p<m;++p)v=p+r,h[p]={[a]:f||o.parse(c[v],v),[l]:s.parse(n[v],v)};return h}parseArrayData(t,n,r,i){const{xScale:o,yScale:s}=t,a=new Array(i);let l,c,f,h;for(l=0,c=i;l<c;++l)f=l+r,h=n[f],a[l]={x:o.parse(h[0],f),y:s.parse(h[1],f)};return a}parseObjectData(t,n,r,i){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let f,h,p,m;for(f=0,h=i;f<h;++f)p=f+r,m=n[p],c[f]={x:o.parse(As(m,a),p),y:s.parse(As(m,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:dD(i,!0),values:n._stacks[t.axis]._visualValues};return MO(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=MO(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=$B(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=AB(a);let p,m;function v(){m=i[p];const y=m[a.axis];return!qt(m[t.axis])||f>y||h<y}for(p=0;p<s&&!(!v()&&(this.updateRangeFromParsed(c,t,m,l),o));++p);if(o){for(p=s-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],qt(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=NB(Ke(this.options.clip,RB(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,o,a,l),f=a;f<a+l;++f){const h=i[f];h.hidden||(h.active&&c?s.push(h):h.draw(t,o))}for(f=0;f<s.length;++f)s[f].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=FB(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=IB(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&Qr(r);if(a)return DO(a,l);const c=this.chart.config,f=c.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),f),m=Object.keys(tn.elements[t]),v=()=>this.getContext(r,i,n),y=c.resolveNamedOptions(p,m,v,h);return y.$shared&&(y.$shared=l,o[s]=Object.freeze(DO(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,r,n))}const c=new fD(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||a0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){a0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!a0(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,s=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&_u(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}xe(wi,"defaults",{}),xe(wi,"datasetElementType",null),xe(wi,"dataElementType",null);function BB(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=HL(r.sort((i,o)=>i-o))}return e._cache.$bar}function zB(e){const t=e.iScale,n=BB(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(Qr(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function UB(e,t,n,r){const i=n.barThickness;let o,s;return ct(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function VB(e,t,n,r){const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function HB(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function hD(e,t,n,r){return kt(e)?HB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function AO(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c<f;++c)p=t[c],h={},h[i.axis]=a||i.parse(s[c],c),l.push(hD(p,h,o,c));return l}function l0(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function WB(e,t,n){return e!==0?Gi(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function YB(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function qB(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:f}=YB(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[jO(f,s,a,l)]=!0,i=c)),o[jO(i,s,a,l)]=!0,e.borderSkipped=o}function jO(e,t,n,r){return r?(e=GB(e,t,n),e=IO(e,n,t)):e=IO(e,t,n),e}function GB(e,t,n){return e===t?n:e===n?t:e}function IO(e,t,n){return e==="start"?t:e==="end"?n:e}function ZB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class sf extends wi{parsePrimitiveData(t,n,r,i){return AO(t,n,r,i)}parseArrayData(t,n,r,i){return AO(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,f=s.axis==="x"?a:l,h=[];let p,m,v,y;for(p=r,m=r+i;p<m;++p)y=n[p],v={},v[o.axis]=o.parse(As(y,c),p),h.push(hD(As(y,f),v,s,p));return h}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),s=o._custom,a=l0(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(n,i);for(let m=n;m<n+r;m++){const v=this.getParsed(m),y=o||ct(v[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),x=this._calculateBarIndexPixels(m,f),_=(v._stacks||{})[a.axis],w={horizontal:c,base:y.base,enableBorderRadius:!_||l0(v._custom)||s===_._top||s===_._bottom,x:c?y.head:x.center,y:c?x.center:y.head,height:c?x.size:Math.abs(y.size),width:c?Math.abs(y.size):x.size};p&&(w.options=h||this.resolveDataElementOptions(m,t[m].active?"active":i));const S=w.options||t[m].options;qB(w,S,_,s),ZB(w,S,f.ratio),this.updateElement(t[m],m,w,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(ct(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||zB(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,f=l0(c);let h=l[n.axis],p=0,m=r?this.applyStack(n,l,r):h,v,y;m!==h&&(p=m-h,m=h),f&&(h=c.barStart,m=c.barEnd-c.barStart,h!==0&&Gi(h)!==Gi(c.barEnd)&&(p=0),p+=h);const x=!ct(o)&&!f?o:p;let _=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(p+m):v=_,y=v-_,Math.abs(y)<s){y=WB(y,n,a)*s,h===a&&(_-=y/2);const w=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),T=Math.min(w,S),P=Math.max(w,S);_=Math.max(Math.min(_,P),T),v=_+y,r&&!f&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(_))}if(_===n.getPixelForValue(a)){const w=Gi(y)*n.getLineWidthForValue(a)/2;_+=w,y-=w}return{size:y,base:_,head:v,center:v+y/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,s=Ke(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,f=i.barThickness==="flex"?VB(t,n,i,c):UB(t,n,i,c),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=f.start+f.chunk*h+f.chunk/2,l=Math.min(s,f.chunk*f.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}xe(sf,"id","bar"),xe(sf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),xe(sf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Hp extends wi{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=Ke(a[2],this.resolveDataElementOptions(s+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=Ke(a&&a.r&&+a.r,this.resolveDataElementOptions(s+r).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=s.axis,h=a.axis;for(let p=n;p<n+r;p++){const m=t[p],v=!o&&this.getParsed(p),y={},x=y[f]=o?s.getPixelForDecimal(.5):s.getPixelForValue(v[f]),_=y[h]=o?a.getBasePixel():a.getPixelForValue(v[h]);y.skip=isNaN(x)||isNaN(_),c&&(y.options=l||this.resolveDataElementOptions(p,m.active?"active":i),o&&(y.options.radius=0)),this.updateElement(m,p,y,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=Ke(r&&r._custom,o),i}}xe(Hp,"id","bubble"),xe(Hp,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),xe(Hp,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function KB(e,t,n){let r=1,i=1,o=0,s=0;if(t<Mt){const a=e,l=a+t,c=Math.cos(a),f=Math.sin(a),h=Math.cos(l),p=Math.sin(l),m=(S,T,P)=>Af(S,a,l,!0)?1:Math.max(T,T*n,P,P*n),v=(S,T,P)=>Af(S,a,l,!0)?-1:Math.min(T,T*n,P,P*n),y=m(0,c,h),x=m(Gt,f,p),_=v(It,c,h),w=v(It+Gt,f,p);r=(y-_)/2,i=(x-w)/2,o=-(y+_)/2,s=-(x+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class us extends wi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(rt(r[t])){const{key:l="value"}=this._parsing;o=c=>+As(r[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return yi(this.options.rotation-90)}_getCircumference(){return yi(this.options.circumference)}_getRotationExtents(){let t=Mt,n=-Mt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(u7(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:v,offsetY:y}=KB(h,f,l),x=(r.width-s)/p,_=(r.height-s)/m,w=Math.max(Math.min(x,_)/2,0),S=$L(this.options.radius,w),T=Math.max(S*l,0),P=(S-T)/this._getVisibleDatasetWeightTotal();this.offsetX=v*S,this.offsetY=y*S,i.total=this.calculateTotal(),this.outerRadius=S-P*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-P*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Mt)}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,c=s.options.animation,f=(a.left+a.right)/2,h=(a.top+a.bottom)/2,p=o&&c.animateScale,m=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:y,includeOptions:x}=this._getSharedOptions(n,i);let _=this._getRotation(),w;for(w=0;w<n;++w)_+=this._circumference(w,o);for(w=n;w<n+r;++w){const S=this._circumference(w,o),T=t[w],P={x:f+this.offsetX,y:h+this.offsetY,startAngle:_,endAngle:_+S,circumference:S,outerRadius:v,innerRadius:m};x&&(P.options=y||this.resolveDataElementOptions(w,T.active?"active":i)),_+=S,this.updateElement(T,w,P,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Mt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Rd(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(Ke(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}xe(us,"id","doughnut"),xe(us,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),xe(us,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),xe(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class af extends wi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=qL(n,i,s);this._drawStart=a,this._drawCount=l,GL(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=s.axis,m=a.axis,{spanGaps:v,segment:y}=this.options,x=yc(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",w=n+r,S=t.length;let T=n>0&&this.getParsed(n-1);for(let P=0;P<S;++P){const k=t[P],N=_?k:{};if(P<n||P>=w){N.skip=!0;continue}const D=this.getParsed(P),z=ct(D[m]),A=N[p]=s.getPixelForValue(D[p],P),W=N[m]=o||z?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,D,l):D[m],P);N.skip=isNaN(A)||isNaN(W)||z,N.stop=P>0&&Math.abs(D[p]-T[p])>x,y&&(N.parsed=D,N.raw=c.data[P]),h&&(N.options=f||this.resolveDataElementOptions(P,k.active?"active":i)),_||this.updateElement(k,P,N,i),T=D}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}xe(af,"id","line"),xe(af,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),xe(af,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class lf extends wi{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Rd(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return rD.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*It;let m=p,v;const y=360/this.countVisibleElements();for(v=0;v<n;++v)m+=this._computeAngle(v,i,y);for(v=n;v<n+r;v++){const x=t[v];let _=m,w=m+this._computeAngle(v,i,y),S=s.getDataVisibility(v)?c.getDistanceFromCenterForValue(this.getParsed(v).r):0;m=w,o&&(l.animateScale&&(S=0),l.animateRotate&&(_=w=p));const T={x:f,y:h,innerRadius:0,outerRadius:S,startAngle:_,endAngle:w,options:this.resolveDataElementOptions(v,x.active?"active":i)};this.updateElement(x,v,T,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?yi(this.resolveDataElementOptions(t,n).angle||r):0}}xe(lf,"id","polarArea"),xe(lf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),xe(lf,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class K1 extends us{}xe(K1,"id","pie"),xe(K1,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Wp extends wi{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return rD.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a<n+r;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":i),f=o.getPointPositionForValue(a,this.getParsed(a).r),h=s?o.xCenter:f.x,p=s?o.yCenter:f.y,m={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:c};this.updateElement(l,a,m,i)}}}xe(Wp,"id","radar"),xe(Wp,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),xe(Wp,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Yp extends wi{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y);return{label:r[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:s}=qL(n,r,i);if(this._drawStart=o,this._drawCount=s,GL(n)&&(o=0,s=r.length),this.options.showLine){const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},t)}this.updateElements(r,o,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,f=this.resolveDataElementOptions(n,i),h=this.getSharedOptions(f),p=this.includeOptions(i,h),m=s.axis,v=a.axis,{spanGaps:y,segment:x}=this.options,_=yc(y)?y:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||o||i==="none";let S=n>0&&this.getParsed(n-1);for(let T=n;T<n+r;++T){const P=t[T],k=this.getParsed(T),N=w?P:{},D=ct(k[v]),z=N[m]=s.getPixelForValue(k[m],T),A=N[v]=o||D?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[v],T);N.skip=isNaN(z)||isNaN(A)||D,N.stop=T>0&&Math.abs(k[m]-S[m])>_,x&&(N.parsed=k,N.raw=c.data[T]),p&&(N.options=h||this.resolveDataElementOptions(T,P.active?"active":i)),w||this.updateElement(P,T,N,i),S=k}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}xe(Yp,"id","scatter"),xe(Yp,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),xe(Yp,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var XB=Object.freeze({__proto__:null,BarController:sf,BubbleController:Hp,DoughnutController:us,LineController:af,PolarAreaController:lf,PieController:K1,RadarController:Wp,ScatterController:Yp});function pa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class j2{static override(t){Object.assign(j2.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return pa()}parse(){return pa()}format(){return pa()}add(){return pa()}diff(){return pa()}startOf(){return pa()}endOf(){return pa()}}var QB={_date:j2};function JB(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?x7:bo;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(t);if(f){const h=l(o,t,n-f),p=l(o,t,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Nd(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:f}=o[a],{lo:h,hi:p}=JB(o[a],t,s,i);for(let m=h;m<=p;++m){const v=f[m];v.skip||r(v,c,m)}}}function e9(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function c0(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Nd(e,n,t,function(a,l,c){!i&&!jf(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function t9(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:f}=s.getProps(["startAngle","endAngle"],r),{angle:h}=UL(s,{x:t.x,y:t.y});Af(h,c,f)&&i.push({element:s,datasetIndex:a,index:l})}return Nd(e,n,t,o),i}function n9(e,t,n,r,i,o){let s=[];const a=e9(n);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const m=f.inRange(t.x,t.y,i);if(r&&!m)return;const v=f.getCenterPoint(i);if(!(!!o||e.isPointInArea(v))&&!m)return;const x=a(t,v);x<l?(s=[{element:f,datasetIndex:h,index:p}],l=x):x===l&&s.push({element:f,datasetIndex:h,index:p})}return Nd(e,n,t,c),s}function u0(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?t9(e,t,n,i):n9(e,t,n,r,i,o)}function FO(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return Nd(e,n,t,(l,c,f)=>{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var r9={evaluateInteractionItems:Nd,modes:{index(e,t,n,r){const i=ba(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?c0(e,i,o,r,s):u0(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,n,r){const i=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?c0(e,i,o,r,s):u0(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;f<c.length;++f)a.push({element:c[f],datasetIndex:l,index:f})}return a},point(e,t,n,r){const i=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return c0(e,i,o,r,s)},nearest(e,t,n,r){const i=ba(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return u0(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=ba(t,e);return FO(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ba(t,e);return FO(e,i,"y",n.intersect,r)}}};const pD=["left","top","right","bottom"];function bu(e,t){return e.filter(n=>n.pos===t)}function $O(e,t){return e.filter(n=>pD.indexOf(n.pos)===-1&&n.box.axis===t)}function wu(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function i9(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function o9(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!pD.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function s9(e,t){const n=o9(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],f=c&&a.stackWeight/c.weight;a.horizontal?(a.width=f?f*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=f?f*i:l&&t.availableHeight)}return n}function a9(e){const t=i9(e),n=wu(t.filter(c=>c.box.fullSize),!0),r=wu(bu(t,"left"),!0),i=wu(bu(t,"right")),o=wu(bu(t,"top"),!0),s=wu(bu(t,"bottom")),a=$O(t,"x"),l=$O(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:bu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function BO(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function mD(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function l9(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!rt(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&mD(s,o.getPadding());const a=Math.max(0,t.outerWidth-BO(s,e,"left","right")),l=Math.max(0,t.outerHeight-BO(s,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function c9(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function u9(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function zu(e,t,n,r){const i=[];let o,s,a,l,c,f;for(o=0,s=e.length,c=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,u9(a.horizontal,t));const{same:h,other:p}=l9(t,n,a,r);c|=h&&i.length,f=f||p,l.fullSize||i.push(a)}return c&&zu(i,t,n,r)||f}function Wh(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function zO(e,t,n,r){const i=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},f=a.stackWeight/c.weight||1;if(a.horizontal){const h=t.w*f,p=c.size||l.height;Qr(c.start)&&(s=c.start),l.fullSize?Wh(l,i.left,s,n.outerWidth-i.right-i.left,p):Wh(l,t.left+c.placed,s,h,p),c.start=s,c.placed+=h,s=l.bottom}else{const h=t.h*f,p=c.size||l.width;Qr(c.start)&&(o=c.start),l.fullSize?Wh(l,o,i.top,p,n.outerHeight-i.bottom-i.top):Wh(l,o,t.top+c.placed,p,h),c.start=o,c.placed+=h,o=l.right}}t.x=o,t.y=s}var Jn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=er(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=a9(e.boxes),l=a.vertical,c=a.horizontal;vt(e.boxes,y=>{typeof y.beforeLayout=="function"&&y.beforeLayout()});const f=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);mD(p,er(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),v=s9(l.concat(c),h);zu(a.fullSize,m,h,v),zu(l,m,h,v),zu(c,m,h,v)&&zu(l,m,h,v),c9(m),zO(a.leftAndTop,m,h,v),m.x+=m.w,m.y+=m.h,zO(a.rightAndBottom,m,h,v),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},vt(a.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class gD{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class f9 extends gD{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const qp="$chartjs",d9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},UO=e=>e===null||e==="";function h9(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[qp]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",UO(i)){const o=CO(e,"width");o!==void 0&&(e.width=o)}if(UO(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=CO(e,"height");o!==void 0&&(e.height=o)}return e}const vD=mB?{passive:!0}:!1;function p9(e,t,n){e.addEventListener(t,n,vD)}function m9(e,t,n){e.canvas.removeEventListener(t,n,vD)}function g9(e,t){const n=d9[e.type]||e.type,{x:r,y:i}=ba(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ug(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function v9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||ug(a.addedNodes,r),s=s&&!ug(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function y9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||ug(a.removedNodes,r),s=s&&!ug(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ff=new Map;let VO=0;function yD(){const e=window.devicePixelRatio;e!==VO&&(VO=e,Ff.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function _9(e,t){Ff.size||window.addEventListener("resize",yD),Ff.set(e,t)}function b9(e){Ff.delete(e),Ff.size||window.removeEventListener("resize",yD)}function w9(e,t,n){const r=e.canvas,i=r&&A2(r);if(!i)return;const o=YL((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return s.observe(i),_9(e,o),s}function f0(e,t,n){n&&n.disconnect(),t==="resize"&&b9(e)}function x9(e,t,n){const r=e.canvas,i=YL(o=>{e.ctx!==null&&n(g9(o,e))},e);return p9(r,t,i),i}class S9 extends gD{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(h9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[qp])return!1;const r=n[qp].initial;["height","width"].forEach(o=>{const s=r[o];ct(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[qp],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:v9,detach:y9,resize:w9}[n]||x9;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:f0,detach:f0,resize:f0}[n]||m9)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return pB(t,n,r,i)}isAttached(t){const n=A2(t);return!!(n&&n.isConnected)}}function C9(e){return!oD()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?f9:S9}var zp;let jo=(zp=class{constructor(){xe(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return yc(this.x)&&yc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},xe(zp,"defaults",{}),xe(zp,"defaultRoutes"),zp);function E9(e,t){const n=e.options.ticks,r=T9(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?P9(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return k9(t,c,o,s/i),c;const f=O9(o,t,i);if(s>0){let h,p;const m=s>1?Math.round((l-a)/(s-1)):null;for(Yh(t,c,f,ct(m)?0:a-m,a),h=0,p=s-1;h<p;h++)Yh(t,c,f,o[h],o[h+1]);return Yh(t,c,f,l,ct(m)?t.length:l+m),c}return Yh(t,c,f),c}function T9(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function O9(e,t,n){const r=M9(e),i=t.length/n;if(!r)return Math.max(i,1);const o=y7(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function P9(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function k9(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function Yh(e,t,n,r,i){const o=Ke(r,0),s=Math.min(Ke(i,e.length),e.length);let a=0,l,c,f;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),f=o;f<0;)a++,f=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===f&&(t.push(e[c]),a++,f=Math.round(o+a*n))}function M9(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const R9=e=>e==="left"?"right":e==="right"?"left":e,HO=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function WO(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function N9(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-a||l>s+a)))return l}function L9(e,t){vt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function xu(e){return e.drawTicks?e.tickLength:0}function YO(e,t){if(!e.display)return 0;const n=gn(e.font,t),r=er(e.padding);return(kt(e.text)?e.text.length:1)*n.lineHeight+r.height}function D9(e,t){return qs(e,{scale:t,type:"scale"})}function A9(e,t,n){return qs(e,{tick:n,index:t,type:"tick"})}function j9(e,t,n){let r=M2(e);return(n&&t!=="right"||!n&&t==="right")&&(r=R9(r)),r}function I9(e,t,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:f}=l;let h=0,p,m,v;const y=s-i,x=a-o;if(e.isHorizontal()){if(m=Kn(r,o,a),rt(n)){const _=Object.keys(n)[0],w=n[_];v=f[_].getPixelForValue(w)+y-t}else n==="center"?v=(c.bottom+c.top)/2+y-t:v=HO(e,n,t);p=a-o}else{if(rt(n)){const _=Object.keys(n)[0],w=n[_];m=f[_].getPixelForValue(w)-x+t}else n==="center"?m=(c.left+c.right)/2-x+t:m=HO(e,n,t);v=Kn(r,s,i),h=n==="left"?-Gt:Gt}return{titleX:m,titleY:v,maxWidth:p,rotation:h}}class al extends jo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Tr(t,Number.POSITIVE_INFINITY),n=Tr(n,Number.NEGATIVE_INFINITY),r=Tr(r,Number.POSITIVE_INFINITY),i=Tr(i,Number.NEGATIVE_INFINITY),{min:Tr(t,r),max:Tr(n,i),minDefined:qt(t),maxDefined:qt(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Tr(n,Tr(r,n)),max:Tr(r,Tr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ct(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Y7(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?WO(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=E9(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ct(this.options.afterUpdate,[this])}beforeSetDimensions(){Ct(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ct(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ct(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ct(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Ct(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Ct(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ct(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=En(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-xu(t.grid)-n.padding-YO(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=P2(Math.min(Math.asin(En((f.highest.height+6)/a,-1,1)),Math.asin(En(l/c,-1,1))-Math.asin(En(p/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ct(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ct(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=YO(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=xu(o)+l):(t.height=this.maxHeight,t.width=xu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,v=yi(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(a){const _=r.mirror?0:x*h.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:y*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(c,f,x,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=i*t.width,m=r*n.height):(p=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=n.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ct(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ct(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=WO(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,f,h,p,m,v,y,x,_,w,S;for(c=0;c<n;++c){if(p=t[c].label,m=this._resolveTickFontOptions(c),r.font=v=m.string,y=i[v]=i[v]||{data:{},gc:[]},x=m.lineHeight,_=w=0,!ct(p)&&!kt(p))_=lg(r,y.data,y.gc,_,p),w=x;else if(kt(p))for(f=0,h=p.length;f<h;++f)S=p[f],!ct(S)&&!kt(S)&&(_=lg(r,y.data,y.gc,_,S),w+=x);o.push(_),s.push(w),a=Math.max(_,a),l=Math.max(w,l)}L9(i,n);const T=o.indexOf(a),P=s.indexOf(l),k=N=>({width:o[N]||0,height:s[N]||0});return{first:k(0),last:k(n-1),widest:k(T),highest:k(P),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return w7(this._alignToPixels?ha(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=A9(this.getContext(),t,r))}return this.$context||(this.$context=D9(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=yi(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=xu(o),m=[],v=a.setContext(this.getContext()),y=v.display?v.width:0,x=y/2,_=function(ie){return ha(r,ie,y)};let w,S,T,P,k,N,D,z,A,W,Y,J;if(s==="top")w=_(this.bottom),N=this.bottom-p,z=w-x,W=_(t.top)+x,J=t.bottom;else if(s==="bottom")w=_(this.top),W=t.top,J=_(t.bottom)-x,N=w+x,z=this.top+p;else if(s==="left")w=_(this.right),k=this.right-p,D=w-x,A=_(t.left)+x,Y=t.right;else if(s==="right")w=_(this.left),A=t.left,Y=_(t.right)-x,k=w+x,D=this.left+p;else if(n==="x"){if(s==="center")w=_((t.top+t.bottom)/2+.5);else if(rt(s)){const ie=Object.keys(s)[0],oe=s[ie];w=_(this.chart.scales[ie].getPixelForValue(oe))}W=t.top,J=t.bottom,N=w+x,z=N+p}else if(n==="y"){if(s==="center")w=_((t.left+t.right)/2);else if(rt(s)){const ie=Object.keys(s)[0],oe=s[ie];w=_(this.chart.scales[ie].getPixelForValue(oe))}k=w-x,D=k-p,A=t.left,Y=t.right}const Z=Ke(i.ticks.maxTicksLimit,h),ee=Math.max(1,Math.ceil(h/Z));for(S=0;S<h;S+=ee){const ie=this.getContext(S),oe=o.setContext(ie),G=a.setContext(ie),F=oe.lineWidth,j=oe.color,B=G.dash||[],ne=G.dashOffset,H=oe.tickWidth,q=oe.tickColor,te=oe.tickBorderDash||[],se=oe.tickBorderDashOffset;T=N9(this,S,l),T!==void 0&&(P=ha(r,T,F),c?k=D=A=Y=P:N=z=W=J=P,m.push({tx1:k,ty1:N,tx2:D,ty2:z,x1:A,y1:W,x2:Y,y2:J,width:F,color:j,borderDash:B,borderDashOffset:ne,tickWidth:H,tickColor:q,tickBorderDash:te,tickBorderDashOffset:se}))}return this._ticksLength=h,this._borderValue=w,m}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=o,p=xu(r.grid),m=p+f,v=h?-f:m,y=-yi(this.labelRotation),x=[];let _,w,S,T,P,k,N,D,z,A,W,Y,J="middle";if(i==="top")k=this.bottom-v,N=this._getXAxisLabelAlignment();else if(i==="bottom")k=this.top+v,N=this._getXAxisLabelAlignment();else if(i==="left"){const ee=this._getYAxisLabelAlignment(p);N=ee.textAlign,P=ee.x}else if(i==="right"){const ee=this._getYAxisLabelAlignment(p);N=ee.textAlign,P=ee.x}else if(n==="x"){if(i==="center")k=(t.top+t.bottom)/2+m;else if(rt(i)){const ee=Object.keys(i)[0],ie=i[ee];k=this.chart.scales[ee].getPixelForValue(ie)+m}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")P=(t.left+t.right)/2-m;else if(rt(i)){const ee=Object.keys(i)[0],ie=i[ee];P=this.chart.scales[ee].getPixelForValue(ie)}N=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?J="top":l==="end"&&(J="bottom"));const Z=this._getLabelSizes();for(_=0,w=a.length;_<w;++_){S=a[_],T=S.label;const ee=o.setContext(this.getContext(_));D=this.getPixelForTick(_)+o.labelOffset,z=this._resolveTickFontOptions(_),A=z.lineHeight,W=kt(T)?T.length:1;const ie=W/2,oe=ee.color,G=ee.textStrokeColor,F=ee.textStrokeWidth;let j=N;s?(P=D,N==="inner"&&(_===w-1?j=this.options.reverse?"left":"right":_===0?j=this.options.reverse?"right":"left":j="center"),i==="top"?c==="near"||y!==0?Y=-W*A+A/2:c==="center"?Y=-Z.highest.height/2-ie*A+A:Y=-Z.highest.height+A/2:c==="near"||y!==0?Y=A/2:c==="center"?Y=Z.highest.height/2-ie*A:Y=Z.highest.height-W*A,h&&(Y*=-1),y!==0&&!ee.showLabelBackdrop&&(P+=A/2*Math.sin(y))):(k=D,Y=(1-W)*A/2);let B;if(ee.showLabelBackdrop){const ne=er(ee.backdropPadding),H=Z.heights[_],q=Z.widths[_];let te=Y-ne.top,se=0-ne.left;switch(J){case"middle":te-=H/2;break;case"bottom":te-=H;break}switch(N){case"center":se-=q/2;break;case"right":se-=q;break}B={left:se,top:te,width:q+ne.width,height:H+ne.height,color:ee.backdropColor}}x.push({label:T,font:z,textOffset:Y,options:{rotation:y,color:oe,strokeColor:G,strokeWidth:F,textAlign:j,textBaseline:J,translation:[P,k],backdrop:B}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-yi(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width;let c,f;return n==="left"?i?(f=this.right+o,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f+=l)):(f=this.right-a,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f=this.left)):n==="right"?i?(f=this.left+o,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f-=l)):(f=this.left+a,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f=this.right)):c="right",{textAlign:c,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,f,h,p;this.isHorizontal()?(c=ha(t,this.left,s)-s/2,f=ha(t,this.right,a)+a/2,h=p=l):(h=ha(t,this.top,s)-s/2,p=ha(t,this.bottom,a)+a/2,c=f=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,h),n.lineTo(f,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&sy(r,i);const o=this.getLabelItems(t);for(const s of o){const a=s.options,l=s.font,c=s.label,f=s.textOffset;Wa(r,c,0,f,l,a)}i&&ay(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=gn(r.font),s=er(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||rt(n)?(l+=s.bottom,kt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=I9(this,l,n,a);Wa(t,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:j9(a,n,i),textBaseline:"middle",translation:[c,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=Ke(t.grid&&t.grid.z,-1),i=Ke(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==al.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return gn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class qh{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;B9(n)&&(r=this.register(n));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,F9(t,s,r),this.override&&tn.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in tn[i]&&(delete tn[i][r],this.override&&delete Ha[r])}}function F9(e,t,n){const r=Df(Object.create(null),[n?tn.get(n):{},tn.get(t),e.defaults]);tn.set(t,r),e.defaultRoutes&&$9(t,e.defaultRoutes),e.descriptors&&tn.describe(t,e.descriptors)}function $9(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");tn.route(o,i,l,a)})}function B9(e){return"id"in e&&"defaults"in e}class z9{constructor(){this.controllers=new qh(wi,"datasets",!0),this.elements=new qh(jo,"elements"),this.plugins=new qh(Object,"plugins"),this.scales=new qh(al,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):vt(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=O2(t);Ct(r["before"+i],[],r),n[t](r),Ct(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Bi=new z9;class U9{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const o of t){const s=o.plugin,a=s[r],l=[n,i,o.options];if(Ct(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ct(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=Ke(r.options&&r.options.plugins,{}),o=V9(r);return i===!1&&!n?[]:W9(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function V9(e){const t={},n=[],r=Object.keys(Bi.plugins.items);for(let o=0;o<r.length;o++)n.push(Bi.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function H9(e,t){return!t&&e===!1?null:e===!0?{}:e}function W9(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=H9(r[l],i);c!==null&&o.push({plugin:a,options:Y9(e.config,{plugin:a,local:n[l]},c,s)})}return o}function Y9(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function X1(e,t){const n=tn.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function q9(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function G9(e,t){return e===t?"_index_":"_value_"}function Z9(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function fg(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||Z9(t.position)||e.length>1&&fg(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function K9(e,t){const n=Ha[e.type]||{scales:{}},r=t.scales||{},i=X1(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!rt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=fg(s,a),c=G9(l,i),f=n.scales||{};o[s]=tf(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||X1(a,t),f=(Ha[a]||{}).scales||{};Object.keys(f).forEach(h=>{const p=q9(h,l),m=s[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),tf(o[m],[{axis:p},r[m],f[h]])})}),Object.keys(o).forEach(s=>{const a=o[s];tf(a,[tn.scales[a.type],tn.scale])}),o}function _D(e){const t=e.options||(e.options={});t.plugins=Ke(t.plugins,{}),t.scales=K9(e,t)}function bD(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function X9(e){return e=e||{},e.data=bD(e.data),_D(e),e}const qO=new Map,wD=new Set;function Gh(e,t){let n=qO.get(e);return n||(n=t(),qO.set(e,n),wD.add(n)),n}const Su=(e,t,n)=>{const r=As(t,n);r!==void 0&&e.add(r)};class Q9{constructor(t){this._config=X9(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=bD(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),_D(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Gh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Gh(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Gh(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Gh(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>Su(l,t,h))),f.forEach(h=>Su(l,i,h)),f.forEach(h=>Su(l,Ha[o]||{},h)),f.forEach(h=>Su(l,tn,h)),f.forEach(h=>Su(l,G1,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),wD.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ha[n]||{},tn.datasets[n]||{},{type:n},tn,G1]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=GO(this._resolverCache,t,i);let l=s;if(ez(s,n)){o.$shared=!1,r=js(r)?r():r;const c=this.createResolver(t,r,a);l=_c(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=GO(this._resolverCache,t,r);return rt(n)?_c(o,n,void 0,i):o}}function GO(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:N2(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const J9=e=>rt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||js(e[n]),!1);function ez(e,t){const{isScriptable:n,isIndexable:r}=JL(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(js(a)||J9(a))||s&&kt(a))return!0}return!1}var tz="4.1.1";const nz=["top","bottom","left","right","chartArea"];function ZO(e,t){return e==="top"||e==="bottom"||nz.indexOf(e)===-1&&t==="x"}function KO(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function XO(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ct(n&&n.onComplete,[e],t)}function rz(e){const t=e.chart,n=t.options.animation;Ct(n&&n.onProgress,[e],t)}function xD(e){return oD()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Gp={},QO=e=>{const t=xD(e);return Object.values(Gp).filter(n=>n.canvas===t).pop()};function iz(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function oz(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function sz(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var Qo;let cy=(Qo=class{static register(...t){Bi.add(...t),JO()}static unregister(...t){Bi.remove(...t),JO()}constructor(t,n){const r=this.config=new Q9(n),i=xD(t),o=QO(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||C9(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=c7(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new U9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=E7(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],Gp[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}uo.listen(this,"complete",XO),uo.listen(this,"progress",rz),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ct(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Bi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():SO(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bO(this.canvas,this.ctx),this}stop(){return uo.stop(this),this}resize(t,n){uo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,SO(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Ct(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};vt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=fg(s,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),vt(o,s=>{const a=s.options,l=a.id,c=fg(l,a),f=Ke(a.type,s.dtype);(a.position===void 0||ZO(a.position,c)!==ZO(s.dposition))&&(a.position=s.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=Bi.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),vt(i,(s,a)=>{s||delete r[a]}),vt(r,s=>{Jn.configure(this,s,s.options),Jn.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(KO("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||X1(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Bi.getController(a),{datasetElementType:c,dataElementType:f}=tn.datasets[a];Object.assign(l,{dataElementType:Bi.getElement(f),datasetElementType:c&&Bi.getElement(c)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){vt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,f=this.data.datasets.length;c<f;c++){const{controller:h}=this.getDatasetMeta(c),p=!i&&o.indexOf(h)===-1;h.buildOrUpdateElements(p),s=Math.max(+h.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||vt(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(KO("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){vt(this.scales,t=>{Jn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!fO(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;iz(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!fO(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jn.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],vt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,js(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(uo.has(this)?this.attached&&!uo.running(this)&&uo.start(this):(this.draw(),XO({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=sz(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&sy(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&ay(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return jf(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=r9.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=qs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);Qr(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),uo.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),bO(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Gp[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};vt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){vt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},vt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:s})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!og(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=m7(t),c=oz(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ct(o.onHover,[t,a,this],this),l&&Ct(o.onClick,[t,a,this],this));const f=!og(a,i);return(f||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},xe(Qo,"defaults",tn),xe(Qo,"instances",Gp),xe(Qo,"overrides",Ha),xe(Qo,"registry",Bi),xe(Qo,"version",tz),xe(Qo,"getChart",QO),Qo);function JO(){return vt(cy.instances,e=>e._plugins.invalidate())}function az(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+Gt,r-Gt),e.closePath(),e.clip()}function lz(e){return R2(e,["outerStart","outerEnd","innerStart","innerEnd"])}function cz(e,t,n,r){const i=lz(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return En(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:En(i.innerStart,0,s),innerEnd:En(i.innerEnd,0,s)}}function Cl(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function dg(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let m=0;const v=i-l;if(r){const ee=f>0?f-r:0,ie=h>0?h-r:0,oe=(ee+ie)/2,G=oe!==0?v*oe/(oe+r):v;m=(v-G)/2}const y=Math.max(.001,v*h-n/It)/h,x=(v-y)/2,_=l+x+m,w=i-x-m,{outerStart:S,outerEnd:T,innerStart:P,innerEnd:k}=cz(t,p,h,w-_),N=h-S,D=h-T,z=_+S/N,A=w-T/D,W=p+P,Y=p+k,J=_+P/W,Z=w-k/Y;if(e.beginPath(),o){const ee=(z+A)/2;if(e.arc(s,a,h,z,ee),e.arc(s,a,h,ee,A),T>0){const F=Cl(D,A,s,a);e.arc(F.x,F.y,T,A,w+Gt)}const ie=Cl(Y,w,s,a);if(e.lineTo(ie.x,ie.y),k>0){const F=Cl(Y,Z,s,a);e.arc(F.x,F.y,k,w+Gt,Z+Math.PI)}const oe=(w-k/p+(_+P/p))/2;if(e.arc(s,a,p,w-k/p,oe,!0),e.arc(s,a,p,oe,_+P/p,!0),P>0){const F=Cl(W,J,s,a);e.arc(F.x,F.y,P,J+Math.PI,_-Gt)}const G=Cl(N,_,s,a);if(e.lineTo(G.x,G.y),S>0){const F=Cl(N,z,s,a);e.arc(F.x,F.y,S,_-Gt,z)}}else{e.moveTo(s,a);const ee=Math.cos(z)*h+s,ie=Math.sin(z)*h+a;e.lineTo(ee,ie);const oe=Math.cos(A)*h+s,G=Math.sin(A)*h+a;e.lineTo(oe,G)}e.closePath()}function uz(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){dg(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+(a%Mt||Mt))}return dg(e,t,n,r,l,i),e.fill(),l}function fz(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:f}=l,h=l.borderAlign==="inner";if(!c)return;h?(e.lineWidth=c*2,e.lineJoin=f||"round"):(e.lineWidth=c,e.lineJoin=f||"bevel");let p=t.endAngle;if(o){dg(e,t,n,r,p,i);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(p=s+(a%Mt||Mt))}h&&az(e,t,p),o||(dg(e,t,n,r,p,i),e.stroke())}class Zp extends jo{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=UL(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=this.options.spacing/2,v=Ke(h,l-a)>=Mt||Af(o,a,l),y=_o(s,c+p,f+p);return v&&y}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(s+a+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Mt?Math.floor(r/Mt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(It,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,uz(t,this,c,o,s),fz(t,this,c,o,s),t.restore()}}xe(Zp,"id","arc"),xe(Zp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),xe(Zp,"defaultRoutes",{backgroundColor:"backgroundColor"});function SD(e,t,n=t){e.lineCap=Ke(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ke(n.borderDash,t.borderDash)),e.lineDashOffset=Ke(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ke(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ke(n.borderWidth,t.borderWidth),e.strokeStyle=Ke(n.borderColor,t.borderColor)}function dz(e,t,n){e.lineTo(n.x,n.y)}function hz(e){return e.stepped?I7:e.tension||e.cubicInterpolationMode==="monotone"?F7:dz}function CD(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),f=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:c<l&&!f?r+c-l:c-l}}function pz(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:c}=CD(i,n,r),f=hz(o);let{move:h=!0,reverse:p}=r||{},m,v,y;for(m=0;m<=c;++m)v=i[(a+(p?c-m:m))%s],!v.skip&&(h?(e.moveTo(v.x,v.y),h=!1):f(e,y,v,p,o.stepped),y=v);return l&&(v=i[(a+(p?c:0))%s],f(e,y,v,p,o.stepped)),!!l}function mz(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=CD(i,n,r),{move:l=!0,reverse:c}=r||{};let f=0,h=0,p,m,v,y,x,_;const w=T=>(s+(c?a-T:T))%o,S=()=>{y!==x&&(e.lineTo(f,x),e.lineTo(f,y),e.lineTo(f,_))};for(l&&(m=i[w(0)],e.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[w(p)],m.skip)continue;const T=m.x,P=m.y,k=T|0;k===v?(P<y?y=P:P>x&&(x=P),f=(h*f+T)/++h):(S(),e.lineTo(T,P),v=k,h=0,y=x=P),_=P}S()}function Q1(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?mz:pz}function gz(e){return e.stepped?gB:e.tension||e.cubicInterpolationMode==="monotone"?vB:wa}function vz(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),SD(e,t.options),e.stroke(i)}function yz(e,t,n,r){const{segments:i,options:o}=t,s=Q1(t);for(const a of i)SD(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const _z=typeof Path2D=="function";function bz(e,t,n,r){_z&&!t.options.segment?vz(e,t,n,r):yz(e,t,n,r)}class fs extends jo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;lB(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=SB(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=uD(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=gz(r);let c,f;for(c=0,f=s.length;c<f;++c){const{start:h,end:p}=s[c],m=o[h],v=o[p];if(m===v){a.push(m);continue}const y=Math.abs((i-m[n])/(v[n]-m[n])),x=l(m,v,y,r.stepped);x[n]=t[n],a.push(x)}return a.length===1?a[0]:a}pathSegment(t,n,r){return Q1(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=Q1(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),bz(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}xe(fs,"id","line"),xe(fs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),xe(fs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),xe(fs,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function eP(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class Kp extends jo{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return eP(this,t,"x",n)}inYRange(t,n){return eP(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!jf(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Z1(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}xe(Kp,"id","point"),xe(Kp,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),xe(Kp,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function ED(e,t){const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,c,f,h;return e.horizontal?(h=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-h,f=r+h):(h=o/2,a=n-h,l=n+h,c=Math.min(r,i),f=Math.max(r,i)),{left:a,top:c,right:l,bottom:f}}function ds(e,t,n,r){return e?0:En(t,n,r)}function wz(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=QL(r);return{t:ds(i.top,o.top,0,n),r:ds(i.right,o.right,0,t),b:ds(i.bottom,o.bottom,0,n),l:ds(i.left,o.left,0,t)}}function xz(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=Aa(i),s=Math.min(t,n),a=e.borderSkipped,l=r||rt(i);return{topLeft:ds(!l||a.top||a.left,o.topLeft,0,s),topRight:ds(!l||a.top||a.right,o.topRight,0,s),bottomLeft:ds(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:ds(!l||a.bottom||a.right,o.bottomRight,0,s)}}function Sz(e){const t=ED(e),n=t.right-t.left,r=t.bottom-t.top,i=wz(e,n/2,r/2),o=xz(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function d0(e,t,n,r){const i=t===null,o=n===null,a=e&&!(i&&o)&&ED(e,r);return a&&(i||_o(t,a.left,a.right))&&(o||_o(n,a.top,a.bottom))}function Cz(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Ez(e,t){e.rect(t.x,t.y,t.w,t.h)}function h0(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}class Xp extends jo{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=Sz(this),a=Cz(s.radius)?If:Ez;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,h0(s,n,o)),t.clip(),a(t,h0(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,h0(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return d0(this,t,n,r)}inXRange(t,n){return d0(this,t,null,n)}inYRange(t,n){return d0(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}xe(Xp,"id","bar"),xe(Xp,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),xe(Xp,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Tz=Object.freeze({__proto__:null,ArcElement:Zp,LineElement:fs,PointElement:Kp,BarElement:Xp});const J1=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],tP=J1.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function TD(e){return J1[e%J1.length]}function OD(e){return tP[e%tP.length]}function Oz(e,t){return e.borderColor=TD(t),e.backgroundColor=OD(t),++t}function Pz(e,t){return e.backgroundColor=e.data.map(()=>TD(t++)),t}function kz(e,t){return e.backgroundColor=e.data.map(()=>OD(t++)),t}function Mz(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof us?t=Pz(n,t):i instanceof lf?t=kz(n,t):i&&(t=Oz(n,t))}}function nP(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Rz={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{options:{elements:r},data:{datasets:i}}=e.config;if(!n.forceOverride&&(nP(i)||r&&nP(r)))return;const o=Mz(e);i.forEach(o)}};function Nz(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,m,v,y;for(s[l++]=e[f],h=0;h<o-2;h++){let x=0,_=0,w;const S=Math.floor((h+1)*a)+1+t,T=Math.min(Math.floor((h+2)*a)+1,n)+t,P=T-S;for(w=S;w<T;w++)x+=e[w].x,_+=e[w].y;x/=P,_/=P;const k=Math.floor(h*a)+1+t,N=Math.min(Math.floor((h+1)*a)+1,n)+t,{x:D,y:z}=e[f];for(m=v=-1,w=k;w<N;w++)v=.5*Math.abs((D-x)*(e[w].y-z)-(D-e[w].x)*(_-z)),v>m&&(m=v,p=e[w],y=w);s[l++]=p,f=y}return s[l++]=e[c],s}function Lz(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,m,v,y;const x=[],_=t+n-1,w=e[t].x,T=e[_].x-w;for(s=t;s<t+n;++s){a=e[s],l=(a.x-w)/T*r,c=a.y;const P=l|0;if(P===f)c<v?(v=c,h=s):c>y&&(y=c,p=s),i=(o*i+a.x)/++o;else{const k=s-1;if(!ct(h)&&!ct(p)){const N=Math.min(h,p),D=Math.max(h,p);N!==m&&N!==k&&x.push({...e[N],x:i}),D!==m&&D!==k&&x.push({...e[D],x:i})}s>0&&k!==m&&x.push(e[k]),x.push(a),f=P,o=0,v=y=c,h=p=m=s}}return x}function PD(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function rP(e){e.data.datasets.forEach(t=>{PD(t)})}function Dz(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=En(bo(t,o.axis,s).lo,0,n-1)),c?i=En(bo(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Az={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){rP(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(Bu([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=e.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||e.options.parsing)return;let{start:h,count:p}=Dz(l,c);const m=n.threshold||4*r;if(p<=m){PD(i);return}ct(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let v;switch(n.algorithm){case"lttb":v=Nz(c,h,p,r,n);break;case"min-max":v=Lz(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(e){rP(e)}};function jz(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=I2(l,c,i);const f=eb(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:f,start:i[l],end:i[c]});continue}const h=uD(t,f);for(const p of h){const m=eb(n,o[p.start],o[p.end],p.loop),v=cD(a,i,m);for(const y of v)s.push({source:y,target:p,start:{[n]:iP(f,m,"start",Math.max)},end:{[n]:iP(f,m,"end",Math.min)}})}}return s}function eb(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Pr(i),o=Pr(o)),{property:e,start:i,end:o}}function Iz(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=I2(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function I2(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function iP(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function kD(e,t){let n=[],r=!1;return kt(e)?(r=!0,n=e):n=Iz(e,t),n.length?new fs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function oP(e){return e&&e.fill!==!1}function Fz(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!qt(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function $z(e,t,n){const r=Vz(e);if(rt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return qt(i)&&Math.floor(i)===i?Bz(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Bz(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function zz(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:rt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Uz(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:rt(e)?r=e.value:r=t.getBaseValue(),r}function Vz(e){const t=e.options,n=t.fill;let r=Ke(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Hz(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=Wz(t,n);a.push(kD({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const c=o[l];for(let f=c.start;f<=c.end;f++)Yz(i,s[f],a)}return new fs({points:i,options:{}})}function Wz(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function Yz(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=qz(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function qz(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const f=o[c],h=s[f.start][n],p=s[f.end][n];if(_o(i,h,p)){a=i===h,l=i===p;break}}return{first:a,last:l,point:r}}class MD{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:s}=this;return n=n||{start:0,end:Mt},t.arc(i,o,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function Gz(e){const{chart:t,fill:n,line:r}=e;if(qt(n))return Zz(t,n);if(n==="stack")return Hz(e);if(n==="shape")return!0;const i=Kz(e);return i instanceof MD?i:kD(i,r)}function Zz(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function Kz(e){return(e.scale||{}).getPointPositionForValue?Qz(e):Xz(e)}function Xz(e){const{scale:t={},fill:n}=e,r=zz(n,t);if(qt(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function Qz(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=Uz(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new MD({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function p0(e,t,n){const r=Gz(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,c=a.backgroundColor,{above:f=c,below:h=c}=l||{};r&&i.points.length&&(sy(e,n),Jz(e,{line:i,target:r,above:f,below:h,area:n,scale:o,axis:s}),ay(e))}function Jz(e,t){const{line:n,target:r,above:i,below:o,area:s,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(sP(e,r,s.top),aP(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),sP(e,r,s.bottom)),aP(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function sP(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:c}=a,f=i[l],h=i[I2(l,c,i)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(f.x,n),e.lineTo(f.x,f.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(h.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function aP(e,t){const{line:n,target:r,property:i,color:o,scale:s}=t,a=jz(n,r,i);for(const{source:l,target:c,start:f,end:h}of a){const{style:{backgroundColor:p=o}={}}=l,m=r!==!0;e.save(),e.fillStyle=p,eU(e,s,m&&eb(i,f,h)),e.beginPath();const v=!!n.pathSegment(e,l);let y;if(m){v?e.closePath():lP(e,r,h,i);const x=!!r.pathSegment(e,c,{move:v,reverse:!0});y=v&&x,y||lP(e,r,f,i)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function eU(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function lP(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var tU={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof fs&&(l={visible:e.isDatasetVisible(s),index:s,fill:$z(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=Fz(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&p0(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;oP(o)&&p0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!oP(r)||n.drawTime!=="beforeDatasetDraw"||p0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cP=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},nU=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class uP extends jo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ct(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=gn(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=cP(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+a;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((v,y)=>{const x=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+x+2*a>s)&&(h+=f,c[c.length-(y>0?0:1)]=0,m+=f,p++),l[y]={left:0,top:m,row:p,width:x,height:i},c[c.length-1]+=x+a}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=a,p=0,m=0,v=0,y=0;return this.legendItems.forEach((x,_)=>{const{itemWidth:w,itemHeight:S}=rU(r,n,o,x,i);_>0&&m+S+2*a>f&&(h+=p+a,c.push({width:p,height:m}),v+=p+a,y++,p=m=0),l[_]={left:v,top:m,col:y,width:w,height:S},p=Math.max(p,w),m+=S+a}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=nc(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Kn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Kn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Kn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Kn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;sy(t,this),this._draw(),ay(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=tn.color,l=nc(t.rtl,this.left,this.width),c=gn(s.font),{padding:f}=s,h=c.size,p=h/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=cP(s,h),_=function(k,N,D){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const z=Ke(D.lineWidth,1);if(i.fillStyle=Ke(D.fillStyle,a),i.lineCap=Ke(D.lineCap,"butt"),i.lineDashOffset=Ke(D.lineDashOffset,0),i.lineJoin=Ke(D.lineJoin,"miter"),i.lineWidth=z,i.strokeStyle=Ke(D.strokeStyle,a),i.setLineDash(Ke(D.lineDash,[])),s.usePointStyle){const A={radius:y*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:z},W=l.xPlus(k,v/2),Y=N+p;XL(i,A,W,Y,s.pointStyleWidth&&v)}else{const A=N+Math.max((h-y)/2,0),W=l.leftForLtr(k,v),Y=Aa(D.borderRadius);i.beginPath(),Object.values(Y).some(J=>J!==0)?If(i,{x:W,y:A,w:v,h:y,radius:Y}):i.rect(W,A,v,y),i.fill(),z!==0&&i.stroke()}i.restore()},w=function(k,N,D){Wa(i,D.text,k,N+x/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},S=this.isHorizontal(),T=this._computeTitleHeight();S?m={x:Kn(o,this.left+f,this.right-r[0]),y:this.top+f+T,line:0}:m={x:this.left+f,y:Kn(o,this.top+T+f,this.bottom-n[0].height),line:0},sD(this.ctx,t.textDirection);const P=x+f;this.legendItems.forEach((k,N)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const D=i.measureText(k.text).width,z=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),A=v+p+D;let W=m.x,Y=m.y;l.setWidth(this.width),S?N>0&&W+A+f>this.right&&(Y=m.y+=P,m.line++,W=m.x=Kn(o,this.left+f,this.right-r[m.line])):N>0&&Y+P>this.bottom&&(W=m.x=W+n[m.line].width+f,m.line++,Y=m.y=Kn(o,this.top+T+f,this.bottom-n[m.line].height));const J=l.x(W);if(_(J,Y,k),W=T7(z,W+v+p,S?W+A:this.right,t.rtl),w(l.x(W),Y,k),S)m.x+=A+f;else if(typeof k.text!="string"){const Z=c.lineHeight;m.y+=RD(k,Z)}else m.y+=P}),aD(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=gn(n.font),i=er(n.padding);if(!n.display)return;const o=nc(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Kn(t.align,h,this.right-p);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);f=c+Kn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const m=Kn(a,h,h+p);s.textAlign=o.textAlign(M2(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Wa(s,n.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,n=gn(t.font),r=er(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(_o(t,this.left,this.right)&&_o(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],_o(t,i.left,i.left+i.width)&&_o(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!sU(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=nU(i,r);i&&!o&&Ct(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Ct(n.onHover,[t,r,this],this)}else r&&Ct(n.onClick,[t,r,this],this)}}function rU(e,t,n,r,i){const o=iU(r,e,t,n),s=oU(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function iU(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function oU(e,t,n){let r=e;return typeof t.text!="string"&&(r=RD(t,n)),r}function RD(e,t){const n=e.text?e.text.length+.5:0;return t*n}function sU(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var aU={id:"legend",_element:uP,start(e,t,n){const r=e.legend=new uP({ctx:e.ctx,options:n,chart:e});Jn.configure(e,r,n),Jn.addBox(e,r)},stop(e){Jn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Jn.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),f=er(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class F2 extends jo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=kt(r.text)?r.text.length:1;this._padding=er(r.padding);const o=i*gn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,f,h;return this.isHorizontal()?(f=Kn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Kn(a,i,n),l=It*-.5):(f=o-t,h=Kn(a,n,i),l=It*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=gn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Wa(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:M2(n.align),textBaseline:"middle",translation:[s,a]})}}function lU(e,t){const n=new F2({ctx:e.ctx,options:t,chart:e});Jn.configure(e,n,t),Jn.addBox(e,n),e.titleBlock=n}var cU={id:"title",_element:F2,start(e,t,n){lU(e,n)},stop(e){const t=e.titleBlock;Jn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Jn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Zh=new WeakMap;var uU={id:"subtitle",start(e,t,n){const r=new F2({ctx:e.ctx,options:n,chart:e});Jn.configure(e,r,n),Jn.addBox(e,r),Zh.set(e,r)},stop(e){Jn.removeBox(e,Zh.get(e)),Zh.delete(e)},beforeUpdate(e,t,n){const r=Zh.get(e);Jn.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Uu={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=q1(t,c);f<i&&(i=f,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function $i(e,t){return t&&(kt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function fo(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function fU(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function fP(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=gn(t.bodyFont),c=gn(t.titleFont),f=gn(t.footerFont),h=o.length,p=i.length,m=r.length,v=er(t.padding);let y=v.height,x=0,_=r.reduce((T,P)=>T+P.before.length+P.lines.length+P.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,h&&(y+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),_){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=m*T+(_-m)*l.lineHeight+(_-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let w=0;const S=function(T){x=Math.max(x,n.measureText(T).width+w)};return n.save(),n.font=c.string,vt(e.title,S),n.font=l.string,vt(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?s+2+t.boxPadding:0,vt(r,T=>{vt(T.before,S),vt(T.lines,S),vt(T.after,S)}),w=0,n.font=f.string,vt(e.footer,S),n.restore(),x+=v.width,{width:x,height:y}}function dU(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function hU(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function pU(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),hU(c,e,t,n)&&(c="center"),c}function dP(e,t,n){const r=n.yAlign||t.yAlign||dU(e,n);return{xAlign:n.xAlign||t.xAlign||pU(e,t,n,r),yAlign:r}}function mU(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function gU(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function hP(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Aa(s);let v=mU(t,a);const y=gU(t,l,c);return l==="center"?a==="left"?v+=c:a==="right"&&(v-=c):a==="left"?v-=Math.max(f,p)+i:a==="right"&&(v+=Math.max(h,m)+i),{x:En(v,0,r.width-t.width),y:En(y,0,r.height-t.height)}}function Kh(e,t,n){const r=er(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function pP(e){return $i([],fo(e))}function vU(e,t,n){return qs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function mP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const ND={beforeTitle:co,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:co,beforeBody:co,beforeLabel:co,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ct(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:co,afterBody:co,beforeFooter:co,footer:co,afterFooter:co};function dr(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?ND[t].call(n,r):i}var H1;let gP=(H1=class extends jo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new fD(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=vU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=dr(r,"beforeTitle",this,t),o=dr(r,"title",this,t),s=dr(r,"afterTitle",this,t);let a=[];return a=$i(a,fo(i)),a=$i(a,fo(o)),a=$i(a,fo(s)),a}getBeforeBody(t,n){return pP(dr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return vt(t,o=>{const s={before:[],lines:[],after:[]},a=mP(r,o);$i(s.before,fo(dr(a,"beforeLabel",this,o))),$i(s.lines,dr(a,"label",this,o)),$i(s.after,fo(dr(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return pP(dr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=dr(r,"beforeFooter",this,t),o=dr(r,"footer",this,t),s=dr(r,"afterFooter",this,t);let a=[];return a=$i(a,fo(i)),a=$i(a,fo(o)),a=$i(a,fo(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(fU(this.chart,n[l]));return t.filter&&(a=a.filter((f,h,p)=>t.filter(f,h,p,r))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,r))),vt(a,f=>{const h=mP(t.callbacks,f);i.push(dr(h,"labelColor",this,f)),o.push(dr(h,"labelPointStyle",this,f)),s.push(dr(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Uu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=fP(this,r),c=Object.assign({},a,l),f=dP(this.chart,r,c),h=hP(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Aa(a),{x:p,y:m}=t,{width:v,height:y}=n;let x,_,w,S,T,P;return o==="center"?(T=m+y/2,i==="left"?(x=p,_=x-s,S=T+s,P=T-s):(x=p+v,_=x+s,S=T-s,P=T+s),w=x):(i==="left"?_=p+Math.max(l,f)+s:i==="right"?_=p+v-Math.max(c,h)-s:_=this.caretX,o==="top"?(S=m,T=S-s,x=_-s,w=_+s):(S=m+y,T=S+s,x=_+s,w=_-s),P=S),{x1:x,x2:_,x3:w,y1:S,y2:T,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=nc(r.rtl,this.x,this.width);for(t.x=Kh(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=gn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:f}=o,h=gn(o.bodyFont),p=Kh(this,"left",o),m=i.x(p),v=l<h.lineHeight?(h.lineHeight-l)/2:0,y=n.y+v;if(o.usePointStyle){const x={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},_=i.leftForLtr(m,c)+c/2,w=y+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Z1(t,x,_,w),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Z1(t,x,_,w)}else{t.lineWidth=rt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const x=i.leftForLtr(m,c-f),_=i.leftForLtr(i.xPlus(m,1),c-f-2),w=Aa(s.borderRadius);Object.values(w).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,If(t,{x,y,w:c,h:l,radius:w}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),If(t,{x:_,y:y+1,w:c-2,h:l-2,radius:w}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(x,y,c,l),t.strokeRect(x,y,c,l),t.fillStyle=s.backgroundColor,t.fillRect(_,y+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=gn(r.bodyFont);let p=h.lineHeight,m=0;const v=nc(r.rtl,this.x,this.width),y=function(D){n.fillText(D,v.x(t.x+m),t.y+p/2),t.y+=p+o},x=v.textAlign(s);let _,w,S,T,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Kh(this,x,r),n.fillStyle=r.bodyColor,vt(this.beforeBody,y),m=a&&x!=="right"?s==="center"?c/2+f:c+2+f:0,T=0,k=i.length;T<k;++T){for(_=i[T],w=this.labelTextColors[T],n.fillStyle=w,vt(_.before,y),S=_.lines,a&&S.length&&(this._drawColorBox(n,t,T,v,r),p=Math.max(h.lineHeight,l)),P=0,N=S.length;P<N;++P)y(S[P]),p=h.lineHeight;vt(_.after,y)}m=0,p=h.lineHeight,vt(this.afterBody,y),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=nc(r.rtl,this.x,this.width);for(t.x=Kh(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=gn(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:f}=r,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:v}=Aa(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+h,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+c-p,l),n.quadraticCurveTo(a+c,l,a+c,l+p),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+c,l+f-v),n.quadraticCurveTo(a+c,l+f,a+c-v,l+f),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+m,l+f),n.quadraticCurveTo(a,l+f,a,l+f-m),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+h),n.quadraticCurveTo(a,l,a+h,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Uu[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=fP(this,t),l=Object.assign({},s,this._size),c=dP(n,t,l),f=hP(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=er(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),sD(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),aD(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!og(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!og(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=Uu[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}},xe(H1,"positioners",Uu),H1);var yU={id:"tooltip",_element:gP,positioners:Uu,afterInit(e,t,n){n&&(e.tooltip=new gP({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ND},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},_U=Object.freeze({__proto__:null,Colors:Rz,Decimation:Az,Filler:tU,Legend:aU,SubTitle:uU,Title:cU,Tooltip:yU});const bU=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function wU(e,t,n,r){const i=e.indexOf(t);if(i===-1)return bU(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const xU=(e,t)=>e===null?null:En(Math.round(e),0,t);function vP(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class tb extends al{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ct(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:wU(r,t,Ke(n,t),this._addedLabels),xU(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return vP.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}xe(tb,"id","category"),xe(tb,"defaults",{ticks:{callback:vP}});function SU(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,m=o||1,v=f-1,{min:y,max:x}=t,_=!ct(s),w=!ct(a),S=!ct(c),T=(x-y)/(h+1);let P=hO((x-y)/v/m)*m,k,N,D,z;if(P<1e-14&&!_&&!w)return[{value:y},{value:x}];z=Math.ceil(x/P)-Math.floor(y/P),z>v&&(P=hO(z*P/v/m)*m),ct(l)||(k=Math.pow(10,l),P=Math.ceil(P*k)/k),i==="ticks"?(N=Math.floor(y/P)*P,D=Math.ceil(x/P)*P):(N=y,D=x),_&&w&&o&&_7((a-s)/o,P/1e3)?(z=Math.round(Math.min((a-s)/P,f)),P=(a-s)/z,N=s,D=a):S?(N=_?s:N,D=w?a:D,z=c-1,P=(D-N)/z):(z=(D-N)/P,nf(z,Math.round(z),P/1e3)?z=Math.round(z):z=Math.ceil(z));const A=Math.max(pO(P),pO(N));k=Math.pow(10,ct(l)?A:l),N=Math.round(N*k)/k,D=Math.round(D*k)/k;let W=0;for(_&&(p&&N!==s?(n.push({value:s}),N<s&&W++,nf(Math.round((N+W*P)*k)/k,s,yP(s,T,e))&&W++):N<s&&W++);W<z;++W)n.push({value:Math.round((N+W*P)*k)/k});return w&&p&&D!==a?n.length&&nf(n[n.length-1].value,a,yP(a,T,e))?n[n.length-1].value=a:n.push({value:a}):(!w||D===a)&&n.push({value:D}),n}function yP(e,t,{horizontal:n,minRotation:r}){const i=yi(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class hg extends al{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ct(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){const l=Gi(i),c=Gi(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=SU(i,o);return t.bounds==="ticks"&&zL(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Rd(t,this.chart.options.locale,this.options.ticks.format)}}class nb extends hg{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=qt(t)?t:0,this.max=qt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=yi(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}xe(nb,"id","linear"),xe(nb,"defaults",{ticks:{callback:oy.formatters.numeric}});const $f=e=>Math.floor(cs(e)),ma=(e,t)=>Math.pow(10,$f(e)+t);function _P(e){return e/Math.pow(10,$f(e))===1}function bP(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function CU(e,t){const n=t-e;let r=$f(n);for(;bP(e,t,r)>10;)r++;for(;bP(e,t,r)<10;)r--;return Math.min(r,$f(e))}function EU(e,{min:t,max:n}){t=Tr(e.min,t);const r=[],i=$f(t);let o=CU(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,f=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=Tr(e.min,Math.round((l+f+h*Math.pow(10,o))*s)/s);for(;p<n;)r.push({value:p,major:_P(p),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),p=Math.round((l+f+h*Math.pow(10,o))*s)/s;const m=Tr(e.max,p);return r.push({value:m,major:_P(m),significand:h}),r}class rb extends al{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=hg.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return qt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=qt(t)?Math.max(0,t):null,this.max=qt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!qt(this._userMin)&&(this.min=t===ma(this.min,0)?ma(this.min,-1):ma(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(ma(r,-1)),s(ma(i,1)))),r<=0&&o(ma(i,-1)),i<=0&&s(ma(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=EU(n,this);return t.bounds==="ticks"&&zL(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Rd(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=cs(t),this._valueRange=cs(this.max)-cs(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(cs(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}xe(rb,"id","logarithmic"),xe(rb,"defaults",{ticks:{callback:oy.formatters.logarithmic,major:{enabled:!0}}});function ib(e){const t=e.ticks;if(t.display&&e.display){const n=er(t.backdropPadding);return Ke(t.font&&t.font.size,tn.font.size)+n.height}return 0}function TU(e,t,n){return n=kt(n)?n:[n],{w:j7(e,t.string,n),h:n.length*t.lineHeight}}function wP(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function OU(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?It/o:0;for(let l=0;l<o;l++){const c=s.setContext(e.getPointLabelContext(l));i[l]=c.padding;const f=e.getPointPosition(l,e.drawingArea+i[l],a),h=gn(c.font),p=TU(e.ctx,h,e._pointLabels[l]);r[l]=p;const m=Pr(e.getIndexAngle(l)+a),v=Math.round(P2(m)),y=wP(v,f.x,p.w,0,180),x=wP(v,f.y,p.h,90,270);PU(n,t,m,y,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=kU(e,r,i)}function PU(e,t,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function kU(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=ib(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?It/i:0;for(let c=0;c<i;c++){const f=e.getPointPosition(c,a+s+n[c],l),h=Math.round(P2(Pr(f.angle+Gt))),p=t[c],m=NU(f.y,p.h,h),v=MU(h),y=RU(f.x,p.w,v);r.push({x:f.x,y:m,textAlign:v,left:y,top:m,right:y+p.w,bottom:m+p.h})}return r}function MU(e){return e===0||e===180?"center":e<180?"left":"right"}function RU(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function NU(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function LU(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=gn(o.font),{x:a,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=e._pointLabelItems[i],{backdropColor:v}=o;if(!ct(v)){const y=Aa(o.borderRadius),x=er(o.backdropPadding);n.fillStyle=v;const _=f-x.left,w=h-x.top,S=p-f+x.width,T=m-h+x.height;Object.values(y).some(P=>P!==0)?(n.beginPath(),If(n,{x:_,y:w,w:S,h:T,radius:y}),n.fill()):n.fillRect(_,w,S,T)}Wa(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function LD(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Mt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=e.getPointPosition(s,t),i.lineTo(o.x,o.y)}}function DU(e,t,n,r,i){const o=e.ctx,s=t.circular,{color:a,lineWidth:l}=t;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),LD(e,n,s,r),o.closePath(),o.stroke(),o.restore())}function AU(e,t,n){return qs(e,{label:n,index:t,type:"pointLabel"})}class Vu extends hg{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=er(ib(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=qt(t)&&!isNaN(t)?t:0,this.max=qt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ib(this.options))}generateTickLabels(t){hg.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Ct(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?OU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Mt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Pr(t*n+yi(r))}getDistanceFromCenterForValue(t){if(ct(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ct(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return AU(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-Gt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),LD(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&LU(this,s),i.display&&this.ticks.forEach((f,h)=>{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),m=i.setContext(p),v=o.setContext(p);DU(this,m,l,s,v)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const f=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:p}=f;!p||!h||(t.lineWidth=p,t.strokeStyle=h,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=gn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=er(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}Wa(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}xe(Vu,"id","radialLinear"),xe(Vu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:oy.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),xe(Vu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),xe(Vu,"descriptors",{angleLines:{_fallback:"grid"}});const uy={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mr=Object.keys(uy);function jU(e,t){return e-t}function xP(e,t){if(ct(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),qt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(yc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function SP(e,t,n,r){const i=mr.length;for(let o=mr.indexOf(e);o<i-1;++o){const s=uy[mr[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return mr[o]}return mr[i-1]}function IU(e,t,n,r,i){for(let o=mr.length-1;o>=mr.indexOf(n);o--){const s=mr[o];if(uy[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return mr[n?mr.indexOf(n):0]}function FU(e){for(let t=mr.indexOf(e)+1,n=mr.length;t<n;++t)if(uy[mr[t]].common)return mr[t]}function CP(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=k2(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function $U(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function EP(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:$U(e,r,i,n)}class Bf extends al{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new QB._date(t.adapters.date);i.init(n),tf(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:xP(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=qt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=qt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=S7(i,o,s);return this._unit=n.unit||(r.autoSkip?SP(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):IU(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:FU(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),EP(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=En(n,0,s),r=En(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||SP(o.minUnit,n,r,this._getLabelCapacity(n)),a=Ke(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=yc(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;p<r;p=+t.add(p,a,s),m++)CP(f,p,v);return(p===r||i.bounds==="ticks"||m===1)&&CP(f,p,v),Object.keys(f).sort((y,x)=>y-x).map(y=>+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Ct(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&a[l],h=c&&a[c],p=r[n],m=c&&h&&p&&p.major;return this._adapter.format(t,i||(m?h:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=yi(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,EP(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(xP(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return HL(t.sort(jU))}}xe(Bf,"id","time"),xe(Bf,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Xh(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=bo(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=bo(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class ob extends Bf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Xh(n,this.min),this._tableRange=Xh(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,f;for(s=0,a=t.length;s<a;++s)c=t[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)f=i[s+1],l=i[s-1],c=i[s],Math.round((f+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Xh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Xh(this._table,r*this._tableRange+this._minPos,!0)}}xe(ob,"id","timeseries"),xe(ob,"defaults",Bf.defaults);var BU=Object.freeze({__proto__:null,CategoryScale:tb,LinearScale:nb,LogarithmicScale:rb,RadialLinearScale:Vu,TimeScale:Bf,TimeSeriesScale:ob});const zU=[XB,Tz,_U,BU];cy.register(...zU);var DD={exports:{}},jr={},AD={exports:{}},jD={};/**
* @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(G,F){var j=G.length;G.push(F);e:for(;0<j;){var B=j-1>>>1,ne=G[B];if(0<i(ne,F))G[B]=F,G[j]=ne,j=B;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var F=G[0],j=G.pop();if(j!==F){G[0]=j;e:for(var B=0,ne=G.length,H=ne>>>1;B<H;){var q=2*(B+1)-1,te=G[q],se=q+1,pe=G[se];if(0>i(te,j))se<ne&&0>i(pe,te)?(G[B]=pe,G[se]=j,B=se):(G[B]=te,G[q]=j,B=q);else if(se<ne&&0>i(pe,j))G[B]=pe,G[se]=j,B=se;else break e}}return F}function i(G,F){var j=G.sortIndex-F.sortIndex;return j!==0?j:G.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,p=3,m=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(G){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=G)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function T(G){if(y=!1,S(G),!v)if(n(l)!==null)v=!0,ie(P);else{var F=n(c);F!==null&&oe(T,F.startTime-G)}}function P(G,F){v=!1,y&&(y=!1,_(D),D=-1),m=!0;var j=p;try{for(S(F),h=n(l);h!==null&&(!(h.expirationTime>F)||G&&!W());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var ne=B(h.expirationTime<=F);F=e.unstable_now(),typeof ne=="function"?h.callback=ne:h===n(l)&&r(l),S(F)}else r(l);h=n(l)}if(h!==null)var H=!0;else{var q=n(c);q!==null&&oe(T,q.startTime-F),H=!1}return H}finally{h=null,p=j,m=!1}}var k=!1,N=null,D=-1,z=5,A=-1;function W(){return!(e.unstable_now()-A<z)}function Y(){if(N!==null){var G=e.unstable_now();A=G;var F=!0;try{F=N(!0,G)}finally{F?J():(k=!1,N=null)}}else k=!1}var J;if(typeof w=="function")J=function(){w(Y)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,ee=Z.port2;Z.port1.onmessage=Y,J=function(){ee.postMessage(null)}}else J=function(){x(Y,0)};function ie(G){N=G,k||(k=!0,J())}function oe(G,F){D=x(function(){G(e.unstable_now())},F)}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(G){G.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,ie(P))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var j=p;p=F;try{return G()}finally{p=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,F){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var j=p;p=G;try{return F()}finally{p=j}},e.unstable_scheduleCallback=function(G,F,j){var B=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?B+j:B):j=B,G){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=j+ne,G={id:f++,callback:F,priorityLevel:G,startTime:j,expirationTime:ne,sortIndex:-1},j>B?(G.sortIndex=j,t(c,G),n(l)===null&&G===n(c)&&(y?(_(D),D=-1):y=!0,oe(T,j-B))):(G.sortIndex=ne,t(l,G),v||m||(v=!0,ie(P))),G},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(G){var F=p;return function(){var j=p;p=F;try{return G.apply(this,arguments)}finally{p=j}}}})(jD);AD.exports=jD;var UU=AD.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 ID=V,Dr=UU;function Ee(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 FD=new Set,zf={};function ll(e,t){wc(e,t),wc(e+"Capture",t)}function wc(e,t){for(zf[e]=t,e=0;e<t.length;e++)FD.add(t[e])}var Eo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sb=Object.prototype.hasOwnProperty,VU=/^[: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]*$/,TP={},OP={};function HU(e){return sb.call(OP,e)?!0:sb.call(TP,e)?!1:VU.test(e)?OP[e]=!0:(TP[e]=!0,!1)}function WU(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 YU(e,t,n,r){if(t===null||typeof t>"u"||WU(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 fr(e,t,n,r,i,o,s){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=s}var Hn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Hn[e]=new fr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Hn[t]=new fr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Hn[e]=new fr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Hn[e]=new fr(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){Hn[e]=new fr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Hn[e]=new fr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Hn[e]=new fr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Hn[e]=new fr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Hn[e]=new fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $2=/[\-:]([a-z])/g;function B2(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($2,B2);Hn[t]=new fr(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($2,B2);Hn[t]=new fr(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($2,B2);Hn[t]=new fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Hn[e]=new fr(e,1,!1,e.toLowerCase(),null,!1,!1)});Hn.xlinkHref=new fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Hn[e]=new fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function z2(e,t,n,r){var i=Hn.hasOwnProperty(t)?Hn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(YU(t,n,i,r)&&(n=null),r||i===null?HU(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 Io=ID.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qh=Symbol.for("react.element"),Bl=Symbol.for("react.portal"),zl=Symbol.for("react.fragment"),U2=Symbol.for("react.strict_mode"),ab=Symbol.for("react.profiler"),$D=Symbol.for("react.provider"),BD=Symbol.for("react.context"),V2=Symbol.for("react.forward_ref"),lb=Symbol.for("react.suspense"),cb=Symbol.for("react.suspense_list"),H2=Symbol.for("react.memo"),es=Symbol.for("react.lazy"),zD=Symbol.for("react.offscreen"),PP=Symbol.iterator;function Cu(e){return e===null||typeof e!="object"?null:(e=PP&&e[PP]||e["@@iterator"],typeof e=="function"?e:null)}var Vt=Object.assign,m0;function Hu(e){if(m0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);m0=t&&t[1]||""}return`
`+m0+e}var g0=!1;function v0(e,t){if(!e||g0)return"";g0=!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(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{g0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hu(e):""}function qU(e){switch(e.tag){case 5:return Hu(e.type);case 16:return Hu("Lazy");case 13:return Hu("Suspense");case 19:return Hu("SuspenseList");case 0:case 2:case 15:return e=v0(e.type,!1),e;case 11:return e=v0(e.type.render,!1),e;case 1:return e=v0(e.type,!0),e;default:return""}}function ub(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 zl:return"Fragment";case Bl:return"Portal";case ab:return"Profiler";case U2:return"StrictMode";case lb:return"Suspense";case cb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BD:return(e.displayName||"Context")+".Consumer";case $D:return(e._context.displayName||"Context")+".Provider";case V2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H2:return t=e.displayName||null,t!==null?t:ub(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return ub(e(t))}catch{}}return null}function GU(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 ub(t);case 8:return t===U2?"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 Is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZU(e){var t=UD(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jh(e){e._valueTracker||(e._valueTracker=ZU(e))}function VD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pg(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 fb(e,t){var n=t.checked;return Vt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Is(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 HD(e,t){t=t.checked,t!=null&&z2(e,"checked",t,!1)}function db(e,t){HD(e,t);var n=Is(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")?hb(e,t.type,n):t.hasOwnProperty("defaultValue")&&hb(e,t.type,Is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MP(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 hb(e,t,n){(t!=="number"||pg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wu=Array.isArray;function rc(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=""+Is(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 pb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return Vt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function RP(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ee(92));if(Wu(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Is(n)}}function WD(e,t){var n=Is(t.value),r=Is(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 NP(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function YD(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 mb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?YD(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ep,qD=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(ep=ep||document.createElement("div"),ep.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Uf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cf={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},KU=["Webkit","ms","Moz","O"];Object.keys(cf).forEach(function(e){KU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cf[t]=cf[e]})});function GD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cf.hasOwnProperty(e)&&cf[e]?(""+t).trim():t+"px"}function ZD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=GD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var XU=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 gb(e,t){if(t){if(XU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function vb(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 yb=null;function W2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _b=null,ic=null,oc=null;function LP(e){if(e=Ad(e)){if(typeof _b!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=my(t),_b(e.stateNode,e.type,t))}}function KD(e){ic?oc?oc.push(e):oc=[e]:ic=e}function XD(){if(ic){var e=ic,t=oc;if(oc=ic=null,LP(e),t)for(e=0;e<t.length;e++)LP(t[e])}}function QD(e,t){return e(t)}function JD(){}var y0=!1;function eA(e,t,n){if(y0)return e(t,n);y0=!0;try{return QD(e,t,n)}finally{y0=!1,(ic!==null||oc!==null)&&(JD(),XD())}}function Vf(e,t){var n=e.stateNode;if(n===null)return null;var r=my(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ee(231,t,typeof n));return n}var bb=!1;if(Eo)try{var Eu={};Object.defineProperty(Eu,"passive",{get:function(){bb=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{bb=!1}function QU(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var uf=!1,mg=null,gg=!1,wb=null,JU={onError:function(e){uf=!0,mg=e}};function eV(e,t,n,r,i,o,s,a,l){uf=!1,mg=null,QU.apply(JU,arguments)}function tV(e,t,n,r,i,o,s,a,l){if(eV.apply(this,arguments),uf){if(uf){var c=mg;uf=!1,mg=null}else throw Error(Ee(198));gg||(gg=!0,wb=c)}}function cl(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 tA(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 DP(e){if(cl(e)!==e)throw Error(Ee(188))}function nV(e){var t=e.alternate;if(!t){if(t=cl(e),t===null)throw Error(Ee(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 DP(i),e;if(o===r)return DP(i),t;o=o.sibling}throw Error(Ee(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(Ee(189))}}if(n.alternate!==r)throw Error(Ee(190))}if(n.tag!==3)throw Error(Ee(188));return n.stateNode.current===n?e:t}function nA(e){return e=nV(e),e!==null?rA(e):null}function rA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rA(e);if(t!==null)return t;e=e.sibling}return null}var iA=Dr.unstable_scheduleCallback,AP=Dr.unstable_cancelCallback,rV=Dr.unstable_shouldYield,iV=Dr.unstable_requestPaint,en=Dr.unstable_now,oV=Dr.unstable_getCurrentPriorityLevel,Y2=Dr.unstable_ImmediatePriority,oA=Dr.unstable_UserBlockingPriority,vg=Dr.unstable_NormalPriority,sV=Dr.unstable_LowPriority,sA=Dr.unstable_IdlePriority,fy=null,Zi=null;function aV(e){if(Zi&&typeof Zi.onCommitFiberRoot=="function")try{Zi.onCommitFiberRoot(fy,e,void 0,(e.current.flags&128)===128)}catch{}}var xi=Math.clz32?Math.clz32:uV,lV=Math.log,cV=Math.LN2;function uV(e){return e>>>=0,e===0?32:31-(lV(e)/cV|0)|0}var tp=64,np=4194304;function Yu(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 yg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yu(a):(o&=s,o!==0&&(r=Yu(o)))}else s=n&~i,s!==0?r=Yu(s):o!==0&&(r=Yu(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-xi(t),i=1<<n,r|=e[n],t&=~i;return r}function fV(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 dV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-xi(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=fV(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function xb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function aA(){var e=tp;return tp<<=1,!(tp&4194240)&&(tp=64),e}function _0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ld(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xi(t),e[t]=n}function hV(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-xi(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function q2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _t=0;function lA(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cA,G2,uA,fA,dA,Sb=!1,rp=[],ws=null,xs=null,Ss=null,Hf=new Map,Wf=new Map,os=[],pV="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 jP(e,t){switch(e){case"focusin":case"focusout":ws=null;break;case"dragenter":case"dragleave":xs=null;break;case"mouseover":case"mouseout":Ss=null;break;case"pointerover":case"pointerout":Hf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wf.delete(t.pointerId)}}function Tu(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=Ad(t),t!==null&&G2(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 ws=Tu(ws,e,t,n,r,i),!0;case"dragenter":return xs=Tu(xs,e,t,n,r,i),!0;case"mouseover":return Ss=Tu(Ss,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Hf.set(o,Tu(Hf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Wf.set(o,Tu(Wf.get(o)||null,e,t,n,r,i)),!0}return!1}function hA(e){var t=Ma(e.target);if(t!==null){var n=cl(t);if(n!==null){if(t=n.tag,t===13){if(t=tA(n),t!==null){e.blockedOn=t,dA(e.priority,function(){uA(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 Qp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yb=r,n.target.dispatchEvent(r),yb=null}else return t=Ad(n),t!==null&&G2(t),e.blockedOn=n,!1;t.shift()}return!0}function IP(e,t,n){Qp(e)&&n.delete(t)}function gV(){Sb=!1,ws!==null&&Qp(ws)&&(ws=null),xs!==null&&Qp(xs)&&(xs=null),Ss!==null&&Qp(Ss)&&(Ss=null),Hf.forEach(IP),Wf.forEach(IP)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Sb||(Sb=!0,Dr.unstable_scheduleCallback(Dr.unstable_NormalPriority,gV)))}function Yf(e){function t(i){return Ou(i,e)}if(0<rp.length){Ou(rp[0],e);for(var n=1;n<rp.length;n++){var r=rp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ws!==null&&Ou(ws,e),xs!==null&&Ou(xs,e),Ss!==null&&Ou(Ss,e),Hf.forEach(t),Wf.forEach(t),n=0;n<os.length;n++)r=os[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<os.length&&(n=os[0],n.blockedOn===null);)hA(n),n.blockedOn===null&&os.shift()}var sc=Io.ReactCurrentBatchConfig,_g=!0;function vV(e,t,n,r){var i=_t,o=sc.transition;sc.transition=null;try{_t=1,Z2(e,t,n,r)}finally{_t=i,sc.transition=o}}function yV(e,t,n,r){var i=_t,o=sc.transition;sc.transition=null;try{_t=4,Z2(e,t,n,r)}finally{_t=i,sc.transition=o}}function Z2(e,t,n,r){if(_g){var i=Cb(e,t,n,r);if(i===null)k0(e,t,r,bg,n),jP(e,r);else if(mV(i,e,t,n,r))r.stopPropagation();else if(jP(e,r),t&4&&-1<pV.indexOf(e)){for(;i!==null;){var o=Ad(i);if(o!==null&&cA(o),o=Cb(e,t,n,r),o===null&&k0(e,t,r,bg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else k0(e,t,r,null,n)}}var bg=null;function Cb(e,t,n,r){if(bg=null,e=W2(r),e=Ma(e),e!==null)if(t=cl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tA(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 bg=e,null}function pA(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 Y2:return 1;case oA:return 4;case vg:case sV:return 16;case sA:return 536870912;default:return 16}default:return 16}}var hs=null,K2=null,Jp=null;function mA(){if(Jp)return Jp;var e,t=K2,n=t.length,r,i="value"in hs?hs.value:hs.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Jp=i.slice(e,1<r?1-r:void 0)}function em(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 ip(){return!0}function FP(){return!1}function Ir(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ip:FP,this.isPropagationStopped=FP,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=ip)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ip)},persist:function(){},isPersistent:ip}),t}var Hc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},X2=Ir(Hc),Dd=Vt({},Hc,{view:0,detail:0}),_V=Ir(Dd),b0,w0,Pu,dy=Vt({},Dd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Q2,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!==Pu&&(Pu&&e.type==="mousemove"?(b0=e.screenX-Pu.screenX,w0=e.screenY-Pu.screenY):w0=b0=0,Pu=e),b0)},movementY:function(e){return"movementY"in e?e.movementY:w0}}),$P=Ir(dy),bV=Vt({},dy,{dataTransfer:0}),wV=Ir(bV),xV=Vt({},Dd,{relatedTarget:0}),x0=Ir(xV),SV=Vt({},Hc,{animationName:0,elapsedTime:0,pseudoElement:0}),CV=Ir(SV),EV=Vt({},Hc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TV=Ir(EV),OV=Vt({},Hc,{data:0}),BP=Ir(OV),PV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kV={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"},MV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MV[e])?!!t[e]:!1}function Q2(){return RV}var NV=Vt({},Dd,{key:function(e){if(e.key){var t=PV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=em(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Q2,charCode:function(e){return e.type==="keypress"?em(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?em(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LV=Ir(NV),DV=Vt({},dy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zP=Ir(DV),AV=Vt({},Dd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Q2}),jV=Ir(AV),IV=Vt({},Hc,{propertyName:0,elapsedTime:0,pseudoElement:0}),FV=Ir(IV),$V=Vt({},dy,{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}),BV=Ir($V),zV=[9,13,27,32],J2=Eo&&"CompositionEvent"in window,ff=null;Eo&&"documentMode"in document&&(ff=document.documentMode);var UV=Eo&&"TextEvent"in window&&!ff,gA=Eo&&(!J2||ff&&8<ff&&11>=ff),UP=String.fromCharCode(32),VP=!1;function vA(e,t){switch(e){case"keyup":return zV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function VV(e,t){switch(e){case"compositionend":return yA(t);case"keypress":return t.which!==32?null:(VP=!0,UP);case"textInput":return e=t.data,e===UP&&VP?null:e;default:return null}}function HV(e,t){if(Ul)return e==="compositionend"||!J2&&vA(e,t)?(e=mA(),Jp=K2=hs=null,Ul=!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 gA&&t.locale!=="ko"?null:t.data;default:return null}}var WV={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 HP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WV[e.type]:t==="textarea"}function _A(e,t,n,r){KD(r),t=wg(t,"onChange"),0<t.length&&(n=new X2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var df=null,qf=null;function YV(e){MA(e,0)}function hy(e){var t=Wl(e);if(VD(t))return e}function qV(e,t){if(e==="change")return t}var bA=!1;if(Eo){var S0;if(Eo){var C0="oninput"in document;if(!C0){var WP=document.createElement("div");WP.setAttribute("oninput","return;"),C0=typeof WP.oninput=="function"}S0=C0}else S0=!1;bA=S0&&(!document.documentMode||9<document.documentMode)}function YP(){df&&(df.detachEvent("onpropertychange",wA),qf=df=null)}function wA(e){if(e.propertyName==="value"&&hy(qf)){var t=[];_A(t,qf,e,W2(e)),eA(YV,t)}}function GV(e,t,n){e==="focusin"?(YP(),df=t,qf=n,df.attachEvent("onpropertychange",wA)):e==="focusout"&&YP()}function ZV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hy(qf)}function KV(e,t){if(e==="click")return hy(t)}function XV(e,t){if(e==="input"||e==="change")return hy(t)}function QV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oi=typeof Object.is=="function"?Object.is:QV;function Gf(e,t){if(Oi(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(!sb.call(t,i)||!Oi(e[i],t[i]))return!1}return!0}function qP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function GP(e,t){var n=qP(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=qP(n)}}function xA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SA(){for(var e=window,t=pg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pg(e.document)}return t}function eS(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 JV(e){var t=SA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xA(n.ownerDocument.documentElement,n)){if(r!==null&&eS(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=GP(n,o);var s=GP(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 eH=Eo&&"documentMode"in document&&11>=document.documentMode,Vl=null,Eb=null,hf=null,Tb=!1;function ZP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tb||Vl==null||Vl!==pg(r)||(r=Vl,"selectionStart"in r&&eS(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}),hf&&Gf(hf,r)||(hf=r,r=wg(Eb,"onSelect"),0<r.length&&(t=new X2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vl)))}function op(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hl={animationend:op("Animation","AnimationEnd"),animationiteration:op("Animation","AnimationIteration"),animationstart:op("Animation","AnimationStart"),transitionend:op("Transition","TransitionEnd")},E0={},CA={};Eo&&(CA=document.createElement("div").style,"AnimationEvent"in window||(delete Hl.animationend.animation,delete Hl.animationiteration.animation,delete Hl.animationstart.animation),"TransitionEvent"in window||delete Hl.transitionend.transition);function py(e){if(E0[e])return E0[e];if(!Hl[e])return e;var t=Hl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in CA)return E0[e]=t[n];return e}var EA=py("animationend"),TA=py("animationiteration"),OA=py("animationstart"),PA=py("transitionend"),kA=new Map,KP="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 Gs(e,t){kA.set(e,t),ll(t,[e])}for(var T0=0;T0<KP.length;T0++){var O0=KP[T0],tH=O0.toLowerCase(),nH=O0[0].toUpperCase()+O0.slice(1);Gs(tH,"on"+nH)}Gs(EA,"onAnimationEnd");Gs(TA,"onAnimationIteration");Gs(OA,"onAnimationStart");Gs("dblclick","onDoubleClick");Gs("focusin","onFocus");Gs("focusout","onBlur");Gs(PA,"onTransitionEnd");wc("onMouseEnter",["mouseout","mouseover"]);wc("onMouseLeave",["mouseout","mouseover"]);wc("onPointerEnter",["pointerout","pointerover"]);wc("onPointerLeave",["pointerout","pointerover"]);ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ll("onBeforeInput",["compositionend","keypress","textInput","paste"]);ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qu="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(" "),rH=new Set("cancel close invalid load scroll toggle".split(" ").concat(qu));function XP(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,tV(r,t,void 0,e),e.currentTarget=null}function MA(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 s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;XP(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;XP(i,a,c),o=l}}}if(gg)throw e=wb,gg=!1,wb=null,e}function Tt(e,t){var n=t[Rb];n===void 0&&(n=t[Rb]=new Set);var r=e+"__bubble";n.has(r)||(RA(t,e,2,!1),n.add(r))}function P0(e,t,n){var r=0;t&&(r|=4),RA(n,e,r,t)}var sp="_reactListening"+Math.random().toString(36).slice(2);function Zf(e){if(!e[sp]){e[sp]=!0,FD.forEach(function(n){n!=="selectionchange"&&(rH.has(n)||P0(n,!1,e),P0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[sp]||(t[sp]=!0,P0("selectionchange",!1,t))}}function RA(e,t,n,r){switch(pA(t)){case 1:var i=vV;break;case 4:i=yV;break;default:i=Z2}n=i.bind(null,t,n,e),i=void 0,!bb||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 k0(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ma(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}eA(function(){var c=o,f=W2(n),h=[];e:{var p=kA.get(e);if(p!==void 0){var m=X2,v=e;switch(e){case"keypress":if(em(n)===0)break e;case"keydown":case"keyup":m=LV;break;case"focusin":v="focus",m=x0;break;case"focusout":v="blur",m=x0;break;case"beforeblur":case"afterblur":m=x0;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":m=$P;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=wV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=jV;break;case EA:case TA:case OA:m=CV;break;case PA:m=FV;break;case"scroll":m=_V;break;case"wheel":m=BV;break;case"copy":case"cut":case"paste":m=TV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=zP}var y=(t&4)!==0,x=!y&&e==="scroll",_=y?p!==null?p+"Capture":null:p;y=[];for(var w=c,S;w!==null;){S=w;var T=S.stateNode;if(S.tag===5&&T!==null&&(S=T,_!==null&&(T=Vf(w,_),T!=null&&y.push(Kf(w,T,S)))),x)break;w=w.return}0<y.length&&(p=new m(p,v,null,n,f),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==yb&&(v=n.relatedTarget||n.fromElement)&&(Ma(v)||v[To]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?Ma(v):null,v!==null&&(x=cl(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(y=$P,T="onMouseLeave",_="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(y=zP,T="onPointerLeave",_="onPointerEnter",w="pointer"),x=m==null?p:Wl(m),S=v==null?p:Wl(v),p=new y(T,w+"leave",m,n,f),p.target=x,p.relatedTarget=S,T=null,Ma(f)===c&&(y=new y(_,w+"enter",v,n,f),y.target=S,y.relatedTarget=x,T=y),x=T,m&&v)t:{for(y=m,_=v,w=0,S=y;S;S=El(S))w++;for(S=0,T=_;T;T=El(T))S++;for(;0<w-S;)y=El(y),w--;for(;0<S-w;)_=El(_),S--;for(;w--;){if(y===_||_!==null&&y===_.alternate)break t;y=El(y),_=El(_)}y=null}else y=null;m!==null&&QP(h,p,m,y,!1),v!==null&&x!==null&&QP(h,x,v,y,!0)}}e:{if(p=c?Wl(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var P=qV;else if(HP(p))if(bA)P=XV;else{P=ZV;var k=GV}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=KV);if(P&&(P=P(e,c))){_A(h,P,n,f);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&hb(p,"number",p.value)}switch(k=c?Wl(c):window,e){case"focusin":(HP(k)||k.contentEditable==="true")&&(Vl=k,Eb=c,hf=null);break;case"focusout":hf=Eb=Vl=null;break;case"mousedown":Tb=!0;break;case"contextmenu":case"mouseup":case"dragend":Tb=!1,ZP(h,n,f);break;case"selectionchange":if(eH)break;case"keydown":case"keyup":ZP(h,n,f)}var N;if(J2)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Ul?vA(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(gA&&n.locale!=="ko"&&(Ul||D!=="onCompositionStart"?D==="onCompositionEnd"&&Ul&&(N=mA()):(hs=f,K2="value"in hs?hs.value:hs.textContent,Ul=!0)),k=wg(c,D),0<k.length&&(D=new BP(D,e,null,n,f),h.push({event:D,listeners:k}),N?D.data=N:(N=yA(n),N!==null&&(D.data=N)))),(N=UV?VV(e,n):HV(e,n))&&(c=wg(c,"onBeforeInput"),0<c.length&&(f=new BP("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=N))}MA(h,t)})}function Kf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Vf(e,n),o!=null&&r.unshift(Kf(e,o,i)),o=Vf(e,t),o!=null&&r.push(Kf(e,o,i))),e=e.return}return r}function El(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function QP(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Vf(n,o),l!=null&&s.unshift(Kf(n,l,a))):i||(l=Vf(n,o),l!=null&&s.push(Kf(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var iH=/\r\n?/g,oH=/\u0000|\uFFFD/g;function JP(e){return(typeof e=="string"?e:""+e).replace(iH,`
`).replace(oH,"")}function ap(e,t,n){if(t=JP(t),JP(e)!==t&&n)throw Error(Ee(425))}function xg(){}var Ob=null,Pb=null;function kb(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 Mb=typeof setTimeout=="function"?setTimeout:void 0,sH=typeof clearTimeout=="function"?clearTimeout:void 0,ek=typeof Promise=="function"?Promise:void 0,aH=typeof queueMicrotask=="function"?queueMicrotask:typeof ek<"u"?function(e){return ek.resolve(null).then(e).catch(lH)}:Mb;function lH(e){setTimeout(function(){throw e})}function M0(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),Yf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Yf(t)}function Cs(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 tk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wc=Math.random().toString(36).slice(2),Vi="__reactFiber$"+Wc,Xf="__reactProps$"+Wc,To="__reactContainer$"+Wc,Rb="__reactEvents$"+Wc,cH="__reactListeners$"+Wc,uH="__reactHandles$"+Wc;function Ma(e){var t=e[Vi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[To]||n[Vi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tk(e);e!==null;){if(n=e[Vi])return n;e=tk(e)}return t}e=n,n=e.parentNode}return null}function Ad(e){return e=e[Vi]||e[To],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function my(e){return e[Xf]||null}var Nb=[],Yl=-1;function Zs(e){return{current:e}}function Rt(e){0>Yl||(e.current=Nb[Yl],Nb[Yl]=null,Yl--)}function Et(e,t){Yl++,Nb[Yl]=e.current,e.current=t}var Fs={},tr=Zs(Fs),yr=Zs(!1),Ya=Fs;function xc(e,t){var n=e.type.contextTypes;if(!n)return Fs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _r(e){return e=e.childContextTypes,e!=null}function Sg(){Rt(yr),Rt(tr)}function nk(e,t,n){if(tr.current!==Fs)throw Error(Ee(168));Et(tr,t),Et(yr,n)}function NA(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(Ee(108,GU(e)||"Unknown",i));return Vt({},n,r)}function Cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fs,Ya=tr.current,Et(tr,e),Et(yr,yr.current),!0}function rk(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=NA(e,t,Ya),r.__reactInternalMemoizedMergedChildContext=e,Rt(yr),Rt(tr),Et(tr,e)):Rt(yr),Et(yr,n)}var mo=null,gy=!1,R0=!1;function LA(e){mo===null?mo=[e]:mo.push(e)}function fH(e){gy=!0,LA(e)}function Ks(){if(!R0&&mo!==null){R0=!0;var e=0,t=_t;try{var n=mo;for(_t=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mo=null,gy=!1}catch(i){throw mo!==null&&(mo=mo.slice(e+1)),iA(Y2,Ks),i}finally{_t=t,R0=!1}}return null}var ql=[],Gl=0,Eg=null,Tg=0,Hr=[],Wr=0,qa=null,wo=1,xo="";function xa(e,t){ql[Gl++]=Tg,ql[Gl++]=Eg,Eg=e,Tg=t}function DA(e,t,n){Hr[Wr++]=wo,Hr[Wr++]=xo,Hr[Wr++]=qa,qa=e;var r=wo;e=xo;var i=32-xi(r)-1;r&=~(1<<i),n+=1;var o=32-xi(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,wo=1<<32-xi(t)+i|n<<i|r,xo=o+e}else wo=1<<o|n<<i|r,xo=e}function tS(e){e.return!==null&&(xa(e,1),DA(e,1,0))}function nS(e){for(;e===Eg;)Eg=ql[--Gl],ql[Gl]=null,Tg=ql[--Gl],ql[Gl]=null;for(;e===qa;)qa=Hr[--Wr],Hr[Wr]=null,xo=Hr[--Wr],Hr[Wr]=null,wo=Hr[--Wr],Hr[Wr]=null}var Rr=null,kr=null,jt=!1,mi=null;function AA(e,t){var n=qr(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 ik(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,Rr=e,kr=Cs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rr=e,kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qa!==null?{id:wo,overflow:xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rr=e,kr=null,!0):!1;default:return!1}}function Lb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Db(e){if(jt){var t=kr;if(t){var n=t;if(!ik(e,t)){if(Lb(e))throw Error(Ee(418));t=Cs(n.nextSibling);var r=Rr;t&&ik(e,t)?AA(r,n):(e.flags=e.flags&-4097|2,jt=!1,Rr=e)}}else{if(Lb(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,jt=!1,Rr=e}}}function ok(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rr=e}function lp(e){if(e!==Rr)return!1;if(!jt)return ok(e),jt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kb(e.type,e.memoizedProps)),t&&(t=kr)){if(Lb(e))throw jA(),Error(Ee(418));for(;t;)AA(e,t),t=Cs(t.nextSibling)}if(ok(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){kr=Cs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kr=null}}else kr=Rr?Cs(e.stateNode.nextSibling):null;return!0}function jA(){for(var e=kr;e;)e=Cs(e.nextSibling)}function Sc(){kr=Rr=null,jt=!1}function rS(e){mi===null?mi=[e]:mi.push(e)}var dH=Io.ReactCurrentBatchConfig;function di(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}var Og=Zs(null),Pg=null,Zl=null,iS=null;function oS(){iS=Zl=Pg=null}function sS(e){var t=Og.current;Rt(Og),e._currentValue=t}function Ab(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 ac(e,t){Pg=e,iS=Zl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gr=!0),e.firstContext=null)}function Jr(e){var t=e._currentValue;if(iS!==e)if(e={context:e,memoizedValue:t,next:null},Zl===null){if(Pg===null)throw Error(Ee(308));Zl=e,Pg.dependencies={lanes:0,firstContext:e}}else Zl=Zl.next=e;return t}var Ra=null;function aS(e){Ra===null?Ra=[e]:Ra.push(e)}function IA(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,aS(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oo(e,r)}function Oo(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 ts=!1;function lS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FA(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 So(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Es(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ut&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oo(e,n)}return i=r.interleaved,i===null?(t.next=t,aS(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oo(e,n)}function tm(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,q2(e,n)}}function sk(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,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 kg(e,t,n,r){var i=e.updateQueue;ts=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;s=0,f=c=l=null,a=o;do{var p=a.lane,m=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(p=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(m,h,p);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(m,h,p):v,p==null)break e;h=Vt({},h,p);break e;case 2:ts=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=m,l=h):f=f.next=m,s|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Za|=s,e.lanes=s,e.memoizedState=h}}function ak(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(Ee(191,i));i.call(r)}}}var $A=new ID.Component().refs;function jb(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 vy={isMounted:function(e){return(e=e._reactInternals)?cl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cr(),i=Os(e),o=So(r,i);o.payload=t,n!=null&&(o.callback=n),t=Es(e,o,i),t!==null&&(Si(t,e,i,r),tm(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cr(),i=Os(e),o=So(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Es(e,o,i),t!==null&&(Si(t,e,i,r),tm(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cr(),r=Os(e),i=So(n,r);i.tag=2,t!=null&&(i.callback=t),t=Es(e,i,r),t!==null&&(Si(t,e,r,n),tm(t,e,r))}};function lk(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Gf(n,r)||!Gf(i,o):!0}function BA(e,t,n){var r=!1,i=Fs,o=t.contextType;return typeof o=="object"&&o!==null?o=Jr(o):(i=_r(t)?Ya:tr.current,r=t.contextTypes,o=(r=r!=null)?xc(e,i):Fs),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ck(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&&vy.enqueueReplaceState(t,t.state,null)}function Ib(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=$A,lS(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Jr(o):(o=_r(t)?Ya:tr.current,i.context=xc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(jb(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&&vy.enqueueReplaceState(i,i.state,null),kg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ku(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(Ee(309));var r=n.stateNode}if(!r)throw Error(Ee(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(s){var a=i.refs;a===$A&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ee(284));if(!n._owner)throw Error(Ee(290,e))}return e}function cp(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uk(e){var t=e._init;return t(e._payload)}function zA(e){function t(_,w){if(e){var S=_.deletions;S===null?(_.deletions=[w],_.flags|=16):S.push(w)}}function n(_,w){if(!e)return null;for(;w!==null;)t(_,w),w=w.sibling;return null}function r(_,w){for(_=new Map;w!==null;)w.key!==null?_.set(w.key,w):_.set(w.index,w),w=w.sibling;return _}function i(_,w){return _=Ps(_,w),_.index=0,_.sibling=null,_}function o(_,w,S){return _.index=S,e?(S=_.alternate,S!==null?(S=S.index,S<w?(_.flags|=2,w):S):(_.flags|=2,w)):(_.flags|=1048576,w)}function s(_){return e&&_.alternate===null&&(_.flags|=2),_}function a(_,w,S,T){return w===null||w.tag!==6?(w=F0(S,_.mode,T),w.return=_,w):(w=i(w,S),w.return=_,w)}function l(_,w,S,T){var P=S.type;return P===zl?f(_,w,S.props.children,T,S.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===es&&uk(P)===w.type)?(T=i(w,S.props),T.ref=ku(_,w,S),T.return=_,T):(T=am(S.type,S.key,S.props,null,_.mode,T),T.ref=ku(_,w,S),T.return=_,T)}function c(_,w,S,T){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=$0(S,_.mode,T),w.return=_,w):(w=i(w,S.children||[]),w.return=_,w)}function f(_,w,S,T,P){return w===null||w.tag!==7?(w=Fa(S,_.mode,T,P),w.return=_,w):(w=i(w,S),w.return=_,w)}function h(_,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=F0(""+w,_.mode,S),w.return=_,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Qh:return S=am(w.type,w.key,w.props,null,_.mode,S),S.ref=ku(_,null,w),S.return=_,S;case Bl:return w=$0(w,_.mode,S),w.return=_,w;case es:var T=w._init;return h(_,T(w._payload),S)}if(Wu(w)||Cu(w))return w=Fa(w,_.mode,S,null),w.return=_,w;cp(_,w)}return null}function p(_,w,S,T){var P=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return P!==null?null:a(_,w,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Qh:return S.key===P?l(_,w,S,T):null;case Bl:return S.key===P?c(_,w,S,T):null;case es:return P=S._init,p(_,w,P(S._payload),T)}if(Wu(S)||Cu(S))return P!==null?null:f(_,w,S,T,null);cp(_,S)}return null}function m(_,w,S,T,P){if(typeof T=="string"&&T!==""||typeof T=="number")return _=_.get(S)||null,a(w,_,""+T,P);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Qh:return _=_.get(T.key===null?S:T.key)||null,l(w,_,T,P);case Bl:return _=_.get(T.key===null?S:T.key)||null,c(w,_,T,P);case es:var k=T._init;return m(_,w,S,k(T._payload),P)}if(Wu(T)||Cu(T))return _=_.get(S)||null,f(w,_,T,P,null);cp(w,T)}return null}function v(_,w,S,T){for(var P=null,k=null,N=w,D=w=0,z=null;N!==null&&D<S.length;D++){N.index>D?(z=N,N=null):z=N.sibling;var A=p(_,N,S[D],T);if(A===null){N===null&&(N=z);break}e&&N&&A.alternate===null&&t(_,N),w=o(A,w,D),k===null?P=A:k.sibling=A,k=A,N=z}if(D===S.length)return n(_,N),jt&&xa(_,D),P;if(N===null){for(;D<S.length;D++)N=h(_,S[D],T),N!==null&&(w=o(N,w,D),k===null?P=N:k.sibling=N,k=N);return jt&&xa(_,D),P}for(N=r(_,N);D<S.length;D++)z=m(N,_,D,S[D],T),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?D:z.key),w=o(z,w,D),k===null?P=z:k.sibling=z,k=z);return e&&N.forEach(function(W){return t(_,W)}),jt&&xa(_,D),P}function y(_,w,S,T){var P=Cu(S);if(typeof P!="function")throw Error(Ee(150));if(S=P.call(S),S==null)throw Error(Ee(151));for(var k=P=null,N=w,D=w=0,z=null,A=S.next();N!==null&&!A.done;D++,A=S.next()){N.index>D?(z=N,N=null):z=N.sibling;var W=p(_,N,A.value,T);if(W===null){N===null&&(N=z);break}e&&N&&W.alternate===null&&t(_,N),w=o(W,w,D),k===null?P=W:k.sibling=W,k=W,N=z}if(A.done)return n(_,N),jt&&xa(_,D),P;if(N===null){for(;!A.done;D++,A=S.next())A=h(_,A.value,T),A!==null&&(w=o(A,w,D),k===null?P=A:k.sibling=A,k=A);return jt&&xa(_,D),P}for(N=r(_,N);!A.done;D++,A=S.next())A=m(N,_,D,A.value,T),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?D:A.key),w=o(A,w,D),k===null?P=A:k.sibling=A,k=A);return e&&N.forEach(function(Y){return t(_,Y)}),jt&&xa(_,D),P}function x(_,w,S,T){if(typeof S=="object"&&S!==null&&S.type===zl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Qh:e:{for(var P=S.key,k=w;k!==null;){if(k.key===P){if(P=S.type,P===zl){if(k.tag===7){n(_,k.sibling),w=i(k,S.props.children),w.return=_,_=w;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===es&&uk(P)===k.type){n(_,k.sibling),w=i(k,S.props),w.ref=ku(_,k,S),w.return=_,_=w;break e}n(_,k);break}else t(_,k);k=k.sibling}S.type===zl?(w=Fa(S.props.children,_.mode,T,S.key),w.return=_,_=w):(T=am(S.type,S.key,S.props,null,_.mode,T),T.ref=ku(_,w,S),T.return=_,_=T)}return s(_);case Bl:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=i(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=$0(S,_.mode,T),w.return=_,_=w}return s(_);case es:return k=S._init,x(_,w,k(S._payload),T)}if(Wu(S))return v(_,w,S,T);if(Cu(S))return y(_,w,S,T);cp(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=i(w,S),w.return=_,_=w):(n(_,w),w=F0(S,_.mode,T),w.return=_,_=w),s(_)):n(_,w)}return x}var Cc=zA(!0),UA=zA(!1),jd={},Ki=Zs(jd),Qf=Zs(jd),Jf=Zs(jd);function Na(e){if(e===jd)throw Error(Ee(174));return e}function cS(e,t){switch(Et(Jf,t),Et(Qf,e),Et(Ki,jd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mb(t,e)}Rt(Ki),Et(Ki,t)}function Ec(){Rt(Ki),Rt(Qf),Rt(Jf)}function VA(e){Na(Jf.current);var t=Na(Ki.current),n=mb(t,e.type);t!==n&&(Et(Qf,e),Et(Ki,n))}function uS(e){Qf.current===e&&(Rt(Ki),Rt(Qf))}var Bt=Zs(0);function Mg(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 N0=[];function fS(){for(var e=0;e<N0.length;e++)N0[e]._workInProgressVersionPrimary=null;N0.length=0}var nm=Io.ReactCurrentDispatcher,L0=Io.ReactCurrentBatchConfig,Ga=0,Ut=null,mn=null,Cn=null,Rg=!1,pf=!1,ed=0,hH=0;function qn(){throw Error(Ee(321))}function dS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Oi(e[n],t[n]))return!1;return!0}function hS(e,t,n,r,i,o){if(Ga=o,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nm.current=e===null||e.memoizedState===null?vH:yH,e=n(r,i),pf){o=0;do{if(pf=!1,ed=0,25<=o)throw Error(Ee(301));o+=1,Cn=mn=null,t.updateQueue=null,nm.current=_H,e=n(r,i)}while(pf)}if(nm.current=Ng,t=mn!==null&&mn.next!==null,Ga=0,Cn=mn=Ut=null,Rg=!1,t)throw Error(Ee(300));return e}function pS(){var e=ed!==0;return ed=0,e}function zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Ut.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function ei(){if(mn===null){var e=Ut.alternate;e=e!==null?e.memoizedState:null}else e=mn.next;var t=Cn===null?Ut.memoizedState:Cn.next;if(t!==null)Cn=t,mn=e;else{if(e===null)throw Error(Ee(310));mn=e,e={memoizedState:mn.memoizedState,baseState:mn.baseState,baseQueue:mn.baseQueue,queue:mn.queue,next:null},Cn===null?Ut.memoizedState=Cn=e:Cn=Cn.next=e}return Cn}function td(e,t){return typeof t=="function"?t(e):t}function D0(e){var t=ei(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=mn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var f=c.lane;if((Ga&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 h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=h,s=r):l=l.next=h,Ut.lanes|=f,Za|=f}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Oi(r,t.memoizedState)||(gr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ut.lanes|=o,Za|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function A0(e){var t=ei(),n=t.queue;if(n===null)throw Error(Ee(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Oi(o,t.memoizedState)||(gr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function HA(){}function WA(e,t){var n=Ut,r=ei(),i=t(),o=!Oi(r.memoizedState,i);if(o&&(r.memoizedState=i,gr=!0),r=r.queue,mS(GA.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Cn!==null&&Cn.memoizedState.tag&1){if(n.flags|=2048,nd(9,qA.bind(null,n,r,i,t),void 0,null),Tn===null)throw Error(Ee(349));Ga&30||YA(n,t,i)}return i}function YA(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 qA(e,t,n,r){t.value=n,t.getSnapshot=r,ZA(t)&&KA(e)}function GA(e,t,n){return n(function(){ZA(t)&&KA(e)})}function ZA(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oi(e,n)}catch{return!0}}function KA(e){var t=Oo(e,1);t!==null&&Si(t,e,1,-1)}function fk(e){var t=zi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:td,lastRenderedState:e},t.queue=e,e=e.dispatch=gH.bind(null,Ut,e),[t.memoizedState,e]}function nd(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 XA(){return ei().memoizedState}function rm(e,t,n,r){var i=zi();Ut.flags|=e,i.memoizedState=nd(1|t,n,void 0,r===void 0?null:r)}function yy(e,t,n,r){var i=ei();r=r===void 0?null:r;var o=void 0;if(mn!==null){var s=mn.memoizedState;if(o=s.destroy,r!==null&&dS(r,s.deps)){i.memoizedState=nd(t,n,o,r);return}}Ut.flags|=e,i.memoizedState=nd(1|t,n,o,r)}function dk(e,t){return rm(8390656,8,e,t)}function mS(e,t){return yy(2048,8,e,t)}function QA(e,t){return yy(4,2,e,t)}function JA(e,t){return yy(4,4,e,t)}function e4(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 t4(e,t,n){return n=n!=null?n.concat([e]):null,yy(4,4,e4.bind(null,t,e),n)}function gS(){}function n4(e,t){var n=ei();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function r4(e,t){var n=ei();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function i4(e,t,n){return Ga&21?(Oi(n,t)||(n=aA(),Ut.lanes|=n,Za|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,gr=!0),e.memoizedState=n)}function pH(e,t){var n=_t;_t=n!==0&&4>n?n:4,e(!0);var r=L0.transition;L0.transition={};try{e(!1),t()}finally{_t=n,L0.transition=r}}function o4(){return ei().memoizedState}function mH(e,t,n){var r=Os(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s4(e))a4(t,n);else if(n=IA(e,t,n,r),n!==null){var i=cr();Si(n,e,r,i),l4(n,t,r)}}function gH(e,t,n){var r=Os(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s4(e))a4(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Oi(a,s)){var l=t.interleaved;l===null?(i.next=i,aS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=IA(e,t,i,r),n!==null&&(i=cr(),Si(n,e,r,i),l4(n,t,r))}}function s4(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function a4(e,t){pf=Rg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function l4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,q2(e,n)}}var Ng={readContext:Jr,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:!1},vH={readContext:Jr,useCallback:function(e,t){return zi().memoizedState=[e,t===void 0?null:t],e},useContext:Jr,useEffect:dk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rm(4194308,4,e4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rm(4194308,4,e,t)},useInsertionEffect:function(e,t){return rm(4,2,e,t)},useMemo:function(e,t){var n=zi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zi();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=mH.bind(null,Ut,e),[r.memoizedState,e]},useRef:function(e){var t=zi();return e={current:e},t.memoizedState=e},useState:fk,useDebugValue:gS,useDeferredValue:function(e){return zi().memoizedState=e},useTransition:function(){var e=fk(!1),t=e[0];return e=pH.bind(null,e[1]),zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ut,i=zi();if(jt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),Tn===null)throw Error(Ee(349));Ga&30||YA(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,dk(GA.bind(null,r,o,e),[e]),r.flags|=2048,nd(9,qA.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zi(),t=Tn.identifierPrefix;if(jt){var n=xo,r=wo;n=(r&~(1<<32-xi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ed++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hH++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yH={readContext:Jr,useCallback:n4,useContext:Jr,useEffect:mS,useImperativeHandle:t4,useInsertionEffect:QA,useLayoutEffect:JA,useMemo:r4,useReducer:D0,useRef:XA,useState:function(){return D0(td)},useDebugValue:gS,useDeferredValue:function(e){var t=ei();return i4(t,mn.memoizedState,e)},useTransition:function(){var e=D0(td)[0],t=ei().memoizedState;return[e,t]},useMutableSource:HA,useSyncExternalStore:WA,useId:o4,unstable_isNewReconciler:!1},_H={readContext:Jr,useCallback:n4,useContext:Jr,useEffect:mS,useImperativeHandle:t4,useInsertionEffect:QA,useLayoutEffect:JA,useMemo:r4,useReducer:A0,useRef:XA,useState:function(){return A0(td)},useDebugValue:gS,useDeferredValue:function(e){var t=ei();return mn===null?t.memoizedState=e:i4(t,mn.memoizedState,e)},useTransition:function(){var e=A0(td)[0],t=ei().memoizedState;return[e,t]},useMutableSource:HA,useSyncExternalStore:WA,useId:o4,unstable_isNewReconciler:!1};function Tc(e,t){try{var n="",r=t;do n+=qU(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 j0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bH=typeof WeakMap=="function"?WeakMap:Map;function c4(e,t,n){n=So(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Dg||(Dg=!0,Gb=r),Fb(e,t)},n}function u4(e,t,n){n=So(-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(){Fb(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Fb(e,t),typeof r!="function"&&(Ts===null?Ts=new Set([this]):Ts.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function hk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bH;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=DH.bind(null,e,t,n),t.then(e,e))}function pk(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 mk(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=So(-1,1),t.tag=2,Es(n,t,1))),n.lanes|=1),e)}var wH=Io.ReactCurrentOwner,gr=!1;function ar(e,t,n,r){t.child=e===null?UA(t,null,n,r):Cc(t,e.child,n,r)}function gk(e,t,n,r,i){n=n.render;var o=t.ref;return ac(t,i),r=hS(e,t,n,r,o,i),n=pS(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Po(e,t,i)):(jt&&n&&tS(t),t.flags|=1,ar(e,t,r,i),t.child)}function vk(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!CS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,f4(e,t,o,r,i)):(e=am(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gf,n(s,r)&&e.ref===t.ref)return Po(e,t,i)}return t.flags|=1,e=Ps(o,r),e.ref=t.ref,e.return=t,t.child=e}function f4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Gf(o,r)&&e.ref===t.ref)if(gr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(gr=!0);else return t.lanes=e.lanes,Po(e,t,i)}return $b(e,t,n,r,i)}function d4(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},Et(Xl,Or),Or|=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,Et(Xl,Or),Or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Et(Xl,Or),Or|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Et(Xl,Or),Or|=r;return ar(e,t,i,n),t.child}function h4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $b(e,t,n,r,i){var o=_r(n)?Ya:tr.current;return o=xc(t,o),ac(t,i),n=hS(e,t,n,r,o,i),r=pS(),e!==null&&!gr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Po(e,t,i)):(jt&&r&&tS(t),t.flags|=1,ar(e,t,n,i),t.child)}function yk(e,t,n,r,i){if(_r(n)){var o=!0;Cg(t)}else o=!1;if(ac(t,i),t.stateNode===null)im(e,t),BA(t,n,r),Ib(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Jr(c):(c=_r(n)?Ya:tr.current,c=xc(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&ck(t,s,r,c),ts=!1;var p=t.memoizedState;s.state=p,kg(t,r,s,i),l=t.memoizedState,a!==r||p!==l||yr.current||ts?(typeof f=="function"&&(jb(t,n,f,r),l=t.memoizedState),(a=ts||lk(t,n,a,r,p,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,FA(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:di(t.type,a),s.props=c,h=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Jr(l):(l=_r(n)?Ya:tr.current,l=xc(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||p!==l)&&ck(t,s,r,l),ts=!1,p=t.memoizedState,s.state=p,kg(t,r,s,i);var v=t.memoizedState;a!==h||p!==v||yr.current||ts?(typeof m=="function"&&(jb(t,n,m,r),v=t.memoizedState),(c=ts||lk(t,n,c,r,p,v,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Bb(e,t,n,r,o,i)}function Bb(e,t,n,r,i,o){h4(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&rk(t,n,!1),Po(e,t,o);r=t.stateNode,wH.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Cc(t,e.child,null,o),t.child=Cc(t,null,a,o)):ar(e,t,a,o),t.memoizedState=r.state,i&&rk(t,n,!0),t.child}function p4(e){var t=e.stateNode;t.pendingContext?nk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nk(e,t.context,!1),cS(e,t.containerInfo)}function _k(e,t,n,r,i){return Sc(),rS(i),t.flags|=256,ar(e,t,n,r),t.child}var zb={dehydrated:null,treeContext:null,retryLane:0};function Ub(e){return{baseLanes:e,cachePool:null,transitions:null}}function m4(e,t,n){var r=t.pendingProps,i=Bt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Et(Bt,i&1),e===null)return Db(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=wy(s,r,0,null),e=Fa(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ub(n),t.memoizedState=zb,e):vS(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return xH(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ps(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Ps(a,o):(o=Fa(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ub(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=zb,r}return o=e.child,e=o.sibling,r=Ps(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 vS(e,t){return t=wy({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function up(e,t,n,r){return r!==null&&rS(r),Cc(t,e.child,null,n),e=vS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xH(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=j0(Error(Ee(422))),up(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=wy({mode:"visible",children:r.children},i,0,null),o=Fa(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Cc(t,e.child,null,s),t.child.memoizedState=Ub(s),t.memoizedState=zb,o);if(!(t.mode&1))return up(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Ee(419)),r=j0(o,r,void 0),up(e,t,s,r)}if(a=(s&e.childLanes)!==0,gr||a){if(r=Tn,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Oo(e,i),Si(r,e,i,-1))}return SS(),r=j0(Error(Ee(421))),up(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=AH.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,kr=Cs(i.nextSibling),Rr=t,jt=!0,mi=null,e!==null&&(Hr[Wr++]=wo,Hr[Wr++]=xo,Hr[Wr++]=qa,wo=e.id,xo=e.overflow,qa=t),t=vS(t,r.children),t.flags|=4096,t)}function bk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ab(e.return,t,n)}function I0(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 g4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ar(e,t,r.children,n),r=Bt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bk(e,n,t);else if(e.tag===19)bk(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(Et(Bt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Mg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),I0(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&&Mg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}I0(t,!0,n,null,o);break;case"together":I0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function im(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Po(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ee(153));if(t.child!==null){for(e=t.child,n=Ps(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ps(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function SH(e,t,n){switch(t.tag){case 3:p4(t),Sc();break;case 5:VA(t);break;case 1:_r(t.type)&&Cg(t);break;case 4:cS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Et(Og,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Et(Bt,Bt.current&1),t.flags|=128,null):n&t.child.childLanes?m4(e,t,n):(Et(Bt,Bt.current&1),e=Po(e,t,n),e!==null?e.sibling:null);Et(Bt,Bt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return g4(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Et(Bt,Bt.current),r)break;return null;case 22:case 23:return t.lanes=0,d4(e,t,n)}return Po(e,t,n)}var v4,Vb,y4,_4;v4=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}};Vb=function(){};y4=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Na(Ki.current);var o=null;switch(n){case"input":i=fb(e,i),r=fb(e,r),o=[];break;case"select":i=Vt({},i,{value:void 0}),r=Vt({},r,{value:void 0}),o=[];break;case"textarea":i=pb(e,i),r=pb(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xg)}gb(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(zf.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(zf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Tt("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};_4=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mu(e,t){if(!jt)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 Gn(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 CH(e,t,n){var r=t.pendingProps;switch(nS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(t),null;case 1:return _r(t.type)&&Sg(),Gn(t),null;case 3:return r=t.stateNode,Ec(),Rt(yr),Rt(tr),fS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(lp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mi!==null&&(Xb(mi),mi=null))),Vb(e,t),Gn(t),null;case 5:uS(t);var i=Na(Jf.current);if(n=t.type,e!==null&&t.stateNode!=null)y4(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ee(166));return Gn(t),null}if(e=Na(Ki.current),lp(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Vi]=t,r[Xf]=o,e=(t.mode&1)!==0,n){case"dialog":Tt("cancel",r),Tt("close",r);break;case"iframe":case"object":case"embed":Tt("load",r);break;case"video":case"audio":for(i=0;i<qu.length;i++)Tt(qu[i],r);break;case"source":Tt("error",r);break;case"img":case"image":case"link":Tt("error",r),Tt("load",r);break;case"details":Tt("toggle",r);break;case"input":kP(r,o),Tt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Tt("invalid",r);break;case"textarea":RP(r,o),Tt("invalid",r)}gb(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&ap(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&ap(r.textContent,a,e),i=["children",""+a]):zf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Tt("scroll",r)}switch(n){case"input":Jh(r),MP(r,o,!0);break;case"textarea":Jh(r),NP(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=xg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=YD(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vi]=t,e[Xf]=r,v4(e,t,!1,!1),t.stateNode=e;e:{switch(s=vb(n,r),n){case"dialog":Tt("cancel",e),Tt("close",e),i=r;break;case"iframe":case"object":case"embed":Tt("load",e),i=r;break;case"video":case"audio":for(i=0;i<qu.length;i++)Tt(qu[i],e);i=r;break;case"source":Tt("error",e),i=r;break;case"img":case"image":case"link":Tt("error",e),Tt("load",e),i=r;break;case"details":Tt("toggle",e),i=r;break;case"input":kP(e,r),i=fb(e,r),Tt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Vt({},r,{value:void 0}),Tt("invalid",e);break;case"textarea":RP(e,r),i=pb(e,r),Tt("invalid",e);break;default:i=r}gb(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?ZD(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qD(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Uf(e,l):typeof l=="number"&&Uf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(zf.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Tt("scroll",e):l!=null&&z2(e,o,l,s))}switch(n){case"input":Jh(e),MP(e,r,!1);break;case"textarea":Jh(e),NP(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Is(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?rc(e,!!r.multiple,o,!1):r.defaultValue!=null&&rc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xg)}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 Gn(t),null;case 6:if(e&&t.stateNode!=null)_4(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=Na(Jf.current),Na(Ki.current),lp(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vi]=t,(o=r.nodeValue!==n)&&(e=Rr,e!==null))switch(e.tag){case 3:ap(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ap(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vi]=t,t.stateNode=r}return Gn(t),null;case 13:if(Rt(Bt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(jt&&kr!==null&&t.mode&1&&!(t.flags&128))jA(),Sc(),t.flags|=98560,o=!1;else if(o=lp(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Ee(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ee(317));o[Vi]=t}else Sc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gn(t),o=!1}else mi!==null&&(Xb(mi),mi=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Bt.current&1?vn===0&&(vn=3):SS())),t.updateQueue!==null&&(t.flags|=4),Gn(t),null);case 4:return Ec(),Vb(e,t),e===null&&Zf(t.stateNode.containerInfo),Gn(t),null;case 10:return sS(t.type._context),Gn(t),null;case 17:return _r(t.type)&&Sg(),Gn(t),null;case 19:if(Rt(Bt),o=t.memoizedState,o===null)return Gn(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Mu(o,!1);else{if(vn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Mg(e),s!==null){for(t.flags|=128,Mu(o,!1),r=s.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,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Et(Bt,Bt.current&1|2),t.child}e=e.sibling}o.tail!==null&&en()>Oc&&(t.flags|=128,r=!0,Mu(o,!1),t.lanes=4194304)}else{if(!r)if(e=Mg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return Gn(t),null}else 2*en()-o.renderingStartTime>Oc&&n!==1073741824&&(t.flags|=128,r=!0,Mu(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=en(),t.sibling=null,n=Bt.current,Et(Bt,r?n&1|2:n&1),t):(Gn(t),null);case 22:case 23:return xS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Gn(t),t.subtreeFlags&6&&(t.flags|=8192)):Gn(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function EH(e,t){switch(nS(t),t.tag){case 1:return _r(t.type)&&Sg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ec(),Rt(yr),Rt(tr),fS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uS(t),null;case 13:if(Rt(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));Sc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rt(Bt),null;case 4:return Ec(),null;case 10:return sS(t.type._context),null;case 22:case 23:return xS(),null;case 24:return null;default:return null}}var fp=!1,Xn=!1,TH=typeof WeakSet=="function"?WeakSet:Set,ze=null;function Kl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function Hb(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var wk=!1;function OH(e,t){if(Ob=_g,e=SA(),eS(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 s=0,a=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pb={focusedElem:e,selectionRange:n},_g=!1,ze=t;ze!==null;)if(t=ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ze=e;else for(;ze!==null;){t=ze;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:di(t.type,y),x);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(T){Wt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ze=e;break}ze=t.return}return v=wk,wk=!1,v}function mf(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&&Hb(t,n,o)}i=i.next}while(i!==r)}}function _y(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 Wb(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 b4(e){var t=e.alternate;t!==null&&(e.alternate=null,b4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[Xf],delete t[Rb],delete t[cH],delete t[uH])),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 w4(e){return e.tag===5||e.tag===3||e.tag===4}function xk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||w4(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 Yb(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=xg));else if(r!==4&&(e=e.child,e!==null))for(Yb(e,t,n),e=e.sibling;e!==null;)Yb(e,t,n),e=e.sibling}function qb(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(qb(e,t,n),e=e.sibling;e!==null;)qb(e,t,n),e=e.sibling}var Bn=null,hi=!1;function Zo(e,t,n){for(n=n.child;n!==null;)x4(e,t,n),n=n.sibling}function x4(e,t,n){if(Zi&&typeof Zi.onCommitFiberUnmount=="function")try{Zi.onCommitFiberUnmount(fy,n)}catch{}switch(n.tag){case 5:Xn||Kl(n,t);case 6:var r=Bn,i=hi;Bn=null,Zo(e,t,n),Bn=r,hi=i,Bn!==null&&(hi?(e=Bn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bn.removeChild(n.stateNode));break;case 18:Bn!==null&&(hi?(e=Bn,n=n.stateNode,e.nodeType===8?M0(e.parentNode,n):e.nodeType===1&&M0(e,n),Yf(e)):M0(Bn,n.stateNode));break;case 4:r=Bn,i=hi,Bn=n.stateNode.containerInfo,hi=!0,Zo(e,t,n),Bn=r,hi=i;break;case 0:case 11:case 14:case 15:if(!Xn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Hb(n,t,s),i=i.next}while(i!==r)}Zo(e,t,n);break;case 1:if(!Xn&&(Kl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Wt(n,t,a)}Zo(e,t,n);break;case 21:Zo(e,t,n);break;case 22:n.mode&1?(Xn=(r=Xn)||n.memoizedState!==null,Zo(e,t,n),Xn=r):Zo(e,t,n);break;default:Zo(e,t,n)}}function Sk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new TH),t.forEach(function(r){var i=jH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fi(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,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Bn=a.stateNode,hi=!1;break e;case 3:Bn=a.stateNode.containerInfo,hi=!0;break e;case 4:Bn=a.stateNode.containerInfo,hi=!0;break e}a=a.return}if(Bn===null)throw Error(Ee(160));x4(o,s,i),Bn=null,hi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Wt(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)S4(t,e),t=t.sibling}function S4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fi(t,e),ji(e),r&4){try{mf(3,e,e.return),_y(3,e)}catch(y){Wt(e,e.return,y)}try{mf(5,e,e.return)}catch(y){Wt(e,e.return,y)}}break;case 1:fi(t,e),ji(e),r&512&&n!==null&&Kl(n,n.return);break;case 5:if(fi(t,e),ji(e),r&512&&n!==null&&Kl(n,n.return),e.flags&32){var i=e.stateNode;try{Uf(i,"")}catch(y){Wt(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&HD(i,o),vb(a,s);var c=vb(a,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?ZD(i,h):f==="dangerouslySetInnerHTML"?qD(i,h):f==="children"?Uf(i,h):z2(i,f,h,c)}switch(a){case"input":db(i,o);break;case"textarea":WD(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?rc(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?rc(i,!!o.multiple,o.defaultValue,!0):rc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Xf]=o}catch(y){Wt(e,e.return,y)}}break;case 6:if(fi(t,e),ji(e),r&4){if(e.stateNode===null)throw Error(Ee(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Wt(e,e.return,y)}}break;case 3:if(fi(t,e),ji(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yf(t.containerInfo)}catch(y){Wt(e,e.return,y)}break;case 4:fi(t,e),ji(e);break;case 13:fi(t,e),ji(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(bS=en())),r&4&&Sk(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Xn=(c=Xn)||f,fi(t,e),Xn=c):fi(t,e),ji(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(ze=e,f=e.child;f!==null;){for(h=ze=f;ze!==null;){switch(p=ze,m=p.child,p.tag){case 0:case 11:case 14:case 15:mf(4,p,p.return);break;case 1:Kl(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){Wt(r,n,y)}}break;case 5:Kl(p,p.return);break;case 22:if(p.memoizedState!==null){Ek(h);continue}}m!==null?(m.return=p,ze=m):Ek(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=GD("display",s))}catch(y){Wt(e,e.return,y)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){Wt(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:fi(t,e),ji(e),r&4&&Sk(e);break;case 21:break;default:fi(t,e),ji(e)}}function ji(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(w4(n)){var r=n;break e}n=n.return}throw Error(Ee(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Uf(i,""),r.flags&=-33);var o=xk(e);qb(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=xk(e);Yb(e,a,s);break;default:throw Error(Ee(161))}}catch(l){Wt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function PH(e,t,n){ze=e,C4(e)}function C4(e,t,n){for(var r=(e.mode&1)!==0;ze!==null;){var i=ze,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||fp;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Xn;a=fp;var c=Xn;if(fp=s,(Xn=l)&&!c)for(ze=i;ze!==null;)s=ze,l=s.child,s.tag===22&&s.memoizedState!==null?Tk(i):l!==null?(l.return=s,ze=l):Tk(i);for(;o!==null;)ze=o,C4(o),o=o.sibling;ze=i,fp=a,Xn=c}Ck(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ze=o):Ck(e)}}function Ck(e){for(;ze!==null;){var t=ze;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xn||_y(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:di(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ak(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ak(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;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 h=f.dehydrated;h!==null&&Yf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}Xn||t.flags&512&&Wb(t)}catch(p){Wt(t,t.return,p)}}if(t===e){ze=null;break}if(n=t.sibling,n!==null){n.return=t.return,ze=n;break}ze=t.return}}function Ek(e){for(;ze!==null;){var t=ze;if(t===e){ze=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ze=n;break}ze=t.return}}function Tk(e){for(;ze!==null;){var t=ze;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_y(4,t)}catch(l){Wt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Wt(t,i,l)}}var o=t.return;try{Wb(t)}catch(l){Wt(t,o,l)}break;case 5:var s=t.return;try{Wb(t)}catch(l){Wt(t,s,l)}}}catch(l){Wt(t,t.return,l)}if(t===e){ze=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ze=a;break}ze=t.return}}var kH=Math.ceil,Lg=Io.ReactCurrentDispatcher,yS=Io.ReactCurrentOwner,Zr=Io.ReactCurrentBatchConfig,ut=0,Tn=null,un=null,Vn=0,Or=0,Xl=Zs(0),vn=0,rd=null,Za=0,by=0,_S=0,gf=null,hr=null,bS=0,Oc=1/0,ho=null,Dg=!1,Gb=null,Ts=null,dp=!1,ps=null,Ag=0,vf=0,Zb=null,om=-1,sm=0;function cr(){return ut&6?en():om!==-1?om:om=en()}function Os(e){return e.mode&1?ut&2&&Vn!==0?Vn&-Vn:dH.transition!==null?(sm===0&&(sm=aA()),sm):(e=_t,e!==0||(e=window.event,e=e===void 0?16:pA(e.type)),e):1}function Si(e,t,n,r){if(50<vf)throw vf=0,Zb=null,Error(Ee(185));Ld(e,n,r),(!(ut&2)||e!==Tn)&&(e===Tn&&(!(ut&2)&&(by|=n),vn===4&&ss(e,Vn)),br(e,r),n===1&&ut===0&&!(t.mode&1)&&(Oc=en()+500,gy&&Ks()))}function br(e,t){var n=e.callbackNode;dV(e,t);var r=yg(e,e===Tn?Vn:0);if(r===0)n!==null&&AP(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&AP(n),t===1)e.tag===0?fH(Ok.bind(null,e)):LA(Ok.bind(null,e)),aH(function(){!(ut&6)&&Ks()}),n=null;else{switch(lA(r)){case 1:n=Y2;break;case 4:n=oA;break;case 16:n=vg;break;case 536870912:n=sA;break;default:n=vg}n=N4(n,E4.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function E4(e,t){if(om=-1,sm=0,ut&6)throw Error(Ee(327));var n=e.callbackNode;if(lc()&&e.callbackNode!==n)return null;var r=yg(e,e===Tn?Vn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=jg(e,r);else{t=r;var i=ut;ut|=2;var o=O4();(Tn!==e||Vn!==t)&&(ho=null,Oc=en()+500,Ia(e,t));do try{NH();break}catch(a){T4(e,a)}while(1);oS(),Lg.current=o,ut=i,un!==null?t=0:(Tn=null,Vn=0,t=vn)}if(t!==0){if(t===2&&(i=xb(e),i!==0&&(r=i,t=Kb(e,i))),t===1)throw n=rd,Ia(e,0),ss(e,r),br(e,en()),n;if(t===6)ss(e,r);else{if(i=e.current.alternate,!(r&30)&&!MH(i)&&(t=jg(e,r),t===2&&(o=xb(e),o!==0&&(r=o,t=Kb(e,o))),t===1))throw n=rd,Ia(e,0),ss(e,r),br(e,en()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:Sa(e,hr,ho);break;case 3:if(ss(e,r),(r&130023424)===r&&(t=bS+500-en(),10<t)){if(yg(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){cr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Mb(Sa.bind(null,e,hr,ho),t);break}Sa(e,hr,ho);break;case 4:if(ss(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-xi(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kH(r/1960))-r,10<r){e.timeoutHandle=Mb(Sa.bind(null,e,hr,ho),r);break}Sa(e,hr,ho);break;case 5:Sa(e,hr,ho);break;default:throw Error(Ee(329))}}}return br(e,en()),e.callbackNode===n?E4.bind(null,e):null}function Kb(e,t){var n=gf;return e.current.memoizedState.isDehydrated&&(Ia(e,t).flags|=256),e=jg(e,t),e!==2&&(t=hr,hr=n,t!==null&&Xb(t)),e}function Xb(e){hr===null?hr=e:hr.push.apply(hr,e)}function MH(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(!Oi(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 ss(e,t){for(t&=~_S,t&=~by,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xi(t),r=1<<n;e[n]=-1,t&=~r}}function Ok(e){if(ut&6)throw Error(Ee(327));lc();var t=yg(e,0);if(!(t&1))return br(e,en()),null;var n=jg(e,t);if(e.tag!==0&&n===2){var r=xb(e);r!==0&&(t=r,n=Kb(e,r))}if(n===1)throw n=rd,Ia(e,0),ss(e,t),br(e,en()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sa(e,hr,ho),br(e,en()),null}function wS(e,t){var n=ut;ut|=1;try{return e(t)}finally{ut=n,ut===0&&(Oc=en()+500,gy&&Ks())}}function Ka(e){ps!==null&&ps.tag===0&&!(ut&6)&&lc();var t=ut;ut|=1;var n=Zr.transition,r=_t;try{if(Zr.transition=null,_t=1,e)return e()}finally{_t=r,Zr.transition=n,ut=t,!(ut&6)&&Ks()}}function xS(){Or=Xl.current,Rt(Xl)}function Ia(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sH(n)),un!==null)for(n=un.return;n!==null;){var r=n;switch(nS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sg();break;case 3:Ec(),Rt(yr),Rt(tr),fS();break;case 5:uS(r);break;case 4:Ec();break;case 13:Rt(Bt);break;case 19:Rt(Bt);break;case 10:sS(r.type._context);break;case 22:case 23:xS()}n=n.return}if(Tn=e,un=e=Ps(e.current,null),Vn=Or=t,vn=0,rd=null,_S=by=Za=0,hr=gf=null,Ra!==null){for(t=0;t<Ra.length;t++)if(n=Ra[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Ra=null}return e}function T4(e,t){do{var n=un;try{if(oS(),nm.current=Ng,Rg){for(var r=Ut.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Rg=!1}if(Ga=0,Cn=mn=Ut=null,pf=!1,ed=0,yS.current=null,n===null||n.return===null){vn=1,rd=t,un=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Vn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=a,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===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 m=pk(s);if(m!==null){m.flags&=-257,mk(m,s,a,o,t),m.mode&1&&hk(o,c,t),t=m,l=c;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){hk(o,c,t),SS();break e}l=Error(Ee(426))}}else if(jt&&a.mode&1){var x=pk(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),mk(x,s,a,o,t),rS(Tc(l,a));break e}}o=l=Tc(l,a),vn!==4&&(vn=2),gf===null?gf=[o]:gf.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=c4(o,l,t);sk(o,_);break e;case 1:a=l;var w=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Ts===null||!Ts.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=u4(o,a,t);sk(o,T);break e}}o=o.return}while(o!==null)}k4(n)}catch(P){t=P,un===n&&n!==null&&(un=n=n.return);continue}break}while(1)}function O4(){var e=Lg.current;return Lg.current=Ng,e===null?Ng:e}function SS(){(vn===0||vn===3||vn===2)&&(vn=4),Tn===null||!(Za&268435455)&&!(by&268435455)||ss(Tn,Vn)}function jg(e,t){var n=ut;ut|=2;var r=O4();(Tn!==e||Vn!==t)&&(ho=null,Ia(e,t));do try{RH();break}catch(i){T4(e,i)}while(1);if(oS(),ut=n,Lg.current=r,un!==null)throw Error(Ee(261));return Tn=null,Vn=0,vn}function RH(){for(;un!==null;)P4(un)}function NH(){for(;un!==null&&!rV();)P4(un)}function P4(e){var t=R4(e.alternate,e,Or);e.memoizedProps=e.pendingProps,t===null?k4(e):un=t,yS.current=null}function k4(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=EH(n,t),n!==null){n.flags&=32767,un=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vn=6,un=null;return}}else if(n=CH(n,t,Or),n!==null){un=n;return}if(t=t.sibling,t!==null){un=t;return}un=t=e}while(t!==null);vn===0&&(vn=5)}function Sa(e,t,n){var r=_t,i=Zr.transition;try{Zr.transition=null,_t=1,LH(e,t,n,r)}finally{Zr.transition=i,_t=r}return null}function LH(e,t,n,r){do lc();while(ps!==null);if(ut&6)throw Error(Ee(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(Ee(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(hV(e,o),e===Tn&&(un=Tn=null,Vn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||dp||(dp=!0,N4(vg,function(){return lc(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Zr.transition,Zr.transition=null;var s=_t;_t=1;var a=ut;ut|=4,yS.current=null,OH(e,n),S4(n,e),JV(Pb),_g=!!Ob,Pb=Ob=null,e.current=n,PH(n),iV(),ut=a,_t=s,Zr.transition=o}else e.current=n;if(dp&&(dp=!1,ps=e,Ag=i),o=e.pendingLanes,o===0&&(Ts=null),aV(n.stateNode),br(e,en()),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(Dg)throw Dg=!1,e=Gb,Gb=null,e;return Ag&1&&e.tag!==0&&lc(),o=e.pendingLanes,o&1?e===Zb?vf++:(vf=0,Zb=e):vf=0,Ks(),null}function lc(){if(ps!==null){var e=lA(Ag),t=Zr.transition,n=_t;try{if(Zr.transition=null,_t=16>e?16:e,ps===null)var r=!1;else{if(e=ps,ps=null,Ag=0,ut&6)throw Error(Ee(331));var i=ut;for(ut|=4,ze=e.current;ze!==null;){var o=ze,s=o.child;if(ze.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(ze=c;ze!==null;){var f=ze;switch(f.tag){case 0:case 11:case 15:mf(8,f,o)}var h=f.child;if(h!==null)h.return=f,ze=h;else for(;ze!==null;){f=ze;var p=f.sibling,m=f.return;if(b4(f),f===c){ze=null;break}if(p!==null){p.return=m,ze=p;break}ze=m}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}ze=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,ze=s;else e:for(;ze!==null;){if(o=ze,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mf(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,ze=_;break e}ze=o.return}}var w=e.current;for(ze=w;ze!==null;){s=ze;var S=s.child;if(s.subtreeFlags&2064&&S!==null)S.return=s,ze=S;else e:for(s=w;ze!==null;){if(a=ze,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:_y(9,a)}}catch(P){Wt(a,a.return,P)}if(a===s){ze=null;break e}var T=a.sibling;if(T!==null){T.return=a.return,ze=T;break e}ze=a.return}}if(ut=i,Ks(),Zi&&typeof Zi.onPostCommitFiberRoot=="function")try{Zi.onPostCommitFiberRoot(fy,e)}catch{}r=!0}return r}finally{_t=n,Zr.transition=t}}return!1}function Pk(e,t,n){t=Tc(n,t),t=c4(e,t,1),e=Es(e,t,1),t=cr(),e!==null&&(Ld(e,1,t),br(e,t))}function Wt(e,t,n){if(e.tag===3)Pk(e,e,n);else for(;t!==null;){if(t.tag===3){Pk(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ts===null||!Ts.has(r))){e=Tc(n,e),e=u4(t,e,1),t=Es(t,e,1),e=cr(),t!==null&&(Ld(t,1,e),br(t,e));break}}t=t.return}}function DH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=cr(),e.pingedLanes|=e.suspendedLanes&n,Tn===e&&(Vn&n)===n&&(vn===4||vn===3&&(Vn&130023424)===Vn&&500>en()-bS?Ia(e,0):_S|=n),br(e,t)}function M4(e,t){t===0&&(e.mode&1?(t=np,np<<=1,!(np&130023424)&&(np=4194304)):t=1);var n=cr();e=Oo(e,t),e!==null&&(Ld(e,t,n),br(e,n))}function AH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),M4(e,n)}function jH(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(Ee(314))}r!==null&&r.delete(t),M4(e,n)}var R4;R4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yr.current)gr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gr=!1,SH(e,t,n);gr=!!(e.flags&131072)}else gr=!1,jt&&t.flags&1048576&&DA(t,Tg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;im(e,t),e=t.pendingProps;var i=xc(t,tr.current);ac(t,n),i=hS(null,t,r,e,i,n);var o=pS();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_r(r)?(o=!0,Cg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lS(t),i.updater=vy,t.stateNode=i,i._reactInternals=t,Ib(t,r,e,n),t=Bb(null,t,r,!0,o,n)):(t.tag=0,jt&&o&&tS(t),ar(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(im(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=FH(r),e=di(r,e),i){case 0:t=$b(null,t,r,e,n);break e;case 1:t=yk(null,t,r,e,n);break e;case 11:t=gk(null,t,r,e,n);break e;case 14:t=vk(null,t,r,di(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),$b(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),yk(e,t,r,i,n);case 3:e:{if(p4(t),e===null)throw Error(Ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,FA(e,t),kg(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Tc(Error(Ee(423)),t),t=_k(e,t,r,n,i);break e}else if(r!==i){i=Tc(Error(Ee(424)),t),t=_k(e,t,r,n,i);break e}else for(kr=Cs(t.stateNode.containerInfo.firstChild),Rr=t,jt=!0,mi=null,n=UA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sc(),r===i){t=Po(e,t,n);break e}ar(e,t,r,n)}t=t.child}return t;case 5:return VA(t),e===null&&Db(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,kb(r,i)?s=null:o!==null&&kb(r,o)&&(t.flags|=32),h4(e,t),ar(e,t,s,n),t.child;case 6:return e===null&&Db(t),null;case 13:return m4(e,t,n);case 4:return cS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cc(t,null,r,n):ar(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),gk(e,t,r,i,n);case 7:return ar(e,t,t.pendingProps,n),t.child;case 8:return ar(e,t,t.pendingProps.children,n),t.child;case 12:return ar(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Et(Og,r._currentValue),r._currentValue=s,o!==null)if(Oi(o.value,s)){if(o.children===i.children&&!yr.current){t=Po(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=So(-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),Ab(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Ee(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ab(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ar(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ac(t,n),i=Jr(i),r=r(i),t.flags|=1,ar(e,t,r,n),t.child;case 14:return r=t.type,i=di(r,t.pendingProps),i=di(r.type,i),vk(e,t,r,i,n);case 15:return f4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:di(r,i),im(e,t),t.tag=1,_r(r)?(e=!0,Cg(t)):e=!1,ac(t,n),BA(t,r,i),Ib(t,r,i,n),Bb(null,t,r,!0,e,n);case 19:return g4(e,t,n);case 22:return d4(e,t,n)}throw Error(Ee(156,t.tag))};function N4(e,t){return iA(e,t)}function IH(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 qr(e,t,n,r){return new IH(e,t,n,r)}function CS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FH(e){if(typeof e=="function")return CS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===V2)return 11;if(e===H2)return 14}return 2}function Ps(e,t){var n=e.alternate;return n===null?(n=qr(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 am(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")CS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case zl:return Fa(n.children,i,o,t);case U2:s=8,i|=8;break;case ab:return e=qr(12,n,t,i|2),e.elementType=ab,e.lanes=o,e;case lb:return e=qr(13,n,t,i),e.elementType=lb,e.lanes=o,e;case cb:return e=qr(19,n,t,i),e.elementType=cb,e.lanes=o,e;case zD:return wy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $D:s=10;break e;case BD:s=9;break e;case V2:s=11;break e;case H2:s=14;break e;case es:s=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=qr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fa(e,t,n,r){return e=qr(7,e,r,t),e.lanes=n,e}function wy(e,t,n,r){return e=qr(22,e,r,t),e.elementType=zD,e.lanes=n,e.stateNode={isHidden:!1},e}function F0(e,t,n){return e=qr(6,e,null,t),e.lanes=n,e}function $0(e,t,n){return t=qr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $H(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=_0(0),this.expirationTimes=_0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ES(e,t,n,r,i,o,s,a,l){return e=new $H(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lS(o),e}function BH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function L4(e){if(!e)return Fs;e=e._reactInternals;e:{if(cl(e)!==e||e.tag!==1)throw Error(Ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_r(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ee(171))}if(e.tag===1){var n=e.type;if(_r(n))return NA(e,n,t)}return t}function D4(e,t,n,r,i,o,s,a,l){return e=ES(n,r,!0,e,i,o,s,a,l),e.context=L4(null),n=e.current,r=cr(),i=Os(n),o=So(r,i),o.callback=t??null,Es(n,o,i),e.current.lanes=i,Ld(e,i,r),br(e,r),e}function xy(e,t,n,r){var i=t.current,o=cr(),s=Os(i);return n=L4(n),t.context===null?t.context=n:t.pendingContext=n,t=So(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Es(i,t,s),e!==null&&(Si(e,i,s,o),tm(e,i,s)),s}function Ig(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 kk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function TS(e,t){kk(e,t),(e=e.alternate)&&kk(e,t)}function zH(){return null}var A4=typeof reportError=="function"?reportError:function(e){console.error(e)};function OS(e){this._internalRoot=e}Sy.prototype.render=OS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));xy(e,t,null,null)};Sy.prototype.unmount=OS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ka(function(){xy(null,e,null,null)}),t[To]=null}};function Sy(e){this._internalRoot=e}Sy.prototype.unstable_scheduleHydration=function(e){if(e){var t=fA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<os.length&&t!==0&&t<os[n].priority;n++);os.splice(n,0,e),n===0&&hA(e)}};function PS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mk(){}function UH(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Ig(s);o.call(c)}}var s=D4(t,r,e,0,null,!1,!1,"",Mk);return e._reactRootContainer=s,e[To]=s.current,Zf(e.nodeType===8?e.parentNode:e),Ka(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Ig(l);a.call(c)}}var l=ES(e,0,!1,null,null,!1,!1,"",Mk);return e._reactRootContainer=l,e[To]=l.current,Zf(e.nodeType===8?e.parentNode:e),Ka(function(){xy(t,l,n,r)}),l}function Ey(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Ig(s);a.call(l)}}xy(t,s,e,i)}else s=UH(n,t,e,i,r);return Ig(s)}cA=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Yu(t.pendingLanes);n!==0&&(q2(t,n|1),br(t,en()),!(ut&6)&&(Oc=en()+500,Ks()))}break;case 13:Ka(function(){var r=Oo(e,1);if(r!==null){var i=cr();Si(r,e,1,i)}}),TS(e,1)}};G2=function(e){if(e.tag===13){var t=Oo(e,134217728);if(t!==null){var n=cr();Si(t,e,134217728,n)}TS(e,134217728)}};uA=function(e){if(e.tag===13){var t=Os(e),n=Oo(e,t);if(n!==null){var r=cr();Si(n,e,t,r)}TS(e,t)}};fA=function(){return _t};dA=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}};_b=function(e,t,n){switch(t){case"input":if(db(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=my(r);if(!i)throw Error(Ee(90));VD(r),db(r,i)}}}break;case"textarea":WD(e,n);break;case"select":t=n.value,t!=null&&rc(e,!!n.multiple,t,!1)}};QD=wS;JD=Ka;var VH={usingClientEntryPoint:!1,Events:[Ad,Wl,my,KD,XD,wS]},Ru={findFiberByHostInstance:Ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},HH={bundleType:Ru.bundleType,version:Ru.version,rendererPackageName:Ru.rendererPackageName,rendererConfig:Ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Io.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nA(e),e===null?null:e.stateNode},findFiberByHostInstance:Ru.findFiberByHostInstance||zH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hp.isDisabled&&hp.supportsFiber)try{fy=hp.inject(HH),Zi=hp}catch{}}jr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VH;jr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!PS(t))throw Error(Ee(200));return BH(e,t,null,n)};jr.createRoot=function(e,t){if(!PS(e))throw Error(Ee(299));var n=!1,r="",i=A4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ES(e,1,!1,null,null,n,!1,r,i),e[To]=t.current,Zf(e.nodeType===8?e.parentNode:e),new OS(t)};jr.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(Ee(188)):(e=Object.keys(e).join(","),Error(Ee(268,e)));return e=nA(t),e=e===null?null:e.stateNode,e};jr.flushSync=function(e){return Ka(e)};jr.hydrate=function(e,t,n){if(!Cy(t))throw Error(Ee(200));return Ey(null,e,t,!0,n)};jr.hydrateRoot=function(e,t,n){if(!PS(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=A4;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=D4(t,null,e,1,n??null,i,!1,o,s),e[To]=t.current,Zf(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 Sy(t)};jr.render=function(e,t,n){if(!Cy(t))throw Error(Ee(200));return Ey(null,e,t,!1,n)};jr.unmountComponentAtNode=function(e){if(!Cy(e))throw Error(Ee(40));return e._reactRootContainer?(Ka(function(){Ey(null,null,e,!1,function(){e._reactRootContainer=null,e[To]=null})}),!0):!1};jr.unstable_batchedUpdates=wS;jr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cy(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return Ey(e,t,n,!1,r)};jr.version="18.2.0-next-9e3b772b8-20220608";function j4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j4)}catch(e){console.error(e)}}j4(),DD.exports=jr;var Id=DD.exports;const $a=ri(Id);var I4,Rk=Id;I4=Rk.createRoot,Rk.hydrateRoot;var F4={exports:{}},$4={};/**
* @license React
* use-sync-external-store-shim.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 Pc=V;function WH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YH=typeof Object.is=="function"?Object.is:WH,qH=Pc.useState,GH=Pc.useEffect,ZH=Pc.useLayoutEffect,KH=Pc.useDebugValue;function XH(e,t){var n=t(),r=qH({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return ZH(function(){i.value=n,i.getSnapshot=t,B0(i)&&o({inst:i})},[e,n,t]),GH(function(){return B0(i)&&o({inst:i}),e(function(){B0(i)&&o({inst:i})})},[e]),KH(n),n}function B0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!YH(e,n)}catch{return!0}}function QH(e,t){return t()}var JH=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?QH:XH;$4.useSyncExternalStore=Pc.useSyncExternalStore!==void 0?Pc.useSyncExternalStore:JH;F4.exports=$4;var B4=F4.exports,eW={};/**
* @license React
* use-sync-external-store-shim/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 Ty=V,tW=B4;function nW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rW=typeof Object.is=="function"?Object.is:nW,iW=tW.useSyncExternalStore,oW=Ty.useRef,sW=Ty.useEffect,aW=Ty.useMemo,lW=Ty.useDebugValue;eW.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=oW(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=aW(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&s.hasValue){var v=s.value;if(i(v,m))return h=v}return h=m}if(v=h,rW(f,m))return v;var y=r(m);return i!==void 0&&i(v,y)?v:(f=m,h=y)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var a=iW(e,o[0],o[1]);return sW(function(){s.hasValue=!0,s.value=a},[a]),lW(a),a};function cW(e){e()}let z4=cW;const uW=e=>z4=e,fW=()=>z4,U4=V.createContext(null),dW=()=>{throw new Error("uSES not initialized!")};function cc(){return cc=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},cc.apply(this,arguments)}function kS(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 V4={exports:{}},bt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var On=typeof Symbol=="function"&&Symbol.for,MS=On?Symbol.for("react.element"):60103,RS=On?Symbol.for("react.portal"):60106,Oy=On?Symbol.for("react.fragment"):60107,Py=On?Symbol.for("react.strict_mode"):60108,ky=On?Symbol.for("react.profiler"):60114,My=On?Symbol.for("react.provider"):60109,Ry=On?Symbol.for("react.context"):60110,NS=On?Symbol.for("react.async_mode"):60111,Ny=On?Symbol.for("react.concurrent_mode"):60111,Ly=On?Symbol.for("react.forward_ref"):60112,Dy=On?Symbol.for("react.suspense"):60113,hW=On?Symbol.for("react.suspense_list"):60120,Ay=On?Symbol.for("react.memo"):60115,jy=On?Symbol.for("react.lazy"):60116,pW=On?Symbol.for("react.block"):60121,mW=On?Symbol.for("react.fundamental"):60117,gW=On?Symbol.for("react.responder"):60118,vW=On?Symbol.for("react.scope"):60119;function Fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case MS:switch(e=e.type,e){case NS:case Ny:case Oy:case ky:case Py:case Dy:return e;default:switch(e=e&&e.$$typeof,e){case Ry:case Ly:case jy:case Ay:case My:return e;default:return t}}case RS:return t}}}function H4(e){return Fr(e)===Ny}bt.AsyncMode=NS;bt.ConcurrentMode=Ny;bt.ContextConsumer=Ry;bt.ContextProvider=My;bt.Element=MS;bt.ForwardRef=Ly;bt.Fragment=Oy;bt.Lazy=jy;bt.Memo=Ay;bt.Portal=RS;bt.Profiler=ky;bt.StrictMode=Py;bt.Suspense=Dy;bt.isAsyncMode=function(e){return H4(e)||Fr(e)===NS};bt.isConcurrentMode=H4;bt.isContextConsumer=function(e){return Fr(e)===Ry};bt.isContextProvider=function(e){return Fr(e)===My};bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===MS};bt.isForwardRef=function(e){return Fr(e)===Ly};bt.isFragment=function(e){return Fr(e)===Oy};bt.isLazy=function(e){return Fr(e)===jy};bt.isMemo=function(e){return Fr(e)===Ay};bt.isPortal=function(e){return Fr(e)===RS};bt.isProfiler=function(e){return Fr(e)===ky};bt.isStrictMode=function(e){return Fr(e)===Py};bt.isSuspense=function(e){return Fr(e)===Dy};bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Oy||e===Ny||e===ky||e===Py||e===Dy||e===hW||typeof e=="object"&&e!==null&&(e.$$typeof===jy||e.$$typeof===Ay||e.$$typeof===My||e.$$typeof===Ry||e.$$typeof===Ly||e.$$typeof===mW||e.$$typeof===gW||e.$$typeof===vW||e.$$typeof===pW)};bt.typeOf=Fr;V4.exports=bt;var yW=V4.exports,LS=yW,_W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bW={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},W4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DS={};DS[LS.ForwardRef]=wW;DS[LS.Memo]=W4;function Nk(e){return LS.isMemo(e)?W4:DS[e.$$typeof]||_W}var xW=Object.defineProperty,SW=Object.getOwnPropertyNames,Lk=Object.getOwnPropertySymbols,CW=Object.getOwnPropertyDescriptor,EW=Object.getPrototypeOf,Dk=Object.prototype;function Y4(e,t,n){if(typeof t!="string"){if(Dk){var r=EW(t);r&&r!==Dk&&Y4(e,r,n)}var i=SW(t);Lk&&(i=i.concat(Lk(t)));for(var o=Nk(e),s=Nk(t),a=0;a<i.length;++a){var l=i[a];if(!bW[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var c=CW(t,l);try{xW(e,l,c)}catch{}}}}return e}var TW=Y4;const Ak=ri(TW);var q4={exports:{}},wt={};/**
* @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 AS=Symbol.for("react.element"),jS=Symbol.for("react.portal"),Iy=Symbol.for("react.fragment"),Fy=Symbol.for("react.strict_mode"),$y=Symbol.for("react.profiler"),By=Symbol.for("react.provider"),zy=Symbol.for("react.context"),OW=Symbol.for("react.server_context"),Uy=Symbol.for("react.forward_ref"),Vy=Symbol.for("react.suspense"),Hy=Symbol.for("react.suspense_list"),Wy=Symbol.for("react.memo"),Yy=Symbol.for("react.lazy"),PW=Symbol.for("react.offscreen"),kW=Symbol.for("react.module.reference");function ii(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case AS:switch(e=e.type,e){case Iy:case $y:case Fy:case Vy:case Hy:return e;default:switch(e=e&&e.$$typeof,e){case OW:case zy:case Uy:case Yy:case Wy:case By:return e;default:return t}}case jS:return t}}}wt.ContextConsumer=zy;wt.ContextProvider=By;wt.Element=AS;wt.ForwardRef=Uy;wt.Fragment=Iy;wt.Lazy=Yy;wt.Memo=Wy;wt.Portal=jS;wt.Profiler=$y;wt.StrictMode=Fy;wt.Suspense=Vy;wt.SuspenseList=Hy;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(e){return ii(e)===zy};wt.isContextProvider=function(e){return ii(e)===By};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===AS};wt.isForwardRef=function(e){return ii(e)===Uy};wt.isFragment=function(e){return ii(e)===Iy};wt.isLazy=function(e){return ii(e)===Yy};wt.isMemo=function(e){return ii(e)===Wy};wt.isPortal=function(e){return ii(e)===jS};wt.isProfiler=function(e){return ii(e)===$y};wt.isStrictMode=function(e){return ii(e)===Fy};wt.isSuspense=function(e){return ii(e)===Vy};wt.isSuspenseList=function(e){return ii(e)===Hy};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iy||e===$y||e===Fy||e===Vy||e===Hy||e===PW||typeof e=="object"&&e!==null&&(e.$$typeof===Yy||e.$$typeof===Wy||e.$$typeof===By||e.$$typeof===zy||e.$$typeof===Uy||e.$$typeof===kW||e.getModuleId!==void 0)};wt.typeOf=ii;q4.exports=wt;var MW=q4.exports;const RW=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function NW(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,c,f,h,p;function m(w,S){return l=w,c=S,f=e(l,c),h=t(r,c),p=n(f,h,c),a=!0,p}function v(){return f=e(l,c),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function y(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(h=t(r,c)),p=n(f,h,c),p}function x(){const w=e(l,c),S=!s(w,f);return f=w,S&&(p=n(f,h,c)),p}function _(w,S){const T=!o(S,c),P=!i(w,l,S,c);return l=w,c=S,T&&P?v():T?y():P?x():p}return function(S,T){return a?_(S,T):m(S,T)}}function LW(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=kS(t,RW);const s=n(e,o),a=r(e,o),l=i(e,o);return NW(s,a,l,e,o)}function DW(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 Qb(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function jk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function G4(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=jk(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=jk(c),c=o(a,l)),c},o}}function IS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function AW(e){return e&&typeof e=="object"?Qb(t=>DW(e,t)):e?typeof e=="function"?G4(e):IS(e,"mapDispatchToProps"):Qb(t=>({dispatch:t}))}function jW(e){return e?typeof e=="function"?G4(e):IS(e,"mapStateToProps"):Qb(()=>({}))}function IW(e,t,n){return cc({},n,e,t)}function FW(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function $W(e){return e?typeof e=="function"?FW(e):IS(e,"mergeProps"):()=>IW}function BW(){const e=fW();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Ik={notify(){},get:()=>[]};function Z4(e,t){let n,r=Ik;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=BW())}function c(){n&&(n(),n=void 0,r.clear(),r=Ik)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const zW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fg=zW?V.useLayoutEffect:V.useEffect;function Fk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function z0(e,t){if(Fk(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])||!Fk(e[n[i]],t[n[i]]))return!1;return!0}const UW=["reactReduxForwardedRef"];let K4=dW;const VW=e=>{K4=e},HW=[null,null];function WW(e,t,n){Fg(()=>e(...t),n)}function YW(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function qW(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const m=()=>{if(h||!a.current)return;const y=t.getState();let x,_;try{x=r(y,i.current)}catch(w){_=w,p=w}_||(p=null),x===o.current?s.current||c():(o.current=x,l.current=x,s.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function GW(e,t){return e===t}function ZW(e,t,n,{pure:r,areStatesEqual:i=GW,areOwnPropsEqual:o=z0,areStatePropsEqual:s=z0,areMergedPropsEqual:a=z0,forwardRef:l=!1,context:c=U4}={}){const f=c,h=jW(e),p=AW(t),m=$W(n),v=!!e;return x=>{const _=x.displayName||x.name||"Component",w=`Connect(${_})`,S={shouldHandleStateChanges:v,displayName:w,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function T(N){const[D,z,A]=V.useMemo(()=>{const{reactReduxForwardedRef:K}=N,ae=kS(N,UW);return[N.context,K,ae]},[N]),W=V.useMemo(()=>D&&D.Consumer&&MW.isContextConsumer(U.createElement(D.Consumer,null))?D:f,[D,f]),Y=V.useContext(W),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Z=!!Y&&!!Y.store,ee=J?N.store:Y.store,ie=Z?Y.getServerState:ee.getState,oe=V.useMemo(()=>LW(ee.dispatch,S),[ee]),[G,F]=V.useMemo(()=>{if(!v)return HW;const K=Z4(ee,J?void 0:Y.subscription),ae=K.notifyNestedSubs.bind(K);return[K,ae]},[ee,J,Y]),j=V.useMemo(()=>J?Y:cc({},Y,{subscription:G}),[J,Y,G]),B=V.useRef(),ne=V.useRef(A),H=V.useRef(),q=V.useRef(!1);V.useRef(!1);const te=V.useRef(!1),se=V.useRef();Fg(()=>(te.current=!0,()=>{te.current=!1}),[]);const pe=V.useMemo(()=>()=>H.current&&A===ne.current?H.current:oe(ee.getState(),A),[ee,A]),O=V.useMemo(()=>ae=>G?qW(v,ee,G,oe,ne,B,q,te,H,F,ae):()=>{},[G]);WW(YW,[ne,B,q,A,H,F]);let R;try{R=K4(O,pe,ie?()=>oe(ie(),A):pe)}catch(K){throw se.current&&(K.message+=`
The error may be correlated with this previous error:
${se.current.stack}
`),K}Fg(()=>{se.current=void 0,H.current=void 0,B.current=R});const I=V.useMemo(()=>U.createElement(x,cc({},R,{ref:z})),[z,x,R]);return V.useMemo(()=>v?U.createElement(W.Provider,{value:j},I):I,[W,I,j])}const k=U.memo(T);if(k.WrappedComponent=x,k.displayName=T.displayName=w,l){const D=U.forwardRef(function(A,W){return U.createElement(k,cc({},A,{reactReduxForwardedRef:W}))});return D.displayName=w,D.WrappedComponent=x,Ak(D,x)}return Ak(k,x)}}function KW({store:e,context:t,children:n,serverState:r}){const i=V.useMemo(()=>{const a=Z4(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=V.useMemo(()=>e.getState(),[e]);Fg(()=>{const{subscription:a}=i;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[i,o]);const s=t||U4;return U.createElement(s.Provider,{value:i},n)}VW(B4.useSyncExternalStore);uW(Id.unstable_batchedUpdates);/**
* @remix-run/router v1.2.1
*
* 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 $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$g.apply(this,arguments)}var ms;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ms||(ms={}));const $k="popstate";function XW(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return Jb("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:id(i)}return eY(t,n,null,e)}function fn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function QW(){return Math.random().toString(36).substr(2,8)}function Bk(e){return{usr:e.state,key:e.key}}function Jb(e,t,n,r){return n===void 0&&(n=null),$g({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yc(t):t,{state:n,key:t&&t.key||r||QW()})}function id(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 Yc(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 JW(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:id(e);return fn(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function eY(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=ms.Pop,l=null;function c(){a=ms.Pop,l&&l({action:a,location:p.location})}function f(m,v){a=ms.Push;let y=Jb(p.location,m,v);n&&n(y,m);let x=Bk(y),_=p.createHref(y);try{s.pushState(x,"",_)}catch{i.location.assign(_)}o&&l&&l({action:a,location:p.location})}function h(m,v){a=ms.Replace;let y=Jb(p.location,m,v);n&&n(y,m);let x=Bk(y),_=p.createHref(y);s.replaceState(x,"",_),o&&l&&l({action:a,location:p.location})}let p={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($k,c),l=m,()=>{i.removeEventListener($k,c),l=null}},createHref(m){return t(i,m)},encodeLocation(m){let v=JW(typeof m=="string"?m:id(m));return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(m){return s.go(m)}};return p}var zk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zk||(zk={}));function tY(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yc(t):t,i=J4(r.pathname||"/",n);if(i==null)return null;let o=X4(e);nY(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=fY(o[a],pY(i));return s}function X4(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(fn(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=ks([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(fn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),X4(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:cY(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Q4(o.path))i(o,s,l)}),t}function Q4(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Q4(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function nY(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rY=/^:\w+$/,iY=3,oY=2,sY=1,aY=10,lY=-2,Uk=e=>e==="*";function cY(e,t){let n=e.split("/"),r=n.length;return n.some(Uk)&&(r+=lY),t&&(r+=oY),n.filter(i=>!Uk(i)).reduce((i,o)=>i+(rY.test(o)?iY:o===""?sY:aY),r)}function uY(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 fY(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",f=dY({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=a.route;o.push({params:r,pathname:ks([i,f.pathname]),pathnameBase:yY(ks([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=ks([i,f.pathnameBase]))}return o}function dY(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hY(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,f,h)=>{if(f==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=mY(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function hY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),FS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pY(e){try{return decodeURI(e)}catch(t){return FS(!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 mY(e,t){try{return decodeURIComponent(e)}catch(n){return FS(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function J4(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 FS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yc(e):e;return{pathname:n?n.startsWith("/")?n:vY(n,t):t,search:_Y(r),hash:bY(i)}}function vY(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 U0(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 ej(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tj(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yc(e):(i=$g({},e),fn(!i.pathname||!i.pathname.includes("?"),U0("?","pathname","search",i)),fn(!i.pathname||!i.pathname.includes("#"),U0("#","pathname","hash",i)),fn(!i.search||!i.search.includes("#"),U0("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=gY(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const ks=e=>e.join("/").replace(/\/\/+/g,"/"),yY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_Y=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class wY{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function xY(e){return e instanceof wY}const nj=["post","put","patch","delete"];new Set(nj);const SY=["get",...nj];new Set(SY);/**
* React Router v6.6.1
*
* 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 ew(){return ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ew.apply(this,arguments)}function CY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const EY=typeof Object.is=="function"?Object.is:CY,{useState:TY,useEffect:OY,useLayoutEffect:PY,useDebugValue:kY}=W1;function MY(e,t,n){const r=t(),[{inst:i},o]=TY({inst:{value:r,getSnapshot:t}});return PY(()=>{i.value=r,i.getSnapshot=t,V0(i)&&o({inst:i})},[e,r,t]),OY(()=>(V0(i)&&o({inst:i}),e(()=>{V0(i)&&o({inst:i})})),[e]),kY(r),r}function V0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!EY(n,r)}catch{return!0}}function RY(e,t,n){return t()}const NY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LY=!NY,DY=LY?RY:MY;"useSyncExternalStore"in W1&&(e=>e.useSyncExternalStore)(W1);const AY=V.createContext(null),jY=V.createContext(null),qy=V.createContext(null),Fd=V.createContext(null),Gy=V.createContext(null),ul=V.createContext({outlet:null,matches:[]}),rj=V.createContext(null);function IY(e,t){let{relative:n}=t===void 0?{}:t;qc()||fn(!1);let{basename:r,navigator:i}=V.useContext(Fd),{hash:o,pathname:s,search:a}=$S(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:ks([r,s])),i.createHref({pathname:l,search:a,hash:o})}function qc(){return V.useContext(Gy)!=null}function Pn(){return qc()||fn(!1),V.useContext(Gy).location}function Fo(){qc()||fn(!1);let{basename:e,navigator:t}=V.useContext(Fd),{matches:n}=V.useContext(ul),{pathname:r}=Pn(),i=JSON.stringify(ej(n).map(a=>a.pathnameBase)),o=V.useRef(!1);return V.useEffect(()=>{o.current=!0}),V.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=tj(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:ks([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function Xs(){let{matches:e}=V.useContext(ul),t=e[e.length-1];return t?t.params:{}}function $S(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=V.useContext(ul),{pathname:i}=Pn(),o=JSON.stringify(ej(r).map(s=>s.pathnameBase));return V.useMemo(()=>tj(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function FY(e,t){qc()||fn(!1);let{navigator:n}=V.useContext(Fd),r=V.useContext(qy),{matches:i}=V.useContext(ul),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Pn(),c;if(t){var f;let y=typeof t=="string"?Yc(t):t;a==="/"||(f=y.pathname)!=null&&f.startsWith(a)||fn(!1),c=y}else c=l;let h=c.pathname||"/",p=a==="/"?h:h.slice(a.length)||"/",m=tY(e,{pathname:p}),v=UY(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:ks([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:ks([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return t&&v?V.createElement(Gy.Provider,{value:{location:ew({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ms.Pop}},v):v}function $Y(){let e=YY(),t=xY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return V.createElement(V.Fragment,null,V.createElement("h2",null,"Unhandled Thrown Error!"),V.createElement("h3",{style:{fontStyle:"italic"}},t),n?V.createElement("pre",{style:i},n):null,V.createElement("p",null,"💿 Hey developer 👋"),V.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",V.createElement("code",{style:o},"errorElement")," props on ",V.createElement("code",{style:o},"<Route>")))}class BY extends V.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?V.createElement(ul.Provider,{value:this.props.routeContext},V.createElement(rj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zY(e){let{routeContext:t,match:n,children:r}=e,i=V.useContext(AY);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),V.createElement(ul.Provider,{value:t},r)}function UY(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));o>=0||fn(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,s,a)=>{let l=s.route.id?i==null?void 0:i[s.route.id]:null,c=n?s.route.errorElement||V.createElement($Y,null):null,f=t.concat(r.slice(0,a+1)),h=()=>V.createElement(zY,{match:s,routeContext:{outlet:o,matches:f}},l?c:s.route.element!==void 0?s.route.element:o);return n&&(s.route.errorElement||a===0)?V.createElement(BY,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var Vk;(function(e){e.UseRevalidator="useRevalidator"})(Vk||(Vk={}));var Bg;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Bg||(Bg={}));function VY(e){let t=V.useContext(qy);return t||fn(!1),t}function HY(e){let t=V.useContext(ul);return t||fn(!1),t}function WY(e){let t=HY(),n=t.matches[t.matches.length-1];return n.route.id||fn(!1),n.route.id}function YY(){var e;let t=V.useContext(rj),n=VY(Bg.UseRouteError),r=WY(Bg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function BS(e){let{to:t,replace:n,state:r,relative:i}=e;qc()||fn(!1);let o=V.useContext(qy),s=Fo();return V.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function gt(e){fn(!1)}function qY(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ms.Pop,navigator:o,static:s=!1}=e;qc()&&fn(!1);let a=t.replace(/^\/*/,"/"),l=V.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Yc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,v=V.useMemo(()=>{let y=J4(c,a);return y==null?null:{pathname:y,search:f,hash:h,state:p,key:m}},[a,c,f,h,p,m]);return v==null?null:V.createElement(Fd.Provider,{value:l},V.createElement(Gy.Provider,{children:n,value:{location:v,navigationType:i}}))}function Zy(e){let{children:t,location:n}=e,r=V.useContext(jY),i=r&&!t?r.router.routes:tw(t);return FY(i,n)}var Hk;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Hk||(Hk={}));new Promise(()=>{});function tw(e,t){t===void 0&&(t=[]);let n=[];return V.Children.forEach(e,(r,i)=>{if(!V.isValidElement(r))return;if(r.type===V.Fragment){n.push.apply(n,tw(r.props.children,t));return}r.type!==gt&&fn(!1),!r.props.index||!r.props.children||fn(!1);let o=[...t,i],s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=tw(r.props.children,o)),n.push(s)}),n}/**
* React Router DOM v6.6.1
*
* 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 zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(this,arguments)}function ij(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 GY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZY(e,t){return e.button===0&&(!t||t==="_self")&&!GY(e)}const KY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],XY=["aria-current","caseSensitive","className","end","style","to","children"];function QY(e){let{basename:t,children:n,window:r}=e,i=V.useRef();i.current==null&&(i.current=XW({window:r,v5Compat:!0}));let o=i.current,[s,a]=V.useState({action:o.action,location:o.location});return V.useLayoutEffect(()=>o.listen(a),[o]),V.createElement(qY,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const Lt=V.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=ij(t,KY),p=IY(c,{relative:i}),m=JY(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function v(y){r&&r(y),y.defaultPrevented||m(y)}return V.createElement("a",zg({},h,{href:p,onClick:o?r:v,ref:n,target:l}))}),oj=V.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,children:c}=t,f=ij(t,XY),h=$S(l,{relative:f.relative}),p=Pn(),m=V.useContext(qy),{navigator:v}=V.useContext(Fd),y=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(x=x.toLowerCase(),_=_?_.toLowerCase():null,y=y.toLowerCase());let w=x===y||!s&&x.startsWith(y)&&x.charAt(y.length)==="/",S=_!=null&&(_===y||!s&&_.startsWith(y)&&_.charAt(y.length)==="/"),T=w?r:void 0,P;typeof o=="function"?P=o({isActive:w,isPending:S}):P=[o,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:w,isPending:S}):a;return V.createElement(Lt,zg({},f,{"aria-current":T,className:P,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:w,isPending:S}):c)});var Wk;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Wk||(Wk={}));var Yk;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yk||(Yk={}));function JY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Fo(),l=Pn(),c=$S(e,{relative:s});return V.useCallback(f=>{if(ZY(f,n)){f.preventDefault();let h=r!==void 0?r:id(l)===id(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const eq="shlink-web-client",tq="A React-based progressive web application for shlink",nq="/shlink-web-client/dependabot/npm_and_yarn/stylelint-15.10.1",rq="https://github.com/shlinkio/shlink-web-client",iq="MIT",oq={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},sq={"@fortawesome/fontawesome-free":"^6.3.0","@fortawesome/fontawesome-svg-core":"^6.3.0","@fortawesome/free-brands-svg-icons":"^6.3.0","@fortawesome/free-regular-svg-icons":"^6.3.0","@fortawesome/free-solid-svg-icons":"^6.3.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5","redux-localstorage-simple":"^2.5.1",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},aq={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.0","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^4.0.0","@vitest/coverage-v8":"^0.32.0","adm-zip":"^0.5.10",chalk:"^5.2.0",eslint:"^8.30.0",jsdom:"^22.0.0","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",stylelint:"^15.10.1",typescript:"^5.0.2",vite:"^4.3.9","vite-plugin-pwa":"^0.14.4",vitest:"^0.32.0","vitest-canvas-mock":"^0.2.2"},lq=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ug={name:eq,description:tq,private:!1,homepage:nq,repository:rq,license:iq,scripts:oq,dependencies:sq,devDependencies:aq,browserslist:lq};var Pi,Ji=".",sj="function",aj="string",lj="__global__",zS="Provider",cq=0,US=Array.prototype.slice,uq=function(t,n){var r=t[n];if(r===void 0&&Pi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Ky=function(t){var n;return this.nested[t]||(n=Pi.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},cj=function(t){return t.split(Ji).reduce(uq,this)},fq=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var a=0,l=function(f){if(f)throw f;t[a]&&t[a++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},dq=function(t,n){var r,i;return typeof t===sj&&(n=t,t=lj),r=t.split(Ji),i=r.shift(),r.length?Ky.call(this,i).middleware(r.join(Ji),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},hq=function(t,n){return n(t)},qk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},pq=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+zS,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=qk(s,t).reduce(hq,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:fq(qk(a,t),t,f,o)}},Object.defineProperties(o,i),this},uj=function(t,n){var r,i;return r=t.split(Ji),this.providerMap[t]&&r.length===1&&!this.container[t+zS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Ky.call(this,i).provider(r.join(Ji),n),this):pq.call(this,i,n))},VS=function(t,n){return uj.call(this,t,function(){this.$get=n})},fj=function(t,n,r){var i=arguments.length>3?US.call(arguments,3):[],o=this;return VS.call(this,t,function(){var a=n,l=i.map(cj,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},mq=function(t,n){return fj.apply(this,[t,n,!0].concat(US.call(arguments,2)))},gq=function(t,n){return fj.apply(this,[t,n,!1].concat(US.call(arguments,2)))},dj=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},hj=function(t,n){var r=t[n];return r||(r={},dj.call(t,n,r)),r},vq=function(t,n){var r;return r=t.split(Ji),t=r.pop(),dj.call(r.reduce(hj,this.container),t,n),this},yq=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},_q=function(t,n){var r=t.split(Ji);return t=r.pop(),yq.call(r.reduce(hj,this.container),t,n),this},pj=function(t,n){var r,i;return typeof t===sj&&(n=t,t=lj),r=t.split(Ji),i=r.shift(),r.length?Ky.call(this,i).decorator(r.join(Ji),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},bq=function(t){return this.deferred.push(t),this},wq=function(t){return(t||[]).map(cj,this.container)},xq=function(t,n){return VS.call(this,t,function(i){return{instance:n.bind(n,i)}})},Sq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},HS=function(t){return Object.keys(t||this.container||{}).filter(Sq)},Vg={},Cq=function(t){var n;return typeof t===aj?(n=Vg[t],n||(Vg[t]=n=new Pi,n.constant("BOTTLE_NAME",t)),n):new Pi},Eq=function(t){typeof t===aj?delete Vg[t]:Vg={}},mj=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},Gk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+zS]},Tq=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(Ji);s.length>1&&s.forEach(Gk,Ky.call(this,s[0])),Gk.call(this,o),this.provider(o,n[o])}},this)},Oq=function(t){return this.deferred.forEach(function(r){r(t)}),this};Pi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=cq++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:pj.bind(this),$register:mj.bind(this),$list:HS.bind(this)}};Pi.prototype={constant:_q,decorator:pj,defer:bq,digest:wq,factory:VS,instanceFactory:xq,list:HS,middleware:dq,provider:uj,resetProviders:Tq,register:mj,resolve:Oq,service:mq,serviceFactory:gq,value:vq};Pi.pop=Cq;Pi.clear=Eq;Pi.list=HS;Pi.config={strict:!1};const Pq=Pi;var kq=function(){return!0};const gj=kq;function Ot(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function yt(e){return function t(n){return arguments.length===0||Ot(n)?t:e.apply(this,arguments)}}function lt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Ot(n)?t:yt(function(i){return e(n,i)});default:return Ot(n)&&Ot(r)?t:Ot(n)?yt(function(i){return e(i,r)}):Ot(r)?yt(function(i){return e(n,i)}):e(n,r)}}}function Mq(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}function Gc(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,i){return t.apply(this,arguments)};case 4:return function(n,r,i,o){return t.apply(this,arguments)};case 5:return function(n,r,i,o,s){return t.apply(this,arguments)};case 6:return function(n,r,i,o,s,a){return t.apply(this,arguments)};case 7:return function(n,r,i,o,s,a,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,s,a,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,s,a,l,c,f){return t.apply(this,arguments)};case 10:return function(n,r,i,o,s,a,l,c,f,h){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Xy(e,t,n){return function(){for(var r=[],i=0,o=e,s=0;s<t.length||i<arguments.length;){var a;s<t.length&&(!Ot(t[s])||i>=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,Ot(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Gc(o,Xy(e,r,n))}}var Rq=lt(function(t,n){return t===1?yt(n):Gc(t,Xy(t,[],n))});const Hg=Rq;function Qs(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Ot(n)?t:lt(function(o,s){return e(n,o,s)});case 2:return Ot(n)&&Ot(r)?t:Ot(n)?lt(function(o,s){return e(o,r,s)}):Ot(r)?lt(function(o,s){return e(n,o,s)}):yt(function(o){return e(n,r,o)});default:return Ot(n)&&Ot(r)&&Ot(i)?t:Ot(n)&&Ot(r)?lt(function(o,s){return e(o,s,i)}):Ot(n)&&Ot(i)?lt(function(o,s){return e(o,r,s)}):Ot(r)&&Ot(i)?lt(function(o,s){return e(n,o,s)}):Ot(n)?yt(function(o){return e(o,r,i)}):Ot(r)?yt(function(o){return e(n,o,i)}):Ot(i)?yt(function(o){return e(n,r,o)}):e(n,r,i)}}}const $d=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Nq(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function WS(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!$d(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if(Nq(i)){var s=t.apply(null,r);return s(i)}}return n.apply(this,arguments)}}const od={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var Lq=lt(function(t,n){return n>t?n:t});const vj=Lq;function lm(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function Qy(e){return Object.prototype.toString.call(e)==="[object String]"}var Dq=yt(function(t){return $d(t)?!0:!t||typeof t!="object"||Qy(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const yj=Dq;var Aq=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function jq(e){return new Aq(e)}var Iq=lt(function(t,n){return Gc(t.length,function(){return t.apply(n,arguments)})});const Fq=Iq;function $q(e,t,n){for(var r=0,i=n.length;r<i;){if(t=e["@@transducer/step"](t,n[r]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}function Zk(e,t,n){for(var r=n.next();!r.done;){if(t=e["@@transducer/step"](t,r.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function Kk(e,t,n,r){return e["@@transducer/result"](n[r](Fq(e["@@transducer/step"],e),t))}var Xk=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Zc(e,t,n){if(typeof e=="function"&&(e=jq(e)),yj(n))return $q(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return Kk(e,t,n,"fantasy-land/reduce");if(n[Xk]!=null)return Zk(e,t,n[Xk]());if(typeof n.next=="function")return Zk(e,t,n);if(typeof n.reduce=="function")return Kk(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var Bq=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=od.init,e.prototype["@@transducer/result"]=od.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),zq=lt(function(t,n){return new Bq(t,n)});const Uq=zq;function Mr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var Qk=Object.prototype.toString,Vq=function(){return Qk.call(arguments)==="[object Arguments]"?function(t){return Qk.call(t)==="[object Arguments]"}:function(t){return Mr("callee",t)}}();const _j=Vq;var Hq=!{toString:null}.propertyIsEnumerable("toString"),Jk=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],eM=function(){return arguments.propertyIsEnumerable("length")}(),Wq=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},Yq=yt(typeof Object.keys=="function"&&!eM?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=eM&&_j(t);for(n in t)Mr(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(Hq)for(r=Jk.length-1;r>=0;)n=Jk[r],Mr(n,t)&&!Wq(i,n)&&(i[i.length]=n),r-=1;return i});const eo=Yq;var qq=lt(WS(["fantasy-land/map","map"],Uq,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Hg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Zc(function(r,i){return r[i]=t(n[i]),r},{},eo(n));default:return lm(t,n)}}));const Bd=qq,nw=Number.isInteger||function(t){return t<<0===t};var Gq=lt(function(t,n){var r=t<0?n.length+t:t;return Qy(n)?n.charAt(r):n[r]});const bj=Gq;var Zq=lt(function(t,n){return t.map(function(r){for(var i=n,o=0,s;o<r.length;){if(i==null)return;s=r[o],i=nw(s)?bj(s,i):i[s],o+=1}return i})});const Kq=Zq;var Xq=lt(function(t,n){return Kq([t],n)[0]});const Qq=Xq;var Jq=lt(function(t,n){return Qq([t],n)});const at=Jq;var eG=Qs(Zc);const YS=eG;var tG=yt(function(t){return function(){return t}});const H0=tG;var nG=lt(function(t,n){return typeof n["fantasy-land/ap"]=="function"?n["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(n):typeof t=="function"?function(r){return t(r)(n(r))}:Zc(function(r,i){return Mq(r,Bd(i,n))},[],t)});const rG=nG;var iG=yt(function(t){for(var n=eo(t),r=n.length,i=[],o=0;o<r;)i[o]=t[n[o]],o+=1;return i});const Kc=iG;var oG=Qs(function(t,n,r){var i={};for(var o in r)i[o]=r[o];return i[t]=n,i});const sd=oG;var sG=yt(function(t){return t==null});const $o=sG;var aG=Qs(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var o=!$o(r)&&Mr(i,r)?r[i]:nw(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(nw(i)&&$d(r)){var s=[].concat(r);return s[i]=n,s}else return sd(i,n,r)});const Tl=aG;function lG(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var cG=lt(function(t,n){var r=Hg(t,n);return Hg(t,function(){return Zc(rG,Bd(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const uG=cG;var fG=yt(function(t){return uG(t.length,t)});const dG=fG;function hG(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a<l;){if(yj(n[a]))for(r=e?t(n[a]):n[a],o=0,i=r.length;o<i;)s[s.length]=r[o],o+=1;else s[s.length]=n[a];a+=1}return s}}function pG(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var mG=yt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const Wg=mG;function wj(e,t,n,r){var i=function(s){for(var a=t.length,l=0;l<a;){if(e===t[l])return n[l];l+=1}t[l+1]=e,n[l+1]=s;for(var c in e)s[c]=r?wj(e[c],t,n,!0):e[c];return s};switch(Wg(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return pG(e);default:return e}}var gG=yt(function(t){return!t});const vG=gG;var yG=dG(vG);const _G=yG;function bG(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function qS(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return $d(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var wG=Qs(qS("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}));const xj=wG;var xG=yt(qS("tail",xj(1,1/0)));const SG=xG;function Dt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Gc(arguments[0].length,YS(bG,arguments[0],SG(arguments)))}var CG=yt(function(t){return Qy(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const rw=CG;function EG(e){return e}var TG=yt(EG);const GS=TG;function tM(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function nM(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function OG(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function PG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const W0=typeof Object.is=="function"?Object.is:PG;function rM(e,t,n,r){var i=tM(e),o=tM(t);function s(a,l){return ZS(a,l,n.slice(),r.slice())}return!nM(function(a,l){return!nM(s,l,a)},o,i)}function ZS(e,t,n,r){if(W0(e,t))return!0;var i=Wg(e);if(i!==Wg(t)||e==null||t==null)return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&OG(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&W0(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!W0(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:rM(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:rM(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=eo(e);if(s.length!==eo(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!(Mr(c,t)&&ZS(t[c],e[c],a,l)))return!1;o-=1}return!0}var kG=lt(function(t,n){return ZS(t,n,[],[])});const KS=kG;function MG(e,t,n){var r,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n<e.length;){if(i=e[n],i===0&&1/i===r)return n;n+=1}return-1}else if(t!==t){for(;n<e.length;){if(i=e[n],typeof i=="number"&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(t===null)return e.indexOf(t,n)}for(;n<e.length;){if(KS(e[n],t))return n;n+=1}return-1}function RG(e,t){return MG(t,e,0)>=0}function Y0(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var Nu=function(t){return(t<10?"0":"")+t},NG=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Nu(t.getUTCMonth()+1)+"-"+Nu(t.getUTCDate())+"T"+Nu(t.getUTCHours())+":"+Nu(t.getUTCMinutes())+":"+Nu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const LG=NG;function DG(e){return function(){return!e.apply(this,arguments)}}function AG(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}function Yg(e){return Object.prototype.toString.call(e)==="[object Object]"}var jG=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=od.init,e.prototype["@@transducer/result"]=od.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),IG=lt(function(t,n){return new jG(t,n)});const FG=IG;var $G=lt(WS(["filter"],FG,function(e,t){return Yg(t)?Zc(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},eo(t)):AG(e,t)}));const Sj=$G;var BG=lt(function(t,n){return Sj(DG(t),n)});const zd=BG;function Cj(e,t){var n=function(s){var a=t.concat([e]);return RG(s,a)?"<Circular>":Cj(s,a)},r=function(o,s){return lm(function(a){return Y0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+lm(n,e).join(", ")+"))";case"[object Array]":return"["+lm(n,e).concat(r(e,zd(function(o){return/^\d+$/.test(o)},eo(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Y0(LG(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":Y0(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+r(e,eo(e)).join(", ")+"}"}}var zG=yt(function(t){return Cj(t,[])});const UG=zG;var VG=yt(function(t){var n=YS(vj,0,Bd(function(r){return r[0].length},t));return Gc(n,function(){for(var r=0;r<t.length;){if(t[r][0].apply(this,arguments))return t[r][1].apply(this,arguments);r+=1}})});const XS=VG;var HG=function(){function e(t,n,r,i){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=od.init,e.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(Mr(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},e}(),WG=Xy(4,[],function(t,n,r,i){return new HG(t,n,r,i)});const YG=WG;var qG=Xy(4,[],WS([],YG,function(t,n,r,i){return Zc(function(o,s){var a=r(s);return o[a]=t(Mr(a,o)?o[a]:wj(n,[],[],!1),s),o},{},i)}));const Ej=qG;var GG=Ej(function(e,t){return e+1},0);const Tj=GG;var ZG=lt(function(t,n){var r={};for(var i in n)r[i]=n[i];return delete r[t],r});const KG=ZG;var XG=bj(-1);const QG=XG;var JG=yt(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():$d(t)?[]:Qy(t)?"":Yg(t)?{}:_j(t)?function(){return arguments}():void 0});const eZ=JG;var tZ=yt(hG(!0));const nZ=tZ;var rZ=yt(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n});const Gu=rZ;var iZ=lt(qS("groupBy",Ej(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));const oZ=iZ;var sZ=lt(function(t,n){return Hg(t+1,function(){var r=arguments[t];if(r!=null&&lG(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(UG(r)+' does not have a method named "'+n+'"')})});const aZ=sZ;var lZ=yt(function(t){return t!=null&&KS(t,eZ(t))});const Wn=lZ;function iM(e){return Object.prototype.toString.call(e)==="[object Number]"}var cZ=lt(function(t,n){var r={};return Gc(n.length,function(){var i=t.apply(this,arguments);return Mr(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const Oj=cZ;var uZ=Qs(function(t,n,r){var i={},o;for(o in n)Mr(o,n)&&(i[o]=Mr(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)Mr(o,r)&&!Mr(o,i)&&(i[o]=r[o]);return i});const fZ=uZ;var dZ=Qs(function e(t,n,r){return fZ(function(i,o,s){return Yg(o)&&Yg(s)?e(t,o,s):t(i,o,s)},n,r)});const hZ=dZ;var pZ=lt(function(t,n){return hZ(function(r,i,o){return o},t,n)});const Pj=pZ;var mZ=lt(function(t,n){return n<t?n:t});const kj=mZ;var gZ=lt(function(t,n){for(var r={},i={},o=0,s=t.length;o<s;)i[t[o]]=1,o+=1;for(var a in n)i.hasOwnProperty(a)||(r[a]=n[a]);return r});const vZ=gZ;var yZ=lt(function(t,n){for(var r={},i=0;i<t.length;)t[i]in n&&(r[t[i]]=n[t[i]]),i+=1;return r});const Mj=yZ;var _Z=Qs(function(t,n,r){return KS(n,r[t])});const bZ=_Z;var wZ=lt(function(t,n){if(!(iM(t)&&iM(n)))throw new TypeError("Both arguments to range must be numbers");for(var r=[],i=t;i<n;)r.push(i),i+=1;return r});const QS=wZ;var xZ=Qs(function(t,n,r){return r.replace(t,n)});const SZ=xZ;var CZ=lt(function(t,n){return Array.prototype.slice.call(n,0).sort(function(r,i){var o=t(r),s=t(i);return o<s?-1:o>s?1:0})});const EZ=CZ;var TZ=lt(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i<n.length;)r.push(xj(i,i+=t,n));return r});const ad=TZ;var OZ=aZ(0,"toLowerCase");const PZ=OZ;var kZ=yt(function(t){var n=[];for(var r in t)Mr(r,t)&&(n[n.length]=[r,t[r]]);return n});const qg=kZ;var Lu=`
\v\f\r    \u2028\u2029\uFEFF`,MZ="",RZ=typeof String.prototype.trim=="function",NZ=yt(!RZ||Lu.trim()||!MZ.trim()?function(t){var n=new RegExp("^["+Lu+"]["+Lu+"]*"),r=new RegExp("["+Lu+"]["+Lu+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()});const LZ=NZ;var DZ=lt(function(t,n){for(var r=0,i=Math.min(t.length,n.length),o={};r<i;)o[t[r]]=n[r],r+=1;return o});const Rj=DZ,JS=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ms=e=>!!(e!=null&&e.id),Jy=e=>!!(e!=null&&e.version),AZ=e=>!!(e!=null&&e.serverNotFound),Ud=e=>Ms(e)?e.id:"",jZ=e=>vZ(["id","autoConnect"],e),e_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",Nj=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),Lj=e=>e.dir?`${e.field}-${e.dir}`:void 0,IZ=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};var FZ=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},oM=typeof Symbol<"u"&&Symbol,$Z=FZ,BZ=function(){return typeof oM!="function"||typeof Symbol!="function"||typeof oM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$Z()},zZ="Function.prototype.bind called on incompatible ",q0=Array.prototype.slice,UZ=Object.prototype.toString,VZ="[object Function]",HZ=function(t){var n=this;if(typeof n!="function"||UZ.call(n)!==VZ)throw new TypeError(zZ+n);for(var r=q0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(q0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(q0.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l<s;l++)a.push("$"+l);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},WZ=HZ,eC=Function.prototype.bind||WZ,YZ=eC,qZ=YZ.call(Function.call,Object.prototype.hasOwnProperty),st,ld=SyntaxError,Dj=Function,uc=TypeError,G0=function(e){try{return Dj('"use strict"; return ('+e+").constructor;")()}catch{}},Ba=Object.getOwnPropertyDescriptor;if(Ba)try{Ba({},"")}catch{Ba=null}var Z0=function(){throw new uc},GZ=Ba?function(){try{return arguments.callee,Z0}catch{try{return Ba(arguments,"callee").get}catch{return Z0}}}():Z0,Ol=BZ(),ns=Object.getPrototypeOf||function(e){return e.__proto__},Il={},ZZ=typeof Uint8Array>"u"?st:ns(Uint8Array),fc={"%AggregateError%":typeof AggregateError>"u"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?st:ArrayBuffer,"%ArrayIteratorPrototype%":Ol?ns([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?st:Atomics,"%BigInt%":typeof BigInt>"u"?st:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?st:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?st:Float32Array,"%Float64Array%":typeof Float64Array>"u"?st:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?st:FinalizationRegistry,"%Function%":Dj,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?st:Int8Array,"%Int16Array%":typeof Int16Array>"u"?st:Int16Array,"%Int32Array%":typeof Int32Array>"u"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ol?ns(ns([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map>"u"?st:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ol?st:ns(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?st:Promise,"%Proxy%":typeof Proxy>"u"?st:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?st:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?st:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ol?st:ns(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ol?ns(""[Symbol.iterator]()):st,"%Symbol%":Ol?Symbol:st,"%SyntaxError%":ld,"%ThrowTypeError%":GZ,"%TypedArray%":ZZ,"%TypeError%":uc,"%Uint8Array%":typeof Uint8Array>"u"?st:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?st:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?st:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?st:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?st:WeakMap,"%WeakRef%":typeof WeakRef>"u"?st:WeakRef,"%WeakSet%":typeof WeakSet>"u"?st:WeakSet},KZ=function e(t){var n;if(t==="%AsyncFunction%")n=G0("async function () {}");else if(t==="%GeneratorFunction%")n=G0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=G0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=ns(i.prototype))}return fc[t]=n,n},sM={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},t_=eC,Gg=qZ,XZ=t_.call(Function.call,Array.prototype.concat),QZ=t_.call(Function.apply,Array.prototype.splice),aM=t_.call(Function.call,String.prototype.replace),Zg=t_.call(Function.call,String.prototype.slice),JZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eK=/\\(\\)?/g,tK=function(t){var n=Zg(t,0,1),r=Zg(t,-1);if(n==="%"&&r!=="%")throw new ld("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ld("invalid intrinsic syntax, expected opening `%`");var i=[];return aM(t,JZ,function(o,s,a,l){i[i.length]=a?aM(l,eK,"$1"):s||o}),i},nK=function(t,n){var r=t,i;if(Gg(sM,r)&&(i=sM[r],r="%"+i[0]+"%"),Gg(fc,r)){var o=fc[r];if(o===Il&&(o=KZ(r)),typeof o>"u"&&!n)throw new uc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new ld("intrinsic "+t+" does not exist!")},tC=function(t,n){if(typeof t!="string"||t.length===0)throw new uc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new uc('"allowMissing" argument must be a boolean');var r=tK(t),i=r.length>0?r[0]:"",o=nK("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],QZ(r,XZ([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],m=Zg(p,0,1),v=Zg(p,-1);if((m==='"'||m==="'"||m==="`"||v==='"'||v==="'"||v==="`")&&m!==v)throw new ld("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,s="%"+i+"%",Gg(fc,s))a=fc[s];else if(a!=null){if(!(p in a)){if(!n)throw new uc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ba&&f+1>=r.length){var y=Ba(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=Gg(a,p),a=a[p];h&&!l&&(fc[s]=a)}}return a},Aj={exports:{}};(function(e){var t=eC,n=tC,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var m=s(p,"length");m.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(Aj);var rK=Aj.exports,jj=tC,Ij=rK,iK=Ij(jj("String.prototype.indexOf")),oK=function(t,n){var r=jj(t,!!n);return typeof r=="function"&&iK(t,".prototype.")>-1?Ij(r):r};const sK={},aK=Object.freeze(Object.defineProperty({__proto__:null,default:sK},Symbol.toStringTag,{value:"Module"})),lK=_$(aK);var nC=typeof Map=="function"&&Map.prototype,K0=Object.getOwnPropertyDescriptor&&nC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Kg=nC&&K0&&typeof K0.get=="function"?K0.get:null,cK=nC&&Map.prototype.forEach,rC=typeof Set=="function"&&Set.prototype,X0=Object.getOwnPropertyDescriptor&&rC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xg=rC&&X0&&typeof X0.get=="function"?X0.get:null,uK=rC&&Set.prototype.forEach,fK=typeof WeakMap=="function"&&WeakMap.prototype,yf=fK?WeakMap.prototype.has:null,dK=typeof WeakSet=="function"&&WeakSet.prototype,_f=dK?WeakSet.prototype.has:null,hK=typeof WeakRef=="function"&&WeakRef.prototype,lM=hK?WeakRef.prototype.deref:null,pK=Boolean.prototype.valueOf,mK=Object.prototype.toString,gK=Function.prototype.toString,vK=String.prototype.match,iC=String.prototype.slice,gs=String.prototype.replace,yK=String.prototype.toUpperCase,cM=String.prototype.toLowerCase,Fj=RegExp.prototype.test,uM=Array.prototype.concat,Ui=Array.prototype.join,_K=Array.prototype.slice,fM=Math.floor,iw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Q0=Object.getOwnPropertySymbols,ow=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,kc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===kc||"symbol")?Symbol.toStringTag:null,$j=Object.prototype.propertyIsEnumerable,dM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function hM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Fj.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-fM(-e):fM(e);if(r!==e){var i=String(r),o=iC.call(t,i.length+1);return gs.call(i,n,"$&_")+"."+gs.call(gs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gs.call(t,n,"$&_")}var J0=lK.custom,e1=J0&&zj(J0)?J0:null,bK=function e(t,n,r,i){var o=n||{};if(rs(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(rs(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=rs(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(rs(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(rs(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Vj(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?hM(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?hM(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return sw(t)?"[Array]":"[Object]";var h=$K(o,r);if(typeof i>"u")i=[];else if(Uj(i,t)>=0)return"[Circular]";function p(J,Z,ee){if(Z&&(i=_K.call(i),i.push(Z)),ee){var ie={depth:o.depth};return rs(o,"quoteStyle")&&(ie.quoteStyle=o.quoteStyle),e(J,ie,r+1,i)}return e(J,o,r+1,i)}if(typeof t=="function"){var m=MK(t),v=pp(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Ui.call(v,", ")+" }":"")}if(zj(t)){var y=kc?gs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ow.call(t);return typeof t=="object"&&!kc?Du(y):y}if(jK(t)){for(var x="<"+cM.call(String(t.nodeName)),_=t.attributes||[],w=0;w<_.length;w++)x+=" "+_[w].name+"="+Bj(wK(_[w].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+cM.call(String(t.nodeName))+">",x}if(sw(t)){if(t.length===0)return"[]";var S=pp(t,p);return h&&!FK(S)?"["+aw(S,h)+"]":"[ "+Ui.call(S,", ")+" ]"}if(CK(t)){var T=pp(t,p);return"cause"in t&&!$j.call(t,"cause")?"{ ["+String(t)+"] "+Ui.call(uM.call("[cause]: "+p(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ui.call(T,", ")+" }"}if(typeof t=="object"&&s){if(e1&&typeof t[e1]=="function")return t[e1]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(RK(t)){var P=[];return cK.call(t,function(J,Z){P.push(p(Z,t,!0)+" => "+p(J,t))}),pM("Map",Kg.call(t),P,h)}if(DK(t)){var k=[];return uK.call(t,function(J){k.push(p(J,t))}),pM("Set",Xg.call(t),k,h)}if(NK(t))return t1("WeakMap");if(AK(t))return t1("WeakSet");if(LK(t))return t1("WeakRef");if(TK(t))return Du(p(Number(t)));if(PK(t))return Du(p(iw.call(t)));if(OK(t))return Du(pK.call(t));if(EK(t))return Du(p(String(t)));if(!xK(t)&&!SK(t)){var N=pp(t,p),D=dM?dM(t)===Object.prototype:t instanceof Object||t.constructor===Object,z=t instanceof Object?"":"null prototype",A=!D&&nr&&Object(t)===t&&nr in t?iC.call(Js(t),8,-1):z?"Object":"",W=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=W+(A||z?"["+Ui.call(uM.call([],A||[],z||[]),": ")+"] ":"");return N.length===0?Y+"{}":h?Y+"{"+aw(N,h)+"}":Y+"{ "+Ui.call(N,", ")+" }"}return String(t)};function Bj(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function wK(e){return gs.call(String(e),/"/g,"&quot;")}function sw(e){return Js(e)==="[object Array]"&&(!nr||!(typeof e=="object"&&nr in e))}function xK(e){return Js(e)==="[object Date]"&&(!nr||!(typeof e=="object"&&nr in e))}function SK(e){return Js(e)==="[object RegExp]"&&(!nr||!(typeof e=="object"&&nr in e))}function CK(e){return Js(e)==="[object Error]"&&(!nr||!(typeof e=="object"&&nr in e))}function EK(e){return Js(e)==="[object String]"&&(!nr||!(typeof e=="object"&&nr in e))}function TK(e){return Js(e)==="[object Number]"&&(!nr||!(typeof e=="object"&&nr in e))}function OK(e){return Js(e)==="[object Boolean]"&&(!nr||!(typeof e=="object"&&nr in e))}function zj(e){if(kc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ow)return!1;try{return ow.call(e),!0}catch{}return!1}function PK(e){if(!e||typeof e!="object"||!iw)return!1;try{return iw.call(e),!0}catch{}return!1}var kK=Object.prototype.hasOwnProperty||function(e){return e in this};function rs(e,t){return kK.call(e,t)}function Js(e){return mK.call(e)}function MK(e){if(e.name)return e.name;var t=vK.call(gK.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Uj(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function RK(e){if(!Kg||!e||typeof e!="object")return!1;try{Kg.call(e);try{Xg.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function NK(e){if(!yf||!e||typeof e!="object")return!1;try{yf.call(e,yf);try{_f.call(e,_f)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function LK(e){if(!lM||!e||typeof e!="object")return!1;try{return lM.call(e),!0}catch{}return!1}function DK(e){if(!Xg||!e||typeof e!="object")return!1;try{Xg.call(e);try{Kg.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function AK(e){if(!_f||!e||typeof e!="object")return!1;try{_f.call(e,_f);try{yf.call(e,yf)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function jK(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Vj(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Vj(iC.call(e,0,t.maxStringLength),t)+r}var i=gs.call(gs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,IK);return Bj(i,"single",t)}function IK(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+yK.call(t.toString(16))}function Du(e){return"Object("+e+")"}function t1(e){return e+" { ? }"}function pM(e,t,n,r){var i=r?aw(n,r):Ui.call(n,", ");return e+" ("+t+") {"+i+"}"}function FK(e){for(var t=0;t<e.length;t++)if(Uj(e[t],`
`)>=0)return!1;return!0}function $K(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ui.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ui.call(Array(t+1),n)}}function aw(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+Ui.call(e,","+n)+`
`+t.prev}function pp(e,t){var n=sw(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=rs(e,i)?t(e[i],e):""}var o=typeof Q0=="function"?Q0(e):[],s;if(kc){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)rs(e,l)&&(n&&String(Number(l))===l&&l<e.length||kc&&s["$"+l]instanceof Symbol||(Fj.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof Q0=="function")for(var c=0;c<o.length;c++)$j.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var oC=tC,Xc=oK,BK=bK,zK=oC("%TypeError%"),mp=oC("%WeakMap%",!0),gp=oC("%Map%",!0),UK=Xc("WeakMap.prototype.get",!0),VK=Xc("WeakMap.prototype.set",!0),HK=Xc("WeakMap.prototype.has",!0),WK=Xc("Map.prototype.get",!0),YK=Xc("Map.prototype.set",!0),qK=Xc("Map.prototype.has",!0),sC=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},GK=function(e,t){var n=sC(e,t);return n&&n.value},ZK=function(e,t,n){var r=sC(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},KK=function(e,t){return!!sC(e,t)},XK=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new zK("Side channel does not contain "+BK(o))},get:function(o){if(mp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return UK(t,o)}else if(gp){if(n)return WK(n,o)}else if(r)return GK(r,o)},has:function(o){if(mp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return HK(t,o)}else if(gp){if(n)return qK(n,o)}else if(r)return KK(r,o);return!1},set:function(o,s){mp&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new mp),VK(t,o,s)):gp?(n||(n=new gp),YK(n,o,s)):(r||(r={key:{},next:null}),ZK(r,o,s))}};return i},QK=String.prototype.replace,JK=/%20/g,n1={RFC1738:"RFC1738",RFC3986:"RFC3986"},aC={default:n1.RFC3986,formatters:{RFC1738:function(e){return QK.call(e,JK,"+")},RFC3986:function(e){return String(e)}},RFC1738:n1.RFC1738,RFC3986:n1.RFC3986},eX=aC,r1=Object.prototype.hasOwnProperty,Pa=Array.isArray,Ii=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),tX=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Pa(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},Hj=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},nX=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Pa(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!r1.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Pa(t)&&!Pa(n)&&(i=Hj(t,r)),Pa(t)&&Pa(n)?(n.forEach(function(o,s){if(r1.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,r):t.push(o)}else t[s]=o}),t):Object.keys(n).reduce(function(o,s){var a=n[s];return r1.call(o,s)?o[s]=e(o[s],a,r):o[s]=a,o},i)},rX=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},iX=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},oX=function(t,n,r,i,o){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===eX.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Ii[c];continue}if(c<2048){a=a+(Ii[192|c>>6]+Ii[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Ii[224|c>>12]+Ii[128|c>>6&63]+Ii[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Ii[240|c>>18]+Ii[128|c>>12&63]+Ii[128|c>>6&63]+Ii[128|c&63]}return a},sX=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],f=s[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:s,prop:c}),r.push(f))}return tX(n),t},aX=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},lX=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},cX=function(t,n){return[].concat(t,n)},uX=function(t,n){if(Pa(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},Wj={arrayToObject:Hj,assign:rX,combine:cX,compact:sX,decode:iX,encode:oX,isBuffer:lX,isRegExp:aX,maybeMap:uX,merge:nX},Yj=XK,lw=Wj,bf=aC,fX=Object.prototype.hasOwnProperty,mM={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},go=Array.isArray,dX=String.prototype.split,hX=Array.prototype.push,qj=function(e,t){hX.apply(e,go(t)?t:[t])},pX=Date.prototype.toISOString,gM=bf.default,$n={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:lw.encode,encodeValuesOnly:!1,format:gM,formatter:bf.formatters[gM],indices:!1,serializeDate:function(t){return pX.call(t)},skipNulls:!1,strictNullHandling:!1},mX=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},i1={},gX=function e(t,n,r,i,o,s,a,l,c,f,h,p,m,v,y,x){for(var _=t,w=x,S=0,T=!1;(w=w.get(i1))!==void 0&&!T;){var P=w.get(t);if(S+=1,typeof P<"u"){if(P===S)throw new RangeError("Cyclic object value");T=!0}typeof w.get(i1)>"u"&&(S=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=h(_):r==="comma"&&go(_)&&(_=lw.maybeMap(_,function(F){return F instanceof Date?h(F):F})),_===null){if(o)return a&&!v?a(n,$n.encoder,y,"key",p):n;_=""}if(mX(_)||lw.isBuffer(_)){if(a){var k=v?n:a(n,$n.encoder,y,"key",p);if(r==="comma"&&v){for(var N=dX.call(String(_),","),D="",z=0;z<N.length;++z)D+=(z===0?"":",")+m(a(N[z],$n.encoder,y,"value",p));return[m(k)+(i&&go(_)&&N.length===1?"[]":"")+"="+D]}return[m(k)+"="+m(a(_,$n.encoder,y,"value",p))]}return[m(n)+"="+m(String(_))]}var A=[];if(typeof _>"u")return A;var W;if(r==="comma"&&go(_))W=[{value:_.length>0?_.join(",")||null:void 0}];else if(go(l))W=l;else{var Y=Object.keys(_);W=c?Y.sort(c):Y}for(var J=i&&go(_)&&_.length===1?n+"[]":n,Z=0;Z<W.length;++Z){var ee=W[Z],ie=typeof ee=="object"&&typeof ee.value<"u"?ee.value:_[ee];if(!(s&&ie===null)){var oe=go(_)?typeof r=="function"?r(J,ee):J:J+(f?"."+ee:"["+ee+"]");x.set(t,S);var G=Yj();G.set(i1,x),qj(A,e(ie,oe,r,i,o,s,a,l,c,f,h,p,m,v,y,G))}}return A},vX=function(t){if(!t)return $n;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||$n.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=bf.default;if(typeof t.format<"u"){if(!fX.call(bf.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=bf.formatters[r],o=$n.filter;return(typeof t.filter=="function"||go(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:$n.addQueryPrefix,allowDots:typeof t.allowDots>"u"?$n.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:$n.charsetSentinel,delimiter:typeof t.delimiter>"u"?$n.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:$n.encode,encoder:typeof t.encoder=="function"?t.encoder:$n.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:$n.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:$n.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:$n.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:$n.strictNullHandling}},yX=function(e,t){var n=e,r=vX(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):go(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in mM?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=mM[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=Yj(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||qj(s,gX(n[p],p,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var m=s.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""},Mc=Wj,cw=Object.prototype.hasOwnProperty,_X=Array.isArray,Sn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Mc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},bX=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Gj=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},wX="utf8=%26%2310003%3B",xX="utf8=%E2%9C%93",SX=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===xX?c="utf-8":s[l]===wX&&(c="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var f=s[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,m,v;p===-1?(m=n.decoder(f,Sn.decoder,c,"key"),v=n.strictNullHandling?null:""):(m=n.decoder(f.slice(0,p),Sn.decoder,c,"key"),v=Mc.maybeMap(Gj(f.slice(p+1),n),function(y){return n.decoder(y,Sn.decoder,c,"value")})),v&&n.interpretNumericEntities&&c==="iso-8859-1"&&(v=bX(v)),f.indexOf("[]=")>-1&&(v=_X(v)?[v]:v),cw.call(r,m)?r[m]=Mc.combine(r[m],v):r[m]=v}return r},CX=function(e,t,n,r){for(var i=r?t:Gj(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},EX=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&cw.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&cw.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),CX(f,n,r,i)}},TX=function(t){if(!t)return Sn;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Sn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Sn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Sn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Sn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Sn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Sn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Sn.comma,decoder:typeof t.decoder=="function"?t.decoder:Sn.decoder,delimiter:typeof t.delimiter=="string"||Mc.isRegExp(t.delimiter)?t.delimiter:Sn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Sn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Sn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Sn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Sn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Sn.strictNullHandling}},OX=function(e,t){var n=TX(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?SX(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var a=o[s],l=EX(a,r[a],n,typeof e=="string");i=Mc.merge(i,l,n)}return n.allowSparse===!0?i:Mc.compact(i)},PX=yX,kX=OX,MX=aC,RX={formats:MX,parse:kX,stringify:PX};const Zj=ri(RX),fl=e=>Zj.parse(e,{ignoreQueryPrefix:!0}),Vd=e=>Zj.stringify(e,{arrayFormat:"brackets"});var n_=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(n_||{}),r_=(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_URL="https://shlink.io/api/error/invalid-url",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))(r_||{});const NX=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),ro=e=>NX(e)?e:void 0,LX=e=>(e==null?void 0:e.type)===n_.INVALID_ARGUMENT||(e==null?void 0:e.type)===r_.INVALID_ARGUMENT,DX=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===n_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===r_.INVALID_SHORT_URL_DELETION,AX=e=>((e==null?void 0:e.type)===n_.NOT_FOUND||(e==null?void 0:e.type)===r_.NOT_FOUND)&&(e==null?void 0:e.status)===404,jX=(e,t)=>`${e}/rest/v${t}`,IX=zd($o),FX=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:Lj(e)});class $X{constructor(t,n,r){xe(this,"apiVersion");xe(this,"listShortUrls",async(t={})=>this.performRequest("/short-urls","GET",FX(t)).then(({shortUrls:n})=>n));xe(this,"createShortUrl",async t=>{const n=zd(r=>Wn(r)||$o(r),t);return this.performRequest("/short-urls","POST",{},n)});xe(this,"getShortUrlVisits",async(t,n)=>this.performRequest(`/short-urls/${t}/visits`,"GET",n).then(({visits:r})=>r));xe(this,"getTagVisits",async(t,n)=>this.performRequest(`/tags/${t}/visits`,"GET",n).then(({visits:r})=>r));xe(this,"getDomainVisits",async(t,n)=>this.performRequest(`/domains/${t}/visits`,"GET",n).then(({visits:r})=>r));xe(this,"getOrphanVisits",async t=>this.performRequest("/visits/orphan","GET",t).then(({visits:n})=>n));xe(this,"getNonOrphanVisits",async t=>this.performRequest("/visits/non-orphan","GET",t).then(({visits:n})=>n));xe(this,"getVisitsOverview",async()=>this.performRequest("/visits").then(({visits:t})=>t));xe(this,"getShortUrl",async(t,n)=>this.performRequest(`/short-urls/${t}`,"GET",{domain:n}));xe(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest(`/short-urls/${t}`,"DELETE",{domain:n}));xe(this,"updateShortUrl",async(t,n,r)=>this.performRequest(`/short-urls/${t}`,"PATCH",{domain:n},r));xe(this,"listTags",async()=>this.performRequest("/tags","GET",{withStats:"true"}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));xe(this,"tagsStats",async()=>this.performRequest("/tags/stats","GET").then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));xe(this,"deleteTags",async t=>this.performEmptyRequest("/tags","DELETE",{tags:t}).then(()=>({tags:t})));xe(this,"editTag",async(t,n)=>this.performEmptyRequest("/tags","PUT",{},{oldName:t,newName:n}).then(()=>({oldName:t,newName:n})));xe(this,"health",async()=>this.performRequest("/health","GET"));xe(this,"mercureInfo",async()=>this.performRequest("/mercure-info","GET"));xe(this,"listDomains",async()=>this.performRequest("/domains").then(({domains:t})=>t));xe(this,"editDomainRedirects",async t=>this.performRequest("/domains/redirects","PATCH",{},t));xe(this,"performRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)))));xe(this,"performEmptyRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)))));xe(this,"toFetchParams",(t,n,r={},i)=>{const o=Vd(IX(r)),s=Wn(o)?"":`?${o}`;return[`${jX(this.baseUrl,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});xe(this,"handleFetchError",t=>n=>{if(!AX(ro(n)))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const o1={},BX=e=>typeof e=="function",zX=e=>{const{selectedServer:t}=e();if(!JS(t))throw new Error("There's no selected server or it is not found");return t},UX=e=>t=>{const{url:n,apiKey:r}=BX(t)?zX(t):t,i=`${n}_${r}`;return o1[i]||(o1[i]=new $X(e,n,r)),o1[i]},VX=e=>{e.serviceFactory("buildShlinkApiClient",UX,"HttpClient")};var Kj={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 s=typeof o;if(s==="string"||s==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&r.push(a)}}else if(s==="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})()})(Kj);var HX=Kj.exports;const me=ri(HX);var WX={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},YX=WX,qX={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},lC=qX,GX={prefix:"fas",iconName:"file-csv",icon:[384,512,[],"f6dd","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM80 224H96c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H80c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8H96c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H80c-22.1 0-40-17.9-40-40V264c0-22.1 17.9-40 40-40zm72 46.4c0-25.6 20.8-46.4 46.4-46.4H216c8.8 0 16 7.2 16 16s-7.2 16-16 16H198.4c-7.9 0-14.4 6.4-14.4 14.4c0 5.2 2.8 9.9 7.2 12.5l25.4 14.5c14.4 8.3 23.4 23.6 23.4 40.3c0 25.6-20.8 46.4-46.4 46.4H168c-8.8 0-16-7.2-16-16s7.2-16 16-16h25.6c7.9 0 14.4-6.4 14.4-14.4c0-5.2-2.8-9.9-7.2-12.5l-25.4-14.5C160.9 302.4 152 287 152 270.4zM280 240v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V240c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V240c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},ZX={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},KX=ZX,Xj={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"]},XX={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},Qj={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},QX={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zm0-160c-53 0-96-43-96-96s43-96 96-96s96 43 96 96s-43 96-96 96z"]},JX=QX,eQ={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.8 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},cC=eQ,tQ={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},nQ={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 21 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},rQ={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"]},vM={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},iQ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},oQ=iQ,sQ={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Jj=sQ,aQ={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},lQ={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},cQ={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},uQ=cQ,uC={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M302 240V16.6c0-9 7-16.6 16-16.6C441.7 0 542 100.3 542 224c0 9-7.6 16-16.6 16H302zM30 272C30 150.7 120.1 50.3 237 34.3c9.2-1.3 17 6.1 17 15.4V288L410.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C369.8 495.6 321.8 512 270 512C137.5 512 30 404.6 30 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-.7L318 288H556.4z"]},eI={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},fQ={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},yM={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},dQ={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},tI={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"]},hQ={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},pQ=hQ,mQ={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},gQ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},fC=gQ,vQ={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M109.7 160H160c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V64C0 46.3 14.3 32 32 32s32 14.3 32 32v51.2L81.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 0L109.7 160z"]},yQ=vQ,_Q={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"]},bQ={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M56 472a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0-160a56 56 0 1 1 0-112 56 56 0 1 1 0 112zM0 96a56 56 0 1 1 112 0A56 56 0 1 1 0 96z"]},wQ=bQ,xQ={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},SQ=xQ,CQ={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},EQ=CQ,TQ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},nI=TQ,OQ={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"]},PQ={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M562.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 114L405.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.6C189.5 251.2 196 330 246 380c56.5 56.5 148 56.5 204.5 0L562.8 267.7zM43.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.6C57 372 57 321 88.5 289.5L200.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.6C416.5 260.8 410 182 360 132c-56.5-56.5-148-56.5-204.5 0L43.2 244.3z"]},kQ={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"]},MQ=kQ,RQ={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},dC={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M240 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H176V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H384c17.7 0 32-14.3 32-32s-14.3-32-32-32H240V80z"]},NQ={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},uw=NQ,LQ={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"]},DQ={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M126.9 142.9c62.2-62.2 162.7-62.5 225.3-1L311 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H447.5c0 0 0 0 0 0H456c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L397.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C57.2 122 39.6 150.7 28.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM0 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L169 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H32.4h-.7H24c-13.3 0-24 10.7-24 24z"]},AQ=DQ,_M={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},jQ={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M305.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L301 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.9L196 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C170.9 8.4 164.2 8 157.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L112 56.1c-13.3 5-25.5 12.1-36.2 20.9L47.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.8C29.6 161.9 29 168.9 29 176s.6 14.1 1.7 20.9L8.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.8zM109 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM501.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.5L580.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.2L312.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.2zM461 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},IQ=jQ,FQ={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},$Q={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"]},BQ={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"]},zQ={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},cd={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.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 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};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 Be(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){bn(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 Qg(e){return Qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qg(e)}function UQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wM(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 VQ(e,t,n){return t&&wM(e.prototype,t),n&&wM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hC(e,t){return WQ(e)||qQ(e,t)||rI(e,t)||ZQ()}function Hd(e){return HQ(e)||YQ(e)||rI(e)||GQ()}function HQ(e){if(Array.isArray(e))return fw(e)}function WQ(e){if(Array.isArray(e))return e}function YQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function rI(e,t){if(e){if(typeof e=="string")return fw(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 fw(e,t)}}function fw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var xM=function(){},pC={},iI={},oI=null,sI={mark:xM,measure:xM};try{typeof window<"u"&&(pC=window),typeof document<"u"&&(iI=document),typeof MutationObserver<"u"&&(oI=MutationObserver),typeof performance<"u"&&(sI=performance)}catch{}var KQ=pC.navigator||{},SM=KQ.userAgent,CM=SM===void 0?"":SM,$s=pC,Nt=iI,EM=oI,vp=sI;$s.document;var Bo=!!Nt.documentElement&&!!Nt.head&&typeof Nt.addEventListener=="function"&&typeof Nt.createElement=="function",aI=~CM.indexOf("MSIE")||~CM.indexOf("Trident/"),yp,_p,bp,wp,xp,ko="___FONT_AWESOME___",dw=16,lI="fa",cI="svg-inline--fa",Xa="data-fa-i2svg",hw="data-fa-pseudo-element",XQ="data-fa-pseudo-element-pending",mC="data-prefix",gC="data-icon",TM="fontawesome-i2svg",QQ="async",JQ=["HTML","HEAD","STYLE","SCRIPT"],uI=function(){try{return!0}catch{return!1}}(),Pt="classic",Yt="sharp",vC=[Pt,Yt];function Wd(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Pt]}})}var ud=Wd((yp={},bn(yp,Pt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),bn(yp,Yt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),yp)),fd=Wd((_p={},bn(_p,Pt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),bn(_p,Yt,{solid:"fass",regular:"fasr"}),_p)),dd=Wd((bp={},bn(bp,Pt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),bn(bp,Yt,{fass:"fa-solid",fasr:"fa-regular"}),bp)),eJ=Wd((wp={},bn(wp,Pt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),bn(wp,Yt,{"fa-solid":"fass","fa-regular":"fasr"}),wp)),tJ=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,fI="fa-layers-text",nJ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,rJ=Wd((xp={},bn(xp,Pt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),bn(xp,Yt,{900:"fass",400:"fasr"}),xp)),dI=[1,2,3,4,5,6,7,8,9,10],iJ=dI.concat([11,12,13,14,15,16,17,18,19,20]),oJ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],La={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},hd=new Set;Object.keys(fd[Pt]).map(hd.add.bind(hd));Object.keys(fd[Yt]).map(hd.add.bind(hd));var sJ=[].concat(vC,Hd(hd),["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",La.GROUP,La.SWAP_OPACITY,La.PRIMARY,La.SECONDARY]).concat(dI.map(function(e){return"".concat(e,"x")})).concat(iJ.map(function(e){return"w-".concat(e)})),wf=$s.FontAwesomeConfig||{};function aJ(e){var t=Nt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function lJ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Nt&&typeof Nt.querySelector=="function"){var cJ=[["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"]];cJ.forEach(function(e){var t=hC(e,2),n=t[0],r=t[1],i=lJ(aJ(n));i!=null&&(wf[r]=i)})}var hI={styleDefault:"solid",familyDefault:"classic",cssPrefix:lI,replacementClass:cI,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wf.familyPrefix&&(wf.cssPrefix=wf.familyPrefix);var Rc=Be(Be({},hI),wf);Rc.autoReplaceSvg||(Rc.observeMutations=!1);var Ve={};Object.keys(hI).forEach(function(e){Object.defineProperty(Ve,e,{enumerable:!0,set:function(n){Rc[e]=n,xf.forEach(function(r){return r(Ve)})},get:function(){return Rc[e]}})});Object.defineProperty(Ve,"familyPrefix",{enumerable:!0,set:function(t){Rc.cssPrefix=t,xf.forEach(function(n){return n(Ve)})},get:function(){return Rc.cssPrefix}});$s.FontAwesomeConfig=Ve;var xf=[];function uJ(e){return xf.push(e),function(){xf.splice(xf.indexOf(e),1)}}var Ko=dw,qi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fJ(e){if(!(!e||!Bo)){var t=Nt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Nt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return Nt.head.insertBefore(t,r),e}}var dJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function pd(){for(var e=12,t="";e-- >0;)t+=dJ[Math.random()*62|0];return t}function Qc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function yC(e){return e.classList?Qc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function pI(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function hJ(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(pI(e[n]),'" ')},"").trim()}function i_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _C(e){return e.size!==qi.size||e.x!==qi.x||e.y!==qi.y||e.rotate!==qi.rotate||e.flipX||e.flipY}function pJ(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function mJ(e){var t=e.transform,n=e.width,r=n===void 0?dw:n,i=e.height,o=i===void 0?dw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&aI?l+="translate(".concat(t.x/Ko-r/2,"em, ").concat(t.y/Ko-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/Ko,"em), calc(-50% + ").concat(t.y/Ko,"em)) "):l+="translate(".concat(t.x/Ko,"em, ").concat(t.y/Ko,"em) "),l+="scale(".concat(t.size/Ko*(t.flipX?-1:1),", ").concat(t.size/Ko*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var gJ=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
transform: scale(var(--fa-counter-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
transform: scale(var(--fa-layers-scale, 0.25));
-webkit-transform-origin: top left;
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(var(--fa-li-width, 2em) * -1);
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
-webkit-animation-name: fa-beat;
animation-name: fa-beat;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
-webkit-animation-name: fa-bounce;
animation-name: fa-bounce;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
-webkit-animation-name: fa-fade;
animation-name: fa-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
-webkit-animation-name: fa-beat-fade;
animation-name: fa-beat-fade;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
-webkit-animation-name: fa-flip;
animation-name: fa-flip;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
-webkit-animation-name: fa-shake;
animation-name: fa-shake;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-delay: var(--fa-animation-delay, 0s);
animation-delay: var(--fa-animation-delay, 0s);
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 2s);
animation-duration: var(--fa-animation-duration, 2s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
-webkit-animation-name: fa-spin;
animation-name: fa-spin;
-webkit-animation-direction: var(--fa-animation-direction, normal);
animation-direction: var(--fa-animation-direction, normal);
-webkit-animation-duration: var(--fa-animation-duration, 1s);
animation-duration: var(--fa-animation-duration, 1s);
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
-webkit-animation-delay: -1ms;
animation-delay: -1ms;
-webkit-animation-duration: 1ms;
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s;
}
}
@-webkit-keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-beat {
0%, 90% {
-webkit-transform: scale(1);
transform: scale(1);
}
45% {
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@-webkit-keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-bounce {
0% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
10% {
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
100% {
-webkit-transform: scale(1, 1) translateY(0);
transform: scale(1, 1) translateY(0);
}
}
@-webkit-keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@-webkit-keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
-webkit-transform: scale(1);
transform: scale(1);
}
50% {
opacity: 1;
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@-webkit-keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-flip {
50% {
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@-webkit-keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@keyframes fa-shake {
0% {
-webkit-transform: rotate(-15deg);
transform: rotate(-15deg);
}
4% {
-webkit-transform: rotate(15deg);
transform: rotate(15deg);
}
8%, 24% {
-webkit-transform: rotate(-18deg);
transform: rotate(-18deg);
}
12%, 28% {
-webkit-transform: rotate(18deg);
transform: rotate(18deg);
}
16% {
-webkit-transform: rotate(-22deg);
transform: rotate(-22deg);
}
20% {
-webkit-transform: rotate(22deg);
transform: rotate(22deg);
}
32% {
-webkit-transform: rotate(-12deg);
transform: rotate(-12deg);
}
36% {
-webkit-transform: rotate(12deg);
transform: rotate(12deg);
}
40%, 100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
.fa-rotate-by {
-webkit-transform: rotate(var(--fa-rotate-angle, none));
transform: rotate(var(--fa-rotate-angle, none));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse,
.fa-duotone.fa-inverse {
color: var(--fa-inverse, #fff);
}`;function mI(){var e=lI,t=cI,n=Ve.cssPrefix,r=Ve.replacementClass,i=gJ;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var OM=!1;function s1(){Ve.autoAddCss&&!OM&&(fJ(mI()),OM=!0)}var vJ={mixout:function(){return{dom:{css:mI,insertCss:s1}}},hooks:function(){return{beforeDOMElementCreation:function(){s1()},beforeI2svg:function(){s1()}}}},Mo=$s||{};Mo[ko]||(Mo[ko]={});Mo[ko].styles||(Mo[ko].styles={});Mo[ko].hooks||(Mo[ko].hooks={});Mo[ko].shims||(Mo[ko].shims=[]);var _i=Mo[ko],gI=[],yJ=function e(){Nt.removeEventListener("DOMContentLoaded",e),Jg=1,gI.map(function(t){return t()})},Jg=!1;Bo&&(Jg=(Nt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Nt.readyState),Jg||Nt.addEventListener("DOMContentLoaded",yJ));function _J(e){Bo&&(Jg?setTimeout(e,0):gI.push(e))}function Yd(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?pI(e):"<".concat(t," ").concat(hJ(r),">").concat(o.map(Yd).join(""),"</").concat(t,">")}function PM(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var bJ=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},a1=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?bJ(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<s;l++)c=o[l],f=a(f,t[c],c,t);return f};function wJ(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function pw(e){var t=wJ(e);return t.length===1?t[0].toString(16):null}function xJ(e,t){var n=e.length,r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function kM(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function mw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=kM(t);typeof _i.hooks.addPack=="function"&&!i?_i.hooks.addPack(e,kM(t)):_i.styles[e]=Be(Be({},_i.styles[e]||{}),o),e==="fas"&&mw("fa",t)}var Sp,Cp,Ep,Ql=_i.styles,SJ=_i.shims,CJ=(Sp={},bn(Sp,Pt,Object.values(dd[Pt])),bn(Sp,Yt,Object.values(dd[Yt])),Sp),bC=null,vI={},yI={},_I={},bI={},wI={},EJ=(Cp={},bn(Cp,Pt,Object.keys(ud[Pt])),bn(Cp,Yt,Object.keys(ud[Yt])),Cp);function TJ(e){return~sJ.indexOf(e)}function OJ(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!TJ(i)?i:null}var xI=function(){var t=function(o){return a1(Ql,function(s,a,l){return s[l]=a1(a,o,{}),s},{})};vI=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=s})}return i}),yI=t(function(i,o,s){if(i[s]=s,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=s})}return i}),wI=t(function(i,o,s){var a=o[2];return i[s]=s,a.forEach(function(l){i[l]=s}),i});var n="far"in Ql||Ve.autoFetchSvg,r=a1(SJ,function(i,o){var s=o[0],a=o[1],l=o[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(i.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});_I=r.names,bI=r.unicodes,bC=o_(Ve.styleDefault,{family:Ve.familyDefault})};uJ(function(e){bC=o_(e.styleDefault,{family:Ve.familyDefault})});xI();function wC(e,t){return(vI[e]||{})[t]}function PJ(e,t){return(yI[e]||{})[t]}function Da(e,t){return(wI[e]||{})[t]}function SI(e){return _I[e]||{prefix:null,iconName:null}}function kJ(e){var t=bI[e],n=wC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bs(){return bC}var xC=function(){return{prefix:null,iconName:null,rest:[]}};function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Pt:n,i=ud[r][e],o=fd[r][e]||fd[r][i],s=e in _i.styles?e:null;return o||s||null}var MM=(Ep={},bn(Ep,Pt,Object.keys(dd[Pt])),bn(Ep,Yt,Object.keys(dd[Yt])),Ep);function s_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},bn(t,Pt,"".concat(Ve.cssPrefix,"-").concat(Pt)),bn(t,Yt,"".concat(Ve.cssPrefix,"-").concat(Yt)),t),s=null,a=Pt;(e.includes(o[Pt])||e.some(function(c){return MM[Pt].includes(c)}))&&(a=Pt),(e.includes(o[Yt])||e.some(function(c){return MM[Yt].includes(c)}))&&(a=Yt);var l=e.reduce(function(c,f){var h=OJ(Ve.cssPrefix,f);if(Ql[f]?(f=CJ[a].includes(f)?eJ[a][f]:f,s=f,c.prefix=f):EJ[a].indexOf(f)>-1?(s=f,c.prefix=o_(f,{family:a})):h?c.iconName=h:f!==Ve.replacementClass&&f!==o[Pt]&&f!==o[Yt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?SI(c.iconName):{},m=Da(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Ql.far&&Ql.fas&&!Ve.autoFetchSvg&&(c.prefix="fas")}return c},xC());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Yt&&(Ql.fass||Ve.autoFetchSvg)&&(l.prefix="fass",l.iconName=Da(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Bs()||"fas"),l}var MJ=function(){function e(){UQ(this,e),this.definitions={}}return VQ(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(a){n.definitions[a]=Be(Be({},n.definitions[a]||{}),s[a]),mw(a,s[a]);var l=dd[Pt][a];l&&mw(l,s[a]),xI()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var s=i[o],a=s.prefix,l=s.iconName,c=s.icon,f=c[2];n[a]||(n[a]={}),f.length>0&&f.forEach(function(h){typeof h=="string"&&(n[a][h]=c)}),n[a][l]=c}),n}}]),e}(),RM=[],Jl={},dc={},RJ=Object.keys(dc);function NJ(e,t){var n=t.mixoutsTo;return RM=e,Jl={},Object.keys(dc).forEach(function(r){RJ.indexOf(r)===-1&&delete dc[r]}),RM.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),Qg(i[s])==="object"&&Object.keys(i[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=i[s][a]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){Jl[s]||(Jl[s]=[]),Jl[s].push(o[s])})}r.provides&&r.provides(dc)}),n}function gw(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=Jl[e]||[];return o.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Qa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Jl[e]||[];i.forEach(function(o){o.apply(null,n)})}function Ro(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return dc[e]?dc[e].apply(null,t):void 0}function vw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Bs();if(t)return t=Da(n,t)||t,PM(CI.definitions,n,t)||PM(_i.styles,n,t)}var CI=new MJ,LJ=function(){Ve.autoReplaceSvg=!1,Ve.observeMutations=!1,Qa("noAuto")},DJ={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Bo?(Qa("beforeI2svg",t),Ro("pseudoElements2svg",t),Ro("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Ve.autoReplaceSvg===!1&&(Ve.autoReplaceSvg=!0),Ve.observeMutations=!0,_J(function(){jJ({autoReplaceSvgRoot:n}),Qa("watch",t)})}},AJ={icon:function(t){if(t===null)return null;if(Qg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Da(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=o_(t[0]);return{prefix:r,iconName:Da(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Ve.cssPrefix,"-"))>-1||t.match(tJ))){var i=s_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Bs(),iconName:Da(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Bs();return{prefix:o,iconName:Da(o,t)||t}}}},$r={noAuto:LJ,config:Ve,dom:DJ,parse:AJ,library:CI,findIconDefinition:vw,toHtml:Yd},jJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Nt:n;(Object.keys(_i.styles).length>0||Ve.autoFetchSvg)&&Bo&&Ve.autoReplaceSvg&&$r.dom.i2svg({node:r})};function a_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Yd(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Bo){var r=Nt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function IJ(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(_C(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=i_(Be(Be({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function FJ(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(Ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Be(Be({},i),{},{id:s}),children:r}]}]}function SC(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,m=p===void 0?!1:p,v=r.found?r:n,y=v.width,x=v.height,_=i==="fak",w=[Ve.replacementClass,o?"".concat(Ve.cssPrefix,"-").concat(o):""].filter(function(z){return h.classes.indexOf(z)===-1}).filter(function(z){return z!==""||!!z}).concat(h.classes).join(" "),S={children:[],attributes:Be(Be({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},T=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};m&&(S.attributes[Xa]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(f||pd())},children:[l]}),delete S.attributes.title);var P=Be(Be({},S),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:Be(Be({},T),h.styles)}),k=r.found&&n.found?Ro("generateAbstractMask",P)||{children:[],attributes:{}}:Ro("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,D=k.attributes;return P.children=N,P.attributes=D,a?FJ(P):IJ(P)}function NM(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=a===void 0?!1:a,c=Be(Be(Be({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[Xa]="");var f=Be({},s.styles);_C(i)&&(f.transform=mJ({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=i_(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function $J(e){var t=e.content,n=e.title,r=e.extra,i=Be(Be(Be({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=i_(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var l1=_i.styles;function yw(e){var t=e[0],n=e[1],r=e.slice(4),i=hC(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(La.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(La.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Ve.cssPrefix,"-").concat(La.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var BJ={found:!1,width:512,height:512};function zJ(e,t){!uI&&!Ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function _w(e,t){var n=t;return t==="fa"&&Ve.styleDefault!==null&&(t=Bs()),new Promise(function(r,i){if(Ro("missingIconAbstract"),n==="fa"){var o=SI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&l1[t]&&l1[t][e]){var s=l1[t][e];return r(yw(s))}zJ(e,t),r(Be(Be({},BJ),{},{icon:Ve.showMissingIcons&&e?Ro("missingIconAbstract")||{}:{}}))})}var LM=function(){},bw=Ve.measurePerformance&&vp&&vp.mark&&vp.measure?vp:{mark:LM,measure:LM},Zu='FA "6.3.0"',UJ=function(t){return bw.mark("".concat(Zu," ").concat(t," begins")),function(){return EI(t)}},EI=function(t){bw.mark("".concat(Zu," ").concat(t," ends")),bw.measure("".concat(Zu," ").concat(t),"".concat(Zu," ").concat(t," begins"),"".concat(Zu," ").concat(t," ends"))},CC={begin:UJ,end:EI},cm=function(){};function DM(e){var t=e.getAttribute?e.getAttribute(Xa):null;return typeof t=="string"}function VJ(e){var t=e.getAttribute?e.getAttribute(mC):null,n=e.getAttribute?e.getAttribute(gC):null;return t&&n}function HJ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ve.replacementClass)}function WJ(){if(Ve.autoReplaceSvg===!0)return um.replace;var e=um[Ve.autoReplaceSvg];return e||um.replace}function YJ(e){return Nt.createElementNS("http://www.w3.org/2000/svg",e)}function qJ(e){return Nt.createElement(e)}function TI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?YJ:qJ:n;if(typeof e=="string")return Nt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(TI(s,{ceFn:r}))}),i}function GJ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var um={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(TI(i),n)}),n.getAttribute(Xa)===null&&Ve.keepOriginalSource){var r=Nt.createComment(GJ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~yC(n).indexOf(Ve.replacementClass))return um.replace(t);var i=new RegExp("".concat(Ve.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===Ve.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(a){return Yd(a)}).join(`
`);n.setAttribute(Xa,""),n.innerHTML=s}};function AM(e){e()}function OI(e,t){var n=typeof t=="function"?t:cm;if(e.length===0)n();else{var r=AM;Ve.mutateApproach===QQ&&(r=$s.requestAnimationFrame||AM),r(function(){var i=WJ(),o=CC.begin("mutate");e.map(i),o(),n()})}}var EC=!1;function PI(){EC=!0}function ww(){EC=!1}var ev=null;function jM(e){if(EM&&Ve.observeMutations){var t=e.treeCallback,n=t===void 0?cm:t,r=e.nodeCallback,i=r===void 0?cm:r,o=e.pseudoElementsCallback,s=o===void 0?cm:o,a=e.observeMutationsRoot,l=a===void 0?Nt:a;ev=new EM(function(c){if(!EC){var f=Bs();Qc(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!DM(h.addedNodes[0])&&(Ve.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&Ve.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&DM(h.target)&&~oJ.indexOf(h.attributeName))if(h.attributeName==="class"&&VJ(h.target)){var p=s_(yC(h.target)),m=p.prefix,v=p.iconName;h.target.setAttribute(mC,m||f),v&&h.target.setAttribute(gC,v)}else HJ(h.target)&&i(h.target)})}}),Bo&&ev.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ZJ(){ev&&ev.disconnect()}function KJ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function XJ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=s_(yC(e));return i.prefix||(i.prefix=Bs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=PJ(i.prefix,e.innerText)||wC(i.prefix,pw(e.innerText))),!i.iconName&&Ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function QJ(e){var t=Qc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ve.autoA11y&&(n?t["aria-labelledby"]="".concat(Ve.replacementClass,"-title-").concat(r||pd()):(t["aria-hidden"]="true",t.focusable="false")),t}function JJ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:qi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function IM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=XJ(e),r=n.iconName,i=n.prefix,o=n.rest,s=QJ(e),a=gw("parseNodeAttributes",{},e),l=t.styleParser?KJ(e):[];return Be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:qi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var eee=_i.styles;function kI(e){var t=Ve.autoReplaceSvg==="nest"?IM(e,{styleParser:!1}):IM(e);return~t.extra.classes.indexOf(fI)?Ro("generateLayersText",e,t):Ro("generateSvgReplacementMutation",e,t)}var zs=new Set;vC.map(function(e){zs.add("fa-".concat(e))});Object.keys(ud[Pt]).map(zs.add.bind(zs));Object.keys(ud[Yt]).map(zs.add.bind(zs));zs=Hd(zs);function FM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bo)return Promise.resolve();var n=Nt.documentElement.classList,r=function(h){return n.add("".concat(TM,"-").concat(h))},i=function(h){return n.remove("".concat(TM,"-").concat(h))},o=Ve.autoFetchSvg?zs:vC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(eee));o.includes("fa")||o.push("fa");var s=[".".concat(fI,":not([").concat(Xa,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Xa,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=Qc(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=CC.begin("onTree"),c=a.reduce(function(f,h){try{var p=kI(h);p&&f.push(p)}catch(m){uI||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){OI(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function tee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kI(e).then(function(n){n&&OI([n],t)})}function nee(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:vw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:vw(i||{})),e(r,Be(Be({},n),{},{mask:i}))}}var ree=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?qi:r,o=n.symbol,s=o===void 0?!1:o,a=n.mask,l=a===void 0?null:a,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,v=m===void 0?null:m,y=n.classes,x=y===void 0?[]:y,_=n.attributes,w=_===void 0?{}:_,S=n.styles,T=S===void 0?{}:S;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return a_(Be({type:"icon"},t),function(){return Qa("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ve.autoA11y&&(p?w["aria-labelledby"]="".concat(Ve.replacementClass,"-title-").concat(v||pd()):(w["aria-hidden"]="true",w.focusable="false")),SC({icons:{main:yw(N),mask:l?yw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:Be(Be({},qi),i),symbol:s,title:p,maskId:f,titleId:v,extra:{attributes:w,styles:T,classes:x}})})}},iee={mixout:function(){return{icon:nee(ree)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=FM,n.nodeCallback=tee,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Nt:r,o=n.callback,s=o===void 0?function(){}:o;return FM(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,a=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([_w(i,a),f.iconName?_w(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=hC(y,2),_=x[0],w=x[1];m([n,SC({icons:{main:_,mask:w},prefix:a,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:s,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,a=n.styles,l=i_(a);l.length>0&&(i.style=l);var c;return _C(s)&&(c=Ro("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},oee={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return a_({type:"layer"},function(){Qa("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Ve.cssPrefix,"-layers")].concat(Hd(o)).join(" ")},children:s}]})}}}},see={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,s=r.classes,a=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return a_({type:"counter",content:n},function(){return Qa("beforeDOMElementCreation",{content:n,params:r}),$J({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(Ve.cssPrefix,"-layers-counter")].concat(Hd(a))}})})}}}},aee={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?qi:i,s=r.title,a=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return a_({type:"text",content:n},function(){return Qa("beforeDOMElementCreation",{content:n,params:r}),NM({content:n,transform:Be(Be({},qi),o),title:a,extra:{attributes:h,styles:m,classes:["".concat(Ve.cssPrefix,"-layers-text")].concat(Hd(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(aI){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return Ve.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,NM({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},lee=new RegExp('"',"ug"),$M=[1105920,1112319];function cee(e){var t=e.replace(lee,""),n=xJ(t,0),r=n>=$M[0]&&n<=$M[1],i=t.length===2?t[0]===t[1]:!1;return{value:pw(i?t[0]:t),isSecondary:r||i}}function BM(e,t){var n="".concat(XQ).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Qc(e.children),s=o.filter(function(N){return N.getAttribute(hw)===t})[0],a=$s.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(nJ),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&f!=="none"&&f!==""){var h=a.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Yt:Pt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?fd[p][l[2].toLowerCase()]:rJ[p][c],v=cee(h),y=v.value,x=v.isSecondary,_=l[0].startsWith("FontAwesome"),w=wC(m,y),S=w;if(_){var T=kJ(y);T.iconName&&T.prefix&&(w=T.iconName,m=T.prefix)}if(w&&!x&&(!s||s.getAttribute(mC)!==m||s.getAttribute(gC)!==S)){e.setAttribute(n,S),s&&e.removeChild(s);var P=JJ(),k=P.extra;k.attributes[hw]=t,_w(w,m).then(function(N){var D=SC(Be(Be({},P),{},{icons:{main:N,mask:xC()},prefix:m,iconName:S,extra:k,watchable:!0})),z=Nt.createElement("svg");t==="::before"?e.insertBefore(z,e.firstChild):e.appendChild(z),z.outerHTML=D.map(function(A){return Yd(A)}).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function uee(e){return Promise.all([BM(e,"::before"),BM(e,"::after")])}function fee(e){return e.parentNode!==document.head&&!~JQ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function zM(e){if(Bo)return new Promise(function(t,n){var r=Qc(e.querySelectorAll("*")).filter(fee).map(uee),i=CC.begin("searchPseudoElements");PI(),Promise.all(r).then(function(){i(),ww(),t()}).catch(function(){i(),ww(),n()})})}var dee={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=zM,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Nt:r;Ve.searchPseudoElements&&zM(i)}}},UM=!1,hee={mixout:function(){return{dom:{unwatch:function(){PI(),UM=!0}}}},hooks:function(){return{bootstrap:function(){jM(gw("mutationObserverCallbacks",{}))},noAuto:function(){ZJ()},watch:function(n){var r=n.observeMutationsRoot;UM?ww():jM(gw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},VM=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],a=o.slice(1).join("-");if(s&&a==="h")return r.flipX=!0,r;if(s&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(s){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},pee={mixout:function(){return{parse:{transform:function(n){return VM(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=VM(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:Be({},m.outer),children:[{tag:"g",attributes:Be({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Be(Be({},r.icon.attributes),m.path)}]}]}}}},c1={x:0,y:0,width:"100%",height:"100%"};function HM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function mee(e){return e.tag==="g"?e.children:[e]}var gee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?s_(i.split(" ").map(function(s){return s.trim()})):xC();return o.prefix||(o.prefix=Bs()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,a=n.maskId,l=n.transform,c=o.width,f=o.icon,h=s.width,p=s.icon,m=pJ({transform:l,containerWidth:h,iconWidth:c}),v={tag:"rect",attributes:Be(Be({},c1),{},{fill:"white"})},y=f.children?{children:f.children.map(HM)}:{},x={tag:"g",attributes:Be({},m.inner),children:[HM(Be({tag:f.tag,attributes:Be(Be({},f.attributes),m.path)},y))]},_={tag:"g",attributes:Be({},m.outer),children:[x]},w="mask-".concat(a||pd()),S="clip-".concat(a||pd()),T={tag:"mask",attributes:Be(Be({},c1),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,_]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:mee(p)},T]};return r.push(P,{tag:"rect",attributes:Be({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},c1)}),{children:r,attributes:i}}}},vee={provides:function(t){var n=!1;$s.matchMedia&&(n=$s.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Be(Be({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=Be(Be({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Be(Be({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:Be(Be({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Be(Be({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:Be(Be({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Be(Be({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Be(Be({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Be(Be({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},yee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},_ee=[vJ,iee,oee,see,aee,dee,hee,pee,gee,vee,yee];NJ(_ee,{mixoutsTo:$r});$r.noAuto;$r.config;$r.library;$r.dom;var xw=$r.parse;$r.findIconDefinition;$r.toHtml;var bee=$r.icon;$r.layer;$r.text;$r.counter;var MI={exports:{}},wee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xee=wee,See=xee;function RI(){}function NI(){}NI.resetWarningCache=RI;var Cee=function(){function e(r,i,o,s,a,l){if(l!==See){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:NI,resetWarningCache:RI};return n.PropTypes=n,n};MI.exports=Cee();var Eee=MI.exports;const C=ri(Eee);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 vs(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){ec(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 tv(e){return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tv(e)}function 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 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 Oee(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 Sw(e){return Pee(e)||kee(e)||Mee(e)||Ree()}function Pee(e){if(Array.isArray(e))return Cw(e)}function kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mee(e,t){if(e){if(typeof e=="string")return Cw(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 Cw(e,t)}}function Cw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ree(){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 Nee(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,f=e.spinReverse,h=e.pulse,p=e.fixedWidth,m=e.inverse,v=e.border,y=e.listItem,x=e.flip,_=e.size,w=e.rotation,S=e.pull,T=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":p,"fa-inverse":m,"fa-border":v,"fa-li":y,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},ec(t,"fa-".concat(_),typeof _<"u"&&_!==null),ec(t,"fa-rotate-".concat(w),typeof w<"u"&&w!==null&&w!==0),ec(t,"fa-pull-".concat(S),typeof S<"u"&&S!==null),ec(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(P){return T[P]?P:null}).filter(function(P){return P})}function Lee(e){return e=e-0,e===e}function LI(e){return Lee(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Dee=["style"];function Aee(e){return e.charAt(0).toUpperCase()+e.slice(1)}function jee(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=LI(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[Aee(i)]=o:t[i]=o,t},{})}function DI(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 DI(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=jee(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[LI(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=Oee(n,Dee);return i.attrs.style=vs(vs({},i.attrs.style),s),e.apply(void 0,[t.tag,vs(vs({},i.attrs),a)].concat(Sw(r)))}var AI=!1;try{AI=!0}catch{}function Iee(){if(!AI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function YM(e){if(e&&tv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(xw.icon)return xw.icon(e);if(e===null)return null;if(e&&tv(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 u1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ec({},e,t):{}}var je=U.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,s=e.title,a=e.titleId,l=e.maskId,c=YM(n),f=u1("classes",[].concat(Sw(Nee(e)),Sw(o.split(" ")))),h=u1("transform",typeof e.transform=="string"?xw.transform(e.transform):e.transform),p=u1("mask",YM(r)),m=bee(c,vs(vs(vs(vs({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!m)return Iee("Could not find icon",c),null;var v=m.abstract,y={ref:t};return Object.keys(e).forEach(function(x){je.defaultProps.hasOwnProperty(x)||(y[x]=e[x])}),Fee(v[0],y)});je.displayName="FontAwesomeIcon";je.propTypes={beat:C.bool,border:C.bool,beatFade:C.bool,bounce:C.bool,className:C.string,fade:C.bool,flash:C.bool,mask:C.oneOfType([C.object,C.array,C.string]),maskId:C.string,fixedWidth:C.bool,inverse:C.bool,flip:C.oneOf([!0,!1,"horizontal","vertical","both"]),icon:C.oneOfType([C.object,C.array,C.string]),listItem:C.bool,pull:C.oneOf(["right","left"]),pulse:C.bool,rotation:C.oneOf([0,90,180,270]),shake:C.bool,size:C.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:C.bool,spinPulse:C.bool,spinReverse:C.bool,symbol:C.oneOfType([C.bool,C.string]),title:C.string,titleId:C.string,transform:C.oneOfType([C.string,C.object]),swapOpacity:C.bool};je.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Fee=DI.bind(null,U.createElement),jI=V.createContext(),II=V.createContext();function qM(e){var t=e.children,n=V.useState(null),r=n[0],i=n[1],o=V.useRef(!1);V.useEffect(function(){return function(){o.current=!0}},[]);var s=V.useCallback(function(a){o.current||i(a)},[]);return V.createElement(jI.Provider,{value:r},V.createElement(II.Provider,{value:s},t))}var FI=function(t){return Array.isArray(t)?t[0]:t},$I=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)}},Ew=function(t,n){if(typeof t=="function")return $I(t,n);t!=null&&(t.current=n)},GM=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},ZM=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect,wr="top",ti="bottom",ni="right",xr="left",TC="auto",qd=[wr,ti,ni,xr],Nc="start",md="end",$ee="clippingParents",BI="viewport",Au="popper",Bee="reference",KM=qd.reduce(function(e,t){return e.concat([t+"-"+Nc,t+"-"+md])},[]),zI=[].concat(qd,[TC]).reduce(function(e,t){return e.concat([t,t+"-"+Nc,t+"-"+md])},[]),zee="beforeRead",Uee="read",Vee="afterRead",Hee="beforeMain",Wee="main",Yee="afterMain",qee="beforeWrite",Gee="write",Zee="afterWrite",Kee=[zee,Uee,Vee,Hee,Wee,Yee,qee,Gee,Zee];function to(e){return e?(e.nodeName||"").toLowerCase():null}function oi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ja(e){var t=oi(e).Element;return e instanceof t||e instanceof Element}function Kr(e){var t=oi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function OC(e){if(typeof ShadowRoot>"u")return!1;var t=oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xee(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];!Kr(o)||!to(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Qee(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Kr(i)||!to(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Jee={name:"applyStyles",enabled:!0,phase:"write",fn:Xee,effect:Qee,requires:["computeStyles"]};function Xi(e){return e.split("-")[0]}var za=Math.max,nv=Math.min,Lc=Math.round;function Tw(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function UI(){return!/^((?!chrome|android).)*safari/i.test(Tw())}function Dc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Kr(e)&&(i=e.offsetWidth>0&&Lc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Lc(r.height)/e.offsetHeight||1);var s=Ja(e)?oi(e):window,a=s.visualViewport,l=!UI()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function PC(e){var t=Dc(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&&OC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function No(e){return oi(e).getComputedStyle(e)}function ete(e){return["table","td","th"].indexOf(to(e))>=0}function ea(e){return((Ja(e)?e.ownerDocument:e.document)||window.document).documentElement}function l_(e){return to(e)==="html"?e:e.assignedSlot||e.parentNode||(OC(e)?e.host:null)||ea(e)}function XM(e){return!Kr(e)||No(e).position==="fixed"?null:e.offsetParent}function tte(e){var t=/firefox/i.test(Tw()),n=/Trident/i.test(Tw());if(n&&Kr(e)){var r=No(e);if(r.position==="fixed")return null}var i=l_(e);for(OC(i)&&(i=i.host);Kr(i)&&["html","body"].indexOf(to(i))<0;){var o=No(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 Gd(e){for(var t=oi(e),n=XM(e);n&&ete(n)&&No(n).position==="static";)n=XM(n);return n&&(to(n)==="html"||to(n)==="body"&&No(n).position==="static")?t:n||tte(e)||t}function kC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sf(e,t,n){return za(e,nv(t,n))}function nte(e,t,n){var r=Sf(e,t,n);return r>n?n:r}function HI(){return{top:0,right:0,bottom:0,left:0}}function WI(e){return Object.assign({},HI(),e)}function YI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var rte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WI(typeof t!="number"?t:YI(t,qd))};function ite(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Xi(n.placement),l=kC(a),c=[xr,ni].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=rte(i.padding,n),p=PC(o),m=l==="y"?wr:xr,v=l==="y"?ti:ni,y=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],x=s[l]-n.rects.reference[l],_=Gd(o),w=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-x/2,T=h[m],P=w-p[f]-h[v],k=w/2-p[f]/2+S,N=Sf(T,k,P),D=l;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-k,t)}}function ote(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 ste={name:"arrow",enabled:!0,phase:"main",fn:ite,effect:ote,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ac(e){return e.split("-")[1]}var ate={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lte(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Lc(t*i)/i||0,y:Lc(n*i)/i||0}}function QM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,m=p===void 0?0:p,v=s.y,y=v===void 0?0:v,x=typeof f=="function"?f({x:m,y}):{x:m,y};m=x.x,y=x.y;var _=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),S=xr,T=wr,P=window;if(c){var k=Gd(n),N="clientHeight",D="clientWidth";if(k===oi(n)&&(k=ea(n),No(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),k=k,i===wr||(i===xr||i===ni)&&o===md){T=ti;var z=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];y-=z-r.height,y*=l?1:-1}if(i===xr||(i===wr||i===ti)&&o===md){S=ni;var A=h&&k===P&&P.visualViewport?P.visualViewport.width:k[D];m-=A-r.width,m*=l?1:-1}}var W=Object.assign({position:a},c&&ate),Y=f===!0?lte({x:m,y}):{x:m,y};if(m=Y.x,y=Y.y,l){var J;return Object.assign({},W,(J={},J[T]=w?"0":"",J[S]=_?"0":"",J.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",J))}return Object.assign({},W,(t={},t[T]=w?y+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function cte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Xi(t.placement),variation:Ac(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,QM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,QM(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 ute={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cte,data:{}};var Tp={passive:!0};function fte(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=oi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Tp)}),a&&l.addEventListener("resize",n.update,Tp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Tp)}),a&&l.removeEventListener("resize",n.update,Tp)}}const dte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fte,data:{}};var hte={left:"right",right:"left",bottom:"top",top:"bottom"};function fm(e){return e.replace(/left|right|bottom|top/g,function(t){return hte[t]})}var pte={start:"end",end:"start"};function JM(e){return e.replace(/start|end/g,function(t){return pte[t]})}function MC(e){var t=oi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function RC(e){return Dc(ea(e)).left+MC(e).scrollLeft}function mte(e,t){var n=oi(e),r=ea(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=UI();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+RC(e),y:l}}function gte(e){var t,n=ea(e),r=MC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=za(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=za(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+RC(e),l=-r.scrollTop;return No(i||n).direction==="rtl"&&(a+=za(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function NC(e){var t=No(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(to(e))>=0?e.ownerDocument.body:Kr(e)&&NC(e)?e:qI(l_(e))}function Cf(e,t){var n;t===void 0&&(t=[]);var r=qI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=oi(r),s=i?[o].concat(o.visualViewport||[],NC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Cf(l_(s)))}function Ow(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vte(e,t){var n=Dc(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 e3(e,t,n){return t===BI?Ow(mte(e,n)):Ja(t)?vte(t,n):Ow(gte(ea(e)))}function yte(e){var t=Cf(l_(e)),n=["absolute","fixed"].indexOf(No(e).position)>=0,r=n&&Kr(e)?Gd(e):e;return Ja(r)?t.filter(function(i){return Ja(i)&&VI(i,r)&&to(i)!=="body"}):[]}function _te(e,t,n,r){var i=t==="clippingParents"?yte(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=e3(e,c,r);return l.top=za(f.top,l.top),l.right=nv(f.right,l.right),l.bottom=nv(f.bottom,l.bottom),l.left=za(f.left,l.left),l},e3(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function GI(e){var t=e.reference,n=e.element,r=e.placement,i=r?Xi(r):null,o=r?Ac(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case wr:l={x:s,y:t.y-n.height};break;case ti:l={x:s,y:t.y+t.height};break;case ni:l={x:t.x+t.width,y:a};break;case xr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?kC(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Nc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case md:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function gd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?$ee:a,c=n.rootBoundary,f=c===void 0?BI:c,h=n.elementContext,p=h===void 0?Au:h,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,_=WI(typeof x!="number"?x:YI(x,qd)),w=p===Au?Bee:Au,S=e.rects.popper,T=e.elements[v?w:p],P=_te(Ja(T)?T:T.contextElement||ea(e.elements.popper),l,f,s),k=Dc(e.elements.reference),N=GI({reference:k,element:S,strategy:"absolute",placement:i}),D=Ow(Object.assign({},S,N)),z=p===Au?D:k,A={top:P.top-z.top+_.top,bottom:z.bottom-P.bottom+_.bottom,left:P.left-z.left+_.left,right:z.right-P.right+_.right},W=e.modifiersData.offset;if(p===Au&&W){var Y=W[i];Object.keys(A).forEach(function(J){var Z=[ni,ti].indexOf(J)>=0?1:-1,ee=[wr,ti].indexOf(J)>=0?"y":"x";A[J]+=Y[ee]*Z})}return A}function bte(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?zI:l,f=Ac(r),h=f?a?KM:KM.filter(function(v){return Ac(v)===f}):qd,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var m=p.reduce(function(v,y){return v[y]=gd(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[Xi(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function wte(e){if(Xi(e)===TC)return[];var t=fm(e);return[JM(e),t,JM(t)]}function xte(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,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,_=Xi(x),w=_===x,S=l||(w||!v?[fm(x)]:wte(x)),T=[x].concat(S).reduce(function(q,te){return q.concat(Xi(te)===TC?bte(t,{placement:te,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:y}):te)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,D=!0,z=T[0],A=0;A<T.length;A++){var W=T[A],Y=Xi(W),J=Ac(W)===Nc,Z=[wr,ti].indexOf(Y)>=0,ee=Z?"width":"height",ie=gd(t,{placement:W,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),oe=Z?J?ni:xr:J?ti:wr;P[ee]>k[ee]&&(oe=fm(oe));var G=fm(oe),F=[];if(o&&F.push(ie[Y]<=0),a&&F.push(ie[oe]<=0,ie[G]<=0),F.every(function(q){return q})){z=W,D=!1;break}N.set(W,F)}if(D)for(var j=v?3:1,B=function(te){var se=T.find(function(pe){var O=N.get(pe);if(O)return O.slice(0,te).every(function(R){return R})});if(se)return z=se,"break"},ne=j;ne>0;ne--){var H=B(ne);if(H==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const Ste={name:"flip",enabled:!0,phase:"main",fn:xte,requiresIfExists:["offset"],data:{_skip:!1}};function t3(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 n3(e){return[wr,ni,ti,xr].some(function(t){return e[t]>=0})}function Cte(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=gd(t,{elementContext:"reference"}),a=gd(t,{altBoundary:!0}),l=t3(s,r),c=t3(a,i,o),f=n3(l),h=n3(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Ete={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cte};function Tte(e,t,n){var r=Xi(e),i=[xr,wr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[xr,ni].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Ote(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=zI.reduce(function(f,h){return f[h]=Tte(h,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Pte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ote};function kte(e){var t=e.state,n=e.name;t.modifiersData[n]=GI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Mte={name:"popperOffsets",enabled:!0,phase:"read",fn:kte,data:{}};function Rte(e){return e==="x"?"y":"x"}function Nte(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=gd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),_=Xi(t.placement),w=Ac(t.placement),S=!w,T=kC(_),P=Rte(T),k=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(k){if(o){var J,Z=T==="y"?wr:xr,ee=T==="y"?ti:ni,ie=T==="y"?"height":"width",oe=k[T],G=oe+x[Z],F=oe-x[ee],j=m?-D[ie]/2:0,B=w===Nc?N[ie]:D[ie],ne=w===Nc?-D[ie]:-N[ie],H=t.elements.arrow,q=m&&H?PC(H):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:HI(),se=te[Z],pe=te[ee],O=Sf(0,N[ie],q[ie]),R=S?N[ie]/2-j-O-se-A.mainAxis:B-O-se-A.mainAxis,I=S?-N[ie]/2+j+O+pe+A.mainAxis:ne+O+pe+A.mainAxis,X=t.elements.arrow&&Gd(t.elements.arrow),K=X?T==="y"?X.clientTop||0:X.clientLeft||0:0,ae=(J=W==null?void 0:W[T])!=null?J:0,ge=oe+R-ae-K,Le=oe+I-ae,ue=Sf(m?nv(G,ge):G,oe,m?za(F,Le):F);k[T]=ue,Y[T]=ue-oe}if(a){var ve,_e=T==="x"?wr:xr,Te=T==="x"?ti:ni,De=k[P],Re=P==="y"?"height":"width",Ne=De+x[_e],ce=De-x[Te],de=[wr,xr].indexOf(_)!==-1,be=(ve=W==null?void 0:W[P])!=null?ve:0,ye=de?Ne:De-N[Re]-D[Re]-be+A.altAxis,Ce=de?De+N[Re]+D[Re]-be-A.altAxis:ce,ke=m&&de?nte(ye,De,Ce):Sf(m?ye:Ne,De,m?Ce:ce);k[P]=ke,Y[P]=ke-De}t.modifiersData[r]=Y}}const Lte={name:"preventOverflow",enabled:!0,phase:"main",fn:Nte,requiresIfExists:["offset"]};function Dte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ate(e){return e===oi(e)||!Kr(e)?MC(e):Dte(e)}function jte(e){var t=e.getBoundingClientRect(),n=Lc(t.width)/e.offsetWidth||1,r=Lc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ite(e,t,n){n===void 0&&(n=!1);var r=Kr(t),i=Kr(t)&&jte(t),o=ea(t),s=Dc(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((to(t)!=="body"||NC(o))&&(a=Ate(t)),Kr(t)?(l=Dc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=RC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Fte(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 s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function $te(e){var t=Fte(e);return Kee.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Bte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zte(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 r3={placement:"bottom",modifiers:[],strategy:"absolute"};function i3(){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 Ute(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?r3:i;return function(a,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},r3,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],p=!1,m={state:f,setOptions:function(_){var w=typeof _=="function"?_(f.options):_;y(),f.options=Object.assign({},o,f.options,w),f.scrollParents={reference:Ja(a)?Cf(a):a.contextElement?Cf(a.contextElement):[],popper:Cf(l)};var S=$te(zte([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var _=f.elements,w=_.reference,S=_.popper;if(i3(w,S)){f.rects={reference:Ite(w,Gd(S),f.options.strategy==="fixed"),popper:PC(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var P=f.orderedModifiers[T],k=P.fn,N=P.options,D=N===void 0?{}:N,z=P.name;typeof k=="function"&&(f=k({state:f,options:D,name:z,instance:m})||f)}}}},update:Bte(function(){return new Promise(function(x){m.forceUpdate(),x(f)})}),destroy:function(){y(),p=!0}};if(!i3(a,l))return m;m.setOptions(c).then(function(x){!p&&c.onFirstUpdate&&c.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var _=x.name,w=x.options,S=w===void 0?{}:w,T=x.effect;if(typeof T=="function"){var P=T({state:f,name:_,instance:m,options:S}),k=function(){};h.push(P||k)}})}function y(){h.forEach(function(x){return x()}),h=[]}return m}}var Vte=[dte,Mte,ute,Jee,Pte,Ste,Lte,ste,Ete],ZI=Ute({defaultModifiers:Vte}),Hte=typeof Element<"u",Wte=typeof Map=="function",Yte=typeof Set=="function",qte=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function dm(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(!dm(e[r],t[r]))return!1;return!0}var o;if(Wte&&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(!dm(r.value[1],t.get(r.value[0])))return!1;return!0}if(Yte&&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(qte&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Hte&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!dm(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Gte=function(t,n){try{return dm(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 KI=ri(Gte);var Zte=[],Kte=function(t,n,r){r===void 0&&(r={});var i=V.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Zte},s=V.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=V.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,y=Object.keys(v.elements);l({styles:GM(y.map(function(x){return[x,v.styles[x]||{}]})),attributes:GM(y.map(function(x){return[x,v.attributes[x]]}))})},requires:["computeStyles"]}},[]),f=V.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return KI(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=V.useRef();return ZM(function(){h.current&&h.current.setOptions(f)},[f]),ZM(function(){if(!(t==null||n==null)){var p=r.createPopper||ZI,m=p(t,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:a.styles,attributes:a.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},Xte=function(){},Qte=function(){return Promise.resolve(null)},Jte=[];function XI(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,s=o===void 0?Jte:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=V.useContext(jI),p=V.useState(null),m=p[0],v=p[1],y=V.useState(null),x=y[0],_=y[1];V.useEffect(function(){Ew(c,m)},[c,m]);var w=V.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,s,x]),S=Kte(a||h,m,w),T=S.state,P=S.styles,k=S.forceUpdate,N=S.update,D=V.useMemo(function(){return{ref:v,style:P.popper,placement:T?T.placement:n,hasPopperEscaped:T&&T.modifiersData.hide?T.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:T&&T.modifiersData.hide?T.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:_},forceUpdate:k||Xte,update:N||Qte}},[v,_,n,T,P,N,k]);return FI(f)(D)}var ene=function(){},tne=ene;const QI=ri(tne);function nne(e){var t=e.children,n=e.innerRef,r=V.useContext(II),i=V.useCallback(function(o){Ew(n,o),$I(r,o)},[n,r]);return V.useEffect(function(){return function(){return Ew(n,null)}}),V.useEffect(function(){QI(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),FI(t)({ref:i})}function Pw(e,t){return Pw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Pw(e,t)}function rne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pw(e,t)}const o3={disabled:!1},JI=U.createContext(null);var Ku="unmounted",Ca="exited",Ea="entering",Fl="entered",kw="exiting",zo=function(e){rne(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=Ca,o.appearStatus=Ea):l=Fl:r.unmountOnExit||r.mountOnEnter?l=Ku:l=Ca,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ku?{status:Ca}: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 s=this.state.status;this.props.in?s!==Ea&&s!==Fl&&(o=Ea):(s===Ea||s===Fl)&&(o=kw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Ea?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Ca&&this.setState({status:Ku})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[$a.findDOMNode(this),a],c=l[0],f=l[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||o3.disabled){this.safeSetState({status:Fl},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Ea},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Fl},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:$a.findDOMNode(this);if(!o||o3.disabled){this.safeSetState({status:Ca},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:kw},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ca},function(){i.props.onExited(a)})})})},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,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:$a.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,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===Ku)return null;var o=this.props,s=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 a=kS(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(JI.Provider,{value:null},typeof s=="function"?s(i,a):U.cloneElement(U.Children.only(s),a))},t}(U.Component);zo.contextType=JI;zo.propTypes={};function Pl(){}zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pl,onEntering:Pl,onEntered:Pl,onExit:Pl,onExiting:Pl,onExited:Pl};zo.UNMOUNTED=Ku;zo.EXITED=Ca;zo.ENTERING=Ea;zo.ENTERED=Fl;zo.EXITING=kw;const Uo=zo;function s3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s3(Object(n),!0).forEach(function(r){ine(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ine(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(){return $e=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},$e.apply(this,arguments)}function one(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 qe(e,t){if(e==null)return{};var n=one(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sne(){let 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);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function LC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function ane(){return document.body.clientWidth<window.innerWidth}function e6(){const e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function t6(){const e=sne(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;ane()&&LC(n+e)}let lne;function Fe(e="",t=lne){return t?e.split(" ").map(n=>t[n]||n).join(" "):e}function Cr(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function n6(e,t){const n=Array.isArray(t)?t:[t];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=e[i];return o}let a3={};function Mw(e){a3[e]||(typeof console<"u"&&console.error(e),a3[e]=!0)}function r6(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&Mw(`"${i}" property of "${o}" has been deprecated.
${t}`),e(r,i,o,...s)}}const cne=typeof window=="object"&&window.Element||function(){};function DC(e,t,n){if(!(e[t]instanceof cne))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Us=C.oneOfType([C.string,C.func,DC,C.shape({current:C.any})]),Pe=C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func}),C.arrayOf(C.oneOfType([C.func,C.string,C.shape({$$typeof:C.symbol,render:C.func})]))]),el={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},rv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],vo={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},mt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},une=["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"],AC=!!(typeof window<"u"&&window.document&&window.document.createElement);function fne(e){return e&&typeof e=="object"?"current"in e:!1}function i6(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function iv(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function l3(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&i6(e)==="[object Symbol]")return n;if(iv(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=iv(i)?`${i}`:i}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function dne(e){if(!iv(e))return!1;const t=i6(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function o6(e){if(fne(e))return e.current;if(dne(e))return e();if(typeof e=="string"&&AC){let t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll(`#${e}`)),!t.length)throw new Error(`The target '${e}' could not be identified in the dom, tip: check spelling`);return t}return e}function ov(e){return e===null?!1:Array.isArray(e)||AC&&typeof e.length=="number"}function jc(e,t){const n=o6(e);return t?ov(n)?n:n===null?[]:[n]:ov(n)?n[0]:n}const hne=["touchstart","click"];function pne(e,t,n,r){let i=e;ov(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!ov(i)||typeof t!="function"||!Array.isArray(o))throw new Error(`
The first argument of this function must be DOM node or an array on DOM nodes or NodeList.
The second must be a function.
The third is a string or an array of strings that represents DOM events
`);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const s6=["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"])'];C.oneOfType([C.bool,C.string]),C.string,C.object;const mne=["className","cssModule","noGutters","tag","widths"],gne=["xs","sm","md","lg","xl","xxl"],kl=C.oneOfType([C.number,C.string]),vne={tag:Pe,noGutters:r6(C.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:C.string,cssModule:C.object,xs:kl,sm:kl,md:kl,lg:kl,xl:kl,xxl:kl,widths:C.array},yne={tag:"div",widths:gne};function Qn(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=qe(e,mne),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=Fe(me(t,r?"gx-0":null,"row",a),n);return U.createElement(i,$e({},s,{className:l}))}Qn.propTypes=vne;Qn.defaultProps=yne;const _ne=["className","cssModule","widths","tag"],a6=["xs","sm","md","lg","xl","xxl"],c3=C.oneOfType([C.number,C.string]),Ml=C.oneOfType([C.bool,C.number,C.string,C.shape({size:C.oneOfType([C.bool,C.number,C.string]),order:c3,offset:c3})]),bne={tag:Pe,xs:Ml,sm:Ml,md:Ml,lg:Ml,xl:Ml,xxl:Ml,className:C.string,cssModule:C.object,widths:C.array},wne={tag:"div",widths:a6},u3=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,xne=(e,t,n=a6)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(iv(a)){const c=l?"-":`-${o}-`,f=u3(l,o,a.size);i.push(Fe(me({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=u3(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function jC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=qe(e,_ne);let{modifiedAttributes:s,colClasses:a}=xne(o,n,r);a.length||a.push("col");const l=Fe(me(t,a),n);return U.createElement(i,$e({},s,{className:l}))}jC.propTypes=bne;jC.defaultProps=wne;const Sne=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],Cne={children:C.node,className:C.string,color:C.string,container:C.oneOfType([C.bool,C.string]),cssModule:C.object,dark:C.bool,expand:C.oneOfType([C.bool,C.string]),fixed:C.string,full:C.bool,light:C.bool,role:C.string,sticky:C.string,tag:Pe},Ene={tag:"nav",expand:!1,container:"fluid"},Tne=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function IC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=qe(e,Sne),m=Fe(me(n,"navbar",Tne(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),v=c&&c===!0?"container":`container-${c}`;return U.createElement(f,$e({},p,{className:m}),c?U.createElement("div",{className:v},h):h)}IC.propTypes=Cne;IC.defaultProps=Ene;const One=["className","cssModule","tag"],Pne={className:C.string,cssModule:C.object,tag:Pe},kne={tag:"a"};function FC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,One),o=Fe(me(t,"navbar-brand"),n);return U.createElement(r,$e({},i,{className:o}))}FC.propTypes=Pne;FC.defaultProps=kne;C.string,C.object,C.bool;const Mne=["className","cssModule","children","tag"],Rne={className:C.string,cssModule:C.object,tag:Pe,type:C.string,children:C.node},Nne={tag:"button",type:"button"};function $C(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=qe(e,Mne),s=Fe(me(t,"navbar-toggler"),n);return U.createElement(i,$e({"aria-label":"Toggle navigation"},o,{className:s}),r||U.createElement("span",{className:Fe("navbar-toggler-icon",n)}))}$C.propTypes=Rne;$C.defaultProps=Nne;const Lne=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],Dne={card:C.bool,className:C.string,cssModule:C.object,fill:C.bool,horizontal:C.oneOf(["center","end"]),justified:C.bool,navbar:C.bool,pills:C.bool,tabs:C.bool,tag:Pe,vertical:C.oneOfType([C.bool,C.string])},Ane={tag:"ul",vertical:!1},jne=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function c_(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=qe(e,Lne),m=Fe(me(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,jne(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return U.createElement(h,$e({},p,{className:m}))}c_.propTypes=Dne;c_.defaultProps=Ane;const Ine=["className","cssModule","active","tag"],Fne={active:C.bool,className:C.string,cssModule:C.object,tag:Pe},$ne={tag:"li"};function BC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=qe(e,Ine),s=Fe(me(t,"nav-item",r?"active":!1),n);return U.createElement(i,$e({},o,{className:s}))}BC.propTypes=Fne;BC.defaultProps=$ne;const Bne=["className","cssModule","active","tag","innerRef"],zne={active:C.bool,className:C.string,cssModule:C.object,disabled:C.bool,href:C.any,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,tag:Pe},Une={tag:"a"};class zC extends U.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=qe(t,Bne);const l=Fe(me(n,"nav-link",{disabled:a.disabled,active:i}),r);return U.createElement(o,$e({},a,{ref:s,onClick:this.onClick,className:l}))}}zC.propTypes=zne;zC.defaultProps=Une;var l6=zC;C.string,C.node,C.string,C.object,C.string;C.bool,C.string,C.object;const Vne=["className","cssModule","variant","innerRef"],Hne={active:C.bool,"aria-label":C.string,onClick:C.func,variant:C.oneOf(["white"]),className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])},Wne={"aria-label":"close"};function UC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=qe(e,Vne),s=Fe(me(t,"btn-close",r&&`btn-close-${r}`));return U.createElement("button",$e({ref:i,type:"button",className:s},o))}UC.propTypes=Hne;UC.defaultProps=Wne;const Yne=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],qne={active:C.bool,"aria-label":C.string,block:C.bool,children:C.node,className:C.string,cssModule:C.object,close:C.bool,color:C.string,disabled:C.bool,innerRef:C.oneOfType([C.object,C.func,C.string]),onClick:C.func,outline:C.bool,size:C.string,tag:Pe},Gne={color:"secondary",tag:"button"};function ht(e){const t=V.useCallback(x=>{if(e.disabled){x.preventDefault();return}if(e.onClick)return e.onClick(x)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,m=qe(e,Yne);if(s)return U.createElement(UC,m);const v=`btn${c?"-outline":""}-${l}`,y=Fe(me(o,"btn",v,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return m.href&&h==="button"&&(h="a"),U.createElement(h,$e({type:h==="button"&&m.onClick?"button":void 0},m,{className:y,ref:p,onClick:t,"aria-label":r}))}ht.propTypes=qne;ht.defaultProps=Gne;C.func,C.func,C.func,C.bool,C.string,C.object;const vd=U.createContext({}),c6=U.createContext({}),Zne=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Kne={a11y:C.bool,disabled:C.bool,direction:C.oneOf(["up","down","start","end","left","right"]),group:C.bool,isOpen:C.bool,nav:C.bool,active:C.bool,size:C.string,tag:Pe,toggle:C.func,children:C.node,className:C.string,cssModule:C.object,dropup:C.bool,inNavbar:C.bool,setActiveFromChild:C.bool,menuRole:C.oneOf(["listbox","menu"])},Xne={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Qne=[mt.space,mt.enter,mt.up,mt.down,mt.end,mt.home];class u_ extends U.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=U.createRef(),this.menuRef=U.createRef(),this.toggleRef=U.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==mt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===mt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=mt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((Qne.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([mt.space,mt.enter,mt.up,mt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===mt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([mt.tab,mt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([mt.space,mt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([mt.down,mt.up].indexOf(t.which)>-1||[mt.n,mt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);mt.up===t.which||mt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(mt.down===t.which||mt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(mt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(mt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;a<o.length;a+=1)if((o[a].textContent&&o[a].textContent[0].toLowerCase())===s){o[a].focus();break}}}}handleProps(){this.props.isOpen?this.addEvents():this.removeEvents()}getContextValue(){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}}getContainer(){return this.containerRef.current}getMenu(){return this.menuRef.current}getToggle(){return this.toggleRef.current}getMenuCtrl(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}getItemType(){return this.props.menuRole==="listbox"?"option":"menuitem"}getMenuItems(){const t=this.getMenu()||this.getContainer();return[].slice.call(t.querySelectorAll(`[role="${this.getItemType()}"]`))}addEvents(){["click","touchstart","keyup"].forEach(t=>document.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Cr(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,m=qe(t,Zne),v=h||(l?"li":"div");let y=!1;c&&U.Children.map(this.props.children[1].props.children,_=>{_&&_.props.active&&(y=!0)});const x=Fe(me(n,l&&f?"active":!1,c&&y?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?U.createElement(vd.Provider,{value:this.getContextValue()},U.createElement(qM,null,U.Children.map(this.props.children,_=>U.cloneElement(_,{onKeyDown:this.handleKeyDown})))):U.createElement(vd.Provider,{value:this.getContextValue()},U.createElement(qM,null,U.createElement(v,$e({},m,{[typeof v=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:x}))))}}u_.propTypes=Kne;u_.defaultProps=Xne;u_.contextType=c6;var Jc=u_;const Jne={children:C.node};function VC(e){return U.createElement(Jc,$e({group:!0},e))}VC.propTypes=Jne;C.string,C.string,C.object,C.string,C.string,C.bool;C.string,C.string,C.object,C.string;const ere=["className","cssModule","divider","tag","header","active","text"],tre={children:C.node,active:C.bool,disabled:C.bool,divider:C.bool,tag:Pe,header:C.bool,onClick:C.func,className:C.string,cssModule:C.object,toggle:C.bool,text:C.bool},nre={tag:"button",toggle:!0};class f_ extends U.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Cr(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=qe(r,ere);const p=Fe(me(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),U.createElement(a,$e({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}f_.propTypes=tre;f_.defaultProps=nre;f_.contextType=vd;var Ue=f_;const rre=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],ire={tag:Pe,children:C.node.isRequired,dark:C.bool,end:C.bool,flip:C.bool,modifiers:C.array,className:C.string,cssModule:C.object,style:C.object,persist:C.bool,strategy:C.string,container:Us,updateOnSelect:C.bool,right:r6(C.bool,'Please use "end" instead.')},ore={tag:"div",flip:!0,modifiers:[]},sre={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class d_ extends U.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=t,v=qe(t,rre),y=Fe(me(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),x=a;if(f||this.context.isOpen&&!this.context.inNavbar){const T=`${sre[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=U.createElement(XI,{placement:T,modifiers:P,strategy:h},({ref:N,style:D,placement:z,update:A})=>{let W=We(We({},this.props.style),D);const Y=J=>{N(J);const{onMenuRef:Z}=this.context;Z&&Z(J)};return U.createElement(x,$e({tabIndex:"-1",role:this.getRole(),ref:Y},v,{style:W,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":z,onClick:()=>m&&A()}))});return p?$a.createPortal(k,jc(p)):k}const{onMenuRef:_}=this.context;return U.createElement(x,$e({tabIndex:"-1",role:this.getRole()},v,{ref:_,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":v.placement}))}}d_.propTypes=ire;d_.defaultProps=ore;d_.contextType=vd;var eu=d_;const are=["className","color","cssModule","caret","split","nav","tag","innerRef"],lre={caret:C.bool,color:C.string,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,onClick:C.func,"aria-haspopup":C.bool,split:C.bool,tag:Pe,nav:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func])},cre={color:"secondary","aria-haspopup":!0};class h_ extends U.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=qe(t,are),h=f["aria-label"]||"Toggle Dropdown",p=Fe(me(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),m=typeof f.children<"u"?f.children:U.createElement("span",{className:"visually-hidden"},h);let v;return a&&!l?(v="a",f.href="#"):l?v=l:(v=ht,f.color=r,f.cssModule=i),this.context.inNavbar?U.createElement(v,$e({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):U.createElement(nne,{innerRef:c},({ref:y})=>{const x=_=>{y(_);const{onToggleRef:w}=this.context;w&&w(_)};return U.createElement(v,$e({},f,{[typeof v=="string"?"ref":"innerRef"]:x,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}h_.propTypes=lre;h_.defaultProps=cre;h_.contextType=vd;var Zd=h_;const ure=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],fre=We(We({},Uo.propTypes),{},{children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:Pe,baseClass:C.string,baseClassActive:C.string,className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func])}),dre=We(We({},Uo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:el.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Zt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=qe(e,ure),c=n6(l,rv),f=Cr(l,rv);return U.createElement(Uo,c,h=>{const m=Fe(me(i,n,h==="entered"&&r),o);return U.createElement(t,$e({className:m},f,{ref:a}),s)})}Zt.propTypes=fre;Zt.defaultProps=dre;U.createContext({});C.node,C.string,C.object,C.bool,C.oneOfType([C.object,C.string,C.func]),C.oneOfType([C.array,C.string]).isRequired,C.func.isRequired;C.string,C.object,C.oneOfType([C.object,C.string,C.func]),C.node,C.oneOfType([C.array,C.string]),C.bool;C.node,C.string,C.object,C.oneOfType([C.object,C.string,C.func]),C.string.isRequired;C.node,C.string,C.object,C.oneOfType([C.object,C.string,C.func]);const hre=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],pre=We(We({},Uo.propTypes),{},{horizontal:C.bool,isOpen:C.bool,children:C.oneOfType([C.arrayOf(C.node),C.node]),tag:Pe,className:C.node,navbar:C.bool,cssModule:C.object,innerRef:C.shape({current:C.object})}),mre=We(We({},Uo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:el.Collapse}),gre={[vo.ENTERING]:"collapsing",[vo.ENTERED]:"collapse show",[vo.EXITING]:"collapsing",[vo.EXITED]:"collapse"};function vre(e){return gre[e]||"collapse"}class HC extends V.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||U.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=qe(t,hre),{dimension:h}=this.state,p=n6(f,rv),m=Cr(f,rv);return U.createElement(Uo,$e({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),v=>{let y=vre(v);const x=Fe(me(o,r&&"collapse-horizontal",y,s&&"navbar-collapse"),a),_=h===null?null:{[r?"width":"height"]:h};return U.createElement(n,$e({},m,{style:We(We({},m.style),_),className:x,ref:this.nodeRef}),l)})}}HC.propTypes=pre;HC.defaultProps=mre;var u6=HC;C.string.isRequired,C.string,C.node,C.object,C.oneOfType([C.object,C.string,C.func]);C.node,C.string,C.string,C.object,C.oneOfType([C.object,C.func,C.string]),C.bool;const yre=["className","cssModule","color","body","inverse","outline","tag","innerRef"],_re={body:C.bool,className:C.string,color:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),inverse:C.bool,outline:C.bool,tag:Pe},bre={tag:"div"};function Sr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=qe(e,yre),f=Fe(me(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return U.createElement(a,$e({},c,{className:f,ref:l}))}Sr.propTypes=_re;Sr.defaultProps=bre;C.string,C.object;C.string,C.object;C.string,C.object;const wre=["className","cssModule","innerRef","tag"],xre={className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),tag:Pe},Sre={tag:"div"};function tl(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=qe(e,wre),s=Fe(me(t,"card-body"),n);return U.createElement(i,$e({},o,{className:s,ref:r}))}tl.propTypes=xre;tl.defaultProps=Sre;C.oneOfType([C.object,C.func,C.string]),C.string,C.object;const Cre=["className","cssModule","tag"],Ere={className:C.string,cssModule:C.object,tag:Pe},Tre={tag:"div"};function WC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Cre),o=Fe(me(t,"card-footer"),n);return U.createElement(r,$e({},i,{className:o}))}WC.propTypes=Ere;WC.defaultProps=Tre;const Ore=["className","cssModule","tag"],Pre={className:C.string,cssModule:C.object,tag:Pe},kre={tag:"div"};function nl(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Ore),o=Fe(me(t,"card-header"),n);return U.createElement(r,$e({},i,{className:o}))}nl.propTypes=Pre;nl.defaultProps=kre;C.bool,C.string,C.object,C.bool;C.string,C.object;const hm=U.createContext({}),Mre=["in","children","cssModule","slide","tag","className"];class p_ extends U.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=qe(t,Mre);return U.createElement(Uo,$e({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===vo.ENTERED||c===vo.EXITING,p=(c===vo.ENTERING||c===vo.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===vo.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),v=Fe(me(a,"carousel-item",h&&"active",p,m),i);return U.createElement(s,{className:v},r)})}}p_.propTypes=We(We({},Uo.propTypes),{},{tag:Pe,in:C.bool,cssModule:C.object,children:C.node,slide:C.bool,className:C.string});p_.defaultProps=We(We({},Uo.defaultProps),{},{tag:"div",timeout:el.Carousel,slide:!0});p_.contextType=hm;var f6=p_;const Rre=40,d6={activeIndex:C.number,next:C.func.isRequired,previous:C.func.isRequired,keyboard:C.bool,pause:C.oneOf(["hover",!1]),ride:C.oneOf(["carousel"]),interval:C.oneOfType([C.number,C.string,C.bool]),children:C.array,mouseEnter:C.func,mouseLeave:C.func,slide:C.bool,dark:C.bool,fade:C.bool,cssModule:C.object,className:C.string,enableTouch:C.bool},Nre=Object.keys(d6),Lre={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class YC extends U.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex<i?o=s?"start":"end":t.activeIndex!==i&&(o=s?"end":"start"),r={activeIndex:t.activeIndex,direction:o,indicatorClicked:!1}),r}componentDidUpdate(t,n){n.activeIndex!==this.state.activeIndex&&this.setInterval()}componentWillUnmount(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}handleKeyPress(t){this.props.keyboard&&(t.keyCode===37?this.props.previous():t.keyCode===39&&this.props.next())}handleTouchStart(t){this.props.enableTouch&&(this.touchStartX=t.changedTouches[0].screenX,this.touchStartY=t.changedTouches[0].screenY)}handleTouchEnd(t){if(!this.props.enableTouch)return;const n=t.changedTouches[0].screenX,r=t.changedTouches[0].screenY,i=Math.abs(this.touchStartX-n),o=Math.abs(this.touchStartY-r);i<o||i<Rre||(n<this.touchStartX?this.props.next():this.props.previous())}getContextValue(){return{direction:this.state.direction}}setInterval(){this.clearInterval(),this.props.interval&&(this.cycleInterval=setInterval(()=>{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return U.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return U.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Cr(this.props,Nre),a=Fe(me(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=Fe(me("carousel-inner"),t),c=this.props.children.filter(_=>_!=null&&typeof _!="boolean");if(c.every(_=>_.type===f6))return U.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),U.createElement(hm.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const _=c[0],w=c[1],S=c[2];return U.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),U.createElement(hm.Provider,{value:this.getContextValue()},this.renderItems(_,l),w,S))}const h=c[0],p=_=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(_))},m=U.cloneElement(h,{onClickHandler:p}),v=c[1],y=c[2],x=c[3];return U.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),U.createElement(hm.Provider,{value:this.getContextValue()},m,this.renderItems(v,l),y,x))}}YC.propTypes=d6;YC.defaultProps=Lre;var Dre=YC;const Are=["direction","onClickHandler","cssModule","directionText","className"];function Rw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=qe(e,Are),a=Fe(me(o,`carousel-control-${t}`),r),l=Fe(me(`carousel-control-${t}-icon`),r),c=Fe(me("visually-hidden"),r);return U.createElement("a",$e({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),U.createElement("span",{className:l,"aria-hidden":"true"}),U.createElement("span",{className:c},i||t))}Rw.propTypes={direction:C.oneOf(["prev","next"]).isRequired,onClickHandler:C.func.isRequired,cssModule:C.object,directionText:C.string,className:C.string};const jre=["items","activeIndex","cssModule","onClickHandler","className"];function h6(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=qe(e,jre),a=Fe(me(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=Fe(me({active:n===f}),r);return U.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return U.createElement("div",$e({className:a},s),l)}h6.propTypes={activeIndex:C.number.isRequired,className:C.string,cssModule:C.object,items:C.array.isRequired,onClickHandler:C.func.isRequired};function p6(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=Fe(me(i,"carousel-caption","d-none","d-md-block"),r);return U.createElement("div",{className:o},U.createElement("h3",null,t),U.createElement("p",null,n))}p6.propTypes={captionHeader:C.node,captionText:C.node.isRequired,className:C.string,cssModule:C.object};const Ire=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Fre={items:C.array.isRequired,indicators:C.bool,controls:C.bool,autoPlay:C.bool,defaultActiveIndex:C.number,activeIndex:C.number,next:C.func,previous:C.func,goToIndex:C.func};class m6 extends V.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=qe(t,Ire),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return U.createElement(f6,{onExiting:this.onExiting,onExited:this.onExited,key:p},U.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),U.createElement(p6,{captionText:h.caption,captionHeader:h.header||h.caption}))});return U.createElement(Dre,$e({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&U.createElement(h6,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&U.createElement(Rw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&U.createElement(Rw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}m6.propTypes=Fre;m6.defaultProps={controls:!0,indicators:!0,autoPlay:!0};C.string,C.object;const $re=["className","cssModule","tag"],Bre={className:C.string,cssModule:C.object,tag:Pe},zre={tag:"p"};function qC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,$re),o=Fe(me(t,"card-text"),n);return U.createElement(r,$e({},i,{className:o}))}qC.propTypes=Bre;qC.defaultProps=zre;const Ure=["className","cssModule","tag"],Vre={className:C.string,cssModule:C.object,tag:Pe},Hre={tag:"div"};function GC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Ure),o=Fe(me(t,"card-title"),n);return U.createElement(r,$e({},i,{className:o}))}GC.propTypes=Vre;GC.defaultProps=Hre;const Wre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Yre(){}const qre={children:C.oneOfType([C.node,C.func]).isRequired,popperClassName:C.string,placement:C.string,placementPrefix:C.string,arrowClassName:C.string,hideArrow:C.bool,tag:Pe,isOpen:C.bool,cssModule:C.object,offset:C.arrayOf(C.number),fallbackPlacements:C.array,flip:C.bool,container:Us,target:Us.isRequired,modifiers:C.array,strategy:C.string,boundariesElement:C.oneOfType([C.string,DC]),onClosed:C.func,fade:C.bool,transition:C.shape(Zt.propTypes)},Gre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Yre,fade:!0,transition:We({},Zt.defaultProps)};class ZC extends U.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return jc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?jc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:v,modifiers:y,strategy:x,boundariesElement:_,onClosed:w,fade:S,transition:T,placement:P}=t,k=qe(t,Wre),N=Fe(me("arrow",f),n),D=Fe(me(p,c?`${c}-auto`:""),this.props.cssModule),z=y.map(J=>J.name),W=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:_}}].filter(J=>!z.includes(J.name)),...y],Y=We(We(We({},Zt.defaultProps),T),{},{baseClass:S?T.baseClass:"",timeout:S?T.timeout:0});return U.createElement(Zt,$e({},Y,k,{in:i,onExited:this.onClosed,tag:m}),U.createElement(XI,{referenceElement:this.targetNode,modifiers:W,placement:P,strategy:x},({ref:J,style:Z,placement:ee,isReferenceHidden:ie,arrowProps:oe,update:G})=>U.createElement("div",{ref:J,style:Z,className:D,"data-popper-placement":ee,"data-popper-reference-hidden":ie?"true":void 0},typeof r=="function"?r({update:G}):r,!h&&U.createElement("span",{ref:oe.ref,className:N,style:oe.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():$a.createPortal(U.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}ZC.propTypes=qre;ZC.defaultProps=Gre;var Zre=ZC;C.object.isRequired;Us.isRequired;const m_={children:C.oneOfType([C.node,C.func]),placement:C.oneOf(une),target:Us.isRequired,container:Us,isOpen:C.bool,disabled:C.bool,hideArrow:C.bool,boundariesElement:C.oneOfType([C.string,DC]),className:C.string,innerClassName:C.string,arrowClassName:C.string,popperClassName:C.string,cssModule:C.object,toggle:C.func,autohide:C.bool,placementPrefix:C.string,delay:C.oneOfType([C.shape({show:C.number,hide:C.number}),C.number]),modifiers:C.array,strategy:C.string,offset:C.arrayOf(C.number),innerRef:C.oneOfType([C.func,C.string,C.object]),trigger:C.string,fade:C.bool,flip:C.bool},g6={show:0,hide:50},Kre={isOpen:!1,hideArrow:!1,autohide:!1,delay:g6,toggle:function(){},trigger:"click",fade:!0};function v6(e,t){return t&&(e===t||t.contains(e))}function f3(e,t=[]){return t&&t.length&&t.filter(n=>v6(e,n))[0]}class KC extends U.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||f3(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!v6(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&f3(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?g6[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){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)}updateTarget(){const t=jc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:v,offset:y,fade:x,flip:_,children:w}=this.props,S=Cr(this.props,Object.keys(m_)),T=Fe(h,r),P=Fe(i,r);return U.createElement(Zre,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:T,container:p,modifiers:m,strategy:v,offset:y,cssModule:r,fade:x,flip:_},({update:k})=>U.createElement("div",$e({},S,{ref:this.getRef,className:P,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof w=="function"?w({update:k}):w))}}KC.propTypes=m_;KC.defaultProps=Kre;var y6=KC;const Xre={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Kd(e){const t=me("popover","show",e.popperClassName),n=me("popover-inner",e.innerClassName);return U.createElement(y6,$e({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Kd.propTypes=m_;Kd.defaultProps=Xre;const Qre=["defaultOpen"];class Jre extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return U.createElement(Kd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Qre)))}}Jre.propTypes=We({defaultOpen:C.bool},Kd.propTypes);C.string,C.object;C.string,C.object;const eie=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],tie={animated:C.bool,bar:C.bool,barAriaLabelledBy:C.string,barAriaValueText:C.string,barClassName:C.string,barStyle:C.object,children:C.node,className:C.string,cssModule:C.object,color:C.string,max:C.oneOfType([C.string,C.number]),min:C.oneOfType([C.string,C.number]),multi:C.bool,striped:C.bool,style:C.object,tag:Pe,value:C.oneOfType([C.string,C.number])},nie={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function XC(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:v,barStyle:y,barAriaValueText:x,barAriaLabelledBy:_}=e,w=qe(e,eie),S=l3(o)/l3(a)*100,T=Fe(me(n,"progress"),i),k={className:Fe(me("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:We(We(We({},h?v:{}),y),{},{width:`${S}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":x,"aria-labelledby":_,children:t};return h?U.createElement(m,$e({},w,k)):U.createElement(m,$e({},w,{style:v,className:T}),p?t:U.createElement("div",k))}XC.propTypes=tie;XC.defaultProps=nie;const rie={children:C.node.isRequired,node:C.any};class _6 extends U.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return AC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),$a.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}_6.propTypes=rie;var b6=_6;function sv(){}const d3=C.shape(Zt.propTypes),w6={autoFocus:C.bool,backdrop:C.oneOfType([C.bool,C.oneOf(["static"])]),backdropClassName:C.string,backdropTransition:d3,centered:C.bool,children:C.node,contentClassName:C.string,className:C.string,container:Us,cssModule:C.object,external:C.node,fade:C.bool,fullscreen:C.oneOfType([C.bool,C.oneOf(["sm","md","lg","xl"])]),innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,keyboard:C.bool,labelledBy:C.string,modalClassName:C.string,modalTransition:d3,onClosed:C.func,onEnter:C.func,onExit:C.func,onOpened:C.func,returnFocusAfterClose:C.bool,role:C.string,scrollable:C.bool,size:C.string,toggle:C.func,trapFocus:C.bool,unmountOnClose:C.bool,wrapClassName:C.string,zIndex:C.oneOfType([C.number,C.string])},iie=Object.keys(w6),oie={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:sv,onClosed:sv,modalTransition:{timeout:el.Modal},backdropTransition:{mountOnEnter:!0,timeout:el.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class zn extends U.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){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}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex<zn.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let s=0;s<r;s+=1)if(n[s]===i){o=s;break}t.shiftKey&&o===0?(t.preventDefault(),n[r-1].focus()):!t.shiftKey&&o===r-1&&(t.preventDefault(),n[0].focus())}handleBackdropMouseDown(t){this._mouseDownElement=t.target}handleEscape(t){this.props.isOpen&&t.keyCode===mt.esc&&this.props.toggle&&(this.props.keyboard?(t.preventDefault(),t.stopPropagation(),this.props.toggle(t)):this.props.backdrop==="static"&&(t.preventDefault(),t.stopPropagation(),this.handleStaticBackdropAnimation()))}handleStaticBackdropAnimation(){this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(()=>{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||sv)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||sv)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(s6.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex<zn.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){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=jc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=e6(),zn.openCount<1&&(zn.originalBodyOverflow=window.getComputedStyle(document.body).overflow),t6(),zn.openCount===0&&(document.body.className=me(document.body.className,Fe("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=zn.openCount,zn.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(zn.openCount<=1){const t=Fe("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=zn.originalBodyOverflow}this.manageFocusAfterClose(),zn.openCount=Math.max(0,zn.openCount-1),LC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Cr(this.props,iie),n="modal-dialog";return U.createElement("div",$e({},t,{className:Fe(me(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),U.createElement("div",{className:Fe(me("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,y=We(We(We({},Zt.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),x=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),_=l&&(v?U.createElement(Zt,$e({},x,{in:a&&!!l,cssModule:s,className:Fe(me("modal-backdrop",o),s)})):U.createElement("div",{className:Fe(me("modal-backdrop","show",o),s)}));return U.createElement(b6,{node:this._element},U.createElement("div",{className:Fe(r)},U.createElement(Zt,$e({},m,y,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Fe(me("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),_))}return null}}zn.propTypes=w6;zn.defaultProps=oie;zn.openCount=0;zn.originalBodyOverflow=null;var Vo=zn;const sie=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],aie={children:C.node,className:C.string,close:C.object,closeAriaLabel:C.string,cssModule:C.object,tag:Pe,toggle:C.func,wrapTag:Pe},lie={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function io(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=qe(e,sie),h=Fe(me(n,"modal-header"),r);return!c&&o&&(t=U.createElement("button",{type:"button",onClick:o,className:Fe("btn-close",r),"aria-label":l})),U.createElement(a,$e({},f,{className:h}),U.createElement(s,{className:Fe("modal-title",r)},i),c||t)}io.propTypes=aie;io.defaultProps=lie;const cie=["className","cssModule","tag"],uie={className:C.string,cssModule:C.object,tag:Pe},fie={tag:"div"};function Mi(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,cie),o=Fe(me(t,"modal-body"),n);return U.createElement(r,$e({},i,{className:o}))}Mi.propTypes=uie;Mi.defaultProps=fie;const die=["className","cssModule","tag"],hie={className:C.string,cssModule:C.object,tag:Pe},pie={tag:"div"};function ta(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,die),o=Fe(me(t,"modal-footer"),n);return U.createElement(r,$e({},i,{className:o}))}ta.propTypes=hie;ta.defaultProps=pie;const mie={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Xd(e){const t=me("tooltip","show",e.popperClassName),n=me("tooltip-inner",e.innerClassName);return U.createElement(y6,$e({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Xd.propTypes=m_;Xd.defaultProps=mie;C.bool,C.bool,C.string,C.object,C.bool,C.bool,C.oneOfType([C.func,C.string,C.object]),C.oneOfType([C.bool,C.string]),C.string,C.bool;const gie=["className","cssModule","tag","flush","horizontal","numbered"],vie={className:C.string,cssModule:C.object,flush:C.bool,horizontal:C.oneOfType([C.bool,C.string]),numbered:C.bool,tag:Pe},yie={tag:"ul",horizontal:!1,numbered:!1},_ie=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function QC(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=qe(e,gie),l=Fe(me(t,"list-group",i?"list-group-flush":_ie(o),{"list-group-numbered":s}),n);return U.createElement(r,$e({},a,{className:l}))}QC.propTypes=vie;QC.defaultProps=yie;const bie=["className","cssModule","tag","innerRef"],wie={children:C.node,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),className:C.string,cssModule:C.object},xie={tag:"form"};class x6 extends V.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=qe(t,bie),a=Fe(n,r);return U.createElement(i,$e({},s,{ref:o,className:a}))}}x6.propTypes=wie;x6.defaultProps=xie;C.node,C.string,C.object,C.bool,C.bool;const Sie=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],Cie={children:C.node,row:C.bool,check:C.bool,switch:C.bool,inline:C.bool,floating:C.bool,disabled:C.bool,tag:Pe,className:C.string,cssModule:C.object},Eie={tag:"div"};function vr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=qe(e,Sie),h=o||c,p=Fe(me(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),U.createElement(l,$e({},f,{className:p}))}vr.propTypes=Cie;vr.defaultProps=Eie;C.node,C.bool,C.string,C.string,C.object;const Tie=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],Oie={children:C.node,type:C.string,size:C.oneOfType([C.number,C.string]),bsSize:C.string,valid:C.bool,invalid:C.bool,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),plaintext:C.bool,addon:C.bool,className:C.string,cssModule:C.object},Pie={type:"text"};let JC=class extends U.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=qe(t,Tie);const m=["switch","radio","checkbox"].indexOf(i)>-1,v=/\D/g,y=i==="textarea",x=i==="select",_=i==="range";let w=l||(x||y?i:"input"),S="form-control";f?(S=`${S}-plaintext`,w=l||"input"):_?S="form-range":x?S="form-select":m&&(c?S=null:S="form-check-input"),p.size&&v.test(p.size)&&(Mw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const T=Fe(me(n,a&&"is-invalid",s&&"is-valid",o?x?`form-select-${o}`:`form-control-${o}`:!1,S),r);return(w==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof w!="string"||w==="select")&&(Mw(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),U.createElement(w,$e({},p,{ref:h,className:T,"aria-invalid":a}))}};JC.propTypes=Oie;JC.defaultProps=Pie;var Ic=JC;const kie=["className","cssModule","tag","type","size"],Mie={className:C.string,cssModule:C.object,size:C.string,tag:Pe,type:C.string},Rie={tag:"div"};function Qd(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=qe(e,kie),a=Fe(me(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?U.createElement(Jc,$e({},s,{className:a})):U.createElement(c6.Provider,{value:{insideInputGroup:!0}},U.createElement(r,$e({},s,{className:a})))}Qd.propTypes=Mie;Qd.defaultProps=Rie;C.string,C.object;const f1=C.oneOfType([C.number,C.string]),Rl=C.oneOfType([C.bool,C.string,C.number,C.shape({size:f1,order:f1,offset:f1})]);C.node,C.bool,C.bool,C.string,C.string,C.string,C.object,C.array;C.bool,C.bool,C.node,C.string,C.object,C.bool,C.bool,C.bool,C.bool,C.bool,C.bool,C.bool;function av(){}const h3=C.shape(Zt.propTypes),S6={autoFocus:C.bool,backdrop:C.bool,backdropClassName:C.string,backdropTransition:h3,children:C.node,className:C.string,container:Us,cssModule:C.object,direction:C.oneOf(["start","end","bottom","top"]),fade:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,keyboard:C.bool,labelledBy:C.string,offcanvasTransition:h3,onClosed:C.func,onEnter:C.func,onExit:C.func,style:C.object,onOpened:C.func,returnFocusAfterClose:C.bool,role:C.string,scrollable:C.bool,toggle:C.func,trapFocus:C.bool,unmountOnClose:C.bool,zIndex:C.oneOfType([C.number,C.string])},Nie=Object.keys(S6),Lie={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:av,onClosed:av,offcanvasTransition:{timeout:el.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:el.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class pi extends U.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){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}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex<pi.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let s=0;s<r;s+=1)if(n[s]===i){o=s;break}t.shiftKey&&o===0?(t.preventDefault(),n[r-1].focus()):!t.shiftKey&&o===r-1&&(t.preventDefault(),n[0].focus())}handleBackdropMouseDown(t){this._mouseDownElement=t.target}handleEscape(t){this.props.isOpen&&t.keyCode===mt.esc&&this.props.toggle&&this.props.keyboard&&(t.preventDefault(),t.stopPropagation(),this.props.toggle(t))}onOpened(t,n){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||av)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.offcanvasTransition.onExited||av)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&typeof this._dialog.focus=="function"&&this._dialog.focus()}getFocusableChildren(){return this._element.querySelectorAll(s6.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog===t.target||this.offcanvasIndex<pi.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){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=jc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=e6(),t6(),pi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=pi.openCount,pi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),pi.openCount=Math.max(0,pi.openCount-1),document.body.style.overflow=null,LC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,v=We(We(We({},Zt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),y=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),x=l&&(m?U.createElement(Zt,$e({},y,{in:a&&!!l,innerRef:w=>{this._backdrop=w},cssModule:s,className:Fe(me("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):U.createElement("div",{className:Fe(me("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=Cr(this.props,Nie);return U.createElement(b6,{node:this._element},U.createElement(Zt,$e({},_,p,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Fe(me("offcanvas",i,`offcanvas-${t}`),s),innerRef:w=>{this._dialog=w},style:We(We({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),x)}return null}}pi.propTypes=S6;pi.defaultProps=Lie;pi.openCount=0;C.string,C.object;C.node,C.string,C.object,C.string,C.object,C.func;const Die=["className","listClassName","cssModule","size","tag","listTag","aria-label"],Aie={children:C.node,className:C.string,listClassName:C.string,cssModule:C.object,size:C.string,tag:Pe,listTag:Pe,"aria-label":C.string},jie={tag:"nav",listTag:"ul","aria-label":"pagination"};function g_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=qe(e,Die),c=Fe(me(t),r),f=Fe(me(n,"pagination",{[`pagination-${i}`]:!!i}),r);return U.createElement(o,{className:c,"aria-label":a},U.createElement(s,$e({},l,{className:f})))}g_.propTypes=Aie;g_.defaultProps=jie;const Iie=["active","className","cssModule","disabled","tag"],Fie={active:C.bool,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,tag:Pe},$ie={tag:"li"};function Rs(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=qe(e,Iie),a=Fe(me(n,"page-item",{active:t,disabled:i}),r);return U.createElement(o,$e({},s,{className:a}))}Rs.propTypes=Fie;Rs.defaultProps=$ie;const Bie=["className","cssModule","next","previous","first","last","tag"],zie={"aria-label":C.string,children:C.node,className:C.string,cssModule:C.object,next:C.bool,previous:C.bool,first:C.bool,last:C.bool,tag:Pe},Uie={tag:"a"};function Ns(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=qe(e,Bie);const c=Fe(me(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="":r?p="":o?p="«":s&&(p="»");let{children:m}=e;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(m=[U.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),U.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),U.createElement(a,$e({},l,{className:c,"aria-label":h}),m)}Ns.propTypes=zie;Ns.defaultProps=Uie;const Vie=U.createContext({}),C6={tag:Pe,activeTab:C.any,className:C.string,cssModule:C.object},Hie={tag:"div"};class E6 extends V.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Cr(this.props,Object.keys(C6)),o=Fe(me("tab-content",t),n);return U.createElement(Vie.Provider,{value:{activeTabId:this.state.activeTab}},U.createElement(r,$e({},i,{className:o})))}}E6.propTypes=C6;E6.defaultProps=Hie;C.string,C.object,C.any;const Wie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Yie={children:C.node,className:C.string,closeClassName:C.string,closeAriaLabel:C.string,color:C.string,cssModule:C.object,fade:C.bool,innerRef:C.oneOfType([C.object,C.string,C.func]),isOpen:C.bool,tag:Pe,toggle:C.func,transition:C.shape(Zt.propTypes)},qie={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:We(We({},Zt.defaultProps),{},{unmountOnExit:!0})};function eE(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,m=qe(e,Wie),v=Fe(me(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),y=Fe(me("btn-close",n),i),x=We(We(We({},Zt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return U.createElement(Zt,$e({},m,x,{tag:o,className:v,in:a,role:"alert",innerRef:p}),l?U.createElement("button",{type:"button",className:y,"aria-label":r,onClick:l}):null,c)}eE.propTypes=Yie;eE.defaultProps=qie;C.node,C.string,C.object,C.bool,C.bool,C.shape(Zt.propTypes),C.oneOfType([C.object,C.string,C.func]);We(We({},Zt.defaultProps),{},{unmountOnExit:!0});C.string,C.object,C.oneOfType([C.object,C.string,C.func]);C.oneOfType([C.string,C.node]),C.func,C.string,C.object,C.node,C.string,C.oneOfType([C.string,C.number]),C.object,C.string;const Gie=["className","cssModule","tag","active","disabled","action","color"],Zie={action:C.bool,active:C.bool,className:C.string,cssModule:C.object,color:C.string,disabled:C.bool,tag:Pe},Kie={tag:"li"},Xie=e=>{e.preventDefault()};function tE(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=qe(e,Gie),c=Fe(me(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=Xie),U.createElement(r,$e({},l,{className:c}))}tE.propTypes=Zie;tE.defaultProps=Kie;C.string,C.object;C.string,C.object;const Qie=["className","cssModule","tag","type"],Jie={className:C.string,cssModule:C.object,tag:Pe,type:C.string},eoe={tag:"ul"},nE=V.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=qe(e,Qie),a=Fe(me(n,o?`list-${o}`:!1),r);return U.createElement(i,$e({},s,{className:a,ref:t}))});nE.name="List";nE.propTypes=Jie;nE.defaultProps=eoe;const toe=["className","cssModule","tag"],noe={className:C.string,cssModule:C.object,tag:Pe},roe={tag:"li"},rE=V.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=qe(e,toe),s=Fe(me(n,"list-inline-item"),r);return U.createElement(i,$e({},o,{className:s,ref:t}))});rE.name="ListInlineItem";rE.propTypes=noe;rE.defaultProps=roe;const ioe=["defaultOpen"];class ooe extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return U.createElement(VC,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,ioe)))}}ooe.propTypes=We({defaultOpen:C.bool},VC.propTypes);const soe=["toggleEvents","defaultOpen"],aoe={defaultOpen:C.bool,toggler:C.string.isRequired,toggleEvents:C.arrayOf(C.string)},loe={toggleEvents:hne};class T6 extends V.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=o6(this.props.toggler),this.togglers.length&&(this.removeEventListeners=pne(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return U.createElement(u6,$e({isOpen:this.state.isOpen},Cr(this.props,soe)))}}T6.propTypes=aoe;T6.defaultProps=loe;const coe=["defaultOpen"];class Jd extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return U.createElement(Jc,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,coe)))}}Jd.propTypes=We({defaultOpen:C.bool,onToggle:C.func},Jc.propTypes);const uoe=["defaultOpen"];class Er extends V.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return U.createElement(Xd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,uoe)))}}Er.propTypes=We({defaultOpen:C.bool},Xd.propTypes);C.oneOf(["border","grow"]),C.oneOf(["sm"]),C.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),C.string,C.object,C.string;We(We({},jC.propTypes),{},{color:C.string,tag:Pe,animation:C.oneOf(["glow","wave"]),innerRef:C.oneOfType([C.object,C.func,C.string]),size:C.oneOf(["lg","sm","xs"])});C.string,C.string,C.bool,C.string,C.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const foe="Left",doe="Right",hoe="Up",poe="Down",tc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Nw={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},p3="mousemove",m3="mouseup",moe="touchend",goe="touchmove",voe="touchstart";function yoe(e,t,n,r){return e>t?n>0?doe:foe:r>0?poe:hoe}function g3(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 _oe(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(p3,r),document.addEventListener(m3,s));const{clientX:v,clientY:y}=h?f.touches[0]:f,x=g3([v,y],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),Nw),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const m="touches"in f;if(m&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:v,clientY:y}=m?f.touches[0]:f,[x,_]=g3([v,y],p.rotationAngle),w=x-h.xy[0],S=_-h.xy[1],T=Math.abs(w),P=Math.abs(S),k=(f.timeStamp||0)-h.start,N=Math.sqrt(T*T+P*P)/(k||1),D=[w/(k||1),S/(k||1)],z=yoe(T,P,w,S),A=typeof p.delta=="number"?p.delta:p.delta[z.toLowerCase()]||tc.delta;if(T<A&&P<A&&!h.swiping)return h;const W={absX:T,absY:P,deltaX:w,deltaY:S,dir:z,event:f,first:h.first,initial:h.initial,velocity:N,vxvy:D};W.first&&p.onSwipeStart&&p.onSwipeStart(W),p.onSwiping&&p.onSwiping(W);let Y=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${z}`])&&(Y=!0),Y&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},h),{first:!1,eventData:W,swiping:!0})})},i=f=>{e((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start<p.swipeDuration){m=Object.assign(Object.assign({},h.eventData),{event:f}),p.onSwiped&&p.onSwiped(m);const v=p[`onSwiped${m.dir}`];v&&v(m)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},h),Nw),{eventData:m})})},o=()=>{document.removeEventListener(p3,r),document.removeEventListener(m3,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},tc.touchEventOptions),h.touchEventOptions),v=[[voe,n,m],[goe,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[moe,i,m]];v.forEach(([y,x,_])=>f.addEventListener(y,x,_)),p=()=>v.forEach(([y,x])=>f.removeEventListener(y,x))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function boe(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function woe(e){const{trackMouse:t}=e,n=V.useRef(Object.assign({},Nw)),r=V.useRef(Object.assign({},tc)),i=V.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},tc),e);let o;for(o in tc)r.current[o]===void 0&&(r.current[o]=tc[o]);const[s,a]=V.useMemo(()=>_oe(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=boe(n.current,r.current,i.current,a),s}var Op,xoe=new Uint8Array(16);function Soe(){if(!Op&&(Op=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Op))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Op(xoe)}const Coe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Eoe(e){return typeof e=="string"&&Coe.test(e)}var Fn=[];for(var d1=0;d1<256;++d1)Fn.push((d1+256).toString(16).substr(1));function Toe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Fn[e[t+0]]+Fn[e[t+1]]+Fn[e[t+2]]+Fn[e[t+3]]+"-"+Fn[e[t+4]]+Fn[e[t+5]]+"-"+Fn[e[t+6]]+Fn[e[t+7]]+"-"+Fn[e[t+8]]+Fn[e[t+9]]+"-"+Fn[e[t+10]]+Fn[e[t+11]]+Fn[e[t+12]]+Fn[e[t+13]]+Fn[e[t+14]]+Fn[e[t+15]]).toLowerCase();if(!Eoe(n))throw TypeError("Stringified UUID is invalid");return n}function iE(e,t,n){e=e||{};var r=e.random||(e.rng||Soe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Toe(r)}const Ooe=2e3,Poe=(e,t)=>(n=!1,r=Ooe)=>{const[i,o]=V.useState(n),s=V.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},hn=(e=!1)=>{const[t,n]=V.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},koe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:s})=>s==null?void 0:s.contains("visits-table"))||document.querySelector(".modal")||r()};return woe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Moe=(e,t)=>{const[n,r]=V.useState(t);return[n,o=>{const{location:s,history:a}=window,l=fl(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${Vd(l)}`),r(o)}]},Roe=(e,t)=>{const n=V.useRef(!0);V.useEffect(()=>{!n.current&&e(),n.current=!1},t)},na=()=>{const e=Fo();return()=>e(-1)},Noe=()=>{const{search:e}=Pn();return fl(e)},v_=()=>{const{current:e}=V.useRef(`dom-${iE()}`);return e},dl=()=>V.useRef(null),cn=({title:e,children:t,bodyClassName:n,...r})=>g.jsxs(Sr,{...r,children:[e&&g.jsx(nl,{role:"heading",children:e}),g.jsx(tl,{className:n,children:t})]});const Loe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=hn(),o=()=>{i(),n()};return g.jsxs(eE,{className:"app-update-banner",isOpen:e,toggle:t,tag:cn,color:"secondary",children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(ht,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(je,{icon:AQ,className:"ms-1"})]}),r&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})},O6=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(cn,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Lt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),Doe=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"})})},oE="#4696e5",Aoe="rgba(70, 150, 229, 0.4)",P6="#f77f28",joe="rgba(247, 127, 40, 0.4)",Ioe="white",Foe="#161b22",k6=e=>{var t,n;return(n=(t=document.getElementsByTagName("html"))==null?void 0:t[0])==null?void 0:n.setAttribute("data-theme",e)},$oe=()=>{var e,t;return((t=(e=document.getElementsByTagName("html"))==null?void 0:e[0])==null?void 0:t.getAttribute("data-theme"))==="dark"};const Boe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const v=Pn().pathname==="/";return V.useEffect(()=>{var y;Object.keys(c).length===0&&l(),k6(((y=f.ui)==null?void 0:y.theme)??"light")},[]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(e,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:me("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:g.jsxs(Zy,{children:[g.jsx(gt,{index:!0,element:g.jsx(t,{})}),g.jsx(gt,{path:"/settings/*",element:g.jsx(o,{})}),g.jsx(gt,{path:"/manage-servers",element:g.jsx(s,{})}),g.jsx(gt,{path:"/server/create",element:g.jsx(r,{})}),g.jsx(gt,{path:"/server/:serverId/edit",element:g.jsx(i,{})}),g.jsx(gt,{path:"/server/:serverId/*",element:g.jsx(n,{})}),g.jsx(gt,{path:"*",element:g.jsx(O6,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(a,{})})]}),g.jsx(Loe,{isOpen:h,toggle:p,forceUpdate:Doe})]})};function gi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vs(e){return!!e&&!!e[At]}function Lo(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Zoe}(e)||Array.isArray(e)||!!e[S3]||!!(!((t=e.constructor)===null||t===void 0)&&t[S3])||sE(e)||aE(e))}function rl(e,t,n){n===void 0&&(n=!1),tu(e)===0?(n?Object.keys:pc)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function tu(e){var t=e[At];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:sE(e)?2:aE(e)?3:0}function hc(e,t){return tu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zoe(e,t){return tu(e)===2?e.get(t):e[t]}function M6(e,t,n){var r=tu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function R6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function sE(e){return qoe&&e instanceof Map}function aE(e){return Goe&&e instanceof Set}function Ta(e){return e.o||e.t}function lE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=L6(e);delete t[At];for(var n=pc(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function cE(e,t){return t===void 0&&(t=!1),uE(e)||Vs(e)||!Lo(e)||(tu(e)>1&&(e.set=e.add=e.clear=e.delete=Uoe),Object.freeze(e),t&&rl(e,function(n,r){return cE(r,!0)},!0)),e}function Uoe(){gi(2)}function uE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Qi(e){var t=jw[e];return t||gi(18,e),t}function Voe(e,t){jw[e]||(jw[e]=t)}function Lw(){return yd}function h1(e,t){t&&(Qi("Patches"),e.u=[],e.s=[],e.v=t)}function lv(e){Dw(e),e.p.forEach(Hoe),e.p=null}function Dw(e){e===yd&&(yd=e.l)}function v3(e){return yd={p:[],l:yd,h:e,m:!0,_:0}}function Hoe(e){var t=e[At];t.i===0||t.i===1?t.j():t.O=!0}function p1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Qi("ES5").S(t,e,r),r?(n[At].P&&(lv(t),gi(4)),Lo(e)&&(e=cv(t,e),t.l||uv(t,e)),t.u&&Qi("Patches").M(n[At].t,e,t.u,t.s)):e=cv(t,n,[]),lv(t),t.u&&t.v(t.u,t.s),e!==N6?e:void 0}function cv(e,t,n){if(uE(t))return t;var r=t[At];if(!r)return rl(t,function(o,s){return y3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return uv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=lE(r.k):r.o;rl(r.i===3?new Set(i):i,function(o,s){return y3(e,r,i,o,s,n)}),uv(e,i,!1),n&&e.u&&Qi("Patches").R(r,n,e.u,e.s)}return r.o}function y3(e,t,n,r,i,o){if(Vs(i)){var s=cv(e,i,o&&t&&t.i!==3&&!hc(t.D,r)?o.concat(r):void 0);if(M6(n,r,s),!Vs(s))return;e.m=!1}if(Lo(i)&&!uE(i)){if(!e.h.F&&e._<1)return;cv(e,i),t&&t.A.l||uv(e,i)}}function uv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&cE(t,n)}function m1(e,t){var n=e[At];return(n?Ta(n):e)[t]}function _3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function as(e){e.P||(e.P=!0,e.l&&as(e.l))}function g1(e){e.o||(e.o=lE(e.t))}function Aw(e,t,n){var r=sE(t)?Qi("MapSet").N(t,n):aE(t)?Qi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Lw(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=_d;s&&(l=[a],c=Xu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Qi("ES5").J(t,n);return(n?n.A:Lw()).p.push(r),r}function Woe(e){return Vs(e)||gi(22,e),function t(n){if(!Lo(n))return n;var r,i=n[At],o=tu(n);if(i){if(!i.P&&(i.i<4||!Qi("ES5").K(i)))return i.t;i.I=!0,r=b3(n,o),i.I=!1}else r=b3(n,o);return rl(r,function(s,a){i&&zoe(i.t,s)===a||M6(r,s,t(a))}),o===3?new Set(r):r}(e)}function b3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return lE(e)}function Yoe(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[At];return _d.get(l,o)},set:function(l){var c=this[At];_d.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][At];if(!a.P)switch(a.i){case 5:r(a)&&as(a);break;case 4:n(a)&&as(a)}}}function n(o){for(var s=o.t,a=o.k,l=pc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==At){var h=s[f];if(h===void 0&&!hc(s,f))return!0;var p=a[f],m=p&&p[At];if(m?m.t!==h:!R6(p,h))return!0}}var v=!!s[At];return l.length!==pc(s).length+(v?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}var i={};Voe("ES5",{J:function(o,s){var a=Array.isArray(o),l=function(f,h){if(f){for(var p=Array(h.length),m=0;m<h.length;m++)Object.defineProperty(p,""+m,e(m,!0));return p}var v=L6(h);delete v[At];for(var y=pc(v),x=0;x<y.length;x++){var _=y[x];v[_]=e(_,f||!!v[_].enumerable)}return Object.create(Object.getPrototypeOf(h),v)}(a,o),c={i:a?5:4,A:s?s.A:Lw(),P:!1,I:!1,D:{},l:s,t:o,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,At,{value:c,writable:!0}),l},S:function(o,s,a){a?Vs(s)&&s[At].A===o&&t(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var f=c[At];if(f){var h=f.t,p=f.k,m=f.D,v=f.i;if(v===4)rl(p,function(S){S!==At&&(h[S]!==void 0||hc(h,S)?m[S]||l(p[S]):(m[S]=!0,as(f)))}),rl(h,function(S){p[S]!==void 0||hc(p,S)||(m[S]=!1,as(f))});else if(v===5){if(r(f)&&(as(f),m.length=!0),p.length<h.length)for(var y=p.length;y<h.length;y++)m[y]=!1;else for(var x=h.length;x<p.length;x++)m[x]=!0;for(var _=Math.min(p.length,h.length),w=0;w<_;w++)p.hasOwnProperty(w)||(m[w]=!0),m[w]===void 0&&l(p[w])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var w3,yd,fE=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",qoe=typeof Map<"u",Goe=typeof Set<"u",x3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",N6=fE?Symbol.for("immer-nothing"):((w3={})["immer-nothing"]=!0,w3),S3=fE?Symbol.for("immer-draftable"):"__$immer_draftable",At=fE?Symbol.for("immer-state"):"__$immer_state",Zoe=""+Object.prototype.constructor,pc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,L6=Object.getOwnPropertyDescriptors||function(e){var t={};return pc(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},jw={},_d={get:function(e,t){if(t===At)return e;var n=Ta(e);if(!hc(n,t))return function(i,o,s){var a,l=_3(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Lo(r)?r:r===m1(e.t,t)?(g1(e),e.o[t]=Aw(e.A.h,r,e)):r},has:function(e,t){return t in Ta(e)},ownKeys:function(e){return Reflect.ownKeys(Ta(e))},set:function(e,t,n){var r=_3(Ta(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=m1(Ta(e),t),o=i==null?void 0:i[At];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(R6(n,i)&&(n!==void 0||hc(e.t,t)))return!0;g1(e),as(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return m1(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,g1(e),as(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ta(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){gi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){gi(12)}},Xu={};rl(_d,function(e,t){Xu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xu.deleteProperty=function(e,t){return Xu.set.call(this,e,t,void 0)},Xu.set=function(e,t,n){return _d.set.call(this,e[0],t,n,e[0])};var Koe=function(){function e(n){var r=this;this.g=x3,this.F=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=r;return function(y){var x=this;y===void 0&&(y=a);for(var _=arguments.length,w=Array(_>1?_-1:0),S=1;S<_;S++)w[S-1]=arguments[S];return l.produce(y,function(T){var P;return(P=o).call.apply(P,[x,T].concat(w))})}}var c;if(typeof o!="function"&&gi(6),s!==void 0&&typeof s!="function"&&gi(7),Lo(i)){var f=v3(r),h=Aw(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?lv(f):Dw(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return h1(f,s),p1(y,f)},function(y){throw lv(f),y}):(h1(f,s),p1(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===N6&&(c=void 0),r.F&&cE(c,!0),s){var m=[],v=[];Qi("Patches").M(i,c,m,v),s(m,v)}return c}gi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return r.produceWithPatches(c,function(m){return i.apply(void 0,[m].concat(h))})};var s,a,l=r.produce(i,o,function(c,f){s=c,a=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,a]}):[l,s,a]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Lo(n)||gi(8),Vs(n)&&(n=Woe(n));var r=v3(this),i=Aw(this,n,void 0);return i[At].C=!0,Dw(r),i},t.finishDraft=function(n,r){var i=n&&n[At],o=i.A;return h1(o,r),p1(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!x3&&gi(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Qi("Patches").$;return Vs(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new Koe,D6=Ar.produce;Ar.produceWithPatches.bind(Ar);Ar.setAutoFreeze.bind(Ar);Ar.setUseProxies.bind(Ar);Ar.applyPatches.bind(Ar);Ar.createDraft.bind(Ar);Ar.finishDraft.bind(Ar);function Xoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 E3(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){Xoe(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 Zn(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 T3=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v1=function(){return Math.random().toString(36).substring(7).split("").join(".")},fv={INIT:"@@redux/INIT"+v1(),REPLACE:"@@redux/REPLACE"+v1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v1()}};function Qoe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function A6(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Zn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Zn(1));return n(A6)(e,t)}if(typeof e!="function")throw new Error(Zn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Zn(3));return o}function h(y){if(typeof y!="function")throw new Error(Zn(4));if(l)throw new Error(Zn(5));var x=!0;return c(),a.push(y),function(){if(x){if(l)throw new Error(Zn(6));x=!1,c();var w=a.indexOf(y);a.splice(w,1),s=null}}}function p(y){if(!Qoe(y))throw new Error(Zn(7));if(typeof y.type>"u")throw new Error(Zn(8));if(l)throw new Error(Zn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=s=a,_=0;_<x.length;_++){var w=x[_];w()}return y}function m(y){if(typeof y!="function")throw new Error(Zn(10));i=y,p({type:fv.REPLACE})}function v(){var y,x=h;return y={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Zn(11));function S(){w.next&&w.next(f())}S();var T=x(S);return{unsubscribe:T}}},y[T3]=function(){return this},y}return p({type:fv.INIT}),r={dispatch:p,subscribe:h,getState:f,replaceReducer:m},r[T3]=v,r}function Joe(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:fv.INIT});if(typeof r>"u")throw new Error(Zn(12));if(typeof n(void 0,{type:fv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Zn(13))})}function j6(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),s;try{Joe(n)}catch(a){s=a}return function(l,c){if(l===void 0&&(l={}),s)throw s;for(var f=!1,h={},p=0;p<o.length;p++){var m=o[p],v=n[m],y=l[m],x=v(y,c);if(typeof x>"u")throw c&&c.type,new Error(Zn(14));h[m]=x,f=f||x!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function dv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function ese(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(Zn(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=dv.apply(void 0,a)(i.dispatch),E3(E3({},i),{},{dispatch:o})}}}function I6(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var F6=I6();F6.withExtraArgument=I6;const O3=F6;var tse=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eh=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},bd=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},nse=Object.defineProperty,rse=Object.defineProperties,ise=Object.getOwnPropertyDescriptors,P3=Object.getOwnPropertySymbols,ose=Object.prototype.hasOwnProperty,sse=Object.prototype.propertyIsEnumerable,k3=function(e,t,n){return t in e?nse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ls=function(e,t){for(var n in t||(t={}))ose.call(t,n)&&k3(e,n,t[n]);if(P3)for(var r=0,i=P3(t);r<i.length;r++){var n=i[r];sse.call(t,n)&&k3(e,n,t[n])}return e},y1=function(e,t){return rse(e,ise(t))},th=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(c){i(c)}},s=function(l){try{a(n.throw(l))}catch(c){i(c)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(e,t)).next())})},ase=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?dv:dv.apply(null,arguments)};function lse(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var cse=function(e){tse(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,bd([void 0],n[0].concat(this)))):new(t.bind.apply(t,bd([void 0],n.concat(this))))},t}(Array);function Iw(e){return Lo(e)?D6(e,function(){}):e}function use(e){return typeof e=="boolean"}function fse(){return function(t){return dse(t)}}function dse(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new cse;return n&&(use(n)?r.push(O3):r.push(O3.withExtraArgument(n.extraArgument))),r}var hse=!0;function pse(e){var t=fse(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,s=o===void 0?t():o,a=n.devTools,l=a===void 0?!0:a,c=n.preloadedState,f=c===void 0?void 0:c,h=n.enhancers,p=h===void 0?void 0:h,m;if(typeof i=="function")m=i;else if(lse(i))m=j6(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;typeof v=="function"&&(v=v(t));var y=ese.apply(void 0,v),x=dv;l&&(x=ase(Ls({trace:!hse},typeof l=="object"&&l)));var _=[y];Array.isArray(p)?_=bd([y],p):typeof p=="function"&&(_=p(_));var w=x.apply(void 0,_);return A6(m,f,w)}function yn(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return Ls(Ls({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function $6(e){var t={},n=[],r,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(a in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return r=o,i}};return e(i),[t,n,r]}function mse(e){return typeof e=="function"}function gse(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?$6(t):[t,n,r],o=i[0],s=i[1],a=i[2],l;if(mse(e))l=function(){return Iw(e())};else{var c=Iw(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var m=bd([o[p.type]],s.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return m.filter(function(v){return!!v}).length===0&&(m=[a]),m.reduce(function(v,y){if(y)if(Vs(v)){var x=v,_=y(x,p);return _===void 0?v:_}else{if(Lo(v))return D6(v,function(w){return y(w,p)});var _=y(v,p);if(_===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return v},h)}return f.getInitialState=l,f}function vse(e,t){return e+"/"+t}function Yn(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof e.initialState=="function"?e.initialState:Iw(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},s={},a={};i.forEach(function(f){var h=r[f],p=vse(t,f),m,v;"reducer"in h?(m=h.reducer,v=h.prepare):m=h,o[f]=m,s[p]=m,a[f]=v?yn(p,v):yn(p)});function l(){var f=typeof e.extraReducers=="function"?$6(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,m=f[1],v=m===void 0?[]:m,y=f[2],x=y===void 0?void 0:y,_=Ls(Ls({},p),s);return gse(n,function(w){for(var S in _)w.addCase(S,_[S]);for(var T=0,P=v;T<P.length;T++){var k=P[T];w.addMatcher(k.matcher,k.reducer)}x&&w.addDefaultCase(x)})}var c;return{name:t,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var yse="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",B6=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=yse[Math.random()*64|0];return t},_se=["name","message","stack","code"],_1=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),M3=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),bse=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=_se;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},wse=function(){function e(t,n,r){var i=yn(t+"/fulfilled",function(c,f,h,p){return{payload:c,meta:y1(Ls({},p||{}),{arg:h,requestId:f,requestStatus:"fulfilled"})}}),o=yn(t+"/pending",function(c,f,h){return{payload:void 0,meta:y1(Ls({},h||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),s=yn(t+"/rejected",function(c,f,h,p,m){return{payload:p,error:(r&&r.serializeError||bse)(c||"Rejected"),meta:y1(Ls({},m||{}),{arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),a=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(f,h,p){var m=r!=null&&r.idGenerator?r.idGenerator(c):B6(),v=new a,y;function x(w){y=w,v.abort()}var _=function(){return th(this,null,function(){var w,S,T,P,k,N,D;return eh(this,function(z){switch(z.label){case 0:return z.trys.push([0,4,,5]),P=(w=r==null?void 0:r.condition)==null?void 0:w.call(r,c,{getState:h,extra:p}),Sse(P)?[4,P]:[3,2];case 1:P=z.sent(),z.label=2;case 2:if(P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return k=new Promise(function(A,W){return v.signal.addEventListener("abort",function(){return W({name:"AbortError",message:y||"Aborted"})})}),f(o(m,c,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:m,arg:c},{getState:h,extra:p}))),[4,Promise.race([k,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:m,signal:v.signal,abort:x,rejectWithValue:function(A,W){return new _1(A,W)},fulfillWithValue:function(A,W){return new M3(A,W)}})).then(function(A){if(A instanceof _1)throw A;return A instanceof M3?i(A.payload,m,c,A.meta):i(A,m,c)})])];case 3:return T=z.sent(),[3,5];case 4:return N=z.sent(),T=N instanceof _1?s(null,m,c,N.payload,N.meta):s(N,m,c),[3,5];case 5:return D=r&&!r.dispatchConditionRejection&&s.match(T)&&T.meta.condition,D||f(T),[2,T]}})})}();return Object.assign(_,{abort:x,requestId:m,arg:c,unwrap:function(){return _.then(xse)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function xse(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Sse(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var dE=function(e,t){if(typeof e!="function")throw new TypeError(t+" is not a function")},Cse=function(){},hE=function(e,t){return t===void 0&&(t=Cse),e.catch(t),e},z6=function(e,t){e.addEventListener("abort",t,{once:!0})},mc=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Ese="task",U6="listener",V6="completed",pE="cancelled",Tse="task-"+pE,Ose="task-"+V6,H6=U6+"-"+pE,Pse=U6+"-"+V6,y_=function(){function e(t){this.code=t,this.name="TaskAbortError",this.message=Ese+" "+pE+" (reason: "+t+")"}return e}(),gc=function(e){if(e.aborted)throw new y_(e.reason)},W6=function(e){return hE(new Promise(function(t,n){var r=function(){return n(new y_(e.reason))};e.aborted?r():z6(e,r)}))},kse=function(e,t){return th(void 0,null,function(){var n,r;return eh(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,e()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof y_?"cancelled":"rejected",error:r}];case 4:return t==null||t(),[7];case 5:return[2]}})})},hv=function(e){return function(t){return hE(Promise.race([W6(e),t]).then(function(n){return gc(e),n}))}},Y6=function(e){var t=hv(e);return function(n){return t(new Promise(function(r){return setTimeout(r,n)}))}},Mse=Object.assign,R3={},nh="listenerMiddleware",Rse=function(e){var t=function(n){return z6(e,function(){return mc(n,e.reason)})};return function(n){dE(n,"taskExecutor");var r=new AbortController;t(r);var i=kse(function(){return th(void 0,null,function(){var o;return eh(this,function(s){switch(s.label){case 0:return gc(e),gc(r.signal),[4,n({pause:hv(r.signal),delay:Y6(r.signal),signal:r.signal})];case 1:return o=s.sent(),gc(r.signal),[2,o]}})})},function(){return mc(r,Ose)});return{result:hv(e)(i),cancel:function(){mc(r,Tse)}}}},Nse=function(e,t){var n=function(r,i){return th(void 0,null,function(){var o,s,a,l;return eh(this,function(c){switch(c.label){case 0:gc(t),o=function(){},s=new Promise(function(f){o=e({predicate:r,effect:function(h,p){p.unsubscribe(),f([h,p.getState(),p.getOriginalState()])}})}),a=[W6(t),s],i!=null&&a.push(new Promise(function(f){return setTimeout(f,i,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,Promise.race(a)];case 2:return l=c.sent(),gc(t),[2,l];case 3:return o(),[7];case 4:return[2]}})})};return function(r,i){return hE(n(r,i))}},q6=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,i=e.predicate,o=e.effect;if(t)i=yn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return dE(o,"options.listener"),{predicate:i,type:t,effect:o}},Lse=function(e){var t=q6(e),n=t.type,r=t.predicate,i=t.effect,o=B6(),s={id:o,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return s},Dse=function(e){return function(){e.forEach(Fw),e.clear()}},N3=function(e,t,n){try{e(t,n)}catch(r){setTimeout(function(){throw r},0)}},Ase=yn(nh+"/add"),jse=yn(nh+"/removeAll"),Ise=yn(nh+"/remove"),Fse=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,bd([nh+"/error"],e))},Fw=function(e){e.pending.forEach(function(t){mc(t,H6)})};function $se(e){var t=this;e===void 0&&(e={});var n=new Map,r=e.extra,i=e.onError,o=i===void 0?Fse:i;dE(o,"onError");var s=function(m){return m.unsubscribe=function(){return n.delete(m.id)},n.set(m.id,m),function(v){m.unsubscribe(),v!=null&&v.cancelActive&&Fw(m)}},a=function(m){for(var v=0,y=Array.from(n.values());v<y.length;v++){var x=y[v];if(m(x))return x}},l=function(m){var v=a(function(y){return y.effect===m.effect});return v||(v=Lse(m)),s(v)},c=function(m){var v=q6(m),y=v.type,x=v.effect,_=v.predicate,w=a(function(S){var T=typeof y=="string"?S.type===y:S.predicate===_;return T&&S.effect===x});return w&&(w.unsubscribe(),m.cancelActive&&Fw(w)),!!w},f=function(m,v,y,x){return th(t,null,function(){var _,w,S;return eh(this,function(T){switch(T.label){case 0:_=new AbortController,w=Nse(l,_.signal),T.label=1;case 1:return T.trys.push([1,3,4,5]),m.pending.add(_),[4,Promise.resolve(m.effect(v,Mse({},y,{getOriginalState:x,condition:function(P,k){return w(P,k).then(Boolean)},take:w,delay:Y6(_.signal),pause:hv(_.signal),extra:r,signal:_.signal,fork:Rse(_.signal),unsubscribe:m.unsubscribe,subscribe:function(){n.set(m.id,m)},cancelActiveListeners:function(){m.pending.forEach(function(P,k,N){P!==_&&(mc(P,H6),N.delete(P))})}})))];case 2:return T.sent(),[3,5];case 3:return S=T.sent(),S instanceof y_||N3(o,S,{raisedBy:"effect"}),[3,5];case 4:return mc(_,Pse),m.pending.delete(_),[7];case 5:return[2]}})})},h=Dse(n),p=function(m){return function(v){return function(y){if(Ase.match(y))return l(y.payload);if(jse.match(y)){h();return}if(Ise.match(y))return c(y.payload);var x=m.getState(),_=function(){if(x===R3)throw new Error(nh+": getOriginalState can only be called synchronously");return x},w;try{if(w=v(y),n.size>0)for(var S=m.getState(),T=Array.from(n.values()),P=0,k=T;P<k.length;P++){var N=k[P],D=!1;try{D=N.predicate(y,S,x)}catch(z){D=!1,N3(o,z,{raisedBy:"predicate"})}D&&f(N,y,m,_)}}finally{x=R3}return w}}};return{middleware:p,startListening:l,stopListening:c,clearListeners:h}}var L3;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);Yoe();const{actions:Bse,reducer:zse}=Yn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Use,resetAppUpdate:Vse}=Bse,Hse=zse,Wse=(e,t)=>{e.serviceFactory("App",Boe,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Use),e.serviceFactory("resetAppUpdate",()=>Vse)};function pv(e){return t=>{const{resetSelectedServer:n}=t;return V.useEffect(()=>{n()},[]),g.jsx(e,{...t})}}const Nl=({children:e,to:t,className:n,...r})=>g.jsx(oj,{className:({isActive:i})=>me("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Yse=e=>({selectedServer:t,showOnMobile:n=!1})=>{const r=Ms(t),i=r?t.id:"",{pathname:o}=Pn(),s=me("aside-menu",{"aside-menu--hidden":!n}),a=l=>`/server/${i}${l}`;return g.jsx("aside",{className:s,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(Nl,{to:a("/overview"),children:[g.jsx(je,{fixedWidth:!0,icon:SQ}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(Nl,{to:a("/list-short-urls/1"),className:me({"aside-menu__item--selected":o.match("/list-short-urls")!==null}),children:[g.jsx(je,{fixedWidth:!0,icon:Qj}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(Nl,{to:a("/create-short-url"),children:[g.jsx(je,{fixedWidth:!0,icon:PQ,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(Nl,{to:a("/manage-tags"),children:[g.jsx(je,{fixedWidth:!0,icon:eI}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(Nl,{to:a("/manage-domains"),children:[g.jsx(je,{fixedWidth:!0,icon:nQ}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),g.jsxs(Nl,{to:a("/edit"),className:"aside-menu__item--push",children:[g.jsx(je,{fixedWidth:!0,icon:fQ}),g.jsx("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),r&&g.jsx(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:t})]})})},qse=({location:e},{error:t})=>class extends V.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){t(n)}render(){const{hasError:n}=this.state;if(n)return g.jsx("div",{className:"home",children:g.jsxs(cn,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(ht,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}},Ci=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e});const Gse=({id:e,name:t})=>g.jsxs(tE,{tag:Lt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(je,{icon:LQ,className:"servers-list__server-item-icon"})]}),G6=({servers:e,children:t,embedded:n=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("h5",{className:"mb-md-3",children:t}),e.length>0&&g.jsx(QC,{className:me("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>g.jsx(Gse,{id:r,name:i},r))})]}),Z6=({color:e=oE,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),g.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),g.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),g.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const Zse=({servers:e})=>{const t=Fo(),n=Kc(e),r=!Wn(n);return V.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),g.jsx("div",{className:"home",children:g.jsx(Sr,{className:"home__main-card",children:g.jsxs(Qn,{className:"g-0",children:[g.jsx("div",{className:"col-md-5 d-none d-md-block",children:g.jsx("div",{className:"home__logo-wrapper",children:g.jsx("div",{className:"home__logo",children:g.jsx(Z6,{})})})}),g.jsxs("div",{className:"col-md-7 home__servers-container",children:[g.jsx("div",{className:"home__title-wrapper",children:g.jsx("h1",{className:"home__title",children:"Welcome!"})}),g.jsx(G6,{embedded:!0,servers:n,children:!r&&g.jsxs("div",{className:"p-4 text-center",children:[g.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{children:g.jsxs(Lt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(je,{icon:dC})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0 mt-5",children:g.jsx(Ci,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",g.jsx(je,{icon:pQ})]})})})]})})]})]})})})};const Kse=e=>()=>{const[t,n,,r]=hn(),i=Pn(),{pathname:o}=i;V.useEffect(r,[i]);const s="/settings",a=me("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(IC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(FC,{tag:Lt,to:"/",children:[g.jsx(Z6,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx($C,{onClick:n,children:g.jsx(je,{icon:RQ,className:a})}),g.jsx(u6,{navbar:!0,isOpen:t,children:g.jsxs(c_,{navbar:!0,className:"ms-auto",children:[g.jsx(BC,{children:g.jsxs(l6,{tag:Lt,to:s,active:o.startsWith(s),children:[g.jsx(je,{icon:IQ}),"  Settings"]})}),g.jsx(e,{})]})})]})};const nu=({children:e})=>g.jsx("div",{className:"no-menu-wrapper container-xl",children:e}),Xse=e=>({error:"border-danger",default:""})[e],Qse=e=>({error:"text-danger",default:"text-muted"})[e],Co=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=me({"col-md-12":i,"col-md-10 offset-md-1":!i});return g.jsx(Qn,{className:me("g-0",e),children:g.jsx("div",{className:o,children:g.jsx(Sr,{className:Xse(r),body:!0,children:g.jsxs("h3",{className:me("text-center mb-0",Qse(r)),children:[n&&g.jsx(je,{icon:Xj,spin:!0}),n&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})};function K6(e,t){return n=>{const r=Xs(),{selectServer:i,selectedServer:o}=n;return V.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?AZ(o)?g.jsx(t,{}):g.jsx(e,{...n}):g.jsx(nu,{children:g.jsx(Co,{loading:!0})})}}const rr=(e,t)=>wse(e,t,{serializeError:GS}),Jse=(e,t)=>{const n=D3(e),r=D3(t),i=n.pop(),o=r.pop(),s=I3(n,r);return s!==0?s:i&&o?I3(i.split("."),o.split(".")):i||o?i?-1:1:0},$w=(e,t,n)=>{rae(n);const r=Jse(e,t);return X6[n].includes(r)},eae=/^[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(eae);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},A3=e=>e==="*"||e==="x"||e==="X",j3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},tae=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],nae=(e,t)=>{if(A3(e)||A3(t))return 0;const[n,r]=tae(j3(e),j3(t));return n>r?1:n<r?-1:0},I3=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=nae(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},X6={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},F3=Object.keys(X6),rae=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(F3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${F3.join("|")}`)},mE=(e,t,n=1)=>QS(n,e+1).map(t),vi=e=>!$o(e)&&!Wn(e),rh=e=>Dt(t=>t.preventDefault(),e),b1=e=>Wn(e)?null:e,ga=e=>t=>e===t,Q6=e=>e?"true":"false",w1=e=>e===void 0?void 0:Q6(e),iae=(e,{maxVersion:t,minVersion:n})=>{if(!vi(e))return!1;const r=!n||$w(e,n,">=");return(!t||$w(e,t,"<="))&&r},J6=Oj(GS,e=>{try{return $w(e,e,"=")}catch{return!1}}),e5=e=>J6(e)?`v${e}`:e,t5=(e="latest")=>t=>J6(t)?t:e,gE="shlink/selectedServer",oae="1.0.0",sae="999.999.999",aae="latest",lae=Dt(e=>e===aae?sae:e,t5(oae)),cae=Oj(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:lae(n),printableVersion:e5(n)}))),$3=null,vE=yn(`${gE}/resetSelectedServer`),n5=e=>rr(`${gE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(vE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await cae(o,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),uae=(e,t)=>{const n=$se();return n.startListening({actionCreator:e.fulfilled,effect:({payload:r},{dispatch:i})=>{Jy(r)&&i(t())}}),n},fae=e=>Yn({name:gE,initialState:$3,reducers:{},extraReducers:t=>{t.addCase(vE,()=>$3),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),Fi=e=>t=>Jy(t)&&iae(t.version,{minVersion:e}),yE={forwardQuery:Fi("2.9.0"),nonRestCors:Fi("2.9.0"),defaultDomainRedirectsEdition:Fi("2.10.0"),nonOrphanVisits:Fi("3.0.0"),allTagsFiltering:Fi("3.0.0"),tagsStats:Fi("3.0.0"),domainVisits:Fi("3.1.0"),excludeBotsOnShortUrls:Fi("3.4.0"),filterDisabledUrls:Fi("3.4.0"),deviceLongUrls:Fi("3.5.0")};Object.freeze(yE);const ki=(e,t)=>V.useMemo(()=>yE[e](t),[e,n5]);const dae=(e,t,n,r,i,o,s,a,l,c,f,h,p)=>K6(({selectedServer:m,sidebarNotPresent:v,sidebarPresent:y})=>{const x=Pn(),[_,w,S,T]=hn(),P=Jy(m);if(V.useEffect(()=>T(),[x]),V.useEffect(()=>(P&&y(),()=>v()),[]),!P)return g.jsx(c,{});const k=ki("nonOrphanVisits",m),N=ki("domainVisits",m),D=me("menu-layout__burger-icon",{"menu-layout__burger-icon--active":_}),z=koe(S,T);return g.jsxs(g.Fragment,{children:[g.jsx(je,{icon:XX,className:D,onClick:w}),g.jsx("div",{...z,className:"menu-layout__swipeable",children:g.jsxs("div",{className:"menu-layout__swipeable-inner",children:[g.jsx(n,{selectedServer:m,showOnMobile:_}),g.jsx("div",{className:"menu-layout__container",onClick:()=>T(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(Zy,{children:[g.jsx(gt,{index:!0,element:g.jsx(BS,{replace:!0,to:"overview"})}),g.jsx(gt,{path:"/overview",element:g.jsx(f,{})}),g.jsx(gt,{path:"/list-short-urls/:page",element:g.jsx(t,{})}),g.jsx(gt,{path:"/create-short-url",element:g.jsx(r,{})}),g.jsx(gt,{path:"/short-code/:shortCode/visits/*",element:g.jsx(i,{})}),g.jsx(gt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),g.jsx(gt,{path:"/tag/:tag/visits/*",element:g.jsx(o,{})}),N&&g.jsx(gt,{path:"/domain/:domain/visits/*",element:g.jsx(s,{})}),g.jsx(gt,{path:"/orphan-visits/*",element:g.jsx(a,{})}),k&&g.jsx(gt,{path:"/non-orphan-visits/*",element:g.jsx(l,{})}),g.jsx(gt,{path:"/manage-tags",element:g.jsx(e,{})}),g.jsx(gt,{path:"/manage-domains",element:g.jsx(p,{})}),g.jsx(gt,{path:"*",element:g.jsx(O6,{to:`/server/${m.id}/list-short-urls/1`,children:"List short URLs"})})]})})})]})})]})},c),hae={sidebarPresent:!1},{actions:pae,reducer:mae}=Yn({name:"shlink/sidebar",initialState:hae,reducers:{sidebarPresent:()=>({sidebarPresent:!0}),sidebarNotPresent:()=>({sidebarPresent:!1})}}),{sidebarPresent:gae,sidebarNotPresent:vae}=pae,yae=mae,_ae=({children:e})=>{const t=Pn();return V.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},bae="%_VERSION_%",wae=Dt(t5(),e5),B3=({project:e,version:t})=>g.jsx(Ci,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),xae=({selectedServer:e,clientVersion:t=bae})=>{const n=wae(t);return g.jsxs("small",{className:"text-muted",children:[Jy(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(B3,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(B3,{project:"shlink-web-client",version:n})]})};const Sae=({selectedServer:e,sidebar:t})=>{const n=me("text-center",{"shlink-versions-container--with-sidebar":t.sidebarPresent});return g.jsx("div",{className:n,children:g.jsx(xae,{selectedServer:e})})},z3={"Content-Type":"application/json"},U3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...z3}}:{headers:z3}:e;class Cae{constructor(t){xe(this,"fetchJson",(t,n)=>this.fetch(t,U3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));xe(this,"fetchEmpty",(t,n)=>this.fetch(t,U3(n)).then(async r=>{if(!r.ok)throw await r.json()}));xe(this,"fetchBlob",t=>this.fetch(t).then(n=>n.blob()));this.fetch=t}}const r5=({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)},i5=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);r5(e,i,n)};class Eae{constructor(t,n){this.httpClient=t,this.window=n}async saveImage(t,n){const r=await this.httpClient.fetchBlob(t),i=URL.createObjectURL(r);r5(this.window,i,n)}}class Tae{constructor(t,n){xe(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});xe(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});xe(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);i5(this.window,r,t)});this.window=t,this.jsonToCsv=n}}const Oae=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Cae,"fetch"),e.service("ImageDownloader",Eae,"HttpClient","window"),e.service("ReportExporter",Tae,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",()=>_ae),e.serviceFactory("MainHeader",Kse,"ServersDropdown"),e.serviceFactory("Home",()=>Zse),e.decorator("Home",pv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",dae,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",Yse,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",()=>Sae),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",qse,"window","console"),e.serviceFactory("sidebarPresent",()=>gae),e.serviceFactory("sidebarNotPresent",()=>vae)};const Ho=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:s=!1,minWidth:a,inline:l,size:c})=>{const[f,h]=hn(),p=me("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),m={minWidth:a&&`${a}px`};return g.jsxs(Jc,{isOpen:f,toggle:h,disabled:t,className:i,children:[g.jsx(Zd,{size:c,caret:!o,className:p,color:"primary",children:e}),g.jsx(eu,{className:"w-100",end:s,style:m,children:r})]})};const Pae=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=hn(),{domains:a}=n,l=Wn(t),c=()=>r("");return V.useEffect(()=>{e()},[]),i?g.jsxs(Qd,{children:[g.jsx(Ic,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),g.jsx(ht,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Dt(c,s),children:g.jsx(je,{icon:yQ})}),g.jsx(Er,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(Ho,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>g.jsxs(Ue,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&g.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{onClick:Dt(c,o),children:g.jsx("i",{children:"New domain"})})]})},Do=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,LX(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Nr=({children:e,type:t,className:n,small:r=!1})=>g.jsx(Qn,{className:n,children:g.jsx("div",{className:me({"col-md-10 offset-md-1":!r,"col-12":r}),children:g.jsx(cn,{role:"document",className:me("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:me({"p-2":r}),children:e})})});const kae=500;let Pp;const ih=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=V.useState(i),a=()=>{Pp&&clearTimeout(Pp),Pp=null},l=(c,f=kae)=>{s(c),a(),Pp=setTimeout(()=>{e(c),a()},f)};return g.jsxs("div",{className:me("search-field",t),children:[g.jsx("input",{type:"text",className:me("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),g.jsx(je,{icon:MQ,className:"search-field__icon"}),g.jsx("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})},__=({children:e,minWidth:t})=>g.jsx(Ho,{text:g.jsx(je,{className:"px-1",icon:wQ}),size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Ef=(e,t,n)=>$o(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Mae=(e,t)=>!e.domain&&t===N5?!0:e.domain===t,Rae=(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,validateUrl:n}:{longUrl:"",validateUrl:n}},o5="__",Nae=e=>e.replaceAll("/",o5),pm=e=>e.replaceAll(o5,"/");function Qe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Oe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mm=function(n){return typeof n}:mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mm(e)}function Me(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||mm(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function hl(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function no(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gm=function(n){return typeof n}:gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gm(e)}function Lae(e,t){if(Oe(2,arguments),!t||gm(t)!=="object")return new Date(NaN);var n=t.years?Qe(t.years):0,r=t.months?Qe(t.months):0,i=t.weeks?Qe(t.weeks):0,o=t.days?Qe(t.days):0,s=t.hours?Qe(t.hours):0,a=t.minutes?Qe(t.minutes):0,l=t.seconds?Qe(t.seconds):0,c=Me(e),f=r||n?no(c,r+n*12):c,h=o||i?hl(f,o+i*7):f,p=a+s*60,m=l+p*60,v=m*1e3,y=new Date(h.getTime()+v);return y}function _E(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Qe(t);return new Date(n+r)}var Dae=36e5;function Aae(e,t){Oe(2,arguments);var n=Qe(t);return _E(e,n*Dae)}var jae={};function Wo(){return jae}function s5(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getDay(),v=(m<h?7:0)+m-h;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function wd(e){return Oe(1,arguments),s5(e,{weekStartsOn:1})}function Iae(e){Oe(1,arguments);var t=Me(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=wd(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var s=wd(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Fae(e){Oe(1,arguments);var t=Iae(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=wd(n);return r}function Fc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Lr(e){Oe(1,arguments);var t=Me(e);return t.setHours(0,0,0,0),t}var $ae=864e5;function xd(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t),i=n.getTime()-Fc(n),o=r.getTime()-Fc(r);return Math.round((i-o)/$ae)}var Bae=6e4;function Bw(e,t){Oe(2,arguments);var n=Qe(t);return _E(e,n*Bae)}function bE(e,t){Oe(2,arguments);var n=Qe(t),r=n*7;return hl(e,r)}function $c(e,t){Oe(2,arguments);var n=Qe(t);return no(e,n*12)}function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function V3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(vm(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function H3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(ym(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Me(r);(n===void 0||n>i||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function _m(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var wE=6e4,b_=36e5,zae=1e3;function Uae(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}function bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bm=function(n){return typeof n}:bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bm(e)}function xE(e){return Oe(1,arguments),e instanceof Date||bm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function a5(e){if(Oe(1,arguments),!xE(e)&&typeof e!="number")return!1;var t=Me(e);return!isNaN(Number(t))}function Sd(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function zw(e){Oe(1,arguments);var t=Me(e),n=Math.floor(t.getMonth()/3)+1;return n}function mv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()-r.getFullYear()}function W3(e,t){var 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 SE(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=W3(n,r),o=Math.abs(xd(n,r));n.setDate(n.getDate()-i*o);var s=+(W3(n,r)===-i),a=i*(o-s);return a===0?0:a}function l5(e,t){return Oe(2,arguments),Me(e).getTime()-Me(t).getTime()}var Y3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Vae="trunc";function CE(e){return e?Y3[e]:Y3[Vae]}function Hae(e,t,n){Oe(2,arguments);var r=l5(e,t)/b_;return CE(n==null?void 0:n.roundingMethod)(r)}function il(e){Oe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}function Wae(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Yae(e){Oe(1,arguments);var t=Me(e);return il(t).getTime()===Wae(t).getTime()}function gv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=_m(n,r),o=Math.abs(Sd(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=_m(n,r)===-i;Yae(Me(e))&&o===1&&_m(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function qae(e,t,n){Oe(2,arguments);var r=l5(e,t)/1e3;return CE(n==null?void 0:n.roundingMethod)(r)}function Gae(e,t,n){Oe(2,arguments);var r=SE(e,t)/7;return CE(n==null?void 0:n.roundingMethod)(r)}function Uw(e){Oe(1,arguments);var t=Me(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Zae(e){Oe(1,arguments);var t=Me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Kae(e){Oe(1,arguments);var t=Me(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Xae(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getDay(),v=(m<h?-7:0)+6-(m-h);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function Qae(e){return Oe(1,arguments),Xae(e,{weekStartsOn:1})}function c5(e,t){Oe(2,arguments);var n=Qe(t);return _E(e,-n)}var Jae=864e5;function ele(e){Oe(1,arguments);var t=Me(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Jae)+1}function Bc(e){Oe(1,arguments);var t=1,n=Me(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function u5(e){Oe(1,arguments);var t=Me(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Bc(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Bc(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function tle(e){Oe(1,arguments);var t=u5(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Bc(n);return r}var nle=6048e5;function f5(e){Oe(1,arguments);var t=Me(e),n=Bc(t).getTime()-tle(t).getTime();return Math.round(n/nle)+1}function ol(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Me(e),m=p.getUTCDay(),v=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function EE(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Me(e),h=f.getUTCFullYear(),p=Wo(),m=Qe((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,m),v.setUTCHours(0,0,0,0);var y=ol(v,t),x=new Date(0);x.setUTCFullYear(h,0,m),x.setUTCHours(0,0,0,0);var _=ol(x,t);return f.getTime()>=y.getTime()?h+1:f.getTime()>=_.getTime()?h:h-1}function rle(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Wo(),h=Qe((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=EE(e,t),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var v=ol(m,t);return v}var ile=6048e5;function d5(e,t){Oe(1,arguments);var n=Me(e),r=ol(n,t).getTime()-rle(n,t).getTime();return Math.round(r/ile)+1}function tt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ole={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return tt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tt(r+1,2)},d:function(t,n){return tt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tt(t.getUTCHours(),n.length)},m:function(t,n){return tt(t.getUTCMinutes(),n.length)},s:function(t,n){return tt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return tt(o,n.length)}};const Xo=ole;var Ll={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sle={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Xo.y(t,n)},Y:function(t,n,r,i){var o=EE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return tt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):tt(s,n.length)},R:function(t,n){var r=u5(t);return tt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return tt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return tt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Xo.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return tt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=d5(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):tt(o,n.length)},I:function(t,n,r){var i=f5(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Xo.d(t,n)},D:function(t,n,r){var i=ele(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):tt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return tt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return tt(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return tt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Ll.noon:i===0?o=Ll.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Ll.evening:i>=12?o=Ll.afternoon:i>=4?o=Ll.morning:o=Ll.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Xo.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Xo.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Xo.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Xo.s(t,n)},S:function(t,n){return Xo.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return G3(s);case"XXXX":case"XX":return Oa(s);case"XXXXX":case"XXX":default:return Oa(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return G3(s);case"xxxx":case"xx":return Oa(s);case"xxxxx":case"xxx":default:return Oa(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+q3(s,":");case"OOOO":default:return"GMT"+Oa(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+q3(s,":");case"zzzz":default:return"GMT"+Oa(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return tt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return tt(s,n.length)}};function q3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+tt(o,2)}function G3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return Oa(e,t)}function Oa(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=tt(Math.floor(i/60),2),s=tt(i%60,2);return r+o+n+s}const ale=sle;var Z3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},h5=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},lle=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Z3(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Z3(i,n)).replace("{{time}}",h5(o,n))},cle={p:h5,P:lle};const Vw=cle;var ule=["D","DD"],fle=["YY","YYYY"];function p5(e){return ule.indexOf(e)!==-1}function m5(e){return fle.indexOf(e)!==-1}function vv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var dle={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"}},hle=function(t,n,r){var i,o=dle[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const ple=hle;function x1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var mle={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vle={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yle={date:x1({formats:mle,defaultWidth:"full"}),time:x1({formats:gle,defaultWidth:"full"}),dateTime:x1({formats:vle,defaultWidth:"full"})};const _le=yle;var ble={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wle=function(t,n,r,i){return ble[t]};const xle=wle;function ju(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var Sle={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cle={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ele={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"]},Tle={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"]},Ole={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"}},Ple={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"}},kle=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Mle={ordinalNumber:kle,era:ju({values:Sle,defaultWidth:"wide"}),quarter:ju({values:Cle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ju({values:Ele,defaultWidth:"wide"}),day:ju({values:Tle,defaultWidth:"wide"}),dayPeriod:ju({values:Ole,defaultWidth:"wide",formattingValues:Ple,defaultFormattingWidth:"wide"})};const Rle=Mle;function Iu(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Lle(a,function(h){return h.test(s)}):Nle(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function Nle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Lle(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Dle(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Ale=/^(\d+)(th|st|nd|rd)?/i,jle=/\d+/i,Ile={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},Fle={any:[/^b/i,/^(a|c)/i]},$le={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ble={any:[/1/i,/2/i,/3/i,/4/i]},zle={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},Ule={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]},Vle={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},Hle={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]},Wle={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},Yle={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}},qle={ordinalNumber:Dle({matchPattern:Ale,parsePattern:jle,valueCallback:function(t){return parseInt(t,10)}}),era:Iu({matchPatterns:Ile,defaultMatchWidth:"wide",parsePatterns:Fle,defaultParseWidth:"any"}),quarter:Iu({matchPatterns:$le,defaultMatchWidth:"wide",parsePatterns:Ble,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Iu({matchPatterns:zle,defaultMatchWidth:"wide",parsePatterns:Ule,defaultParseWidth:"any"}),day:Iu({matchPatterns:Vle,defaultMatchWidth:"wide",parsePatterns:Hle,defaultParseWidth:"any"}),dayPeriod:Iu({matchPatterns:Wle,defaultMatchWidth:"any",parsePatterns:Yle,defaultParseWidth:"any"})};const Gle=qle;var Zle={code:"en-US",formatDistance:ple,formatLong:_le,formatRelative:xle,localize:Rle,match:Gle,options:{weekStartsOn:0,firstWeekContainsDate:1}};const TE=Zle;var Kle=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qle=/^'([^]*?)'?$/,Jle=/''/g,ece=/[a-zA-Z]/;function yo(e,t,n){var r,i,o,s,a,l,c,f,h,p,m,v,y,x,_,w,S,T;Oe(2,arguments);var P=String(t),k=Wo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:TE,D=Qe((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:k.firstWeekContainsDate)!==null&&s!==void 0?s:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Qe((m=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(_=n.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:k.weekStartsOn)!==null&&v!==void 0?v:(S=k.locale)===null||S===void 0||(T=S.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&m!==void 0?m:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Me(e);if(!a5(A))throw new RangeError("Invalid time value");var W=Fc(A),Y=c5(A,W),J={firstWeekContainsDate:D,weekStartsOn:z,locale:N,_originalDate:A},Z=P.match(Xle).map(function(ee){var ie=ee[0];if(ie==="p"||ie==="P"){var oe=Vw[ie];return oe(ee,N.formatLong)}return ee}).join("").match(Kle).map(function(ee){if(ee==="''")return"'";var ie=ee[0];if(ie==="'")return tce(ee);var oe=ale[ie];if(oe)return!(n!=null&&n.useAdditionalWeekYearTokens)&&m5(ee)&&vv(ee,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&p5(ee)&&vv(ee,t,String(e)),oe(Y,ee,N.localize,J);if(ie.match(ece))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return ee}).join("");return Z}function tce(e){var t=e.match(Qle);return t?t[1].replace(Jle,"'"):e}function OE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function nce(e){return OE({},e)}var K3=1440,rce=2520,S1=43200,ice=86400;function oce(e,t,n){var r,i;Oe(2,arguments);var o=Wo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:TE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=_m(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=OE(nce(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),c,f;a>0?(c=Me(t),f=Me(e)):(c=Me(e),f=Me(t));var h=qae(f,c),p=(Fc(f)-Fc(c))/1e3,m=Math.round((h-p)/60),v;if(m<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(m<K3){var y=Math.round(m/60);return s.formatDistance("aboutXHours",y,l)}else{if(m<rce)return s.formatDistance("xDays",1,l);if(m<S1){var x=Math.round(m/K3);return s.formatDistance("xDays",x,l)}else if(m<ice)return v=Math.round(m/S1),s.formatDistance("aboutXMonths",v,l)}if(v=gv(f,c),v<12){var _=Math.round(m/S1);return s.formatDistance("xMonths",_,l)}else{var w=v%12,S=Math.floor(v/12);return w<3?s.formatDistance("aboutXYears",S,l):w<9?s.formatDistance("overXYears",S,l):s.formatDistance("almostXYears",S+1,l)}}function sce(e,t){var n,r;Oe(1,arguments);var i=Me(e);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),s=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(s!=="date"&&s!=="time"&&s!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",l="",c=o==="extended"?"-":"",f=o==="extended"?":":"";if(s!=="time"){var h=tt(i.getDate(),2),p=tt(i.getMonth()+1,2),m=tt(i.getFullYear(),4);a="".concat(m).concat(c).concat(p).concat(c).concat(h)}if(s!=="date"){var v=i.getTimezoneOffset();if(v!==0){var y=Math.abs(v),x=tt(Math.floor(y/60),2),_=tt(y%60,2),w=v<0?"+":"-";l="".concat(w).concat(x,":").concat(_)}else l="Z";var S=tt(i.getHours(),2),T=tt(i.getMinutes(),2),P=tt(i.getSeconds(),2),k=a===""?"":"T",N=[S,T,P].join(f);a="".concat(a).concat(k).concat(N).concat(l)}return a}function X3(e){Oe(1,arguments);var t=Me(e),n=t.getDate();return n}function ace(e){Oe(1,arguments);var t=Me(e),n=t.getDay();return n}function lce(e){Oe(1,arguments);var t=Me(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Ei(e){Oe(1,arguments);var t=Me(e),n=t.getHours();return n}var cce=6048e5;function uce(e){Oe(1,arguments);var t=Me(e),n=wd(t).getTime()-Fae(t).getTime();return Math.round(n/cce)+1}function Ti(e){Oe(1,arguments);var t=Me(e),n=t.getMinutes();return n}function lr(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return n}function fce(e){Oe(1,arguments);var t=Me(e),n=t.getSeconds();return n}function yv(e){Oe(1,arguments);var t=Me(e),n=t.getTime();return n}function dce(e){return Oe(1,arguments),Math.floor(yv(e)/1e3)}function dt(e){return Oe(1,arguments),Me(e).getFullYear()}function Hs(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()>r.getTime()}function Gr(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()<r.getTime()}function g5(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()===r.getTime()}function wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wm=function(n){return typeof n}:wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wm(e)}function v5(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}}),t&&Hw(e,t)}function Hw(e,t){return Hw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Hw(e,t)}function y5(e){var t=pce();return function(){var r=_v(e),i;if(t){var o=_v(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hce(this,i)}}function hce(e,t){return t&&(wm(t)==="object"||typeof t=="function")?t:Ww(e)}function Ww(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pce(){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 _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function PE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q3(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 kE(e,t,n){return t&&Q3(e.prototype,t),n&&Q3(e,n),e}function Yw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mce=10,_5=function(){function e(){PE(this,e),Yw(this,"subPriority",0)}return kE(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),gce=function(e){v5(n,e);var t=y5(n);function n(r,i,o,s,a){var l;return PE(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=s,a&&(l.subPriority=a),l}return kE(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,s){return this.setValue(i,o,this.value,s)}}]),n}(_5),vce=function(e){v5(n,e);var t=y5(n);function n(){var r;PE(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),Yw(Ww(r),"priority",mce),Yw(Ww(r),"subPriority",-1),r}return kE(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}}]),n}(_5);function yce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J3(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 _ce(e,t,n){return t&&J3(e.prototype,t),n&&J3(e,n),e}var pt=function(){function e(){yce(this,e)}return _ce(e,[{key:"run",value:function(n,r,i,o){var s=this.parse(n,r,i,o);return s?{setter:new gce(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),e}();function xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xm=function(n){return typeof n}:xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xm(e)}function bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eR(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 wce(e,t,n){return t&&eR(e.prototype,t),n&&eR(e,n),e}function xce(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}}),t&&qw(e,t)}function qw(e,t){return qw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qw(e,t)}function Sce(e){var t=Ece();return function(){var r=bv(e),i;if(t){var o=bv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Cce(this,i)}}function Cce(e,t){return t&&(xm(t)==="object"||typeof t=="function")?t:Gw(e)}function Gw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ece(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}function tR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tce=function(e){xce(n,e);var t=Sce(n);function n(){var r;bce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),tR(Gw(r),"priority",140),tR(Gw(r),"incompatibleTokens",["R","u","t","T"]),r}return wce(n,[{key:"parse",value:function(i,o,s){switch(o){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"});case"GGGGG":return s.era(i,{width:"narrow"});case"GGGG":default:return s.era(i,{width:"wide"})||s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,s){return o.era=s,i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt),nn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Hi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function rn(e,t){return e&&{value:t(e.value),rest:e.rest}}function zt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Wi(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*b_+o*wE+s*zae),rest:t.slice(n[0].length)}}function b5(e){return zt(nn.anyDigitsSigned,e)}function Kt(e,t){switch(e){case 1:return zt(nn.singleDigit,t);case 2:return zt(nn.twoDigits,t);case 3:return zt(nn.threeDigits,t);case 4:return zt(nn.fourDigits,t);default:return zt(new RegExp("^\\d{1,"+e+"}"),t)}}function wv(e,t){switch(e){case 1:return zt(nn.singleDigitSigned,t);case 2:return zt(nn.twoDigitsSigned,t);case 3:return zt(nn.threeDigitsSigned,t);case 4:return zt(nn.fourDigitsSigned,t);default:return zt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ME(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function w5(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function x5(e){return e%400===0||e%4===0&&e%100!==0}function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function Oce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(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 Pce(e,t,n){return t&&nR(e.prototype,t),n&&nR(e,n),e}function kce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zw(e,t)}function Zw(e,t){return Zw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zw(e,t)}function Mce(e){var t=Nce();return function(){var r=xv(e),i;if(t){var o=xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Rce(this,i)}}function Rce(e,t){return t&&(Sm(t)==="object"||typeof t=="function")?t:Kw(e)}function Kw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function rR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lce=function(e){kce(n,e);var t=Mce(n);function n(){var r;Oce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),rR(Kw(r),"priority",130),rR(Kw(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Pce(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return rn(Kt(4,i),a);case"yo":return rn(s.ordinalNumber(i,{unit:"year"}),a);default:return rn(Kt(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=w5(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function Dce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(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 Ace(e,t,n){return t&&iR(e.prototype,t),n&&iR(e,n),e}function jce(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}}),t&&Xw(e,t)}function Xw(e,t){return Xw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xw(e,t)}function Ice(e){var t=$ce();return function(){var r=Sv(e),i;if(t){var o=Sv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Fce(this,i)}}function Fce(e,t){return t&&(Cm(t)==="object"||typeof t=="function")?t:Qw(e)}function Qw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $ce(){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 Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function oR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bce=function(e){jce(n,e);var t=Ice(n);function n(){var r;Dce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),oR(Qw(r),"priority",130),oR(Qw(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ace(n,[{key:"parse",value:function(i,o,s){var a=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return rn(Kt(4,i),a);case"Yo":return rn(s.ordinalNumber(i,{unit:"year"}),a);default:return rn(Kt(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s,a){var l=EE(i,a);if(s.isTwoDigitYear){var c=w5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ol(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ol(i,a)}}]),n}(pt);function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function zce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(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 Uce(e,t,n){return t&&sR(e.prototype,t),n&&sR(e,n),e}function Vce(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}}),t&&Jw(e,t)}function Jw(e,t){return Jw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Jw(e,t)}function Hce(e){var t=Yce();return function(){var r=Cv(e),i;if(t){var o=Cv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Wce(this,i)}}function Wce(e,t){return t&&(Em(t)==="object"||typeof t=="function")?t:ex(e)}function ex(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yce(){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 Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function aR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qce=function(e){Vce(n,e);var t=Hce(n);function n(){var r;zce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),aR(ex(r),"priority",130),aR(ex(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Uce(n,[{key:"parse",value:function(i,o){return wv(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,s){var a=new Date(0);return a.setUTCFullYear(s,0,4),a.setUTCHours(0,0,0,0),Bc(a)}}]),n}(pt);function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function Gce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(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 Zce(e,t,n){return t&&lR(e.prototype,t),n&&lR(e,n),e}function Kce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tx(e,t)}function tx(e,t){return tx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tx(e,t)}function Xce(e){var t=Jce();return function(){var r=Ev(e),i;if(t){var o=Ev(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Qce(this,i)}}function Qce(e,t){return t&&(Tm(t)==="object"||typeof t=="function")?t:nx(e)}function nx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jce(){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 Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eue=function(e){Kce(n,e);var t=Xce(n);function n(){var r;Gce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),cR(nx(r),"priority",130),cR(nx(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Zce(n,[{key:"parse",value:function(i,o){return wv(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,s){return i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Om=function(n){return typeof n}:Om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function tue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uR(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 nue(e,t,n){return t&&uR(e.prototype,t),n&&uR(e,n),e}function rue(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}}),t&&rx(e,t)}function rx(e,t){return rx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},rx(e,t)}function iue(e){var t=sue();return function(){var r=Tv(e),i;if(t){var o=Tv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oue(this,i)}}function oue(e,t){return t&&(Om(t)==="object"||typeof t=="function")?t:ix(e)}function ix(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sue(){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 Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function fR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aue=function(e){rue(n,e);var t=iue(n);function n(){var r;tue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),fR(ix(r),"priority",120),fR(ix(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return nue(n,[{key:"parse",value:function(i,o,s){switch(o){case"Q":case"QQ":return Kt(o.length,i);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(i,{width:"wide",context:"formatting"})||s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(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 cue(e,t,n){return t&&dR(e.prototype,t),n&&dR(e,n),e}function uue(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}}),t&&ox(e,t)}function ox(e,t){return ox=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ox(e,t)}function fue(e){var t=hue();return function(){var r=Ov(e),i;if(t){var o=Ov(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return due(this,i)}}function due(e,t){return t&&(Pm(t)==="object"||typeof t=="function")?t:sx(e)}function sx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hue(){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 Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pue=function(e){uue(n,e);var t=fue(n);function n(){var r;lue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),hR(sx(r),"priority",120),hR(sx(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return cue(n,[{key:"parse",value:function(i,o,s){switch(o){case"q":case"qq":return Kt(o.length,i);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(i,{width:"wide",context:"standalone"})||s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?km=function(n){return typeof n}:km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},km(e)}function mue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(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 gue(e,t,n){return t&&pR(e.prototype,t),n&&pR(e,n),e}function vue(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}}),t&&ax(e,t)}function ax(e,t){return ax=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ax(e,t)}function yue(e){var t=bue();return function(){var r=Pv(e),i;if(t){var o=Pv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _ue(this,i)}}function _ue(e,t){return t&&(km(t)==="object"||typeof t=="function")?t:lx(e)}function lx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bue(){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 Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wue=function(e){vue(n,e);var t=yue(n);function n(){var r;mue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),mR(lx(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),mR(lx(r),"priority",110),r}return gue(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"M":return rn(zt(nn.month,i),a);case"MM":return rn(Kt(2,i),a);case"Mo":return rn(s.ordinalNumber(i,{unit:"month"}),a);case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(i,{width:"wide",context:"formatting"})||s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gR(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 Sue(e,t,n){return t&&gR(e.prototype,t),n&&gR(e,n),e}function Cue(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}}),t&&cx(e,t)}function cx(e,t){return cx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},cx(e,t)}function Eue(e){var t=Oue();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 Tue(this,i)}}function Tue(e,t){return t&&(Mm(t)==="object"||typeof t=="function")?t:ux(e)}function ux(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oue(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function vR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pue=function(e){Cue(n,e);var t=Eue(n);function n(){var r;xue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),vR(ux(r),"priority",110),vR(ux(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Sue(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"L":return rn(zt(nn.month,i),a);case"LL":return rn(Kt(2,i),a);case"Lo":return rn(s.ordinalNumber(i,{unit:"month"}),a);case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(i,{width:"wide",context:"standalone"})||s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function kue(e,t,n){Oe(2,arguments);var r=Me(e),i=Qe(t),o=d5(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rm=function(n){return typeof n}:Rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rm(e)}function Mue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rue(e,t,n){return t&&yR(e.prototype,t),n&&yR(e,n),e}function Nue(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}}),t&&fx(e,t)}function fx(e,t){return fx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fx(e,t)}function Lue(e){var t=Aue();return function(){var r=Mv(e),i;if(t){var o=Mv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Due(this,i)}}function Due(e,t){return t&&(Rm(t)==="object"||typeof t=="function")?t:dx(e)}function dx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aue(){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 Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function _R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jue=function(e){Nue(n,e);var t=Lue(n);function n(){var r;Mue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),_R(dx(r),"priority",100),_R(dx(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Rue(n,[{key:"parse",value:function(i,o,s){switch(o){case"w":return zt(nn.week,i);case"wo":return s.ordinalNumber(i,{unit:"week"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s,a){return ol(kue(i,s,a),a)}}]),n}(pt);function Iue(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=f5(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nm=function(n){return typeof n}:Nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nm(e)}function Fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(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 $ue(e,t,n){return t&&bR(e.prototype,t),n&&bR(e,n),e}function Bue(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}}),t&&hx(e,t)}function hx(e,t){return hx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hx(e,t)}function zue(e){var t=Vue();return function(){var r=Rv(e),i;if(t){var o=Rv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Uue(this,i)}}function Uue(e,t){return t&&(Nm(t)==="object"||typeof t=="function")?t:px(e)}function px(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vue(){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 Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function wR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hue=function(e){Bue(n,e);var t=zue(n);function n(){var r;Fue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),wR(px(r),"priority",100),wR(px(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return $ue(n,[{key:"parse",value:function(i,o,s){switch(o){case"I":return zt(nn.week,i);case"Io":return s.ordinalNumber(i,{unit:"week"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s){return Bc(Iue(i,s))}}]),n}(pt);function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function Wue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(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 Yue(e,t,n){return t&&xR(e.prototype,t),n&&xR(e,n),e}function que(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}}),t&&mx(e,t)}function mx(e,t){return mx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},mx(e,t)}function Gue(e){var t=Kue();return function(){var r=Nv(e),i;if(t){var o=Nv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Zue(this,i)}}function Zue(e,t){return t&&(Lm(t)==="object"||typeof t=="function")?t:Dm(e)}function Dm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kue(){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 Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function C1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xue=[31,28,31,30,31,30,31,31,30,31,30,31],Que=[31,29,31,30,31,30,31,31,30,31,30,31],Jue=function(e){que(n,e);var t=Gue(n);function n(){var r;Wue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),C1(Dm(r),"priority",90),C1(Dm(r),"subPriority",1),C1(Dm(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Yue(n,[{key:"parse",value:function(i,o,s){switch(o){case"d":return zt(nn.date,i);case"do":return s.ordinalNumber(i,{unit:"date"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){var s=i.getUTCFullYear(),a=x5(s),l=i.getUTCMonth();return a?o>=1&&o<=Que[l]:o>=1&&o<=Xue[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Am=function(n){return typeof n}:Am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function efe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SR(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 tfe(e,t,n){return t&&SR(e.prototype,t),n&&SR(e,n),e}function nfe(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}}),t&&gx(e,t)}function gx(e,t){return gx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gx(e,t)}function rfe(e){var t=ofe();return function(){var r=Lv(e),i;if(t){var o=Lv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ife(this,i)}}function ife(e,t){return t&&(Am(t)==="object"||typeof t=="function")?t:jm(e)}function jm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ofe(){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 Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sfe=function(e){nfe(n,e);var t=rfe(n);function n(){var r;efe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),E1(jm(r),"priority",90),E1(jm(r),"subpriority",1),E1(jm(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return tfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"D":case"DD":return zt(nn.dayOfYear,i);case"Do":return s.ordinalNumber(i,{unit:"date"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){var s=i.getUTCFullYear(),a=x5(s);return a?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function RE(e,t,n){var r,i,o,s,a,l,c,f;Oe(2,arguments);var h=Wo(),p=Qe((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Me(e),v=Qe(t),y=m.getUTCDay(),x=v%7,_=(x+7)%7,w=(_<p?7:0)+v-y;return m.setUTCDate(m.getUTCDate()+w),m}function Im(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Im=function(n){return typeof n}:Im=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Im(e)}function afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(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 lfe(e,t,n){return t&&CR(e.prototype,t),n&&CR(e,n),e}function cfe(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}}),t&&vx(e,t)}function vx(e,t){return vx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vx(e,t)}function ufe(e){var t=dfe();return function(){var r=Dv(e),i;if(t){var o=Dv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ffe(this,i)}}function ffe(e,t){return t&&(Im(t)==="object"||typeof t=="function")?t:yx(e)}function yx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function ER(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hfe=function(e){cfe(n,e);var t=ufe(n);function n(){var r;afe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ER(yx(r),"priority",90),ER(yx(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return lfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=RE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fm=function(n){return typeof n}:Fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fm(e)}function pfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(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 mfe(e,t,n){return t&&TR(e.prototype,t),n&&TR(e,n),e}function gfe(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}}),t&&_x(e,t)}function _x(e,t){return _x=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_x(e,t)}function vfe(e){var t=_fe();return function(){var r=Av(e),i;if(t){var o=Av(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yfe(this,i)}}function yfe(e,t){return t&&(Fm(t)==="object"||typeof t=="function")?t:bx(e)}function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _fe(){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 Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function OR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bfe=function(e){gfe(n,e);var t=vfe(n);function n(){var r;pfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),OR(bx(r),"priority",90),OR(bx(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return mfe(n,[{key:"parse",value:function(i,o,s,a){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+a.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return rn(Kt(o.length,i),l);case"eo":return rn(s.ordinalNumber(i,{unit:"day"}),l);case"eee":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=RE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function $m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$m=function(n){return typeof n}:$m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$m(e)}function wfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PR(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 xfe(e,t,n){return t&&PR(e.prototype,t),n&&PR(e,n),e}function Sfe(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}}),t&&wx(e,t)}function wx(e,t){return wx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},wx(e,t)}function Cfe(e){var t=Tfe();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 Efe(this,i)}}function Efe(e,t){return t&&($m(t)==="object"||typeof t=="function")?t:xx(e)}function xx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tfe(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function kR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ofe=function(e){Sfe(n,e);var t=Cfe(n);function n(){var r;wfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),kR(xx(r),"priority",90),kR(xx(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return xfe(n,[{key:"parse",value:function(i,o,s,a){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+a.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return rn(Kt(o.length,i),l);case"co":return rn(s.ordinalNumber(i,{unit:"day"}),l);case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(i,{width:"wide",context:"standalone"})||s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=RE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Pfe(e,t){Oe(2,arguments);var n=Qe(t);n%7===0&&(n=n-7);var r=1,i=Me(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function kfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(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 Mfe(e,t,n){return t&&MR(e.prototype,t),n&&MR(e,n),e}function Rfe(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}}),t&&Sx(e,t)}function Sx(e,t){return Sx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Sx(e,t)}function Nfe(e){var t=Dfe();return function(){var r=Iv(e),i;if(t){var o=Iv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lfe(this,i)}}function Lfe(e,t){return t&&(Bm(t)==="object"||typeof t=="function")?t:Cx(e)}function Cx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dfe(){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 Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function RR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Afe=function(e){Rfe(n,e);var t=Nfe(n);function n(){var r;kfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),RR(Cx(r),"priority",90),RR(Cx(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Mfe(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c===0?7:c};switch(o){case"i":case"ii":return Kt(o.length,i);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return rn(s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiii":return rn(s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiiii":return rn(s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiii":default:return rn(s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,s){return i=Pfe(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function jfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(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 Ife(e,t,n){return t&&NR(e.prototype,t),n&&NR(e,n),e}function Ffe(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}}),t&&Ex(e,t)}function Ex(e,t){return Ex=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ex(e,t)}function $fe(e){var t=zfe();return function(){var r=Fv(e),i;if(t){var o=Fv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bfe(this,i)}}function Bfe(e,t){return t&&(zm(t)==="object"||typeof t=="function")?t:Tx(e)}function Tx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zfe(){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 Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ufe=function(e){Ffe(n,e);var t=$fe(n);function n(){var r;jfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),LR(Tx(r),"priority",80),LR(Tx(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Ife(n,[{key:"parse",value:function(i,o,s){switch(o){case"a":case"aa":case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(ME(s),0,0,0),i}}]),n}(pt);function Um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Um=function(n){return typeof n}:Um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function Vfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(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 Hfe(e,t,n){return t&&DR(e.prototype,t),n&&DR(e,n),e}function Wfe(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}}),t&&Ox(e,t)}function Ox(e,t){return Ox=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ox(e,t)}function Yfe(e){var t=Gfe();return function(){var r=$v(e),i;if(t){var o=$v(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qfe(this,i)}}function qfe(e,t){return t&&(Um(t)==="object"||typeof t=="function")?t:Px(e)}function Px(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gfe(){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 $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zfe=function(e){Wfe(n,e);var t=Yfe(n);function n(){var r;Vfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),AR(Px(r),"priority",80),AR(Px(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Hfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"b":case"bb":case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(ME(s),0,0,0),i}}]),n}(pt);function Vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vm=function(n){return typeof n}:Vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vm(e)}function Kfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xfe(e,t,n){return t&&jR(e.prototype,t),n&&jR(e,n),e}function Qfe(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}}),t&&kx(e,t)}function kx(e,t){return kx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},kx(e,t)}function Jfe(e){var t=tde();return function(){var r=Bv(e),i;if(t){var o=Bv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ede(this,i)}}function ede(e,t){return t&&(Vm(t)==="object"||typeof t=="function")?t:Mx(e)}function Mx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function IR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nde=function(e){Qfe(n,e);var t=Jfe(n);function n(){var r;Kfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),IR(Mx(r),"priority",80),IR(Mx(r),"incompatibleTokens",["a","b","t","T"]),r}return Xfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(ME(s),0,0,0),i}}]),n}(pt);function Hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hm=function(n){return typeof n}:Hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hm(e)}function rde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FR(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 ide(e,t,n){return t&&FR(e.prototype,t),n&&FR(e,n),e}function ode(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}}),t&&Rx(e,t)}function Rx(e,t){return Rx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Rx(e,t)}function sde(e){var t=lde();return function(){var r=zv(e),i;if(t){var o=zv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ade(this,i)}}function ade(e,t){return t&&(Hm(t)==="object"||typeof t=="function")?t:Nx(e)}function Nx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lde(){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 zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function $R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cde=function(e){ode(n,e);var t=sde(n);function n(){var r;rde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),$R(Nx(r),"priority",70),$R(Nx(r),"incompatibleTokens",["H","K","k","t","T"]),r}return ide(n,[{key:"parse",value:function(i,o,s){switch(o){case"h":return zt(nn.hour12h,i);case"ho":return s.ordinalNumber(i,{unit:"hour"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wm=function(n){return typeof n}:Wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wm(e)}function ude(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BR(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 fde(e,t,n){return t&&BR(e.prototype,t),n&&BR(e,n),e}function dde(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}}),t&&Lx(e,t)}function Lx(e,t){return Lx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lx(e,t)}function hde(e){var t=mde();return function(){var r=Uv(e),i;if(t){var o=Uv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pde(this,i)}}function pde(e,t){return t&&(Wm(t)==="object"||typeof t=="function")?t:Dx(e)}function Dx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function zR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gde=function(e){dde(n,e);var t=hde(n);function n(){var r;ude(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),zR(Dx(r),"priority",70),zR(Dx(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return fde(n,[{key:"parse",value:function(i,o,s){switch(o){case"H":return zt(nn.hour23h,i);case"Ho":return s.ordinalNumber(i,{unit:"hour"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(pt);function Ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ym=function(n){return typeof n}:Ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ym(e)}function vde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UR(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 yde(e,t,n){return t&&UR(e.prototype,t),n&&UR(e,n),e}function _de(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}}),t&&Ax(e,t)}function Ax(e,t){return Ax=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ax(e,t)}function bde(e){var t=xde();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 wde(this,i)}}function wde(e,t){return t&&(Ym(t)==="object"||typeof t=="function")?t:jx(e)}function jx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xde(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function VR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sde=function(e){_de(n,e);var t=bde(n);function n(){var r;vde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),VR(jx(r),"priority",70),VR(jx(r),"incompatibleTokens",["h","H","k","t","T"]),r}return yde(n,[{key:"parse",value:function(i,o,s){switch(o){case"K":return zt(nn.hour11h,i);case"Ko":return s.ordinalNumber(i,{unit:"hour"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(pt);function qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qm=function(n){return typeof n}:qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qm(e)}function Cde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HR(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 Ede(e,t,n){return t&&HR(e.prototype,t),n&&HR(e,n),e}function Tde(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}}),t&&Ix(e,t)}function Ix(e,t){return Ix=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ix(e,t)}function Ode(e){var t=kde();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 Pde(this,i)}}function Pde(e,t){return t&&(qm(t)==="object"||typeof t=="function")?t:Fx(e)}function Fx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kde(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function WR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mde=function(e){Tde(n,e);var t=Ode(n);function n(){var r;Cde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),WR(Fx(r),"priority",70),WR(Fx(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Ede(n,[{key:"parse",value:function(i,o,s){switch(o){case"k":return zt(nn.hour24h,i);case"ko":return s.ordinalNumber(i,{unit:"hour"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(pt);function Gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gm=function(n){return typeof n}:Gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gm(e)}function Rde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nde(e,t,n){return t&&YR(e.prototype,t),n&&YR(e,n),e}function Lde(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}}),t&&$x(e,t)}function $x(e,t){return $x=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$x(e,t)}function Dde(e){var t=jde();return function(){var r=Wv(e),i;if(t){var o=Wv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ade(this,i)}}function Ade(e,t){return t&&(Gm(t)==="object"||typeof t=="function")?t:Bx(e)}function Bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wv(e)}function qR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ide=function(e){Lde(n,e);var t=Dde(n);function n(){var r;Rde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),qR(Bx(r),"priority",60),qR(Bx(r),"incompatibleTokens",["t","T"]),r}return Nde(n,[{key:"parse",value:function(i,o,s){switch(o){case"m":return zt(nn.minute,i);case"mo":return s.ordinalNumber(i,{unit:"minute"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(pt);function Zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zm=function(n){return typeof n}:Zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zm(e)}function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GR(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 $de(e,t,n){return t&&GR(e.prototype,t),n&&GR(e,n),e}function Bde(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}}),t&&zx(e,t)}function zx(e,t){return zx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zx(e,t)}function zde(e){var t=Vde();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 Ude(this,i)}}function Ude(e,t){return t&&(Zm(t)==="object"||typeof t=="function")?t:Ux(e)}function Ux(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vde(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}function ZR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hde=function(e){Bde(n,e);var t=zde(n);function n(){var r;Fde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),ZR(Ux(r),"priority",50),ZR(Ux(r),"incompatibleTokens",["t","T"]),r}return $de(n,[{key:"parse",value:function(i,o,s){switch(o){case"s":return zt(nn.second,i);case"so":return s.ordinalNumber(i,{unit:"second"});default:return Kt(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(pt);function Km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Km=function(n){return typeof n}:Km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Km(e)}function Wde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KR(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 Yde(e,t,n){return t&&KR(e.prototype,t),n&&KR(e,n),e}function qde(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}}),t&&Vx(e,t)}function Vx(e,t){return Vx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vx(e,t)}function Gde(e){var t=Kde();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 Zde(this,i)}}function Zde(e,t){return t&&(Km(t)==="object"||typeof t=="function")?t:Hx(e)}function Hx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kde(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},qv(e)}function XR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xde=function(e){qde(n,e);var t=Gde(n);function n(){var r;Wde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),XR(Hx(r),"priority",30),XR(Hx(r),"incompatibleTokens",["t","T"]),r}return Yde(n,[{key:"parse",value:function(i,o){var s=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return rn(Kt(o.length,i),s)}},{key:"set",value:function(i,o,s){return i.setUTCMilliseconds(s),i}}]),n}(pt);function Xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xm=function(n){return typeof n}:Xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xm(e)}function Qde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QR(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 Jde(e,t,n){return t&&QR(e.prototype,t),n&&QR(e,n),e}function ehe(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}}),t&&Wx(e,t)}function Wx(e,t){return Wx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wx(e,t)}function the(e){var t=rhe();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 nhe(this,i)}}function nhe(e,t){return t&&(Xm(t)==="object"||typeof t=="function")?t:Yx(e)}function Yx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rhe(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}function JR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ihe=function(e){ehe(n,e);var t=the(n);function n(){var r;Qde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),JR(Yx(r),"priority",10),JR(Yx(r),"incompatibleTokens",["t","T","x"]),r}return Jde(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Wi(Hi.basicOptionalMinutes,i);case"XX":return Wi(Hi.basic,i);case"XXXX":return Wi(Hi.basicOptionalSeconds,i);case"XXXXX":return Wi(Hi.extendedOptionalSeconds,i);case"XXX":default:return Wi(Hi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(pt);function Qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qm=function(n){return typeof n}:Qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qm(e)}function ohe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function she(e,t,n){return t&&eN(e.prototype,t),n&&eN(e,n),e}function ahe(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}}),t&&qx(e,t)}function qx(e,t){return qx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qx(e,t)}function lhe(e){var t=uhe();return function(){var r=Zv(e),i;if(t){var o=Zv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return che(this,i)}}function che(e,t){return t&&(Qm(t)==="object"||typeof t=="function")?t:Gx(e)}function Gx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uhe(){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 Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zv(e)}function tN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fhe=function(e){ahe(n,e);var t=lhe(n);function n(){var r;ohe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),tN(Gx(r),"priority",10),tN(Gx(r),"incompatibleTokens",["t","T","X"]),r}return she(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Wi(Hi.basicOptionalMinutes,i);case"xx":return Wi(Hi.basic,i);case"xxxx":return Wi(Hi.basicOptionalSeconds,i);case"xxxxx":return Wi(Hi.extendedOptionalSeconds,i);case"xxx":default:return Wi(Hi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),n}(pt);function Jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jm=function(n){return typeof n}:Jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jm(e)}function dhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(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 hhe(e,t,n){return t&&nN(e.prototype,t),n&&nN(e,n),e}function phe(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}}),t&&Zx(e,t)}function Zx(e,t){return Zx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zx(e,t)}function mhe(e){var t=vhe();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 ghe(this,i)}}function ghe(e,t){return t&&(Jm(t)==="object"||typeof t=="function")?t:Kx(e)}function Kx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vhe(){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:function(n){return n.__proto__||Object.getPrototypeOf(n)},Kv(e)}function rN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yhe=function(e){phe(n,e);var t=mhe(n);function n(){var r;dhe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),rN(Kx(r),"priority",40),rN(Kx(r),"incompatibleTokens","*"),r}return hhe(n,[{key:"parse",value:function(i){return b5(i)}},{key:"set",value:function(i,o,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),n}(pt);function eg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eg=function(n){return typeof n}:eg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eg(e)}function _he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bhe(e,t,n){return t&&iN(e.prototype,t),n&&iN(e,n),e}function whe(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}}),t&&Xx(e,t)}function Xx(e,t){return Xx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xx(e,t)}function xhe(e){var t=Che();return function(){var r=Xv(e),i;if(t){var o=Xv(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return She(this,i)}}function She(e,t){return t&&(eg(t)==="object"||typeof t=="function")?t:Qx(e)}function Qx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Che(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}function oN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ehe=function(e){whe(n,e);var t=xhe(n);function n(){var r;_he(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),oN(Qx(r),"priority",20),oN(Qx(r),"incompatibleTokens","*"),r}return bhe(n,[{key:"parse",value:function(i){return b5(i)}},{key:"set",value:function(i,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(pt),The={G:new Tce,y:new Lce,Y:new Bce,R:new qce,u:new eue,Q:new aue,q:new pue,M:new wue,L:new Pue,w:new jue,I:new Hue,d:new Jue,D:new sfe,E:new hfe,e:new bfe,c:new Ofe,i:new Afe,a:new Ufe,b:new Zfe,B:new nde,h:new cde,H:new gde,K:new Sde,k:new Mde,m:new Ide,s:new Hde,S:new Xde,X:new ihe,x:new fhe,t:new yhe,T:new Ehe};function tg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tg=function(n){return typeof n}:tg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tg(e)}function sN(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Ohe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Ohe(e,t){if(e){if(typeof e=="string")return aN(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 aN(e,t)}}function aN(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 Phe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,khe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mhe=/^'([^]*?)'?$/,Rhe=/''/g,Nhe=/\S/,Lhe=/[a-zA-Z]/;function T1(e,t,n,r){var i,o,s,a,l,c,f,h,p,m,v,y,x,_,w,S,T,P;Oe(3,arguments);var k=String(e),N=String(t),D=Wo(),z=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:D.locale)!==null&&i!==void 0?i:TE;if(!z.match)throw new RangeError("locale must contain match property");var A=Qe((s=(a=(l=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&l!==void 0?l:D.firstWeekContainsDate)!==null&&a!==void 0?a:(p=D.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Qe((v=(y=(x=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(w=r.locale)===null||w===void 0||(S=w.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&x!==void 0?x:D.weekStartsOn)!==null&&y!==void 0?y:(T=D.locale)===null||T===void 0||(P=T.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&v!==void 0?v:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return k===""?Me(n):new Date(NaN);var Y={firstWeekContainsDate:A,weekStartsOn:W,locale:z},J=[new vce],Z=N.match(khe).map(function(O){var R=O[0];if(R in Vw){var I=Vw[R];return I(O,z.formatLong)}return O}).join("").match(Phe),ee=[],ie=sN(Z),oe;try{var G=function(){var R=oe.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&m5(R)&&vv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&p5(R)&&vv(R,N,e);var I=R[0],X=The[I];if(X){var K=X.incompatibleTokens;if(Array.isArray(K)){var ae=ee.find(function(Le){return K.includes(Le.token)||Le.token===I});if(ae)throw new RangeError("The format string mustn't contain `".concat(ae.fullToken,"` and `").concat(R,"` at the same time"))}else if(X.incompatibleTokens==="*"&&ee.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));ee.push({token:I,fullToken:R});var ge=X.run(k,R,z.match,Y);if(!ge)return{v:new Date(NaN)};J.push(ge.setter),k=ge.rest}else{if(I.match(Lhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(R==="''"?R="'":I==="'"&&(R=Dhe(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(ie.s();!(oe=ie.n()).done;){var F=G();if(tg(F)==="object")return F.v}}catch(O){ie.e(O)}finally{ie.f()}if(k.length>0&&Nhe.test(k))return new Date(NaN);var j=J.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,I){return I.indexOf(O)===R}).map(function(O){return J.filter(function(R){return R.priority===O}).sort(function(R,I){return I.subPriority-R.subPriority})}).map(function(O){return O[0]}),B=Me(n);if(isNaN(B.getTime()))return new Date(NaN);var ne=c5(B,Fc(B)),H={},q=sN(j),te;try{for(q.s();!(te=q.n()).done;){var se=te.value;if(!se.validate(ne,Y))return new Date(NaN);var pe=se.set(ne,H,Y);Array.isArray(pe)?(ne=pe[0],OE(H,pe[1])):ne=pe}}catch(O){q.e(O)}finally{q.f()}return ne}function Dhe(e){return e.match(Mhe)[1].replace(Rhe,"'")}function Ahe(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function jhe(e,t){Oe(2,arguments);var n=Uw(e),r=Uw(t);return n.getTime()===r.getTime()}function Ihe(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()}function zc(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Me(t.start).getTime(),i=Me(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function NE(e,t){Oe(2,arguments);var n=Qe(t);return hl(e,-n)}function Ao(e,t){var n;Oe(1,arguments);var r=Qe((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=zhe(e),o;if(i.date){var s=Uhe(i.date,r);o=Vhe(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=Hhe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Whe(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(a+l+c)}var kp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Fhe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,$he=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bhe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zhe(e){var t={},n=e.split(kp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=kp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Uhe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var 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 Vhe(e,t){if(t===null)return new Date(NaN);var n=e.match(Fhe);if(!n)return new Date(NaN);var r=!!n[4],i=Fu(n[1]),o=Fu(n[2])-1,s=Fu(n[3]),a=Fu(n[4]),l=Fu(n[5])-1;if(r)return Khe(t,a,l)?Yhe(t,a,l):new Date(NaN);var c=new Date(0);return!Ghe(t,o,s)||!Zhe(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Fu(e){return e?parseInt(e):1}function Hhe(e){var t=e.match($he);if(!t)return NaN;var n=O1(t[1]),r=O1(t[2]),i=O1(t[3]);return Xhe(n,r,i)?n*b_+r*wE+i*1e3:NaN}function O1(e){return e&&parseFloat(e.replace(",","."))||0}function Whe(e){if(e==="Z")return 0;var t=e.match(Bhe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Qhe(r,i)?n*(r*b_+i*wE):NaN}function Yhe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var qhe=[31,null,31,30,31,30,31,31,30,31,30,31];function S5(e){return e%400===0||e%4===0&&e%100!==0}function Ghe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(qhe[t]||(S5(e)?29:28))}function Zhe(e,t){return t>=1&&t<=(S5(e)?366:365)}function Khe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Xhe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Qhe(e,t){return t>=0&&t<=59}function Yi(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=lce(s);return n.setMonth(r,Math.min(o,a)),n}function Tf(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setHours(r),n}function Of(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setMinutes(r),n}function Qu(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Yi(n,n.getMonth()+o*3)}function Jhe(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setSeconds(r),n}function Qv(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Cd(e,t){Oe(2,arguments);var n=Qe(t);return no(e,-n)}function epe(e,t){Oe(2,arguments);var n=Qe(t);return bE(e,-n)}function Ed(e,t){Oe(2,arguments);var n=Qe(t);return $c(e,-n)}const Pf="yyyy-MM-dd",LE="yyyy-MM-dd HH:mm",Ws=()=>new Date,DE=e=>typeof e!="string",C5=(e,t)=>!e||!DE(e)?e:t?yo(e,t):sce(e),E5=(e=Pf)=>t=>C5(t,e),Ys=e=>C5(e,void 0),Mp=E5(),Jv=E5(LE),bi=e=>DE(e)?e:Ao(e),lN=e=>e?bi(e):null,oh=(e,t,n)=>{try{return zc(bi(e),{start:bi(t??e),end:bi(n??e)})}catch{return!1}},va=(e,t)=>g5(e,t)||Gr(e,t),sh="all",T5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[sh]:void 0},O5=Object.keys(T5),P5=e=>e===void 0||Wn(Sj(Boolean,e)),ey=e=>typeof e=="string"&&O5.includes(e),tpe=O5.filter(e=>e!==sh),k5=(e,t)=>({startDate:lN(e),endDate:lN(t)}),npe=e=>{if(!(!e||P5(e)))return e.startDate&&!e.endDate?`Since ${Mp(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Mp(e.endDate)}`:`${Mp(e.startDate)} - ${Mp(e.endDate)}`},AE=e=>{if(!(!e||e===sh))return ey(e)?T5[e]:npe(e)},Yr=e=>Lr(NE(Ws(),e)),Dl=e=>({startDate:e,endDate:il(Ws())}),M5=XS([[ga("today"),()=>Dl(Lr(Ws()))],[ga("yesterday"),()=>({startDate:Yr(1),endDate:il(NE(Ws(),1))})],[ga("last7Days"),()=>Dl(Yr(7))],[ga("last30Days"),()=>Dl(Yr(30))],[ga("last90Days"),()=>Dl(Yr(90))],[ga("last180Days"),()=>Dl(Yr(180))],[ga("last365Days"),()=>Dl(Yr(365))],[gj,()=>({})]]),rpe=e=>{const t=bi(e);return XS([[()=>va(Lr(Ws()),t),()=>"today"],[()=>va(Yr(1),t),()=>"yesterday"],[()=>va(Yr(7),t),()=>"last7Days"],[()=>va(Yr(30),t),()=>"last30Days"],[()=>va(Yr(90),t),()=>"last90Days"],[()=>va(Yr(180),t),()=>"last180Days"],[()=>va(Yr(365),t),()=>"last365Days"],[gj,()=>sh]])()},ipe=e=>ey(e)?M5(e):e,ah=yn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),cN=5e3,uN=4,fN=2,ope=({currentPage:e,pagesCount:t})=>e>=t,spe=(e,t)=>t*100/e,lh=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=yn(`${e}/progressChanged`),o=yn(`${e}/large`),s=yn(`${e}/fallbackToInterval`),a=rr(e,async(l,{getState:c,dispatch:f})=>{var w;const[h,p]=t(l,c),m=async S=>Promise.all(S.map(async T=>h(T,cN).then(at("data")))).then(nZ),v=async(S,T=0)=>{if(r(c))return[];const P=await m(S[T]);return f(i(spe(S.length,T+fN))),T<S.length-1?P.concat(await v(S,T+1)):P},y=async(S=1)=>{const{pagination:T,data:P}=await h(S,cN);if(!T||ope(T))return P;const k=QS(fN,T.pagesCount+1),N=ad(uN,k);return T.pagesCount-1>uN&&f(o()),P.concat(await v(N))},[x,_]=await Promise.all([y(),p((w=l.query)==null?void 0:w.excludeBots)]);return!x.length&&_&&f(s(rpe(_.date))),{...n(l),visits:x}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},ch=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),uh=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:a,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=Yn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:ro(y)})),m.addCase(s,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),m.addCase(a,v=>({...v,loadingLarge:!0})),m.addCase(l,(v,{payload:y})=>({...v,progress:y})),m.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),m.addCase(ah,(v,{payload:y})=>{const{visits:x}=v,_=r(v,y.createdVisits).map(({visit:w})=>w);return _.length?{...v,visits:[..._,...x]}:v})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},R5="shlink/domainVisits",N5="DEFAULT",ape={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},lpe=e=>lh({typePrefix:`${R5}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getDomainVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=ch(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),cpe=e=>uh({name:R5,initialState:ape,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&Mae(s,t)&&oh(a.date,i,o))}}),ru=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),ng=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=v_();return g.jsx(ru,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:g.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},rg=({className:e="",placement:t,children:n})=>{const r=dl();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(je,{icon:fC})}),g.jsx(Er,{target:r,placement:t,children:n})]})},P1=({isLast:e,...t})=>g.jsx(ng,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),upe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,m;const[i,o]=V.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=V.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=V.useState(((m=n.redirects)==null?void 0:m.invalidShortUrlRedirect)??""),f=rh(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:b1(i),regular404Redirect:b1(s),invalidShortUrlRedirect:b1(l)}}).then(t));return g.jsx(Vo,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:f,children:[g.jsxs(io,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:n.domain})]}),g.jsxs(Mi,{children:[g.jsxs(P1,{value:i,onChange:o,children:[g.jsxs(rg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs(P1,{value:s,onChange:a,children:[g.jsxs(rg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs(P1,{value:l,isLast:!0,onChange:c,children:[g.jsx(rg,{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"]})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(ht,{color:"primary",children:"Save"})]})]})})},fpe=({domain:e,editDomainRedirects:t,selectedServer:n})=>{const[r,i]=hn(),{isDefault:o}=e,s=!o||ki("defaultDomainRedirectsEdition",n),a=ki("domainVisits",n),l=Ud(n);return g.jsxs(__,{children:[a&&g.jsxs(Ue,{tag:Lt,to:`/server/${l}/domain/${e.domain}${e.isDefault?`_${N5}`:""}/visits`,children:[g.jsx(je,{icon:uC,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{disabled:!s,onClick:s?i:void 0,children:[g.jsx(je,{fixedWidth:!0,icon:cC})," Edit redirects"]}),g.jsx(upe,{domain:e,isOpen:r,toggle:i,editDomainRedirects:t})]})},dpe=({status:e,matchMedia:t=window.matchMedia})=>{const n=dl(),r=()=>t("(max-width: 991px)").matches,[i,o]=V.useState(r());return V.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?g.jsx(je,{fixedWidth:!0,icon:Xj,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:e==="valid"?g.jsx(je,{fixedWidth:!0,icon:cd,className:"text-muted"}):g.jsx(je,{fixedWidth:!0,icon:uw,className:"text-danger"})}),g.jsx(Er,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},k1=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),hpe=()=>g.jsxs(g.Fragment,{children:[g.jsx(je,{fixedWidth:!0,icon:JX,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Er,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),ppe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r,selectedServer:i})=>{const{domain:o,isDefault:s,redirects:a,status:l}=e;return V.useEffect(()=>{n(e.domain)},[]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:s&&g.jsx(hpe,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:o}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx(k1,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(k1,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(k1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(dpe,{status:l})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(fpe,{domain:e,editDomainRedirects:t,selectedServer:i})})]})},dN=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],mpe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i,selectedServer:o})=>{var m;const{filteredDomains:s,defaultRedirects:a,loading:l,error:c,errorData:f}=t,h=a??((m=s.find(({isDefault:v})=>v))==null?void 0:m.redirects);if(V.useEffect(()=>{e()},[]),l)return g.jsx(Co,{loading:!0});const p=()=>c?g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:f,fallbackMessage:"Error loading domains :("})}):g.jsx(cn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:dN.map((v,y)=>g.jsx("th",{children:v},y))})}),g.jsxs("tbody",{children:[s.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:dN.length,className:"text-center",children:"No results found"})}),s.map(v=>g.jsx(ppe,{domain:v,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:h,selectedServer:o},v.domain))]})]})});return g.jsxs(g.Fragment,{children:[g.jsx(ih,{className:"mb-3",onChange:n}),p()]})},gpe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",vpe=e=>rr(gpe,async({domain:t,redirects:n},{getState:r})=>{const{editDomainRedirects:i}=e(r),o=await i({domain:t,...n});return{domain:t,redirects:o}}),ype=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},Rp="shlink/domainsList",Np={domains:[],filteredDomains:[],loading:!1,error:!1},hN=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},pN=(e,t)=>n=>n.domain!==e?n:{...n,status:t},_pe=(e,t)=>{const n=rr(`${Rp}/listDomains`,async(s,{getState:a})=>{const{listDomains:l}=e(a),{data:c,defaultRedirects:f}=await l();return{domains:c.map(h=>({...h,status:"validating"})),defaultRedirects:f}}),r=rr(`${Rp}/checkDomainHealth`,async(s,{getState:a})=>{const{selectedServer:l}=a();if(!JS(l))return{domain:s,status:"invalid"};try{const{url:c,...f}=l,{health:h}=e({...f,url:ype(c,s)}),{status:p}=await h();return{domain:s,status:p==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=yn(`${Rp}/filterDomains`),{reducer:o}=Yn({name:Rp,initialState:Np,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Np,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Np,error:!0,errorData:ro(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Np,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(pN(f.domain,f.status)),filteredDomains:l.map(pN(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(hN(l)),filteredDomains:a.filteredDomains.map(hN(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},bpe=(e,t)=>{e.serviceFactory("DomainSelector",()=>Pae),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>mpe),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",_pe,"buildShlinkApiClient","editDomainRedirects"),e.serviceFactory("domainsListReducer",at("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",at("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",at("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",vpe,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",at("checkDomainHealth"),"domainsListReducerCreator")},mN="shlink/mercure",wpe={loading:!0,error:!1},xpe=e=>{const t=rr(`${mN}/loadMercureInfo`,(r,{getState:i})=>{const{settings:o}=i();if(!o.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e(i).mercureInfo()}),{reducer:n}=Yn({name:mN,initialState:wpe,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}},Spe=e=>{e.serviceFactory("mercureInfoReducerCreator",xpe,"buildShlinkApiClient"),e.serviceFactory("mercureInfoReducer",at("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",at("loadMercureInfo"),"mercureInfoReducerCreator")},L5=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return g.jsxs(Vo,{centered:!0,isOpen:e,children:[g.jsxs(io,{children:["Duplicated server",i&&"s"]}),g.jsxs(Mi,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:s},a)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:s})]},a):g.jsxs(V.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:s})]})]},a))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),g.jsx(ht,{color:"primary",onClick:r,children:"Save anyway"})]})]})},D5=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=V.useState(""),[s,a]=V.useState(""),[l,c]=V.useState(""),f=rh(()=>e({name:i,url:s,apiKey:l}));return V.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[g.jsxs(cn,{className:"mb-3",title:r,children:[g.jsx(ng,{value:i,onChange:o,children:"Name"}),g.jsx(ng,{type:"url",value:s,onChange:a,children:"URL"}),g.jsx(ng,{value:l,onChange:c,children:"API key"})]}),g.jsx("div",{className:"text-end",children:n})]})},gN=4e3,vN=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Nr,{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."]})}),Cpe=(e,t)=>({servers:n,createServers:r})=>{const i=Fo(),o=na(),s=!!Object.keys(n).length,[a,l]=t(!1,gN),[c,f]=t(!1,gN),[h,p]=hn(),[m,v]=V.useState(),y=()=>{if(!m)return;const x=iE();r([{...m,id:x}]),i(`/server/${x}`)};return V.useEffect(()=>{Object.values(n).some(({url:_,apiKey:w})=>(m==null?void 0:m.url)===_&&(m==null?void 0:m.apiKey)===w)?p():y()},[m]),g.jsxs(nu,{children:[g.jsxs(D5,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!s&&g.jsx(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&g.jsx(ht,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(ht,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&g.jsx(vN,{type:"success"}),c&&g.jsx(vN,{type:"error"}),g.jsx(L5,{isOpen:h,duplicatedServers:m?[m]:[],onDiscard:o,onSave:y})]})},Epe=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=hn();return g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:n,onClick:s,children:[!r&&g.jsx(je,{fixedWidth:!0,icon:lC}),g.jsx("span",{className:i,children:r??"Remove this server"})]}),g.jsx(e,{server:t,isOpen:o,toggle:a})]})},Tpe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Fo(),s=V.useRef(!1),a=()=>{s.current=!0,t()},l=()=>{s.current&&(r(e),i&&o("/"))};return g.jsxs(Vo,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[g.jsx(io,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Mi,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",onClick:t,children:"Cancel"}),g.jsx(ht,{color:"danger",onClick:a,children:"Delete"})]})]})},Ope=e=>K6(({editServer:t,selectedServer:n,selectServer:r})=>{const i=na(),{reconnect:o}=Noe();if(!Ms(n))return null;const s=a=>{t(n.id,a),o==="true"&&r(n.id),i()};return g.jsx(nu,{children:g.jsxs(D5,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[g.jsx(ht,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),g.jsx(ht,{outline:!0,color:"primary",children:"Save"})]})})},e);const yN=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),Ppe=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=dl(),[c,f]=V.useState(),[h,p]=V.useState([]),[m,,v,y]=hn(),x=Dt(t,i),_=Dt(()=>x(c??[]),y),w=Dt(()=>x((c??[]).filter(_G(yN(h)))),y),S=async({target:T})=>{var P;return e((P=T.files)==null?void 0:P[0]).then(f).then(()=>{T.value=null}).catch(o)};return V.useEffect(()=>{if(!c)return;const T=Object.values(n),P=c.filter(yN(T)),k=!!P.length;k?p(P):x(c),k&&v()},[c]),g.jsxs(g.Fragment,{children:[g.jsxs(ht,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=l.current)==null?void 0:T.click()},children:[g.jsx(je,{icon:oQ,fixedWidth:!0})," ",r??"Import from file"]}),g.jsxs(Er,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"}),"."]}),g.jsx("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:S}),g.jsx(L5,{isOpen:m,duplicatedServers:h,onDiscard:w,onSave:_})]})};const kpe=e=>({servers:t,selectedServer:n})=>g.jsx(nu,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(Co,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ms(n)&&"Could not find this Shlink server.",Ms(n)&&g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),g.jsxs(G6,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Lt,{to:"/server/create",children:"add a new one"}),"."]}),Ms(n)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Lt,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),Mpe=4e3,Rpe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=V.useState(o),l=p=>a(o.filter(({name:m,url:v})=>`${m} ${v}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,Mpe);return V.useEffect(()=>{a(Object.values(i))},[i]),g.jsxs(nu,{children:[g.jsx(ih,{className:"mb-3",onChange:l}),g.jsxs(Qn,{className:"mb-3",children:[g.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[g.jsx(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&g.jsxs(ht,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[g.jsx(je,{icon:nI,fixedWidth:!0})," Export servers"]})]}),g.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:g.jsxs(ht,{outline:!0,color:"primary",className:"flex-fill",tag:Lt,to:"/server/create",children:[g.jsx(je,{icon:dC,fixedWidth:!0})," Add a server"]})})]}),g.jsx(cn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[c&&g.jsx("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{"aria-label":"Options"})]})}),g.jsxs("tbody",{children:[!s.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),s.map(p=>g.jsx(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&g.jsx("div",{className:"mt-3",children:g.jsx(Nr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Npe=e=>({server:t,hasAutoConnect:n})=>g.jsxs("tr",{className:"responsive-table__row",children:[n&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(je,{icon:cd,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Er,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Lt,{to:`/server/${t.id}`,children:t.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(e,{server:t})})]});var Lpe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Dpe=Lpe,Ape={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},jpe=Ape,Ipe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},A5={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]};const Fpe=e=>({server:t,setAutoConnect:n})=>{const[r,,i,o]=hn(),s=`/server/${t.id}`,{autoConnect:a}=t,l=a?rQ:Ipe;return g.jsxs(__,{minWidth:170,children:[g.jsxs(Ue,{tag:Lt,to:s,children:[g.jsx(je,{icon:tQ,fixedWidth:!0})," Connect"]}),g.jsxs(Ue,{tag:Lt,to:`${s}/edit`,children:[g.jsx(je,{icon:cC,fixedWidth:!0})," Edit server"]}),g.jsxs(Ue,{onClick:()=>n(t,!a),children:[g.jsx(je,{icon:l,fixedWidth:!0})," ",a?"Do not a":"A","uto-connect"]}),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(je,{icon:lC,fixedWidth:!0})," Remove server"]}),g.jsx(e,{redirectHome:!1,server:t,isOpen:r,toggle:o})]})};var Jx={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,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ue){c.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function ve(){}return ve.prototype=ue,new ve}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var x=h;h=function(ue,ve){var _e=ve.signal;return x(ue,{headers:ve.headers,credentials:ve.credentials,cache:ve.cache}).then(function(Te){var De=Te.body.getReader();return _e._reader=De,_e._aborted&&_e._reader.cancel(),{status:Te.status,statusText:Te.statusText,headers:Te.headers,body:{getReader:function(){return De}}}})},y=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(ue){function ve(be,ye,Ce){if(Ce===1)return be>=128>>ye&&be<<ye<=2047;if(Ce===2)return be>=2048>>ye&&be<<ye<=55295||be>=57344>>ye&&be<<ye<=65535;if(Ce===3)return be>=65536>>ye&&be<<ye<=1114111;throw new Error}function _e(be,ye){if(be===6*1)return ye>>6>15?3:ye>31?2:1;if(be===6*2)return ye>15?3:2;if(be===6*3)return 3;throw new Error}for(var Te=65533,De="",Re=this.bitsNeeded,Ne=this.codePoint,ce=0;ce<ue.length;ce+=1){var de=ue[ce];Re!==0&&(de<128||de>191||!ve(Ne<<6|de&63,Re-6,_e(Re,Ne)))&&(Re=0,Ne=Te,De+=String.fromCharCode(Ne)),Re===0?(de>=0&&de<=127?(Re=0,Ne=de):de>=192&&de<=223?(Re=6*1,Ne=de&31):de>=224&&de<=239?(Re=6*2,Ne=de&15):de>=240&&de<=247?(Re=6*3,Ne=de&7):(Re=0,Ne=Te),Re!==0&&!ve(Ne,Re,_e(Re,Ne))&&(Re=0,Ne=Te)):(Re-=6,Ne=Ne<<6|de&63),Re===0&&(Ne<=65535?De+=String.fromCharCode(Ne):(De+=String.fromCharCode(55296+(Ne-65535-1>>10)),De+=String.fromCharCode(56320+(Ne-65535-1&1023))))}return this.bitsNeeded=Re,this.codePoint=Ne,De};var w=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!w())&&(m=_);var S=function(){};function T(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=S}T.prototype.open=function(ue,ve){this._abort(!0);var _e=this,Te=this._xhr,De=1,Re=0;this._abort=function(Ce){_e._sendTimeout!==0&&(i(_e._sendTimeout),_e._sendTimeout=0),(De===1||De===2||De===3)&&(De=4,Te.onload=S,Te.onerror=S,Te.onabort=S,Te.onprogress=S,Te.onreadystatechange=S,Te.abort(),Re!==0&&(i(Re),Re=0),Ce||(_e.readyState=4,_e.onabort(null),_e.onreadystatechange())),De=0};var Ne=function(){if(De===1){var Ce=0,ke="",Ie=void 0;if("contentType"in Te)Ce=200,ke="OK",Ie=Te.contentType;else try{Ce=Te.status,ke=Te.statusText,Ie=Te.getResponseHeader("Content-Type")}catch{Ce=0,ke="",Ie=void 0}Ce!==0&&(De=2,_e.readyState=2,_e.status=Ce,_e.statusText=ke,_e._contentType=Ie,_e.onreadystatechange())}},ce=function(){if(Ne(),De===2||De===3){De=3;var Ce="";try{Ce=Te.responseText}catch{}_e.readyState=3,_e.responseText=Ce,_e.onprogress()}},de=function(Ce,ke){if((ke==null||ke.preventDefault==null)&&(ke={preventDefault:S}),ce(),De===1||De===2||De===3){if(De=4,Re!==0&&(i(Re),Re=0),_e.readyState=4,Ce==="load")_e.onload(ke);else if(Ce==="error")_e.onerror(ke);else if(Ce==="abort")_e.onabort(ke);else throw new TypeError;_e.onreadystatechange()}},be=function(Ce){Te!=null&&(Te.readyState===4?(!("onload"in Te)||!("onerror"in Te)||!("onabort"in Te))&&de(Te.responseText===""?"error":"load",Ce):Te.readyState===3?"onprogress"in Te||ce():Te.readyState===2&&Ne())},ye=function(){Re=r(function(){ye()},500),Te.readyState===3&&ce()};"onload"in Te&&(Te.onload=function(Ce){de("load",Ce)}),"onerror"in Te&&(Te.onerror=function(Ce){de("error",Ce)}),"onabort"in Te&&(Te.onabort=function(Ce){de("abort",Ce)}),"onprogress"in Te&&(Te.onprogress=ce),"onreadystatechange"in Te&&(Te.onreadystatechange=function(Ce){be(Ce)}),("contentType"in Te||!("ontimeout"in o.prototype))&&(ve+=(ve.indexOf("?")===-1?"?":"&")+"padding=true"),Te.open(ue,ve,!0),"readyState"in Te&&(Re=r(function(){ye()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(ue){return this._contentType},T.prototype.setRequestHeader=function(ue,ve){var _e=this._xhr;"setRequestHeader"in _e&&_e.setRequestHeader(ue,ve)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.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 ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var ve=this._xhr;"withCredentials"in ve&&(ve.withCredentials=this.withCredentials);try{ve.send(void 0)}catch(_e){throw _e}};function P(ue){return ue.replace(/[A-Z]/g,function(ve){return String.fromCharCode(ve.charCodeAt(0)+32)})}function k(ue){for(var ve=Object.create(null),_e=ue.split(`\r
`),Te=0;Te<_e.length;Te+=1){var De=_e[Te],Re=De.split(": "),Ne=Re.shift(),ce=Re.join(": ");ve[P(Ne)]=ce}this._map=ve}k.prototype.get=function(ue){return this._map[P(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(ue,ve,_e,Te,De,Re,Ne){ue.open("GET",De);var ce=0;ue.onprogress=function(){var be=ue.responseText,ye=be.slice(ce);ce+=ye.length,_e(ye)},ue.onerror=function(be){be.preventDefault(),Te(new Error("NetworkError"))},ue.onload=function(){Te(null)},ue.onabort=function(){Te(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var be=ue.status,ye=ue.statusText,Ce=ue.getResponseHeader("Content-Type"),ke=ue.getAllResponseHeaders();ve(be,ye,Ce,new k(ke))}},ue.withCredentials=Re;for(var de in Ne)Object.prototype.hasOwnProperty.call(Ne,de)&&ue.setRequestHeader(de,Ne[de]);return ue.send(),ue};function D(ue){this._headers=ue}D.prototype.get=function(ue){return this._headers.get(ue)};function z(){}z.prototype.open=function(ue,ve,_e,Te,De,Re,Ne){var ce=null,de=new y,be=de.signal,ye=new m;return h(De,{headers:Ne,credentials:Re?"include":"same-origin",signal:be,cache:"no-store"}).then(function(Ce){return ce=Ce.body.getReader(),ve(Ce.status,Ce.statusText,Ce.headers.get("Content-Type"),new D(Ce.headers)),new f(function(ke,Ie){var Je=function(){ce.read().then(function(et){if(et.done)ke(void 0);else{var Ge=ye.decode(et.value,{stream:!0});_e(Ge),Je()}}).catch(function(et){Ie(et)})};Je()})}).catch(function(Ce){if(Ce.name!=="AbortError")return Ce}).then(function(Ce){Te(Ce)}),{abort:function(){ce!=null&&ce.cancel(),de.abort()}}};function A(){this._listeners=Object.create(null)}function W(ue){r(function(){throw ue},0)}A.prototype.dispatchEvent=function(ue){ue.target=this;var ve=this._listeners[ue.type];if(ve!=null)for(var _e=ve.length,Te=0;Te<_e;Te+=1){var De=ve[Te];try{typeof De.handleEvent=="function"?De.handleEvent(ue):De.call(this,ue)}catch(Re){W(Re)}}},A.prototype.addEventListener=function(ue,ve){ue=String(ue);var _e=this._listeners,Te=_e[ue];Te==null&&(Te=[],_e[ue]=Te);for(var De=!1,Re=0;Re<Te.length;Re+=1)Te[Re]===ve&&(De=!0);De||Te.push(ve)},A.prototype.removeEventListener=function(ue,ve){ue=String(ue);var _e=this._listeners,Te=_e[ue];if(Te!=null){for(var De=[],Re=0;Re<Te.length;Re+=1)Te[Re]!==ve&&De.push(Te[Re]);De.length===0?delete _e[ue]:_e[ue]=De}};function Y(ue){this.type=ue,this.target=void 0}function J(ue,ve){Y.call(this,ue),this.data=ve.data,this.lastEventId=ve.lastEventId}J.prototype=Object.create(Y.prototype);function Z(ue,ve){Y.call(this,ue),this.status=ve.status,this.statusText=ve.statusText,this.headers=ve.headers}Z.prototype=Object.create(Y.prototype);function ee(ue,ve){Y.call(this,ue),this.error=ve.error}ee.prototype=Object.create(Y.prototype);var ie=-1,oe=0,G=1,F=2,j=-1,B=0,ne=1,H=2,q=3,te=/^text\/event\-stream(;.*)?$/i,se=1e3,pe=18e6,O=function(ue,ve){var _e=ue==null?ve:parseInt(ue,10);return _e!==_e&&(_e=ve),R(_e)},R=function(ue){return Math.min(Math.max(ue,se),pe)},I=function(ue,ve,_e){try{typeof ve=="function"&&ve.call(ue,_e)}catch(Te){W(Te)}};function X(ue,ve){A.call(this),ve=ve||{},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,ge(this,ue,ve)}function K(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var ae=h!=null&&p!=null&&"body"in p.prototype;function ge(ue,ve,_e){ve=String(ve);var Te=!!_e.withCredentials,De=_e.lastEventIdQueryParameterName||"lastEventId",Re=R(1e3),Ne=O(_e.heartbeatTimeout,45e3),ce="",de=Re,be=!1,ye=0,Ce=_e.headers||{},ke=_e.Transport,Ie=ae&&ke==null?void 0:new T(ke!=null?new ke:K()),Je=ke!=null&&typeof ke!="string"?new ke:Ie==null?new z:new N,et=void 0,Ge=0,Ht=ie,Ft="",wn="",ir="",Ri="",Ln=B,ou=0,Ni=0,gh=function(sn,Xt,or,Dn){if(Ht===oe)if(sn===200&&or!=null&&te.test(or)){Ht=G,be=Date.now(),de=Re,ue.readyState=G;var An=new Z("open",{status:sn,statusText:Xt,headers:Dn});ue.dispatchEvent(An),I(ue,ue.onopen,An)}else{var pn="";sn!==200?(Xt&&(Xt=Xt.replace(/\s+/g," ")),pn="EventSource's response has a status "+sn+" "+Xt+" that is not 200. Aborting the connection."):pn="EventSource's response has a Content-Type specifying an unsupported type: "+(or==null?"-":or.replace(/\s+/g," "))+". Aborting the connection.",su();var An=new Z("error",{status:sn,statusText:Xt,headers:Dn});ue.dispatchEvent(An),I(ue,ue.onerror,An),console.error(pn)}},vh=function(sn){if(Ht===G){for(var Xt=-1,or=0;or<sn.length;or+=1){var Dn=sn.charCodeAt(or);(Dn===`
`.charCodeAt(0)||Dn==="\r".charCodeAt(0))&&(Xt=or)}var An=(Xt!==-1?Ri:"")+sn.slice(0,Xt+1);Ri=(Xt===-1?Ri:"")+sn.slice(Xt+1),sn!==""&&(be=Date.now(),ye+=sn.length);for(var pn=0;pn<An.length;pn+=1){var Dn=An.charCodeAt(pn);if(Ln===j&&Dn===`
`.charCodeAt(0))Ln=B;else if(Ln===j&&(Ln=B),Dn==="\r".charCodeAt(0)||Dn===`
`.charCodeAt(0)){if(Ln!==B){Ln===ne&&(Ni=pn+1);var ai=An.slice(ou,Ni-1),li=An.slice(Ni+(Ni<pn&&An.charCodeAt(Ni)===" ".charCodeAt(0)?1:0),pn);ai==="data"?(Ft+=`
`,Ft+=li):ai==="id"?wn=li:ai==="event"?ir=li:ai==="retry"?(Re=O(li,Re),de=Re):ai==="heartbeatTimeout"&&(Ne=O(li,Ne),Ge!==0&&(i(Ge),Ge=r(function(){oa()},Ne)))}if(Ln===B){if(Ft!==""){ce=wn,ir===""&&(ir="message");var jn=new J(ir,{data:Ft.slice(1),lastEventId:wn});if(ue.dispatchEvent(jn),ir==="open"?I(ue,ue.onopen,jn):ir==="message"?I(ue,ue.onmessage,jn):ir==="error"&&I(ue,ue.onerror,jn),Ht===F)return}Ft="",ir=""}Ln=Dn==="\r".charCodeAt(0)?j:B}else Ln===B&&(ou=pn,Ln=ne),Ln===ne?Dn===":".charCodeAt(0)&&(Ni=pn+1,Ln=H):Ln===H&&(Ln=q)}}},yh=function(sn){if(Ht===G||Ht===oe){Ht=ie,Ge!==0&&(i(Ge),Ge=0),Ge=r(function(){oa()},de),de=R(Math.min(Re*16,de*2)),ue.readyState=oe;var Xt=new ee("error",{error:sn});ue.dispatchEvent(Xt),I(ue,ue.onerror,Xt),sn!=null&&console.error(sn)}},su=function(){Ht=F,et!=null&&(et.abort(),et=void 0),Ge!==0&&(i(Ge),Ge=0),ue.readyState=F},oa=function(){if(Ge=0,Ht!==ie){if(!be&&et!=null)yh(new Error("No activity within "+Ne+" milliseconds. "+(Ht===oe?"No response received.":ye+" chars received.")+" Reconnecting.")),et!=null&&(et.abort(),et=void 0);else{var sn=Math.max((be||Date.now())+Ne-Date.now(),1);be=!1,Ge=r(function(){oa()},sn)}return}be=!1,ye=0,Ge=r(function(){oa()},Ne),Ht=oe,Ft="",ir="",wn=ce,Ri="",ou=0,Ni=0,Ln=B;var Xt=ve;if(ve.slice(0,5)!=="data:"&&ve.slice(0,5)!=="blob:"&&ce!==""){var or=ve.indexOf("?");Xt=or===-1?ve:ve.slice(0,or+1)+ve.slice(or+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(li,jn){return jn===De?"":li}),Xt+=(ve.indexOf("?")===-1?"?":"&")+De+"="+encodeURIComponent(ce)}var Dn=ue.withCredentials,An={};An.Accept="text/event-stream";var pn=ue.headers;if(pn!=null)for(var ai in pn)Object.prototype.hasOwnProperty.call(pn,ai)&&(An[ai]=pn[ai]);try{et=Je.open(Ie,gh,vh,yh,Xt,Dn,An)}catch(li){throw su(),li}};ue.url=ve,ue.readyState=oe,ue.withCredentials=Te,ue.headers=Ce,ue._close=su,oa()}X.prototype=Object.create(A.prototype),X.prototype.CONNECTING=oe,X.prototype.OPEN=G,X.prototype.CLOSED=F,X.prototype.close=function(){this._close()},X.CONNECTING=oe,X.OPEN=G,X.CLOSED=F,X.prototype.withCredentials=void 0;var Le=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Le=X),function(ue){{var ve=ue(t);ve!==void 0&&(e.exports=ve)}}(function(ue){ue.EventSourcePolyfill=X,ue.NativeEventSource=l,ue.EventSource=Le})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:$l:globalThis)})(Jx,Jx.exports);var $pe=Jx.exports;const Bpe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:a}=e;if(s||a||!i)return;const l=({data:h})=>n(JSON.parse(h)),c=({status:h})=>h===401&&r(),f=t.map(h=>{const p=new URL(i);p.searchParams.append("topic",h);const m=new $pe.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>f.forEach(h=>h.close())};function ra(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=Xs();return V.useEffect(()=>{const c=m=>a?n.add(m):i([m]),f=t(r,l),h=Bpe(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return Dt(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),g.jsx(e,{...r})}}class Xr{}xe(Xr,"visits","https://shlink.io/new-visit"),xe(Xr,"orphanVisits","https://shlink.io/new-orphan-visit"),xe(Xr,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);const jE="shlink/shortUrlDeletion",_N={shortCode:"",loading:!1,deleted:!1,error:!1},zpe=e=>rr(`${jE}/deleteShortUrl`,async({shortCode:t,domain:n},{getState:r})=>{const{deleteShortUrl:i}=e(r);return await i(t,n),{shortCode:t,domain:n}}),j5=yn(`${jE}/shortUrlDeleted`),Upe=e=>{const{actions:t,reducer:n}=Yn({name:jE,initialState:_N,reducers:{resetDeleteShortUrl:()=>_N},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:ro(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},I5="shlink/shortUrlsList",F5=5,Vpe={loading:!0,error:!1},Hpe=e=>rr(`${I5}/listShortUrls`,(t,{getState:n})=>{const{listShortUrls:r}=e(n);return r(t??{})}),Wpe=(e,t,n)=>Yn({name:I5,initialState:Vpe,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,Dt((i,{payload:o})=>i.shortUrls?Tl(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,F5-1)],i):i,i=>i.shortUrls?Tl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?Tl(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return Ef(s,a,l)?o:s}),i):i),r.addCase(j5,Dt((i,{payload:o})=>i.shortUrls?Tl(["shortUrls","data"],zd(s=>Ef(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?Tl(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(ah,(i,{payload:o})=>{var s,a;return Tl(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=QG(o.createdVisits.filter(({shortUrl:f})=>f&&Ef(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),bN=10,{ceil:Ype}=Math,qpe=new Intl.NumberFormat("en-US"),_n=e=>qpe.format(Number(e)),Gpe=e=>Ype(e/bN)*bN;const Zpe=e=>e?{tag:Lt,to:e}:{},e2=({children:e,title:t,link:n,tooltip:r})=>{const i=dl();return g.jsxs(g.Fragment,{children:[g.jsxs(Sr,{innerRef:i,className:"highlight-card",body:!0,...Zpe(n),children:[n&&g.jsx(je,{size:"3x",className:"highlight-card__link-icon",icon:jpe}),g.jsx(GC,{tag:"h5",className:"highlight-card__title",children:t}),g.jsx(qC,{tag:"h2",children:e})]}),r&&g.jsx(Er,{target:i,placement:"bottom",children:r})]})},wN=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(e2,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("b",{children:_n(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":_n(t&&n.nonBots?n.nonBots:n.total)}),Kpe=(e,t)=>ra(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,selectedServer:s,loadVisitsOverview:a,visitsOverview:l,settings:{visits:c}})=>{const{loading:f,shortUrls:h}=n,{loading:p}=o,{loading:m,nonOrphanVisits:v,orphanVisits:y}=l,x=Ud(s),_=ki("nonOrphanVisits",s),w=Fo();return V.useEffect(()=>{r({itemsPerPage:F5,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),g.jsxs(g.Fragment,{children:[g.jsxs(Qn,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(wN,{title:"Visits",link:_?`/server/${x}/non-orphan-visits`:void 0,excludeBots:(c==null?void 0:c.excludeBots)??!1,loading:m,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(wN,{title:"Orphan visits",link:`/server/${x}/orphan-visits`,excludeBots:(c==null?void 0:c.excludeBots)??!1,loading:m,visitsSummary:y})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(e2,{title:"Short URLs",link:`/server/${x}/list-short-urls/1`,children:f?"Loading...":_n((h==null?void 0:h.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(e2,{title:"Tags",link:`/server/${x}/manage-tags`,children:p?"Loading...":_n(o.tags.length)})})]}),g.jsxs(Sr,{className:"mb-3",children:[g.jsxs(nl,{children:[g.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),g.jsx(Lt,{className:"float-end",to:`/server/${x}/create-short-url`,children:"Advanced options »"})]}),g.jsx(tl,{children:g.jsx(t,{basicMode:!0})})]}),g.jsxs(Sr,{children:[g.jsxs(nl,{children:[g.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),g.jsx(Lt,{className:"float-end",to:`/server/${x}/list-short-urls/1`,children:"See all »"})]}),g.jsx(tl,{children:g.jsx(e,{shortUrlsList:n,selectedServer:s,className:"mb-0",onTagClick:S=>w(`/server/${x}/list-short-urls/1?tags=${encodeURIComponent(S)}`)})})]})]})},()=>[Xr.visits,Xr.orphanVisits]),Xpe={},Qpe=e=>e.id?e:sd("id",iE(),e),Jpe=YS((e,t)=>sd(t.id,t,e),{}),{actions:eme,reducer:tme}=Yn({name:"shlink/servers",initialState:Xpe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?sd(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>KG(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?Gu(qg(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):sd(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:Dt(Bd(Qpe),Jpe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:nme,deleteServer:rme,setAutoConnect:ime,createServers:$5}=eme,ome=tme,sme=e=>Array.isArray(e)?e.filter(JS):[],ame=e=>rr("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${Ug.homepage}/servers.json`),i=sme(r);n($5(i))}),lme=({servers:e,selectedServer:t})=>{const n=Kc(e),r=()=>Wn(n)?g.jsxs(Ue,{tag:Lt,to:"/server/create",children:[g.jsx(je,{icon:dC})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:i,id:o})=>g.jsx(Ue,{tag:Lt,to:`/server/${o}`,active:Ud(t)===o,children:i},o)),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{tag:Lt,to:"/manage-servers",children:[g.jsx(je,{icon:vM})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(Jd,{nav:!0,inNavbar:!0,children:[g.jsxs(Zd,{nav:!0,caret:!0,children:[g.jsx(je,{icon:vM})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(eu,{end:!0,style:{right:0},children:r()})]})},cme="shlink-servers.csv";class ume{constructor(t,n,r){xe(this,"exportServers",async()=>{const t=Kc(this.storage.get("servers")??{}).map(jZ);try{const n=this.jsonToCsv(t);i5(this.window,n,cme)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const fme=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",dme=e=>Array.isArray(e)&&e.every(fme);class hme{constructor(t,n){xe(this,"importServersFromFile",async t=>{if(!t)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var s,a;try{const l=((a=(s=o.target)==null?void 0:s.result)==null?void 0:a.toString())??"",c=await this.csvToJson(l);if(!dme(c))throw new Error("Provided file does not have the right format.");r(c)}catch(l){i(l)}}),n.readAsText(t)})});this.csvToJson=t,this.fileReaderFactory=n}}const pme=(e,t)=>{e.serviceFactory("ManageServers",Rpe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",pv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Npe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Fpe,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",Cpe,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",pv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",Ope,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>lme),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Tpe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",Epe,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",Ppe,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",kpe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",Kpe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview","settings"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",hme,"csvToJson","fileReaderFactory"),e.service("ServersExporter",ume,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",n5,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>$5),e.serviceFactory("deleteServer",()=>rme),e.serviceFactory("editServer",()=>nme),e.serviceFactory("setAutoConnect",()=>ime),e.serviceFactory("fetchServers",ame,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>vE),e.serviceFactory("selectServerListener",uae,"selectServer","loadMercureInfo"),e.serviceFactory("selectedServerReducerCreator",fae,"selectServer"),e.serviceFactory("selectedServerReducer",at("reducer"),"selectedServerReducerCreator")},vc=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),B5=({checked:e=!1,onChange:t=GS,className:n,children:r,type:i,inline:o=!1})=>{const s=v_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return g.jsxs("span",{className:me("form-check",l,n),style:c,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),g.jsx("label",{className:"form-check-label",htmlFor:s,children:r})]})},Uc=e=>g.jsx(B5,{type:"switch",...e}),mme=e=>e?`${e}`:"",gme=({settings:{realTimeUpdates:e},toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const r=v_();return g.jsxs(cn,{title:"Real-time updates",className:"h-100",children:[g.jsx(vr,{children:g.jsxs(Uc,{checked:e.enabled,onChange:t,children:["Enable or disable real-time updates.",g.jsxs(vc,{children:["Real-time updates are currently being ",g.jsx("b",{children:e.enabled?"processed":"ignored"}),"."]})]})}),g.jsxs(ru,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:me("form-label",{"text-muted":!e.enabled}),id:r,children:[g.jsx(Ic,{type:"number",min:0,placeholder:"Immediate",disabled:!e.enabled,value:mme(e.interval),id:r,onChange:({target:i})=>n(Number(i.value))}),e.enabled&&g.jsxs(vc,{children:[e.interval!==void 0&&e.interval>0&&g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:e.interval})," minute",e.interval>1&&"s","."]}),!e.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},IE={field:"dateCreated",dir:"DESC"},vme={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:IE}},yme=(e,{payload:t})=>Pj(e,t),ya=e=>({reducer:yme,prepare:e}),_a=e=>({payload:e}),{reducer:_me,actions:bme}=Yn({name:"shlink/settings",initialState:vme,reducers:{toggleRealTimeUpdates:ya(e=>_a({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:ya(e=>_a({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:ya(e=>_a({shortUrlCreation:e})),setShortUrlsListSettings:ya(e=>_a({shortUrlsList:e})),setUiSettings:ya(e=>_a({ui:e})),setVisitsSettings:ya(e=>_a({visits:e})),setTagsSettings:ya(e=>_a({tags:e}))}}),{toggleRealTimeUpdates:wme,setRealTimeUpdatesInterval:xme,setShortUrlCreationSettings:Sme,setShortUrlsListSettings:Cme,setUiSettings:Eme,setVisitsSettings:Tme,setTagsSettings:Ome}=bme,Pme=_me;const kf=({children:e,...t})=>g.jsx(l6,{className:"nav-pills__nav-link",tag:oj,...t,children:e}),z5=({children:e,fill:t=!1,className:n=""})=>g.jsx(Sr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:g.jsx(c_,{pills:!0,fill:t,children:V.Children.map(e,r=>{if(!V.isValidElement(r)||r.type!==kf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),M1=({items:e})=>g.jsx(g.Fragment,{children:e.map((t,n)=>g.jsx("div",{className:"mb-3",children:t},n))}),kme=(e,t,n,r,i,o)=>()=>g.jsxs(nu,{children:[g.jsxs(z5,{className:"mb-3",children:[g.jsx(kf,{to:"general",children:"General"}),g.jsx(kf,{to:"short-urls",children:"Short URLs"}),g.jsx(kf,{to:"other-items",children:"Other items"})]}),g.jsxs(Zy,{children:[g.jsx(gt,{path:"general",element:g.jsx(M1,{items:[g.jsx(r,{}),g.jsx(e,{})]})}),g.jsx(gt,{path:"short-urls",element:g.jsx(M1,{items:[g.jsx(t,{}),g.jsx(n,{})]})}),g.jsx(gt,{path:"other-items",element:g.jsx(M1,{items:[g.jsx(o,{}),g.jsx(i,{})]})}),g.jsx(gt,{path:"*",element:g.jsx(BS,{replace:!0,to:"general"})})]})]}),R1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Mme=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),Rme=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return g.jsxs(cn,{title:"Short URLs form",className:"h-100",children:[g.jsx(vr,{children:g.jsxs(Uc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",g.jsxs(vc,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),g.jsx(vr,{children:g.jsxs(Uc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(vc,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),g.jsxs(ru,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(Ho,{text:R1(n.tagFilteringMode),children:[g.jsx(Ue,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:R1("startsWith")}),g.jsx(Ue,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:R1("includes")})]}),g.jsx(vc,{children:Mme(n.tagFilteringMode)})]})]})},U5={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"};function fh({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=e_(a,t.field,t.dir);n(l?a:void 0,l)};return g.jsxs(Jd,{children:[g.jsxs(Zd,{caret:!0,color:r?"primary":"link",className:me({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(eu,{end:i,className:me("w-100",{"ordering-dropdown__menu--link":!r}),children:[qg(e).map(([a,l])=>g.jsxs(Ue,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&g.jsx(je,{icon:t.dir==="ASC"?EQ:uQ,className:"ordering-dropdown__sort-icon"})]},a)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!t.field,onClick:()=>n(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const Nme=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>g.jsx(cn,{title:"Short URLs list",className:"h-100",children:g.jsx(ru,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(fh,{items:U5,order:(e==null?void 0:e.defaultOrdering)??IE,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),V5={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Lme=({settings:{tags:e},setTagsSettings:t})=>g.jsx(cn,{title:"Tags",className:"h-100",children:g.jsx(ru,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(fh,{items:V5,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const Dme=({settings:{ui:e},setUiSettings:t})=>g.jsxs(cn,{title:"User interface",className:"h-100",children:[g.jsx(je,{icon:(e==null?void 0:e.theme)==="dark"?$Q:OQ,className:"user-interface__theme-icon"}),g.jsx(Uc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),k6(r)},children:"Use dark theme."})]}),H5=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Ue,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Ue,{divider:!0}),tpe.map(r=>g.jsx(Ue,{active:e===r,onClick:()=>n(r),children:AE(r)},r))]}),Ame=({onChange:e,active:t,allText:n})=>g.jsx(Ho,{text:AE(t)??n,children:g.jsx(H5,{allText:n,active:t,onChange:e})}),xN=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},jme=({settings:e,setVisitsSettings:t})=>{var n,r;return g.jsxs(cn,{title:"Visits",className:"h-100",children:[g.jsx(vr,{children:g.jsxs(Uc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:xN(e),excludeBots:i}),children:["Exclude bots wherever possible (this options effect might depend on Shlink servers version).",g.jsxs(vc,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(ru,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(Ame,{allText:"All visits",active:xN(e),onChange:i=>t({defaultInterval:i})})})]})},Ime=(e,t)=>{e.serviceFactory("Settings",kme,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",pv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>gme),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>Rme),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Dme),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>jme),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>Lme),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>Nme),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>wme),e.serviceFactory("setRealTimeUpdatesInterval",()=>xme),e.serviceFactory("setShortUrlCreationSettings",()=>Sme),e.serviceFactory("setShortUrlsListSettings",()=>Cme),e.serviceFactory("setUiSettings",()=>Eme),e.serviceFactory("setVisitsSettings",()=>Tme),e.serviceFactory("setTagsSettings",()=>Ome)},Fme=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}),$me=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,selectedServer:o,basicMode:s=!1,settings:{shortUrlCreation:a}})=>{const l=V.useMemo(()=>Fme(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(e,{initialState:l,saving:r.saving,selectedServer:o,mode:s?"create-basic":"create",onSave:async c=>(i(),n(c))}),g.jsx(t,{creation:r,resetCreateShortUrl:i,canBeClosed:s})]})},Bme=e=>({settings:{shortUrlCreation:t},selectedServer:n,shortUrlDetail:r,getShortUrlDetail:i,shortUrlEdition:o,editShortUrl:s})=>{const{search:a}=Pn(),l=Xs(),c=na(),{loading:f,error:h,errorData:p,shortUrl:m}=r,{saving:v,saved:y,error:x,errorData:_}=o,{domain:w}=fl(a),S=V.useMemo(()=>Rae(m,t),[m,t]);return V.useEffect(()=>{l.shortCode&&i({shortCode:pm(l.shortCode),domain:w})},[]),f?g.jsx(Co,{loading:!0}):h?g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:p,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(Sr,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(ht,{color:"link",size:"lg",className:"p-0 me-3",onClick:c,children:g.jsx(je,{icon:tI})}),g.jsx("span",{className:"text-center",children:g.jsxs("small",{children:["Edit ",g.jsx(Ci,{href:(m==null?void 0:m.shortUrl)??""})]})}),g.jsx("span",{})]})})}),g.jsx(e,{initialState:S,saving:v,selectedServer:n,mode:"edit",onSave:async T=>{m&&s({...m,data:T})}}),y&&x&&g.jsx(Nr,{type:"error",className:"mt-3",children:g.jsx(Do,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),y&&!x&&g.jsx(Nr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var w_={},zme=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Ume=zme,SN={"text/plain":"Text","text/html":"Url",default:"Text"},Vme="Copy to clipboard: #{key}, Enter";function Hme(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Wme(e,t){var n,r,i,o,s,a,l=!1;t||(t={}),n=t.debug||!1;try{i=Ume(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(f){if(f.stopPropagation(),t.format)if(f.preventDefault(),typeof f.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=SN[t.format]||SN.default;window.clipboardData.setData(h,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=Hme("message"in t?t.message:Vme),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var Yme=Wme;function t2(e){return t2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t2(e)}Object.defineProperty(w_,"__esModule",{value:!0});w_.CopyToClipboard=void 0;var Lp=W5(V),qme=W5(Yme),Gme=["text","onCopy","options","children"];function W5(e){return e&&e.__esModule?e:{default:e}}function CN(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 EN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CN(Object(n),!0).forEach(function(r){FE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zme(e,t){if(e==null)return{};var n=Kme(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 Kme(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 Xme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qme(e,t,n){return t&&TN(e.prototype,t),n&&TN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n2(e,t)}function n2(e,t){return n2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},n2(e,t)}function ege(e){var t=nge();return function(){var r=ty(e),i;if(t){var o=ty(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return tge(this,i)}}function tge(e,t){if(t&&(t2(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y5(e)}function Y5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}function FE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q5=function(e){Jme(n,e);var t=ege(n);function n(){var r;Xme(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o)),FE(Y5(r),"onClick",function(a){var l=r.props,c=l.text,f=l.onCopy,h=l.children,p=l.options,m=Lp.default.Children.only(h),v=(0,qme.default)(c,p);f&&f(c,v),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(a)}),r}return Qme(n,[{key:"render",value:function(){var i=this.props;i.text,i.onCopy,i.options;var o=i.children,s=Zme(i,Gme),a=Lp.default.Children.only(o);return Lp.default.cloneElement(a,EN(EN({},s),{},{onClick:this.onClick}))}}]),n}(Lp.default.PureComponent);w_.CopyToClipboard=q5;FE(q5,"defaultProps",{onCopy:void 0,options:void 0});var rge=w_,r2=rge.CopyToClipboard;r2.CopyToClipboard=r2;var ige=r2;const G5=ri(ige);const oge=e=>({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(V.useEffect(()=>{n()},[]),s)return g.jsxs(Nr,{type:"error",className:"mt-3",children:[r&&g.jsx(je,{icon:uw,className:"float-end pointer",onClick:n}),g.jsx(Do,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return g.jsxs(Nr,{type:"success",className:"mt-3",children:[r&&g.jsx(je,{icon:uw,className:"float-end pointer",onClick:n}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:l})]}),g.jsx(G5,{text:l,onCopy:o,children:g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[g.jsx(je,{icon:A5})," Copy"]})}),g.jsx(Xd,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},N1="delete",sge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=V.useState("");V.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,m=Dt(i,t),v=rh(()=>o(e).then(t));return g.jsx(Vo,{isOpen:n,toggle:m,centered:!0,onClosed:()=>h&&s(e),children:g.jsxs("form",{onSubmit:v,children:[g.jsx(io,{toggle:m,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Mi,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:N1})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${N1}`,value:a,onChange:y=>l(y.target.value)}),f&&g.jsx(Nr,{type:DX(p)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(Do,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(ta,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:a!==N1||c,children:c?"Deleting...":"Delete"})]})]})})},Z5=({amount:e=0,loading:t=!1,...n})=>g.jsxs(ht,{...n,outline:!0,color:"primary",disabled:t,children:[g.jsx(je,{icon:GX})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",_n(e),")"]})]}),x_=()=>{const e=Fo(),{search:t}=Pn(),{serverId:n=""}=Xs(),r=V.useMemo(Dt(()=>fl(t),({orderBy:o,tags:s,excludeBots:a,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?IZ(o):void 0,p=(s==null?void 0:s.split(","))??[];return{...f,orderBy:h,tags:p,excludeBots:a!==void 0?a==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]);return[r,o=>{const s={...r,...o},{orderBy:a,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=s,m={...p,orderBy:a&&Lj(a),tags:l.length>0?l.join(","):void 0,excludeBots:w1(c),excludeMaxVisitsReached:w1(f),excludePastValidUntil:w1(h)},v=Vd(m),y=Wn(v)?"":`?${v}`;e(`/server/${n}/list-short-urls/1${y}`)}]},ON=20,age=(e,{exportShortUrls:t})=>({amount:n=0,selectedServer:r})=>{const[{tags:i,search:o,startDate:s,endDate:a,orderBy:l,tagsMode:c}]=x_(),[f,,h,p]=hn(),m=V.useCallback(async()=>{if(!Ms(r))return;const v=n/ON,{listShortUrls:y}=e(r),x=async(w=1)=>{const{data:S}=await y({page:`${w}`,tags:i,searchTerm:o,startDate:s,endDate:a,orderBy:l,tagsMode:c,itemsPerPage:ON});return w>=v?S:S.concat(await x(w+1))};h();const _=await x();t(_.map(w=>{var k;const{hostname:S,pathname:T}=new URL(w.shortUrl),P=T.substring(1);return{createdAt:w.dateCreated,domain:S,shortCode:P,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((k=w==null?void 0:w.visitsSummary)==null?void 0:k.total)??w.visitsCount}})),p()},[r]);return g.jsx(Z5,{loading:f,className:"btn-md-block",amount:n,onClick:m})};const K5=({text:e,onCopy:t})=>g.jsx(G5,{text:e,onCopy:t,children:g.jsx(je,{icon:A5,className:"ms-2 copy-to-clipboard-icon"})}),lge=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=Vd({...n,margin:t>0?t:void 0});return`${r}${Wn(i)?"":`?${i}`}`},cge=({errorCorrection:e,setErrorCorrection:t})=>g.jsxs(Ho,{text:`Error correction (${e})`,children:[g.jsxs(Ue,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ue,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ue,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ue,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),uge=({format:e,setFormat:t})=>g.jsxs(Ho,{text:`Format (${e})`,children:[g.jsx(Ue,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ue,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]});const fge=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i,selectedServer:o})=>{const[s,a]=V.useState(300),[l,c]=V.useState(0),[f,h]=V.useState("png"),[p,m]=V.useState("L"),v=ki("nonRestCors",o),y=V.useMemo(()=>lge(t,{size:s,format:f,margin:l,errorCorrection:p}),[t,s,f,l,p]),x=V.useMemo(()=>s+l,[s,l]),_=V.useMemo(()=>{if(!(x<500))return x<800?"lg":"xl"},[x]);return g.jsxs(Vo,{isOpen:i,toggle:r,centered:!0,size:_,children:[g.jsxs(io,{toggle:r,children:["QR code for ",g.jsx(Ci,{href:t,children:t})]}),g.jsxs(Mi,{children:[g.jsxs(Qn,{children:[g.jsxs(vr,{className:"d-grid col-md-4",children:[g.jsxs("label",{children:["Size: ",s,"px"]}),g.jsx("input",{type:"range",className:"form-control-range",value:s,step:10,min:50,max:1e3,onChange:w=>a(Number(w.target.value))})]}),g.jsxs(vr,{className:"d-grid col-md-4",children:[g.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),g.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:w=>c(Number(w.target.value))})]}),g.jsx(vr,{className:"d-grid col-md-4",children:g.jsx(uge,{format:f,setFormat:h})}),g.jsx(vr,{className:"col-md-6",children:g.jsx(cge,{errorCorrection:p,setErrorCorrection:m})})]}),g.jsxs("div",{className:"text-center",children:[g.jsxs("div",{className:"mb-3",children:[g.jsx(Ci,{href:y}),g.jsx(K5,{text:y})]}),g.jsx("img",{src:y,className:"qr-code-modal__img",alt:"QR code"}),v&&g.jsx("div",{className:"mt-3",children:g.jsxs(ht,{block:!0,color:"primary",onClick:()=>{e.saveImage(y,`${n}-qr-code.${f}`).catch(()=>{})},children:["Download ",g.jsx(je,{icon:nI,className:"ms-1"})]})})]})]})]})},ny=({date:e,format:t=LE,relative:n=!1})=>{const r=DE(e)?e:Ao(e);return g.jsx("time",{dateTime:`${dce(r)}000`,children:n?`${oce(Ws(),r)} ago`:yo(r,t)})},dge=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,a=(r==null?void 0:r.total)??n;return i&&a>=i?{icon:BQ,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Gr(bi(s),Ws())?{icon:yM,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:Jv(bi(s))}),"."]})}:o&&Gr(Ws(),bi(o))?{icon:yM,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:Jv(bi(o))}),"."]})}:{icon:cd,className:"text-primary",description:"This short URL can be visited normally."}},hge=({shortUrl:e})=>{const t=dl(),{icon:n,className:r,description:i}=dge(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(je,{icon:n,className:r})}),g.jsx(Er,{target:t,placement:"bottom",children:i})]})},pge=({id:e},{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`/server/${e}/short-code/${Nae(t)}/${r}${i}`},i2=({selectedServer:e,shortUrl:t,suffix:n,children:r,...i})=>!e||!Ms(e)||!t?g.jsx("span",{...i,children:r}):g.jsx(Lt,{to:pge(e,t,n),...i,children:r});const X5=({visitsCount:e,shortUrl:t,selectedServer:n,active:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=g.jsx(i2,{selectedServer:n,shortUrl:t,suffix:"visits",children:g.jsx("strong",{className:me("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:_n(e)})});if(!a)return l;const c=dl();return g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[l,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&g.jsxs(g.Fragment,{children:[" / ",_n(i)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(je,{icon:fC})})]})]}),g.jsx(Er,{target:c,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[i&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:_n(i)})," visit",i===1?"":"s","."]}),o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:Jv(bi(o))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:Jv(bi(s))}),"."]})]})})]})};const $E=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>g.jsxs("span",{className:me("badge tag",r,{"tag--light-bg":i.isColorLightForKey(e)}),style:{backgroundColor:i.getColorForKey(e),cursor:n||!o?"auto":"pointer"},onClick:o,children:[t??e,n&&g.jsx("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),mge=({tags:e,onTagClick:t,colorGenerator:n})=>Wn(e)?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(r=>g.jsx($E,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))});const gge=(e,t,n)=>({shortUrl:r,selectedServer:i,onTagClick:o,settings:s})=>{var y,x,_,w;const[a,l]=n(),[c,f]=n(!1,500),h=V.useRef(!0),[{excludeBots:p}]=x_(),{visits:m}=s,v=p??(m==null?void 0:m.excludeBots);return V.useEffect(()=>{!h.current&&f(),h.current=!1},[(y=r.visitsSummary)==null?void 0:y.total,(x=r.visitsSummary)==null?void 0:x.nonBots,r.visitsCount]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(ny,{date:r.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Ci,{href:r.shortUrl})}),g.jsx(K5,{text:r.shortUrl,onCopy:l}),g.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!a,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:g.jsx(Ci,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Ci,{href:r.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(mge,{tags:r.tags,colorGenerator:t,onTagClick:o})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(X5,{visitsCount:(v?(_=r.visitsSummary)==null?void 0:_.nonBots:(w=r.visitsSummary)==null?void 0:w.total)??r.visitsCount,shortUrl:r,selectedServer:i,active:c})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsx(hge,{shortUrl:r})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(e,{selectedServer:i,shortUrl:r})})]})},vge=(e,t)=>({shortUrl:n,selectedServer:r})=>{const[i,,o,s]=hn(),[a,,l,c]=hn();return g.jsxs(__,{minWidth:190,children:[g.jsxs(Ue,{tag:i2,selectedServer:r,shortUrl:n,suffix:"visits",children:[g.jsx(je,{icon:uC,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{tag:i2,selectedServer:r,shortUrl:n,suffix:"edit",children:[g.jsx(je,{icon:cC,fixedWidth:!0})," Edit short URL"]}),g.jsxs(Ue,{onClick:o,children:[g.jsx(je,{icon:FQ,fixedWidth:!0})," QR code"]}),g.jsx(t,{shortUrl:n,isOpen:i,toggle:s}),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:l,children:[g.jsx(je,{icon:lC,fixedWidth:!0})," Delete short URL"]}),g.jsx(e,{shortUrl:n,isOpen:a,toggle:c})]})},Q5="shlink/shortUrlCreation",PN={saving:!1,saved:!1,error:!1},yge=e=>rr(`${Q5}/createShortUrl`,(t,{getState:n})=>e(n).createShortUrl(t)),_ge=e=>{const{reducer:t,actions:n}=Yn({name:Q5,initialState:PN,reducers:{resetCreateShortUrl:()=>PN},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:ro(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},kN="shlink/shortUrlDetail",MN={loading:!1,error:!1},bge=e=>{const t=rr(`${kN}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:s}=o();return((l=s==null?void 0:s.shortUrls)==null?void 0:l.data.find(c=>Ef(c,r,i)))??await e(o).getShortUrl(r,i)}),{reducer:n}=Yn({name:kN,initialState:MN,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:ro(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...MN,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},J5="shlink/shortUrlEdition",wge={saving:!1,saved:!1,error:!1},xge=e=>rr(`${J5}/editShortUrl`,({shortCode:t,domain:n,data:r},{getState:i})=>{const{updateShortUrl:o}=e(i);return o(t,n,r)}),Sge=e=>Yn({name:J5,initialState:wge,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:ro(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}});var Cge={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"]},Ege={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"]};const e8=e=>g.jsx(B5,{type:"checkbox",...e});function Tge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o2(e,t)}function o2(e,t){return o2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},o2(e,t)}function Oge(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 RN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pge(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function kge(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Pge(e,t,n))return!0;e=e.parentNode||e.host}return e}function Mge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Rge=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function Nge(e){return e===void 0&&(e=0),function(){return++e}}var Lge=Nge(),s2,Dp={},L1={},Dge=["touchstart","touchmove"],Age="ignore-react-onclickoutside";function NN(e,t){var n=null,r=Dge.indexOf(t)!==-1;return r&&s2&&(n={passive:!e.props.preventDefault}),n}function S_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Tge(s,o);function s(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():Id.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||L1[c._uid])){typeof s2>"u"&&(s2=Rge()),L1[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),Dp[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&Mge(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;kge(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,Dp[c._uid],NN(RN(c),h))})}},c.disableOnClickOutside=function(){delete L1[c._uid];var f=Dp[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,NN(RN(c),p))}),delete Dp[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=Lge(),c}var a=s.prototype;return a.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var f=Oge(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,V.createElement(e,f)},s}(V.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Age,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var t8=V.createContext(),n8=V.createContext();function jge(e){var t=e.children,n=V.useState(null),r=n[0],i=n[1],o=V.useRef(!1);V.useEffect(function(){return function(){o.current=!0}},[]);var s=V.useCallback(function(a){o.current||i(a)},[]);return V.createElement(t8.Provider,{value:r},V.createElement(n8.Provider,{value:s},t))}var r8=function(t){return Array.isArray(t)?t[0]:t},i8=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)}},a2=function(t,n){if(typeof t=="function")return i8(t,n);t!=null&&(t.current=n)},LN=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},DN=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect,Ige=[],Fge=function(t,n,r){r===void 0&&(r={});var i=V.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ige},s=V.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=V.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,y=Object.keys(v.elements);l({styles:LN(y.map(function(x){return[x,v.styles[x]||{}]})),attributes:LN(y.map(function(x){return[x,v.attributes[x]]}))})},requires:["computeStyles"]}},[]),f=V.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return KI(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=V.useRef();return DN(function(){h.current&&h.current.setOptions(f)},[f]),DN(function(){if(!(t==null||n==null)){var p=r.createPopper||ZI,m=p(t,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[t,n,r.createPopper]),{state:h.current?h.current.state:null,styles:a.styles,attributes:a.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},$ge=function(){},Bge=function(){return Promise.resolve(null)},zge=[];function Uge(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,s=o===void 0?zge:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=V.useContext(t8),p=V.useState(null),m=p[0],v=p[1],y=V.useState(null),x=y[0],_=y[1];V.useEffect(function(){a2(c,m)},[c,m]);var w=V.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(s,[{name:"arrow",enabled:x!=null,options:{element:x}}])}},[n,i,l,s,x]),S=Fge(a||h,m,w),T=S.state,P=S.styles,k=S.forceUpdate,N=S.update,D=V.useMemo(function(){return{ref:v,style:P.popper,placement:T?T.placement:n,hasPopperEscaped:T&&T.modifiersData.hide?T.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:T&&T.modifiersData.hide?T.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:_},forceUpdate:k||$ge,update:N||Bge}},[v,_,n,T,P,N,k]);return r8(f)(D)}function Vge(e){var t=e.children,n=e.innerRef,r=V.useContext(n8),i=V.useCallback(function(o){a2(n,o),i8(r,o)},[n,r]);return V.useEffect(function(){return function(){return a2(n,null)}}),V.useEffect(function(){QI(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),r8(t)({ref:i})}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 jN(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){re(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 o8(e){return(o8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mn(e,t,n){return t&&IN(e.prototype,t),n&&IN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),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 C_(){return(C_=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}).apply(this,arguments)}function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&s8(e,t)}function l2(e){return(l2=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function s8(e,t){return(s8=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(e,t)}function le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hge(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function Nn(e){var t=function(){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}}();return function(){var n,r=l2(e);if(t){var i=l2(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hge(this,n)}}function a8(e){return function(t){if(Array.isArray(t))return D1(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return D1(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D1(t,n)}}(e)||function(){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 D1(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 FN(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"})}}function $N(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"})}}var Wge={p:$N,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return FN(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",FN(i,t)).replace("{{time}}",$N(o,t))}},Yge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function dn(e){var t=e?typeof e=="string"||e instanceof String?Ao(e):Me(e):new Date;return is(t)?t:null}function qge(e,t,n,r,i){var o=null,s=Ds(n)||Ds(Va()),a=!0;return Array.isArray(t)?(t.forEach(function(l){var c=T1(e,l,new Date,{locale:s});r&&(a=is(c,i)&&e===on(c,l,n)),is(c,i)&&a&&(o=c)}),o):(o=T1(e,t,new Date,{locale:s}),r?a=is(o)&&e===on(o,t,n):is(o)||(t=t.match(Yge).map(function(l){var c=l[0];return c==="p"||c==="P"?s?(0,Wge[c])(l,s.formatLong):c:l}).join(""),e.length>0&&(o=T1(e,t.slice(0,e.length),new Date)),is(o)||(o=new Date(e))),is(o)&&a?o:null)}function is(e,t){return t=t||new Date("1/1/1000"),a5(e)&&!Gr(e,t)}function on(e,t,n){if(n==="en")return yo(e,t,{awareOfUnicodeTokens:!0});var r=Ds(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Va()&&Ds(Va())&&(r=Ds(Va())),yo(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function A1(e,t){var n=t.dateFormat,r=t.locale;return e&&on(e,Array.isArray(n)?n[0]:n,r)||""}function BN(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second;return Tf(Of(Jhe(e,s===void 0?0:s),o),r)}function Gge(e,t){var n=t&&Ds(t)||Va()&&Ds(Va());return uce(e,n?{locale:n}:null)}function Zge(e,t){return on(e,"ddd",t)}function Kge(e){return Lr(e)}function BE(e,t,n){var r=Ds(t||Va());return s5(e,{locale:r,weekStartsOn:n})}function Ua(e){return Zae(e)}function Ju(e){return Kae(e)}function Xge(e){return Uw(e)}function l8(e,t){return e&&t?Ihe(e,t):!e&&!t}function ys(e,t){return e&&t?Ahe(e,t):!e&&!t}function ry(e,t){return e&&t?jhe(e,t):!e&&!t}function pr(e,t){return e&&t?Uae(e,t):!e&&!t}function _s(e,t){return e&&t?g5(e,t):!e&&!t}function ig(e,t,n){var r,i=Lr(t),o=il(n);try{r=zc(e,{start:i,end:o})}catch{r=!1}return r}function Va(){return(typeof window<"u"?window:globalThis).__localeId__}function Ds(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function c8(e,t){return on(Yi(dn(),e),"LLLL",t)}function u8(e,t){return on(Yi(dn(),e),"LLL",t)}function Qge(e,t){return on(Qu(dn(),e),"QQQ",t)}function E_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,s=t.includeDates,a=t.includeDateIntervals,l=t.filterDate;return T_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return pr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return zc(e,{start:f,end:h})})||s&&!s.some(function(c){return pr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return zc(e,{start:f,end:h})})||l&&!l(dn(e))||!1}function zE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,s=i.end;return zc(e,{start:o,end:s})}):n&&n.some(function(i){return pr(e,i)})||!1}function Jge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return T_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ys(e,a)})||o&&!o.some(function(a){return ys(e,a)})||s&&!s(dn(e))||!1}function eve(e,t,n,r){var i=dt(e),o=lr(e),s=dt(t),a=lr(t),l=dt(r);return i===s&&i===l?o<=n&&n<=a:i<s?l===i&&o<=n||l===s&&a>=n||l<s&&l>i:void 0}function tve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return T_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ry(e,a)})||o&&!o.some(function(a){return ry(e,a)})||s&&!s(dn(e))||!1}function nve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=new Date(e,0,1);return T_(i,{minDate:n,maxDate:r})||!1}function rve(e,t,n,r){var i=dt(e),o=zw(e),s=dt(t),a=zw(t),l=dt(r);return i===s&&i===l?o<=n&&n<=a:i<s?l===i&&o<=n||l===s&&a>=n||l<s&&l>i:void 0}function T_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&xd(e,n)<0||r&&xd(e,r)>0}function zN(e,t){return t.some(function(n){return Ei(n)===Ei(e)&&Ti(n)===Ti(e)})}function UN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&zN(e,n)||r&&!zN(e,r)||i&&!i(e)||!1}function VN(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=dn(),s=Tf(Of(o,Ti(e)),Ei(e)),a=Tf(Of(o,Ti(n)),Ei(n)),l=Tf(Of(o,Ti(r)),Ei(r));try{i=!zc(s,{start:a,end:l})}catch{i=!1}return i}function HN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Cd(e,1);return n&&Sd(n,i)>0||r&&r.every(function(o){return Sd(o,i)>0})||!1}function WN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=no(e,1);return n&&Sd(i,n)>0||r&&r.every(function(o){return Sd(i,o)>0})||!1}function YN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Ed(e,1);return n&&mv(n,i)>0||r&&r.every(function(o){return mv(o,i)>0})||!1}function qN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=$c(e,1);return n&&mv(i,n)>0||r&&r.every(function(o){return mv(i,o)>0})||!1}function f8(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return xd(i,t)>=0});return H3(r)}return n?H3(n):t}function d8(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return xd(i,t)<=0});return V3(r)}return n?V3(n):t}function GN(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r<i;r++){var o=e[r];if(xE(o)){var s=on(o,"MM.dd.yyyy"),a=n.get(s)||[];a.includes(t)||(a.push(t),n.set(s,a))}else if(o8(o)==="object"){var l=Object.keys(o),c=l[0],f=o[l[0]];if(typeof c=="string"&&f.constructor===Array)for(var h=0,p=f.length;h<p;h++){var m=on(f[h],"MM.dd.yyyy"),v=n.get(m)||[];v.includes(c)||(v.push(c),n.set(m,v))}}}return n}function ive(e,t,n,r,i){for(var o=i.length,s=[],a=0;a<o;a++){var l=Bw(Aae(e,Ei(i[a])),Ti(i[a])),c=Bw(e,(n+1)*r);Hs(l,t)&&Gr(l,c)&&s.push(i[a])}return s}function ZN(e){return e<10?"0".concat(e):"".concat(e)}function Mf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(dt(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function ove(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=dt(n)<=s),r&&a&&(a=dt(r)>=s),a&&i.push(s)}return i}var sve=S_(function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;kn(this,n),re(le(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return U.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(le(i),p),"aria-selected":l===p?"true":void 0},l===p?U.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?dt(i.props.minDate):null,h=i.props.maxDate?dt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(U.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},U.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(U.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},U.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),re(le(i),"onChange",function(l){i.props.onChange(l)}),re(le(i),"handleClickOutside",function(){i.props.onCancel()}),re(le(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),re(le(i),"incrementYears",function(){return i.shiftYears(1)}),re(le(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:ove(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=V.createRef(),i}return Mn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=me({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return U.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),ave=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),re(le(r),"renderSelectOptions",function(){for(var a=r.props.minDate?dt(r.props.minDate):1900,l=r.props.maxDate?dt(r.props.maxDate):2100,c=[],f=a;f<=l;f++)c.push(U.createElement("option",{key:f,value:f},f));return c}),re(le(r),"onSelectChange",function(a){r.onChange(a.target.value)}),re(le(r),"renderSelectMode",function(){return U.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),re(le(r),"renderReadView",function(a){return U.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},U.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),U.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),re(le(r),"renderDropdown",function(){return U.createElement(sve,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),re(le(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),re(le(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.year&&r.props.onChange(a)}),re(le(r),"toggleDropdown",function(a){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,a)})}),re(le(r),"handleYearChange",function(a,l){r.onSelect(a,l),r.setOpen()}),re(le(r),"onSelect",function(a,l){r.props.onSelect&&r.props.onSelect(a,l)}),re(le(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Mn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return U.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),lve=S_(function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(a){return r.props.month===a}),re(le(r),"renderOptions",function(){return r.props.monthNames.map(function(a,l){return U.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:a,onClick:r.onChange.bind(le(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?U.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",a)})}),re(le(r),"onChange",function(a){return r.props.onChange(a)}),re(le(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Mn(n,[{key:"render",value:function(){return U.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),cve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),re(le(r),"renderSelectOptions",function(a){return a.map(function(l,c){return U.createElement("option",{key:c,value:c},l)})}),re(le(r),"renderSelectMode",function(a){return U.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(a))}),re(le(r),"renderReadView",function(a,l){return U.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},U.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),U.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),re(le(r),"renderDropdown",function(a){return U.createElement(lve,{key:"dropdown",month:r.props.month,monthNames:a,onChange:r.onChange,onCancel:r.toggleDropdown})}),re(le(r),"renderScrollMode",function(a){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,a)];return l&&c.unshift(r.renderDropdown(a)),c}),re(le(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.month&&r.props.onChange(a)}),re(le(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Mn(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return u8(s,i.props.locale)}:function(s){return c8(s,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return U.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function uve(e,t){for(var n=[],r=Ua(e),i=Ua(t);!Hs(r,i);)n.push(dn(r)),r=no(r,1);return n}var fve=S_(function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var s=yv(o),a=l8(i.props.date,o)&&ys(i.props.date,o);return U.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:i.onChange.bind(le(i),s),"aria-selected":a?"true":void 0},a?U.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",on(o,i.props.dateFormat,i.props.locale))})}),re(le(i),"onChange",function(o){return i.props.onChange(o)}),re(le(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:uve(i.props.minDate,i.props.maxDate)},i}return Mn(n,[{key:"render",value:function(){var r=me({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return U.createElement("div",{className:r},this.renderOptions())}}]),n}()),dve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),re(le(r),"renderSelectOptions",function(){for(var a=Ua(r.props.minDate),l=Ua(r.props.maxDate),c=[];!Hs(a,l);){var f=yv(a);c.push(U.createElement("option",{key:f,value:f},on(a,r.props.dateFormat,r.props.locale))),a=no(a,1)}return c}),re(le(r),"onSelectChange",function(a){r.onChange(a.target.value)}),re(le(r),"renderSelectMode",function(){return U.createElement("select",{value:yv(Ua(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),re(le(r),"renderReadView",function(a){var l=on(r.props.date,r.props.dateFormat,r.props.locale);return U.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},U.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),U.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),re(le(r),"renderDropdown",function(){return U.createElement(fve,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),re(le(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),re(le(r),"onChange",function(a){r.toggleDropdown();var l=dn(parseInt(a));l8(r.props.date,l)&&ys(r.props.date,l)||r.props.onChange(l)}),re(le(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Mn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return U.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),hve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"dayEl",U.createRef()),re(le(r),"handleClick",function(a){!r.isDisabled()&&r.props.onClick&&r.props.onClick(a)}),re(le(r),"handleMouseEnter",function(a){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(a)}),re(le(r),"handleOnKeyDown",function(a){a.key===" "&&(a.preventDefault(),a.key="Enter"),r.props.handleOnKeyDown(a)}),re(le(r),"isSameDay",function(a){return pr(r.props.day,a)}),re(le(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),re(le(r),"isDisabled",function(){return E_(r.props.day,r.props)}),re(le(r),"isExcluded",function(){return zE(r.props.day,r.props)}),re(le(r),"getHighLightedClass",function(a){var l=r.props,c=l.day,f=l.highlightDates;if(!f)return!1;var h=on(c,"MM.dd.yyyy");return f.get(h)}),re(le(r),"isInRange",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&ig(l,c,f)}),re(le(r),"isInSelectingRange",function(){var a,l=r.props,c=l.day,f=l.selectsStart,h=l.selectsEnd,p=l.selectsRange,m=l.selectsDisabledDaysInRange,v=l.startDate,y=l.endDate,x=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return!(!(f||h||p)||!x||!m&&r.isDisabled())&&(f&&y&&(Gr(x,y)||_s(x,y))?ig(c,x,y):(h&&v&&(Hs(x,v)||_s(x,v))||!(!p||!v||y||!Hs(x,v)&&!_s(x,v)))&&ig(c,v,x))}),re(le(r),"isSelectingRangeStart",function(){var a;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.startDate,h=l.selectsStart,p=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return pr(c,h?p:f)}),re(le(r),"isSelectingRangeEnd",function(){var a;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.endDate,h=l.selectsEnd,p=(a=r.props.selectingDate)!==null&&a!==void 0?a:r.props.preSelection;return pr(c,h?p:f)}),re(le(r),"isRangeStart",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&pr(c,l)}),re(le(r),"isRangeEnd",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&pr(f,l)}),re(le(r),"isWeekend",function(){var a=ace(r.props.day);return a===0||a===6}),re(le(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===lr(r.props.day)}),re(le(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(lr(r.props.day)+1)%12===r.props.month}),re(le(r),"isCurrentDay",function(){return r.isSameDay(dn())}),re(le(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),re(le(r),"getClassNames",function(a){var l=r.props.dayClassName?r.props.dayClassName(a):void 0;return me("react-datepicker__day",l,"react-datepicker__day--"+Zge(r.props.day),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))}),re(le(r),"getAriaLabel",function(){var a=r.props,l=a.day,c=a.ariaLabelPrefixWhenEnabled,f=c===void 0?"Choose":c,h=a.ariaLabelPrefixWhenDisabled,p=h===void 0?"Not available":h,m=r.isDisabled()||r.isExcluded()?p:f;return"".concat(m," ").concat(on(l,"PPPP",r.props.locale))}),re(le(r),"getTabIndex",function(a,l){var c=a||r.props.selected,f=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&pr(f,c)?0:-1}),re(le(r),"handleFocusDay",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!a.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),re(le(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(X3(r.props.day),r.props.day):X3(r.props.day)}),re(le(r),"render",function(){return U.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return Mn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),pve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"handleClick",function(a){r.props.onClick&&r.props.onClick(a)}),r}return Mn(n,[{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,s=o===void 0?"week ":o,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick};return U.createElement("div",{className:me(a),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}]),n}(),mve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l)}),re(le(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),re(le(r),"handleWeekClick",function(a,l,c){typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(a,l,c),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),re(le(r),"formatWeekNumber",function(a){return r.props.formatWeekNumber?r.props.formatWeekNumber(a):Gge(a)}),re(le(r),"renderDays",function(){var a=BE(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(a);if(r.props.showWeekNumber){var f=r.props.onWeekSelect?r.handleWeekClick.bind(le(r),a,c):void 0;l.push(U.createElement(pve,{key:"W",weekNumber:c,onClick:f,ariaLabelPrefix:r.props.ariaLabelPrefix}))}return l.concat([0,1,2,3,4,5,6].map(function(h){var p=hl(a,h);return U.createElement(hve,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(le(r),p),onMouseEnter:r.handleDayMouseEnter.bind(le(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),r}return Mn(n,[{key:"render",value:function(){return U.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),gve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",a8(Array(12)).map(function(){return U.createRef()})),re(le(r),"isDisabled",function(a){return E_(a,r.props)}),re(le(r),"isExcluded",function(a){return zE(a,r.props)}),re(le(r),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l,r.props.orderInDisplay)}),re(le(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),re(le(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),re(le(r),"isRangeStartMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ys(Yi(c,a),f)}),re(le(r),"isRangeStartQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ry(Qu(c,a),f)}),re(le(r),"isRangeEndMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ys(Yi(c,a),h)}),re(le(r),"isRangeEndQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ry(Qu(c,a),h)}),re(le(r),"isWeekInMonth",function(a){var l=r.props.day,c=hl(a,6);return ys(a,l)||ys(c,l)}),re(le(r),"isCurrentMonth",function(a,l){return dt(a)===dt(dn())&&l===lr(dn())}),re(le(r),"isSelectedMonth",function(a,l,c){return lr(a)===l&&dt(a)===dt(c)}),re(le(r),"isSelectedQuarter",function(a,l,c){return zw(a)===l&&dt(a)===dt(c)}),re(le(r),"renderWeeks",function(){for(var a=[],l=r.props.fixedHeight,c=0,f=!1,h=BE(Ua(r.props.day),r.props.locale,r.props.calendarStartDay);a.push(U.createElement(mve,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:h,month:lr(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!f;){c++,h=bE(h,1);var p=l&&c>=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return a}),re(le(r),"onMonthClick",function(a,l){r.handleDayClick(Ua(Yi(r.props.day,l)),a)}),re(le(r),"handleMonthNavigation",function(a,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[a].current&&r.MONTH_REFS[a].current.focus())}),re(le(r),"onMonthKeyDown",function(a,l){var c=a.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(a,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,no(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Cd(r.props.preSelection,1))}}),re(le(r),"onQuarterClick",function(a,l){r.handleDayClick(Xge(Qu(r.props.day,l)),a)}),re(le(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection,x=l.monthClassName,_=x?x(c):void 0;return me("react-datepicker__month-text","react-datepicker__month-".concat(a),_,{"react-datepicker__month--disabled":(m||v)&&Jge(Yi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":lr(y)===a,"react-datepicker__month--in-range":eve(f,h,a,c),"react-datepicker__month--range-start":r.isRangeStartMonth(a),"react-datepicker__month--range-end":r.isRangeEndMonth(a),"react-datepicker__month-text--today":r.isCurrentMonth(c,a)})}),re(le(r),"getTabIndex",function(a){var l=lr(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),re(le(r),"getAriaLabel",function(a){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,v=Yi(m,a),y=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(y," ").concat(on(v,"MMMM yyyy"))}),re(le(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate;return me("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(m||v)&&tve(Qu(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":rve(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),re(le(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,m=a.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(v,y){return U.createElement("div",{className:"react-datepicker__month-wrapper",key:y},v.map(function(x,_){return U.createElement("div",{ref:r.MONTH_REFS[x],key:_,onClick:function(w){r.onMonthClick(w,x)},onKeyDown:function(w){r.onMonthKeyDown(w,x)},tabIndex:r.getTabIndex(x),className:r.getMonthClassNames(x),role:"option","aria-label":r.getAriaLabel(x),"aria-current":r.isCurrentMonth(p,x)?"date":void 0,"aria-selected":r.isSelectedMonth(p,x,m)},l?c8(x,h):u8(x,h))}))})}),re(le(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return U.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return U.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},Qge(f,r.props.locale))}))}),re(le(r),"getClassNames",function(){var a=r.props;a.day;var l=a.selectingDate,c=a.selectsStart,f=a.selectsEnd,h=a.showMonthYearPicker,p=a.showQuarterYearPicker;return me("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Mn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,a=r.ariaLabelPrefix,l=a===void 0?"month ":a;return U.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(on(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),h8=function(e){Rn(n,U.Component);var t=Nn(n);function n(){var r;kn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return re(le(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),re(le(r),"handleClick",function(a){(r.props.minTime||r.props.maxTime)&&VN(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&UN(a,r.props)||r.props.onChange(a)}),re(le(r),"isSelectedTime",function(a,l,c){return r.props.selected&&l===Ei(a)&&c===Ti(a)}),re(le(r),"liClasses",function(a,l,c){var f=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(a,l,c):void 0];return r.isSelectedTime(a,l,c)&&f.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&VN(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&UN(a,r.props))&&f.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Ei(a)+Ti(a))%r.props.intervals!=0&&f.push("react-datepicker__time-list-item--injected"),f.join(" ")}),re(le(r),"handleOnKeyDown",function(a,l){a.key===" "&&(a.preventDefault(),a.key="Enter"),a.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(a)}),re(le(r),"renderTimes",function(){for(var a=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,f=Kge(dn(r.props.selected)),h=1440/c,p=r.props.injectTimes&&r.props.injectTimes.sort(function(T,P){return T-P}),m=r.props.selected||r.props.openToDate||dn(),v=Ei(m),y=Ti(m),x=Tf(Of(f,y),v),_=0;_<h;_++){var w=Bw(f,_*c);if(a.push(w),p){var S=ive(f,w,_,c,p);a=a.concat(S)}}return a.map(function(T,P){return U.createElement("li",{key:P,onClick:r.handleClick.bind(le(r),T),className:r.liClasses(T,v,y),ref:function(k){(Gr(T,x)||_s(T,x))&&(r.centerLi=k)},onKeyDown:function(k){r.handleOnKeyDown(k,T)},tabIndex:"0","aria-selected":r.isSelectedTime(T,v,y)?"true":void 0},on(T,l,r.props.locale))})}),r}return Mn(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return U.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},U.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},U.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),U.createElement("div",{className:"react-datepicker__time"},U.createElement("div",{className:"react-datepicker__time-box"},U.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();re(h8,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var vve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"YEAR_REFS",a8(Array(i.props.yearItemNumber)).map(function(){return U.createRef()})),re(le(i),"isDisabled",function(o){return E_(o,i.props)}),re(le(i),"isExcluded",function(o){return zE(o,i.props)}),re(le(i),"updateFocusOnPaginate",function(o){var s=function(){this.YEAR_REFS[o].current.focus()}.bind(le(i));window.requestAnimationFrame(s)}),re(le(i),"handleYearClick",function(o,s){i.props.onDayClick&&i.props.onDayClick(o,s)}),re(le(i),"handleYearNavigation",function(o,s){var a=i.props,l=a.date,c=a.yearItemNumber,f=Mf(l,c).startPeriod;i.isDisabled(s)||i.isExcluded(s)||(i.props.setPreSelection(s),o-f==-1?i.updateFocusOnPaginate(c-1):o-f===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-f].current.focus())}),re(le(i),"isSameDay",function(o,s){return pr(o,s)}),re(le(i),"isCurrentYear",function(o){return o===dt(dn())}),re(le(i),"isKeyboardSelected",function(o){var s=Ju(Qv(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!pr(s,Ju(i.props.selected))&&pr(s,Ju(i.props.preSelection))}),re(le(i),"onYearClick",function(o,s){var a=i.props.date;i.handleYearClick(Ju(Qv(a,s)),o)}),re(le(i),"onYearKeyDown",function(o,s){var a=o.key;if(!i.props.disabledKeyboardNavigation)switch(a){case"Enter":i.onYearClick(o,s),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(s+1,$c(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(s-1,Ed(i.props.preSelection,1))}}),re(le(i),"getYearClassNames",function(o){var s=i.props,a=s.minDate,l=s.maxDate,c=s.selected;return me("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===dt(c),"react-datepicker__year-text--disabled":(a||l)&&nve(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),re(le(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===dt(i.props.preSelection)?"0":"-1"}),i}return Mn(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,s=Mf(o.date,o.yearItemNumber),a=s.startPeriod,l=s.endPeriod,c=function(h){i.push(U.createElement("div",{ref:r.YEAR_REFS[h-a],onClick:function(p){r.onYearClick(p,h)},onKeyDown:function(p){r.onYearKeyDown(p,h)},tabIndex:r.getYearTabIndex(h),className:r.getYearClassNames(h),key:h,"aria-current":r.isCurrentYear(h)?"date":void 0},h))},f=a;f<=l;f++)c(f);return U.createElement("div",{className:"react-datepicker__year"},U.createElement("div",{className:"react-datepicker__year-wrapper"},i))}}]),n}(),yve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"onTimeChange",function(o){i.setState({time:o});var s=new Date;s.setHours(o.split(":")[0]),s.setMinutes(o.split(":")[1]),i.props.onChange(s)}),re(le(i),"renderTimeInput",function(){var o=i.state.time,s=i.props,a=s.date,l=s.timeString,c=s.customTimeInput;return c?U.cloneElement(c,{date:a,value:o,onChange:i.onTimeChange}):U.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(f){i.onTimeChange(f.target.value||l)}})}),i.state={time:i.props.timeString},i}return Mn(n,[{key:"render",value:function(){return U.createElement("div",{className:"react-datepicker__input-time-container"},U.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),U.createElement("div",{className:"react-datepicker-time__input-container"},U.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n}();function _ve(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return U.createElement("div",{className:t},r&&U.createElement("div",C_({className:"react-datepicker__triangle"},o)),n)}var bve=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],wve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),re(le(i),"setClickOutsideRef",function(){return i.containerRef.current}),re(le(i),"handleDropdownFocus",function(o){(function(){var s=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return bve.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),re(le(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=f8(i.props),f=d8(i.props),h=dn(),p=l||a||s;return p||(c&&Gr(h,c)?c:f&&Hs(h,f)?f:h)}),re(le(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:no(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),re(le(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:Cd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),re(le(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(le(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),re(le(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),re(le(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(le(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(le(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),re(le(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:Qv(a,o)}},function(){return i.handleYearChange(i.state.date)})}),re(le(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:Yi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),re(le(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:Qv(Yi(a,lr(o)),dt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),re(le(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=BE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(U.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(l){var c=hl(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return U.createElement("div",{key:l,className:me("react-datepicker__day-name",h)},f)}))}),re(le(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(a,l,c){return l(on(a,"EEEE",c))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(a,l){return on(a,"EEE",l)}(o,s):function(a,l){return on(a,"EEEEEE",l)}(o,s)}),re(le(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:Ed(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),re(le(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=YN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.minDate,T=w.yearItemNumber,P=T===void 0?12:T,k=Mf(Ju(Ed(_,P)),P).endPeriod,N=S&&dt(S);return N&&N>k||!1}(i.state.date,i.props);break;default:o=HN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Previous Month":m,y=p.previousYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Previous Year":y;return U.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},U.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),re(le(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:$c(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),re(le(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=qN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.maxDate,T=w.yearItemNumber,P=T===void 0?12:T,k=Mf($c(_,P),P).startPeriod,N=S&&dt(S);return N&&N<k||!1}(i.state.date,i.props);break;default:o=WN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var a=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.nextMonthButtonLabel,h=c.nextYearButtonLabel,p=i.props,m=p.nextMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Next Month":m,y=p.nextYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Next Year":y;return U.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},U.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),re(le(i),"renderCurrentMonth",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),U.createElement("div",{className:s.join(" ")},on(o,i.props.dateFormat,i.props.locale))}),re(le(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return U.createElement(ave,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:dt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),re(le(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return U.createElement(cve,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:lr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),re(le(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return U.createElement(dve,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),re(le(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return U.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Lr(dn()),o)}},i.props.todayButton)}),re(le(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return U.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),U.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(a!==0),i.renderMonthYearDropdown(a!==0),i.renderYearDropdown(a!==0)),U.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),re(le(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,a=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=HN(i.state.date,i.props),c=WN(i.state.date,i.props),f=YN(i.state.date,i.props),h=qN(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return U.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(jN(jN({},i.state),{},{customHeaderCount:a,monthDate:s,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&U.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),re(le(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=Mf(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return U.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):dt(o))}),re(le(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),re(le(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=Cd(i.state.date,s),l=0;l<i.props.monthsShown;++l){var c=l-i.props.monthSelectedIn,f=no(a,c),h="month-".concat(l),p=l<i.props.monthsShown-1,m=l>0;o.push(U.createElement("div",{key:h,ref:function(v){i.monthContainer=v},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),U.createElement(gve,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),re(le(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?U.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),U.createElement(vve,C_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),re(le(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return U.createElement(h8,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),re(le(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=is(o)&&i.props.selected?"".concat(ZN(o.getHours()),":").concat(ZN(o.getMinutes())):"";if(i.props.showTimeInput)return U.createElement(yve,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=U.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return Mn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!pr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!pr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||_ve;return U.createElement("div",{ref:this.containerRef},U.createElement(r,{className:me("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),p8=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Mn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return $a.createPortal(this.props.children,this.el)}}]),n}(),xve=function(e){return!e.disabled&&e.tabIndex!==-1},Sve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(xve)}),re(le(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),re(le(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=U.createRef(),i}return Mn(n,[{key:"render",value:function(){return this.props.enableTabLoop?U.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},U.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,U.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),Cve=function(e){Rn(n,U.Component);var t=Nn(n);function n(){return kn(this,n),t.apply(this,arguments)}return Mn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,a=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,x=i.portalHost;if(!a){var _=me("react-datepicker-popper",o);r=U.createElement(Uge,C_({modifiers:c,placement:f},h),function(S){var T=S.ref,P=S.style,k=S.placement,N=S.arrowProps;return U.createElement(Sve,{enableTabLoop:m},U.createElement("div",{ref:T,style:P,className:_,"data-placement":k,onKeyDown:v},U.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=U.createElement(this.props.popperContainer,{},r)),y&&!a&&(r=U.createElement(p8,{portalId:y,portalHost:x},r));var w=me("react-datepicker-wrapper",s);return U.createElement(jge,{className:"react-datepicker-manager"},U.createElement(Vge,null,function(S){var T=S.ref;return U.createElement("div",{ref:T,className:w},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),Eve=S_(wve),Tve=function(e){Rn(n,U.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(le(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:dn()}),re(le(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=f8(i.props),l=d8(i.props),c=a&&Gr(s,Lr(a))?a:l&&Hs(s,il(l))?l:s;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:GN(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),re(le(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),re(le(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),re(le(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),re(le(i),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:j1},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),re(le(i),"inputOk",function(){return xE(i.state.preSelection)}),re(le(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),re(le(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),re(le(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),re(le(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),re(le(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),re(le(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),re(le(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),re(le(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=s[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(le(i),s),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:Ove});var c=qge(l.target.value,i.props.dateFormat,i.props.locale,i.props.strictParsing,i.props.minDate);!c&&l.target.value||i.setSelected(c,l,!0)}}),re(le(i),"handleSelect",function(o,s,a){if(i.setState({preventFocus:!0},function(){return i.preventFocusTimeout=setTimeout(function(){return i.setState({preventFocus:!1})},50),i.preventFocusTimeout}),i.props.onChangeRaw&&i.props.onChangeRaw(s),i.setSelected(o,s,!1,a),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,f=l.endDate;!c||f||Gr(o,c)||i.setOpen(!1)}}),re(le(i),"setSelected",function(o,s,a,l){var c=o;if(c===null||!E_(c,i.props)){var f=i.props,h=f.onChange,p=f.selectsRange,m=f.startDate,v=f.endDate;if(!_s(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||a&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=BN(c,{hour:Ei(i.props.selected),minute:Ti(i.props.selected),second:fce(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var y=m&&!v,x=m&&v;!m&&!v?h([c,null],s):y&&(Gr(c,m)?h([c,null],s):h([m,c],s)),x&&h([c,null],s)}else h(c,s);a||(i.props.onSelect(c,s),i.setState({inputValue:null}))}}),re(le(i),"setPreSelection",function(o){var s=i.props.minDate!==void 0,a=i.props.maxDate!==void 0,l=!0;if(o){var c=Lr(o);if(s&&a)l=ig(o,i.props.minDate,i.props.maxDate);else if(s){var f=Lr(i.props.minDate);l=Hs(o,f)||_s(c,f)}else if(a){var h=il(i.props.maxDate);l=Gr(o,h)||_s(c,h)}}l&&i.setState({preSelection:o})}),re(le(i),"handleTimeChange",function(o){var s=BN(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Ei(o),minute:Ti(o)});i.setState({preSelection:s}),i.props.onChange(s),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),i.setState({inputValue:null})}),re(le(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),re(le(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var s=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(s==="ArrowDown"||s==="ArrowUp"){o.preventDefault();var a=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(a&&a.focus({preventScroll:!0}))}var l=dn(i.state.preSelection);s==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===j1?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):s==="Escape"&&(o.preventDefault(),i.setOpen(!1)),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."})}}else s!=="ArrowDown"&&s!=="ArrowUp"&&s!=="Enter"||i.onInputClick()}),re(le(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var s=o.key,a=dn(i.state.preSelection);if(s==="Enter")o.preventDefault(),i.handleSelect(a,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(a);else if(s==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."});else if(!i.props.disabledKeyboardNavigation){var l;switch(s){case"ArrowLeft":l=NE(a,1);break;case"ArrowRight":l=hl(a,1);break;case"ArrowUp":l=epe(a,1);break;case"ArrowDown":l=bE(a,1);break;case"PageUp":l=Cd(a,1);break;case"PageDown":l=no(a,1);break;case"Home":l=Ed(a,1);break;case"End":l=$c(a,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:"Date input not valid."}));if(o.preventDefault(),i.setState({lastPreSelectChange:j1}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=lr(a),f=lr(l),h=dt(a),p=dt(l);c!==f||h!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),re(le(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),re(le(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),re(le(i),"clear",function(){i.onClearClick()}),re(le(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),re(le(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?U.createElement(Eve,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),re(le(i),"renderDateInput",function(){var o,s=me(i.props.className,re({},"react-datepicker-ignore-onclickoutside",i.state.open)),a=i.props.customInput||U.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(f,h,p){if(!f)return"";var m=A1(f,p),v=h?A1(h,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):A1(i.props.selected,i.props);return U.cloneElement(a,(re(o={},l,function(f){i.input=f}),re(o,"value",c),re(o,"onBlur",i.handleBlur),re(o,"onChange",i.handleChange),re(o,"onClick",i.onInputClick),re(o,"onFocus",i.handleFocus),re(o,"onKeyDown",i.onInputKeyDown),re(o,"id",i.props.id),re(o,"name",i.props.name),re(o,"autoFocus",i.props.autoFocus),re(o,"placeholder",i.props.placeholderText),re(o,"disabled",i.props.disabled),re(o,"autoComplete",i.props.autoComplete),re(o,"className",me(a.props.className,s)),re(o,"title",i.props.title),re(o,"readOnly",i.props.readOnly),re(o,"required",i.props.required),re(o,"tabIndex",i.props.tabIndex),re(o,"aria-describedby",i.props.ariaDescribedBy),re(o,"aria-invalid",i.props.ariaInvalid),re(o,"aria-labelledby",i.props.ariaLabelledBy),re(o,"aria-required",i.props.ariaRequired),o))}),re(le(i),"renderClearButton",function(){var o=i.props,s=o.isClearable,a=o.selected,l=o.startDate,c=o.endDate,f=o.clearButtonTitle,h=o.clearButtonClassName,p=h===void 0?"":h,m=o.ariaLabelClose,v=m===void 0?"Close":m;return!s||a==null&&l==null&&c==null?null:U.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":v,onClick:i.onClearClick,title:f,tabIndex:-1})}),i.state=i.calcInitialState(),i}return Mn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,s;r.inline&&(o=r.selected,s=this.props.selected,o&&s?lr(o)!==lr(s)||dt(o)!==dt(s):o!==s)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:GN(this.props.highlightDates)}),i.focused||_s(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return U.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?U.createElement("div",{className:"react-datepicker__portal"},r):null;return this.state.open&&this.props.portalId&&(i=U.createElement(p8,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),U.createElement("div",null,this.renderInputContainer(),i)}return U.createElement(Cve,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,renderDayContents:function(r){return r},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),Ove="input",j1="navigate";const c2=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||$o(r),s=V.useRef();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Tve,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??Pf,className:me("icon-input-container__input form-control",t),ref:s}),o&&g.jsx(je,{icon:Dpe,className:"icon-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},Pve=e=>g.jsx(c2,{...e,dateFormat:LE,showTimeSelect:!0,timeIntervals:10});const kve=({icon:e,className:t,...n})=>{const r=dl(),i=me("icon-input-container__input",t);return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Ic,{className:i,innerRef:r,...n}),g.jsx(je,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})},I1=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("p",{children:[g.jsx(e8,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&g.jsx(rg,{placement:"right",children:t})]});const Mve=({isOpen:e,toggle:t})=>g.jsxs(Vo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(io,{toggle:t,children:"Info"}),g.jsxs(Mi,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),g.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),Rve=()=>{const[e,t]=hn();return g.jsxs(g.Fragment,{children:[g.jsx("span",{title:"What does this mean?",children:g.jsx(je,{icon:fC,style:{cursor:"pointer"},onClick:t})}),g.jsx(Mve,{isOpen:e,toggle:t})]})};const Nve=Dt(LZ,SZ(/ /g,"-")),F1=e=>typeof e=="string"?Ao(e):e,Lve=(e,t)=>({mode:n,saving:r,onSave:i,initialState:o,selectedServer:s})=>{const[a,l]=V.useState(o),c=()=>l(o),f=ki("deviceLongUrls",s),h=n==="edit",p=n==="create-basic",m=P=>l({...a,tags:P.map(Nve)}),v=(P,k)=>vi(P)?P:vi(k)?null:void 0,y=rh(async()=>i({...a,validSince:Ys(a.validSince)??null,validUntil:Ys(a.validUntil)??null,maxVisits:vi(a.maxVisits)?Number(a.maxVisits):null}).then(()=>!h&&c()).catch(()=>{}));V.useEffect(()=>{l(o)},[o]);const x=(P,k,N="text",D={},z={})=>g.jsx(vr,{...z,children:g.jsx(Ic,{id:P,type:N,placeholder:k,value:a[P]??"",onChange:D.onChange??(A=>l({...a,[P]:A.target.value})),...D})}),_=(P,k,N)=>{var D;return g.jsx(kve,{icon:N,id:P,type:"url",placeholder:k,value:((D=a.deviceLongUrls)==null?void 0:D[P])??"",onChange:z=>{var A;return l({...a,deviceLongUrls:{...a.deviceLongUrls??{},[P]:v(z.target.value,(A=o.deviceLongUrls)==null?void 0:A[P])}})}})},w=(P,k,N={})=>g.jsx(Pve,{selected:a[P]?F1(a[P]):null,placeholderText:k,isClearable:!0,onChange:D=>l({...a,[P]:D}),...N}),S=g.jsxs(g.Fragment,{children:[g.jsx(vr,{children:g.jsx(Ic,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:P=>l({...a,longUrl:P.target.value})})}),g.jsxs(Qn,{children:[p&&x("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),g.jsx("div",{className:p?"col-lg-6 mb-3":"col-12",children:g.jsx(e,{selectedTags:a.tags??[],onChange:m})})]})]}),T=ki("forwardQuery",s);return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:y,children:[p&&S,!p&&g.jsxs(g.Fragment,{children:[g.jsxs(Qn,{children:[g.jsx("div",{className:me("mb-3",{"col-sm-6":f,"col-12":!f}),children:g.jsx(cn,{title:"Main options",className:"mb-3",children:S})}),f&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Device-specific long URLs",children:[g.jsx(vr,{children:_("android","Android-specific redirection",Ege)}),g.jsx(vr,{children:_("ios","iOS-specific redirection",Cge)}),_("desktop","Desktop-specific redirection",zQ)]})})]}),g.jsxs(Qn,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Customize the short URL",children:[x("title","Title","text",{onChange:({target:P})=>l({...a,title:v(P.value,o.title)})}),!h&&g.jsxs(g.Fragment,{children:[g.jsxs(Qn,{children:[g.jsx("div",{className:"col-lg-6",children:x("customSlug","Custom slug","text",{disabled:vi(a.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:x("shortCodeLength","Short code length","number",{min:4,disabled:vi(a.customSlug)})})]}),g.jsx(t,{value:a.domain,onChange:P=>l({...a,domain:P})})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Limit access to the short URL",children:[x("maxVisits","Maximum number of visits allowed","number",{min:1}),g.jsx("div",{className:"mb-3",children:w("validSince","Enabled since...",{maxDate:a.validUntil?F1(a.validUntil):void 0})}),w("validUntil","Enabled until...",{minDate:a.validSince?F1(a.validSince):void 0})]})})]}),g.jsxs(Qn,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Extra checks",children:[g.jsx(I1,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:a.validateUrl,onChange:P=>l({...a,validateUrl:P}),children:"Validate URL"}),!h&&g.jsxs("p",{children:[g.jsx(e8,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:P=>l({...a,findIfExists:P}),children:"Use existing URL if found"}),g.jsx(Rve,{})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(cn,{title:"Configure behavior",children:[g.jsx(I1,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:a.crawlable,onChange:P=>l({...a,crawlable:P}),children:"Make it crawlable"}),T&&g.jsx(I1,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:a.forwardQuery,onChange:P=>l({...a,forwardQuery:P}),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(ht,{outline:!0,color:"primary",disabled:r||Wn(a.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},Dve=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(c2,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{className:"col-md-6",children:g.jsx(c2,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&il(o))})})]}),m8=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=ey(t),[s,a]=V.useState(o?t:void 0),[l,c]=V.useState(o?void 0:t),f=p=>{a(P5(p)?sh:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(M5(p))};return i&&Roe(()=>{const p=ey(t);p&&h(t),t&&!p&&f(t)},[t]),g.jsxs(Ho,{disabled:r,text:AE(s??l)??n,children:[g.jsx(H5,{allText:n,active:s,onChange:h}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Custom:"}),g.jsx(Ue,{text:!0,children:g.jsx(Dve,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},Ave=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1}=t,a=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return g.jsxs(Ho,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,children:"Visits:"}),g.jsx(Ue,{active:i,onClick:a("excludeBots"),children:"Ignore visits from bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Short URLs:"}),g.jsx(Ue,{active:o,onClick:a("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ue,{active:s,onClick:a("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:g.jsx("i",{children:"Clear filters"})})]})};const jve=(e,t)=>({selectedServer:n,className:r,shortUrlsAmount:i,order:o,handleOrderBy:s,settings:a})=>{var D;const[l,c]=x_(),{search:f,tags:h,startDate:p,endDate:m,excludeBots:v,excludeMaxVisitsReached:y,excludePastValidUntil:x,tagsMode:_="any"}=l,w=ki("filterDisabledUrls",n),S=Dt(({startDate:z,endDate:A})=>({startDate:Ys(z)??void 0,endDate:Ys(A)??void 0}),c),T=Dt(z=>Wn(z)?void 0:z,z=>c({search:z})),P=z=>c({tags:z}),k=ki("allTagsFiltering",n),N=Dt(()=>_==="any"?"all":"any",z=>c({tagsMode:z}));return g.jsxs("div",{className:me("short-urls-filtering-bar-container",r),children:[g.jsx(ih,{initialValue:f,onChange:T}),g.jsxs(Qd,{className:"mt-3",children:[g.jsx(t,{allowNew:!1,placeholder:"With tags...",selectedTags:h,onChange:P}),k&&h.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(ht,{outline:!0,color:"secondary",onClick:N,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(je,{className:"short-urls-filtering-bar__tags-icon",icon:_==="all"?eI:mQ})}),g.jsx(Er,{target:"tagsModeBtn",placement:"left",children:_==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(Qn,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(m8,{defaultText:"All short URLs",initialDateRange:k5(p,m),onDatesChange:S})}),g.jsx(Ave,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??((D=a.visits)==null?void 0:D.excludeBots),excludeMaxVisitsReached:y,excludePastValidUntil:x},onChange:c,supportsDisabledFiltering:w})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(e,{amount:i})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(fh,{prefixed:!1,items:U5,order:o,onChange:s})})]})]})};function Rf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(je,{icon:e.dir==="ASC"?aQ:_Q,className:n})}const Al=2,u2="...",g8=(e,t)=>{const n=QS(vj(Al,e-Al),kj(t-1,e+Al)+1);return e-Al>Al&&n.unshift(u2),e+Al<t-1&&n.push(u2),n.unshift(1),n.push(t),n},Td=e=>e===u2,v8=e=>Td(e)?e:_n(e),y8=(e,t)=>Td(e)?`${e}_${t}`:`${e}`,Ive=({paginator:e,serverId:t,currentQueryString:n=""})=>{const{currentPage:r=0,pagesCount:i=0}=e??{},o=a=>`/server/${t}/list-short-urls/${a}${n}`;if(i<=1)return g.jsx("div",{className:"pb-3"});const s=()=>g8(r,i).map((a,l)=>g.jsx(Rs,{disabled:Td(a),active:r===a,children:g.jsx(Ns,{tag:Lt,to:o(a),children:v8(a)})},y8(a,l)));return g.jsxs(g_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(Rs,{disabled:r===1,children:g.jsx(Ns,{previous:!0,tag:Lt,to:o(r-1)})}),s(),g.jsx(Rs,{disabled:r>=i,children:g.jsx(Ns,{next:!0,tag:Lt,to:o(r+1)})})]})},Fve=(e,t)=>ra(({listShortUrls:n,shortUrlsList:r,selectedServer:i,settings:o})=>{var Z,ee,ie;const s=Ud(i),{page:a}=Xs(),l=Pn(),[c,f]=x_(),{tags:h,search:p,startDate:m,endDate:v,orderBy:y,tagsMode:x,excludeBots:_,excludePastValidUntil:w,excludeMaxVisitsReached:S}=c,[T,P]=V.useState(y??((Z=o.shortUrlsList)==null?void 0:Z.defaultOrdering)??IE),{pagination:k}=(r==null?void 0:r.shortUrls)??{},N=_??((ee=o.visits)==null?void 0:ee.excludeBots),D=ki("excludeBotsOnShortUrls",i),z=(oe,G)=>{f({orderBy:{field:oe,dir:G}}),P({field:oe,dir:G})},A=oe=>()=>z(oe,e_(oe,T.field,T.dir)),W=oe=>g.jsx(Rf,{currentOrder:T,field:oe}),Y=Dt(oe=>[...new Set([...h,oe])],oe=>f({tags:oe})),J=({field:oe,dir:G})=>D&&N&&oe==="visits"?{field:"nonBotVisits",dir:G}:{field:oe,dir:G};return V.useEffect(()=>{n({page:a,searchTerm:p,tags:h,startDate:m,endDate:v,orderBy:J(T),tagsMode:x,excludePastValidUntil:w,excludeMaxVisitsReached:S})},[a,p,h,m,v,T.field,T.dir,x,w,S]),g.jsxs(g.Fragment,{children:[g.jsx(t,{selectedServer:i,shortUrlsAmount:(ie=r.shortUrls)==null?void 0:ie.pagination.totalItems,order:T,handleOrderBy:z,settings:o,className:"mb-3"}),g.jsxs(Sr,{body:!0,className:"pb-0",children:[g.jsx(e,{selectedServer:i,shortUrlsList:r,orderByColumn:A,renderOrderIcon:W,onTagClick:Y}),g.jsx(Ive,{paginator:k,serverId:s,currentQueryString:l.search})]})]})},()=>[Xr.visits]);const $ve=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,selectedServer:o,className:s})=>{const{error:a,loading:l,shortUrls:c}=r,f=me({"short-urls-table__header-cell--with-action":!!t}),h=me("short-urls-table__header-cell",f),p=me("table table-hover responsive-table short-urls-table",s),m=()=>a?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&Wn(c==null?void 0:c.data)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(v=>g.jsx(e,{shortUrl:v,selectedServer:o,onTagClick:i},v.shortUrl));return g.jsxs("table",{className:p,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:h,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),g.jsxs("th",{className:h,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs("span",{className:f,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]}),"  /  ",g.jsxs("span",{className:f,onClick:t==null?void 0:t("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:h,onClick:t==null?void 0:t("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),g.jsx("tbody",{children:m()})]})},Bve=(e,t)=>{e.serviceFactory("ShortUrlsList",Fve,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",$ve,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",gge,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.decorator("ShortUrlsRow",t(["settings"])),e.serviceFactory("ShortUrlsRowMenu",vge,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",oge,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Lve,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",$me,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Bme,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>sge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",fge,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",jve,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",age,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("shortUrlsListReducerCreator",Wpe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",at("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",_ge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",at("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Sge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",at("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",Upe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",at("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",bge,"buildShlinkApiClient"),e.serviceFactory("shortUrlDetailReducer",at("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Hpe,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",yge,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",at("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",zpe,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",at("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>j5),e.serviceFactory("getShortUrlDetail",at("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",xge,"buildShlinkApiClient")},zve=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:a,deleted:l,errorData:c}=i,f=async()=>{await r(e),t()};return g.jsxs(Vo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[g.jsx(io,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Mi,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",a&&g.jsx(Nr,{type:"error",small:!0,className:"mt-2",children:g.jsx(Do,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(ta,{children:[g.jsx(ht,{color:"link",onClick:t,children:"Cancel"}),g.jsx(ht,{color:"danger",disabled:s,onClick:f,children:s?"Deleting tag...":"Delete tag"})]})]})};function O_(){return(O_=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}).apply(this,arguments)}function _8(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function f2(e){var t=V.useRef(e),n=V.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Od=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Nf=function(e){return"touches"in e},d2=function(e){return e&&e.ownerDocument.defaultView||self},KN=function(e,t,n){var r=e.getBoundingClientRect(),i=Nf(t)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(t.touches,n):t;return{left:Od((i.pageX-(r.left+d2(e).pageXOffset))/r.width),top:Od((i.pageY-(r.top+d2(e).pageYOffset))/r.height)}},XN=function(e){!Nf(e)&&e.preventDefault()},b8=U.memo(function(e){var t=e.onMove,n=e.onKey,r=_8(e,["onMove","onKey"]),i=V.useRef(null),o=f2(t),s=f2(n),a=V.useRef(null),l=V.useRef(!1),c=V.useMemo(function(){var m=function(x){XN(x),(Nf(x)?x.touches.length>0:x.buttons>0)&&i.current?o(KN(i.current,x,a.current)):y(!1)},v=function(){return y(!1)};function y(x){var _=l.current,w=d2(i.current),S=x?w.addEventListener:w.removeEventListener;S(_?"touchmove":"mousemove",m),S(_?"touchend":"mouseup",v)}return[function(x){var _=x.nativeEvent,w=i.current;if(w&&(XN(_),!function(T,P){return P&&!Nf(T)}(_,l.current)&&w)){if(Nf(_)){l.current=!0;var S=_.changedTouches||[];S.length&&(a.current=S[0].identifier)}w.focus(),o(KN(w,_,a.current)),y(!0)}},function(x){var _=x.which||x.keyCode;_<37||_>40||(x.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},y]},[s,o]),f=c[0],h=c[1],p=c[2];return V.useEffect(function(){return p},[p]),U.createElement("div",O_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),UE=function(e){return e.filter(Boolean).join(" ")},w8=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=UE(["react-colorful__pointer",e.className]);return U.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},U.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Un=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Uve=function(e){return qve(h2(e))},h2=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Un(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Un(parseInt(e.substring(6,8),16)/255,2):1}},Vve=function(e){return Yve(Wve(e))},Hve=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:Un(e.h),s:Un(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Un(i/2),a:Un(r,2)}},p2=function(e){var t=Hve(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Wve=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:Un(255*[r,a,s,s,l,r][c]),g:Un(255*[l,r,r,a,s,s][c]),b:Un(255*[s,s,l,r,r,a][c]),a:Un(i,2)}},Ap=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Yve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Ap(Un(255*i)):"";return"#"+Ap(t)+Ap(n)+Ap(r)+o},qve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:Un(60*(a<0?a+6:a)),s:Un(o?s/o*100:0),v:Un(o/255*100),a:i}},Gve=U.memo(function(e){var t=e.hue,n=e.onChange,r=UE(["react-colorful__hue",e.className]);return U.createElement("div",{className:r},U.createElement(b8,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Od(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Un(t),"aria-valuemax":"360","aria-valuemin":"0"},U.createElement(w8,{className:"react-colorful__hue-pointer",left:t/360,color:p2({h:t,s:100,v:100,a:1})})))}),Zve=U.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:p2({h:t.h,s:100,v:100,a:1})};return U.createElement("div",{className:"react-colorful__saturation",style:r},U.createElement(b8,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Od(t.s+100*i.left,0,100),v:Od(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Un(t.s)+"%, Brightness "+Un(t.v)+"%"},U.createElement(w8,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:p2(t)})))}),x8=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Kve=function(e,t){return e.toLowerCase()===t.toLowerCase()||x8(h2(e),h2(t))};function Xve(e,t,n){var r=f2(n),i=V.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=V.useRef({color:t,hsva:o});V.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),V.useEffect(function(){var c;x8(o,a.current.hsva)||e.equal(c=e.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},r(c))},[o,e,r]);var l=V.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var Qve=typeof window<"u"?V.useLayoutEffect:V.useEffect,Jve=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},QN=new Map,eye=function(e){Qve(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!QN.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,QN.set(t,n);var r=Jve();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},tye=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=_8(e,["className","colorModel","color","onChange"]),a=V.useRef(null);eye(a);var l=Xve(n,i,o),c=l[0],f=l[1],h=UE(["react-colorful",t]);return U.createElement("div",O_({},s,{ref:a,className:h}),U.createElement(Zve,{hsva:c,onChange:f}),U.createElement(Gve,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},nye={defaultColor:"000",toHsva:Uve,fromHsva:function(e){return Vve({h:e.h,s:e.s,v:e.v,a:1})},equal:Kve},rye=function(e){return U.createElement(tye,O_({},e,{colorModel:nye}))};const iye=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=V.useState(t),[c,f]=V.useState(e(t)),[h,p,,m]=hn(),{editing:v,error:y,edited:x,errorData:_}=s,w=rh(async()=>{await n({oldName:t,newName:a,color:c}),r()}),S=Dt(m,()=>x&&i({oldName:t,newName:a,color:c}));return g.jsx(Vo,{isOpen:o,toggle:r,centered:!0,onClosed:S,children:g.jsxs("form",{name:"editTag",onSubmit:w,children:[g.jsx(io,{toggle:r,children:"Edit tag"}),g.jsxs(Mi,{children:[g.jsxs(Qd,{children:[g.jsx("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:g.jsx(je,{icon:lQ,className:"edit-tag-modal__color-icon"})}),g.jsx(Kd,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:g.jsx(rye,{color:c,onChange:f})}),g.jsx(Ic,{value:a,placeholder:"Tag",required:!0,onChange:({target:T})=>l(T.value)})]}),y&&g.jsx(Nr,{type:"error",small:!0,className:"mt-2",children:g.jsx(Do,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(ta,{children:[g.jsx(ht,{type:"button",color:"link",onClick:r,children:"Cancel"}),g.jsx(ht,{color:"primary",disabled:v,children:v?"Saving...":"Save"})]})]})})};function oye(e){return U.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},U.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const sye={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},aye=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class lye extends U.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=U.createRef(),this.sizer=U.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);aye.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:s,inputAttributes:a,inputEventHandlers:l,index:c}=this.props;return U.createElement("div",{className:s.searchWrapper},U.createElement("input",Object.assign({},a,l,{ref:this.input,value:n,placeholder:i,className:s.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":c>-1?`${t}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),U.createElement("div",{ref:this.sizer,style:sye},n||i))}}function VE(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function cye(e){return new RegExp(VE(e),"gi")}function uye(e){return new RegExp(`(?:^|\\s)${VE(e)}`,"i")}function fye(e){return new RegExp(`^${VE(e)}$`,"i")}function dye(e,t){const n=cye(t);return e.replace(n,"<mark>$&</mark>")}function hye({item:e,query:t}){return U.createElement("span",{dangerouslySetInnerHTML:{__html:dye(e.name,t)}})}function pye(e){const t=e.suggestionComponent||hye,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,s=[];return e.index===i&&s.push(e.classNames.suggestionActive),r.disabled&&s.push(e.classNames.suggestionDisabled),U.createElement("li",{id:o,key:o,role:"option",className:s.join(" "),"aria-disabled":!!r.disabled,onMouseDown:a=>a.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?U.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:U.createElement(t,{item:r,query:e.query}))});return U.createElement("div",{className:e.classNames.suggestions},U.createElement("ul",{role:"listbox",id:e.id},n))}function mye(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===t),i=n[r-1]||n[r+1];i&&i.focus()}const ka={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},S8={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function C8(e,t){return e.findIndex(n=>fye(t).test(n.name))}function $1(){if(this.state.query.length>=this.props.minQueryLength){const e=C8(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function gye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function vye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function yye(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function _ye(e,t){return uye(t).test(e.name)}function bye(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&C8(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class HE extends U.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=U.createRef(),this.input=U.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?$1.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),$1.call(this)),t.key===ka.BACKSPACE&&this.props.allowBackspace&&yye.call(this,t),(t.key===ka.UP_ARROW||t.key===ka.UP_ARROW_COMPAT)&&gye.call(this,t),(t.key===ka.DOWN_ARROW||t.key===ka.DOWN_ARROW_COMPAT)&&vye.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&$1.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&mye(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||oye,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},S8,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),U.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},U.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>U.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),U.createElement("div",{className:r.search},U.createElement(lye,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?U.createElement(pye,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:bye(t,n)}:null}}HE.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:_ye,suggestionsTransform:null,autoresize:!0,classNames:S8,delimiters:[ka.TAB,ka.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};HE.propTypes={id:C.string,tags:C.arrayOf(C.object),placeholderText:C.string,ariaLabelText:C.string,removeButtonText:C.string,noSuggestionsText:C.string,newTagText:C.string,suggestions:C.arrayOf(C.object),suggestionsFilter:C.func,suggestionsTransform:C.func,autoresize:C.bool,delimiters:C.arrayOf(C.string),onDelete:C.func.isRequired,onAddition:C.func.isRequired,onInput:C.func,onFocus:C.func,onBlur:C.func,onValidate:C.func,minQueryLength:C.number,maxSuggestionsLength:C.number,classNames:C.object,allowNew:C.bool,allowBackspace:C.bool,addOnBlur:C.bool,tagComponent:C.oneOfType([C.func,C.element]),suggestionComponent:C.oneOfType([C.func,C.element]),inputAttributes:C.object};const E8=({tag:e,colorGenerator:t})=>g.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),JN=e=>({id:e,name:e}),wye=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,settings:s,allowNew:a=!0})=>{var h;V.useEffect(()=>{i()},[]);const l=((h=s.shortUrlCreation)==null?void 0:h.tagFilteringMode)??"startsWith",c=({tag:p,onDelete:m})=>g.jsx($E,{colorGenerator:e,text:p.name,clearable:!0,className:"react-tags__tag",onClose:m}),f=({item:p})=>g.jsxs(g.Fragment,{children:[g.jsx(E8,{tag:`${p.name}`,colorGenerator:e}),p.name]});return g.jsx(HE,{tags:t.map(JN),tagComponent:c,suggestions:o.tags.filter(p=>!t.includes(p)).map(JN),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(p,m)=>m.filter(({name:v})=>v.includes(p)):void 0,onDelete:p=>{const m=[...t];m.splice(p,1),n(m)},onAddition:({name:p})=>n([...new Set([...t,...p.toLowerCase().split(",")])])})},m2="shlink/tagDelete",xye={deleting:!1,deleted:!1,error:!1},T8=yn(`${m2}/tagDeleted`),Sye=e=>{const t=rr(`${m2}/deleteTag`,async(r,{getState:i})=>{const{deleteTags:o}=e(i);await o([r])}),{reducer:n}=Yn({name:m2,initialState:xye,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:ro(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},WE="shlink/tagEdit",Cye={editing:!1,edited:!1,error:!1},O8=yn(`${WE}/tagEdited`),Eye=(e,t)=>rr(`${WE}/editTag`,async({oldName:n,newName:r,color:i},{getState:o})=>(await e(o).editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Tye=e=>Yn({name:WE,initialState:Cye,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:ro(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Mj(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),YE="shlink/tagsList",B1={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},eL=(e,t)=>n=>n===e?t:n,tL=(e,t)=>zd(n=>n===t,e),Oye=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:s}=i,a=n[r];return{...n,[r]:{...a,visitsSummary:a.visitsSummary&&{total:a.visitsSummary.total+o+s,bots:a.visitsSummary.bots+o,nonBots:a.visitsSummary.nonBots+s},visitsCount:a.visitsCount+o+s}}},{...t}),Pye=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),{})),kye=(e,t=!0)=>rr(`${YE}/listTags`,async(n,{getState:r})=>{const{tagsList:i,selectedServer:o}=r();if(!t&&!Wn(i.tags))return i;const{listTags:s,tagsStats:a}=e(r),{tags:l,stats:c}=await(yE.tagsStats(o)?a():s()),f=c.reduce((h,{tag:p,...m})=>(h[p]=m,h),{});return{tags:l,stats:f}}),P8=yn(`${YE}/filterTags`),Mye=(e,t)=>Yn({name:YE,initialState:B1,reducers:{},extraReducers:n=>{n.addCase(P8,(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})=>({...B1,error:!0,errorData:ro(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...B1,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(T8,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:tL(r,s),filteredTags:tL(i,s)})),n.addCase(O8,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(eL(a.oldName,a.newName)).sort(),filteredTags:i.map(eL(a.oldName,a.newName)).sort()})),n.addCase(ah,(r,{payload:i})=>({...r,stats:Oye(Pye(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),Rye=e=>ra(({filterTags:t,forceListTags:n,tagsList:r,selectedServer:i,settings:o})=>{var h;const[s,a]=V.useState(((h=o.tags)==null?void 0:h.defaultOrdering)??{}),l=Dt(()=>r.filteredTags.map(p=>{var y,x,_;const m=r.stats[p],v=((y=o.visits)!=null&&y.excludeBots?(x=m==null?void 0:m.visitsSummary)==null?void 0:x.nonBots:(_=m==null?void 0:m.visitsSummary)==null?void 0:_.total)??(m==null?void 0:m.visitsCount)??0;return{tag:p,visits:v,shortUrls:(m==null?void 0:m.shortUrlsCount)??0}}),p=>Nj(p,s));if(V.useEffect(()=>{n()},[]),r.loading)return g.jsx(Co,{loading:!0});if(r.error)return g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const c=p=>()=>{const m=e_(p,s.field,s.dir);a({field:m?p:void 0,dir:m})},f=()=>{if(r.filteredTags.length<1)return g.jsx(Co,{children:"No tags found"});const p=l();return g.jsx(e,{sortedTags:p,selectedServer:i,currentOrder:s,orderByColumn:c})};return g.jsxs(g.Fragment,{children:[g.jsx(ih,{className:"mb-3",onChange:t}),g.jsx(Qn,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(fh,{items:V5,order:s,onChange:(p,m)=>a({field:p,dir:m})})})}),f()]})},()=>[Xr.visits]);const qE=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Td(o)&&n(o);return g.jsxs(g_,{listClassName:me("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[g.jsx(Rs,{disabled:t<=1,children:g.jsx(Ns,{previous:!0,tag:"span",onClick:i(t-1)})}),g8(t,e).map((o,s)=>g.jsx(Rs,{disabled:Td(o),active:t===o,children:g.jsx(Ns,{role:"link",tag:"span",onClick:i(o),children:v8(o)})},y8(o,s))),g.jsx(Rs,{disabled:t>=e,children:g.jsx(Ns,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Nye=20,Lye=e=>({sortedTags:t,selectedServer:n,orderByColumn:r,currentOrder:i})=>{const o=V.useRef(!0),{search:s}=Pn(),{page:a=1}=fl(s),[l,c]=Moe("page",Number(a)),f=ad(Nye,t),h=f.length>1,p=f[l-1]??[];return V.useEffect(()=>{!o.current&&c(1),o.current=!1},[t]),V.useEffect(()=>{scrollTo(0,0)},[l]),g.jsxs(cn,{bodyClassName:h?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:r("tag"),children:["Tag ",g.jsx(Rf,{currentOrder:i,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:r("shortUrls"),children:["Short URLs ",g.jsx(Rf,{currentOrder:i,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:r("visits"),children:["Visits ",g.jsx(Rf,{currentOrder:i,field:"visits"})]}),g.jsx("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),g.jsx("tr",{children:g.jsx("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[p.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>g.jsx(e,{tag:m,selectedServer:n},m.tag))]})]}),h&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(qE,{pagesCount:f.length,currentPage:l,setCurrentPage:c})})]},l)},Dye=(e,t,n)=>({tag:r,selectedServer:i})=>{const[o,s]=hn(),[a,l]=hn(),c=Ud(i);return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(E8,{tag:r.tag,colorGenerator:n})," ",r.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Lt,{to:`/server/${c}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:_n(r.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Lt,{to:`/server/${c}/tag/${r.tag}/visits`,children:_n(r.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(__,{children:[g.jsxs(Ue,{onClick:l,children:[g.jsx(je,{icon:KX,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ue,{onClick:s,children:[g.jsx(je,{icon:dQ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),g.jsx(t,{tag:r.tag,toggle:l,isOpen:a}),g.jsx(e,{tag:r.tag,toggle:s,isOpen:o})]})},Aye=(e,t)=>{e.serviceFactory("TagsSelector",wye,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>zve),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",iye,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",Dye,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.decorator("TagsTableRow",t(["settings"])),e.serviceFactory("TagsTable",Lye,"TagsTableRow"),e.serviceFactory("TagsList",Rye,"TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Tye,"editTag"),e.serviceFactory("tagEditReducer",at("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Sye,"buildShlinkApiClient"),e.serviceFactory("tagDeleteReducer",at("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Mye,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",at("reducer"),"tagsListReducerCreator");const n=r=>({buildShlinkApiClient:i})=>kye(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>P8),e.serviceFactory("deleteTag",at("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>T8),e.serviceFactory("editTag",Eye,"buildShlinkApiClient","ColorGenerator"),e.serviceFactory("tagEdited",()=>O8)};var jye="Expected a function",k8="__lodash_hash_undefined__",M8=1/0,Iye="[object Function]",Fye="[object GeneratorFunction]",$ye="[object Symbol]",Bye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zye=/^\w*$/,Uye=/^\./,Vye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hye=/[\\^$.*+?()[\]{}|]/g,Wye=/\\(\\)?/g,Yye=/^\[object .+?Constructor\]$/,qye=typeof $l=="object"&&$l&&$l.Object===Object&&$l,Gye=typeof self=="object"&&self&&self.Object===Object&&self,GE=qye||Gye||Function("return this")();function Zye(e,t){return e==null?void 0:e[t]}function Kye(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Xye=Array.prototype,Qye=Function.prototype,R8=Object.prototype,z1=GE["__core-js_shared__"],nL=function(){var e=/[^.]+$/.exec(z1&&z1.keys&&z1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),N8=Qye.toString,ZE=R8.hasOwnProperty,L8=R8.toString,Jye=RegExp("^"+N8.call(ZE).replace(Hye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rL=GE.Symbol,e_e=Xye.splice,t_e=D8(GE,"Map"),Pd=D8(Object,"create"),iL=rL?rL.prototype:void 0,oL=iL?iL.toString:void 0;function sl(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function n_e(){this.__data__=Pd?Pd(null):{}}function r_e(e){return this.has(e)&&delete this.__data__[e]}function i_e(e){var t=this.__data__;if(Pd){var n=t[e];return n===k8?void 0:n}return ZE.call(t,e)?t[e]:void 0}function o_e(e){var t=this.__data__;return Pd?t[e]!==void 0:ZE.call(t,e)}function s_e(e,t){var n=this.__data__;return n[e]=Pd&&t===void 0?k8:t,this}sl.prototype.clear=n_e;sl.prototype.delete=r_e;sl.prototype.get=i_e;sl.prototype.has=o_e;sl.prototype.set=s_e;function iu(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function a_e(){this.__data__=[]}function l_e(e){var t=this.__data__,n=P_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():e_e.call(t,n,1),!0}function c_e(e){var t=this.__data__,n=P_(t,e);return n<0?void 0:t[n][1]}function u_e(e){return P_(this.__data__,e)>-1}function f_e(e,t){var n=this.__data__,r=P_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}iu.prototype.clear=a_e;iu.prototype.delete=l_e;iu.prototype.get=c_e;iu.prototype.has=u_e;iu.prototype.set=f_e;function pl(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function d_e(){this.__data__={hash:new sl,map:new(t_e||iu),string:new sl}}function h_e(e){return k_(this,e).delete(e)}function p_e(e){return k_(this,e).get(e)}function m_e(e){return k_(this,e).has(e)}function g_e(e,t){return k_(this,e).set(e,t),this}pl.prototype.clear=d_e;pl.prototype.delete=h_e;pl.prototype.get=p_e;pl.prototype.has=m_e;pl.prototype.set=g_e;function P_(e,t){for(var n=e.length;n--;)if(O_e(e[n][0],t))return n;return-1}function v_e(e,t){t=w_e(t,e)?[t]:b_e(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[E_e(t[n++])];return n&&n==r?e:void 0}function y_e(e){if(!j8(e)||S_e(e))return!1;var t=P_e(e)||Kye(e)?Jye:Yye;return t.test(T_e(e))}function __e(e){if(typeof e=="string")return e;if(XE(e))return oL?oL.call(e):"";var t=e+"";return t=="0"&&1/e==-M8?"-0":t}function b_e(e){return A8(e)?e:C_e(e)}function k_(e,t){var n=e.__data__;return x_e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function D8(e,t){var n=Zye(e,t);return y_e(n)?n:void 0}function w_e(e,t){if(A8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||XE(e)?!0:zye.test(e)||!Bye.test(e)||t!=null&&e in Object(t)}function x_e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function S_e(e){return!!nL&&nL in e}var C_e=KE(function(e){e=M_e(e);var t=[];return Uye.test(e)&&t.push(""),e.replace(Vye,function(n,r,i,o){t.push(i?o.replace(Wye,"$1"):r||n)}),t});function E_e(e){if(typeof e=="string"||XE(e))return e;var t=e+"";return t=="0"&&1/e==-M8?"-0":t}function T_e(e){if(e!=null){try{return N8.call(e)}catch{}try{return e+""}catch{}}return""}function KE(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(jye);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 s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(KE.Cache||pl),n}KE.Cache=pl;function O_e(e,t){return e===t||e!==e&&t!==t}var A8=Array.isArray;function P_e(e){var t=j8(e)?L8.call(e):"";return t==Iye||t==Fye}function j8(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function k_e(e){return!!e&&typeof e=="object"}function XE(e){return typeof e=="symbol"||k_e(e)&&L8.call(e)==$ye}function M_e(e){return e==null?"":__e(e)}function R_e(e,t,n){var r=e==null?void 0:v_e(e,t);return r===void 0?n:r}var N_e=R_e;const sL=ri(N_e);function U1(e){return e==null?"":`${e}`}function L_e(e={}){return e.separator?e.decimals?t=>t.toFixed(e.decimals).replace(".",e.separator):t=>`${t}`.replace(".",e.separator):e.decimals?t=>t.toFixed(e.decimals):t=>`${t}`}function QE(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function D_e(e={stringFormatter:QE()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function A_e(e={stringFormatter:QE()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function aL(e,t,n){const r=e[t];return r===void 0?n:r}function I8(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function g2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class j_e{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||QE(),i=A_e({stringFormatter:r}),o={header:r,undefined:U1,boolean:U1,number:L_e(),bigint:U1,string:r,symbol:D_e({stringFormatter:r}),function:i,object:i};return n.formatters={...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:r.includes(".")||r.includes("[")?i=>sL(i,r,n):i=>aL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>sL(o,r.value,i):o=>aL(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i};return{label:o,value(a){const l=r.value(a,s);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return g2(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(I8,[]),[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 g2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class I_e extends j_e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,a)=>(Object.keys(a).forEach(l=>{s.includes(l)||s.push(l)}),s),[]));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&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(I8,[])}processData(t){return g2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var xn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(xn||(xn={}));xn.QUOTATION_MARK+"",xn.QUOTATION_MARK,xn.REVERSE_SOLIDUS+"",xn.REVERSE_SOLIDUS,xn.SOLIDUS+"",xn.SOLIDUS,xn.LATIN_SMALL_LETTER_B+"",xn.BACKSPACE,xn.LATIN_SMALL_LETTER_F+"",xn.FORM_FEED,xn.LATIN_SMALL_LETTER_N+"",xn.NEWLINE,xn.LATIN_SMALL_LETTER_R+"",xn.CARRIAGE_RETURN,xn.LATIN_SMALL_LETTER_T+"",xn.TAB;var lL;(function(e){e[e.LEFT_BRACE=1]="LEFT_BRACE",e[e.RIGHT_BRACE=2]="RIGHT_BRACE",e[e.LEFT_BRACKET=3]="LEFT_BRACKET",e[e.RIGHT_BRACKET=4]="RIGHT_BRACKET",e[e.COLON=5]="COLON",e[e.COMMA=6]="COMMA",e[e.TRUE=7]="TRUE",e[e.FALSE=8]="FALSE",e[e.NULL=9]="NULL",e[e.STRING=10]="STRING",e[e.NUMBER=11]="NUMBER",e[e.SEPARATOR=12]="SEPARATOR"})(lL||(lL={}));var cL;(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"})(cL||(cL={}));var uL;(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"})(uL||(uL={}));var fL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(fL||(fL={}));var F_e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(v){var y=[];for(var x in v)y.push(x);return y};e.exports=h;var o=n(5);o.inherits=n(2);var s=n(23),a=n(14);o.inherits(h,s);for(var l=i(a.prototype),c=0;c<l.length;c++){var f=l[c];h.prototype[f]||(h.prototype[f]=a.prototype[f])}function h(v){if(!(this instanceof h))return new h(v);s.call(this,v),a.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(m,this)}function m(v){v.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),h.prototype._destroy=function(v,y){this.push(null),this.end(),r.nextTick(y,v)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var i=n(38),o=n(39),s=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,R){if(a()<R)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(O=new Uint8Array(R)).__proto__=c.prototype:(O===null&&(O=new c(R)),O.length=R),O}function c(O,R,I){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(O,R,I);if(typeof O=="number"){if(typeof R=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,O)}return f(this,O,R,I)}function f(O,R,I,X){if(typeof R=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&R instanceof ArrayBuffer?function(K,ae,ge,Le){if(ae.byteLength,ge<0||ae.byteLength<ge)throw new RangeError("'offset' is out of bounds");if(ae.byteLength<ge+(Le||0))throw new RangeError("'length' is out of bounds");return ae=ge===void 0&&Le===void 0?new Uint8Array(ae):Le===void 0?new Uint8Array(ae,ge):new Uint8Array(ae,ge,Le),c.TYPED_ARRAY_SUPPORT?(K=ae).__proto__=c.prototype:K=m(K,ae),K}(O,R,I,X):typeof R=="string"?function(K,ae,ge){if(typeof ge=="string"&&ge!==""||(ge="utf8"),!c.isEncoding(ge))throw new TypeError('"encoding" must be a valid string encoding');var Le=0|y(ae,ge),ue=(K=l(K,Le)).write(ae,ge);return ue!==Le&&(K=K.slice(0,ue)),K}(O,R,I):function(K,ae){if(c.isBuffer(ae)){var ge=0|v(ae.length);return(K=l(K,ge)).length===0||ae.copy(K,0,0,ge),K}if(ae){if(typeof ArrayBuffer<"u"&&ae.buffer instanceof ArrayBuffer||"length"in ae)return typeof ae.length!="number"||function(Le){return Le!=Le}(ae.length)?l(K,0):m(K,ae);if(ae.type==="Buffer"&&s(ae.data))return m(K,ae.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(O,R)}function h(O){if(typeof O!="number")throw new TypeError('"size" argument must be a number');if(O<0)throw new RangeError('"size" argument must not be negative')}function p(O,R){if(h(R),O=l(O,R<0?0:0|v(R)),!c.TYPED_ARRAY_SUPPORT)for(var I=0;I<R;++I)O[I]=0;return O}function m(O,R){var I=R.length<0?0:0|v(R.length);O=l(O,I);for(var X=0;X<I;X+=1)O[X]=255&R[X];return O}function v(O){if(O>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|O}function y(O,R){if(c.isBuffer(O))return O.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var I=O.length;if(I===0)return 0;for(var X=!1;;)switch(R){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":case void 0:return te(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return se(O).length;default:if(X)return te(O).length;R=(""+R).toLowerCase(),X=!0}}function x(O,R,I){var X=O[R];O[R]=O[I],O[I]=X}function _(O,R,I,X,K){if(O.length===0)return-1;if(typeof I=="string"?(X=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,isNaN(I)&&(I=K?0:O.length-1),I<0&&(I=O.length+I),I>=O.length){if(K)return-1;I=O.length-1}else if(I<0){if(!K)return-1;I=0}if(typeof R=="string"&&(R=c.from(R,X)),c.isBuffer(R))return R.length===0?-1:w(O,R,I,X,K);if(typeof R=="number")return R&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(O,R,I):Uint8Array.prototype.lastIndexOf.call(O,R,I):w(O,[R],I,X,K);throw new TypeError("val must be string, number or Buffer")}function w(O,R,I,X,K){var ae,ge=1,Le=O.length,ue=R.length;if(X!==void 0&&((X=String(X).toLowerCase())==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(O.length<2||R.length<2)return-1;ge=2,Le/=2,ue/=2,I/=2}function ve(Re,Ne){return ge===1?Re[Ne]:Re.readUInt16BE(Ne*ge)}if(K){var _e=-1;for(ae=I;ae<Le;ae++)if(ve(O,ae)===ve(R,_e===-1?0:ae-_e)){if(_e===-1&&(_e=ae),ae-_e+1===ue)return _e*ge}else _e!==-1&&(ae-=ae-_e),_e=-1}else for(I+ue>Le&&(I=Le-ue),ae=I;ae>=0;ae--){for(var Te=!0,De=0;De<ue;De++)if(ve(O,ae+De)!==ve(R,De)){Te=!1;break}if(Te)return ae}return-1}function S(O,R,I,X){I=Number(I)||0;var K=O.length-I;X?(X=Number(X))>K&&(X=K):X=K;var ae=R.length;if(ae%2!=0)throw new TypeError("Invalid hex string");X>ae/2&&(X=ae/2);for(var ge=0;ge<X;++ge){var Le=parseInt(R.substr(2*ge,2),16);if(isNaN(Le))return ge;O[I+ge]=Le}return ge}function T(O,R,I,X){return pe(te(R,O.length-I),O,I,X)}function P(O,R,I,X){return pe(function(K){for(var ae=[],ge=0;ge<K.length;++ge)ae.push(255&K.charCodeAt(ge));return ae}(R),O,I,X)}function k(O,R,I,X){return P(O,R,I,X)}function N(O,R,I,X){return pe(se(R),O,I,X)}function D(O,R,I,X){return pe(function(K,ae){for(var ge,Le,ue,ve=[],_e=0;_e<K.length&&!((ae-=2)<0);++_e)Le=(ge=K.charCodeAt(_e))>>8,ue=ge%256,ve.push(ue),ve.push(Le);return ve}(R,O.length-I),O,I,X)}function z(O,R,I){return R===0&&I===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(R,I))}function A(O,R,I){I=Math.min(O.length,I);for(var X=[],K=R;K<I;){var ae,ge,Le,ue,ve=O[K],_e=null,Te=ve>239?4:ve>223?3:ve>191?2:1;if(K+Te<=I)switch(Te){case 1:ve<128&&(_e=ve);break;case 2:(192&(ae=O[K+1]))==128&&(ue=(31&ve)<<6|63&ae)>127&&(_e=ue);break;case 3:ae=O[K+1],ge=O[K+2],(192&ae)==128&&(192&ge)==128&&(ue=(15&ve)<<12|(63&ae)<<6|63&ge)>2047&&(ue<55296||ue>57343)&&(_e=ue);break;case 4:ae=O[K+1],ge=O[K+2],Le=O[K+3],(192&ae)==128&&(192&ge)==128&&(192&Le)==128&&(ue=(15&ve)<<18|(63&ae)<<12|(63&ge)<<6|63&Le)>65535&&ue<1114112&&(_e=ue)}_e===null?(_e=65533,Te=1):_e>65535&&(_e-=65536,X.push(_e>>>10&1023|55296),_e=56320|1023&_e),X.push(_e),K+=Te}return function(De){var Re=De.length;if(Re<=W)return String.fromCharCode.apply(String,De);for(var Ne="",ce=0;ce<Re;)Ne+=String.fromCharCode.apply(String,De.slice(ce,ce+=W));return Ne}(X)}t.Buffer=c,t.SlowBuffer=function(O){return+O!=O&&(O=0),c.alloc(+O)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var O=new Uint8Array(1);return O.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},O.foo()===42&&typeof O.subarray=="function"&&O.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(O){return O.__proto__=c.prototype,O},c.from=function(O,R,I){return f(null,O,R,I)},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(O,R,I){return function(X,K,ae,ge){return h(K),K<=0?l(X,K):ae!==void 0?typeof ge=="string"?l(X,K).fill(ae,ge):l(X,K).fill(ae):l(X,K)}(null,O,R,I)},c.allocUnsafe=function(O){return p(null,O)},c.allocUnsafeSlow=function(O){return p(null,O)},c.isBuffer=function(O){return!(O==null||!O._isBuffer)},c.compare=function(O,R){if(!c.isBuffer(O)||!c.isBuffer(R))throw new TypeError("Arguments must be Buffers");if(O===R)return 0;for(var I=O.length,X=R.length,K=0,ae=Math.min(I,X);K<ae;++K)if(O[K]!==R[K]){I=O[K],X=R[K];break}return I<X?-1:X<I?1:0},c.isEncoding=function(O){switch(String(O).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(O,R){if(!s(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return c.alloc(0);var I;if(R===void 0)for(R=0,I=0;I<O.length;++I)R+=O[I].length;var X=c.allocUnsafe(R),K=0;for(I=0;I<O.length;++I){var ae=O[I];if(!c.isBuffer(ae))throw new TypeError('"list" argument must be an Array of Buffers');ae.copy(X,K),K+=ae.length}return X},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;R<O;R+=2)x(this,R,R+1);return this},c.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var R=0;R<O;R+=4)x(this,R,R+3),x(this,R+1,R+2);return this},c.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var R=0;R<O;R+=8)x(this,R,R+7),x(this,R+1,R+6),x(this,R+2,R+5),x(this,R+3,R+4);return this},c.prototype.toString=function(){var O=0|this.length;return O===0?"":arguments.length===0?A(this,0,O):function(R,I,X){var K=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((X===void 0||X>this.length)&&(X=this.length),X<=0)||(X>>>=0)<=(I>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return Z(this,I,X);case"utf8":case"utf-8":return A(this,I,X);case"ascii":return Y(this,I,X);case"latin1":case"binary":return J(this,I,X);case"base64":return z(this,I,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,I,X);default:if(K)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),K=!0}}.apply(this,arguments)},c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",R=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(O+=" ... ")),"<Buffer "+O+">"},c.prototype.compare=function(O,R,I,X,K){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),I===void 0&&(I=O?O.length:0),X===void 0&&(X=0),K===void 0&&(K=this.length),R<0||I>O.length||X<0||K>this.length)throw new RangeError("out of range index");if(X>=K&&R>=I)return 0;if(X>=K)return-1;if(R>=I)return 1;if(R>>>=0,I>>>=0,X>>>=0,K>>>=0,this===O)return 0;for(var ae=K-X,ge=I-R,Le=Math.min(ae,ge),ue=this.slice(X,K),ve=O.slice(R,I),_e=0;_e<Le;++_e)if(ue[_e]!==ve[_e]){ae=ue[_e],ge=ve[_e];break}return ae<ge?-1:ge<ae?1:0},c.prototype.includes=function(O,R,I){return this.indexOf(O,R,I)!==-1},c.prototype.indexOf=function(O,R,I){return _(this,O,R,I,!0)},c.prototype.lastIndexOf=function(O,R,I){return _(this,O,R,I,!1)},c.prototype.write=function(O,R,I,X){if(R===void 0)X="utf8",I=this.length,R=0;else if(I===void 0&&typeof R=="string")X=R,I=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R|=0,isFinite(I)?(I|=0,X===void 0&&(X="utf8")):(X=I,I=void 0)}var K=this.length-R;if((I===void 0||I>K)&&(I=K),O.length>0&&(I<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");X||(X="utf8");for(var ae=!1;;)switch(X){case"hex":return S(this,O,R,I);case"utf8":case"utf-8":return T(this,O,R,I);case"ascii":return P(this,O,R,I);case"latin1":case"binary":return k(this,O,R,I);case"base64":return N(this,O,R,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,R,I);default:if(ae)throw new TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),ae=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;function Y(O,R,I){var X="";I=Math.min(O.length,I);for(var K=R;K<I;++K)X+=String.fromCharCode(127&O[K]);return X}function J(O,R,I){var X="";I=Math.min(O.length,I);for(var K=R;K<I;++K)X+=String.fromCharCode(O[K]);return X}function Z(O,R,I){var X=O.length;(!R||R<0)&&(R=0),(!I||I<0||I>X)&&(I=X);for(var K="",ae=R;ae<I;++ae)K+=q(O[ae]);return K}function ee(O,R,I){for(var X=O.slice(R,I),K="",ae=0;ae<X.length;ae+=2)K+=String.fromCharCode(X[ae]+256*X[ae+1]);return K}function ie(O,R,I){if(O%1!=0||O<0)throw new RangeError("offset is not uint");if(O+R>I)throw new RangeError("Trying to access beyond buffer length")}function oe(O,R,I,X,K,ae){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>K||R<ae)throw new RangeError('"value" argument is out of bounds');if(I+X>O.length)throw new RangeError("Index out of range")}function G(O,R,I,X){R<0&&(R=65535+R+1);for(var K=0,ae=Math.min(O.length-I,2);K<ae;++K)O[I+K]=(R&255<<8*(X?K:1-K))>>>8*(X?K:1-K)}function F(O,R,I,X){R<0&&(R=4294967295+R+1);for(var K=0,ae=Math.min(O.length-I,4);K<ae;++K)O[I+K]=R>>>8*(X?K:3-K)&255}function j(O,R,I,X,K,ae){if(I+X>O.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function B(O,R,I,X,K){return K||j(O,0,I,4),o.write(O,R,I,X,23,4),I+4}function ne(O,R,I,X,K){return K||j(O,0,I,8),o.write(O,R,I,X,52,8),I+8}c.prototype.slice=function(O,R){var I,X=this.length;if(O=~~O,R=R===void 0?X:~~R,O<0?(O+=X)<0&&(O=0):O>X&&(O=X),R<0?(R+=X)<0&&(R=0):R>X&&(R=X),R<O&&(R=O),c.TYPED_ARRAY_SUPPORT)(I=this.subarray(O,R)).__proto__=c.prototype;else{var K=R-O;I=new c(K,void 0);for(var ae=0;ae<K;++ae)I[ae]=this[ae+O]}return I},c.prototype.readUIntLE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var X=this[O],K=1,ae=0;++ae<R&&(K*=256);)X+=this[O+ae]*K;return X},c.prototype.readUIntBE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var X=this[O+--R],K=1;R>0&&(K*=256);)X+=this[O+--R]*K;return X},c.prototype.readUInt8=function(O,R){return R||ie(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,R){return R||ie(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,R){return R||ie(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,R){return R||ie(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,R){return R||ie(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var X=this[O],K=1,ae=0;++ae<R&&(K*=256);)X+=this[O+ae]*K;return X>=(K*=128)&&(X-=Math.pow(2,8*R)),X},c.prototype.readIntBE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var X=R,K=1,ae=this[O+--X];X>0&&(K*=256);)ae+=this[O+--X]*K;return ae>=(K*=128)&&(ae-=Math.pow(2,8*R)),ae},c.prototype.readInt8=function(O,R){return R||ie(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,R){R||ie(O,2,this.length);var I=this[O]|this[O+1]<<8;return 32768&I?4294901760|I:I},c.prototype.readInt16BE=function(O,R){R||ie(O,2,this.length);var I=this[O+1]|this[O]<<8;return 32768&I?4294901760|I:I},c.prototype.readInt32LE=function(O,R){return R||ie(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,R){return R||ie(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,R){return R||ie(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,R){return R||ie(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,R){return R||ie(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,R){return R||ie(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,R,I,X){O=+O,R|=0,I|=0,X||oe(this,O,R,I,Math.pow(2,8*I)-1,0);var K=1,ae=0;for(this[R]=255&O;++ae<I&&(K*=256);)this[R+ae]=O/K&255;return R+I},c.prototype.writeUIntBE=function(O,R,I,X){O=+O,R|=0,I|=0,X||oe(this,O,R,I,Math.pow(2,8*I)-1,0);var K=I-1,ae=1;for(this[R+K]=255&O;--K>=0&&(ae*=256);)this[R+K]=O/ae&255;return R+I},c.prototype.writeUInt8=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[R]=255&O,R+1},c.prototype.writeUInt16LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):G(this,O,R,!0),R+2},c.prototype.writeUInt16BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):G(this,O,R,!1),R+2},c.prototype.writeUInt32LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R+3]=O>>>24,this[R+2]=O>>>16,this[R+1]=O>>>8,this[R]=255&O):F(this,O,R,!0),R+4},c.prototype.writeUInt32BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):F(this,O,R,!1),R+4},c.prototype.writeIntLE=function(O,R,I,X){if(O=+O,R|=0,!X){var K=Math.pow(2,8*I-1);oe(this,O,R,I,K-1,-K)}var ae=0,ge=1,Le=0;for(this[R]=255&O;++ae<I&&(ge*=256);)O<0&&Le===0&&this[R+ae-1]!==0&&(Le=1),this[R+ae]=(O/ge>>0)-Le&255;return R+I},c.prototype.writeIntBE=function(O,R,I,X){if(O=+O,R|=0,!X){var K=Math.pow(2,8*I-1);oe(this,O,R,I,K-1,-K)}var ae=I-1,ge=1,Le=0;for(this[R+ae]=255&O;--ae>=0&&(ge*=256);)O<0&&Le===0&&this[R+ae+1]!==0&&(Le=1),this[R+ae]=(O/ge>>0)-Le&255;return R+I},c.prototype.writeInt8=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[R]=255&O,R+1},c.prototype.writeInt16LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):G(this,O,R,!0),R+2},c.prototype.writeInt16BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):G(this,O,R,!1),R+2},c.prototype.writeInt32LE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8,this[R+2]=O>>>16,this[R+3]=O>>>24):F(this,O,R,!0),R+4},c.prototype.writeInt32BE=function(O,R,I){return O=+O,R|=0,I||oe(this,O,R,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):F(this,O,R,!1),R+4},c.prototype.writeFloatLE=function(O,R,I){return B(this,O,R,!0,I)},c.prototype.writeFloatBE=function(O,R,I){return B(this,O,R,!1,I)},c.prototype.writeDoubleLE=function(O,R,I){return ne(this,O,R,!0,I)},c.prototype.writeDoubleBE=function(O,R,I){return ne(this,O,R,!1,I)},c.prototype.copy=function(O,R,I,X){if(I||(I=0),X||X===0||(X=this.length),R>=O.length&&(R=O.length),R||(R=0),X>0&&X<I&&(X=I),X===I||O.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(I<0||I>=this.length)throw new RangeError("sourceStart out of bounds");if(X<0)throw new RangeError("sourceEnd out of bounds");X>this.length&&(X=this.length),O.length-R<X-I&&(X=O.length-R+I);var K,ae=X-I;if(this===O&&I<R&&R<X)for(K=ae-1;K>=0;--K)O[K+R]=this[K+I];else if(ae<1e3||!c.TYPED_ARRAY_SUPPORT)for(K=0;K<ae;++K)O[K+R]=this[K+I];else Uint8Array.prototype.set.call(O,this.subarray(I,I+ae),R);return ae},c.prototype.fill=function(O,R,I,X){if(typeof O=="string"){if(typeof R=="string"?(X=R,R=0,I=this.length):typeof I=="string"&&(X=I,I=this.length),O.length===1){var K=O.charCodeAt(0);K<256&&(O=K)}if(X!==void 0&&typeof X!="string")throw new TypeError("encoding must be a string");if(typeof X=="string"&&!c.isEncoding(X))throw new TypeError("Unknown encoding: "+X)}else typeof O=="number"&&(O&=255);if(R<0||this.length<R||this.length<I)throw new RangeError("Out of range index");if(I<=R)return this;var ae;if(R>>>=0,I=I===void 0?this.length:I>>>0,O||(O=0),typeof O=="number")for(ae=R;ae<I;++ae)this[ae]=O;else{var ge=c.isBuffer(O)?O:te(new c(O,X).toString()),Le=ge.length;for(ae=0;ae<I-R;++ae)this[ae+R]=ge[ae%Le]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function q(O){return O<16?"0"+O.toString(16):O.toString(16)}function te(O,R){var I;R=R||1/0;for(var X=O.length,K=null,ae=[],ge=0;ge<X;++ge){if((I=O.charCodeAt(ge))>55295&&I<57344){if(!K){if(I>56319){(R-=3)>-1&&ae.push(239,191,189);continue}if(ge+1===X){(R-=3)>-1&&ae.push(239,191,189);continue}K=I;continue}if(I<56320){(R-=3)>-1&&ae.push(239,191,189),K=I;continue}I=65536+(K-55296<<10|I-56320)}else K&&(R-=3)>-1&&ae.push(239,191,189);if(K=null,I<128){if((R-=1)<0)break;ae.push(I)}else if(I<2048){if((R-=2)<0)break;ae.push(I>>6|192,63&I|128)}else if(I<65536){if((R-=3)<0)break;ae.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;ae.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return ae}function se(O){return i.toByteArray(function(R){if((R=function(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}(R).replace(H,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function pe(O,R,I,X){for(var K=0;K<X&&!(K+I>=R.length||K>=O.length);++K)R[K+I]=O[K];return K}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(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:s}catch{r=s}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var x=a(p);f=!0;for(var _=c.length;_;){for(l=c,c=[];++h<_;)l&&l[h].run();h=-1,_=c.length}l=null,f=!1,function(w){if(r===clearTimeout)return clearTimeout(w);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{r(w)}catch{try{return r.call(null,w)}catch{return r.call(this,w)}}}(x)}}function v(x,_){this.fun=x,this.array=_}function y(){}i.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)_[w-1]=arguments[w];c.push(new v(x,_)),c.length!==1||f||a(m)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(x){return[]},i.binding=function(x){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(x){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,s,a){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,s)});case 4:return r.nextTick(function(){i.call(null,o,s,a)});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(a,l){for(var c in a)l[c]=a[c]}function s(a,l,c){return i(a,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(a,l,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,l,c)},s.alloc=function(a,l,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return l!==void 0?typeof c=="string"?f.fill(l,c):f.fill(l):f.fill(0),f},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var s=i.length;s--;)if(r(i[s][0],o))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var s=i.__data__;return r(o)?s[typeof o=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function s(a,l){this._id=a,this._clearFn=l}t.setTimeout=function(){return new s(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(a){a&&a.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(a,l){clearTimeout(a._idleTimeoutId),a._idleTimeout=l},t.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},t._unrefActive=t.active=function(a){clearTimeout(a._idleTimeoutId);var l=a._idleTimeout;l>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._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(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(a){return typeof a=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var a,l,c,f,h,p;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var m=new Error('Uncaught, unspecified "error" event. ('+a+")");throw m.context=a,m}if(o(l=this._events[s]))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,h=0;h<c;h++)p[h].apply(this,f);return!0},n.prototype.addListener=function(s,a){var l;if(!r(a))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,r(a.listener)?a.listener:a),this._events[s]?i(this._events[s])?this._events[s].push(a):this._events[s]=[this._events[s],a]:this._events[s]=a,i(this._events[s])&&!this._events[s].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&this._events[s].length>l&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,a){if(!r(a))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(s,c),l||(l=!0,a.apply(this,arguments))}return c.listener=a,this.on(s,c),this},n.prototype.removeListener=function(s,a){var l,c,f,h;if(!r(a))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(f=(l=this._events[s]).length,c=-1,l===a||r(l.listener)&&l.listener===a)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,a);else if(i(l)){for(h=f;h-- >0;)if(l[h]===a||l[h].listener&&l[h].listener===a){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[s]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,a)}return this},n.prototype.removeAllListeners=function(s){var a,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[s]))this.removeListener(s,l);else if(l)for(;l.length;)this.removeListener(s,l[l.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var a=this._events[s];if(r(a))return 1;if(a)return a.length}return 0},n.listenerCount=function(s,a){return s.listenerCount(a)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function a(A){var W=this;this.next=null,this.entry=null,this.finish=function(){(function(Y,J,Z){var ee=Y.entry;for(Y.entry=null;ee;){var ie=ee.callback;J.pendingcb--,ie(void 0),ee=ee.next}J.corkedRequestsFree?J.corkedRequestsFree.next=Y:J.corkedRequestsFree=Y})(W,A)}}e.exports=S;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;S.WritableState=w;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function _(){}function w(A,W){l=l||n(1),A=A||{};var Y=W instanceof l;this.objectMode=!!A.objectMode,Y&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var J=A.highWaterMark,Z=A.writableHighWaterMark,ee=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:Y&&(Z||Z===0)?Z:ee,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=A.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){(function(G,F){var j=G._writableState,B=j.sync,ne=j.writecb;if(function(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}(j),F)(function(q,te,se,pe,O){--te.pendingcb,se?(s.nextTick(O,pe),s.nextTick(z,q,te),q._writableState.errorEmitted=!0,q.emit("error",pe)):(O(pe),q._writableState.errorEmitted=!0,q.emit("error",pe),z(q,te))})(G,j,B,F,ne);else{var H=N(j);H||j.corked||j.bufferProcessing||!j.bufferedRequest||k(G,j),B?c(P,G,j,H,ne):P(G,j,H,ne)}})(W,oe)},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 a(this)}function S(A){if(l=l||n(1),!(h.call(S,this)||this instanceof l))return new S(A);this._writableState=new w(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),m.call(this)}function T(A,W,Y,J,Z,ee,ie){W.writelen=J,W.writecb=ie,W.writing=!0,W.sync=!0,Y?A._writev(Z,W.onwrite):A._write(Z,ee,W.onwrite),W.sync=!1}function P(A,W,Y,J){Y||function(Z,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,Z.emit("drain"))}(A,W),W.pendingcb--,J(),z(A,W)}function k(A,W){W.bufferProcessing=!0;var Y=W.bufferedRequest;if(A._writev&&Y&&Y.next){var J=W.bufferedRequestCount,Z=new Array(J),ee=W.corkedRequestsFree;ee.entry=Y;for(var ie=0,oe=!0;Y;)Z[ie]=Y,Y.isBuf||(oe=!1),Y=Y.next,ie+=1;Z.allBuffers=oe,T(A,W,!0,W.length,Z,"",ee.finish),W.pendingcb++,W.lastBufferedRequest=null,ee.next?(W.corkedRequestsFree=ee.next,ee.next=null):W.corkedRequestsFree=new a(W),W.bufferedRequestCount=0}else{for(;Y;){var G=Y.chunk,F=Y.encoding,j=Y.callback;if(T(A,W,!1,W.objectMode?1:G.length,G,F,j),Y=Y.next,W.bufferedRequestCount--,W.writing)break}Y===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=Y,W.bufferProcessing=!1}function N(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function D(A,W){A._final(function(Y){W.pendingcb--,Y&&A.emit("error",Y),W.prefinished=!0,A.emit("prefinish"),z(A,W)})}function z(A,W){var Y=N(W);return Y&&(function(J,Z){Z.prefinished||Z.finalCalled||(typeof J._final=="function"?(Z.pendingcb++,Z.finalCalled=!0,s.nextTick(D,J,Z)):(Z.prefinished=!0,J.emit("prefinish")))}(A,W),W.pendingcb===0&&(W.finished=!0,A.emit("finish"))),Y}f.inherits(S,m),w.prototype.getBuffer=function(){for(var A=this.bufferedRequest,W=[];A;)W.push(A),A=A.next;return W},function(){try{Object.defineProperty(w.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"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(A){return!!h.call(this,A)||this===S&&A&&A._writableState instanceof w}})):h=function(A){return A instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(A,W,Y){var J=this._writableState,Z=!1,ee=!J.objectMode&&function(ie){return v.isBuffer(ie)||ie instanceof y}(A);return ee&&!v.isBuffer(A)&&(A=function(ie){return v.from(ie)}(A)),typeof W=="function"&&(Y=W,W=null),ee?W="buffer":W||(W=J.defaultEncoding),typeof Y!="function"&&(Y=_),J.ended?function(ie,oe){var G=new Error("write after end");ie.emit("error",G),s.nextTick(oe,G)}(this,Y):(ee||function(ie,oe,G,F){var j=!0,B=!1;return G===null?B=new TypeError("May not write null values to stream"):typeof G=="string"||G===void 0||oe.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(ie.emit("error",B),s.nextTick(F,B),j=!1),j}(this,J,A,Y))&&(J.pendingcb++,Z=function(ie,oe,G,F,j,B){if(!G){var ne=function(se,pe,O){return se.objectMode||se.decodeStrings===!1||typeof pe!="string"||(pe=v.from(pe,O)),pe}(oe,F,j);F!==ne&&(G=!0,j="buffer",F=ne)}var H=oe.objectMode?1:F.length;oe.length+=H;var q=oe.length<oe.highWaterMark;if(q||(oe.needDrain=!0),oe.writing||oe.corked){var te=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:F,encoding:j,isBuf:G,callback:B,next:null},te?te.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else T(ie,oe,!1,H,F,j,B);return q}(this,J,ee,A,W,Y)),Z},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,A.writing||A.corked||A.finished||A.bufferProcessing||!A.bufferedRequest||k(this,A))},S.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(A,W,Y){Y(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(A,W,Y){var J=this._writableState;typeof A=="function"?(Y=A,A=null,W=null):typeof W=="function"&&(Y=W,W=null),A!=null&&this.write(A,W),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Z,ee,ie){ee.ending=!0,z(Z,ee),ie&&(ee.finished?s.nextTick(ie):Z.once("finish",ie)),ee.ended=!0,Z.writable=!1}(this,J,Y)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),S.prototype.destroy=x.destroy,S.prototype._undestroy=x.undestroy,S.prototype._destroy=function(A,W){this.end(),W(A)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(a,l,c){function f(m,v){if(!l[m]){if(!a[m]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(m,!0);if(h)return h(m,!0);var x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var _=l[m]={exports:{}};a[m][0].call(_.exports,function(w){return f(a[m][1][w]||w)},_,_.exports,s,a,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p<c.length;p++)f(c[p]);return f}({1:[function(s,a,l){a.exports=function(c){var f=c._SomePromiseArray;function h(p){var m=new f(p),v=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),v}c.any=function(p){return h(p)},c.prototype.any=function(){return h(this)}}},{}],2:[function(s,a,l){var c;try{throw new Error}catch(_){c=_}var f=s("./schedule"),h=s("./queue"),p=s("./util");function m(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var _=this;this.drainQueues=function(){_._drainQueues()},this._schedule=f}function v(_,w,S){this._lateQueue.push(_,w,S),this._queueTick()}function y(_,w,S){this._normalQueue.push(_,w,S),this._queueTick()}function x(_){this._normalQueue._pushOne(_),this._queueTick()}m.prototype.setScheduler=function(_){var w=this._schedule;return this._schedule=_,this._customScheduler=!0,w},m.prototype.hasCustomScheduler=function(){return this._customScheduler},m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},m.prototype.fatalError=function(_,w){w?(r.stderr.write("Fatal "+(_ instanceof Error?_.stack:_)+`
`),r.exit(2)):this.throwLater(_)},m.prototype.throwLater=function(_,w){if(arguments.length===1&&(w=_,_=function(){throw w}),typeof setTimeout<"u")setTimeout(function(){_(w)},0);else try{this._schedule(function(){_(w)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},p.hasDevTools?(m.prototype.invokeLater=function(_,w,S){this._trampolineEnabled?v.call(this,_,w,S):this._schedule(function(){setTimeout(function(){_.call(w,S)},100)})},m.prototype.invoke=function(_,w,S){this._trampolineEnabled?y.call(this,_,w,S):this._schedule(function(){_.call(w,S)})},m.prototype.settlePromises=function(_){this._trampolineEnabled?x.call(this,_):this._schedule(function(){_._settlePromises()})}):(m.prototype.invokeLater=v,m.prototype.invoke=y,m.prototype.settlePromises=x),m.prototype._drainQueue=function(_){for(;_.length()>0;){var w=_.shift();if(typeof w=="function"){var S=_.shift(),T=_.shift();w.call(S,T)}else w._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},a.exports=m,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var m=!1,v=function(w,S){this._reject(S)},y=function(w,S){S.promiseRejectionQueued=!0,S.bindingPromise._then(v,v,null,this,w)},x=function(w,S){!(50397184&this._bitField)&&this._resolveCallback(S.target)},_=function(w,S){S.promiseRejectionQueued||this._reject(w)};c.prototype.bind=function(w){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var S=h(w),T=new c(f);T._propagateFrom(this,1);var P=this._target();if(T._setBoundTo(S),S instanceof c){var k={promiseRejectionQueued:!1,promise:T,target:P,bindingPromise:S};P._then(f,y,void 0,T,k),S._then(x,_,void 0,T,k),T._setOnCancel(S)}else T._resolveCallback(P);return T},c.prototype._setBoundTo=function(w){w!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=w):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(w,S){return c.resolve(S).bind(w)}}},{}],4:[function(s,a,l){var c;typeof Promise<"u"&&(c=Promise);var f=s("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},a.exports=f},{"./promise":22}],5:[function(s,a,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}a.exports=function(p){var m=s("./util"),v=m.canEvaluate;function y(w){return function(S,T){var P;if(S!=null&&(P=S[T]),typeof P!="function"){var k="Object "+m.classString(S)+" has no method '"+m.toString(T)+"'";throw new p.TypeError(k)}return P}(w,this.pop()).apply(w,this)}function x(w){return w[this]}function _(w){var S=+this;return S<0&&(S=Math.max(0,S+w.length)),w[S]}m.isIdentifier,p.prototype.call=function(w){var S=[].slice.call(arguments,1);return S.push(w),this._then(y,void 0,void 0,S,void 0)},p.prototype.get=function(w){var S;if(typeof w=="number")S=_;else if(v){var T=(void 0)(w);S=T!==null?T:x}else S=x;return this._then(S,void 0,void 0,w,void 0)}}},{"./util":36}],6:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),v=m.tryCatch,y=m.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,w=_;_._isCancellable();){if(!_._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var S=_._cancellationParent;if(S==null||!S._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),w=_,_=S}},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(_,w){if(m.isArray(_))for(var S=0;S<_.length;++S)this._doInvokeOnCancel(_[S],w);else if(_!==void 0)if(typeof _=="function"){if(!w){var T=v(_).call(this._boundValue());T===y&&(this._attachExtraTrace(T.e),x.throwLater(T.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(s,a,l){a.exports=function(c){var f=s("./util"),h=s("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(v,y,x){return function(_){var w=x._boundValue();e:for(var S=0;S<v.length;++S){var T=v[S];if(T===Error||T!=null&&T.prototype instanceof Error){if(_ instanceof T)return p(y).call(w,_)}else if(typeof T=="function"){var P=p(T).call(w,_);if(P===m)return P;if(P)return p(y).call(w,_)}else if(f.isObject(_)){for(var k=h(T),N=0;N<k.length;++N){var D=k[N];if(T[D]!=_[D])continue e}return p(y).call(w,_)}}return c}}}},{"./es5":13,"./util":36}],8:[function(s,a,l){a.exports=function(c){var f=!1,h=[];function p(){this._trace=new p.CapturedTrace(m())}function m(){var v=h.length-1;if(v>=0)return h[v]}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,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=h.pop(),y=v._promiseCreated;return v._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=c.prototype._pushContext,y=c.prototype._popContext,x=c._peekContext,_=c.prototype._peekContext,w=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=x,c.prototype._peekContext=_,c.prototype._promiseCreated=w,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var S=this._peekContext();S&&S._promiseCreated==null&&(S._promiseCreated=this)}},p}},{}],9:[function(s,a,l){a.exports=function(c,f){var h,p,m,v=c._getDomain,y=c._async,x=s("./errors").Warning,_=s("./util"),w=_.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,D=!1,z=_.env("BLUEBIRD_DEBUG")!=0,A=!(_.env("BLUEBIRD_WARNINGS")==0||!z&&!_.env("BLUEBIRD_WARNINGS")),W=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!z&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),Y=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ge("rejectionHandled",h,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 ce=this._settledValue();this._setUnhandledRejectionIsNotified(),ge("unhandledRejection",p,ce,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(ce,de,be){return I(ce,de,be||this)},c.onPossiblyUnhandledRejection=function(ce){var de=v();p=typeof ce=="function"?de===null?ce:_.domainBind(de,ce):void 0},c.onUnhandledRejectionHandled=function(ce){var de=v();h=typeof ce=="function"?de===null?ce:_.domainBind(de,ce):void 0};var J=function(){};c.longStackTraces=function(){if(y.haveItemsQueued()&&!Ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!Ne.longStackTraces&&ue()){var ce=c.prototype._captureStackTrace,de=c.prototype._attachExtraTrace;Ne.longStackTraces=!0,J=function(){if(y.haveItemsQueued()&&!Ne.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);c.prototype._captureStackTrace=ce,c.prototype._attachExtraTrace=de,f.deactivateLongStackTraces(),y.enableTrampoline(),Ne.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=R,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Ne.longStackTraces&&ue()};var Z=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return _.global.dispatchEvent(ce),function(de,be){var ye=new CustomEvent(de.toLowerCase(),{detail:be,cancelable:!0});return!_.global.dispatchEvent(ye)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),_.global.dispatchEvent(ce),function(de,be){var ye=new Event(de.toLowerCase(),{cancelable:!0});return ye.detail=be,!_.global.dispatchEvent(ye)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(ce),function(de,be){var ye=document.createEvent("CustomEvent");return ye.initCustomEvent(de.toLowerCase(),!1,!0,be),!_.global.dispatchEvent(ye)})}catch{}return function(){return!1}}(),ee=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(ce){var de="on"+ce.toLowerCase(),be=_.global[de];return!!be&&(be.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ie(ce,de){return{promise:de}}var oe={promiseCreated:ie,promiseFulfilled:ie,promiseRejected:ie,promiseResolved:ie,promiseCancelled:ie,promiseChained:function(ce,de,be){return{promise:de,child:be}},warning:function(ce,de){return{warning:de}},unhandledRejection:function(ce,de,be){return{reason:de,promise:be}},rejectionHandled:ie},G=function(ce){var de=!1;try{de=ee.apply(null,arguments)}catch(ye){y.throwLater(ye),de=!0}var be=!1;try{be=Z(ce,oe[ce].apply(null,arguments))}catch(ye){y.throwLater(ye),be=!0}return be||de};function F(){return!1}function j(ce,de,be){var ye=this;try{ce(de,be,function(Ce){if(typeof Ce!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(Ce));ye._attachCancellationCallback(Ce)})}catch(Ce){return Ce}}function B(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?_.isArray(de)?de.push(ce):this._setOnCancel([de,ce]):this._setOnCancel(ce)}function ne(){return this._onCancelField}function H(ce){this._onCancelField=ce}function q(){this._cancellationParent=void 0,this._onCancelField=void 0}function te(ce,de){if(1&de){this._cancellationParent=ce;var be=ce._branchesRemainingToCancel;be===void 0&&(be=0),ce._branchesRemainingToCancel=be+1}2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)}c.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?c.longStackTraces():!ce.longStackTraces&&c.hasLongStackTraces()&&J()),"warnings"in ce){var de=ce.warnings;Ne.warnings=!!de,Y=Ne.warnings,_.isObject(de)&&"wForgottenReturn"in de&&(Y=!!de.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!Ne.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=q,c.prototype._propagateFrom=te,c.prototype._onCancel=ne,c.prototype._setOnCancel=H,c.prototype._attachCancellationCallback=B,c.prototype._execute=j,se=te,Ne.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!Ne.monitoring?(Ne.monitoring=!0,c.prototype._fireEvent=G):!ce.monitoring&&Ne.monitoring&&(Ne.monitoring=!1,c.prototype._fireEvent=F)),c},c.prototype._fireEvent=F,c.prototype._execute=function(ce,de,be){try{ce(de,be)}catch(ye){return ye}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ce){},c.prototype._attachCancellationCallback=function(ce){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ce,de){};var se=function(ce,de){2&de&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function pe(){var ce=this._boundTo;return ce!==void 0&&ce instanceof c?ce.isFulfilled()?ce.value():void 0:ce}function O(){this._trace=new De(this._peekContext())}function R(ce,de){if(w(ce)){var be=this._trace;if(be!==void 0&&de&&(be=be._parent),be!==void 0)be.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var ye=K(ce);_.notEnumerableProp(ce,"stack",ye.message+`
`+ye.stack.join(`
`)),_.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function I(ce,de,be){if(Ne.warnings){var ye,Ce=new x(ce);if(de)be._attachExtraTrace(Ce);else if(Ne.longStackTraces&&(ye=c._peekContext()))ye.attachExtraTrace(Ce);else{var ke=K(Ce);Ce.stack=ke.message+`
`+ke.stack.join(`
`)}G("warning",Ce)||ae(Ce,"",!0)}}function X(ce){for(var de=[],be=0;be<ce.length;++be){var ye=ce[be],Ce=ye===" (No stack trace)"||k.test(ye),ke=Ce&&ve(ye);Ce&&!ke&&(D&&ye.charAt(0)!==" "&&(ye=" "+ye),de.push(ye))}return de}function K(ce){var de=ce.stack,be=ce.toString();return de=typeof de=="string"&&de.length>0?function(ye){for(var Ce=ye.stack.replace(/\s+$/g,"").split(`
`),ke=0;ke<Ce.length;++ke){var Ie=Ce[ke];if(Ie===" (No stack trace)"||k.test(Ie))break}return ke>0&&ye.name!="SyntaxError"&&(Ce=Ce.slice(ke)),Ce}(ce):[" (No stack trace)"],{message:be,stack:ce.name=="SyntaxError"?de:X(de)}}function ae(ce,de,be){if(typeof console<"u"){var ye;if(_.isObject(ce)){var Ce=ce.stack;ye=de+N(Ce,ce)}else ye=de+String(ce);typeof m=="function"?m(ye,be):typeof console.log!="function"&&typeof console.log!="object"||console.log(ye)}}function ge(ce,de,be,ye){var Ce=!1;try{typeof de=="function"&&(Ce=!0,ce==="rejectionHandled"?de(ye):de(be,ye))}catch(ke){y.throwLater(ke)}ce==="unhandledRejection"?G(ce,be,ye)||Ce||ae(be,"Unhandled rejection "):G(ce,ye)}function Le(ce){var de;if(typeof ce=="function")de="[function "+(ce.name||"anonymous")+"]";else{if(de=ce&&typeof ce.toString=="function"?ce.toString():_.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(de))try{de=JSON.stringify(ce)}catch{}de.length===0&&(de="(empty array)")}return"(<"+function(be){return be.length<41?be:be.substr(0,38)+"..."}(de)+">, no stack trace)"}function ue(){return typeof Re=="function"}var ve=function(){return!1},_e=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Te(ce){var de=ce.match(_e);if(de)return{fileName:de[1],line:parseInt(de[2],10)}}function De(ce){this._parent=ce,this._promisesCreated=0;var de=this._length=1+(ce===void 0?0:ce._length);Re(this,De),de>32&&this.uncycle()}_.inherits(De,Error),f.CapturedTrace=De,De.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var de=[],be={},ye=0,Ce=this;Ce!==void 0;++ye)de.push(Ce),Ce=Ce._parent;for(ye=(ce=this._length=ye)-1;ye>=0;--ye){var ke=de[ye].stack;be[ke]===void 0&&(be[ke]=ye)}for(ye=0;ye<ce;++ye){var Ie=be[de[ye].stack];if(Ie!==void 0&&Ie!==ye){Ie>0&&(de[Ie-1]._parent=void 0,de[Ie-1]._length=1),de[ye]._parent=void 0,de[ye]._length=1;var Je=ye>0?de[ye-1]:this;Ie<ce-1?(Je._parent=de[Ie+1],Je._parent.uncycle(),Je._length=Je._parent._length+1):(Je._parent=void 0,Je._length=1);for(var et=Je._length+1,Ge=ye-2;Ge>=0;--Ge)de[Ge]._length=et,et++;return}}}},De.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var de=K(ce),be=de.message,ye=[de.stack],Ce=this;Ce!==void 0;)ye.push(X(Ce.stack.split(`
`))),Ce=Ce._parent;(function(ke){for(var Ie=ke[0],Je=1;Je<ke.length;++Je){for(var et=ke[Je],Ge=Ie.length-1,Ht=Ie[Ge],Ft=-1,wn=et.length-1;wn>=0;--wn)if(et[wn]===Ht){Ft=wn;break}for(wn=Ft;wn>=0;--wn){var ir=et[wn];if(Ie[Ge]!==ir)break;Ie.pop(),Ge--}Ie=et}})(ye),function(ke){for(var Ie=0;Ie<ke.length;++Ie)(ke[Ie].length===0||Ie+1<ke.length&&ke[Ie][0]===ke[Ie+1][0])&&(ke.splice(Ie,1),Ie--)}(ye),_.notEnumerableProp(ce,"stack",function(ke,Ie){for(var Je=0;Je<Ie.length-1;++Je)Ie[Je].push("From previous event:"),Ie[Je]=Ie[Je].join(`
`);return Je<Ie.length&&(Ie[Je]=Ie[Je].join(`
`)),ke+`
`+Ie.join(`
`)}(be,ye)),_.notEnumerableProp(ce,"__stackCleaned__",!0)}};var Re=function(){var ce=/^\s*at\s*/,de=function(ke,Ie){return typeof ke=="string"?ke:Ie.name!==void 0&&Ie.message!==void 0?Ie.toString():Le(Ie)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,k=ce,N=de;var be=Error.captureStackTrace;return ve=function(ke){return S.test(ke)},function(ke,Ie){Error.stackTraceLimit+=6,be(ke,Ie),Error.stackTraceLimit-=6}}var ye,Ce=new Error;if(typeof Ce.stack=="string"&&Ce.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return k=/@/,N=de,D=!0,function(ke){ke.stack=new Error().stack};try{throw new Error}catch(ke){ye="stack"in ke}return"stack"in Ce||!ye||typeof Error.stackTraceLimit!="number"?(N=function(ke,Ie){return typeof ke=="string"?ke:typeof Ie!="object"&&typeof Ie!="function"||Ie.name===void 0||Ie.message===void 0?Le(Ie):Ie.toString()},null):(k=ce,N=de,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Ie){ke.stack=Ie.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},_.isNode&&r.stderr.isTTY?m=function(ce,de){var be=de?"\x1B[33m":"\x1B[31m";console.warn(be+ce+`\x1B[0m
`)}:_.isNode||typeof new Error().stack!="string"||(m=function(ce,de){console.warn("%c"+ce,de?"color: darkorange":"color: red")}));var Ne={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return W&&c.longStackTraces(),{longStackTraces:function(){return Ne.longStackTraces},warnings:function(){return Ne.warnings},cancellation:function(){return Ne.cancellation},monitoring:function(){return Ne.monitoring},propagateFromFunction:function(){return se},boundValueFunction:function(){return pe},checkForgottenReturns:function(ce,de,be,ye,Ce){if(ce===void 0&&de!==null&&Y){if(Ce!==void 0&&Ce._returnedNonUndefined()||!(65535&ye._bitField))return;be&&(be+=" ");var ke="",Ie="";if(de._trace){for(var Je=de._trace.stack.split(`
`),et=X(Je),Ge=et.length-1;Ge>=0;--Ge){var Ht=et[Ge];if(!T.test(Ht)){var Ft=Ht.match(P);Ft&&(ke="at "+Ft[1]+":"+Ft[2]+":"+Ft[3]+" ");break}}if(et.length>0){var wn=et[0];for(Ge=0;Ge<Je.length;++Ge)if(Je[Ge]===wn){Ge>0&&(Ie=`
`+Je[Ge-1]);break}}}var ir="a promise was created in a "+be+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Ie;ye._warn(ir,!0,de)}},setBounds:function(ce,de){if(ue()){for(var be,ye,Ce=ce.stack.split(`
`),ke=de.stack.split(`
`),Ie=-1,Je=-1,et=0;et<Ce.length;++et)if(Ge=Te(Ce[et])){be=Ge.fileName,Ie=Ge.line;break}for(et=0;et<ke.length;++et){var Ge;if(Ge=Te(ke[et])){ye=Ge.fileName,Je=Ge.line;break}}Ie<0||Je<0||!be||!ye||be!==ye||Ie>=Je||(ve=function(Ht){if(S.test(Ht))return!0;var Ft=Te(Ht);return!!(Ft&&Ft.fileName===be&&Ie<=Ft.line&&Ft.line<=Je)})}},warn:I,deprecated:function(ce,de){var be=ce+" is deprecated and will be removed in a future version.";return de&&(be+=" Use "+de+" instead."),I(be)},CapturedTrace:De,fireDomEvent:Z,fireGlobalEvent:ee}}},{"./errors":12,"./util":36}],10:[function(s,a,l){a.exports=function(c){function f(){return this.value}function h(){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(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},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 m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(v){return h(this,v,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(v){return h(this,v,f,f)},c.each=function(v,y){return h(v,y,f,0)._then(m,void 0,void 0,v,void 0)},c.mapSeries=function(v,y){return h(v,y,f,f)}}},{}],12:[function(s,a,l){var c,f,h=s("./es5"),p=h.freeze,m=s("./util"),v=m.inherits,y=m.notEnumerableProp;function x(A,W){function Y(J){if(!(this instanceof Y))return new Y(J);y(this,"message",typeof J=="string"?J:W),y(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(Y,Error),Y}var _=x("Warning","warning"),w=x("CancellationError","cancellation error"),S=x("TimeoutError","timeout error"),T=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(" "),k=0;k<P.length;++k)typeof Array.prototype[P[k]]=="function"&&(T.prototype[P[k]]=Array.prototype[P[k]]);h.defineProperty(T.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),T.prototype.isOperational=!0;var N=0;function D(A){if(!(this instanceof D))return new D(A);y(this,"name","OperationalError"),y(this,"message",A),this.cause=A,this.isOperational=!0,A instanceof Error?(y(this,"message",A.message),y(this,"stack",A.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}T.prototype.toString=function(){var A=Array(4*N+1).join(" "),W=`
`+A+`AggregateError of:
`;N++,A=Array(4*N+1).join(" ");for(var Y=0;Y<this.length;++Y){for(var J=this[Y]===this?"[Circular AggregateError]":this[Y]+"",Z=J.split(`
`),ee=0;ee<Z.length;++ee)Z[ee]=A+Z[ee];W+=(J=Z.join(`
`))+`
`}return N--,W},v(D,Error);var z=Error.__BluebirdErrorTypes__;z||(z=p({CancellationError:w,TimeoutError:S,OperationalError:D,RejectionError:D,AggregateError:T}),h.defineProperty(Error,"__BluebirdErrorTypes__",{value:z,writable:!1,enumerable:!1,configurable:!1})),a.exports={Error,TypeError:c,RangeError:f,CancellationError:z.CancellationError,OperationalError:z.OperationalError,TimeoutError:z.TimeoutError,AggregateError:z.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(s,a,l){var c=function(){return this===void 0}();if(c)a.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(v,y){var x=Object.getOwnPropertyDescriptor(v,y);return!(x&&!x.writable&&!x.set)}};else{var f={}.hasOwnProperty,h={}.toString,p={}.constructor.prototype,m=function(v){var y=[];for(var x in v)f.call(v,x)&&y.push(x);return y};a.exports={isArray:function(v){try{return h.call(v)==="[object Array]"}catch{return!1}},keys:m,names:m,defineProperty:function(v,y,x){return v[y]=x.value,v},getDescriptor:function(v,y){return{value:v[y]}},freeze:function(v){return v},getPrototypeOf:function(v){try{return Object(v).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,a,l){a.exports=function(c,f){var h=c.map;c.prototype.filter=function(p,m){return h(this,p,m,f)},c.filter=function(p,m,v){return h(p,m,v,f)}}},{}],15:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.CancellationError,v=p.errorObj,y=s("./catch_filter")(h);function x(k,N,D){this.promise=k,this.type=N,this.handler=D,this.called=!1,this.cancelPromise=null}function _(k){this.finallyHandler=k}function w(k,N){return k.cancelPromise!=null&&(arguments.length>1?k.cancelPromise._reject(N):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function S(){return P.call(this,this.promise._target()._settledValue())}function T(k){if(!w(this,k))return v.e=k,v}function P(k){var N=this.promise,D=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?D.call(N._boundValue()):D.call(N._boundValue(),k);if(z===h)return z;if(z!==void 0){N._setReturnedNonUndefined();var A=f(z,N);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var W=new m("late cancellation observer");return N._attachExtraTrace(W),v.e=W,v}A.isPending()&&A._attachCancellationCallback(new _(this))}return A._then(S,T,void 0,this,void 0)}}}return N.isRejected()?(w(this),v.e=k,v):(w(this),k)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){w(this.finallyHandler)},c.prototype._passThrough=function(k,N,D,z){return typeof k!="function"?this.then():this._then(D,z,void 0,new x(this,N,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,P,P)},c.prototype.tap=function(k){return this._passThrough(k,1,P)},c.prototype.tapCatch=function(k){var N=arguments.length;if(N===1)return this._passThrough(k,1,void 0,P);var D,z=new Array(N-1),A=0;for(D=0;D<N-1;++D){var W=arguments[D];if(!p.isObject(W))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(W)));z[A++]=W}z.length=A;var Y=arguments[D];return this._passThrough(y(z,Y,this),1,void 0,P)},x}},{"./catch_filter":7,"./util":36}],16:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=s("./errors").TypeError,x=s("./util"),_=x.errorObj,w=x.tryCatch,S=[];function T(P,k,N,D){if(v.cancellation()){var z=new c(h),A=this._finallyPromise=new c(h);this._promise=z.lastly(function(){return A}),z._captureStackTrace(),z._setOnCancel(this)}else(this._promise=new c(h))._captureStackTrace();this._stack=D,this._generatorFunction=P,this._receiver=k,this._generator=void 0,this._yieldHandlers=typeof N=="function"?[N].concat(S):S,this._yieldedPromise=null,this._cancellationPhase=!1}x.inherits(T,m),T.prototype._isResolved=function(){return this._promise===null},T.prototype._cleanup=function(){this._promise=this._generator=null,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},T.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=w(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var k=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=k,this._promise._attachExtraTrace(k),this._promise._pushContext(),P=w(this._generator.throw).call(this._generator,k),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},T.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var k=w(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(k)},T.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var k=w(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(k)},T.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var P=this._yieldedPromise;this._yieldedPromise=null,P.cancel()}},T.prototype.promise=function(){return this._promise},T.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},T.prototype._continue=function(P){var k=this._promise;if(P===_)return this._cleanup(),this._cancellationPhase?k.cancel():k._rejectCallback(P.e,!1);var N=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?k.cancel():k._resolveCallback(N);var D=p(N,this._promise);if(D instanceof c||(D=function(A,W,Y){for(var J=0;J<W.length;++J){Y._pushContext();var Z=w(W[J])(A);if(Y._popContext(),Z===_){Y._pushContext();var ee=c.reject(_.e);return Y._popContext(),ee}var ie=p(Z,Y);if(ie instanceof c)return ie}return null}(D,this._yieldHandlers,this._promise))!==null){var z=(D=D._target())._bitField;50397184&z?33554432&z?c._async.invoke(this._promiseFulfilled,this,D._value()):16777216&z?c._async.invoke(this._promiseRejected,this,D._reason()):this._promiseCancelled():(this._yieldedPromise=D,D._proxy(this,null))}else this._promiseRejected(new y(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(N))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},c.coroutine=function(P,k){if(typeof P!="function")throw new y(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var N=Object(k).yieldHandler,D=T,z=new Error().stack;return function(){var A=P.apply(this,arguments),W=new D(void 0,void 0,N,z),Y=W.promise();return W._generator=A,W._promiseFulfilled(void 0),Y}},c.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new y("expecting a function but got "+x.classString(P));S.push(P)},c.spawn=function(P){if(v.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return f(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var k=new T(P,this),N=k.promise();return k._run(c.spawn),N}}},{"./errors":12,"./util":36}],17:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=s("./util");y.canEvaluate,y.tryCatch,y.errorObj,c.join=function(){var x,_=arguments.length-1;_>0&&typeof arguments[_]=="function"&&(x=arguments[_]);var w=[].slice.call(arguments);x&&w.pop();var S=new f(w).promise();return x!==void 0?S.spread(x):S}}},{"./util":36}],18:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=c._getDomain,x=s("./util"),_=x.tryCatch,w=x.errorObj,S=c._async;function T(k,N,D,z){this.constructor$(k),this._promise._captureStackTrace();var A=y();this._callback=A===null?N:x.domainBind(A,N),this._preservedValues=z===m?new Array(this.length()):null,this._limit=D,this._inFlight=0,this._queue=[],S.invoke(this._asyncInit,this,void 0)}function P(k,N,D,z){if(typeof N!="function")return h("expecting a function but got "+x.classString(N));var A=0;if(D!==void 0){if(typeof D!="object"||D===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(D)));if(typeof D.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(D.concurrency)));A=D.concurrency}return new T(k,N,A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,z).promise()}x.inherits(T,f),T.prototype._asyncInit=function(){this._init$(void 0,-2)},T.prototype._init=function(){},T.prototype._promiseFulfilled=function(k,N){var D=this._values,z=this.length(),A=this._preservedValues,W=this._limit;if(N<0){if(D[N=-1*N-1]=k,W>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(W>=1&&this._inFlight>=W)return D[N]=k,this._queue.push(N),!1;A!==null&&(A[N]=k);var Y=this._promise,J=this._callback,Z=Y._boundValue();Y._pushContext();var ee=_(J).call(Z,k,N,z),ie=Y._popContext();if(v.checkForgottenReturns(ee,ie,A!==null?"Promise.filter":"Promise.map",Y),ee===w)return this._reject(ee.e),!0;var oe=p(ee,this._promise);if(oe instanceof c){var G=(oe=oe._target())._bitField;if(!(50397184&G))return W>=1&&this._inFlight++,D[N]=oe,oe._proxy(this,-1*(N+1)),!1;if(!(33554432&G))return 16777216&G?(this._reject(oe._reason()),!0):(this._cancel(),!0);ee=oe._value()}D[N]=ee}return++this._totalResolved>=z&&(A!==null?this._filter(D,A):this._resolve(D),!0)},T.prototype._drainQueue=function(){for(var k=this._queue,N=this._limit,D=this._values;k.length>0&&this._inFlight<N;){if(this._isResolved())return;var z=k.pop();this._promiseFulfilled(D[z],z)}},T.prototype._filter=function(k,N){for(var D=N.length,z=new Array(D),A=0,W=0;W<D;++W)k[W]&&(z[A++]=N[W]);z.length=A,this._resolve(z)},T.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(k,N){return P(this,k,N,null)},c.map=function(k,N,D,z){return P(k,N,D,z)}}},{"./util":36}],19:[function(s,a,l){a.exports=function(c,f,h,p,m){var v=s("./util"),y=v.tryCatch;c.method=function(x){if(typeof x!="function")throw new c.TypeError("expecting a function but got "+v.classString(x));return function(){var _=new c(f);_._captureStackTrace(),_._pushContext();var w=y(x).apply(this,arguments),S=_._popContext();return m.checkForgottenReturns(w,S,"Promise.method",_),_._resolveFromSyncValue(w),_}},c.attempt=c.try=function(x){if(typeof x!="function")return p("expecting a function but got "+v.classString(x));var _,w=new c(f);if(w._captureStackTrace(),w._pushContext(),arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],T=arguments[2];_=v.isArray(S)?y(x).apply(T,S):y(x).call(T,S)}else _=y(x)();var P=w._popContext();return m.checkForgottenReturns(_,P,"Promise.try",w),w._resolveFromSyncValue(_),w},c.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(s,a,l){var c=s("./util"),f=c.maybeWrapAsError,h=s("./errors").OperationalError,p=s("./es5"),m=/^(?:name|message|stack|cause)$/;function v(y){var x;if(function(T){return T instanceof Error&&p.getPrototypeOf(T)===Error.prototype}(y)){(x=new h(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var _=p.keys(y),w=0;w<_.length;++w){var S=_[w];m.test(S)||(x[S]=y[S])}return x}return c.markAsOriginatingFromRejection(y),y}a.exports=function(y,x){return function(_,w){if(y!==null){if(_){var S=v(f(_));y._attachExtraTrace(S),y._reject(S)}else if(x){var T=[].slice.call(arguments,1);y._fulfill(T)}else y._fulfill(w);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=c._async,p=f.tryCatch,m=f.errorObj;function v(_,w){if(!f.isArray(_))return y.call(this,_,w);var S=p(w).apply(this._boundValue(),[null].concat(_));S===m&&h.throwLater(S.e)}function y(_,w){var S=this._boundValue(),T=_===void 0?p(w).call(S,null):p(w).call(S,null,_);T===m&&h.throwLater(T.e)}function x(_,w){if(!_){var S=new Error(_+"");S.cause=_,_=S}var T=p(w).call(this._boundValue(),_);T===m&&h.throwLater(T.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,w){if(typeof _=="function"){var S=y;w!==void 0&&Object(w).spread&&(S=v),this._then(S,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(s,a,l){a.exports=function(){var c=function(){return new T(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},f=function(){return new F.PromiseInspection(this._target())},h=function(H){return F.reject(new T(H))};function p(){}var m,v={},y=s("./util");m=y.isNode?function(){var H=r.domain;return H===void 0&&(H=null),H}:function(){return null},y.notEnumerableProp(F,"_getDomain",m);var x=s("./es5"),_=s("./async"),w=new _;x.defineProperty(F,"_async",{value:w});var S=s("./errors"),T=F.TypeError=S.TypeError;F.RangeError=S.RangeError;var P=F.CancellationError=S.CancellationError;F.TimeoutError=S.TimeoutError,F.OperationalError=S.OperationalError,F.RejectionError=S.OperationalError,F.AggregateError=S.AggregateError;var k=function(){},N={},D={},z=s("./thenables")(F,k),A=s("./promise_array")(F,k,z,h,p),W=s("./context")(F),Y=W.create,J=s("./debuggability")(F,W),Z=(J.CapturedTrace,s("./finally")(F,z,D)),ee=s("./catch_filter")(D),ie=s("./nodeback"),oe=y.errorObj,G=y.tryCatch;function F(H){H!==k&&function(q,te){if(q==null||q.constructor!==F)throw new T(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof te!="function")throw new T("expecting a function but got "+y.classString(te))}(this,H),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(H),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function j(H){this.promise._resolveCallback(H)}function B(H){this.promise._rejectCallback(H,!1)}function ne(H){var q=new F(k);q._fulfillmentHandler0=H,q._rejectionHandler0=H,q._promise0=H,q._receiver0=H}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(H){var q=arguments.length;if(q>1){var te,se=new Array(q-1),pe=0;for(te=0;te<q-1;++te){var O=arguments[te];if(!y.isObject(O))return h("Catch statement predicate: expecting an object but got "+y.classString(O));se[pe++]=O}return se.length=pe,H=arguments[te],this.then(void 0,ee(se,H,this))}return this.then(void 0,H)},F.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},F.prototype.then=function(H,q){if(J.warnings()&&arguments.length>0&&typeof H!="function"&&typeof q!="function"){var te=".then() only accepts functions but was passed: "+y.classString(H);arguments.length>1&&(te+=", "+y.classString(q)),this._warn(te)}return this._then(H,q,void 0,void 0,void 0)},F.prototype.done=function(H,q){this._then(H,q,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(H){return typeof H!="function"?h("expecting a function but got "+y.classString(H)):this.all()._then(H,void 0,void 0,N,void 0)},F.prototype.toJSON=function(){var H={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(H.fulfillmentValue=this.value(),H.isFulfilled=!0):this.isRejected()&&(H.rejectionReason=this.reason(),H.isRejected=!0),H},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},F.prototype.error=function(H){return this.caught(y.originatesFromRejection,H)},F.getNewLibraryCopy=a.exports,F.is=function(H){return H instanceof F},F.fromNode=F.fromCallback=function(H){var q=new F(k);q._captureStackTrace();var te=arguments.length>1&&!!Object(arguments[1]).multiArgs,se=G(H)(ie(q,te));return se===oe&&q._rejectCallback(se.e,!0),q._isFateSealed()||q._setAsyncGuaranteed(),q},F.all=function(H){return new A(H).promise()},F.cast=function(H){var q=z(H);return q instanceof F||((q=new F(k))._captureStackTrace(),q._setFulfilled(),q._rejectionHandler0=H),q},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(H){var q=new F(k);return q._captureStackTrace(),q._rejectCallback(H,!0),q},F.setScheduler=function(H){if(typeof H!="function")throw new T("expecting a function but got "+y.classString(H));return w.setScheduler(H)},F.prototype._then=function(H,q,te,se,pe){var O=pe!==void 0,R=O?pe:new F(k),I=this._target(),X=I._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),se===void 0&&2097152&this._bitField&&(se=50397184&X?this._boundValue():I===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var K=m();if(50397184&X){var ae,ge,Le=I._settlePromiseCtx;33554432&X?(ge=I._rejectionHandler0,ae=H):16777216&X?(ge=I._fulfillmentHandler0,ae=q,I._unsetRejectionIsUnhandled()):(Le=I._settlePromiseLateCancellationObserver,ge=new P("late cancellation observer"),I._attachExtraTrace(ge),ae=q),w.invoke(Le,I,{handler:K===null?ae:typeof ae=="function"&&y.domainBind(K,ae),promise:R,receiver:se,value:ge})}else I._addCallbacks(H,q,R,se,K);return R},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(H){this._bitField=-65536&this._bitField|65535&H},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){w.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(H){var q=H===0?this._receiver0:this[4*H-4+3];if(q!==v)return q===void 0&&this._isBound()?this._boundValue():q},F.prototype._promiseAt=function(H){return this[4*H-4+2]},F.prototype._fulfillmentHandlerAt=function(H){return this[4*H-4+0]},F.prototype._rejectionHandlerAt=function(H){return this[4*H-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(H){H._bitField;var q=H._fulfillmentHandler0,te=H._rejectionHandler0,se=H._promise0,pe=H._receiverAt(0);pe===void 0&&(pe=v),this._addCallbacks(q,te,se,pe,null)},F.prototype._migrateCallbackAt=function(H,q){var te=H._fulfillmentHandlerAt(q),se=H._rejectionHandlerAt(q),pe=H._promiseAt(q),O=H._receiverAt(q);O===void 0&&(O=v),this._addCallbacks(te,se,pe,O,null)},F.prototype._addCallbacks=function(H,q,te,se,pe){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=te,this._receiver0=se,typeof H=="function"&&(this._fulfillmentHandler0=pe===null?H:y.domainBind(pe,H)),typeof q=="function"&&(this._rejectionHandler0=pe===null?q:y.domainBind(pe,q));else{var R=4*O-4;this[R+2]=te,this[R+3]=se,typeof H=="function"&&(this[R+0]=pe===null?H:y.domainBind(pe,H)),typeof q=="function"&&(this[R+1]=pe===null?q:y.domainBind(pe,q))}return this._setLength(O+1),O},F.prototype._proxy=function(H,q){this._addCallbacks(void 0,void 0,q,H,null)},F.prototype._resolveCallback=function(H,q){if(!(117506048&this._bitField)){if(H===this)return this._rejectCallback(c(),!1);var te=z(H,this);if(!(te instanceof F))return this._fulfill(H);q&&this._propagateFrom(te,2);var se=te._target();if(se!==this){var pe=se._bitField;if(50397184&pe)if(33554432&pe)this._fulfill(se._value());else if(16777216&pe)this._reject(se._reason());else{var I=new P("late cancellation observer");se._attachExtraTrace(I),this._reject(I)}else{var O=this._length();O>0&&se._migrateCallback0(this);for(var R=1;R<O;++R)se._migrateCallbackAt(this,R);this._setFollowing(),this._setLength(0),this._setFollowee(se)}}else this._reject(c())}},F.prototype._rejectCallback=function(H,q,te){var se=y.ensureErrorObject(H),pe=se===H;if(!pe&&!te&&J.warnings()){var O="a promise was rejected with a non-error: "+y.classString(H);this._warn(O,!0)}this._attachExtraTrace(se,!!q&&pe),this._reject(H)},F.prototype._resolveFromExecutor=function(H){if(H!==k){var q=this;this._captureStackTrace(),this._pushContext();var te=!0,se=this._execute(H,function(pe){q._resolveCallback(pe)},function(pe){q._rejectCallback(pe,te)});te=!1,this._popContext(),se!==void 0&&q._rejectCallback(se,!0)}},F.prototype._settlePromiseFromHandler=function(H,q,te,se){var pe=se._bitField;if(!(65536&pe)){var O;se._pushContext(),q===N?te&&typeof te.length=="number"?O=G(H).apply(this._boundValue(),te):(O=oe).e=new T("cannot .spread() a non-array: "+y.classString(te)):O=G(H).call(q,te);var R=se._popContext();!(65536&(pe=se._bitField))&&(O===D?se._reject(te):O===oe?se._rejectCallback(O.e,!1):(J.checkForgottenReturns(O,R,"",se,this),se._resolveCallback(O)))}},F.prototype._target=function(){for(var H=this;H._isFollowing();)H=H._followee();return H},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(H){this._rejectionHandler0=H},F.prototype._settlePromise=function(H,q,te,se){var pe=H instanceof F,O=this._bitField,R=(134217728&O)!=0;65536&O?(pe&&H._invokeInternalOnCancel(),te instanceof Z&&te.isFinallyHandler()?(te.cancelPromise=H,G(q).call(te,se)===oe&&H._reject(oe.e)):q===f?H._fulfill(f.call(te)):te instanceof p?te._promiseCancelled(H):pe||H instanceof A?H._cancel():te.cancel()):typeof q=="function"?pe?(R&&H._setAsyncGuaranteed(),this._settlePromiseFromHandler(q,te,se,H)):q.call(te,se,H):te instanceof p?te._isResolved()||(33554432&O?te._promiseFulfilled(se,H):te._promiseRejected(se,H)):pe&&(R&&H._setAsyncGuaranteed(),33554432&O?H._fulfill(se):H._reject(se))},F.prototype._settlePromiseLateCancellationObserver=function(H){var q=H.handler,te=H.promise,se=H.receiver,pe=H.value;typeof q=="function"?te instanceof F?this._settlePromiseFromHandler(q,se,pe,te):q.call(se,pe,te):te instanceof F&&te._reject(pe)},F.prototype._settlePromiseCtx=function(H){this._settlePromise(H.promise,H.handler,H.receiver,H.value)},F.prototype._settlePromise0=function(H,q,te){var se=this._promise0,pe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(se,H,pe,q)},F.prototype._clearCallbackDataAtIndex=function(H){var q=4*H-4;this[q+2]=this[q+3]=this[q+0]=this[q+1]=void 0},F.prototype._fulfill=function(H){var q=this._bitField;if(!((117506048&q)>>>16)){if(H===this){var te=c();return this._attachExtraTrace(te),this._reject(te)}this._setFulfilled(),this._rejectionHandler0=H,(65535&q)>0&&(134217728&q?this._settlePromises():w.settlePromises(this))}},F.prototype._reject=function(H){var q=this._bitField;if(!((117506048&q)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=H,this._isFinal())return w.fatalError(H,y.isNode);(65535&q)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(H,q){for(var te=1;te<H;te++){var se=this._fulfillmentHandlerAt(te),pe=this._promiseAt(te),O=this._receiverAt(te);this._clearCallbackDataAtIndex(te),this._settlePromise(pe,se,O,q)}},F.prototype._rejectPromises=function(H,q){for(var te=1;te<H;te++){var se=this._rejectionHandlerAt(te),pe=this._promiseAt(te),O=this._receiverAt(te);this._clearCallbackDataAtIndex(te),this._settlePromise(pe,se,O,q)}},F.prototype._settlePromises=function(){var H=this._bitField,q=65535&H;if(q>0){if(16842752&H){var te=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,te,H),this._rejectPromises(q,te)}else{var se=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,se,H),this._fulfillPromises(q,se)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var H=this._bitField;return 33554432&H?this._rejectionHandler0:16777216&H?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new F(k),resolve:j,reject:B}},y.notEnumerableProp(F,"_makeSelfResolutionError",c),s("./method")(F,k,z,h,J),s("./bind")(F,k,z,J),s("./cancel")(F,A,h,J),s("./direct_resolve")(F),s("./synchronous_inspection")(F),s("./join")(F,A,z,k,w,m),F.Promise=F,F.version="3.5.1",s("./map.js")(F,A,h,z,k,J),s("./call_get.js")(F),s("./using.js")(F,h,z,Y,k,J),s("./timers.js")(F,k,J),s("./generators.js")(F,h,k,z,p,J),s("./nodeify.js")(F),s("./promisify.js")(F,k),s("./props.js")(F,A,z,h),s("./race.js")(F,k,z,h),s("./reduce.js")(F,A,h,z,k,J),s("./settle.js")(F,A,J),s("./some.js")(F,A,h),s("./filter.js")(F,k),s("./each.js")(F,k),s("./any.js")(F),y.toFastProperties(F),y.toFastProperties(F.prototype),ne({a:1}),ne({b:2}),ne({c:3}),ne(1),ne(function(){}),ne(void 0),ne(!1),ne(new F(k)),J.setBounds(_.firstLineError,y.lastLineError),F}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,a,l){a.exports=function(c,f,h,p,m){var v=s("./util");function y(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 v.isArray,v.inherits(y,m),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(_,w){var S=h(this._values,this._promise);if(S instanceof c){var T=(S=S._target())._bitField;if(this._values=S,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),S._then(x,this._reject,void 0,this,w);if(!(33554432&T))return 16777216&T?this._reject(S._reason()):this._cancel();S=S._value()}if((S=v.asArray(S))!==null)S.length!==0?this._iterate(S):w===-5?this._resolveEmptyArray():this._resolve(function(k){switch(w){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+v.classString(S)).reason();this._promise._rejectCallback(P,!1)}},y.prototype._iterate=function(x){var _=this.getActualLength(x.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var w=this._promise,S=!1,T=null,P=0;P<_;++P){var k=h(x[P],w);T=k instanceof c?(k=k._target())._bitField:null,S?T!==null&&k.suppressUnhandledRejections():T!==null?50397184&T?S=33554432&T?this._promiseFulfilled(k._value(),P):16777216&T?this._promiseRejected(k._reason(),P):this._promiseCancelled(P):(k._proxy(this,P),this._values[P]=k):S=this._promiseFulfilled(k,P)}S||w._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var _=0;_<x.length;++_)x[_]instanceof c&&x[_].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(x){return x},y}},{"./util":36}],24:[function(s,a,l){a.exports=function(c,f){var h={},p=s("./util"),m=s("./nodeback"),v=p.withAppended,y=p.maybeWrapAsError,x=p.canEvaluate,_=s("./errors").TypeError,w={__isPromisified__:!0},S=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),T=function(Y){return p.isIdentifier(Y)&&Y.charAt(0)!=="_"&&Y!=="constructor"};function P(Y){return!S.test(Y)}function k(Y){try{return Y.__isPromisified__===!0}catch{return!1}}function N(Y,J,Z){var ee=p.getDataPropertyOrDefault(Y,J+Z,w);return!!ee&&k(ee)}function D(Y,J,Z,ee){for(var ie=p.inheritedDataKeys(Y),oe=[],G=0;G<ie.length;++G){var F=ie[G],j=Y[F],B=ee===T||T(F);typeof j!="function"||k(j)||N(Y,F,J)||!ee(F,j,Y,B)||oe.push(F,j)}return function(ne,H,q){for(var te=0;te<ne.length;te+=2){var se=ne[te];if(q.test(se)){for(var pe=se.replace(q,""),O=0;O<ne.length;O+=2)if(ne[O]===pe)throw new _(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",H))}}}(oe,J,Z),oe}var z=function(Y){return Y.replace(/([$])/,"\\$")},A=x?void 0:function(Y,J,Z,ee,ie,oe){var G=function(){return this}(),F=Y;function j(){var B=J;J===h&&(B=this);var ne=new c(f);ne._captureStackTrace();var H=typeof F=="string"&&this!==G?this[F]:Y,q=m(ne,oe);try{H.apply(B,v(arguments,q))}catch(te){ne._rejectCallback(y(te),!0,!0)}return ne._isFateSealed()||ne._setAsyncGuaranteed(),ne}return typeof F=="string"&&(Y=ee),p.notEnumerableProp(j,"__isPromisified__",!0),j};function W(Y,J,Z,ee,ie){for(var oe=new RegExp(z(J)+"$"),G=D(Y,J,oe,Z),F=0,j=G.length;F<j;F+=2){var B=G[F],ne=G[F+1],H=B+J;if(ee===A)Y[H]=A(B,h,B,ne,J,ie);else{var q=ee(ne,function(){return A(B,h,B,ne,J,ie)});p.notEnumerableProp(q,"__isPromisified__",!0),Y[H]=q}}return p.toFastProperties(Y),Y}c.promisify=function(Y,J){if(typeof Y!="function")throw new _("expecting a function but got "+p.classString(Y));if(k(Y))return Y;var Z=(J=Object(J)).context===void 0?h:J.context,ee=!!J.multiArgs,ie=function(oe,G,F){return A(oe,G,void 0,oe,null,ee)}(Y,Z);return p.copyDescriptors(Y,ie,P),ie},c.promisifyAll=function(Y,J){if(typeof Y!="function"&&typeof Y!="object")throw new _(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var Z=!!(J=Object(J)).multiArgs,ee=J.suffix;typeof ee!="string"&&(ee="Async");var ie=J.filter;typeof ie!="function"&&(ie=T);var oe=J.promisifier;if(typeof oe!="function"&&(oe=A),!p.isIdentifier(ee))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var G=p.inheritedDataKeys(Y),F=0;F<G.length;++F){var j=Y[G[F]];G[F]!=="constructor"&&p.isClass(j)&&(W(j.prototype,ee,ie,oe,Z),W(j,ee,ie,oe,Z))}return W(Y,ee,ie,oe,Z)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,a,l){a.exports=function(c,f,h,p){var m,v=s("./util"),y=v.isObject,x=s("./es5");typeof Map=="function"&&(m=Map);var _=function(){var T=0,P=0;function k(N,D){this[T]=N,this[T+P]=D,T++}return function(N){P=N.size,T=0;var D=new Array(2*N.size);return N.forEach(k,D),D}}();function w(T){var P,k=!1;if(m!==void 0&&T instanceof m)P=_(T),k=!0;else{var N=x.keys(T),D=N.length;P=new Array(2*D);for(var z=0;z<D;++z){var A=N[z];P[z]=T[A],P[z+D]=A}}this.constructor$(P),this._isMap=k,this._init$(void 0,k?-6:-3)}function S(T){var P,k=h(T);return y(k)?(P=k instanceof c?k._then(c.props,void 0,void 0,void 0,void 0):new w(k).promise(),k instanceof c&&P._propagateFrom(k,2),P):p(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}v.inherits(w,f),w.prototype._init=function(){},w.prototype._promiseFulfilled=function(T,P){if(this._values[P]=T,++this._totalResolved>=this._length){var k;if(this._isMap)k=function(A){for(var W=new m,Y=A.length/2|0,J=0;J<Y;++J){var Z=A[Y+J],ee=A[J];W.set(Z,ee)}return W}(this._values);else{k={};for(var N=this.length(),D=0,z=this.length();D<z;++D)k[this._values[D+N]]=this._values[D]}return this._resolve(k),!0}return!1},w.prototype.shouldCopyValues=function(){return!1},w.prototype.getActualLength=function(T){return T>>1},c.prototype.props=function(){return S(this)},c.props=function(T){return S(T)}}},{"./es5":13,"./util":36}],26:[function(s,a,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 h=this.length();this._checkCapacity(h+1),this[this._front+h&this._capacity-1]=f,this._length=h+1},c.prototype.push=function(f,h,p){var m=this.length()+3;if(this._willBeOverCapacity(m))return this._pushOne(f),this._pushOne(h),void this._pushOne(p);var v=this._front+m-3;this._checkCapacity(m);var y=this._capacity-1;this[v+0&y]=f,this[v+1&y]=h,this[v+2&y]=p,this._length=m},c.prototype.shift=function(){var f=this._front,h=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,h},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 h=this._capacity;this._capacity=f,function(p,m,v,y,x){for(var _=0;_<x;++_)v[_+y]=p[_+0],p[_+0]=void 0}(this,0,this,h,this._front+this._length&h-1)},a.exports=c},{}],27:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),v=function(x){return x.then(function(_){return y(_,x)})};function y(x,_){var w=h(x);if(w instanceof c)return v(w);if((x=m.asArray(x))===null)return p("expecting an array or an iterable object but got "+m.classString(x));var S=new c(f);_!==void 0&&S._propagateFrom(_,3);for(var T=S._fulfill,P=S._reject,k=0,N=x.length;k<N;++k){var D=x[k];(D!==void 0||k in x)&&c.cast(D)._then(T,P,void 0,S,null)}return S}c.race=function(x){return y(x,void 0)},c.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=c._getDomain,x=s("./util"),_=x.tryCatch;function w(N,D,z,A){this.constructor$(N);var W=y();this._fn=W===null?D:x.domainBind(W,D),z!==void 0&&(z=c.resolve(z))._attachCancellationCallback(this),this._initialValue=z,this._currentCancellable=null,this._eachValues=A===m?Array(this._length):A===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function S(N,D){this.isFulfilled()?D._resolve(N):D._reject(N)}function T(N,D,z,A){return typeof D!="function"?h("expecting a function but got "+x.classString(D)):new w(N,D,z,A).promise()}function P(N){this.accum=N,this.array._gotAccum(N);var D=p(this.value,this.array._promise);return D instanceof c?(this.array._currentCancellable=D,D._then(k,void 0,void 0,this,void 0)):k.call(this,D)}function k(N){var D,z=this.array,A=z._promise,W=_(z._fn);A._pushContext(),(D=z._eachValues!==void 0?W.call(A._boundValue(),N,this.index,this.length):W.call(A._boundValue(),this.accum,N,this.index,this.length))instanceof c&&(z._currentCancellable=D);var Y=A._popContext();return v.checkForgottenReturns(D,Y,z._eachValues!==void 0?"Promise.each":"Promise.reduce",A),D}x.inherits(w,f),w.prototype._gotAccum=function(N){this._eachValues!==void 0&&this._eachValues!==null&&N!==m&&this._eachValues.push(N)},w.prototype._eachComplete=function(N){return this._eachValues!==null&&this._eachValues.push(N),this._eachValues},w.prototype._init=function(){},w.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},w.prototype.shouldCopyValues=function(){return!1},w.prototype._resolve=function(N){this._promise._resolveCallback(N),this._values=null},w.prototype._resultCancelled=function(N){if(N===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},w.prototype._iterate=function(N){var D,z;this._values=N;var A=N.length;if(this._initialValue!==void 0?(D=this._initialValue,z=0):(D=c.resolve(N[0]),z=1),this._currentCancellable=D,!D.isRejected())for(;z<A;++z){var W={accum:null,value:N[z],index:z,length:A,array:this};D=D._then(P,void 0,void 0,W,void 0)}this._eachValues!==void 0&&(D=D._then(this._eachComplete,void 0,void 0,this,void 0)),D._then(S,S,void 0,D,this)},c.prototype.reduce=function(N,D){return T(this,N,D,null)},c.reduce=function(N,D,z,A){return T(N,D,z,A)}}},{"./util":36}],29:[function(s,a,l){var c,f=s("./util"),h=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(y){p.call(i,y)}:function(y){m.call(r,y)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var v=h.resolve();c=function(y){v.then(y)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var y=document.createElement("div"),x={attributes:!0},_=!1,w=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),_=!1}).observe(w,x),function(S){var T=new MutationObserver(function(){T.disconnect(),S()});T.observe(y,x),_||(_=!0,w.classList.toggle("foo"))}}();a.exports=c},{"./util":36}],30:[function(s,a,l){a.exports=function(c,f,h){var p=c.PromiseInspection;function m(v){this.constructor$(v)}s("./util").inherits(m,f),m.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,y){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(y,x)},m.prototype._promiseRejected=function(v,y){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(y,x)},c.settle=function(v){return h.deprecated(".settle()",".reflect()"),new m(v).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=s("./errors").RangeError,v=s("./errors").AggregateError,y=p.isArray,x={};function _(S){this.constructor$(S),this._howMany=0,this._unwrap=!1,this._initialized=!1}function w(S,T){if((0|T)!==T||T<0)return h(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var P=new _(S),k=P.promise();return P.setHowMany(T),P.init(),k}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var S=y(this._values);!this._isResolved()&&S&&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(S){this._howMany=S},_.prototype._promiseFulfilled=function(S){return this._addFulfilled(S),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(S){return this._addRejected(S),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 S=new v,T=this.length();T<this._values.length;++T)this._values[T]!==x&&S.push(this._values[T]);return S.length>0?this._reject(S):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(S){this._values.push(S)},_.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(S){var T="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new m(T)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(S,T){return w(S,T)},c.prototype.some=function(S){return w(this,S)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.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 h=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()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=f.prototype.isPending=function(){return(50397184&this._bitField)==0},x=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},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 y.call(this._target())},c.prototype.isRejected=function(){return v.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return x.call(this._target())},c.prototype.value=function(){return h.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(s,a,l){a.exports=function(c,f){var h=s("./util"),p=h.errorObj,m=h.isObject,v={}.hasOwnProperty;return function(y,x){if(m(y)){if(y instanceof c)return y;var _=function(S){try{return function(T){return T.then}(S)}catch(T){return p.e=T,p}}(y);if(_===p){x&&x._pushContext();var w=c.reject(_.e);return x&&x._popContext(),w}if(typeof _=="function")return function(S){try{return v.call(S,"_promise0")}catch{return!1}}(y)?(w=new c(f),y._then(w._fulfill,w._reject,void 0,w,null),w):function(S,T,P){var k=new c(f),N=k;P&&P._pushContext(),k._captureStackTrace(),P&&P._popContext();var D=!0,z=h.tryCatch(T).call(S,function(A){k&&(k._resolveCallback(A),k=null)},function(A){k&&(k._rejectCallback(A,D,!0),k=null)});return D=!1,k&&z===p&&(k._rejectCallback(z.e,!0,!0),k=null),N}(y,_,x)}return y}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.TimeoutError;function v(S){this.handle=S}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(S){return x(+this).thenReturn(S)},x=c.delay=function(S,T){var P,k;return T!==void 0?(P=c.resolve(T)._then(y,null,null,S,void 0),h.cancellation()&&T instanceof c&&P._setOnCancel(T)):(P=new c(f),k=setTimeout(function(){P._fulfill()},+S),h.cancellation()&&P._setOnCancel(new v(k)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function _(S){return clearTimeout(this.handle),S}function w(S){throw clearTimeout(this.handle),S}c.prototype.delay=function(S){return x(S,this)},c.prototype.timeout=function(S,T){var P,k;S=+S;var N=new v(setTimeout(function(){P.isPending()&&function(D,z,A){var W;W=typeof z!="string"?z instanceof Error?z:new m("operation timed out"):new m(z),p.markAsOriginatingFromRejection(W),D._attachExtraTrace(W),D._reject(W),A!=null&&A.cancel()}(P,T,k)},S));return h.cancellation()?(k=this.then(),(P=k._then(_,w,void 0,N,void 0))._setOnCancel(N)):P=this._then(_,w,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,m,v){var y=s("./util"),x=s("./errors").TypeError,_=s("./util").inherits,w=y.errorObj,S=y.tryCatch,T={};function P(W){setTimeout(function(){throw W},0)}function k(W,Y){var J=0,Z=W.length,ee=new c(m);return function ie(){if(J>=Z)return ee._fulfill();var oe=function(G){var F=h(G);return F!==G&&typeof G._isDisposable=="function"&&typeof G._getDisposer=="function"&&G._isDisposable()&&F._setDisposable(G._getDisposer()),F}(W[J++]);if(oe instanceof c&&oe._isDisposable()){try{oe=h(oe._getDisposer().tryDispose(Y),W.promise)}catch(G){return P(G)}if(oe instanceof c)return oe._then(ie,P,null,null,null)}ie()}(),ee}function N(W,Y,J){this._data=W,this._promise=Y,this._context=J}function D(W,Y,J){this.constructor$(W,Y,J)}function z(W){return N.isDisposer(W)?(this.resources[this.index]._setDisposable(W),W.promise()):W}function A(W){this.length=W,this.promise=null,this[W-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():T},N.prototype.tryDispose=function(W){var Y=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Z=Y!==T?this.doDispose(Y,W):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Z},N.isDisposer=function(W){return W!=null&&typeof W.resource=="function"&&typeof W.tryDispose=="function"},_(D,N),D.prototype.doDispose=function(W,Y){return this.data().call(W,W,Y)},A.prototype._resultCancelled=function(){for(var W=this.length,Y=0;Y<W;++Y){var J=this[Y];J instanceof c&&J.cancel()}},c.using=function(){var W=arguments.length;if(W<2)return f("you must pass at least 2 arguments to Promise.using");var Y,J=arguments[W-1];if(typeof J!="function")return f("expecting a function but got "+y.classString(J));var Z=!0;W===2&&Array.isArray(arguments[0])?(W=(Y=arguments[0]).length,Z=!1):(Y=arguments,W--);for(var ee=new A(W),ie=0;ie<W;++ie){var oe=Y[ie];if(N.isDisposer(oe)){var G=oe;(oe=oe.promise())._setDisposable(G)}else{var F=h(oe);F instanceof c&&(oe=F._then(z,null,null,{resources:ee,index:ie},void 0))}ee[ie]=oe}var j=new Array(ee.length);for(ie=0;ie<j.length;++ie)j[ie]=c.resolve(ee[ie]).reflect();var B=c.all(j).then(function(H){for(var q=0;q<H.length;++q){var te=H[q];if(te.isRejected())return w.e=te.error(),w;if(!te.isFulfilled())return void B.cancel();H[q]=te.value()}ne._pushContext(),J=S(J);var se=Z?J.apply(void 0,H):J(H),pe=ne._popContext();return v.checkForgottenReturns(se,pe,"Promise.using",ne),se}),ne=B.lastly(function(){var H=new c.PromiseInspection(B);return k(ee,H)});return ee.promise=ne,ne._setOnCancel(ee),ne},c.prototype._setDisposable=function(W){this._bitField=131072|this._bitField,this._disposer=W},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(W){if(typeof W=="function")return new D(W,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(s,a,l){var c,f=s("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var Z=c;return c=null,Z.apply(this,arguments)}catch(ee){return p.e=ee,p}}function y(Z){return Z==null||Z===!0||Z===!1||typeof Z=="string"||typeof Z=="number"}function x(Z,ee,ie){if(y(Z))return Z;var oe={value:ie,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(Z,ee,oe),Z}var _=function(){var Z=[Array.prototype,Object.prototype,Function.prototype],ee=function(G){for(var F=0;F<Z.length;++F)if(Z[F]===G)return!0;return!1};if(f.isES5){var ie=Object.getOwnPropertyNames;return function(G){for(var F=[],j=Object.create(null);G!=null&&!ee(G);){var B;try{B=ie(G)}catch{return F}for(var ne=0;ne<B.length;++ne){var H=B[ne];if(!j[H]){j[H]=!0;var q=Object.getOwnPropertyDescriptor(G,H);q!=null&&q.get==null&&q.set==null&&F.push(H)}}G=f.getPrototypeOf(G)}return F}}var oe={}.hasOwnProperty;return function(G){if(ee(G))return[];var F=[];e:for(var j in G)if(oe.call(G,j))F.push(j);else{for(var B=0;B<Z.length;++B)if(oe.call(Z[B],j))continue e;F.push(j)}return F}}(),w=/this\s*\.\s*\S+\s*=/,S=/^[a-z$_][a-z$_0-9]*$/i;function T(Z){try{return Z+""}catch{return"[no string representation]"}}function P(Z){return Z instanceof Error||Z!==null&&typeof Z=="object"&&typeof Z.message=="string"&&typeof Z.name=="string"}function k(Z){return P(Z)&&f.propertyIsWritable(Z,"stack")}var N="stack"in new Error?function(Z){return k(Z)?Z:new Error(T(Z))}:function(Z){if(k(Z))return Z;try{throw new Error(T(Z))}catch(ee){return ee}};function D(Z){return{}.toString.call(Z)}var z=function(Z){return f.isArray(Z)?Z:null};if(typeof Symbol<"u"&&Symbol.iterator){var A=typeof Array.from=="function"?function(Z){return Array.from(Z)}:function(Z){for(var ee,ie=[],oe=Z[Symbol.iterator]();!(ee=oe.next()).done;)ie.push(ee.value);return ie};z=function(Z){return f.isArray(Z)?Z:Z!=null&&typeof Z[Symbol.iterator]=="function"?A(Z):null}}var W=r!==void 0&&D(r).toLowerCase()==="[object process]",Y=r!==void 0&&r.env!==void 0,J={isClass:function(Z){try{if(typeof Z=="function"){var ee=f.names(Z.prototype),ie=f.isES5&&ee.length>1,oe=ee.length>0&&!(ee.length===1&&ee[0]==="constructor"),G=w.test(Z+"")&&f.names(Z).length>0;if(ie||oe||G)return!0}return!1}catch{return!1}},isIdentifier:function(Z){return S.test(Z)},inheritedDataKeys:_,getDataPropertyOrDefault:function(Z,ee,ie){if(!f.isES5)return{}.hasOwnProperty.call(Z,ee)?Z[ee]:void 0;var oe=Object.getOwnPropertyDescriptor(Z,ee);return oe!=null?oe.get==null&&oe.set==null?oe.value:ie:void 0},thrower:function(Z){throw Z},isArray:f.isArray,asArray:z,notEnumerableProp:x,isPrimitive:y,isObject:function(Z){return typeof Z=="function"||typeof Z=="object"&&Z!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(Z){return c=Z,v},inherits:function(Z,ee){var ie={}.hasOwnProperty;function oe(){for(var G in this.constructor=Z,this.constructor$=ee,ee.prototype)ie.call(ee.prototype,G)&&G.charAt(G.length-1)!=="$"&&(this[G+"$"]=ee.prototype[G])}return oe.prototype=ee.prototype,Z.prototype=new oe,Z.prototype},withAppended:function(Z,ee){var ie,oe=Z.length,G=new Array(oe+1);for(ie=0;ie<oe;++ie)G[ie]=Z[ie];return G[ie]=ee,G},maybeWrapAsError:function(Z){return y(Z)?new Error(T(Z)):Z},toFastProperties:function(Z){return Z},filledRange:function(Z,ee,ie){for(var oe=new Array(Z),G=0;G<Z;++G)oe[G]=ee+G+ie;return oe},toString:T,canAttachTrace:k,ensureErrorObject:N,originatesFromRejection:function(Z){return Z!=null&&(Z instanceof Error.__BluebirdErrorTypes__.OperationalError||Z.isOperational===!0)},markAsOriginatingFromRejection:function(Z){try{x(Z,"isOperational",!0)}catch{}},classString:D,copyDescriptors:function(Z,ee,ie){for(var oe=f.names(Z),G=0;G<oe.length;++G){var F=oe[G];if(ie(F))try{f.defineProperty(ee,F,f.getDescriptor(Z,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:W,hasEnvVariables:Y,env:function(Z){return Y?r.env[Z]:void 0},global:m,getNativePromise:function(){if(typeof Promise=="function")try{var Z=new Promise(function(){});if({}.toString.call(Z)==="[object Promise]")return Promise}catch{}},domainBind:function(Z,ee){return Z.bind(ee)}};J.isRecentNode=J.isNode&&function(){var Z=r.versions.node.split(".").map(Number);return Z[0]===0&&Z[1]>10||Z[0]>0}(),J.isNode&&J.toFastProperties(r);try{throw new Error}catch(Z){J.lastLineError=Z}a.exports=J},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o<s;o++)if(r[o]==="\r"){if(r[o+1]===`
`){i.eol=`\r
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,s){var a=i(o,s);return r(a)?a: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=T;var s,a=n(37);T.ReadableState=S,n(12).EventEmitter;var l=function(j,B){return j.listeners(B).length},c=n(24),f=n(7).Buffer,h=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var m=n(41),v=void 0;v=m&&m.debuglog?m.debuglog("stream"):function(){};var y,x=n(42),_=n(25);p.inherits(T,c);var w=["error","close","destroy","pause","resume"];function S(j,B){s=s||n(1),j=j||{};var ne=B instanceof s;this.objectMode=!!j.objectMode,ne&&(this.objectMode=this.objectMode||!!j.readableObjectMode);var H=j.highWaterMark,q=j.readableHighWaterMark,te=this.objectMode?16:16384;this.highWaterMark=H||H===0?H:ne&&(q||q===0)?q:te,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=j.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,j.encoding&&(y||(y=n(26).StringDecoder),this.decoder=new y(j.encoding),this.encoding=j.encoding)}function T(j){if(s=s||n(1),!(this instanceof T))return new T(j);this._readableState=new S(j,this),this.readable=!0,j&&(typeof j.read=="function"&&(this._read=j.read),typeof j.destroy=="function"&&(this._destroy=j.destroy)),c.call(this)}function P(j,B,ne,H,q){var te,se=j._readableState;return B===null?(se.reading=!1,function(pe,O){if(!O.ended){if(O.decoder){var R=O.decoder.end();R&&R.length&&(O.buffer.push(R),O.length+=O.objectMode?1:R.length)}O.ended=!0,z(pe)}}(j,se)):(q||(te=function(pe,O){var R;return function(I){return f.isBuffer(I)||I instanceof h}(O)||typeof O=="string"||O===void 0||pe.objectMode||(R=new TypeError("Invalid non-string/buffer chunk")),R}(se,B)),te?j.emit("error",te):se.objectMode||B&&B.length>0?(typeof B=="string"||se.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(pe){return f.from(pe)}(B)),H?se.endEmitted?j.emit("error",new Error("stream.unshift() after end event")):k(j,se,B,!0):se.ended?j.emit("error",new Error("stream.push() after EOF")):(se.reading=!1,se.decoder&&!ne?(B=se.decoder.write(B),se.objectMode||B.length!==0?k(j,se,B,!1):W(j,se)):k(j,se,B,!1))):H||(se.reading=!1)),function(pe){return!pe.ended&&(pe.needReadable||pe.length<pe.highWaterMark||pe.length===0)}(se)}function k(j,B,ne,H){B.flowing&&B.length===0&&!B.sync?(j.emit("data",ne),j.read(0)):(B.length+=B.objectMode?1:ne.length,H?B.buffer.unshift(ne):B.buffer.push(ne),B.needReadable&&z(j)),W(j,B)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(j){this._readableState&&(this._readableState.destroyed=j)}}),T.prototype.destroy=_.destroy,T.prototype._undestroy=_.undestroy,T.prototype._destroy=function(j,B){this.push(null),B(j)},T.prototype.push=function(j,B){var ne,H=this._readableState;return H.objectMode?ne=!0:typeof j=="string"&&((B=B||H.defaultEncoding)!==H.encoding&&(j=f.from(j,B),B=""),ne=!0),P(this,j,B,!1,ne)},T.prototype.unshift=function(j){return P(this,j,null,!0,!1)},T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(j){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(j),this._readableState.encoding=j,this};var N=8388608;function D(j,B){return j<=0||B.length===0&&B.ended?0:B.objectMode?1:j!=j?B.flowing&&B.length?B.buffer.head.data.length:B.length:(j>B.highWaterMark&&(B.highWaterMark=function(ne){return ne>=N?ne=N:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(j)),j<=B.length?j:B.ended?B.length:(B.needReadable=!0,0))}function z(j){var B=j._readableState;B.needReadable=!1,B.emittedReadable||(v("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(A,j):A(j))}function A(j){v("emit readable"),j.emit("readable"),ee(j)}function W(j,B){B.readingMore||(B.readingMore=!0,o.nextTick(Y,j,B))}function Y(j,B){for(var ne=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(v("maybeReadMore read 0"),j.read(0),ne!==B.length);)ne=B.length;B.readingMore=!1}function J(j){v("readable nexttick read 0"),j.read(0)}function Z(j,B){B.reading||(v("resume read 0"),j.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,j.emit("resume"),ee(j),B.flowing&&!B.reading&&j.read(0)}function ee(j){var B=j._readableState;for(v("flow",B.flowing);B.flowing&&j.read()!==null;);}function ie(j,B){return B.length===0?null:(B.objectMode?ne=B.buffer.shift():!j||j>=B.length?(ne=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):ne=function(H,q,te){var se;return H<q.head.data.length?(se=q.head.data.slice(0,H),q.head.data=q.head.data.slice(H)):se=H===q.head.data.length?q.shift():te?function(pe,O){var R=O.head,I=1,X=R.data;for(pe-=X.length;R=R.next;){var K=R.data,ae=pe>K.length?K.length:pe;if(ae===K.length?X+=K:X+=K.slice(0,pe),(pe-=ae)==0){ae===K.length?(++I,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=K.slice(ae));break}++I}return O.length-=I,X}(H,q):function(pe,O){var R=f.allocUnsafe(pe),I=O.head,X=1;for(I.data.copy(R),pe-=I.data.length;I=I.next;){var K=I.data,ae=pe>K.length?K.length:pe;if(K.copy(R,R.length-pe,0,ae),(pe-=ae)==0){ae===K.length?(++X,I.next?O.head=I.next:O.head=O.tail=null):(O.head=I,I.data=K.slice(ae));break}++X}return O.length-=X,R}(H,q),se}(j,B.buffer,B.decoder),ne);var ne}function oe(j){var B=j._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(G,B,j))}function G(j,B){j.endEmitted||j.length!==0||(j.endEmitted=!0,B.readable=!1,B.emit("end"))}function F(j,B){for(var ne=0,H=j.length;ne<H;ne++)if(j[ne]===B)return ne;return-1}T.prototype.read=function(j){v("read",j),j=parseInt(j,10);var B=this._readableState,ne=j;if(j!==0&&(B.emittedReadable=!1),j===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return v("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?oe(this):z(this),null;if((j=D(j,B))===0&&B.ended)return B.length===0&&oe(this),null;var H,q=B.needReadable;return v("need readable",q),(B.length===0||B.length-j<B.highWaterMark)&&v("length less than watermark",q=!0),B.ended||B.reading?v("reading or ended",q=!1):q&&(v("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(j=D(ne,B))),(H=j>0?ie(j,B):null)===null?(B.needReadable=!0,j=0):B.length-=j,B.length===0&&(B.ended||(B.needReadable=!0),ne!==j&&B.ended&&oe(this)),H!==null&&this.emit("data",H),H},T.prototype._read=function(j){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(j,B){var ne=this,H=this._readableState;switch(H.pipesCount){case 0:H.pipes=j;break;case 1:H.pipes=[H.pipes,j];break;default:H.pipes.push(j)}H.pipesCount+=1,v("pipe count=%d opts=%j",H.pipesCount,B);var q=B&&B.end===!1||j===i.stdout||j===i.stderr?ae:te;function te(){v("onend"),j.end()}H.endEmitted?o.nextTick(q):ne.once("end",q),j.on("unpipe",function ge(Le,ue){v("onunpipe"),Le===ne&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),j.removeListener("close",X),j.removeListener("finish",K),j.removeListener("drain",se),j.removeListener("error",I),j.removeListener("unpipe",ge),ne.removeListener("end",te),ne.removeListener("end",ae),ne.removeListener("data",R),pe=!0,!H.awaitDrain||j._writableState&&!j._writableState.needDrain||se())});var se=function(ge){return function(){var Le=ge._readableState;v("pipeOnDrain",Le.awaitDrain),Le.awaitDrain&&Le.awaitDrain--,Le.awaitDrain===0&&l(ge,"data")&&(Le.flowing=!0,ee(ge))}}(ne);j.on("drain",se);var pe=!1,O=!1;function R(ge){v("ondata"),O=!1,j.write(ge)!==!1||O||((H.pipesCount===1&&H.pipes===j||H.pipesCount>1&&F(H.pipes,j)!==-1)&&!pe&&(v("false write response, pause",ne._readableState.awaitDrain),ne._readableState.awaitDrain++,O=!0),ne.pause())}function I(ge){v("onerror",ge),ae(),j.removeListener("error",I),l(j,"error")===0&&j.emit("error",ge)}function X(){j.removeListener("finish",K),ae()}function K(){v("onfinish"),j.removeListener("close",X),ae()}function ae(){v("unpipe"),ne.unpipe(j)}return ne.on("data",R),function(ge,Le,ue){if(typeof ge.prependListener=="function")return ge.prependListener(Le,ue);ge._events&&ge._events[Le]?a(ge._events[Le])?ge._events[Le].unshift(ue):ge._events[Le]=[ue,ge._events[Le]]:ge.on(Le,ue)}(j,"error",I),j.once("close",X),j.once("finish",K),j.emit("pipe",ne),H.flowing||(v("pipe resume"),ne.resume()),j},T.prototype.unpipe=function(j){var B=this._readableState,ne={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return j&&j!==B.pipes?this:(j||(j=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,j&&j.emit("unpipe",this,ne),this);if(!j){var H=B.pipes,q=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var te=0;te<q;te++)H[te].emit("unpipe",this,ne);return this}var se=F(B.pipes,j);return se===-1?this:(B.pipes.splice(se,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),j.emit("unpipe",this,ne),this)},T.prototype.on=function(j,B){var ne=c.prototype.on.call(this,j,B);if(j==="data")this._readableState.flowing!==!1&&this.resume();else if(j==="readable"){var H=this._readableState;H.endEmitted||H.readableListening||(H.readableListening=H.needReadable=!0,H.emittedReadable=!1,H.reading?H.length&&z(this):o.nextTick(J,this))}return ne},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var j=this._readableState;return j.flowing||(v("resume"),j.flowing=!0,function(B,ne){ne.resumeScheduled||(ne.resumeScheduled=!0,o.nextTick(Z,B,ne))}(this,j)),this},T.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(j){var B=this,ne=this._readableState,H=!1;for(var q in j.on("end",function(){if(v("wrapped end"),ne.decoder&&!ne.ended){var se=ne.decoder.end();se&&se.length&&B.push(se)}B.push(null)}),j.on("data",function(se){v("wrapped data"),ne.decoder&&(se=ne.decoder.write(se)),(!ne.objectMode||se!=null)&&(ne.objectMode||se&&se.length)&&(B.push(se)||(H=!0,j.pause()))}),j)this[q]===void 0&&typeof j[q]=="function"&&(this[q]=function(se){return function(){return j[se].apply(j,arguments)}}(q));for(var te=0;te<w.length;te++)j.on(w[te],this.emit.bind(this,w[te]));return this._read=function(se){v("wrapped _read",se),H&&(H=!1,j.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=ie}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,s){o.emit("error",s)}e.exports={destroy:function(o,s){var a=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(s?s(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!s&&f?(r.nextTick(i,a,f),a._writableState&&(a._writableState.errorEmitted=!0)):s&&s(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(v){switch((v=""+v)&&v.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(v){var y;switch(this.encoding=function(x){var _=function(w){if(!w)return"utf8";for(var S;;)switch(w){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 w;default:if(S)return;w=(""+w).toLowerCase(),S=!0}}(x);if(typeof _!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return _||x}(v),this.encoding){case"utf16le":this.text=l,this.end=c,y=4;break;case"utf8":this.fillLast=a,y=4;break;case"base64":this.text=f,this.end=h,y=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}function s(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function a(v){var y=this.lastTotal-this.lastNeed,x=function(_,w,S){if((192&w[0])!=128)return _.lastNeed=0,"<22>";if(_.lastNeed>1&&w.length>1){if((192&w[1])!=128)return _.lastNeed=1,"<22>";if(_.lastNeed>2&&w.length>2&&(192&w[2])!=128)return _.lastNeed=2,"<22>"}}(this,v);return x!==void 0?x:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function l(v,y){if((v.length-y)%2==0){var x=v.toString("utf16le",y);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function c(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function f(v,y){var x=(v.length-y)%3;return x===0?v.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-x))}function h(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var y,x;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<v.length?y?y+this.text(v,x):this.text(v,x):y||""},o.prototype.end=function(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+"<22>":y},o.prototype.text=function(v,y){var x=function(w,S,T){var P=S.length-1;if(P<T)return 0;var k=s(S[P]);return k>=0?(k>0&&(w.lastNeed=k-1),k):--P<T||k===-2?0:(k=s(S[P]))>=0?(k>0&&(w.lastNeed=k-2),k):--P<T||k===-2?0:(k=s(S[P]))>=0?(k>0&&(k===2?k=0:w.lastNeed=k-3),k):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=x;var _=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,_),v.toString("utf8",y,_)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.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 h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.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",s)}function s(){var l=this;typeof this._flush=="function"?this._flush(function(c,f){a(l,c,f)}):a(this,null,null)}function a(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 h=this._transformState;if(h.writecb=f,h.writechunk=l,h.writeencoding=c,!h.transforming){var p=this._readableState;(h.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(h){c(h),f.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),s=r.allocUnsafe?r.allocUnsafe(o):new r(o);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var s=[],a=0;a<i.length;a++)o.indexOf(a)>-1&&s.push(i[a]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l])};return function(s,a){function l(){this.constructor=s}o(s,a),s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(a,l,c){var f=o.call(this,"Error: "+a+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=a,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(s,o),s.column_mismatched=function(a,l){return new s("column_mismatched",a,l)},s.unclosed_quote=function(a,l){return new s("unclosed_quote",a,l)},s.fromJSON=function(a){return new s(a.err,a.line,a.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":s&&s in Object(a)?i(a):o(a)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var x in y)y.hasOwnProperty(x)&&(v[x]=y[x])};return function(v,y){function x(){this.constructor=v}m(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),a=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function v(y,x){x===void 0&&(x={});var _=m.call(this,x)||this;return _.options=x,_.params=a.mergeParams(y),_.runtime=l.initParseRuntime(_),_.result=new h.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(w){r(function(){_.result.processError(w),_.emit("done",w)})}),_.once("done",function(){_.processor.destroy()}),_}return i(v,m),v.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},v.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},v.prototype.subscribe=function(y,x,_){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:_},this},v.prototype.fromFile=function(y,x){var _=this,w=n(!function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}());return w.exists(y,function(S){S?w.createReadStream(y,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(y){return y.pipe(this),this},v.prototype.fromString=function(y){y.toString();var x=new s.Readable,_=0;return x._read=function(w){if(_>=y.length)this.push(null);else{var S=y.substr(_,w);this.push(S),_+=w}},this.fromStream(x)},v.prototype.then=function(y,x){var _=this;return new c.default(function(w,S){_.parseRuntime.then={onfulfilled:function(T){w(y?y(T):T)},onrejected:function(T){x?w(x(T)):S(T)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(y,x,_){var w=this;this.processor.process(y).then(function(S){if(S.length>0)return w.runtime.started=!0,w.result.processResult(S)}).then(function(){w.emit("drained"),_()},function(S){w.runtime.hasError=!0,w.runtime.error=S,w.emit("error",S),_()})},v.prototype._flush=function(y){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(y)},function(_){x.emit("error",_),y()})},v.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(s.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var a,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?a=function(y){i.nextTick(function(){v(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(y)===0&&v(+_.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),a=function(_){o.postMessage(y+_,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){v(x.data)},a=function(x){y.port2.postMessage(x)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var y=h.documentElement;a=function(x){var _=h.createElement("script");_.onreadystatechange=function(){v(x),_.onreadystatechange=null,y.removeChild(_),_=null},y.appendChild(_)}}():a=function(y){setTimeout(v,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=new Array(arguments.length-1),_=0;_<x.length;_++)x[_]=arguments[_+1];var w={callback:y,args:x};return c[l]=w,a(l),l++},p.clearImmediate=m}function m(y){delete c[y]}function v(y){if(f)setTimeout(v,0,y);else{var x=c[y];if(x){f=!0;try{(function(_){var w=_.callback,S=_.args;switch(S.length){case 0:w();break;case 1:w(S[0]);break;case 2:w(S[0],S[1]);break;case 3:w(S[0],S[1],S[2]);break;default:w.apply(s,S)}})(x)}finally{m(y),f=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var a=this;function l(y){o.writable&&o.write(y)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",l),o.on("drain",c),o._isStdio||s&&s.end===!1||(a.on("end",h),a.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(y){if(v(),r.listenerCount(this,"error")===0)throw y}function v(){a.removeListener("data",l),o.removeListener("drain",c),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",m),o.removeListener("error",m),a.removeListener("end",v),a.removeListener("close",v),o.removeListener("close",v)}return a.on("error",m),o.on("error",m),a.on("end",v),a.on("close",v),o.on("close",v),o.emit("pipe",a),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 m=c(p),v=m[0],y=m[1];return 3*(v+y)/4-y},t.toByteArray=function(p){for(var m,v=c(p),y=v[0],x=v[1],_=new o(3*(y+x)/4-x),w=0,S=x>0?y-4:y,T=0;T<S;T+=4)m=i[p.charCodeAt(T)]<<18|i[p.charCodeAt(T+1)]<<12|i[p.charCodeAt(T+2)]<<6|i[p.charCodeAt(T+3)],_[w++]=m>>16&255,_[w++]=m>>8&255,_[w++]=255&m;return x===2&&(m=i[p.charCodeAt(T)]<<2|i[p.charCodeAt(T+1)]>>4,_[w++]=255&m),x===1&&(m=i[p.charCodeAt(T)]<<10|i[p.charCodeAt(T+1)]<<4|i[p.charCodeAt(T+2)]>>2,_[w++]=m>>8&255,_[w++]=255&m),_},t.fromByteArray=function(p){for(var m,v=p.length,y=v%3,x=[],_=0,w=v-y;_<w;_+=16383)x.push(h(p,_,_+16383>w?w:_+16383));return y===1?(m=p[v-1],x.push(r[m>>2]+r[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-1],x.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,v){for(var y,x=[],_=m;_<v;_+=3)y=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(255&p[_+2]),x.push(f(y));return x.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(n,r,i,o,s){var a,l,c=8*s-o-1,f=(1<<c)-1,h=f>>1,p=-7,m=i?s-1:0,v=i?-1:1,y=n[r+m];for(m+=v,a=y&(1<<-p)-1,y>>=-p,p+=c;p>0;a=256*a+n[r+m],m+=v,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(a===0)a=1-h;else{if(a===f)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),a-=h}return(y?-1:1)*l*Math.pow(2,a-o)},t.write=function(n,r,i,o,s,a){var l,c,f,h=8*a-s-1,p=(1<<h)-1,m=p>>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:a-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+m>=1?v/f:v*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,s),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;n[i+y]=255&c,y+=x,c/=256,s-=8);for(l=l<<s|c,h+=s;h>0;n[i+y]=255&l,y+=x,l/=256,h-=8);n[i+y-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(s,a,l){s.copy(a,l)}e.exports=function(){function s(){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var l={data:a,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},s.prototype.unshift=function(a){var l={data:a,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=a+l.data;return c},s.prototype.concat=function(a){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(a>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var a=!1;return function(){if(!a){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),a=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,a,l){l(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,w){_.__proto__=w}||function(_,w){for(var S in w)w.hasOwnProperty(S)&&(_[S]=w[S])};return function(_,w){function S(){this.constructor=_}x(_,w),_.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),a=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),v=o(n(29)),y=function(x){function _(){var w=x!==null&&x.apply(this,arguments)||this;return w.rowSplit=new p.RowSplit(w.converter),w.eolEmitted=!1,w._needEmitEol=void 0,w.headEmitted=!1,w._needEmitHead=void 0,w}return i(_,x),_.prototype.flush=function(){var w=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var S=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(S,!0).then(function(T){return w.runtime.csvLineBuffer&&w.runtime.csvLineBuffer.length>0?a.default.reject(v.default.unclosed_quote(w.runtime.parsedLineNumber,w.runtime.csvLineBuffer.toString())):a.default.resolve(T)})}return a.default.resolve([])},_.prototype.destroy=function(){return a.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(w,S){var T,P=this;return S===void 0&&(S=!1),T=S?w.toString():l.prepareData(w,this.converter.parseRuntime),a.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(T):T}).then(function(k){return k&&k.length>0?P.processCSV(k,S):a.default.resolve([])})},_.prototype.processCSV=function(w,S){var T=this,P=this.params,k=this.runtime;k.eol||c.default(w,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),P.ignoreEmpty&&!k.started&&(w=h.trimLeft(w));var N=f.stringToLines(w,k);return S?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(h.bufFromString(N.partial)),N.lines.length>0?(k.preFileLineHook?this.runPreLineHook(N.lines):a.default.resolve(N.lines)).then(function(D){return k.started||T.runtime.headers?T.processCSVBody(D):T.processDataWithHead(D)}):a.default.resolve([])},_.prototype.processDataWithHead=function(w){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var S="",T=[];w.length;){var P=S+w.shift(),k=this.rowSplit.parse(P);if(k.closed){T=k.cells,S="";break}S=P+c.default(P,this.runtime)}if(this.prependLeftBuf(h.bufFromString(S)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}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(w)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var w=this.runtime.headers,S=0;S<w.length;S++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(w[S])){if(!this.params.includeColumns||!this.params.includeColumns.test(w[S]))continue;this.runtime.selectedColumns.push(S)}else this.runtime.selectedColumns.push(S);else this.params.includeColumns?this.params.includeColumns.test(w[S])&&this.runtime.selectedColumns.push(S):this.runtime.selectedColumns.push(S);this.runtime.headers=h.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},_.prototype.processCSVBody=function(w){if(this.params.output==="line")return w;var S=this.rowSplit.parseMultiLines(w);return this.prependLeftBuf(h.bufFromString(S.partial)),this.params.output==="csv"?S.rowsCells:m.default(S.rowsCells,this.converter)},_.prototype.prependLeftBuf=function(w){w&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([w,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=w)},_.prototype.runPreLineHook=function(w){var S=this;return new a.default(function(T,P){(function k(N,D,z,A){if(z>=N.length)A();else if(D.preFileLineHook){var W=N[z],Y=D.preFileLineHook(W,D.parsedLineNumber+z);if(z++,Y&&Y.then)Y.then(function(J){N[z-1]=J,k(N,D,z,A)});else{for(N[z-1]=Y;z<N.length;)N[z]=D.preFileLineHook(N[z],D.parsedLineNumber+z),z++;A()}}else A()})(w,S.runtime,0,function(k){k?P(k):T(w)})})},_}(s.Processor);t.ProcessorLocal=y}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(s,a){var l=function(f,h){return h.csvLineBuffer&&h.csvLineBuffer.length>0?r.concat([h.csvLineBuffer,f]):f}(s,a);a.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,a).toString("utf8");return a.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,s){var a=i.default(o,s),l=o.split(a);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),s=[",","|"," ",";",":"],a=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,h=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,m=c.split(p);if(f==="off"){if(h)for(var v=0;v<m.length;v++)m[v]=m[v].trim();return{cells:m,closed:!0}}return this.toCSVRow(m,h,f,p)},l.prototype.toCSVRow=function(c,f,h,p){for(var m=[],v=!1,y="",x=0,_=c.length;x<_;x++){var w=c[x];!v&&f&&(w=o.trimLeft(w));var S=w.length;if(v)this.isQuoteClose(w)?(v=!1,y+=p+(w=w.substr(0,S-1)),y=this.escapeQuote(y),f&&(y=o.trimRight(y)),m.push(y),y=""):y+=p+w;else{if(S===2&&w===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(w)){if(w=w.substr(1),this.isQuoteClose(w)){w=w.substring(0,w.lastIndexOf(h)),w=this.escapeQuote(w),m.push(w);continue}if(w.indexOf(h)!==-1){for(var T=0,P="",k=0,N=w;k<N.length;k++){var D=N[k];D===h&&P!==this.escape?(T++,P=""):P=D}if(T%2==1){f&&(w=o.trimRight(w)),m.push(h+w);continue}v=!0,y+=w;continue}v=!0,y+=w;continue}f&&(w=o.trimRight(w)),m.push(w)}}return{cells:m,closed:!v}},l.prototype.getDelimiter=function(c){var f;if(this.conv.parseParam.delimiter==="auto")f=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var h=0,p=",";return f.forEach(function(m){var v=c.split(m).length;v>h&&(p=m,h=v)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===f||c[m]===h;)m--,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 h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||`
`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=a},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)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(_,w,S){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&_.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+S);return function(T,P,k){for(var N=!1,D={},z=0,A=T.length;z<A;z++){var W=T[z];if(!k.parseParam.ignoreEmpty||W!==""){N=!0;var Y=P[z];Y&&Y!==""||(Y=P[z]="field"+(z+1));var J=c(Y,z,k);if(J){var Z=J(W,Y,D,T,z);Z!==void 0&&f(D,Y,Z,k,z)}else k.parseParam.checkType&&(W=m(W,Y,z,k)(W)),W!==void 0&&f(D,Y,W,k,z)}}return N?D:null}(_,w.parseRuntime.headers||[],w)||null}t.default=function(_,w){for(var S=[],T=0,P=_.length;T<P;T++){var k=a(_[T],w,T);k&&S.push(k)}return S};var l={string:y,number:v,omit:function(){}};function c(_,w,S){if(S.parseRuntime.columnConv[w]!==void 0)return S.parseRuntime.columnConv[w];var T=S.parseParam.colParser[_];if(T===void 0)return S.parseRuntime.columnConv[w]=null;if(typeof T=="object"&&(T=T.cellParser||"string"),typeof T=="string"){T=T.trim().toLowerCase();var P=l[T];return S.parseRuntime.columnConv[w]=P||null}return S.parseRuntime.columnConv[w]=typeof T=="function"?T:null}function f(_,w,S,T,P){if(!T.parseRuntime.columnValueSetter[P])if(T.parseParam.flatKeys)T.parseRuntime.columnValueSetter[P]=h;else if(w.indexOf(".")>-1){for(var k=w.split("."),N=!0;k.length>0;)if(k.shift().length===0){N=!1;break}!N||T.parseParam.colParser[w]&&T.parseParam.colParser[w].flat?T.parseRuntime.columnValueSetter[P]=h:T.parseRuntime.columnValueSetter[P]=p}else T.parseRuntime.columnValueSetter[P]=h;T.parseParam.nullObject===!0&&S==="null"&&(S=null),T.parseRuntime.columnValueSetter[P](_,w,S)}function h(_,w,S){_[w]=S}function p(_,w,S){o.default(_,w,S)}function m(_,w,S,T){return T.parseRuntime.headerType[S]?T.parseRuntime.headerType[S]:w.indexOf("number#!")>-1?T.parseRuntime.headerType[S]=v:w.indexOf("string#!")>-1?T.parseRuntime.headerType[S]=y:T.parseParam.checkType?T.parseRuntime.headerType[S]=x:T.parseRuntime.headerType[S]=y}function v(_){var w=parseFloat(_);return isNaN(w)?_:w}function y(_){return _.toString()}function x(_){var w=_.trim();return w===""?y(_):s.test(w)?v(_):w.length===5&&w.toLowerCase()==="false"||w.length===4&&w.toLowerCase()==="true"?function(S){var T=S.trim();return T.length!==5||T.toLowerCase()!=="false"}(_):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(_):y(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),a=n(104);e.exports=function(l,c,f,h){if(!s(l))return l;for(var p=-1,m=(c=i(c,l)).length,v=m-1,y=l;y!=null&&++p<m;){var x=a(c[p]),_=f;if(p!=v){var w=y[x];(_=h?h(w,x,y):void 0)===void 0&&(_=s(w)?w:o(c[p+1])?[]:{})}r(y,x,_),y=y[x]}return l}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(s,a,l){var c=s[a];o.call(s,a)&&i(c,l)&&(l!==void 0||a in s)||r(s,a,l)}},function(e,t,n){var r=n(64);e.exports=function(i,o,s){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[o]=s}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),s=n(72),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,h=c.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(m){return!(!o(m)||i(m))&&(r(m)?p:a).test(s(m))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var s=r(o);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(l){var c=o.call(l,a),f=l[a];try{l[a]=void 0;var h=!0}catch{}var p=s.call(l);return h&&(c?l[a]=f:delete l[a]),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),s=n(100);e.exports=function(a,l){return r(a)?a:i(a,l)?[a]:o(s(a))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(a,l){if(r(a))return!1;var c=typeof a;return!(c!="number"&&c!="symbol"&&c!="boolean"&&a!=null&&!i(a))||s.test(a)||!o.test(a)||l!=null&&a 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(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(r,function(l,c,f,h){a.push(f?h.replace(i,"$1"):c||l)}),a});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(a){return s.size===500&&s.clear(),a}),s=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new TypeError(i);var l=function(){var c=arguments,f=a?a.apply(this,c):c[0],h=l.cache;if(h.has(f))return h.get(f);var p=s.apply(this,c);return l.cache=h.set(f,p)||h,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),s=n(98),a=n(99);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){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=s,l.prototype.set=a,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),s=n(86),a=n(87);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){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=s,l.prototype.set=a,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 s=this.__data__;if(r){var a=s[o];return a==="__lodash_hash_undefined__"?void 0:a}return i.call(s,o)?s[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;return r?s[o]!==void 0:i.call(s,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),s=n(92),a=n(93);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){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=s,l.prototype.set=a,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 s=this.__data__,a=r(s,o);return!(a<0||(a==s.length-1?s.pop():i.call(s,a,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,s=r(o,i);return s<0?void 0:o[s][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,a=r(s,i);return a<0?(++this.size,s.push([i,o])):s[a][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),a=s.size;return s.set(i,o),this.size+=s.size==a?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(s(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i<o;)s[i]=r(n[i],i,n);return s}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),s=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,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&a(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function v(y,x,_,w,S){if(_>=y.length)S();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var T=x.parseRuntime.subscribe.onNext,P=y[_],k=T(P,x.parseRuntime.parsedLineNumber+_);if(_++,k&&k.then)k.then(function(){(function(D,z,A,W,Y,J,Z){Y&&a(A,Z),v(D,A,W,Y,J)})(y,0,x,_,w,S,P)},S);else{for(w&&a(x,P);_<y.length;){var N=y[_];T(N,x.parseRuntime.parsedLineNumber+_),_++,w&&a(x,N)}S()}}else{if(w)for(;_<y.length;)N=y[_++],a(x,N);S()}}(c,f.converter,0,f.needPushDownstream,function(v){v?m(v):(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"&&a(this.converter,"]"+o.EOL)},l}();function a(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=s},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
`,t.homedir=function(){return"/"}}]);const $_e=ri(F_e),B_e=e=>new Promise(t=>{$_e().fromString(e).then(t)}),z_e=new I_e,U_e=e=>z_e.parse(e),V_e=6,dL="0123456789ABCDEF",H_e=128,{floor:W_e,random:Y_e,sqrt:q_e,round:G_e}=Math,Z_e=()=>`#${mE(V_e,()=>dL[W_e(Y_e()*dL.length)]).join("")}`,hL=e=>e.toLowerCase().trim(),K_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),X_e=(e=0,t=0,n=0)=>G_e(q_e(.299*e**2+.587*t**2+.114*n**2));class Q_e{constructor(t){xe(this,"colors");xe(this,"lights");xe(this,"getColorForKey",t=>{const n=hL(t),r=this.colors[n];return r||this.setColorForKey(n,Z_e())});xe(this,"setColorForKey",(t,n)=>{const r=hL(t);return this.colors[r]=n,this.storage.set("colors",this.colors),n});xe(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if($o(this.lights[n])){const r=K_e(n);this.lights[n]=X_e(...r)>=H_e}return this.lights[n]});this.storage=t,this.colors=this.storage.get("colors")??{},this.lights={}}}const J_e="shlink",pL=e=>`${J_e}.${e}`;class e0e{constructor(t){xe(this,"get",t=>{const n=this.localStorage.getItem(pL(t));return n?JSON.parse(n):void 0});xe(this,"set",(t,n)=>this.localStorage.setItem(pL(t),JSON.stringify(n)));this.localStorage=t}}const t0e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",e0e,"localStorage"),e.service("ColorGenerator",Q_e,"Storage"),e.constant("csvToJson",B_e),e.constant("jsonToCsv",U_e),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",Poe,"setTimeout","clearTimeout")},JE=e=>e.visitedUrl!==void 0,n0e=e=>e.visitedUrl!==void 0,r0e=Dt(oZ(e=>JE(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),jp=(e,t)=>Tj(at(t),e),dh=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Ys(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Ys(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:s}},hh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>g.jsx("header",{children:g.jsxs(Sr,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(ht,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:g.jsx(je,{icon:tI})}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:i})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(X5,{visitsCount:e.length,shortUrl:n})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:i})}),r&&g.jsx("div",{className:"mt-md-2",children:r})]})});const F8=({title:e,footer:t,children:n})=>g.jsxs(Sr,{role:"document",children:[g.jsx(nl,{className:"chart-card__header",children:typeof e=="function"?e():e}),g.jsx(tl,{children:n}),t&&g.jsx(WC,{className:"chart-card__footer--sticky",children:t})]}),$8="label";function mL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function i0e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function B8(e,t){e.labels=t}function z8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$8;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function o0e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$8;const n={labels:[],datasets:[]};return B8(n,e.labels),z8(n,e.datasets,t),n}function U8(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function s0e(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,m=V.useRef(null),v=V.useRef(),y=()=>{m.current&&(v.current=new cy(m.current,{type:s,data:o0e(a,o),options:l&&{...l},plugins:c}),mL(t,v.current))},x=()=>{mL(t,null),v.current&&(v.current.destroy(),v.current=null)};return V.useEffect(()=>{!i&&v.current&&l&&i0e(v.current,l)},[i,l]),V.useEffect(()=>{!i&&v.current&&B8(v.current.config.data,a.labels)},[i,a.labels]),V.useEffect(()=>{!i&&v.current&&a.datasets&&z8(v.current.config.data,a.datasets,o)},[i,a.datasets]),V.useEffect(()=>{v.current&&(i?(x(),setTimeout(y)):v.current.update(h))},[i,l,a.labels,a.datasets,h]),V.useEffect(()=>{v.current&&(x(),setTimeout(y))},[s]),V.useEffect(()=>(y(),()=>x()),[]),U.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const a0e=V.forwardRef(s0e);function eT(e,t){return cy.register(t),V.forwardRef((n,r)=>U.createElement(a0e,Object.assign({},n,{ref:r,type:e})))}const l0e=eT("line",af),c0e=eT("bar",sf),u0e=eT("doughnut",us),V8=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},H8=({dataset:e,raw:t})=>`${e.label}: ${_n(`${t}`)}`,f0e=({label:e,raw:t})=>`${e}: ${_n(`${t}`)}`;const d0e=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return g.jsx("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),g.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},h0e=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:$oe()?Foe:Ioe,borderWidth:2}],p0e=(e,t)=>({labels:e,datasets:h0e(t)}),m0e=V.memo(({stats:e})=>{const[t,n]=V.useState(),r=eo(e),i=Kc(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:f0e}}}},s=p0e(r,i);return g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx(u0e,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:t&&g.jsx(d0e,{chart:t})})]})}),gL=({title:e,stats:t})=>g.jsx(F8,{title:e,children:g.jsx(m0e,{stats:t})}),g0e={"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"},W8={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Jt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},sr={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"},Jo={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class we{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=we.getVersionPrecision(t),o=we.getVersionPrecision(n);let s=Math.max(i,o),a=0;const l=we.map([t,n],c=>{const f=s-we.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return we.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(l=>{r[l]=s[l]})}return t}static getBrowserAlias(t){return g0e[t]}static getBrowserTypeByAlias(t){return W8[t]||""}}const xt=/version\/(\d+(\.?_?\d+)+)/i,v0e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=we.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=we.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=we.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=we.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=we.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=we.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=we.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=we.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=we.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=we.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=we.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=we.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=we.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=we.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=we.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=we.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=we.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=we.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=we.getFirstMatch(xt,e)||we.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=we.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=we.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=we.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=we.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=we.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=we.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=we.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=we.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=we.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=we.getFirstMatch(xt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:we.getFirstMatch(i,e),version:we.getSecondMatch(i,e)}}}],y0e=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:sr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:sr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=we.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=we.getWindowsVersionName(t);return{name:sr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:sr.iOS},n=we.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=we.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=we.getMacOSVersionName(t),r={name:sr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=we.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:sr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=we.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=we.getAndroidVersionName(t),r={name:sr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=we.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:sr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=we.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||we.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||we.getFirstMatch(/\bbb(\d+)/i,e);return{name:sr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:sr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:sr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:sr.Linux}}},{test:[/CrOS/],describe(){return{name:sr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:sr.PlayStation4,version:t}}}],_0e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=we.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Jt.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Jt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Jt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Jt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Jt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Jt.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=we.getFirstMatch(/(ipod|iphone)/i,e);return{type:Jt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Jt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Jt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Jt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Jt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Jt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Jt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Jt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Jt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Jt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Jt.tv}}}],b0e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jo.Blink};const n=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jo.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Jo.Trident},n=we.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Jo.Presto},n=we.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Jo.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jo.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Jo.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class vL{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=we.find(v0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=we.find(y0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=we.find(_0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=we.find(b0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return we.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,o+=1):typeof l=="object"&&(n[a]=l,r+=1)}),r>0){const a=Object.keys(n),l=we.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=we.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const a=Object.keys(i),l=we.find(a,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=we.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(we.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 w0e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new vL(t,n)}static parse(t){return new vL(t).getResult()}static get BROWSER_MAP(){return W8}static get ENGINE_MAP(){return Jo}static get OS_MAP(){return sr}static get PLATFORMS_MAP(){return Jt}}const Ip="Others",x0e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],S0e=e=>{if(!vi(e))return{browser:Ip,os:Ip};const{browser:{name:t},os:{name:n}}=w0e.parse(e);return{os:n??Ip,browser:t&&x0e.includes(t)?t:Ip}},C0e=e=>{var t;return vi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},tT=(e,t)=>Object.values({...Rj(t,t.map(()=>0)),...e});const yL={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},E0e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},T0e={hourly:Hae,daily:SE,weekly:Gae,monthly:gv},nT={hourly:e=>yo(e,"yyyy-MM-dd HH:00"),daily:e=>yo(e,Pf),weekly(e){const t=yo(wd(e),Pf),n=yo(Qae(e),Pf);return`${t} - ${n}`},monthly:e=>yo(e,"yyyy-MM")},O0e=e=>{const t=new Date,n=Ao(e);return XS([[()=>SE(t,n)<=2,H0("hourly")],[()=>gv(t,n)<=1,H0("daily")],[()=>gv(t,n)<=6,H0("weekly")]])()??"monthly"},_L=(e,t)=>Tj(n=>nT[e](Ao(n.date)),t),P0e=(e,t)=>t.reduce((n,r)=>{const i=nT[e](Ao(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),k0e=(e,t)=>{const n=T0e[e],r=nT[e],i=Ao(t[0].date),o=Ao(t[t.length-1].date),s=n(i,o),a=E0e[e];return[r(o),...mE(s,l=>r(Lae(o,a(l))))]},M0e=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=k0e(n,e);return[i,tT(t,i)]},bL=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let V1=null;const R0e=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;V1===e[i]?(r([]),V1=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),V1=e[i]??null)},N0e=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=V.useState(t.length>0?O0e(t[t.length-1].date):"monthly"),[a,l]=hn(!0),c=V.useRef(null),f=V.useRef(null),h=V.useMemo(()=>P0e(o,t),[o,t]),p=V.useMemo(()=>_L(o,rw(t)),[o,t]),[m,v]=V.useMemo(()=>M0e(t,p,o,a),[t,o,a]),y=V.useMemo(()=>tT(_L(o,rw(n)),m),[n,o,m]),x=()=>{const T=bL(v,"Visits",oE);if(n.length===0)return[T];const P=bL(y,r,P6);return[T,P]},_=()=>({labels:m,datasets:x()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:H8}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:_n}},x:{title:{display:!0,text:yL[o]}}},onHover:V8},S=T=>g.jsx(l0e,{ref:T,data:_(),options:w,onClick:P=>R0e(m,h,U8(T.current,P),i)});return g.jsxs(Sr,{children:[g.jsxs(nl,{role:"heading",children:[e,g.jsx("div",{className:"float-end",children:g.jsxs(Jd,{children:[g.jsx(Zd,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(eu,{end:!0,children:Object.entries(yL).map(([T,P])=>g.jsx(Ue,{active:o===T,onClick:()=>s(T),children:P},T))})]})}),g.jsx("div",{className:"float-end me-2",children:g.jsx(Uc,{checked:a,onChange:l,children:g.jsx("small",{children:"Skip dates with no visits"})})})]}),g.jsxs(tl,{className:"line-chart-card__body",children:[n.length>0&&S(c),n.length===0&&S(f)]})]})},L0e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>g.jsxs(Jd,{children:[g.jsx(Zd,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(eu,{end:!0,children:[t.map(i=>g.jsxs(Ue,{active:i===n,onClick:()=>r(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),D0e=e=>e.startsWith("hidden")?"":e,A0e=e=>!!e&&Object.keys(e).length>0,j0e=e=>e.length>20?e.length*10:void 0,I0e=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:Aoe,borderColor:oE,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:joe,borderColor:P6,borderWidth:2}]},F0e=(e,t,n,r)=>({labels:e,datasets:I0e(t,n,r)}),$0e=(e,[t],n)=>{!n||!t||n(e[t.index])},B0e=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=eo(e).map(D0e),s=Kc(A0e(t)?eo(t).reduce((v,y)=>(v[y]&&(v[y]-=t[y]),v),{...e}):e),a=tT(t??{},o),l=V.useRef(null),c=V.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:v})=>v!=="",callbacks:{label:H8}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:_n}},y:{stacked:!0}},onHover:V8,indexAxis:"y"},h=F0e(o,s,a,n),p=j0e(o),m=(v,y)=>g.jsx(c0e,{ref:y,data:h,options:f,height:p,onClick:x=>$0e(o,U8(y.current,x),r)},`${p}_${v}`);return g.jsxs(g.Fragment,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},z0e=e=>Wg(e)==="String"?PZ(e):e,wL=([e])=>e,xL=([,e])=>e,Fp=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=V.useState({}),[c,f]=V.useState(1),[h,p]=V.useState(50),m=(N,D)=>{const z=qg(N),A=a.field?EZ(Dt(a.field===Object.keys(D)[0]?wL:xL,z0e),z):z;return!a.dir||a.dir==="ASC"?A:rw(A)},v=N=>{const D=N[c-1];if(c<N.length)return D;const z=N[0].length;return[...D,...mE(z-D.length,A=>[`hidden_${A}`,0])]},y=N=>g.jsx(qE,{currentPage:c,pagesCount:N,setCurrentPage:f}),x=(N,D,z)=>{const A=m(N,D),W=A.map(wL),Y=z&&qg({...Rj(W,W.map(()=>0)),...z});if(A.length<=h)return{currentPageStats:Gu(A),currentPageHighlightedStats:Y&&Gu(Y)};const J=ad(h,A),Z=Y&&ad(h,Y);return{currentPageStats:Gu(v(J)),currentPageHighlightedStats:Z&&Gu(v(Z)),pagination:y(J.length),max:Gpe(Math.max(...A.map(xL)))}},{currentPageStats:_,currentPageHighlightedStats:w,pagination:S,max:T}=x(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(_),k=()=>g.jsxs(g.Fragment,{children:[n,g.jsx("div",{className:"float-end",children:g.jsx(fh,{isButton:!1,right:!0,items:r,order:a,onChange:(N,D)=>{l({field:N,dir:D}),f(1)}})}),o&&Object.keys(e).length>50&&g.jsx("div",{className:"float-end",children:g.jsx(L0e,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&g.jsx("div",{className:"float-end",children:i(S?P:void 0)})]});return g.jsx(F8,{title:k,footer:S,children:g.jsx(B0e,{stats:_,highlightedStats:w,max:T,...s})})},U0e=()=>{const e=Fo(),{search:t}=Pn(),{filtering:n,domain:r}=V.useMemo(Dt(()=>fl(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?k5(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:$o(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=Pj(n,o),{excludeBots:l,orphanVisitsType:c}=a,f={startDate:(s==null?void 0:s.startDate)&&Ys(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&Ys(s.endDate)||"",excludeBots:l===void 0?void 0:Q6(l),orphanVisitsType:c,domain:r},h=Vd(f),p=Wn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]};function Y8(e,t){const n=V.useRef(t);V.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 V0e=1;function H0e(e){return Object.freeze({__version:V0e,map:e})}function W0e(e,t){return Object.freeze({...e,...t})}const q8=V.createContext(null),G8=q8.Provider;function Z8(){const e=V.useContext(q8);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Y0e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return V.useImperativeHandle(r,()=>i),n.children==null?null:U.createElement(G8,{value:o},n.children)}return V.forwardRef(t)}function q0e(e){function t(n,r){const[i,o]=V.useState(!1),{instance:s}=e(n,o).current;V.useImperativeHandle(r,()=>s),V.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Id.createPortal(n.children,a):null}return V.forwardRef(t)}function G0e(e){function t(n,r){const{instance:i}=e(n).current;return V.useImperativeHandle(r,()=>i),null}return V.forwardRef(t)}function K8(e,t){const n=V.useRef();V.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 rT(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Z0e(e,t){return function(r,i){const o=Z8(),s=e(rT(r,o),o);return Y8(o.map,r.attribution),K8(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var v2={exports:{}};/* @preserve
* Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/(function(e,t){(function(n,r){r(t)})($l,function(n){var r="1.9.3";function i(u){var d,b,E,M;for(b=1,E=arguments.length;b<E;b++){M=arguments[b];for(d in M)u[d]=M[d]}return u}var o=Object.create||function(){function u(){}return function(d){return u.prototype=d,new u}}();function s(u,d){var b=Array.prototype.slice;if(u.bind)return u.bind.apply(u,b.call(arguments,1));var E=b.call(arguments,2);return function(){return u.apply(d,E.length?E.concat(b.call(arguments)):arguments)}}var a=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++a),u._leaflet_id}function c(u,d,b){var E,M,$,Q;return Q=function(){E=!1,M&&($.apply(b,M),M=!1)},$=function(){E?M=arguments:(u.apply(b,arguments),setTimeout(Q,d),E=!0)},$}function f(u,d,b){var E=d[1],M=d[0],$=E-M;return u===E&&b?u:((u-M)%$+$)%$+M}function h(){return!1}function p(u,d){if(d===!1)return u;var b=Math.pow(10,d===void 0?6:d);return Math.round(u*b)/b}function m(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return m(u).split(/\s+/)}function y(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var b in d)u.options[b]=d[b];return u.options}function x(u,d,b){var E=[];for(var M in u)E.push(encodeURIComponent(b?M.toUpperCase():M)+"="+encodeURIComponent(u[M]));return(!d||d.indexOf("?")===-1?"?":"&")+E.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function w(u,d){return u.replace(_,function(b,E){var M=d[E];if(M===void 0)throw new Error("No value provided for variable "+b);return typeof M=="function"&&(M=M(d)),M})}var S=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function T(u,d){for(var b=0;b<u.length;b++)if(u[b]===d)return b;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var N=0;function D(u){var d=+new Date,b=Math.max(0,16-(d-N));return N=d+b,window.setTimeout(u,b)}var z=window.requestAnimationFrame||k("RequestAnimationFrame")||D,A=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function W(u,d,b){if(b&&z===D)u.call(d);else return z.call(window,s(u,d))}function Y(u){u&&A.call(window,u)}var J={__proto__:null,extend:i,create:o,bind:s,get lastId(){return a},stamp:l,throttle:c,wrapNum:f,falseFn:h,formatNum:p,trim:m,splitWords:v,setOptions:y,getParamString:x,template:w,isArray:S,indexOf:T,emptyImageUrl:P,requestFn:z,cancelFn:A,requestAnimFrame:W,cancelAnimFrame:Y};function Z(){}Z.extend=function(u){var d=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},b=d.__super__=this.prototype,E=o(b);E.constructor=d,d.prototype=E;for(var M in this)Object.prototype.hasOwnProperty.call(this,M)&&M!=="prototype"&&M!=="__super__"&&(d[M]=this[M]);return u.statics&&i(d,u.statics),u.includes&&(ee(u.includes),i.apply(null,[E].concat(u.includes))),i(E,u),delete E.statics,delete E.includes,E.options&&(E.options=b.options?o(b.options):{},i(E.options,u.options)),E._initHooks=[],E.callInitHooks=function(){if(!this._initHooksCalled){b.callInitHooks&&b.callInitHooks.call(this),this._initHooksCalled=!0;for(var $=0,Q=E._initHooks.length;$<Q;$++)E._initHooks[$].call(this)}},d},Z.include=function(u){var d=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},Z.mergeOptions=function(u){return i(this.prototype.options,u),this},Z.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),b=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(b),this};function ee(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var d=0;d<u.length;d++)u[d]===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 ie={on:function(u,d,b){if(typeof u=="object")for(var E in u)this._on(E,u[E],d);else{u=v(u);for(var M=0,$=u.length;M<$;M++)this._on(u[M],d,b)}return this},off:function(u,d,b){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var E in u)this._off(E,u[E],d);else{u=v(u);for(var M=arguments.length===1,$=0,Q=u.length;$<Q;$++)M?this._off(u[$]):this._off(u[$],d,b)}return this},_on:function(u,d,b,E){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,b)===!1){b===this&&(b=void 0);var M={fn:d,ctx:b};E&&(M.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(M)}},_off:function(u,d,b){var E,M,$;if(this._events&&(E=this._events[u],!!E)){if(arguments.length===1){if(this._firingCount)for(M=0,$=E.length;M<$;M++)E[M].fn=h;delete this._events[u];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var Q=this._listens(u,d,b);if(Q!==!1){var fe=E[Q];this._firingCount&&(fe.fn=h,this._events[u]=E=E.slice()),E.splice(Q,1)}}},fire:function(u,d,b){if(!this.listens(u,b))return this;var E=i({},d,{type:u,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var M=this._events[u];if(M){this._firingCount=this._firingCount+1||1;for(var $=0,Q=M.length;$<Q;$++){var fe=M[$],he=fe.fn;fe.once&&this.off(u,he,fe.ctx),he.call(fe.ctx||this,E)}this._firingCount--}}return b&&this._propagateEvent(E),this},listens:function(u,d,b,E){typeof u!="string"&&console.warn('"string" type argument expected');var M=d;typeof d!="function"&&(E=!!d,M=void 0,b=void 0);var $=this._events&&this._events[u];if($&&$.length&&this._listens(u,M,b)!==!1)return!0;if(E){for(var Q in this._eventParents)if(this._eventParents[Q].listens(u,d,b,E))return!0}return!1},_listens:function(u,d,b){if(!this._events)return!1;var E=this._events[u]||[];if(!d)return!!E.length;b===this&&(b=void 0);for(var M=0,$=E.length;M<$;M++)if(E[M].fn===d&&E[M].ctx===b)return M;return!1},once:function(u,d,b){if(typeof u=="object")for(var E in u)this._on(E,u[E],d,!0);else{u=v(u);for(var M=0,$=u.length;M<$;M++)this._on(u[M],d,b,!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 d in this._eventParents)this._eventParents[d].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!0)}};ie.addEventListener=ie.on,ie.removeEventListener=ie.clearAllEventListeners=ie.off,ie.addOneTimeEventListener=ie.once,ie.fireEvent=ie.fire,ie.hasEventListeners=ie.listens;var oe=Z.extend(ie);function G(u,d,b){this.x=b?Math.round(u):u,this.y=b?Math.round(d):d}var F=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(u){return this.clone()._add(j(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(j(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 G(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new G(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=F(this.x),this.y=F(this.y),this},distanceTo:function(u){u=j(u);var d=u.x-this.x,b=u.y-this.y;return Math.sqrt(d*d+b*b)},equals:function(u){return u=j(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=j(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 j(u,d,b){return u instanceof G?u:S(u)?new G(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new G(u.x,u.y):new G(u,d,b)}function B(u,d){if(u)for(var b=d?[u,d]:u,E=0,M=b.length;E<M;E++)this.extend(b[E])}B.prototype={extend:function(u){var d,b;if(!u)return this;if(u instanceof G||typeof u[0]=="number"||"x"in u)d=b=j(u);else if(u=ne(u),d=u.min,b=u.max,!d||!b)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=b.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(b.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(b.y,this.max.y)),this},getCenter:function(u){return j((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return j(this.min.x,this.max.y)},getTopRight:function(){return j(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 d,b;return typeof u[0]=="number"||u instanceof G?u=j(u):u=ne(u),u instanceof B?(d=u.min,b=u.max):d=b=u,d.x>=this.min.x&&b.x<=this.max.x&&d.y>=this.min.y&&b.y<=this.max.y},intersects:function(u){u=ne(u);var d=this.min,b=this.max,E=u.min,M=u.max,$=M.x>=d.x&&E.x<=b.x,Q=M.y>=d.y&&E.y<=b.y;return $&&Q},overlaps:function(u){u=ne(u);var d=this.min,b=this.max,E=u.min,M=u.max,$=M.x>d.x&&E.x<b.x,Q=M.y>d.y&&E.y<b.y;return $&&Q},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,b=this.max,E=Math.abs(d.x-b.x)*u,M=Math.abs(d.y-b.y)*u;return ne(j(d.x-E,d.y-M),j(b.x+E,b.y+M))},equals:function(u){return u?(u=ne(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function ne(u,d){return!u||u instanceof B?u:new B(u,d)}function H(u,d){if(u)for(var b=d?[u,d]:u,E=0,M=b.length;E<M;E++)this.extend(b[E])}H.prototype={extend:function(u){var d=this._southWest,b=this._northEast,E,M;if(u instanceof te)E=u,M=u;else if(u instanceof H){if(E=u._southWest,M=u._northEast,!E||!M)return this}else return u?this.extend(se(u)||q(u)):this;return!d&&!b?(this._southWest=new te(E.lat,E.lng),this._northEast=new te(M.lat,M.lng)):(d.lat=Math.min(E.lat,d.lat),d.lng=Math.min(E.lng,d.lng),b.lat=Math.max(M.lat,b.lat),b.lng=Math.max(M.lng,b.lng)),this},pad:function(u){var d=this._southWest,b=this._northEast,E=Math.abs(d.lat-b.lat)*u,M=Math.abs(d.lng-b.lng)*u;return new H(new te(d.lat-E,d.lng-M),new te(b.lat+E,b.lng+M))},getCenter:function(){return new te((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 te(this.getNorth(),this.getWest())},getSouthEast:function(){return new te(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 te||"lat"in u?u=se(u):u=q(u);var d=this._southWest,b=this._northEast,E,M;return u instanceof H?(E=u.getSouthWest(),M=u.getNorthEast()):E=M=u,E.lat>=d.lat&&M.lat<=b.lat&&E.lng>=d.lng&&M.lng<=b.lng},intersects:function(u){u=q(u);var d=this._southWest,b=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),$=M.lat>=d.lat&&E.lat<=b.lat,Q=M.lng>=d.lng&&E.lng<=b.lng;return $&&Q},overlaps:function(u){u=q(u);var d=this._southWest,b=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),$=M.lat>d.lat&&E.lat<b.lat,Q=M.lng>d.lng&&E.lng<b.lng;return $&&Q},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=q(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function q(u,d){return u instanceof H?u:new H(u,d)}function te(u,d,b){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,b!==void 0&&(this.alt=+b)}te.prototype={equals:function(u,d){if(!u)return!1;u=se(u);var b=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return b<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return O.distance(this,se(u))},wrap:function(){return O.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,b=d/Math.cos(Math.PI/180*this.lat);return q([this.lat-d,this.lng-b],[this.lat+d,this.lng+b])},clone:function(){return new te(this.lat,this.lng,this.alt)}};function se(u,d,b){return u instanceof te?u:S(u)&&typeof u[0]!="object"?u.length===3?new te(u[0],u[1],u[2]):u.length===2?new te(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new te(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new te(u,d,b)}var pe={latLngToPoint:function(u,d){var b=this.projection.project(u),E=this.scale(d);return this.transformation._transform(b,E)},pointToLatLng:function(u,d){var b=this.scale(d),E=this.transformation.untransform(u,b);return this.projection.unproject(E)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var d=this.projection.bounds,b=this.scale(u),E=this.transformation.transform(d.min,b),M=this.transformation.transform(d.max,b);return new B(E,M)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,b=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,E=u.alt;return new te(b,d,E)},wrapLatLngBounds:function(u){var d=u.getCenter(),b=this.wrapLatLng(d),E=d.lat-b.lat,M=d.lng-b.lng;if(E===0&&M===0)return u;var $=u.getSouthWest(),Q=u.getNorthEast(),fe=new te($.lat-E,$.lng-M),he=new te(Q.lat-E,Q.lng-M);return new H(fe,he)}},O=i({},pe,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var b=Math.PI/180,E=u.lat*b,M=d.lat*b,$=Math.sin((d.lat-u.lat)*b/2),Q=Math.sin((d.lng-u.lng)*b/2),fe=$*$+Math.cos(E)*Math.cos(M)*Q*Q,he=2*Math.atan2(Math.sqrt(fe),Math.sqrt(1-fe));return this.R*he}}),R=6378137,I={R,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,b=this.MAX_LATITUDE,E=Math.max(Math.min(b,u.lat),-b),M=Math.sin(E*d);return new G(this.R*u.lng*d,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(u){var d=180/Math.PI;return new te((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:function(){var u=R*Math.PI;return new B([-u,-u],[u,u])}()};function X(u,d,b,E){if(S(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=d,this._c=b,this._d=E}X.prototype={transform:function(u,d){return this._transform(u.clone(),d)},_transform:function(u,d){return d=d||1,u.x=d*(this._a*u.x+this._b),u.y=d*(this._c*u.y+this._d),u},untransform:function(u,d){return d=d||1,new G((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function K(u,d,b,E){return new X(u,d,b,E)}var ae=i({},O,{code:"EPSG:3857",projection:I,transformation:function(){var u=.5/(Math.PI*I.R);return K(u,.5,-u,.5)}()}),ge=i({},ae,{code:"EPSG:900913"});function Le(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function ue(u,d){var b="",E,M,$,Q,fe,he;for(E=0,$=u.length;E<$;E++){for(fe=u[E],M=0,Q=fe.length;M<Q;M++)he=fe[M],b+=(M?"L":"M")+he.x+" "+he.y;b+=d?He.svg?"z":"x":""}return b||"M0 0"}var ve=document.documentElement.style,_e="ActiveXObject"in window,Te=_e&&!document.addEventListener,De="msLaunchUri"in navigator&&!("documentMode"in document),Re=jn("webkit"),Ne=jn("android"),ce=jn("android 2")||jn("android 3"),de=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),be=Ne&&jn("Google")&&de<537&&!("AudioNode"in window),ye=!!window.opera,Ce=!De&&jn("chrome"),ke=jn("gecko")&&!Re&&!ye&&!_e,Ie=!Ce&&jn("safari"),Je=jn("phantom"),et="OTransition"in ve,Ge=navigator.platform.indexOf("Win")===0,Ht=_e&&"transition"in ve,Ft="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ce,wn="MozPerspective"in ve,ir=!window.L_DISABLE_3D&&(Ht||Ft||wn)&&!et&&!Je,Ri=typeof orientation<"u"||jn("mobile"),Ln=Ri&&Re,ou=Ri&&Ft,Ni=!window.PointerEvent&&window.MSPointerEvent,gh=!!(window.PointerEvent||Ni),vh="ontouchstart"in window||!!window.TouchEvent,yh=!window.L_NO_TOUCH&&(vh||gh),su=Ri&&ye,oa=Ri&&ke,sn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Xt=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),or=function(){return!!document.createElement("canvas").getContext}(),Dn=!!(document.createElementNS&&Le("svg").createSVGRect),An=!!Dn&&function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),pn=!Dn&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),ai=navigator.platform.indexOf("Mac")===0,li=navigator.platform.indexOf("Linux")===0;function jn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var He={ie:_e,ielt9:Te,edge:De,webkit:Re,android:Ne,android23:ce,androidStock:be,opera:ye,chrome:Ce,gecko:ke,safari:Ie,phantom:Je,opera12:et,win:Ge,ie3d:Ht,webkit3d:Ft,gecko3d:wn,any3d:ir,mobile:Ri,mobileWebkit:Ln,mobileWebkit3d:ou,msPointer:Ni,pointer:gh,touch:yh,touchNative:vh,mobileOpera:su,mobileGecko:oa,retina:sn,passiveEvents:Xt,canvas:or,svg:Dn,vml:pn,inlineSvg:An,mac:ai,linux:li},lT=He.msPointer?"MSPointerDown":"pointerdown",cT=He.msPointer?"MSPointerMove":"pointermove",uT=He.msPointer?"MSPointerUp":"pointerup",fT=He.msPointer?"MSPointerCancel":"pointercancel",M_={touchstart:lT,touchmove:cT,touchend:uT,touchcancel:fT},dT={touchstart:gF,touchmove:_h,touchend:_h,touchcancel:_h},ml={},hT=!1;function fF(u,d,b){return d==="touchstart"&&mF(),dT[d]?(b=dT[d].bind(this,b),u.addEventListener(M_[d],b,!1),b):(console.warn("wrong event specified:",d),h)}function dF(u,d,b){if(!M_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(M_[d],b,!1)}function hF(u){ml[u.pointerId]=u}function pF(u){ml[u.pointerId]&&(ml[u.pointerId]=u)}function pT(u){delete ml[u.pointerId]}function mF(){hT||(document.addEventListener(lT,hF,!0),document.addEventListener(cT,pF,!0),document.addEventListener(uT,pT,!0),document.addEventListener(fT,pT,!0),hT=!0)}function _h(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var b in ml)d.touches.push(ml[b]);d.changedTouches=[d],u(d)}}function gF(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&In(d),_h(u,d)}function vF(u){var d={},b,E;for(E in u)b=u[E],d[E]=b&&b.bind?b.bind(u):b;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var yF=200;function _F(u,d){u.addEventListener("dblclick",d);var b=0,E;function M($){if($.detail!==1){E=$.detail;return}if(!($.pointerType==="mouse"||$.sourceCapabilities&&!$.sourceCapabilities.firesTouchEvents)){var Q=_T($);if(!(Q.some(function(he){return he instanceof HTMLLabelElement&&he.attributes.for})&&!Q.some(function(he){return he instanceof HTMLInputElement||he instanceof HTMLSelectElement}))){var fe=Date.now();fe-b<=yF?(E++,E===2&&d(vF($))):E=1,b=fe}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function bF(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var R_=xh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),au=xh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),mT=au==="webkitTransition"||au==="OTransition"?au+"End":"transitionend";function gT(u){return typeof u=="string"?document.getElementById(u):u}function lu(u,d){var b=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!b||b==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);b=E?E[d]:null}return b==="auto"?null:b}function ft(u,d,b){var E=document.createElement(u);return E.className=d||"",b&&b.appendChild(E),E}function $t(u){var d=u.parentNode;d&&d.removeChild(u)}function bh(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function gl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function vl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function N_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var b=wh(u);return b.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(b)}function Xe(u,d){if(u.classList!==void 0)for(var b=v(d),E=0,M=b.length;E<M;E++)u.classList.add(b[E]);else if(!N_(u,d)){var $=wh(u);L_(u,($?$+" ":"")+d)}}function Qt(u,d){u.classList!==void 0?u.classList.remove(d):L_(u,m((" "+wh(u)+" ").replace(" "+d+" "," ")))}function L_(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function wh(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function Br(u,d){"opacity"in u.style?u.style.opacity=d:"filter"in u.style&&wF(u,d)}function wF(u,d){var b=!1,E="DXImageTransform.Microsoft.Alpha";try{b=u.filters.item(E)}catch{if(d===1)return}d=Math.round(d*100),b?(b.Enabled=d!==100,b.Opacity=d):u.style.filter+=" progid:"+E+"(opacity="+d+")"}function xh(u){for(var d=document.documentElement.style,b=0;b<u.length;b++)if(u[b]in d)return u[b];return!1}function sa(u,d,b){var E=d||new G(0,0);u.style[R_]=(He.ie3d?"translate("+E.x+"px,"+E.y+"px)":"translate3d("+E.x+"px,"+E.y+"px,0)")+(b?" scale("+b+")":"")}function an(u,d){u._leaflet_pos=d,He.any3d?sa(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function aa(u){return u._leaflet_pos||new G(0,0)}var cu,uu,D_;if("onselectstart"in document)cu=function(){Ze(window,"selectstart",In)},uu=function(){St(window,"selectstart",In)};else{var fu=xh(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);cu=function(){if(fu){var u=document.documentElement.style;D_=u[fu],u[fu]="none"}},uu=function(){fu&&(document.documentElement.style[fu]=D_,D_=void 0)}}function A_(){Ze(window,"dragstart",In)}function j_(){St(window,"dragstart",In)}var Sh,I_;function F_(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Ch(),Sh=u,I_=u.style.outline,u.style.outline="none",Ze(window,"keydown",Ch))}function Ch(){Sh&&(Sh.style.outline=I_,Sh=void 0,I_=void 0,St(window,"keydown",Ch))}function vT(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function $_(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var xF={__proto__:null,TRANSFORM:R_,TRANSITION:au,TRANSITION_END:mT,get:gT,getStyle:lu,create:ft,remove:$t,empty:bh,toFront:gl,toBack:vl,hasClass:N_,addClass:Xe,removeClass:Qt,setClass:L_,getClass:wh,setOpacity:Br,testProp:xh,setTransform:sa,setPosition:an,getPosition:aa,get disableTextSelection(){return cu},get enableTextSelection(){return uu},disableImageDrag:A_,enableImageDrag:j_,preventOutline:F_,restoreOutline:Ch,getSizedParentNode:vT,getScale:$_};function Ze(u,d,b,E){if(d&&typeof d=="object")for(var M in d)z_(u,M,d[M],b);else{d=v(d);for(var $=0,Q=d.length;$<Q;$++)z_(u,d[$],b,E)}return this}var Li="_leaflet_events";function St(u,d,b,E){if(arguments.length===1)yT(u),delete u[Li];else if(d&&typeof d=="object")for(var M in d)U_(u,M,d[M],b);else if(d=v(d),arguments.length===2)yT(u,function(fe){return T(d,fe)!==-1});else for(var $=0,Q=d.length;$<Q;$++)U_(u,d[$],b,E);return this}function yT(u,d){for(var b in u[Li]){var E=b.split(/\d/)[0];(!d||d(E))&&U_(u,E,null,null,b)}}var B_={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function z_(u,d,b,E){var M=d+l(b)+(E?"_"+l(E):"");if(u[Li]&&u[Li][M])return this;var $=function(fe){return b.call(E||u,fe||window.event)},Q=$;!He.touchNative&&He.pointer&&d.indexOf("touch")===0?$=fF(u,d,$):He.touch&&d==="dblclick"?$=_F(u,$):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(B_[d]||d,$,He.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?($=function(fe){fe=fe||window.event,H_(u,fe)&&Q(fe)},u.addEventListener(B_[d],$,!1)):u.addEventListener(d,Q,!1):u.attachEvent("on"+d,$),u[Li]=u[Li]||{},u[Li][M]=$}function U_(u,d,b,E,M){M=M||d+l(b)+(E?"_"+l(E):"");var $=u[Li]&&u[Li][M];if(!$)return this;!He.touchNative&&He.pointer&&d.indexOf("touch")===0?dF(u,d,$):He.touch&&d==="dblclick"?bF(u,$):"removeEventListener"in u?u.removeEventListener(B_[d]||d,$,!1):u.detachEvent("on"+d,$),u[Li][M]=null}function la(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function V_(u){return z_(u,"wheel",la),this}function du(u){return Ze(u,"mousedown touchstart dblclick contextmenu",la),u._leaflet_disable_click=!0,this}function In(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function ca(u){return In(u),la(u),this}function _T(u){if(u.composedPath)return u.composedPath();for(var d=[],b=u.target;b;)d.push(b),b=b.parentNode;return d}function bT(u,d){if(!d)return new G(u.clientX,u.clientY);var b=$_(d),E=b.boundingClientRect;return new G((u.clientX-E.left)/b.x-d.clientLeft,(u.clientY-E.top)/b.y-d.clientTop)}var SF=He.linux&&He.chrome?window.devicePixelRatio:He.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function wT(u){return He.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/SF: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 H_(u,d){var b=d.relatedTarget;if(!b)return!0;try{for(;b&&b!==u;)b=b.parentNode}catch{return!1}return b!==u}var CF={__proto__:null,on:Ze,off:St,stopPropagation:la,disableScrollPropagation:V_,disableClickPropagation:du,preventDefault:In,stop:ca,getPropagationPath:_T,getMousePosition:bT,getWheelDelta:wT,isExternalTarget:H_,addListener:Ze,removeListener:St},xT=oe.extend({run:function(u,d,b,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=b||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=aa(u),this._offset=d.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=W(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,b=this._duration*1e3;d<b?this._runFrame(this._easeOut(d/b),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var b=this._startPos.add(this._offset.multiplyBy(u));d&&b._round(),an(this._el,b),this.fire("step")},_complete:function(){Y(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),ot=oe.extend({options:{crs:ae,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,d){d=y(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(se(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=au&&He.any3d&&!He.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ze(this._proxy,mT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,b){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(se(u),d,this.options.maxBounds),b=b||{},this._stop(),this._loaded&&!b.reset&&b!==!0){b.animate!==void 0&&(b.zoom=i({animate:b.animate},b.zoom),b.pan=i({animate:b.animate,duration:b.duration},b.pan));var E=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,b.zoom):this._tryAnimatedPan(u,b.pan);if(E)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,b.pan&&b.pan.noMoveStart),this},setZoom:function(u,d){return this._loaded?this.setView(this.getCenter(),u,{zoom:d}):(this._zoom=u,this)},zoomIn:function(u,d){return u=u||(He.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(He.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,b){var E=this.getZoomScale(d),M=this.getSize().divideBy(2),$=u instanceof G?u:this.latLngToContainerPoint(u),Q=$.subtract(M).multiplyBy(1-1/E),fe=this.containerPointToLatLng(M.add(Q));return this.setView(fe,d,{zoom:b})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():q(u);var b=j(d.paddingTopLeft||d.padding||[0,0]),E=j(d.paddingBottomRight||d.padding||[0,0]),M=this.getBoundsZoom(u,!1,b.add(E));if(M=typeof d.maxZoom=="number"?Math.min(d.maxZoom,M):M,M===1/0)return{center:u.getCenter(),zoom:M};var $=E.subtract(b).divideBy(2),Q=this.project(u.getSouthWest(),M),fe=this.project(u.getNorthEast(),M),he=this.unproject(Q.add(fe).divideBy(2).add($),M);return{center:he,zoom:M}},fitBounds:function(u,d){if(u=q(u),!u.isValid())throw new Error("Bounds are not valid.");var b=this._getBoundsCenterZoom(u,d);return this.setView(b.center,b.zoom,d)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,d){return this.setView(u,this._zoom,{pan:d})},panBy:function(u,d){if(u=j(u).round(),d=d||{},!u.x&&!u.y)return this.fire("moveend");if(d.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 xT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Xe(this._mapPane,"leaflet-pan-anim");var b=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,b,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,b){if(b=b||{},b.animate===!1||!He.any3d)return this.setView(u,d,b);this._stop();var E=this.project(this.getCenter()),M=this.project(u),$=this.getSize(),Q=this._zoom;u=se(u),d=d===void 0?Q:d;var fe=Math.max($.x,$.y),he=fe*this.getZoomScale(Q,d),Se=M.distanceTo(E)||1,Ae=1.42,Ye=Ae*Ae;function nt(ln){var Ih=ln?-1:1,d$=ln?he:fe,h$=he*he-fe*fe+Ih*Ye*Ye*Se*Se,p$=2*d$*Ye*Se,t0=h$/p$,nO=Math.sqrt(t0*t0+1)-t0,m$=nO<1e-9?-18:Math.log(nO);return m$}function Ur(ln){return(Math.exp(ln)-Math.exp(-ln))/2}function fa(ln){return(Math.exp(ln)+Math.exp(-ln))/2}function jh(ln){return Ur(ln)/fa(ln)}var Go=nt(0);function e0(ln){return fe*(fa(Go)/fa(Go+Ae*ln))}function l$(ln){return fe*(fa(Go)*jh(Go+Ae*ln)-Ur(Go))/Ye}function c$(ln){return 1-Math.pow(1-ln,1.5)}var u$=Date.now(),eO=(nt(1)-Go)/Ae,f$=b.duration?1e3*b.duration:1e3*eO*.8;function tO(){var ln=(Date.now()-u$)/f$,Ih=c$(ln)*eO;ln<=1?(this._flyToFrame=W(tO,this),this._move(this.unproject(E.add(M.subtract(E).multiplyBy(l$(Ih)/Se)),Q),this.getScaleZoom(fe/e0(Ih),Q),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,b.noMoveStart),tO.call(this),this},flyToBounds:function(u,d){var b=this._getBoundsCenterZoom(u,d);return this.flyTo(b.center,b.zoom,d)},setMaxBounds:function(u){return u=q(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 d=this.options.minZoom;return this.options.minZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var d=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var b=this.getCenter(),E=this._limitCenter(b,this._zoom,q(u));return b.equals(E)||this.panTo(E,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var b=j(d.paddingTopLeft||d.padding||[0,0]),E=j(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),$=this.project(u),Q=this.getPixelBounds(),fe=ne([Q.min.add(b),Q.max.subtract(E)]),he=fe.getSize();if(!fe.contains($)){this._enforcingBounds=!0;var Se=$.subtract(fe.getCenter()),Ae=fe.extend($).getSize().subtract(he);M.x+=Se.x<0?-Ae.x:Ae.x,M.y+=Se.y<0?-Ae.y:Ae.y,this.panTo(this.unproject(M),d),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 d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var b=this.getSize(),E=d.divideBy(2).round(),M=b.divideBy(2).round(),$=E.subtract(M);return!$.x&&!$.y?this:(u.animate&&u.pan?this.panBy($):(u.pan&&this._rawPanBy($),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:b}))},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 d=s(this._handleGeolocationResponse,this),b=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,b,u):navigator.geolocation.getCurrentPosition(d,b,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 d=u.code,b=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+b+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,b=u.coords.longitude,E=new te(d,b),M=E.toBounds(u.coords.accuracy*2),$=this._locateOptions;if($.setView){var Q=this.getBoundsZoom(M);this.setView(E,$.maxZoom?Math.min(Q,$.maxZoom):Q)}var fe={latlng:E,bounds:M,timestamp:u.timestamp};for(var he in u.coords)typeof u.coords[he]=="number"&&(fe[he]=u.coords[he]);this.fire("locationfound",fe)}},addHandler:function(u,d){if(!d)return this;var b=this[u]=new d(this);return this._handlers.push(b),this.options[u]&&b.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(),$t(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Y(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)$t(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var b="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=ft("div",b,d||this._mapPane);return u&&(this._panes[u]=E),E},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),b=this.unproject(u.getTopRight());return new H(d,b)},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,d,b){u=q(u),b=j(b||[0,0]);var E=this.getZoom()||0,M=this.getMinZoom(),$=this.getMaxZoom(),Q=u.getNorthWest(),fe=u.getSouthEast(),he=this.getSize().subtract(b),Se=ne(this.project(fe,E),this.project(Q,E)).getSize(),Ae=He.any3d?this.options.zoomSnap:1,Ye=he.x/Se.x,nt=he.y/Se.y,Ur=d?Math.max(Ye,nt):Math.min(Ye,nt);return E=this.getScaleZoom(Ur,E),Ae&&(E=Math.round(E/(Ae/100))*(Ae/100),E=d?Math.ceil(E/Ae)*Ae:Math.floor(E/Ae)*Ae),Math.max(M,Math.min($,E))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var b=this._getTopLeftPoint(u,d);return new B(b,b.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,d){var b=this.options.crs;return d=d===void 0?this._zoom:d,b.scale(u)/b.scale(d)},getScaleZoom:function(u,d){var b=this.options.crs;d=d===void 0?this._zoom:d;var E=b.zoom(u*b.scale(d));return isNaN(E)?1/0:E},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(se(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(j(u),d)},layerPointToLatLng:function(u){var d=j(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(se(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(se(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(q(u))},distance:function(u,d){return this.options.crs.distance(se(u),se(d))},containerPointToLayerPoint:function(u){return j(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return j(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(j(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(u)))},mouseEventToContainerPoint:function(u){return bT(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 d=this._container=gT(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ze(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&He.any3d,Xe(u,"leaflet-container"+(He.touch?" leaflet-touch":"")+(He.retina?" leaflet-retina":"")+(He.ielt9?" leaflet-oldie":"")+(He.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=lu(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="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),an(this._mapPane,new G(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,d,b){an(this._mapPane,new G(0,0));var E=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var M=this._zoom!==d;this._moveStart(M,b)._move(u,d)._moveEnd(M),this.fire("viewreset"),E&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,b,E){d===void 0&&(d=this._zoom);var M=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),E?b&&b.pinch&&this.fire("zoom",b):((M||b&&b.pinch)&&this.fire("zoom",b),this.fire("move",b)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Y(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){an(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 d=u?St:Ze;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),He.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Y(this._resizeRequest),this._resizeRequest=W(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,d){for(var b=[],E,M=d==="mouseout"||d==="mouseover",$=u.target||u.srcElement,Q=!1;$;){if(E=this._targets[l($)],E&&(d==="click"||d==="preclick")&&this._draggableMoved(E)){Q=!0;break}if(E&&E.listens(d,!0)&&(M&&!H_($,u)||(b.push(E),M))||$===this._container)break;$=$.parentNode}return!b.length&&!Q&&!M&&this.listens(d,!0)&&(b=[this]),b},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var b=u.type;b==="mousedown"&&F_(d),this._fireDOMEvent(u,b)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,b){if(u.type==="click"){var E=i({},u);E.type="preclick",this._fireDOMEvent(E,E.type,b)}var M=this._findEventTargets(u,d);if(b){for(var $=[],Q=0;Q<b.length;Q++)b[Q].listens(d,!0)&&$.push(b[Q]);M=$.concat(M)}if(M.length){d==="contextmenu"&&In(u);var fe=M[0],he={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Se=fe.getLatLng&&(!fe._radius||fe._radius<=10);he.containerPoint=Se?this.latLngToContainerPoint(fe.getLatLng()):this.mouseEventToContainerPoint(u),he.layerPoint=this.containerPointToLayerPoint(he.containerPoint),he.latlng=Se?fe.getLatLng():this.layerPointToLatLng(he.layerPoint)}for(Q=0;Q<M.length;Q++)if(M[Q].fire(d,he,!0),he.originalEvent._stopped||M[Q].options.bubblingMouseEvents===!1&&T(this._mouseEvents,d)!==-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,d=this._handlers.length;u<d;u++)this._handlers[u].disable()},whenReady:function(u,d){return this._loaded?u.call(d||this,{target:this}):this.on("load",u,d),this},_getMapPanePos:function(){return aa(this._mapPane)||new G(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var b=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return b.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var b=this.getSize()._divideBy(2);return this.project(u,d)._subtract(b)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,b){var E=this._getNewPixelOrigin(b,d);return this.project(u,d)._subtract(E)},_latLngBoundsToNewLayerBounds:function(u,d,b){var E=this._getNewPixelOrigin(b,d);return ne([this.project(u.getSouthWest(),d)._subtract(E),this.project(u.getNorthWest(),d)._subtract(E),this.project(u.getSouthEast(),d)._subtract(E),this.project(u.getNorthEast(),d)._subtract(E)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,d,b){if(!b)return u;var E=this.project(u,d),M=this.getSize().divideBy(2),$=new B(E.subtract(M),E.add(M)),Q=this._getBoundsOffset($,b,d);return Math.abs(Q.x)<=1&&Math.abs(Q.y)<=1?u:this.unproject(E.add(Q),d)},_limitOffset:function(u,d){if(!d)return u;var b=this.getPixelBounds(),E=new B(b.min.add(u),b.max.add(u));return u.add(this._getBoundsOffset(E,d))},_getBoundsOffset:function(u,d,b){var E=ne(this.project(d.getNorthEast(),b),this.project(d.getSouthWest(),b)),M=E.min.subtract(u.min),$=E.max.subtract(u.max),Q=this._rebound(M.x,-$.x),fe=this._rebound(M.y,-$.y);return new G(Q,fe)},_rebound:function(u,d){return u+d>0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),b=this.getMaxZoom(),E=He.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(d,Math.min(b,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var b=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(b)?!1:(this.panBy(b,d),!0)},_createAnimProxy:function(){var u=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var b=R_,E=this._proxy.style[b];sa(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),E===this._proxy.style[b]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){$t(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();sa(this._proxy,this.project(u,d),this.getZoomScale(d,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,d,b){if(this._animatingZoom)return!0;if(b=b||{},!this._zoomAnimated||b.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var E=this.getZoomScale(d),M=this._getCenterOffset(u)._divideBy(1-1/E);return b.animate!==!0&&!this.getSize().contains(M)?!1:(W(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,b,E){this._mapPane&&(b&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:E}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Qt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function EF(u,d){return new ot(u,d)}var ci=Z.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),b=this.getPosition(),E=u._controlCorners[b];return Xe(d,"leaflet-control"),b.indexOf("bottom")!==-1?E.insertBefore(d,E.firstChild):E.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?($t(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()}}),hu=function(u){return new ci(u)};ot.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",b=this._controlContainer=ft("div",d+"control-container",this._container);function E(M,$){var Q=d+M+" "+d+$;u[M+$]=ft("div",Q,b)}E("top","left"),E("top","right"),E("bottom","left"),E("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)$t(this._controlCorners[u]);$t(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ST=ci.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,b,E){return b<E?-1:E<b?1:0}},initialize:function(u,d,b){y(this,b),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var E in u)this._addLayer(u[E],E);for(E in d)this._addLayer(d[E],E,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return ci.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,d){return this._addLayer(u,d),this._map?this._update():this},addOverlay:function(u,d){return this._addLayer(u,d,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var d=this._getLayer(l(u));return d&&this._layers.splice(this._layers.indexOf(d),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"):Qt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Qt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",d=this._container=ft("div",u),b=this.options.collapsed;d.setAttribute("aria-haspopup",!0),du(d),V_(d);var E=this._section=ft("section",u+"-list");b&&(this._map.on("click",this.collapse,this),Ze(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var M=this._layersLink=ft("a",u+"-toggle",d);M.href="#",M.title="Layers",M.setAttribute("role","button"),Ze(M,{keydown:function($){$.keyCode===13&&this._expandSafely()},click:function($){In($),this._expandSafely()}},this),b||this.expand(),this._baseLayersList=ft("div",u+"-base",E),this._separator=ft("div",u+"-separator",E),this._overlaysList=ft("div",u+"-overlays",E),d.appendChild(E)},_getLayer:function(u){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&l(this._layers[d].layer)===u)return this._layers[d]},_addLayer:function(u,d,b){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:b}),this.options.sortLayers&&this._layers.sort(s(function(E,M){return this.options.sortFunction(E.layer,M.layer,E.name,M.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;bh(this._baseLayersList),bh(this._overlaysList),this._layerControlInputs=[];var u,d,b,E,M=0;for(b=0;b<this._layers.length;b++)E=this._layers[b],this._addItem(E),d=d||E.overlay,u=u||!E.overlay,M+=E.overlay?0:1;return this.options.hideSingleBase&&(u=u&&M>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),b=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;b&&this._map.fire(b,d)},_createRadioElement:function(u,d){var b='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",E=document.createElement("div");return E.innerHTML=b,E.firstChild},_addItem:function(u){var d=document.createElement("label"),b=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=b):E=this._createRadioElement("leaflet-base-layers_"+l(this),b),this._layerControlInputs.push(E),E.layerId=l(u.layer),Ze(E,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+u.name;var $=document.createElement("span");d.appendChild($),$.appendChild(E),$.appendChild(M);var Q=u.overlay?this._overlaysList:this._baseLayersList;return Q.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,b,E=[],M=[];this._handlingClick=!0;for(var $=u.length-1;$>=0;$--)d=u[$],b=this._getLayer(d.layerId).layer,d.checked?E.push(b):d.checked||M.push(b);for($=0;$<M.length;$++)this._map.hasLayer(M[$])&&this._map.removeLayer(M[$]);for($=0;$<E.length;$++)this._map.hasLayer(E[$])||this._map.addLayer(E[$]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,d,b,E=this._map.getZoom(),M=u.length-1;M>=0;M--)d=u[M],b=this._getLayer(d.layerId).layer,d.disabled=b.options.minZoom!==void 0&&E<b.options.minZoom||b.options.maxZoom!==void 0&&E>b.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Ze(u,"click",In),this.expand(),setTimeout(function(){St(u,"click",In)})}}),TF=function(u,d,b){return new ST(u,d,b)},W_=ci.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",b=ft("div",d+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,d+"-in",b,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,d+"-out",b,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),b},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,d,b,E,M){var $=ft("a",b,E);return $.innerHTML=u,$.href="#",$.title=d,$.setAttribute("role","button"),$.setAttribute("aria-label",d),du($),Ze($,"click",ca),Ze($,"click",M,this),Ze($,"click",this._refocusOnMap,this),$},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";Qt(this._zoomInButton,d),Qt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Xe(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Xe(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});ot.mergeOptions({zoomControl:!0}),ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new W_,this.addControl(this.zoomControl))});var OF=function(u){return new W_(u)},CT=ci.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",b=ft("div",d),E=this.options;return this._addScales(E,d+"-line",b),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),b},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,b){u.metric&&(this._mScale=ft("div",d,b)),u.imperial&&(this._iScale=ft("div",d,b))},_update:function(){var u=this._map,d=u.getSize().y/2,b=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(b)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),b=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,b,d/u)},_updateImperial:function(u){var d=u*3.2808399,b,E,M;d>5280?(b=d/5280,E=this._getRoundNum(b),this._updateScale(this._iScale,E+" mi",E/b)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,b){u.style.width=Math.round(this.options.maxWidth*b)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),b=u/d;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:1,d*b}}),PF=function(u){return new CT(u)},kF='<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>',Y_=ci.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(He.inlineSvg?kF+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),du(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].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 d in this._attributions)this._attributions[d]&&u.push(d);var b=[];this.options.prefix&&b.push(this.options.prefix),u.length&&b.push(u.join(", ")),this._container.innerHTML=b.join(' <span aria-hidden="true">|</span> ')}}});ot.mergeOptions({attributionControl:!0}),ot.addInitHook(function(){this.options.attributionControl&&new Y_().addTo(this)});var MF=function(u){return new Y_(u)};ci.Layers=ST,ci.Zoom=W_,ci.Scale=CT,ci.Attribution=Y_,hu.layers=TF,hu.zoom=OF,hu.scale=PF,hu.attribution=MF;var Di=Z.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}});Di.addTo=function(u,d){return u.addHandler(d,this),this};var RF={Events:ie},ET=He.touch?"touchstart mousedown":"mousedown",Yo=oe.extend({options:{clickTolerance:3},initialize:function(u,d,b,E){y(this,E),this._element=u,this._dragStartTarget=d||u,this._preventOutline=b},enable:function(){this._enabled||(Ze(this._dragStartTarget,ET,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Yo._dragging===this&&this.finishDrag(!0),St(this._dragStartTarget,ET,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!N_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Yo._dragging===this&&this.finishDrag();return}if(!(Yo._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Yo._dragging=this,this._preventOutline&&F_(this._element),A_(),cu(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,b=vT(this._element);this._startPoint=new G(d.clientX,d.clientY),this._startPos=aa(this._element),this._parentScale=$_(b);var E=u.type==="mousedown";Ze(document,E?"mousemove":"touchmove",this._onMove,this),Ze(document,E?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,b=new G(d.clientX,d.clientY)._subtract(this._startPoint);!b.x&&!b.y||Math.abs(b.x)+Math.abs(b.y)<this.options.clickTolerance||(b.x/=this._parentScale.x,b.y/=this._parentScale.y,In(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(b),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),an(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){Qt(document.body,"leaflet-dragging"),this._lastTarget&&(Qt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),St(document,"mousemove touchmove",this._onMove,this),St(document,"mouseup touchend touchcancel",this._onUp,this),j_(),uu(),this._moved&&this._moving&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,Yo._dragging=!1}});function TT(u,d){if(!d||!u.length)return u.slice();var b=d*d;return u=DF(u,b),u=LF(u,b),u}function OT(u,d,b){return Math.sqrt(pu(u,d,b,!0))}function NF(u,d,b){return pu(u,d,b)}function LF(u,d){var b=u.length,E=typeof Uint8Array!=void 0+""?Uint8Array:Array,M=new E(b);M[0]=M[b-1]=1,q_(u,M,d,0,b-1);var $,Q=[];for($=0;$<b;$++)M[$]&&Q.push(u[$]);return Q}function q_(u,d,b,E,M){var $=0,Q,fe,he;for(fe=E+1;fe<=M-1;fe++)he=pu(u[fe],u[E],u[M],!0),he>$&&(Q=fe,$=he);$>b&&(d[Q]=1,q_(u,d,b,E,Q),q_(u,d,b,Q,M))}function DF(u,d){for(var b=[u[0]],E=1,M=0,$=u.length;E<$;E++)AF(u[E],u[M])>d&&(b.push(u[E]),M=E);return M<$-1&&b.push(u[$-1]),b}var PT;function kT(u,d,b,E,M){var $=E?PT:ua(u,b),Q=ua(d,b),fe,he,Se;for(PT=Q;;){if(!($|Q))return[u,d];if($&Q)return!1;fe=$||Q,he=Eh(u,d,fe,b,M),Se=ua(he,b),fe===$?(u=he,$=Se):(d=he,Q=Se)}}function Eh(u,d,b,E,M){var $=d.x-u.x,Q=d.y-u.y,fe=E.min,he=E.max,Se,Ae;return b&8?(Se=u.x+$*(he.y-u.y)/Q,Ae=he.y):b&4?(Se=u.x+$*(fe.y-u.y)/Q,Ae=fe.y):b&2?(Se=he.x,Ae=u.y+Q*(he.x-u.x)/$):b&1&&(Se=fe.x,Ae=u.y+Q*(fe.x-u.x)/$),new G(Se,Ae,M)}function ua(u,d){var b=0;return u.x<d.min.x?b|=1:u.x>d.max.x&&(b|=2),u.y<d.min.y?b|=4:u.y>d.max.y&&(b|=8),b}function AF(u,d){var b=d.x-u.x,E=d.y-u.y;return b*b+E*E}function pu(u,d,b,E){var M=d.x,$=d.y,Q=b.x-M,fe=b.y-$,he=Q*Q+fe*fe,Se;return he>0&&(Se=((u.x-M)*Q+(u.y-$)*fe)/he,Se>1?(M=b.x,$=b.y):Se>0&&(M+=Q*Se,$+=fe*Se)),Q=u.x-M,fe=u.y-$,E?Q*Q+fe*fe:new G(M,$)}function zr(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function MT(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),zr(u)}function RT(u,d){var b,E,M,$,Q,fe,he,Se;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 Ae=[];for(var Ye in u)Ae.push(d.project(se(u[Ye])));var nt=Ae.length;for(b=0,E=0;b<nt-1;b++)E+=Ae[b].distanceTo(Ae[b+1])/2;if(E===0)Se=Ae[0];else for(b=0,$=0;b<nt-1;b++)if(Q=Ae[b],fe=Ae[b+1],M=Q.distanceTo(fe),$+=M,$>E){he=($-E)/M,Se=[fe.x-he*(fe.x-Q.x),fe.y-he*(fe.y-Q.y)];break}return d.unproject(j(Se))}var jF={__proto__:null,simplify:TT,pointToSegmentDistance:OT,closestPointOnSegment:NF,clipSegment:kT,_getEdgeIntersection:Eh,_getBitCode:ua,_sqClosestPointOnSegment:pu,isFlat:zr,_flat:MT,polylineCenter:RT};function NT(u,d,b){var E,M=[1,4,2,8],$,Q,fe,he,Se,Ae,Ye,nt;for($=0,Ae=u.length;$<Ae;$++)u[$]._code=ua(u[$],d);for(fe=0;fe<4;fe++){for(Ye=M[fe],E=[],$=0,Ae=u.length,Q=Ae-1;$<Ae;Q=$++)he=u[$],Se=u[Q],he._code&Ye?Se._code&Ye||(nt=Eh(Se,he,Ye,d,b),nt._code=ua(nt,d),E.push(nt)):(Se._code&Ye&&(nt=Eh(Se,he,Ye,d,b),nt._code=ua(nt,d),E.push(nt)),E.push(he));u=E}return u}function LT(u,d){var b,E,M,$,Q,fe,he,Se,Ae;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 Ye=[];for(var nt in u)Ye.push(d.project(se(u[nt])));var Ur=Ye.length;for(fe=he=Se=0,b=0,E=Ur-1;b<Ur;E=b++)M=Ye[b],$=Ye[E],Q=M.y*$.x-$.y*M.x,he+=(M.x+$.x)*Q,Se+=(M.y+$.y)*Q,fe+=Q*3;return fe===0?Ae=Ye[0]:Ae=[he/fe,Se/fe],d.unproject(j(Ae))}var IF={__proto__:null,clipPolygon:NT,polygonCenter:LT},G_={project:function(u){return new G(u.lng,u.lat)},unproject:function(u){return new te(u.y,u.x)},bounds:new B([-180,-90],[180,90])},Z_={R:6378137,R_MINOR:6356752314245179e-9,bounds:new B([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var d=Math.PI/180,b=this.R,E=u.lat*d,M=this.R_MINOR/b,$=Math.sqrt(1-M*M),Q=$*Math.sin(E),fe=Math.tan(Math.PI/4-E/2)/Math.pow((1-Q)/(1+Q),$/2);return E=-b*Math.log(Math.max(fe,1e-10)),new G(u.lng*d*b,E)},unproject:function(u){for(var d=180/Math.PI,b=this.R,E=this.R_MINOR/b,M=Math.sqrt(1-E*E),$=Math.exp(-u.y/b),Q=Math.PI/2-2*Math.atan($),fe=0,he=.1,Se;fe<15&&Math.abs(he)>1e-7;fe++)Se=M*Math.sin(Q),Se=Math.pow((1-Se)/(1+Se),M/2),he=Math.PI/2-2*Math.atan($*Se)-Q,Q+=he;return new te(Q*d,u.x*d/b)}},FF={__proto__:null,LonLat:G_,Mercator:Z_,SphericalMercator:I},$F=i({},O,{code:"EPSG:3395",projection:Z_,transformation:function(){var u=.5/(Math.PI*Z_.R);return K(u,.5,-u,.5)}()}),DT=i({},O,{code:"EPSG:4326",projection:G_,transformation:K(1/180,1,-1/180,.5)}),BF=i({},pe,{projection:G_,transformation:K(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var b=d.lng-u.lng,E=d.lat-u.lat;return Math.sqrt(b*b+E*E)},infinite:!0});pe.Earth=O,pe.EPSG3395=$F,pe.EPSG3857=ae,pe.EPSG900913=ge,pe.EPSG4326=DT,pe.Simple=BF;var ui=oe.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 d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var b=this.getEvents();d.on(b,this),this.once("remove",function(){d.off(b,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});ot.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],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,d){for(var b in this._layers)u.call(d,this._layers[b]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var d=0,b=u.length;d<b;d++)this.addLayer(u[d])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var d=l(u);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,d=-1/0,b=this._getZoomSpan();for(var E in this._zoomBoundLayers){var M=this._zoomBoundLayers[E].options;u=M.minZoom===void 0?u:Math.min(u,M.minZoom),d=M.maxZoom===void 0?d:Math.max(d,M.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,b!==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 yl=ui.extend({initialize:function(u,d){y(this,d),this._layers={};var b,E;if(u)for(b=0,E=u.length;b<E;b++)this.addLayer(u[b])},addLayer:function(u){var d=this.getLayerId(u);return this._layers[d]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var d=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(u){var d=typeof u=="number"?u:this.getLayerId(u);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var d=Array.prototype.slice.call(arguments,1),b,E;for(b in this._layers)E=this._layers[b],E[u]&&E[u].apply(E,d);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,d){for(var b in this._layers)u.call(d,this._layers[b]);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)}}),zF=function(u,d){return new yl(u,d)},oo=yl.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),yl.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),yl.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 H;for(var d in this._layers){var b=this._layers[d];u.extend(b.getBounds?b.getBounds():b.getLatLng())}return u}}),UF=function(u,d){return new oo(u,d)},_l=Z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,d){var b=this._getIconUrl(u);if(!b){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var E=this._createImg(b,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(E,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),E},_setIconStyles:function(u,d){var b=this.options,E=b[d+"Size"];typeof E=="number"&&(E=[E,E]);var M=j(E),$=j(d==="shadow"&&b.shadowAnchor||b.iconAnchor||M&&M.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(b.className||""),$&&(u.style.marginLeft=-$.x+"px",u.style.marginTop=-$.y+"px"),M&&(u.style.width=M.x+"px",u.style.height=M.y+"px")},_createImg:function(u,d){return d=d||document.createElement("img"),d.src=u,d},_getIconUrl:function(u){return He.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function VF(u){return new _l(u)}var mu=_l.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 mu.imagePath!="string"&&(mu.imagePath=this._detectIconPath()),(this.options.imagePath||mu.imagePath)+_l.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(b,E,M){var $=E.exec(b);return $&&$[M]};return u=d(u,/^url\((['"])?(.+)\1\)$/,2),u&&d(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=ft("div","leaflet-default-icon-path",document.body),d=lu(u,"background-image")||lu(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var b=document.querySelector('link[href$="leaflet.css"]');return b?b.href.substring(0,b.href.length-11-1):""}}),AT=Di.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new Yo(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&&Qt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var d=this._marker,b=d._map,E=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,$=aa(d._icon),Q=b.getPixelBounds(),fe=b.getPixelOrigin(),he=ne(Q.min._subtract(fe).add(M),Q.max._subtract(fe).subtract(M));if(!he.contains($)){var Se=j((Math.max(he.max.x,$.x)-he.max.x)/(Q.max.x-he.max.x)-(Math.min(he.min.x,$.x)-he.min.x)/(Q.min.x-he.min.x),(Math.max(he.max.y,$.y)-he.max.y)/(Q.max.y-he.max.y)-(Math.min(he.min.y,$.y)-he.min.y)/(Q.min.y-he.min.y)).multiplyBy(E);b.panBy(Se,{animate:!1}),this._draggable._newPos._add(Se),this._draggable._startPos._add(Se),an(d._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=W(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&&(Y(this._panRequest),this._panRequest=W(this._adjustPan.bind(this,u)))},_onDrag:function(u){var d=this._marker,b=d._shadow,E=aa(d._icon),M=d._map.layerPointToLatLng(E);b&&an(b,E),d._latlng=M,u.latlng=M,u.oldLatLng=this._oldLatLng,d.fire("move",u).fire("drag",u)},_onDragEnd:function(u){Y(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Th=ui.extend({options:{icon:new mu,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,d){y(this,d),this._latlng=se(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 d=this._latlng;return this._latlng=se(u),this.update(),this.fire("move",{oldLatLng:d,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,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),b=u.icon.createIcon(this._icon),E=!1;b!==this._icon&&(this._icon&&this._removeIcon(),E=!0,u.title&&(b.title=u.title),b.tagName==="IMG"&&(b.alt=u.alt||"")),Xe(b,d),u.keyboard&&(b.tabIndex="0",b.setAttribute("role","button")),this._icon=b,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ze(b,"focus",this._panOnFocus,this);var M=u.icon.createShadow(this._shadow),$=!1;M!==this._shadow&&(this._removeShadow(),$=!0),M&&(Xe(M,d),M.alt=""),this._shadow=M,u.opacity<1&&this._updateOpacity(),E&&this.getPane().appendChild(this._icon),this._initInteraction(),M&&$&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&St(this._icon,"focus",this._panOnFocus,this),$t(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&$t(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&an(this._icon,u),this._shadow&&an(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 d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(Xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),AT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new AT(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&Br(this._icon,u),this._shadow&&Br(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var d=this.options.icon.options,b=d.iconSize?j(d.iconSize):j(0,0),E=d.iconAnchor?j(d.iconAnchor):j(0,0);u.panInside(this._latlng,{paddingTopLeft:E,paddingBottomRight:b.subtract(E)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function HF(u,d){return new Th(u,d)}var qo=ui.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(u){this._renderer=u.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(u){return y(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Oh=qo.extend({options:{fill:!0,radius:10},initialize:function(u,d){y(this,d),this._latlng=se(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=se(u),this.redraw(),this.fire("move",{oldLatLng:d,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 d=u&&u.radius||this._radius;return qo.prototype.setStyle.call(this,u),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,d=this._radiusY||u,b=this._clickTolerance(),E=[u+b,d+b];this._pxBounds=new B(this._point.subtract(E),this._point.add(E))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function WF(u,d){return new Oh(u,d)}var K_=Oh.extend({initialize:function(u,d,b){if(typeof d=="number"&&(d=i({},b,{radius:d})),y(this,d),this._latlng=se(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 H(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:qo.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,b=this._map,E=b.options.crs;if(E.distance===O.distance){var M=Math.PI/180,$=this._mRadius/O.R/M,Q=b.project([d+$,u]),fe=b.project([d-$,u]),he=Q.add(fe).divideBy(2),Se=b.unproject(he).lat,Ae=Math.acos((Math.cos($*M)-Math.sin(d*M)*Math.sin(Se*M))/(Math.cos(d*M)*Math.cos(Se*M)))/M;(isNaN(Ae)||Ae===0)&&(Ae=$/Math.cos(Math.PI/180*d)),this._point=he.subtract(b.getPixelOrigin()),this._radius=isNaN(Ae)?0:he.x-b.project([Se,u-Ae]).x,this._radiusY=he.y-Q.y}else{var Ye=E.unproject(E.project(this._latlng).subtract([this._mRadius,0]));this._point=b.latLngToLayerPoint(this._latlng),this._radius=this._point.x-b.latLngToLayerPoint(Ye).x}this._updateBounds()}});function YF(u,d,b){return new K_(u,d,b)}var so=qo.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,d){y(this,d),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 d=1/0,b=null,E=pu,M,$,Q=0,fe=this._parts.length;Q<fe;Q++)for(var he=this._parts[Q],Se=1,Ae=he.length;Se<Ae;Se++){M=he[Se-1],$=he[Se];var Ye=E(u,M,$,!0);Ye<d&&(d=Ye,b=E(u,M,$))}return b&&(b.distance=Math.sqrt(d)),b},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return RT(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=se(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new H,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return zr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],b=zr(u),E=0,M=u.length;E<M;E++)b?(d[E]=se(u[E]),this._bounds.extend(d[E])):d[E]=this._convertLatLngs(u[E]);return d},_project:function(){var u=new B;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(),d=new G(u,u);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,b){var E=u[0]instanceof te,M=u.length,$,Q;if(E){for(Q=[],$=0;$<M;$++)Q[$]=this._map.latLngToLayerPoint(u[$]),b.extend(Q[$]);d.push(Q)}else for($=0;$<M;$++)this._projectLatlngs(u[$],d,b)},_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 d=this._parts,b,E,M,$,Q,fe,he;for(b=0,M=0,$=this._rings.length;b<$;b++)for(he=this._rings[b],E=0,Q=he.length;E<Q-1;E++)fe=kT(he[E],he[E+1],u,E,!0),fe&&(d[M]=d[M]||[],d[M].push(fe[0]),(fe[1]!==he[E+1]||E===Q-2)&&(d[M].push(fe[1]),M++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,b=0,E=u.length;b<E;b++)u[b]=TT(u[b],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var b,E,M,$,Q,fe,he=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(b=0,$=this._parts.length;b<$;b++)for(fe=this._parts[b],E=0,Q=fe.length,M=Q-1;E<Q;M=E++)if(!(!d&&E===0)&&OT(u,fe[M],fe[E])<=he)return!0;return!1}});function qF(u,d){return new so(u,d)}so._flat=MT;var bl=so.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 LT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=so.prototype._convertLatLngs.call(this,u),b=d.length;return b>=2&&d[0]instanceof te&&d[0].equals(d[b-1])&&d.pop(),d},_setLatLngs:function(u){so.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,d=this.options.weight,b=new G(d,d);if(u=new B(u.min.subtract(b),u.max.add(b)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var E=0,M=this._rings.length,$;E<M;E++)$=NT(this._rings[E],u,!0),$.length&&this._parts.push($)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,b,E,M,$,Q,fe,he,Se;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for($=0,he=this._parts.length;$<he;$++)for(b=this._parts[$],Q=0,Se=b.length,fe=Se-1;Q<Se;fe=Q++)E=b[Q],M=b[fe],E.y>u.y!=M.y>u.y&&u.x<(M.x-E.x)*(u.y-E.y)/(M.y-E.y)+E.x&&(d=!d);return d||so.prototype._containsPoint.call(this,u,!0)}});function GF(u,d){return new bl(u,d)}var ao=oo.extend({initialize:function(u,d){y(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=S(u)?u:u.features,b,E,M;if(d){for(b=0,E=d.length;b<E;b++)M=d[b],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var $=this.options;if($.filter&&!$.filter(u))return this;var Q=Ph(u,$);return Q?(Q.feature=Rh(u),Q.defaultOptions=Q.options,this.resetStyle(Q),$.onEachFeature&&$.onEachFeature(u,Q),this.addLayer(Q)):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(d){this._setLayerStyle(d,u)},this)},_setLayerStyle:function(u,d){u.setStyle&&(typeof d=="function"&&(d=d(u.feature)),u.setStyle(d))}});function Ph(u,d){var b=u.type==="Feature"?u.geometry:u,E=b?b.coordinates:null,M=[],$=d&&d.pointToLayer,Q=d&&d.coordsToLatLng||X_,fe,he,Se,Ae;if(!E&&!b)return null;switch(b.type){case"Point":return fe=Q(E),jT($,u,fe,d);case"MultiPoint":for(Se=0,Ae=E.length;Se<Ae;Se++)fe=Q(E[Se]),M.push(jT($,u,fe,d));return new oo(M);case"LineString":case"MultiLineString":return he=kh(E,b.type==="LineString"?0:1,Q),new so(he,d);case"Polygon":case"MultiPolygon":return he=kh(E,b.type==="Polygon"?1:2,Q),new bl(he,d);case"GeometryCollection":for(Se=0,Ae=b.geometries.length;Se<Ae;Se++){var Ye=Ph({geometry:b.geometries[Se],type:"Feature",properties:u.properties},d);Ye&&M.push(Ye)}return new oo(M);case"FeatureCollection":for(Se=0,Ae=b.features.length;Se<Ae;Se++){var nt=Ph(b.features[Se],d);nt&&M.push(nt)}return new oo(M);default:throw new Error("Invalid GeoJSON object.")}}function jT(u,d,b,E){return u?u(d,b):new Th(b,E&&E.markersInheritOptions&&E)}function X_(u){return new te(u[1],u[0],u[2])}function kh(u,d,b){for(var E=[],M=0,$=u.length,Q;M<$;M++)Q=d?kh(u[M],d-1,b):(b||X_)(u[M]),E.push(Q);return E}function Q_(u,d){return u=se(u),u.alt!==void 0?[p(u.lng,d),p(u.lat,d),p(u.alt,d)]:[p(u.lng,d),p(u.lat,d)]}function Mh(u,d,b,E){for(var M=[],$=0,Q=u.length;$<Q;$++)M.push(d?Mh(u[$],zr(u[$])?0:d-1,b,E):Q_(u[$],E));return!d&&b&&M.push(M[0].slice()),M}function wl(u,d){return u.feature?i({},u.feature,{geometry:d}):Rh(d)}function Rh(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var J_={toGeoJSON:function(u){return wl(this,{type:"Point",coordinates:Q_(this.getLatLng(),u)})}};Th.include(J_),K_.include(J_),Oh.include(J_),so.include({toGeoJSON:function(u){var d=!zr(this._latlngs),b=Mh(this._latlngs,d?1:0,!1,u);return wl(this,{type:(d?"Multi":"")+"LineString",coordinates:b})}}),bl.include({toGeoJSON:function(u){var d=!zr(this._latlngs),b=d&&!zr(this._latlngs[0]),E=Mh(this._latlngs,b?2:d?1:0,!0,u);return d||(E=[E]),wl(this,{type:(b?"Multi":"")+"Polygon",coordinates:E})}}),yl.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(b){d.push(b.toGeoJSON(u).geometry.coordinates)}),wl(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(u){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(u);var b=d==="GeometryCollection",E=[];return this.eachLayer(function(M){if(M.toGeoJSON){var $=M.toGeoJSON(u);if(b)E.push($.geometry);else{var Q=Rh($);Q.type==="FeatureCollection"?E.push.apply(E,Q.features):E.push(Q)}}}),b?wl(this,{geometries:E,type:"GeometryCollection"}):{type:"FeatureCollection",features:E}}});function IT(u,d){return new ao(u,d)}var ZF=IT,Nh=ui.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,b){this._url=u,this._bounds=q(d),y(this,b)},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(){$t(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&&gl(this._image),this},bringToBack:function(){return this._map&&vl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=q(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",d=this._image=u?this._url:ft("img");if(Xe(d,"leaflet-image-layer"),this._zoomAnimated&&Xe(d,"leaflet-zoom-animated"),this.options.className&&Xe(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onload=s(this.fire,this,"load"),d.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(u){var d=this._map.getZoomScale(u.zoom),b=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;sa(this._image,b,d)},_reset:function(){var u=this._image,d=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),b=d.getSize();an(u,d.min),u.style.width=b.x+"px",u.style.height=b.y+"px"},_updateOpacity:function(){Br(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),KF=function(u,d,b){return new Nh(u,d,b)},FT=Nh.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",d=this._image=u?this._url:ft("video");if(Xe(d,"leaflet-image-layer"),this._zoomAnimated&&Xe(d,"leaflet-zoom-animated"),this.options.className&&Xe(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onloadeddata=s(this.fire,this,"load"),u){for(var b=d.getElementsByTagName("source"),E=[],M=0;M<b.length;M++)E.push(b[M].src);this._url=b.length>0?E:[d.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var $=0;$<this._url.length;$++){var Q=ft("source");Q.src=this._url[$],d.appendChild(Q)}}});function XF(u,d,b){return new FT(u,d,b)}var $T=Nh.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=h,u.onmousemove=h}});function QF(u,d,b){return new $T(u,d,b)}var Ai=ui.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof te||S(u))?(this._latlng=se(u),y(this,d)):(y(this,u),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&Br(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&Br(this._container,1),this.bringToFront(),this.options.interactive&&(Xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(Br(this._container,0),this._removeTimeout=setTimeout(s($t,void 0,this._container),200)):$t(this._container),this.options.interactive&&(Qt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=se(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&&gl(this._container),this},bringToBack:function(){return this._map&&vl(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof oo){d=null;var b=this._source._layers;for(var E in b)if(b[E]._map){d=b[E];break}if(!d)return!1;this._source=d}if(!u)if(d.getCenter)u=d.getCenter();else if(d.getLatLng)u=d.getLatLng();else if(d.getBounds)u=d.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,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")u.innerHTML=d;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),d=j(this.options.offset),b=this._getAnchor();this._zoomAnimated?an(this._container,u.add(b)):d=d.add(u).add(b);var E=this._containerBottom=-d.y,M=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=E+"px",this._container.style.left=M+"px"}},_getAnchor:function(){return[0,0]}});ot.include({_initOverlay:function(u,d,b,E){var M=d;return M instanceof u||(M=new u(E).setContent(d)),b&&M.setLatLng(b),M}}),ui.include({_initOverlay:function(u,d,b,E){var M=b;return M instanceof u?(y(M,E),M._source=this):(M=d&&!E?d:new u(E,this),M.setContent(b)),M}});var Lh=Ai.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,Ai.prototype.openOn.call(this,u)},onAdd:function(u){Ai.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof qo||this._source.on("preclick",la))},onRemove:function(u){Ai.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof qo||this._source.off("preclick",la))},getEvents:function(){var u=Ai.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",d=this._container=ft("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),b=this._wrapper=ft("div",u+"-content-wrapper",d);if(this._contentNode=ft("div",u+"-content",b),du(d),V_(this._contentNode),Ze(d,"contextmenu",la),this._tipContainer=ft("div",u+"-tip-container",d),this._tip=ft("div",u+"-tip",this._tipContainer),this.options.closeButton){var E=this._closeButton=ft("a",u+"-close-button",d);E.setAttribute("role","button"),E.setAttribute("aria-label","Close popup"),E.href="#close",E.innerHTML='<span aria-hidden="true">&#215;</span>',Ze(E,"click",function(M){In(M),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,d=u.style;d.width="",d.whiteSpace="nowrap";var b=u.offsetWidth;b=Math.min(b,this.options.maxWidth),b=Math.max(b,this.options.minWidth),d.width=b+1+"px",d.whiteSpace="",d.height="";var E=u.offsetHeight,M=this.options.maxHeight,$="leaflet-popup-scrolled";M&&E>M?(d.height=M+"px",Xe(u,$)):Qt(u,$),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),b=this._getAnchor();an(this._container,d.add(b))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(lu(this._container,"marginBottom"),10)||0,b=this._container.offsetHeight+d,E=this._containerWidth,M=new G(this._containerLeft,-b-this._containerBottom);M._add(aa(this._container));var $=u.layerPointToContainerPoint(M),Q=j(this.options.autoPanPadding),fe=j(this.options.autoPanPaddingTopLeft||Q),he=j(this.options.autoPanPaddingBottomRight||Q),Se=u.getSize(),Ae=0,Ye=0;$.x+E+he.x>Se.x&&(Ae=$.x+E-Se.x+he.x),$.x-Ae-fe.x<0&&(Ae=$.x-fe.x),$.y+b+he.y>Se.y&&(Ye=$.y+b-Se.y+he.y),$.y-Ye-fe.y<0&&(Ye=$.y-fe.y),(Ae||Ye)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ae,Ye]))}},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),JF=function(u,d){return new Lh(u,d)};ot.mergeOptions({closePopupOnClick:!0}),ot.include({openPopup:function(u,d,b){return this._initOverlay(Lh,u,d,b).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),ui.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Lh,this._popup,u,d),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 oo||(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)){ca(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof qo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Dh=Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ai.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){Ai.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=Ai.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,b,E=this._map,M=this._container,$=E.latLngToContainerPoint(E.getCenter()),Q=E.layerPointToContainerPoint(u),fe=this.options.direction,he=M.offsetWidth,Se=M.offsetHeight,Ae=j(this.options.offset),Ye=this._getAnchor();fe==="top"?(d=he/2,b=Se):fe==="bottom"?(d=he/2,b=0):fe==="center"?(d=he/2,b=Se/2):fe==="right"?(d=0,b=Se/2):fe==="left"?(d=he,b=Se/2):Q.x<$.x?(fe="right",d=0,b=Se/2):(fe="left",d=he+(Ae.x+Ye.x)*2,b=Se/2),u=u.subtract(j(d,b,!0)).add(Ae).add(Ye),Qt(M,"leaflet-tooltip-right"),Qt(M,"leaflet-tooltip-left"),Qt(M,"leaflet-tooltip-top"),Qt(M,"leaflet-tooltip-bottom"),Xe(M,"leaflet-tooltip-"+fe),an(M,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&Br(this._container,u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(d)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),e$=function(u,d){return new Dh(u,d)};ot.include({openTooltip:function(u,d,b){return this._initOverlay(Dh,u,d,b).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),ui.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dh,this._tooltip,u,d),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 d=u?"off":"on",b={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?b.add=this._openTooltip:(b.mouseover=this._openTooltip,b.mouseout=this.closeTooltip,b.click=this._openTooltip,this._map?this._addFocusListeners():b.add=this._addFocusListeners),this._tooltip.options.sticky&&(b.mousemove=this._moveTooltip),this[d](b),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof oo||(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 d=u.getElement();d&&(Ze(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ze(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0))},_moveTooltip:function(u){var d=u.latlng,b,E;this._tooltip.options.sticky&&u.originalEvent&&(b=this._map.mouseEventToContainerPoint(u.originalEvent),E=this._map.containerPointToLayerPoint(b),d=this._map.layerPointToLatLng(E)),this._tooltip.setLatLng(d)}});var BT=_l.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var d=u&&u.tagName==="DIV"?u:document.createElement("div"),b=this.options;if(b.html instanceof Element?(bh(d),d.appendChild(b.html)):d.innerHTML=b.html!==!1?b.html:"",b.bgPos){var E=j(b.bgPos);d.style.backgroundPosition=-E.x+"px "+-E.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function t$(u){return new BT(u)}_l.Default=mu;var gu=ui.extend({options:{tileSize:256,opacity:1,updateWhenIdle:He.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),$t(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(vl(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 G?u:new G(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 d=this.getPane().children,b=-u(-1/0,1/0),E=0,M=d.length,$;E<M;E++)$=d[E].style.zIndex,d[E]!==this._container&&$&&(b=u(b,+$));isFinite(b)&&(this.options.zIndex=b+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!He.ielt9){Br(this._container,this.options.opacity);var u=+new Date,d=!1,b=!1;for(var E in this._tiles){var M=this._tiles[E];if(!(!M.current||!M.loaded)){var $=Math.min(1,(u-M.loaded)/200);Br(M.el,$),$<1?d=!0:(M.active?b=!0:this._onOpaqueTile(M),M.active=!0)}}b&&!this._noPrune&&this._pruneTiles(),d&&(Y(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=ft("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,d=this.options.maxZoom;if(u!==void 0){for(var b in this._levels)b=Number(b),this._levels[b].el.children.length||b===u?(this._levels[b].el.style.zIndex=d-Math.abs(u-b),this._onUpdateLevel(b)):($t(this._levels[b].el),this._removeTilesAtZoom(b),this._onRemoveLevel(b),delete this._levels[b]);var E=this._levels[u],M=this._map;return E||(E=this._levels[u]={},E.el=ft("div","leaflet-tile-container leaflet-zoom-animated",this._container),E.el.style.zIndex=d,E.origin=M.project(M.unproject(M.getPixelOrigin()),u).round(),E.zoom=u,this._setZoomTransform(E,M.getCenter(),M.getZoom()),h(E.el.offsetWidth),this._onCreateLevel(E)),this._level=E,E}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,d,b=this._map.getZoom();if(b>this.options.maxZoom||b<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)d=this._tiles[u],d.retain=d.current;for(u in this._tiles)if(d=this._tiles[u],d.current&&!d.active){var E=d.coords;this._retainParent(E.x,E.y,E.z,E.z-5)||this._retainChildren(E.x,E.y,E.z,E.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var d in this._tiles)this._tiles[d].coords.z===u&&this._removeTile(d)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)$t(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,d,b,E){var M=Math.floor(u/2),$=Math.floor(d/2),Q=b-1,fe=new G(+M,+$);fe.z=+Q;var he=this._tileCoordsToKey(fe),Se=this._tiles[he];return Se&&Se.active?(Se.retain=!0,!0):(Se&&Se.loaded&&(Se.retain=!0),Q>E?this._retainParent(M,$,Q,E):!1)},_retainChildren:function(u,d,b,E){for(var M=2*u;M<2*u+2;M++)for(var $=2*d;$<2*d+2;$++){var Q=new G(M,$);Q.z=b+1;var fe=this._tileCoordsToKey(Q),he=this._tiles[fe];if(he&&he.active){he.retain=!0;continue}else he&&he.loaded&&(he.retain=!0);b+1<E&&this._retainChildren(M,$,b+1,E)}},_resetView:function(u){var d=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var d=this.options;return d.minNativeZoom!==void 0&&u<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<u?d.maxNativeZoom:u},_setView:function(u,d,b,E){var M=Math.round(d);this.options.maxZoom!==void 0&&M>this.options.maxZoom||this.options.minZoom!==void 0&&M<this.options.minZoom?M=void 0:M=this._clampZoom(M);var $=this.options.updateWhenZooming&&M!==this._tileZoom;(!E||$)&&(this._tileZoom=M,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),M!==void 0&&this._update(u),b||this._pruneTiles(),this._noPrune=!!b),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var b in this._levels)this._setZoomTransform(this._levels[b],u,d)},_setZoomTransform:function(u,d,b){var E=this._map.getZoomScale(b,u.zoom),M=u.origin.multiplyBy(E).subtract(this._map._getNewPixelOrigin(d,b)).round();He.any3d?sa(u.el,M,E):an(u.el,M)},_resetGrid:function(){var u=this._map,d=u.options.crs,b=this._tileSize=this.getTileSize(),E=this._tileZoom,M=this._map.getPixelWorldBounds(this._tileZoom);M&&(this._globalTileRange=this._pxBoundsToTileRange(M)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,d.wrapLng[0]],E).x/b.x),Math.ceil(u.project([0,d.wrapLng[1]],E).x/b.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],E).y/b.x),Math.ceil(u.project([d.wrapLat[1],0],E).y/b.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,b=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),E=d.getZoomScale(b,this._tileZoom),M=d.project(u,this._tileZoom).floor(),$=d.getSize().divideBy(E*2);return new B(M.subtract($),M.add($))},_update:function(u){var d=this._map;if(d){var b=this._clampZoom(d.getZoom());if(u===void 0&&(u=d.getCenter()),this._tileZoom!==void 0){var E=this._getTiledPixelBounds(u),M=this._pxBoundsToTileRange(E),$=M.getCenter(),Q=[],fe=this.options.keepBuffer,he=new B(M.getBottomLeft().subtract([fe,-fe]),M.getTopRight().add([fe,-fe]));if(!(isFinite(M.min.x)&&isFinite(M.min.y)&&isFinite(M.max.x)&&isFinite(M.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Se in this._tiles){var Ae=this._tiles[Se].coords;(Ae.z!==this._tileZoom||!he.contains(new G(Ae.x,Ae.y)))&&(this._tiles[Se].current=!1)}if(Math.abs(b-this._tileZoom)>1){this._setView(u,b);return}for(var Ye=M.min.y;Ye<=M.max.y;Ye++)for(var nt=M.min.x;nt<=M.max.x;nt++){var Ur=new G(nt,Ye);if(Ur.z=this._tileZoom,!!this._isValidTile(Ur)){var fa=this._tiles[this._tileCoordsToKey(Ur)];fa?fa.current=!0:Q.push(Ur)}}if(Q.sort(function(Go,e0){return Go.distanceTo($)-e0.distanceTo($)}),Q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var jh=document.createDocumentFragment();for(nt=0;nt<Q.length;nt++)this._addTile(Q[nt],jh);this._level.el.appendChild(jh)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var b=this._globalTileRange;if(!d.wrapLng&&(u.x<b.min.x||u.x>b.max.x)||!d.wrapLat&&(u.y<b.min.y||u.y>b.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return q(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,b=this.getTileSize(),E=u.scaleBy(b),M=E.add(b),$=d.unproject(E,u.z),Q=d.unproject(M,u.z);return[$,Q]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),b=new H(d[0],d[1]);return this.options.noWrap||(b=this._map.wrapLatLngBounds(b)),b},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),b=new G(+d[0],+d[1]);return b.z=+d[2],b},_removeTile:function(u){var d=this._tiles[u];d&&($t(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Xe(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,He.ielt9&&this.options.opacity<1&&Br(u,this.options.opacity)},_addTile:function(u,d){var b=this._getTilePos(u),E=this._tileCoordsToKey(u),M=this.createTile(this._wrapCoords(u),s(this._tileReady,this,u));this._initTile(M),this.createTile.length<2&&W(s(this._tileReady,this,u,null,M)),an(M,b),this._tiles[E]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,b){d&&this.fire("tileerror",{error:d,tile:b,coords:u});var E=this._tileCoordsToKey(u);b=this._tiles[E],b&&(b.loaded=+new Date,this._map._fadeAnimated?(Br(b.el,0),Y(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(b.active=!0,this._pruneTiles()),d||(Xe(b.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:b.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),He.ielt9||!this._map._fadeAnimated?W(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new G(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function n$(u){return new gu(u)}var xl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=y(this,d),d.detectRetina&&He.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var b=document.createElement("img");return Ze(b,"load",s(this._tileOnLoad,this,d,b)),Ze(b,"error",s(this._tileOnError,this,d,b)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(b.referrerPolicy=this.options.referrerPolicy),b.alt="",b.src=this.getTileUrl(u),b},getTileUrl:function(u){var d={r:He.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var b=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=b),d["-y"]=b}return w(this._url,i(d,this.options))},_tileOnLoad:function(u,d){He.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,b){var E=this.options.errorTileUrl;E&&d.getAttribute("src")!==E&&(d.src=E),u(b,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,b=this.options.zoomReverse,E=this.options.zoomOffset;return b&&(u=d-u),u+E},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=P;var b=this._tiles[u].coords;$t(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:b})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),gu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,b){if(!(!this._map||b&&b.getAttribute("src")===P))return gu.prototype._tileReady.call(this,u,d,b)}});function zT(u,d){return new xl(u,d)}var UT=xl.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,d){this._url=u;var b=i({},this.defaultWmsParams);for(var E in d)E in this.options||(b[E]=d[E]);d=y(this,d);var M=d.detectRetina&&He.retina?2:1,$=this.getTileSize();b.width=$.x*M,b.height=$.y*M,this.wmsParams=b},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,xl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),b=this._crs,E=ne(b.project(d[0]),b.project(d[1])),M=E.min,$=E.max,Q=(this._wmsVersion>=1.3&&this._crs===DT?[M.y,M.x,$.y,$.x]:[M.x,M.y,$.x,$.y]).join(","),fe=xl.prototype.getTileUrl.call(this,u);return fe+x(this.wmsParams,fe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Q},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function r$(u,d){return new UT(u,d)}xl.WMS=UT,zT.wms=r$;var lo=ui.extend({options:{padding:.1},initialize:function(u){y(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&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,d){var b=this._map.getZoomScale(d,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),$=E.multiplyBy(-b).add(M).subtract(this._map._getNewPixelOrigin(u,d));He.any3d?sa(this._container,$,b):an(this._container,$)},_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,d=this._map.getSize(),b=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(b,b.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),VT=lo.extend({options:{tolerance:0},getEvents:function(){var u=lo.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){lo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ze(u,"mousemove",this._onMouseMove,this),Ze(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ze(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){Y(this._redrawRequest),delete this._ctx,$t(this._container),St(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){lo.prototype._update.call(this);var u=this._bounds,d=this._container,b=u.getSize(),E=He.retina?2:1;an(d,u.min),d.width=E*b.x,d.height=E*b.y,d.style.width=b.x+"px",d.style.height=b.y+"px",He.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){lo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,b=d.next,E=d.prev;b?b.prev=E:this._drawLast=E,E?E.next=b:this._drawFirst=b,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 d=u.options.dashArray.split(/[, ]+/),b=[],E,M;for(M=0;M<d.length;M++){if(E=Number(d[M]),isNaN(E))return;b.push(E)}u.options._dashArray=b}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||W(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var d=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B,this._redrawBounds.extend(u._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(u._pxBounds.max.add([d,d]))}},_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 d=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,d.x,d.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,d=this._redrawBounds;if(this._ctx.save(),d){var b=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,b.x,b.y),this._ctx.clip()}this._drawing=!0;for(var E=this._drawFirst;E;E=E.next)u=E.layer,(!d||u._pxBounds&&u._pxBounds.intersects(d))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,d){if(this._drawing){var b,E,M,$,Q=u._parts,fe=Q.length,he=this._ctx;if(fe){for(he.beginPath(),b=0;b<fe;b++){for(E=0,M=Q[b].length;E<M;E++)$=Q[b][E],he[E?"lineTo":"moveTo"]($.x,$.y);d&&he.closePath()}this._fillStroke(he,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var d=u._point,b=this._ctx,E=Math.max(Math.round(u._radius),1),M=(Math.max(Math.round(u._radiusY),1)||E)/E;M!==1&&(b.save(),b.scale(1,M)),b.beginPath(),b.arc(d.x,d.y/M,E,0,Math.PI*2,!1),M!==1&&b.restore(),this._fillStroke(b,u)}},_fillStroke:function(u,d){var b=d.options;b.fill&&(u.globalAlpha=b.fillOpacity,u.fillStyle=b.fillColor||b.color,u.fill(b.fillRule||"evenodd")),b.stroke&&b.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=b.opacity,u.lineWidth=b.weight,u.strokeStyle=b.color,u.lineCap=b.lineCap,u.lineJoin=b.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),b,E,M=this._drawFirst;M;M=M.next)b=M.layer,b.options.interactive&&b._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(b))&&(E=b);this._fireEvent(E?[E]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,d)}},_handleMouseOut:function(u){var d=this._hoveredLayer;d&&(Qt(this._container,"leaflet-interactive"),this._fireEvent([d],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,d){if(!this._mouseHoverThrottled){for(var b,E,M=this._drawFirst;M;M=M.next)b=M.layer,b.options.interactive&&b._containsPoint(d)&&(E=b);E!==this._hoveredLayer&&(this._handleMouseOut(u),E&&(Xe(this._container,"leaflet-interactive"),this._fireEvent([E],u,"mouseover"),this._hoveredLayer=E)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,d,b){this._map._fireDOMEvent(d,b||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var b=d.next,E=d.prev;if(b)b.prev=E;else return;E?E.next=b:b&&(this._drawFirst=b),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(u)}},_bringToBack:function(u){var d=u._order;if(d){var b=d.next,E=d.prev;if(E)E.next=b;else return;b?b.prev=E:E&&(this._drawLast=E),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function HT(u){return He.canvas?new VT(u):null}var vu=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">')}}(),i$={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(lo.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=vu("shape");Xe(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=vu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;$t(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,b=u._fill,E=u.options,M=u._container;M.stroked=!!E.stroke,M.filled=!!E.fill,E.stroke?(d||(d=u._stroke=vu("stroke")),M.appendChild(d),d.weight=E.weight+"px",d.color=E.color,d.opacity=E.opacity,E.dashArray?d.dashStyle=S(E.dashArray)?E.dashArray.join(" "):E.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=E.lineCap.replace("butt","flat"),d.joinstyle=E.lineJoin):d&&(M.removeChild(d),u._stroke=null),E.fill?(b||(b=u._fill=vu("fill")),M.appendChild(b),b.color=E.fillColor||E.color,b.opacity=E.fillOpacity):b&&(M.removeChild(b),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),b=Math.round(u._radius),E=Math.round(u._radiusY||b);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+b+","+E+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){gl(u._container)},_bringToBack:function(u){vl(u._container)}},Ah=He.vml?vu:Le,yu=lo.extend({_initContainer:function(){this._container=Ah("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ah("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){$t(this._container),St(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){lo.prototype._update.call(this);var u=this._bounds,d=u.getSize(),b=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,b.setAttribute("width",d.x),b.setAttribute("height",d.y)),an(b,u.min),b.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Ah("path");u.options.className&&Xe(d,u.options.className),u.options.interactive&&Xe(d,"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){$t(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,b=u.options;d&&(b.stroke?(d.setAttribute("stroke",b.color),d.setAttribute("stroke-opacity",b.opacity),d.setAttribute("stroke-width",b.weight),d.setAttribute("stroke-linecap",b.lineCap),d.setAttribute("stroke-linejoin",b.lineJoin),b.dashArray?d.setAttribute("stroke-dasharray",b.dashArray):d.removeAttribute("stroke-dasharray"),b.dashOffset?d.setAttribute("stroke-dashoffset",b.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),b.fill?(d.setAttribute("fill",b.fillColor||b.color),d.setAttribute("fill-opacity",b.fillOpacity),d.setAttribute("fill-rule",b.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,ue(u._parts,d))},_updateCircle:function(u){var d=u._point,b=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||b,M="a"+b+","+E+" 0 1,0 ",$=u._empty()?"M0 0":"M"+(d.x-b)+","+d.y+M+b*2+",0 "+M+-b*2+",0 ";this._setPath(u,$)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){gl(u._path)},_bringToBack:function(u){vl(u._path)}});He.vml&&yu.include(i$);function WT(u){return He.svg||He.vml?new yu(u):null}ot.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&HT(u)||WT(u)}});var YT=bl.extend({initialize:function(u,d){bl.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=q(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function o$(u,d){return new YT(u,d)}yu.create=Ah,yu.pointsToPath=ue,ao.geometryToLayer=Ph,ao.coordsToLatLng=X_,ao.coordsToLatLngs=kh,ao.latLngToCoords=Q_,ao.latLngsToCoords=Mh,ao.getFeature=wl,ao.asFeature=Rh,ot.mergeOptions({boxZoom:!0});var qT=Di.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ze(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){St(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){$t(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(),cu(),A_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ze(document,{contextmenu:ca,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),Xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),b=d.getSize();an(this._box,d.min),this._box.style.width=b.x+"px",this._box.style.height=b.y+"px"},_finish:function(){this._moved&&($t(this._box),Qt(this._container,"leaflet-crosshair")),uu(),j_(),St(document,{contextmenu:ca,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(s(this._resetState,this),0);var d=new H(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ot.addInitHook("addHandler","boxZoom",qT),ot.mergeOptions({doubleClickZoom:!0});var GT=Di.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,b=d.getZoom(),E=d.options.zoomDelta,M=u.originalEvent.shiftKey?b-E:b+E;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});ot.addInitHook("addHandler","doubleClickZoom",GT),ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ZT=Di.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Yo(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(){Qt(this._map._container,"leaflet-grab"),Qt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=q(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.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 d=this._lastTime=+new Date,b=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(b),this._times.push(d),this._prunePositions(d)}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),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.x<d.min.x&&(u.x=this._viscousLimit(u.x,d.min.x)),u.y<d.min.y&&(u.y=this._viscousLimit(u.y,d.min.y)),u.x>d.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),b=this._initialWorldOffset,E=this._draggable._newPos.x,M=(E-d+b)%u+d-b,$=(E+d+b)%u-d-b,Q=Math.abs(M+b)<Math.abs($+b)?M:$;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Q},_onDragEnd:function(u){var d=this._map,b=d.options,E=!b.inertia||u.noInertia||this._times.length<2;if(d.fire("dragend",u),E)d.fire("moveend");else{this._prunePositions(+new Date);var M=this._lastPos.subtract(this._positions[0]),$=(this._lastTime-this._times[0])/1e3,Q=b.easeLinearity,fe=M.multiplyBy(Q/$),he=fe.distanceTo([0,0]),Se=Math.min(b.inertiaMaxSpeed,he),Ae=fe.multiplyBy(Se/he),Ye=Se/(b.inertiaDeceleration*Q),nt=Ae.multiplyBy(-Ye/2).round();!nt.x&&!nt.y?d.fire("moveend"):(nt=d._limitOffset(nt,d.options.maxBounds),W(function(){d.panBy(nt,{duration:Ye,easeLinearity:Q,noMoveStart:!0,animate:!0})}))}}});ot.addInitHook("addHandler","dragging",ZT),ot.mergeOptions({keyboard:!0,keyboardPanDelta:80});var KT=Di.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Ze(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),St(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,d=document.documentElement,b=u.scrollTop||d.scrollTop,E=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(E,b)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var d=this._panKeys={},b=this.keyCodes,E,M;for(E=0,M=b.left.length;E<M;E++)d[b.left[E]]=[-1*u,0];for(E=0,M=b.right.length;E<M;E++)d[b.right[E]]=[u,0];for(E=0,M=b.down.length;E<M;E++)d[b.down[E]]=[0,u];for(E=0,M=b.up.length;E<M;E++)d[b.up[E]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},b=this.keyCodes,E,M;for(E=0,M=b.zoomIn.length;E<M;E++)d[b.zoomIn[E]]=u;for(E=0,M=b.zoomOut.length;E<M;E++)d[b.zoomOut[E]]=-u},_addHooks:function(){Ze(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){St(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var d=u.keyCode,b=this._map,E;if(d in this._panKeys){if(!b._panAnim||!b._panAnim._inProgress)if(E=this._panKeys[d],u.shiftKey&&(E=j(E).multiplyBy(3)),b.options.maxBounds&&(E=b._limitOffset(j(E),b.options.maxBounds)),b.options.worldCopyJump){var M=b.wrapLatLng(b.unproject(b.project(b.getCenter()).add(E)));b.panTo(M)}else b.panBy(E)}else if(d in this._zoomKeys)b.setZoom(b.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&b._popup&&b._popup.options.closeOnEscapeKey)b.closePopup();else return;ca(u)}}});ot.addInitHook("addHandler","keyboard",KT),ot.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var XT=Di.extend({addHooks:function(){Ze(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){St(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var d=wT(u),b=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var E=Math.max(b-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),E),ca(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),b=this._map.options.zoomSnap||0;u._stop();var E=this._delta/(this._map.options.wheelPxPerZoomLevel*4),M=4*Math.log(2/(1+Math.exp(-Math.abs(E))))/Math.LN2,$=b?Math.ceil(M/b)*b:M,Q=u._limitZoom(d+(this._delta>0?$:-$))-d;this._delta=0,this._startTime=null,Q&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+Q):u.setZoomAround(this._lastMousePos,d+Q))}});ot.addInitHook("addHandler","scrollWheelZoom",XT);var s$=600;ot.mergeOptions({tapHold:He.touchNative&&He.safari&&He.mobile,tapTolerance:15});var QT=Di.extend({addHooks:function(){Ze(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){St(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new G(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Ze(document,"touchend",In),Ze(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),s$),Ze(document,"touchend touchcancel contextmenu",this._cancel,this),Ze(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){St(document,"touchend",In),St(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),St(document,"touchend touchcancel contextmenu",this._cancel,this),St(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new G(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var b=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});b._simulated=!0,d.target.dispatchEvent(b)}});ot.addInitHook("addHandler","tapHold",QT),ot.mergeOptions({touchZoom:He.touch,bounceAtZoomLimits:!0});var JT=Di.extend({addHooks:function(){Xe(this._map._container,"leaflet-touch-zoom"),Ze(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qt(this._map._container,"leaflet-touch-zoom"),St(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var b=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(b.add(E)._divideBy(2))),this._startDist=b.distanceTo(E),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ze(document,"touchmove",this._onTouchMove,this),Ze(document,"touchend touchcancel",this._onTouchEnd,this),In(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,b=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]),M=b.distanceTo(E)/this._startDist;if(this._zoom=d.getScaleZoom(M,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&M<1||this._zoom>d.getMaxZoom()&&M>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var $=b._add(E)._divideBy(2)._subtract(this._centerPoint);if(M===1&&$.x===0&&$.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract($),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),Y(this._animRequest);var Q=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(Q,this,!0),In(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Y(this._animRequest),St(document,"touchmove",this._onTouchMove,this),St(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ot.addInitHook("addHandler","touchZoom",JT),ot.BoxZoom=qT,ot.DoubleClickZoom=GT,ot.Drag=ZT,ot.Keyboard=KT,ot.ScrollWheelZoom=XT,ot.TapHold=QT,ot.TouchZoom=JT,n.Bounds=B,n.Browser=He,n.CRS=pe,n.Canvas=VT,n.Circle=K_,n.CircleMarker=Oh,n.Class=Z,n.Control=ci,n.DivIcon=BT,n.DivOverlay=Ai,n.DomEvent=CF,n.DomUtil=xF,n.Draggable=Yo,n.Evented=oe,n.FeatureGroup=oo,n.GeoJSON=ao,n.GridLayer=gu,n.Handler=Di,n.Icon=_l,n.ImageOverlay=Nh,n.LatLng=te,n.LatLngBounds=H,n.Layer=ui,n.LayerGroup=yl,n.LineUtil=jF,n.Map=ot,n.Marker=Th,n.Mixin=RF,n.Path=qo,n.Point=G,n.PolyUtil=IF,n.Polygon=bl,n.Polyline=so,n.Popup=Lh,n.PosAnimation=xT,n.Projection=FF,n.Rectangle=YT,n.Renderer=lo,n.SVG=yu,n.SVGOverlay=$T,n.TileLayer=xl,n.Tooltip=Dh,n.Transformation=X,n.Util=J,n.VideoOverlay=FT,n.bind=s,n.bounds=ne,n.canvas=HT,n.circle=YF,n.circleMarker=WF,n.control=hu,n.divIcon=t$,n.extend=i,n.featureGroup=UF,n.geoJSON=IT,n.geoJson=ZF,n.gridLayer=n$,n.icon=VF,n.imageOverlay=KF,n.latLng=se,n.latLngBounds=q,n.layerGroup=zF,n.map=EF,n.marker=HF,n.point=j,n.polygon=GF,n.polyline=qF,n.popup=JF,n.rectangle=o$,n.setOptions=y,n.stamp=l,n.svg=WT,n.svgOverlay=QF,n.tileLayer=zT,n.tooltip=e$,n.transformation=K,n.version=r,n.videoOverlay=XF;var a$=window.L;n.noConflict=function(){return window.L=a$,this},window.L=n})})(v2,v2.exports);var ph=v2.exports;const SL=ri(ph);function iT(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function oT(e,t){return t==null?function(r,i){const o=V.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=V.useRef();o.current||(o.current=e(r,i));const s=V.useRef(r),{instance:a}=o.current;return V.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function K0e(e,t){V.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 X8(e){return function(n){const r=Z8(),i=e(rT(n,r),r);return Y8(r.map,n.attribution),K8(i.current,n.eventHandlers),K0e(i.current,r),i}}function X0e(e,t){const n=oT(e,t),r=X8(n);return Y0e(r)}function Q0e(e,t){const n=oT(e),r=Z0e(n,t);return q0e(r)}function J0e(e,t){const n=oT(e,t),r=X8(n);return G0e(r)}function e1e(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 y2(){return y2=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},y2.apply(this,arguments)}function t1e({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:a,whenReady:l,zoom:c,...f},h){const[p]=V.useState({className:i,id:o,style:a}),[m,v]=V.useState(null);V.useImperativeHandle(h,()=>(m==null?void 0:m.map)??null,[m]);const y=V.useCallback(_=>{if(_!==null&&m===null){const w=new ph.Map(_,f);n!=null&&c!=null?w.setView(n,c):e!=null&&w.fitBounds(e,t),l!=null&&w.whenReady(l),v(H0e(w))}},[]);V.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?U.createElement(G8,{value:m},r):s??null;return U.createElement("div",y2({},p,{ref:y}),x)}const n1e=V.forwardRef(t1e),r1e=X0e(function({position:t,...n},r){const i=new ph.Marker(t,n);return iT(i,W0e(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())}),i1e=Q0e(function(t,n){const r=new ph.Popup(t,n.overlayContainer);return iT(r,n)},function(t,n,{position:r},i){V.useEffect(function(){const{instance:s}=t;function a(c){c.popup===s&&(s.update(),i(!0))}function l(c){c.popup===s&&i(!1)}return n.map.on({popupopen:a,popupclose:l}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var f;n.map.off({popupopen:a,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),o1e=J0e(function({url:t,...n},r){const i=new ph.TileLayer(t,rT(n,r));return iT(i,r)},function(t,n,r){e1e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const s1e=()=>g.jsx(o1e,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),a1e=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(at("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},Q8=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(Vo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Mi,{className:"map-modal__modal-body",children:[g.jsxs("h3",{className:"map-modal__modal-title",children:[n,g.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),g.jsxs(n1e,{...a1e(r),children:[g.jsx(s1e,{}),r.map(({cityName:i,latLong:o,count:s},a)=>g.jsx(r1e,{position:o,children:g.jsxs(i1e,{children:[g.jsx("b",{children:s})," visit",s>1?"s":""," from ",g.jsx("b",{children:i})]})},a))]})]})});const l1e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=hn(),[s,a,l]=hn(),[c,f]=V.useState([]),h=v_(),p=y=>t?y.filter(({cityName:x})=>t==null?void 0:t.includes(x)):y,m=()=>{if(!t){f(n),i();return}l()},v=y=>()=>{f(y?p(n):n),i()};return g.jsxs(g.Fragment,{children:[g.jsx(ht,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:m,children:g.jsx(je,{icon:Jj})}),g.jsx(Er,{placement:"left",target:h,children:"Show in map"}),g.jsx(Jc,{isOpen:s,toggle:a,inNavbar:!0,children:g.jsxs(eu,{end:!0,children:[g.jsx(Ue,{onClick:v(!1),children:"Show all locations"}),g.jsx(Ue,{onClick:v(!0),children:"Show locations in current page"})]})}),g.jsx(Q8,{toggle:o,isOpen:r,title:e,locations:c})]})},c1e=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,s=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})}),a=()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)});return g.jsxs(Ho,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,children:"Bots:"}),g.jsx(Ue,{active:o,onClick:a,children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Orphan visits type:"}),g.jsx(Ue,{...s("base_url"),children:"Base URL"}),g.jsx(Ue,{...s("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ue,{...s("regular_404"),children:"Regular 404"})]}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:g.jsx("i",{children:"Clear filters"})})]})},J8=(e,t)=>!$o(e)&&vi(e[t]),CL=e=>typeof e=="number"?e:e?parseFloat(e):0,u1e=(e,{os:t})=>{e[t]=(e[t]||0)+1},f1e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},d1e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},eF=e=>(t,n)=>{const i=J8(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},h1e=eF("country"),p1e=eF("city"),m1e=(e,t)=>{if(!J8(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[CL(r),CL(i)]};o.count+=1,e[n]=o},g1e=(e,t)=>{if(!n0e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},tF=e=>e.reduce((t,n)=>(u1e(t.os,n),f1e(t.browsers,n),d1e(t.referrers,n),h1e(t.countries,n),p1e(t.cities,n),m1e(t.citiesForMap,n),g1e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),nF=Bd(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...S0e(t),referer:C0e(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return JE(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),v1e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:nF,processStatsFromVisits:tF},Symbol.toStringTag,{value:"Module"}));const ef=20,y1e=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),_1e=(e,t)=>t.filter(n=>y1e(n,e)),b1e=(e,t)=>Nj(t,e),w1e=(e,t,n)=>{const r=t?_1e(t,e):[...e],i=b1e(n,r),o=i.length;return{visitsGroups:ad(ef,i),total:o}},x1e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var k,N;const o="visits-table__header-cell visits-table__sticky",s=()=>r("(max-width: 767px)").matches,[a,l]=V.useState(s()),[c,f]=V.useState(void 0),[h,p]=V.useState({}),m=V.useMemo(()=>w1e(e,c,h),[c,h]),v=V.useRef(!0),[y,x]=V.useState(1),_=y*ef,w=_-ef,S=8+Number(i),T=D=>()=>p({field:D,dir:e_(D,h.field,h.dir)}),P=D=>g.jsx(Rf,{currentOrder:h,field:D,className:"visits-table__header-icon"});return V.useEffect(()=>{const D=()=>l(s());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),V.useEffect(()=>{x(1),!v.current&&n([]),v.current=!1},[c]),g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsx("th",{className:`${o} text-center`,onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:g.jsx(je,{icon:cd,className:me({"text-primary":t.length>0})})}),g.jsxs("th",{className:`${o} text-center`,onClick:T("potentialBot"),children:[g.jsx(je,{icon:_M}),P("potentialBot")]}),g.jsxs("th",{className:o,onClick:T("date"),children:["Date",P("date")]}),g.jsxs("th",{className:o,onClick:T("country"),children:["Country",P("country")]}),g.jsxs("th",{className:o,onClick:T("city"),children:["City",P("city")]}),g.jsxs("th",{className:o,onClick:T("browser"),children:["Browser",P("browser")]}),g.jsxs("th",{className:o,onClick:T("os"),children:["OS",P("os")]}),g.jsxs("th",{className:o,onClick:T("referer"),children:["Referrer",P("referer")]}),i&&g.jsxs("th",{className:o,onClick:T("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:S,className:"p-0",children:g.jsx(ih,{noBorder:!0,large:!1,onChange:f})})})]}),g.jsxs("tbody",{children:[!((k=m.visitsGroups[y-1])!=null&&k.length)&&g.jsx("tr",{children:g.jsx("td",{colSpan:S,className:"text-center",children:"No visits found with current filtering"})}),(N=m.visitsGroups[y-1])==null?void 0:N.map((D,z)=>{const A=t.includes(D);return g.jsxs("tr",{style:{cursor:"pointer"},className:me({"table-active":A}),onClick:()=>n(A?t.filter(W=>W!==D):[...t,D]),children:[g.jsx("td",{className:"text-center",children:A&&g.jsx(je,{icon:cd,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:D.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(je,{icon:_M,id:`botIcon${z}`}),g.jsx(Er,{placement:"right",target:`botIcon${z}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(ny,{date:D.date})}),g.jsx("td",{children:D.country}),g.jsx("td",{children:D.city}),g.jsx("td",{children:D.browser}),g.jsx("td",{children:D.os}),g.jsx("td",{children:D.referer}),i&&g.jsx("td",{children:D.visitedUrl})]},z)})]}),m.total>ef&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:S,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(qE,{pagesCount:Math.ceil(m.total/ef),currentPage:y,setCurrentPage:x,centered:a})}),g.jsx("div",{className:me("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:g.jsxs("div",{children:["Visits ",g.jsx("b",{children:_n(w+1)})," to"," ",g.jsx("b",{children:_n(kj(_,m.total))})," of"," ",g.jsx("b",{children:_n(m.total)})]})})]})})})})]})})},jl={byTime:{title:"By time",subPath:"by-time",icon:YX},byContext:{title:"By context",subPath:"by-context",icon:uC},byLocation:{title:"By location",subPath:"by-location",icon:Jj},list:{title:"List",subPath:"list",icon:Qj}};let $p;const mh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,settings:i,exportCsv:o,isOrphanVisits:s=!1})=>{var H;const{visits:a,loading:l,loadingLarge:c,error:f,errorData:h,progress:p,fallbackInterval:m}=t,[{dateRange:v,visitsFilter:y},x]=U0e(),_=Dt(({startDate:q,endDate:te})=>({dateRange:{startDate:q??void 0,endDate:te??void 0}}),x),w=V.useRef(v??m??((H=i.visits)==null?void 0:H.defaultInterval)??"last30Days"),[S,T]=V.useState([]),[P,k]=V.useState(),N=V.useRef(!0),{search:D}=Pn(),z=q=>q?`${q}${D}`:D,A=V.useMemo(()=>nF(a),[a]),{os:W,browsers:Y,referrers:J,countries:Z,cities:ee,citiesForMap:ie,visitedUrls:oe}=V.useMemo(()=>tF(A),[A]),G=V.useMemo(()=>{var q;return{...y,excludeBots:y.excludeBots??((q=i.visits)==null?void 0:q.excludeBots)}},[y]),F=Kc(ie),j=q=>{$p=void 0,T(q)},B=q=>te=>{const se=`${q}_${te}`;$p===se?(T([]),k(void 0),$p=void 0):(T(A.filter(bZ(q,te))),k(te),$p=se)};V.useEffect(()=>r,[]),V.useEffect(()=>{const q=N.current?v??ipe(w.current):v;n({dateRange:q,filter:G},N.current),N.current=!1},[v,y]),V.useEffect(()=>{var q;m&&w.current===(((q=i.visits)==null?void 0:q.defaultInterval)??"last30Days")&&(w.current=m)},[m]);const ne=()=>c?g.jsxs(Co,{loading:!0,children:["This is going to take a while... :S",g.jsx(XC,{value:p,striped:p===100,className:"mt-3"})]}):l?g.jsx(Co,{loading:!0}):f?g.jsx(Nr,{type:"error",children:g.jsx(Do,{errorData:h,fallbackMessage:"An error occurred while loading visits :("})}):Wn(a)?g.jsx(Co,{children:"There are no visits matching current filter"}):g.jsxs(g.Fragment,{children:[g.jsx(z5,{fill:!0,children:Object.values(jl).map(({title:q,icon:te,subPath:se},pe)=>g.jsxs(kf,{to:z(se),replace:!0,children:[g.jsx(je,{icon:te}),g.jsx("span",{className:"ms-2 d-none d-sm-inline",children:q})]},pe))}),g.jsx(Qn,{children:g.jsxs(Zy,{children:[g.jsx(gt,{path:jl.byTime.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(N0e,{title:"Visits during time",visits:A,highlightedVisits:S,highlightedLabel:P,setSelectedVisits:j})})}),g.jsx(gt,{path:jl.byContext.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:me("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(gL,{title:"Operating systems",stats:W})}),g.jsx("div",{className:me("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(gL,{title:"Browsers",stats:Y})}),g.jsx("div",{className:me("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:g.jsx(Fp,{title:"Referrers",stats:J,withPagination:!1,highlightedStats:jp(S,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(Fp,{title:"Visited URLs",stats:oe,highlightedLabel:P,highlightedStats:jp(S,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),g.jsx(gt,{path:jl.byLocation.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(Fp,{title:"Countries",stats:Z,highlightedStats:jp(S,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(Fp,{title:"Cities",stats:ee,highlightedStats:jp(S,"city"),highlightedLabel:P,extraHeaderContent:q=>F.length>0&&g.jsx(l1e,{modalTitle:"Cities",locations:F,activeCities:q}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),g.jsx(gt,{path:jl.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(x1e,{visits:A,selectedVisits:S,setSelectedVisits:j,isOrphanVisits:s})})}),g.jsx(gt,{path:"*",element:g.jsx(BS,{replace:!0,to:z(jl.byTime.subPath)})})]})})]});return g.jsxs(g.Fragment,{children:[e,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(m8,{updatable:!0,disabled:l,initialDateRange:w.current,defaultText:"All visits",onDatesChange:_})}),g.jsx(c1e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:G,onChange:q=>x({visitsFilter:q})})]})}),a.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(Z5,{className:"btn-md-block",amount:A.length,onClick:()=>o(A)}),g.jsxs(ht,{outline:!0,disabled:S.length===0,className:"btn-md-block ms-2",onClick:()=>j([]),children:["Clear selection ",S.length>0&&g.jsxs(g.Fragment,{children:["(",_n(S.length),")"]})]})]})})]})}),g.jsx("section",{className:"mt-3",children:ne()})]})},S1e=({exportVisits:e})=>ra(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r,settings:i})=>{const o=na(),{domain:s=""}=Xs(),[a,l=a]=s.split("_"),c=(h,p)=>t({domain:l,query:dh(h),doIntervalFallback:p}),f=h=>e(`domain_${a}_visits.csv`,h);return g.jsx(mh,{getVisits:c,cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:f,children:g.jsx(hh,{goBack:o,visits:n.visits,title:`"${a}" visits`})})},()=>[Xr.visits]),C1e=({exportVisits:e})=>ra(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r,settings:i})=>{const o=na(),s=l=>e("non_orphan_visits.csv",l),a=(l,c)=>t({query:dh(l),doIntervalFallback:c});return g.jsx(mh,{getVisits:a,cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:s,children:g.jsx(hh,{title:"Non-orphan visits",goBack:o,visits:n.visits})})},()=>[Xr.visits]),E1e=({exportVisits:e})=>ra(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r,settings:i})=>{const o=na(),s=l=>e("orphan_visits.csv",l),a=(l,c)=>{var f;return t({query:dh(l),orphanVisitsType:(f=l.filter)==null?void 0:f.orphanVisitsType,doIntervalFallback:c})};return g.jsx(mh,{getVisits:a,cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:s,isOrphanVisits:!0,children:g.jsx(hh,{title:"Orphan visits",goBack:o,visits:n.visits})})},()=>[Xr.orphanVisits]),rF="shlink/orphanVisits",T1e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},O1e=e=>lh({typePrefix:`${rF}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1},r)=>{const{getNonOrphanVisits:i}=e(r),o=async(a,l)=>i({...t,page:a,itemsPerPage:l}),s=ch(n,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),P1e=e=>uh({name:rF,initialState:T1e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>oh(o.date,r,i))}}),iF="shlink/orphanVisits",k1e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},M1e=(e,t)=>!t||t===e.type,R1e=e=>lh({typePrefix:`${iF}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getOrphanVisits:o}=e(i),s=async(l,c)=>o({...n,page:l,itemsPerPage:c}).then(f=>{const h=f.data.filter(p=>JE(p)&&M1e(p,t));return{...f,data:h}}),a=ch(r,o);return[s,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),N1e=e=>uh({name:iF,initialState:k1e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&oh(o.date,r,i))}}),oF="shlink/shortUrlVisits",L1e={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},D1e=e=>lh({typePrefix:`${oF}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getShortUrlVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=ch(r,async l=>o(t,{...l,domain:n.domain}));return[s,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),A1e=e=>uh({name:oF,initialState:L1e,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:a,visit:l})=>a&&Ef(a,t,n)&&oh(l.date,o,s))}}),sF="shlink/tagVisits",j1e={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},I1e=e=>lh({typePrefix:`${sF}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getTagVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=ch(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),F1e=e=>uh({name:sF,initialState:j1e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>(s==null?void 0:s.tags.includes(t))&&oh(a.date,i,o))}}),aF="shlink/visitsOverview",Bp={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},EL=e=>e.filter(({visit:t})=>t.potentialBot).length,$1e=e=>rr(`${aF}/loadVisitsOverview`,(t,{getState:n})=>e(n).getVisitsOverview().then(r=>{var i,o,s,a,l,c;return{nonOrphanVisits:{total:((i=r.nonOrphanVisits)==null?void 0:i.total)??r.visitsCount,nonBots:(o=r.nonOrphanVisits)==null?void 0:o.nonBots,bots:(s=r.nonOrphanVisits)==null?void 0:s.bots},orphanVisits:{total:((a=r.orphanVisits)==null?void 0:a.total)??r.orphanVisitsCount,nonBots:(l=r.orphanVisits)==null?void 0:l.nonBots,bots:(c=r.orphanVisits)==null?void 0:c.bots}}})),B1e=e=>Yn({name:aF,initialState:Bp,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Bp,loading:!0})),t.addCase(e.rejected,()=>({...Bp,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Bp,...r})),t.addCase(ah,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:a}=r0e(o.createdVisits),l=s.length,c=EL(s),f=l-c,h=a.length,p=EL(a),m=h-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+h,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}});const z1e=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,s=(r==null?void 0:r.shortUrl)??"",a=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title,c=()=>r?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(ny,{date:r.dateCreated,relative:!0})}),g.jsx(Er,{placement:"bottom",target:"created",children:g.jsx(ny,{date:r.dateCreated})})]}):g.jsx("small",{children:"Loading..."}),f=g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Ci,{href:s})]});return g.jsxs(hh,{title:f,goBack:n,visits:o,shortUrl:r,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",c()]}),g.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&g.jsx("small",{children:"Loading..."}),!i&&g.jsx(Ci,{href:a,children:l??a})]})]})},U1e=({exportVisits:e})=>ra(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o,settings:s})=>{const{shortCode:a=""}=Xs(),{search:l}=Pn(),c=na(),{domain:f}=fl(l),h=(m,v)=>r({shortCode:pm(a),query:{...dh(m),domain:f},doIntervalFallback:v}),p=m=>{var v;return e(`short-url_${(v=n.shortUrl)==null?void 0:v.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return V.useEffect(()=>{i({shortCode:pm(a),domain:f})},[]),g.jsx(mh,{getVisits:h,cancelGetVisits:o,visitsInfo:t,settings:s,exportCsv:p,children:g.jsx(z1e,{shortUrlDetail:n,shortUrlVisits:t,goBack:c})})},(t,n)=>n.shortCode?[Xr.shortUrlVisits(pm(n.shortCode))]:[]),V1e=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e,o=g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx($E,{text:i,colorGenerator:n})]});return g.jsx(hh,{title:o,goBack:t,visits:r})},H1e=(e,{exportVisits:t})=>ra(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i,settings:o})=>{const s=na(),{tag:a=""}=Xs(),l=(f,h)=>n({tag:a,query:dh(f),doIntervalFallback:h}),c=f=>t(`tag_${a}_visits.csv`,f);return g.jsx(mh,{getVisits:l,cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:c,children:g.jsx(V1e,{tagVisits:r,goBack:s,colorGenerator:e})})},()=>[Xr.visits]),W1e=(e,t)=>{e.serviceFactory("MapModal",()=>Q8),e.serviceFactory("ShortUrlVisits",U1e,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo","settings"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",H1e,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo","settings"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",S1e,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo","settings"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",E1e,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","settings"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",C1e,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo","settings"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>v1e),e.serviceFactory("getShortUrlVisits",D1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetShortUrlVisits",at("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",I1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetTagVisits",at("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",lpe,"buildShlinkApiClient"),e.serviceFactory("cancelGetDomainVisits",at("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",R1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetOrphanVisits",at("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",O1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetNonOrphanVisits",at("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>ah),e.serviceFactory("loadVisitsOverview",$1e,"buildShlinkApiClient"),e.serviceFactory("visitsOverviewReducerCreator",B1e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",at("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",cpe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",at("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",P1e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",at("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",N1e,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",at("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",A1e,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",at("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",F1e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",at("reducer"),"tagVisitsReducerCreator")},si=new Pq,{container:sT}=si,Y1e=(e,t)=>(...n)=>e[t](...n),q1e=(e,t)=>({...e,[t]:Y1e(sT,t)}),ia=(e,t=[])=>ZW(e?Mj(e):null,t.reduce(q1e,{}));Wse(si,ia);Oae(si,ia);VX(si);Bve(si,ia);pme(si,ia);Aye(si,ia);W1e(si,ia);t0e(si);Spe(si);Ime(si,ia);bpe(si,ia);var aT={},_2={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=s,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=[],h=0;h<c.length;++h)f.push(o(c[h]));return f}else if(s(c)){var f={};for(var h in c)f[h]=o(c[h]);return f}else return c}t.clone=o;function s(c){return c&&typeof c=="object"&&!Array.isArray(c)}t.isPlainObject=s;function a(c,f){if(!s(c))return f;for(var h in f)h==="__proto__"||h==="constructor"||h==="prototype"||(c[h]=s(c[h])&&s(f[h])?a(c[h],f[h]):f[h]);return c}function l(c,f,h){var p;(c||!s(p=h.shift()))&&(p={});for(var m=0;m<h.length;++m){var v=h[m];if(s(v)){for(var y in v)if(!(y==="__proto__"||y==="constructor"||y==="prototype")){var x=c?o(v[y]):v[y];p[y]=f?a(p[y],x):x}}}return p}})(_2,_2.exports);var G1e=_2.exports;(function(e){var t=n(G1e);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=J,e.combineLoads=Y,e.load=W,e.save=A;function n(F){return F&&F.__esModule?F:{default:F}}function r(F,j){return l(F)||a(F,j)||o(F,j)||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(F,j){if(F){if(typeof F=="string")return s(F,j);var B=Object.prototype.toString.call(F).slice(8,-1);return B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set"?Array.from(F):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?s(F,j):void 0}}function s(F,j){(j==null||j>F.length)&&(j=F.length);for(var B=0,ne=Array(j);B<j;B++)ne[B]=F[B];return ne}function a(F,j){var B=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(B!=null){var ne,H,q=[],te=!0,se=!1;try{for(B=B.call(F);!(te=(ne=B.next()).done)&&(q.push(ne.value),!(j&&q.length===j));te=!0);}catch(pe){se=!0,H=pe}finally{try{te||B.return==null||B.return()}finally{if(se)throw H}}return q}}function l(F){if(Array.isArray(F))return F}function c(F){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},c(F)}function f(F,j,B){return j in F?Object.defineProperty(F,j,{value:B,enumerable:!0,configurable:!0,writable:!0}):F[j]=B,F}var h="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",v=[],y=[],x=0,_=!1,w=!1,S=new Map;function T(F){console.warn(h,F)}function P(){}var k=function(F){return F?P:T};function N(F,j){return j===void 0?null:F.length===1?j[F[0]]:N(F.slice(1),j[F[0]])}function D(F){function j(ne,H){return ne.length===0?H:j(ne.slice(1),f({},ne[0],H))}var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return j(F.split(".").reverse(),B)}function z(F){this.warnFn=F||T}Object.defineProperty(z.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),z.prototype.key=function(F){try{return localStorage.key(F)}catch(j){this.warnFn(j)}return null},z.prototype.setItem=function(F,j){try{localStorage.setItem(F,JSON.stringify(j))}catch(B){this.warnFn(B)}},z.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(j){this.warnFn(j)}return null},z.prototype.removeItem=function(F){try{localStorage.removeItem(F)}catch(j){this.warnFn(j)}};function A(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},j=F.states,B=j===void 0?v:j,ne=F.ignoreStates,H=ne===void 0?y:ne,q=F.namespace,te=q===void 0?p:q,se=F.namespaceSeparator,pe=se===void 0?m:se,O=F.debounce,R=O===void 0?x:O,I=F.disableWarnings,X=I===void 0?w:I;return function(K){return function(ae){return function(ge){function Le(Re,Ne){return 1<Re.split(".").length?N(Re.split("."),Ne):N([Re],Ne)}function ue(){B.length===0?De.setItem(te,ve):B.forEach(function(Re){var Ne=te+pe+Re,ce=Le(Re,ve);ce?De.setItem(Ne,ce):De.removeItem(Ne)})}var ve,_e=k(X),Te=ae(ge);Z(B)||(console.error(h,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),B=v),Z(H)||(console.error(h,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),H=y),0<H.length&&(H=H.filter(function(Re){return ee(Re)?Re:void console.error(h,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),ee(te)||(console.error(h,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),te=p),ee(pe)||(console.error(h,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),pe=m),ie(R)||(console.error(h,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),R=x),ve=0<H.length?G(H,K.getState()):K.getState();var De=new z(_e);return R?(S.get(B+te)&&clearTimeout(S.get(B+te)),S.set(B+te,setTimeout(function(){ue()},R))):ue(),Te}}}}function W(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},j=F.states,B=j===void 0?v:j,ne=F.immutablejs,H=ne===void 0?_:ne,q=F.namespace,te=q===void 0?p:q,se=F.namespaceSeparator,pe=se===void 0?m:se,O=F.preloadedState,R=O===void 0?{}:O,I=F.disableWarnings,X=I===void 0?w:I,K=k(X);Z(B)||(console.error(h,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),B=v),ee(te)||(console.error(h,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),te=p),ee(pe)||(console.error(h,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),pe=m),H===!0&&K("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var ae=new z(K),ge=R;if(B.length===0){var Le=ae.getItem(te);Le&&(ge=Le)}else B.forEach(function(ue){var ve=te+pe+ue,_e=ae.getItem(ve);_e?ge=t.default.recursive(ge,D(ue,_e)):K("Invalid load '"+ve+"' 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 ge}function Y(){for(var F={},j=arguments.length,B=Array(j),ne=0;ne<j;ne++)B[ne]=arguments[ne];return B.forEach(function(H){for(var q in oe(H)||(console.error(h,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),H={}),H)F[q]=H[q]}),F}function J(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},j=F.namespace,B=j===void 0?p:j,ne=F.disableWarnings,H=ne===void 0?w:ne,q=k(H);ee(B)||(console.error(h,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),B=p);for(var te,se=new z(q),pe=se.length,O=0;O<pe;O++)te=se.key(O),te&&te.slice(0,B.length)===B&&se.removeItem(te)}function Z(F){return Object.prototype.toString.call(F)==="[object Array]"}function ee(F){return typeof F=="string"}function ie(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function oe(F){return F!==null&&c(F)==="object"}function G(F,j){var B=Object.entries(j).reduce(function(ne,H){var q=r(H,2),te=q[0];return q[1],F.indexOf(te)===-1&&(ne[te]=j[te]),ne},{});return B}})(aT);const Z1e=e=>j6({servers:ome,selectedServer:e.selectedServerReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,mercureInfo:e.mercureInfoReducer,settings:Pme,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,appUpdated:Hse,sidebar:yae}),K1e=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},X1e=!0,lF={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Q1e=K1e(aT.load(lF)),J1e=e=>pse({devTools:!X1e,reducer:Z1e(e),preloadedState:Q1e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).prepend(e.selectServerListener.middleware).concat(aT.save(lF))}),ebe=!!(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 tbe(e){if("serviceWorker"in navigator){if(new URL(Ug.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Ug.homepage}/service-worker.js`;ebe?(nbe(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")})):cF(n,e)})}}function cF(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 nbe(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()})}):cF(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const rbe="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=",ibe="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==",obe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",sbe=()=>{delete SL.Icon.Default.prototype._getIconUrl,SL.Icon.Default.mergeOptions({iconRetinaUrl:ibe,iconUrl:rbe,shadowUrl:obe})};sbe();const uF=J1e(sT),{App:abe,ScrollToTop:lbe,ErrorHandler:cbe,appUpdateAvailable:ube}=sT;I4(document.getElementById("root")).render(g.jsx(KW,{store:uF,children:g.jsx(QY,{basename:Ug.homepage,children:g.jsx(cbe,{children:g.jsx(lbe,{children:g.jsx(abe,{})})})})}));tbe({onUpdate(){uF.dispatch(ube())}});