mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 02:18:20 +03:00
999 lines
1.4 MiB
999 lines
1.4 MiB
var d$=Object.defineProperty;var h$=(e,t,n)=>t in e?d$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(h$(e,typeof t!="symbol"?t+"":t,n),n);function p$(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 Il=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 m$(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 gL={exports:{}},Qv={},vL={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 Td=Symbol.for("react.element"),g$=Symbol.for("react.portal"),v$=Symbol.for("react.fragment"),y$=Symbol.for("react.strict_mode"),_$=Symbol.for("react.profiler"),b$=Symbol.for("react.provider"),w$=Symbol.for("react.context"),x$=Symbol.for("react.forward_ref"),S$=Symbol.for("react.suspense"),C$=Symbol.for("react.memo"),E$=Symbol.for("react.lazy"),GT=Symbol.iterator;function T$(e){return e===null||typeof e!="object"?null:(e=GT&&e[GT]||e["@@iterator"],typeof e=="function"?e:null)}var yL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_L=Object.assign,bL={};function Bc(e,t,n){this.props=e,this.context=t,this.refs=bL,this.updater=n||yL}Bc.prototype.isReactComponent={};Bc.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")};Bc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wL(){}wL.prototype=Bc.prototype;function p2(e,t,n){this.props=e,this.context=t,this.refs=bL,this.updater=n||yL}var m2=p2.prototype=new wL;m2.constructor=p2;_L(m2,Bc.prototype);m2.isPureReactComponent=!0;var ZT=Array.isArray,xL=Object.prototype.hasOwnProperty,g2={current:null},SL={key:!0,ref:!0,__self:!0,__source:!0};function CL(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)xL.call(t,r)&&!SL.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:Td,type:e,key:o,ref:s,props:i,_owner:g2.current}}function O$(e,t){return{$$typeof:Td,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function v2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Td}function P$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var KT=/\/+/g;function X_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?P$(""+e.key):t.toString(36)}function jp(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 Td:case g$:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+X_(s,0):r,ZT(i)?(n="",e!=null&&(n=e.replace(KT,"$&/")+"/"),jp(i,t,n,"",function(c){return c})):i!=null&&(v2(i)&&(i=O$(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(KT,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",ZT(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+X_(o,a);s+=jp(o,t,n,l,i)}else if(l=T$(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+X_(o,a++),s+=jp(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 Nh(e,t,n){if(e==null)return e;var r=[],i=0;return jp(e,r,"","",function(o){return t.call(n,o,i++)}),r}function k$(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 cr={current:null},Ip={transition:null},M$={ReactCurrentDispatcher:cr,ReactCurrentBatchConfig:Ip,ReactCurrentOwner:g2};it.Children={map:Nh,forEach:function(e,t,n){Nh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Nh(e,function(){t++}),t},toArray:function(e){return Nh(e,function(t){return t})||[]},only:function(e){if(!v2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=Bc;it.Fragment=v$;it.Profiler=_$;it.PureComponent=p2;it.StrictMode=y$;it.Suspense=S$;it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M$;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=_L({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=g2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)xL.call(t,l)&&!SL.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:Td,type:e.type,key:i,ref:o,props:r,_owner:s}};it.createContext=function(e){return e={$$typeof:w$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:b$,_context:e},e.Consumer=e};it.createElement=CL;it.createFactory=function(e){var t=CL.bind(null,e);return t.type=e,t};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:x$,render:e}};it.isValidElement=v2;it.lazy=function(e){return{$$typeof:E$,_payload:{_status:-1,_result:e},_init:k$}};it.memo=function(e,t){return{$$typeof:C$,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Ip.transition;Ip.transition={};try{e()}finally{Ip.transition=t}};it.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};it.useCallback=function(e,t){return cr.current.useCallback(e,t)};it.useContext=function(e){return cr.current.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e){return cr.current.useDeferredValue(e)};it.useEffect=function(e,t){return cr.current.useEffect(e,t)};it.useId=function(){return cr.current.useId()};it.useImperativeHandle=function(e,t,n){return cr.current.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return cr.current.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return cr.current.useLayoutEffect(e,t)};it.useMemo=function(e,t){return cr.current.useMemo(e,t)};it.useReducer=function(e,t,n){return cr.current.useReducer(e,t,n)};it.useRef=function(e){return cr.current.useRef(e)};it.useState=function(e){return cr.current.useState(e)};it.useSyncExternalStore=function(e,t,n){return cr.current.useSyncExternalStore(e,t,n)};it.useTransition=function(){return cr.current.useTransition()};it.version="18.2.0";vL.exports=it;var B=vL.exports;const H=ri(B),B1=p$({__proto__:null,default:H},[B]);/**
|
||
* @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 R$=B,N$=Symbol.for("react.element"),L$=Symbol.for("react.fragment"),D$=Object.prototype.hasOwnProperty,A$=R$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j$={key:!0,ref:!0,__self:!0,__source:!0};function EL(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)D$.call(t,r)&&!j$.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:N$,type:e,key:o,ref:s,props:i,_owner:A$.current}}Qv.Fragment=L$;Qv.jsx=EL;Qv.jsxs=EL;gL.exports=Qv;var m=gL.exports;/*!
|
||
* @kurkle/color v0.3.1
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2022 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/function Od(e){return e+.5|0}const os=(e,t,n)=>Math.max(Math.min(e,n),t);function Iu(e){return os(Od(e*2.55),0,255)}function vs(e){return os(Od(e*255),0,255)}function fo(e){return os(Od(e/2.55)/100,0,1)}function XT(e){return os(Od(e*100),0,100)}const Hr={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},U1=[..."0123456789ABCDEF"],I$=e=>U1[e&15],F$=e=>U1[(e&240)>>4]+U1[e&15],Lh=e=>(e&240)>>4===(e&15),$$=e=>Lh(e.r)&&Lh(e.g)&&Lh(e.b)&&Lh(e.a);function B$(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Hr[e[1]]*17,g:255&Hr[e[2]]*17,b:255&Hr[e[3]]*17,a:t===5?Hr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Hr[e[1]]<<4|Hr[e[2]],g:Hr[e[3]]<<4|Hr[e[4]],b:Hr[e[5]]<<4|Hr[e[6]],a:t===9?Hr[e[7]]<<4|Hr[e[8]]:255})),n}const U$=(e,t)=>e<255?t(e):"";function z$(e){var t=$$(e)?I$:F$;return e?"#"+t(e.r)+t(e.g)+t(e.b)+U$(e.a,t):void 0}const H$=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function TL(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 V$(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 W$(e,t,n){const r=TL(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 Y$(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 y2(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=Y$(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function _2(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(vs)}function b2(e,t,n){return _2(TL,e,t,n)}function q$(e,t,n){return _2(W$,e,t,n)}function G$(e,t,n){return _2(V$,e,t,n)}function OL(e){return(e%360+360)%360}function Z$(e){const t=H$.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Iu(+t[5]):vs(+t[5]));const i=OL(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=q$(i,o,s):t[1]==="hsv"?r=G$(i,o,s):r=b2(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function K$(e,t){var n=y2(e);n[0]=OL(n[0]+t),n=b2(n),e.r=n[0],e.g=n[1],e.b=n[2]}function X$(e){if(!e)return;const t=y2(e),n=t[0],r=XT(t[1]),i=XT(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${fo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const QT={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"},JT={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 Q$(){const e={},t=Object.keys(JT),n=Object.keys(QT);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,QT[o]);o=parseInt(JT[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let Dh;function J$(e){Dh||(Dh=Q$(),Dh.transparent=[0,0,0,0]);const t=Dh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const e7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function t7(e){const t=e7.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?Iu(s):os(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Iu(r):os(r,0,255)),i=255&(t[4]?Iu(i):os(i,0,255)),o=255&(t[6]?Iu(o):os(o,0,255)),{r,g:i,b:o,a:n}}}function n7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${fo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Q_=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,xl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function r7(e,t,n){const r=xl(fo(e.r)),i=xl(fo(e.g)),o=xl(fo(e.b));return{r:vs(Q_(r+n*(xl(fo(t.r))-r))),g:vs(Q_(i+n*(xl(fo(t.g))-i))),b:vs(Q_(o+n*(xl(fo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Ah(e,t,n){if(e){let r=y2(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=b2(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function PL(e,t){return e&&Object.assign(t||{},e)}function eO(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=vs(e[3]))):(t=PL(e,{r:0,g:0,b:0,a:1}),t.a=vs(t.a)),t}function i7(e){return e.charAt(0)==="r"?t7(e):Z$(e)}class Rf{constructor(t){if(t instanceof Rf)return t;const n=typeof t;let r;n==="object"?r=eO(t):n==="string"&&(r=B$(t)||J$(t)||i7(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=PL(this._rgb);return t&&(t.a=fo(t.a)),t}set rgb(t){this._rgb=eO(t)}rgbString(){return this._valid?n7(this._rgb):void 0}hexString(){return this._valid?z$(this._rgb):void 0}hslString(){return this._valid?X$(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=r7(this._rgb,t._rgb,n)),this}clone(){return new Rf(this.rgb)}alpha(t){return this._rgb.a=vs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Od(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 Ah(this._rgb,2,t),this}darken(t){return Ah(this._rgb,2,-t),this}saturate(t){return Ah(this._rgb,1,t),this}desaturate(t){return Ah(this._rgb,1,-t),this}rotate(t){return K$(this._rgb,t),this}}/*!
|
||
* Chart.js v4.1.1
|
||
* https://www.chartjs.org
|
||
* (c) 2022 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/function ao(){}const o7=(()=>{let e=0;return()=>e++})();function ct(e){return e===null||typeof e>"u"}function Mt(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 s7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,kL=(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(Mt(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 Jm(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 eg(e){if(Mt(e))return e.map(eg);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]]=eg(e[n[i]]);return t}return e}function ML(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function a7(e,t,n,r){if(!ML(e))return;const i=t[e],o=n[e];rt(i)&&rt(o)?Nf(i,o,r):t[e]=eg(o)}function Nf(e,t,n){const r=Mt(t)?t:[t],i=r.length;if(!rt(e))return e;n=n||{};const o=n.merger||a7;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 Ju(e,t){return Nf(e,t,{merger:l7})}function l7(e,t,n){if(!ML(e))return;const r=t[e],i=n[e];rt(r)&&rt(i)?Ju(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=eg(i))}const tO={"":e=>e,x:e=>e.x,y:e=>e.y};function c7(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 u7(e){const t=c7(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Rs(e,t){return(tO[t]||(tO[t]=u7(t)))(e)}function w2(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Qr=e=>typeof e<"u",Ns=e=>typeof e=="function",nO=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function f7(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const It=Math.PI,Rt=2*It,d7=Rt+It,tg=Number.POSITIVE_INFINITY,h7=It/180,Gt=It/2,oa=It/4,rO=It*2/3,ss=Math.log10,Wi=Math.sign;function ef(e,t,n){return Math.abs(e-t)<n}function iO(e){const t=Math.round(e);e=ef(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ss(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function p7(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 pc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function m7(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function RL(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 gi(e){return e*(It/180)}function x2(e){return e*(180/It)}function oO(e){if(!qt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function NL(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+=Rt),{angle:o,distance:i}}function z1(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function g7(e,t){return(e-t+d7)%Rt-It}function Pr(e){return(e%Rt+Rt)%Rt}function Lf(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 v7(e){return En(e,-32768,32767)}function go(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function S2(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 vo=(e,t,n,r)=>S2(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),y7=(e,t,n)=>S2(e,n,r=>e[r][t]>=n);function _7(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 LL=["push","pop","shift","splice","unshift"];function b7(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),LL.forEach(n=>{const r="_onData"+w2(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 sO(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)&&(LL.forEach(o=>{delete e[o]}),delete e._chartjs)}function DL(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 AL=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function jL(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,AL.call(window,()=>{r=!1,e.apply(t,n)}))}}function w7(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const C2=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,x7=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function IL(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(vo(a,s.axis,c).lo,n?r:vo(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=En(Math.max(vo(a,s.axis,f,!0).hi+1,n?0:vo(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function FL(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 jh=e=>e===0||e===1,aO=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Rt/n)),lO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Rt/n)+1,tf={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=>jh(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=>jh(e)?e:aO(e,.075,.3),easeOutElastic:e=>jh(e)?e:lO(e,.075,.3),easeInOutElastic(e){return jh(e)?e:e<.5?.5*aO(e*2,.1125,.45):.5+.5*lO(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-tf.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?tf.easeInBounce(e*2)*.5:tf.easeOutBounce(e*2-1)*.5+.5};function $L(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function cO(e){return $L(e)?e:new Rf(e)}function J_(e){return $L(e)?e:new Rf(e).saturate(.5).darken(.1).hexString()}const S7=["x","y","borderWidth","radius","tension"],C7=["color","borderColor","backgroundColor"];function E7(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:C7},numbers:{type:"number",properties:S7}}),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 T7(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const uO=new Map;function O7(e,t){t=t||{};const n=e+JSON.stringify(t);let r=uO.get(n);return r||(r=new Intl.NumberFormat(e,t),uO.set(n,r)),r}function Pd(e,t,n){return O7(t,n).format(e)}const BL={values(e){return Mt(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=P7(e,n)}const s=ss(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),Pd(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ss(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?BL.numeric.call(this,e,t,n):""}};function P7(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 Jv={formatters:BL};function k7(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:Jv.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 Fa=Object.create(null),H1=Object.create(null);function nf(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 e0(e,t,n){return typeof t=="string"?Nf(nf(e,t),n):Nf(nf(e,""),t)}class M7{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)=>J_(i.backgroundColor),this.hoverBorderColor=(r,i)=>J_(i.borderColor),this.hoverColor=(r,i)=>J_(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 e0(this,t,n)}get(t){return nf(this,t)}describe(t,n){return e0(H1,t,n)}override(t,n){return e0(Fa,t,n)}route(t,n,r,i){const o=nf(this,t),s=nf(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 M7({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[E7,T7,k7]);function R7(e){return!e||ct(e.size)||ct(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ng(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 N7(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&&Mt(h)!==!0)s=ng(e,i,o,s,h);else if(Mt(h))for(c=0,f=h.length;c<f;c++)p=h[c],p!=null&&!Mt(p)&&(s=ng(e,i,o,s,p));e.restore();const g=o.length/2;if(g>n.length){for(l=0;l<g;l++)delete i[o[l]];o.splice(0,g)}return s}function sa(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 fO(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function V1(e,t,n,r){UL(e,t,n,r,null)}function UL(e,t,n,r,i){let o,s,a,l,c,f,h,p;const g=t.pointStyle,v=t.rotation,y=t.radius;let x=(v||0)*h7;if(g&&typeof g=="object"&&(o=g.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(x),e.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),g){default:i?e.ellipse(n,r,i/2,y,0,0,Rt):e.arc(n,r,y,0,Rt),e.closePath();break;case"triangle":f=i?i/2:y,e.moveTo(n+Math.sin(x)*f,r-Math.cos(x)*y),x+=rO,e.lineTo(n+Math.sin(x)*f,r-Math.cos(x)*y),x+=rO,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+oa)*l,h=Math.cos(x+oa)*(i?i/2-c:l),a=Math.sin(x+oa)*l,p=Math.sin(x+oa)*(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+=oa;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+=oa;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+=oa,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 Df(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 ey(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ty(e){e.restore()}function L7(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 D7(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 $a(e,t,n,r,i,o={}){const s=Mt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,A7(e,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&I7(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),j7(e,n,r,c,o),r+=i.lineHeight;e.restore()}function A7(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 j7(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 I7(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Af(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 F7=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,$7=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function B7(e,t){const n=(""+e).match(F7);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 U7=e=>+e||0;function E2(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]=U7(o(s));return n}function zL(e){return E2(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ka(e){return E2(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=zL(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($7)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ke(e.family,t.family),lineHeight:B7(Ke(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ke(e.weight,t.weight),string:""};return i.string=R7(i),i}function Fu(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&&Mt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function z7(e,t,n){const{min:r,max:i}=e,o=kL(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 Hs(e,t){return Object.assign(Object.create(e),t)}function T2(e,t=[""],n=e,r,i=()=>e[0]){Qr(r)||(r=YL("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>T2([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 VL(s,a,()=>K7(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return hO(s).includes(a)},ownKeys(s){return hO(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function mc(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:HL(e,r),setContext:o=>mc(e,o,n,r),override:o=>mc(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 VL(o,s,()=>V7(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 HL(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:Ns(n)?n:()=>n,isIndexable:Ns(r)?r:()=>r}}const H7=(e,t)=>e?e+w2(t):t,O2=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function VL(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function V7(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return Ns(a)&&s.isScriptable(t)&&(a=W7(t,a,e,n)),Mt(a)&&a.length&&(a=Y7(t,a,e,s.isIndexable)),O2(t,a)&&(a=mc(a,i,o&&o[t],s)),a}function W7(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),O2(e,t)&&(t=P2(i._scopes,i,e,t)),t}function Y7(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=P2(c,i,e,f);t.push(mc(h,o,s&&s[e],a))}}return t}function WL(e,t,n){return Ns(e)?e(t,n):e}const q7=(e,t)=>e===!0?t:typeof e=="string"?Rs(t,e):void 0;function G7(e,t,n,r,i){for(const o of t){const s=q7(n,o);if(s){e.add(s);const a=WL(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 P2(e,t,n,r){const i=t._rootScopes,o=WL(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=dO(a,s,n,o||n,r);return l===null||Qr(o)&&o!==n&&(l=dO(a,s,o,l,r),l===null)?!1:T2(Array.from(a),[""],i,o,()=>Z7(t,n,r))}function dO(e,t,n,r,i){for(;n;)n=G7(e,t,n,r,i);return n}function Z7(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Mt(i)&&rt(n)?n:i||{}}function K7(e,t,n,r){let i;for(const o of t)if(i=YL(H7(o,e),n),Qr(i))return O2(e,i)?P2(n,r,e,i):i}function YL(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Qr(r))return r}}function hO(e){let t=e._keys;return t||(t=e._keys=X7(e._scopes)),t}function X7(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 qL(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(Rs(f,o),c)};return s}const Q7=Number.EPSILON||1e-14,gc=(e,t)=>t<e.length&&!e[t].skip&&e[t],GL=e=>e==="x"?"y":"x";function J7(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=z1(o,i),l=z1(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 eB(e,t,n){const r=e.length;let i,o,s,a,l,c=gc(e,0);for(let f=0;f<r-1;++f)if(l=c,c=gc(e,f+1),!(!l||!c)){if(ef(t[f],0,Q7)){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 tB(e,t,n="x"){const r=GL(n),i=e.length;let o,s,a,l=gc(e,0);for(let c=0;c<i;++c){if(s=a,a=l,l=gc(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 nB(e,t="x"){const n=GL(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,c=gc(e,0);for(s=0;s<r;++s)if(a=l,l=c,c=gc(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?Wi(i[s-1])!==Wi(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}eB(e,i,o),tB(e,o,t)}function Ih(e,t,n){return Math.max(Math.min(e,n),t)}function rB(e,t){let n,r,i,o,s,a=Df(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&Df(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=Ih(i.cp1x,t.left,t.right),i.cp1y=Ih(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=Ih(i.cp2x,t.left,t.right),i.cp2y=Ih(i.cp2y,t.top,t.bottom)))}function iB(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")nB(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=J7(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&&rB(e,n)}function ZL(){return typeof window<"u"&&typeof document<"u"}function k2(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function rg(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 ny=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function oB(e,t){return ny(e).getPropertyValue(t)}const sB=["top","right","bottom","left"];function Ma(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=sB[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const aB=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function lB(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(aB(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 ha(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=ny(n),o=i.boxSizing==="border-box",s=Ma(i,"padding"),a=Ma(i,"border","width"),{x:l,y:c,box:f}=lB(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:g,height:v}=t;return o&&(g-=s.width+a.width,v-=s.height+a.height),{x:Math.round((l-h)/g*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function cB(e,t,n){let r,i;if(t===void 0||n===void 0){const o=k2(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=ny(o),l=Ma(a,"border","width"),c=Ma(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=rg(a.maxWidth,o,"clientWidth"),i=rg(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||tg,maxHeight:i||tg}}const Fh=e=>Math.round(e*10)/10;function uB(e,t,n,r){const i=ny(e),o=Ma(i,"margin"),s=rg(i.maxWidth,e,"clientWidth")||tg,a=rg(i.maxHeight,e,"clientHeight")||tg,l=cB(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=Ma(i,"border","width"),g=Ma(i,"padding");c-=g.width+p.width,f-=g.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Fh(Math.min(c,s,l.maxWidth)),f=Fh(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Fh(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Fh(Math.floor(f*r))),{width:c,height:f}}function pO(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 fB=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 mO(e,t){const n=oB(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function pa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function dB(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 hB(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=pa(e,i,n),a=pa(i,o,n),l=pa(o,t,n),c=pa(s,a,n),f=pa(a,l,n);return pa(c,f,n)}const pB=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}}},mB=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ec(e,t,n){return e?pB(t,n):mB()}function KL(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 XL(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function QL(e){return e==="angle"?{between:Lf,compare:g7,normalize:Pr}:{between:go,compare:(t,n)=>t-n,normalize:t=>t}}function gO({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 gB(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=QL(r),l=t.length;let{start:c,end:f,loop:h}=e,p,g;if(h){for(c+=l,f+=l,p=0,g=l;p<g&&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 JL(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=QL(r),{start:f,end:h,loop:p,style:g}=gB(e,t,n),v=[];let y=!1,x=null,b,w,S;const T=()=>l(i,S,b)&&a(i,S)!==0,P=()=>a(o,b)===0||l(o,S,b),k=()=>y||T(),N=()=>!y||P();for(let D=f,V=f;D<=h;++D)w=t[D%s],!w.skip&&(b=c(w[r]),b!==S&&(y=l(b,i,o),x===null&&k()&&(x=a(b,i)===0?D:V),x!==null&&N()&&(v.push(gO({start:x,end:D,loop:p,count:s,style:g})),x=null),V=D,S=b));return x!==null&&v.push(gO({start:x,end:h,loop:p,count:s,style:g})),v}function eD(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=JL(r[i],e.points,t);o.length&&n.push(...o)}return n}function vB(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 yB(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 _B(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=vB(n,i,o,r);if(r===!0)return vO(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 vO(e,yB(n,s,l,c),n,t)}function vO(e,t,n,r){return!r||!r.setContext||!n?t:bB(e,t,n,r)}function bB(e,t,n,r){const i=e._chart.getContext(),o=yO(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let f=o,h=t[0].start,p=h;function g(v,y,x,b){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:b}),f=b,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 b=n[p%l];x=yO(r.setContext(Hs(i,{type:"segment",p0:y,p1:b,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:s}))),wB(x,f)&&g(h,p-1,v.loop,f),y=b,f=x}h<p-1&&g(h,p-1,v.loop,f)}return c}function yO(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function wB(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 xB{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=AL.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 lo=new xB;const _O="transparent",SB={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=cO(e||_O),i=r.valid&&cO(t||_O);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class CB{constructor(t,n,r,i){const o=n[r];i=Fu([t.to,i,o,t.from]);const s=Fu([t.from,o,i]);this._active=!0,this._fn=t.fn||SB[t.type||typeof s],this._easing=tf[t.easing]||tf.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=Fu([t.to,n,i,t.from]),this._from=Fu([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 tD{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];(Mt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=TB(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&EB(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 CB(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 lo.add(this._chart,r),!0}}function EB(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 TB(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 bO(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 OB(e,t,n){if(n===!1)return!1;const r=bO(e,n),i=bO(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function PB(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 nD(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 wO(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||Wi(t)===Wi(c))&&(t+=c)}return t}}function kB(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 xO(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function MB(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function RB(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 NB(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function SO(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 CO(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=MB(o,s,r),h=t.length;let p;for(let g=0;g<h;++g){const v=t[g],{[l]:y,[c]:x}=v,b=v._stacks||(v._stacks={});p=b[c]=NB(i,f,y),p[a]=x,p._top=SO(p,s,!0,r.type),p._bottom=SO(p,s,!1,r.type);const w=p._visualValues||(p._visualValues={});w[a]=x}}function t0(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function LB(e,t){return Hs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function DB(e,t,n){return Hs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function gu(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 n0=e=>e==="reset"||e==="none",EO=(e,t)=>t?e:Object.assign({},e),AB=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:nD(n,!0),values:null};class _i{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=xO(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&&gu(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,g,v)=>h==="x"?p:h==="r"?v:g,o=n.xAxisID=Ke(r.xAxisID,t0(t,"x")),s=n.yAxisID=Ke(r.yAxisID,t0(t,"y")),a=n.rAxisID=Ke(r.rAxisID,t0(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&&sO(this._data,this),t._stacked&&gu(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(rt(n))this._data=kB(n);else if(r!==n){if(r){sO(r,this);const i=this._cachedMeta;gu(i),i._parsed=[]}n&&Object.isExtensible(n)&&b7(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=xO(n.vScale,n),n.stack!==r.stack&&(i=!0,gu(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&CO(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{Mt(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 g=()=>h[a]===null||c&&h[a]<c[a];for(f=0;f<n;++f)r._parsed[f+t]=h=p[f],l&&(g()&&(l=!1),c=h);r._sorted=l}s&&CO(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,g,v;for(p=0,g=i;p<g;++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,g;for(f=0,h=i;f<h;++f)p=f+r,g=n[p],c[f]={x:o.parse(Rs(g,a),p),y:s.parse(Rs(g,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:nD(i,!0),values:n._stacks[t.axis]._visualValues};return wO(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=wO(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=AB(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=RB(a);let p,g;function v(){g=i[p];const y=g[a.axis];return!qt(g[t.axis])||f>y||h<y}for(p=0;p<s&&!(!v()&&(this.updateRangeFromParsed(c,t,g,l),o));++p);if(o){for(p=s-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(c,t,g,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=PB(Ke(this.options.clip,OB(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=DB(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=LB(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 EO(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),g=Object.keys(tn.elements[t]),v=()=>this.getContext(r,i,n),y=c.resolveNamedOptions(p,g,v,h);return y.$shared&&(y.$shared=l,o[s]=Object.freeze(EO(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 tD(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||n0(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){n0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!n0(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&&gu(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(_i,"defaults",{}),xe(_i,"datasetElementType",null),xe(_i,"dataElementType",null);function jB(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=DL(r.sort((i,o)=>i-o))}return e._cache.$bar}function IB(e){const t=e.iScale,n=jB(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 FB(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 $B(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 BB(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 rD(e,t,n,r){return Mt(e)?BB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function TO(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(rD(p,h,o,c));return l}function r0(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function UB(e,t,n){return e!==0?Wi(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function zB(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 HB(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}=zB(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[OO(f,s,a,l)]=!0,i=c)),o[OO(i,s,a,l)]=!0,e.borderSkipped=o}function OO(e,t,n,r){return r?(e=VB(e,t,n),e=PO(e,n,t)):e=PO(e,t,n),e}function VB(e,t,n){return e===t?n:e===n?t:e}function PO(e,t,n){return e==="start"?t:e==="end"?n:e}function WB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class rf extends _i{parsePrimitiveData(t,n,r,i){return TO(t,n,r,i)}parseArrayData(t,n,r,i){return TO(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,g,v,y;for(p=r,g=r+i;p<g;++p)y=n[p],v={},v[o.axis]=o.parse(Rs(y,c),p),h.push(rD(Rs(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=r0(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 g=n;g<n+r;g++){const v=this.getParsed(g),y=o||ct(v[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(g),x=this._calculateBarIndexPixels(g,f),b=(v._stacks||{})[a.axis],w={horizontal:c,base:y.base,enableBorderRadius:!b||r0(v._custom)||s===b._top||s===b._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(g,t[g].active?"active":i));const S=w.options||t[g].options;HB(w,S,b,s),WB(w,S,f.ratio),this.updateElement(t[g],g,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||IB(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=r0(c);let h=l[n.axis],p=0,g=r?this.applyStack(n,l,r):h,v,y;g!==h&&(p=g-h,g=h),f&&(h=c.barStart,g=c.barEnd-c.barStart,h!==0&&Wi(h)!==Wi(c.barEnd)&&(p=0),p+=h);const x=!ct(o)&&!f?o:p;let b=n.getPixelForValue(x);if(this.chart.getDataVisibility(t)?v=n.getPixelForValue(p+g):v=b,y=v-b,Math.abs(y)<s){y=UB(y,n,a)*s,h===a&&(b-=y/2);const w=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),T=Math.min(w,S),P=Math.max(w,S);b=Math.max(Math.min(b,P),T),v=b+y,r&&!f&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(b))}if(b===n.getPixelForValue(a)){const w=Wi(y)*n.getLineWidthForValue(a)/2;b+=w,y-=w}return{size:y,base:b,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"?$B(t,n,i,c):FB(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(rf,"id","bar"),xe(rf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),xe(rf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Fp extends _i{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 g=t[p],v=!o&&this.getParsed(p),y={},x=y[f]=o?s.getPixelForDecimal(.5):s.getPixelForValue(v[f]),b=y[h]=o?a.getBasePixel():a.getPixelForValue(v[h]);y.skip=isNaN(x)||isNaN(b),c&&(y.options=l||this.resolveDataElementOptions(p,g.active?"active":i),o&&(y.options.radius=0)),this.updateElement(g,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(Fp,"id","bubble"),xe(Fp,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),xe(Fp,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function YB(e,t,n){let r=1,i=1,o=0,s=0;if(t<Rt){const a=e,l=a+t,c=Math.cos(a),f=Math.sin(a),h=Math.cos(l),p=Math.sin(l),g=(S,T,P)=>Lf(S,a,l,!0)?1:Math.max(T,T*n,P,P*n),v=(S,T,P)=>Lf(S,a,l,!0)?-1:Math.min(T,T*n,P,P*n),y=g(0,c,h),x=g(Gt,f,p),b=v(It,c,h),w=v(It+Gt,f,p);r=(y-b)/2,i=(x-w)/2,o=-(y+b)/2,s=-(x+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class as extends _i{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=>+Rs(r[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return gi(this.options.rotation-90)}_getCircumference(){return gi(this.options.circumference)}_getRotationExtents(){let t=Rt,n=-Rt;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(s7(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:v,offsetY:y}=YB(h,f,l),x=(r.width-s)/p,b=(r.height-s)/g,w=Math.max(Math.min(x,b)/2,0),S=kL(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/Rt)}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,g=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:y,includeOptions:x}=this._getSharedOptions(n,i);let b=this._getRotation(),w;for(w=0;w<n;++w)b+=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:b,endAngle:b+S,circumference:S,outerRadius:v,innerRadius:g};x&&(P.options=y||this.resolveDataElementOptions(w,T.active?"active":i)),b+=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)?Rt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Pd(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(as,"id","doughnut"),xe(as,"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(as,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),xe(as,"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 of extends _i{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}=IL(n,i,s);this._drawStart=a,this._drawCount=l,FL(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,g=a.axis,{spanGaps:v,segment:y}=this.options,x=pc(v)?v:Number.POSITIVE_INFINITY,b=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=b?k:{};if(P<n||P>=w){N.skip=!0;continue}const D=this.getParsed(P),V=ct(D[g]),A=N[p]=s.getPixelForValue(D[p],P),W=N[g]=o||V?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,D,l):D[g],P);N.skip=isNaN(A)||isNaN(W)||V,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)),b||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(of,"id","line"),xe(of,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),xe(of,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class sf extends _i{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=Pd(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return qL.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 g=p,v;const y=360/this.countVisibleElements();for(v=0;v<n;++v)g+=this._computeAngle(v,i,y);for(v=n;v<n+r;v++){const x=t[v];let b=g,w=g+this._computeAngle(v,i,y),S=s.getDataVisibility(v)?c.getDistanceFromCenterForValue(this.getParsed(v).r):0;g=w,o&&(l.animateScale&&(S=0),l.animateRotate&&(b=w=p));const T={x:f,y:h,innerRadius:0,outerRadius:S,startAngle:b,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)?gi(this.resolveDataElementOptions(t,n).angle||r):0}}xe(sf,"id","polarArea"),xe(sf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),xe(sf,"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 W1 extends as{}xe(W1,"id","pie"),xe(W1,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class $p extends _i{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 qL.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,g={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:c};this.updateElement(l,a,g,i)}}}xe($p,"id","radar"),xe($p,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),xe($p,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Bp extends _i{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}=IL(n,r,i);if(this._drawStart=o,this._drawCount=s,FL(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),g=s.axis,v=a.axis,{spanGaps:y,segment:x}=this.options,b=pc(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]),V=N[g]=s.getPixelForValue(k[g],T),A=N[v]=o||D?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[v],T);N.skip=isNaN(V)||isNaN(A)||D,N.stop=T>0&&Math.abs(k[g]-S[g])>b,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(Bp,"id","scatter"),xe(Bp,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),xe(Bp,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var qB=Object.freeze({__proto__:null,BarController:rf,BubbleController:Fp,DoughnutController:as,LineController:of,PolarAreaController:sf,PieController:W1,RadarController:$p,ScatterController:Bp});function aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class M2{static override(t){Object.assign(M2.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return aa()}parse(){return aa()}format(){return aa()}add(){return aa()}diff(){return aa()}startOf(){return aa()}endOf(){return aa()}}var GB={_date:M2};function ZB(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?y7:vo;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 kd(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}=ZB(o[a],t,s,i);for(let g=h;g<=p;++g){const v=f[g];v.skip||r(v,c,g)}}}function KB(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 i0(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||kd(e,n,t,function(a,l,c){!i&&!Df(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function XB(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:f}=s.getProps(["startAngle","endAngle"],r),{angle:h}=NL(s,{x:t.x,y:t.y});Lf(h,c,f)&&i.push({element:s,datasetIndex:a,index:l})}return kd(e,n,t,o),i}function QB(e,t,n,r,i,o){let s=[];const a=KB(n);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const g=f.inRange(t.x,t.y,i);if(r&&!g)return;const v=f.getCenterPoint(i);if(!(!!o||e.isPointInArea(v))&&!g)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 kd(e,n,t,c),s}function o0(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?XB(e,t,n,i):QB(e,t,n,r,i,o)}function kO(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return kd(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 JB={evaluateInteractionItems:kd,modes:{index(e,t,n,r){const i=ha(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?i0(e,i,o,r,s):o0(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=ha(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?i0(e,i,o,r,s):o0(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=ha(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return i0(e,i,o,r,s)},nearest(e,t,n,r){const i=ha(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return o0(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=ha(t,e);return kO(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=ha(t,e);return kO(e,i,"y",n.intersect,r)}}};const iD=["left","top","right","bottom"];function vu(e,t){return e.filter(n=>n.pos===t)}function MO(e,t){return e.filter(n=>iD.indexOf(n.pos)===-1&&n.box.axis===t)}function yu(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 e9(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 t9(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!iD.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 n9(e,t){const n=t9(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 r9(e){const t=e9(e),n=yu(t.filter(c=>c.box.fullSize),!0),r=yu(vu(t,"left"),!0),i=yu(vu(t,"right")),o=yu(vu(t,"top"),!0),s=yu(vu(t,"bottom")),a=MO(t,"x"),l=MO(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:vu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function RO(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function oD(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 i9(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&&oD(s,o.getPadding());const a=Math.max(0,t.outerWidth-RO(s,e,"left","right")),l=Math.max(0,t.outerHeight-RO(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 o9(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 s9(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 $u(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,s9(a.horizontal,t));const{same:h,other:p}=i9(t,n,a,r);c|=h&&i.length,f=f||p,l.fullSize||i.push(a)}return c&&$u(i,t,n,r)||f}function $h(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 NO(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?$h(l,i.left,s,n.outerWidth-i.right-i.left,p):$h(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?$h(l,o,i.top,p,n.outerHeight-i.bottom-i.top):$h(l,o,t.top+c.placed,p,h),c.start=o,c.placed+=h,o=l.right}}t.x=o,t.y=s}var Qn={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=Jn(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=r9(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);oD(p,Jn(r));const g=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),v=n9(l.concat(c),h);$u(a.fullSize,g,h,v),$u(l,g,h,v),$u(c,g,h,v)&&$u(l,g,h,v),o9(g),NO(a.leftAndTop,g,h,v),g.x+=g.w,g.y+=g.h,NO(a.rightAndBottom,g,h,v),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},vt(a.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class sD{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 a9 extends sD{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Up="$chartjs",l9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},LO=e=>e===null||e==="";function c9(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Up]={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",LO(i)){const o=mO(e,"width");o!==void 0&&(e.width=o)}if(LO(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=mO(e,"height");o!==void 0&&(e.height=o)}return e}const aD=fB?{passive:!0}:!1;function u9(e,t,n){e.addEventListener(t,n,aD)}function f9(e,t,n){e.canvas.removeEventListener(t,n,aD)}function d9(e,t){const n=l9[e.type]||e.type,{x:r,y:i}=ha(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ig(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function h9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||ig(a.addedNodes,r),s=s&&!ig(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function p9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||ig(a.removedNodes,r),s=s&&!ig(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const jf=new Map;let DO=0;function lD(){const e=window.devicePixelRatio;e!==DO&&(DO=e,jf.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function m9(e,t){jf.size||window.addEventListener("resize",lD),jf.set(e,t)}function g9(e){jf.delete(e),jf.size||window.removeEventListener("resize",lD)}function v9(e,t,n){const r=e.canvas,i=r&&k2(r);if(!i)return;const o=jL((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),m9(e,o),s}function s0(e,t,n){n&&n.disconnect(),t==="resize"&&g9(e)}function y9(e,t,n){const r=e.canvas,i=jL(o=>{e.ctx!==null&&n(d9(o,e))},e);return u9(r,t,i),i}class _9 extends sD{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(c9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Up])return!1;const r=n[Up].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[Up],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:h9,detach:p9,resize:v9}[n]||y9;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:s0,detach:s0,resize:s0}[n]||f9)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return uB(t,n,r,i)}isAttached(t){const n=k2(t);return!!(n&&n.isConnected)}}function b9(e){return!ZL()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?a9:_9}var Ap;let Lo=(Ap=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 pc(this.x)&&pc(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(Ap,"defaults",{}),xe(Ap,"defaultRoutes"),Ap);function w9(e,t){const n=e.options.ticks,r=x9(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?C9(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return E9(t,c,o,s/i),c;const f=S9(o,t,i);if(s>0){let h,p;const g=s>1?Math.round((l-a)/(s-1)):null;for(Bh(t,c,f,ct(g)?0:a-g,a),h=0,p=s-1;h<p;h++)Bh(t,c,f,o[h],o[h+1]);return Bh(t,c,f,l,ct(g)?t.length:l+g),c}return Bh(t,c,f),c}function x9(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 S9(e,t,n){const r=T9(e),i=t.length/n;if(!r)return Math.max(i,1);const o=p7(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 C9(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function E9(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 Bh(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 T9(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 O9=e=>e==="left"?"right":e==="right"?"left":e,AO=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function jO(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 P9(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 k9(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 _u(e){return e.drawTicks?e.tickLength:0}function IO(e,t){if(!e.display)return 0;const n=gn(e.font,t),r=Jn(e.padding);return(Mt(e.text)?e.text.length:1)*n.lineHeight+r.height}function M9(e,t){return Hs(e,{scale:t,type:"scale"})}function R9(e,t,n){return Hs(e,{tick:n,index:t,type:"tick"})}function N9(e,t,n){let r=C2(e);return(n&&t!=="right"||!n&&t==="right")&&(r=O9(r)),r}function L9(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,g,v;const y=s-i,x=a-o;if(e.isHorizontal()){if(g=Zn(r,o,a),rt(n)){const b=Object.keys(n)[0],w=n[b];v=f[b].getPixelForValue(w)+y-t}else n==="center"?v=(c.bottom+c.top)/2+y-t:v=AO(e,n,t);p=a-o}else{if(rt(n)){const b=Object.keys(n)[0],w=n[b];g=f[b].getPixelForValue(w)-x+t}else n==="center"?g=(c.left+c.right)/2-x+t:g=AO(e,n,t);v=Zn(r,s,i),h=n==="left"?-Gt:Gt}return{titleX:g,titleY:v,maxWidth:p,rotation:h}}class tl extends Lo{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=z7(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?jO(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=w9(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,g=En(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:g/(r-1),h+6>a&&(a=g/(r-(t.offset?.5:1)),l=this.maxHeight-_u(t.grid)-n.padding-IO(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=x2(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=IO(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=_u(o)+l):(t.height=this.maxHeight,t.width=_u(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),g=r.padding*2,v=gi(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(a){const b=r.mirror?0:x*h.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+b+g)}else{const b=r.mirror?0:y*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+b+g)}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,g=0;l?c?(p=i*t.width,g=r*n.height):(p=r*t.height,g=i*n.width):o==="start"?g=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,g=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((g-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=jO(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,g,v,y,x,b,w,S;for(c=0;c<n;++c){if(p=t[c].label,g=this._resolveTickFontOptions(c),r.font=v=g.string,y=i[v]=i[v]||{data:{},gc:[]},x=g.lineHeight,b=w=0,!ct(p)&&!Mt(p))b=ng(r,y.data,y.gc,b,p),w=x;else if(Mt(p))for(f=0,h=p.length;f<h;++f)S=p[f],!ct(S)&&!Mt(S)&&(b=ng(r,y.data,y.gc,b,S),w+=x);o.push(b),s.push(w),a=Math.max(b,a),l=Math.max(w,l)}k9(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 v7(this._alignToPixels?sa(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=R9(this.getContext(),t,r))}return this.$context||(this.$context=M9(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=gi(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=_u(o),g=[],v=a.setContext(this.getContext()),y=v.display?v.width:0,x=y/2,b=function(ie){return sa(r,ie,y)};let w,S,T,P,k,N,D,V,A,W,Y,ee;if(s==="top")w=b(this.bottom),N=this.bottom-p,V=w-x,W=b(t.top)+x,ee=t.bottom;else if(s==="bottom")w=b(this.top),W=t.top,ee=b(t.bottom)-x,N=w+x,V=this.top+p;else if(s==="left")w=b(this.right),k=this.right-p,D=w-x,A=b(t.left)+x,Y=t.right;else if(s==="right")w=b(this.left),A=t.left,Y=b(t.right)-x,k=w+x,D=this.left+p;else if(n==="x"){if(s==="center")w=b((t.top+t.bottom)/2+.5);else if(rt(s)){const ie=Object.keys(s)[0],le=s[ie];w=b(this.chart.scales[ie].getPixelForValue(le))}W=t.top,ee=t.bottom,N=w+x,V=N+p}else if(n==="y"){if(s==="center")w=b((t.left+t.right)/2);else if(rt(s)){const ie=Object.keys(s)[0],le=s[ie];w=b(this.chart.scales[ie].getPixelForValue(le))}k=w-x,D=k-p,A=t.left,Y=t.right}const q=Ke(i.ticks.maxTicksLimit,h),X=Math.max(1,Math.ceil(h/q));for(S=0;S<h;S+=X){const ie=this.getContext(S),le=o.setContext(ie),G=a.setContext(ie),F=le.lineWidth,j=le.color,U=G.dash||[],te=G.dashOffset,z=le.tickWidth,Z=le.tickColor,ne=le.tickBorderDash||[],ae=le.tickBorderDashOffset;T=P9(this,S,l),T!==void 0&&(P=sa(r,T,F),c?k=D=A=Y=P:N=V=W=ee=P,g.push({tx1:k,ty1:N,tx2:D,ty2:V,x1:A,y1:W,x2:Y,y2:ee,width:F,color:j,borderDash:U,borderDashOffset:te,tickWidth:z,tickColor:Z,tickBorderDash:ne,tickBorderDashOffset:ae}))}return this._ticksLength=h,this._borderValue=w,g}_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=_u(r.grid),g=p+f,v=h?-f:g,y=-gi(this.labelRotation),x=[];let b,w,S,T,P,k,N,D,V,A,W,Y,ee="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 X=this._getYAxisLabelAlignment(p);N=X.textAlign,P=X.x}else if(i==="right"){const X=this._getYAxisLabelAlignment(p);N=X.textAlign,P=X.x}else if(n==="x"){if(i==="center")k=(t.top+t.bottom)/2+g;else if(rt(i)){const X=Object.keys(i)[0],ie=i[X];k=this.chart.scales[X].getPixelForValue(ie)+g}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")P=(t.left+t.right)/2-g;else if(rt(i)){const X=Object.keys(i)[0],ie=i[X];P=this.chart.scales[X].getPixelForValue(ie)}N=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?ee="top":l==="end"&&(ee="bottom"));const q=this._getLabelSizes();for(b=0,w=a.length;b<w;++b){S=a[b],T=S.label;const X=o.setContext(this.getContext(b));D=this.getPixelForTick(b)+o.labelOffset,V=this._resolveTickFontOptions(b),A=V.lineHeight,W=Mt(T)?T.length:1;const ie=W/2,le=X.color,G=X.textStrokeColor,F=X.textStrokeWidth;let j=N;s?(P=D,N==="inner"&&(b===w-1?j=this.options.reverse?"left":"right":b===0?j=this.options.reverse?"right":"left":j="center"),i==="top"?c==="near"||y!==0?Y=-W*A+A/2:c==="center"?Y=-q.highest.height/2-ie*A+A:Y=-q.highest.height+A/2:c==="near"||y!==0?Y=A/2:c==="center"?Y=q.highest.height/2-ie*A:Y=q.highest.height-W*A,h&&(Y*=-1),y!==0&&!X.showLabelBackdrop&&(P+=A/2*Math.sin(y))):(k=D,Y=(1-W)*A/2);let U;if(X.showLabelBackdrop){const te=Jn(X.backdropPadding),z=q.heights[b],Z=q.widths[b];let ne=Y-te.top,ae=0-te.left;switch(ee){case"middle":ne-=z/2;break;case"bottom":ne-=z;break}switch(N){case"center":ae-=Z/2;break;case"right":ae-=Z;break}U={left:ae,top:ne,width:Z+te.width,height:z+te.height,color:X.backdropColor}}x.push({label:T,font:V,textOffset:Y,options:{rotation:y,color:le,strokeColor:G,strokeWidth:F,textAlign:j,textBaseline:ee,translation:[P,k],backdrop:U}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-gi(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=sa(t,this.left,s)-s/2,f=sa(t,this.right,a)+a/2,h=p=l):(h=sa(t,this.top,s)-s/2,p=sa(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&&ey(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;$a(r,c,0,f,l,a)}i&&ty(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=gn(r.font),s=Jn(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||rt(n)?(l+=s.bottom,Mt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=L9(this,l,n,a);$a(t,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:N9(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!==tl.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 Uh{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;j9(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,D9(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 Fa[r])}}function D9(e,t,n){const r=Nf(Object.create(null),[n?tn.get(n):{},tn.get(t),e.defaults]);tn.set(t,r),e.defaultRoutes&&A9(t,e.defaultRoutes),e.descriptors&&tn.describe(t,e.descriptors)}function A9(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 j9(e){return"id"in e&&"defaults"in e}class I9{constructor(){this.controllers=new Uh(_i,"datasets",!0),this.elements=new Uh(Lo,"elements"),this.plugins=new Uh(Object,"plugins"),this.scales=new Uh(tl,"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=w2(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 ji=new I9;class F9{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=$9(r);return i===!1&&!n?[]:U9(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 $9(e){const t={},n=[],r=Object.keys(ji.plugins.items);for(let o=0;o<r.length;o++)n.push(ji.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 B9(e,t){return!t&&e===!1?null:e===!0?{}:e}function U9(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=B9(r[l],i);c!==null&&o.push({plugin:a,options:z9(e.config,{plugin:a,local:n[l]},c,s)})}return o}function z9(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 Y1(e,t){const n=tn.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function H9(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function V9(e,t){return e===t?"_index_":"_value_"}function W9(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function og(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||W9(t.position)||e.length>1&&og(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Y9(e,t){const n=Fa[e.type]||{scales:{}},r=t.scales||{},i=Y1(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=og(s,a),c=V9(l,i),f=n.scales||{};o[s]=Ju(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||Y1(a,t),f=(Fa[a]||{}).scales||{};Object.keys(f).forEach(h=>{const p=H9(h,l),g=s[p+"AxisID"]||p;o[g]=o[g]||Object.create(null),Ju(o[g],[{axis:p},r[g],f[h]])})}),Object.keys(o).forEach(s=>{const a=o[s];Ju(a,[tn.scales[a.type],tn.scale])}),o}function cD(e){const t=e.options||(e.options={});t.plugins=Ke(t.plugins,{}),t.scales=Y9(e,t)}function uD(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function q9(e){return e=e||{},e.data=uD(e.data),cD(e),e}const FO=new Map,fD=new Set;function zh(e,t){let n=FO.get(e);return n||(n=t(),FO.set(e,n),fD.add(n)),n}const bu=(e,t,n)=>{const r=Rs(t,n);r!==void 0&&e.add(r)};class G9{constructor(t){this._config=q9(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=uD(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(),cD(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return zh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return zh(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return zh(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return zh(`${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=>bu(l,t,h))),f.forEach(h=>bu(l,i,h)),f.forEach(h=>bu(l,Fa[o]||{},h)),f.forEach(h=>bu(l,tn,h)),f.forEach(h=>bu(l,H1,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),fD.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Fa[n]||{},tn.datasets[n]||{},{type:n},tn,H1]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=$O(this._resolverCache,t,i);let l=s;if(K9(s,n)){o.$shared=!1,r=Ns(r)?r():r;const c=this.createResolver(t,r,a);l=mc(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=$O(this._resolverCache,t,r);return rt(n)?mc(o,n,void 0,i):o}}function $O(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:T2(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const Z9=e=>rt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Ns(e[n]),!1);function K9(e,t){const{isScriptable:n,isIndexable:r}=HL(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(Ns(a)||Z9(a))||s&&Mt(a))return!0}return!1}var X9="4.1.1";const Q9=["top","bottom","left","right","chartArea"];function BO(e,t){return e==="top"||e==="bottom"||Q9.indexOf(e)===-1&&t==="x"}function UO(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function zO(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ct(n&&n.onComplete,[e],t)}function J9(e){const t=e.chart,n=t.options.animation;Ct(n&&n.onProgress,[e],t)}function dD(e){return ZL()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const zp={},HO=e=>{const t=dD(e);return Object.values(zp).filter(n=>n.canvas===t).pop()};function eU(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 tU(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function nU(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var Zo;let ry=(Zo=class{static register(...t){ji.add(...t),VO()}static unregister(...t){ji.remove(...t),VO()}constructor(t,n){const r=this.config=new G9(n),i=dD(t),o=HO(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||b9(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=o7(),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 F9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=w7(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],zp[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}lo.listen(this,"complete",zO),lo.listen(this,"progress",J9),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 ji}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():pO(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fO(this.canvas,this.ctx),this}stop(){return lo.stop(this),this}resize(t,n){lo.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,pO(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=og(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=og(l,a),f=Ke(a.type,s.dtype);(a.position===void 0||BO(a.position,c)!==BO(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=ji.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=>{Qn.configure(this,s,s.options),Qn.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(UO("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||Y1(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=ji.getController(a),{datasetElementType:c,dataElementType:f}=tn.datasets[a];Object.assign(l,{dataElementType:ji.getElement(f),datasetElementType:c&&ji.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(UO("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=>{Qn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!nO(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;eU(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(!nO(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;Qn.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,Ns(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&&(lo.has(this)?this.attached&&!lo.running(this)&&lo.start(this):(this.draw(),zO({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=nU(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&ey(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&&ty(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Df(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=JB.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=Hs(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(),lo.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(),fO(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete zp[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}});!Jm(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=f7(t),c=tU(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=!Jm(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(Zo,"defaults",tn),xe(Zo,"instances",zp),xe(Zo,"overrides",Fa),xe(Zo,"registry",ji),xe(Zo,"version",X9),xe(Zo,"getChart",HO),Zo);function VO(){return vt(ry.instances,e=>e._plugins.invalidate())}function rU(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 iU(e){return E2(e,["outerStart","outerEnd","innerStart","innerEnd"])}function oU(e,t,n,r){const i=iU(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 Sl(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function sg(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 g=0;const v=i-l;if(r){const X=f>0?f-r:0,ie=h>0?h-r:0,le=(X+ie)/2,G=le!==0?v*le/(le+r):v;g=(v-G)/2}const y=Math.max(.001,v*h-n/It)/h,x=(v-y)/2,b=l+x+g,w=i-x-g,{outerStart:S,outerEnd:T,innerStart:P,innerEnd:k}=oU(t,p,h,w-b),N=h-S,D=h-T,V=b+S/N,A=w-T/D,W=p+P,Y=p+k,ee=b+P/W,q=w-k/Y;if(e.beginPath(),o){const X=(V+A)/2;if(e.arc(s,a,h,V,X),e.arc(s,a,h,X,A),T>0){const F=Sl(D,A,s,a);e.arc(F.x,F.y,T,A,w+Gt)}const ie=Sl(Y,w,s,a);if(e.lineTo(ie.x,ie.y),k>0){const F=Sl(Y,q,s,a);e.arc(F.x,F.y,k,w+Gt,q+Math.PI)}const le=(w-k/p+(b+P/p))/2;if(e.arc(s,a,p,w-k/p,le,!0),e.arc(s,a,p,le,b+P/p,!0),P>0){const F=Sl(W,ee,s,a);e.arc(F.x,F.y,P,ee+Math.PI,b-Gt)}const G=Sl(N,b,s,a);if(e.lineTo(G.x,G.y),S>0){const F=Sl(N,V,s,a);e.arc(F.x,F.y,S,b-Gt,V)}}else{e.moveTo(s,a);const X=Math.cos(V)*h+s,ie=Math.sin(V)*h+a;e.lineTo(X,ie);const le=Math.cos(A)*h+s,G=Math.sin(A)*h+a;e.lineTo(le,G)}e.closePath()}function sU(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){sg(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+(a%Rt||Rt))}return sg(e,t,n,r,l,i),e.fill(),l}function aU(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){sg(e,t,n,r,p,i);for(let g=0;g<o;++g)e.stroke();isNaN(a)||(p=s+(a%Rt||Rt))}h&&rU(e,t,p),o||(sg(e,t,n,r,p,i),e.stroke())}class Hp extends Lo{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}=NL(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)>=Rt||Lf(o,a,l),y=go(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>Rt?Math.floor(r/Rt):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,sU(t,this,c,o,s),aU(t,this,c,o,s),t.restore()}}xe(Hp,"id","arc"),xe(Hp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),xe(Hp,"defaultRoutes",{backgroundColor:"backgroundColor"});function hD(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 lU(e,t,n){e.lineTo(n.x,n.y)}function cU(e){return e.stepped?L7:e.tension||e.cubicInterpolationMode==="monotone"?D7:lU}function pD(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 uU(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:c}=pD(i,n,r),f=cU(o);let{move:h=!0,reverse:p}=r||{},g,v,y;for(g=0;g<=c;++g)v=i[(a+(p?c-g:g))%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 fU(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=pD(i,n,r),{move:l=!0,reverse:c}=r||{};let f=0,h=0,p,g,v,y,x,b;const w=T=>(s+(c?a-T:T))%o,S=()=>{y!==x&&(e.lineTo(f,x),e.lineTo(f,y),e.lineTo(f,b))};for(l&&(g=i[w(0)],e.moveTo(g.x,g.y)),p=0;p<=a;++p){if(g=i[w(p)],g.skip)continue;const T=g.x,P=g.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),b=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?fU:uU}function dU(e){return e.stepped?dB:e.tension||e.cubicInterpolationMode==="monotone"?hB:pa}function hU(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),hD(e,t.options),e.stroke(i)}function pU(e,t,n,r){const{segments:i,options:o}=t,s=q1(t);for(const a of i)hD(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const mU=typeof Path2D=="function";function gU(e,t,n,r){mU&&!t.options.segment?hU(e,t,n,r):pU(e,t,n,r)}class ls extends Lo{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;iB(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=_B(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=eD(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=dU(r);let c,f;for(c=0,f=s.length;c<f;++c){const{start:h,end:p}=s[c],g=o[h],v=o[p];if(g===v){a.push(g);continue}const y=Math.abs((i-g[n])/(v[n]-g[n])),x=l(g,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(),gU(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}xe(ls,"id","line"),xe(ls,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),xe(ls,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),xe(ls,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function WO(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class Vp extends Lo{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 WO(this,t,"x",n)}inYRange(t,n){return WO(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||!Df(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,V1(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}xe(Vp,"id","point"),xe(Vp,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),xe(Vp,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function mD(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 cs(e,t,n,r){return e?0:En(t,n,r)}function vU(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=zL(r);return{t:cs(i.top,o.top,0,n),r:cs(i.right,o.right,0,t),b:cs(i.bottom,o.bottom,0,n),l:cs(i.left,o.left,0,t)}}function yU(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=ka(i),s=Math.min(t,n),a=e.borderSkipped,l=r||rt(i);return{topLeft:cs(!l||a.top||a.left,o.topLeft,0,s),topRight:cs(!l||a.top||a.right,o.topRight,0,s),bottomLeft:cs(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:cs(!l||a.bottom||a.right,o.bottomRight,0,s)}}function _U(e){const t=mD(e),n=t.right-t.left,r=t.bottom-t.top,i=vU(e,n/2,r/2),o=yU(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 a0(e,t,n,r){const i=t===null,o=n===null,a=e&&!(i&&o)&&mD(e,r);return a&&(i||go(t,a.left,a.right))&&(o||go(n,a.top,a.bottom))}function bU(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function wU(e,t){e.rect(t.x,t.y,t.w,t.h)}function l0(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 Wp extends Lo{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}=_U(this),a=bU(s.radius)?Af:wU;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,l0(s,n,o)),t.clip(),a(t,l0(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,l0(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return a0(this,t,n,r)}inXRange(t,n){return a0(this,t,null,n)}inYRange(t,n){return a0(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(Wp,"id","bar"),xe(Wp,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),xe(Wp,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var xU=Object.freeze({__proto__:null,ArcElement:Hp,LineElement:ls,PointElement:Vp,BarElement:Wp});const G1=["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)"],YO=G1.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function gD(e){return G1[e%G1.length]}function vD(e){return YO[e%YO.length]}function SU(e,t){return e.borderColor=gD(t),e.backgroundColor=vD(t),++t}function CU(e,t){return e.backgroundColor=e.data.map(()=>gD(t++)),t}function EU(e,t){return e.backgroundColor=e.data.map(()=>vD(t++)),t}function TU(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof as?t=CU(n,t):i instanceof sf?t=EU(n,t):i&&(t=SU(n,t))}}function qO(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var OU={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&&(qO(i)||r&&qO(r)))return;const o=TU(e);i.forEach(o)}};function PU(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,g,v,y;for(s[l++]=e[f],h=0;h<o-2;h++){let x=0,b=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,b+=e[w].y;x/=P,b/=P;const k=Math.floor(h*a)+1+t,N=Math.min(Math.floor((h+1)*a)+1,n)+t,{x:D,y:V}=e[f];for(g=v=-1,w=k;w<N;w++)v=.5*Math.abs((D-x)*(e[w].y-V)-(D-e[w].x)*(b-V)),v>g&&(g=v,p=e[w],y=w);s[l++]=p,f=y}return s[l++]=e[c],s}function kU(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,g,v,y;const x=[],b=t+n-1,w=e[t].x,T=e[b].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!==g&&N!==k&&x.push({...e[N],x:i}),D!==g&&D!==k&&x.push({...e[D],x:i})}s>0&&k!==g&&x.push(e[k]),x.push(a),f=P,o=0,v=y=c,h=p=g=s}}return x}function yD(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function GO(e){e.data.datasets.forEach(t=>{yD(t)})}function MU(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(vo(t,o.axis,s).lo,0,n-1)),c?i=En(vo(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var RU={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){GO(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(Fu([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}=MU(l,c);const g=n.threshold||4*r;if(p<=g){yD(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=PU(c,h,p,r,n);break;case"min-max":v=kU(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(e){GO(e)}};function NU(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=R2(l,c,i);const f=Z1(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=eD(t,f);for(const p of h){const g=Z1(n,o[p.start],o[p.end],p.loop),v=JL(a,i,g);for(const y of v)s.push({source:y,target:p,start:{[n]:ZO(f,g,"start",Math.max)},end:{[n]:ZO(f,g,"end",Math.min)}})}}return s}function Z1(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 LU(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=R2(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 R2(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function ZO(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function _D(e,t){let n=[],r=!1;return Mt(e)?(r=!0,n=e):n=LU(e,t),n.length?new ls({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function KO(e){return e&&e.fill!==!1}function DU(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 AU(e,t,n){const r=$U(e);if(rt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return qt(i)&&Math.floor(i)===i?jU(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function jU(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function IU(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 FU(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 $U(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 BU(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=UU(t,n);a.push(_D({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++)zU(i,s[f],a)}return new ls({points:i,options:{}})}function UU(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 zU(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=HU(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function HU(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(go(i,h,p)){a=i===h,l=i===p;break}}return{first:a,last:l,point:r}}class bD{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:Rt},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 VU(e){const{chart:t,fill:n,line:r}=e;if(qt(n))return WU(t,n);if(n==="stack")return BU(e);if(n==="shape")return!0;const i=YU(e);return i instanceof bD?i:_D(i,r)}function WU(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function YU(e){return(e.scale||{}).getPointPositionForValue?GU(e):qU(e)}function qU(e){const{scale:t={},fill:n}=e,r=IU(n,t);if(qt(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function GU(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=FU(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new bD({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 c0(e,t,n){const r=VU(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&&(ey(e,n),ZU(e,{line:i,target:r,above:f,below:h,area:n,scale:o,axis:s}),ty(e))}function ZU(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&&(XO(e,r,s.top),QO(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),XO(e,r,s.bottom)),QO(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function XO(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[R2(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 QO(e,t){const{line:n,target:r,property:i,color:o,scale:s}=t,a=NU(n,r,i);for(const{source:l,target:c,start:f,end:h}of a){const{style:{backgroundColor:p=o}={}}=l,g=r!==!0;e.save(),e.fillStyle=p,KU(e,s,g&&Z1(i,f,h)),e.beginPath();const v=!!n.pathSegment(e,l);let y;if(g){v?e.closePath():JO(e,r,h,i);const x=!!r.pathSegment(e,c,{move:v,reverse:!0});y=v&&x,y||JO(e,r,f,i)}e.closePath(),e.fill(y?"evenodd":"nonzero"),e.restore()}}function KU(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 JO(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var XU={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 ls&&(l={visible:e.isDatasetVisible(s),index:s,fill:AU(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=DU(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&&c0(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;KO(o)&&c0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!KO(r)||n.drawTime!=="beforeDatasetDraw"||c0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const eP=(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)}},QU=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class tP extends Lo{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}=eP(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,g=-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,g+=f,p++),l[y]={left:0,top:g,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,g=0,v=0,y=0;return this.legendItems.forEach((x,b)=>{const{itemWidth:w,itemHeight:S}=JU(r,n,o,x,i);b>0&&g+S+2*a>f&&(h+=p+a,c.push({width:p,height:g}),v+=p+a,y++,p=g=0),l[b]={left:v,top:g,col:y,width:w,height:S},p=Math.max(p,w),g+=S+a}),h+=p,c.push({width:p,height:g}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=ec(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Zn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Zn(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=Zn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Zn(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;ey(t,this),this._draw(),ty(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=tn.color,l=ec(t.rtl,this.left,this.width),c=gn(s.font),{padding:f}=s,h=c.size,p=h/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=eP(s,h),b=function(k,N,D){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const V=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=V,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:V},W=l.xPlus(k,v/2),Y=N+p;UL(i,A,W,Y,s.pointStyleWidth&&v)}else{const A=N+Math.max((h-y)/2,0),W=l.leftForLtr(k,v),Y=ka(D.borderRadius);i.beginPath(),Object.values(Y).some(ee=>ee!==0)?Af(i,{x:W,y:A,w:v,h:y,radius:Y}):i.rect(W,A,v,y),i.fill(),V!==0&&i.stroke()}i.restore()},w=function(k,N,D){$a(i,D.text,k,N+x/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},S=this.isHorizontal(),T=this._computeTitleHeight();S?g={x:Zn(o,this.left+f,this.right-r[0]),y:this.top+f+T,line:0}:g={x:this.left+f,y:Zn(o,this.top+T+f,this.bottom-n[0].height),line:0},KL(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,V=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),A=v+p+D;let W=g.x,Y=g.y;l.setWidth(this.width),S?N>0&&W+A+f>this.right&&(Y=g.y+=P,g.line++,W=g.x=Zn(o,this.left+f,this.right-r[g.line])):N>0&&Y+P>this.bottom&&(W=g.x=W+n[g.line].width+f,g.line++,Y=g.y=Zn(o,this.top+T+f,this.bottom-n[g.line].height));const ee=l.x(W);if(b(ee,Y,k),W=x7(V,W+v+p,S?W+A:this.right,t.rtl),w(l.x(W),Y,k),S)g.x+=A+f;else if(typeof k.text!="string"){const q=c.lineHeight;g.y+=wD(k,q)}else g.y+=P}),XL(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=gn(n.font),i=Jn(n.padding);if(!n.display)return;const o=ec(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=Zn(t.align,h,this.right-p);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);f=c+Zn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const g=Zn(a,h,h+p);s.textAlign=o.textAlign(C2(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,$a(s,n.text,g,f,r)}_computeTitleHeight(){const t=this.options.title,n=gn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(go(t,this.left,this.right)&&go(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],go(t,i.left,i.left+i.width)&&go(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!nz(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=QU(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 JU(e,t,n,r,i){const o=ez(r,e,t,n),s=tz(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function ez(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 tz(e,t,n){let r=e;return typeof t.text!="string"&&(r=wD(t,n)),r}function wD(e,t){const n=e.text?e.text.length+.5:0;return t*n}function nz(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var rz={id:"legend",_element:tP,start(e,t,n){const r=e.legend=new tP({ctx:e.ctx,options:n,chart:e});Qn.configure(e,r,n),Qn.addBox(e,r)},stop(e){Qn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Qn.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=Jn(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 N2 extends Lo{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=Mt(r.text)?r.text.length:1;this._padding=Jn(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=Zn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Zn(a,i,n),l=It*-.5):(f=o-t,h=Zn(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);$a(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:C2(n.align),textBaseline:"middle",translation:[s,a]})}}function iz(e,t){const n=new N2({ctx:e.ctx,options:t,chart:e});Qn.configure(e,n,t),Qn.addBox(e,n),e.titleBlock=n}var oz={id:"title",_element:N2,start(e,t,n){iz(e,n)},stop(e){const t=e.titleBlock;Qn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Qn.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 Hh=new WeakMap;var sz={id:"subtitle",start(e,t,n){const r=new N2({ctx:e.ctx,options:n,chart:e});Qn.configure(e,r,n),Qn.addBox(e,r),Hh.set(e,r)},stop(e){Qn.removeBox(e,Hh.get(e)),Hh.delete(e)},beforeUpdate(e,t,n){const r=Hh.get(e);Qn.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 Bu={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=z1(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 Ai(e,t){return t&&(Mt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function co(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
||
`)>-1?e.split(`
|
||
`):e}function az(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 nP(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,g=r.length,v=Jn(t.padding);let y=v.height,x=0,b=r.reduce((T,P)=>T+P.before.length+P.lines.length+P.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,h&&(y+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),b){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=g*T+(b-g)*l.lineHeight+(b-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 lz(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function cz(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 uz(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"),cz(c,e,t,n)&&(c="center"),c}function rP(e,t,n){const r=n.yAlign||t.yAlign||lz(e,n);return{xAlign:n.xAlign||t.xAlign||uz(e,t,n,r),yAlign:r}}function fz(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function dz(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function iP(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:g}=ka(s);let v=fz(t,a);const y=dz(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,g)+i),{x:En(v,0,r.width-t.width),y:En(y,0,r.height-t.height)}}function Vh(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function oP(e){return Ai([],co(e))}function hz(e,t,n){return Hs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function sP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const xD={beforeTitle:ao,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:ao,beforeBody:ao,beforeLabel:ao,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:ao,afterBody:ao,beforeFooter:ao,footer:ao,afterFooter:ao};function fr(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?xD[t].call(n,r):i}var $1;let aP=($1=class extends Lo{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 tD(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=hz(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=fr(r,"beforeTitle",this,t),o=fr(r,"title",this,t),s=fr(r,"afterTitle",this,t);let a=[];return a=Ai(a,co(i)),a=Ai(a,co(o)),a=Ai(a,co(s)),a}getBeforeBody(t,n){return oP(fr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return vt(t,o=>{const s={before:[],lines:[],after:[]},a=sP(r,o);Ai(s.before,co(fr(a,"beforeLabel",this,o))),Ai(s.lines,fr(a,"label",this,o)),Ai(s.after,co(fr(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return oP(fr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=fr(r,"beforeFooter",this,t),o=fr(r,"footer",this,t),s=fr(r,"afterFooter",this,t);let a=[];return a=Ai(a,co(i)),a=Ai(a,co(o)),a=Ai(a,co(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(az(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=sP(t.callbacks,f);i.push(fr(h,"labelColor",this,f)),o.push(fr(h,"labelPointStyle",this,f)),s.push(fr(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=Bu[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=nP(this,r),c=Object.assign({},a,l),f=rP(this.chart,r,c),h=iP(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}=ka(a),{x:p,y:g}=t,{width:v,height:y}=n;let x,b,w,S,T,P;return o==="center"?(T=g+y/2,i==="left"?(x=p,b=x-s,S=T+s,P=T-s):(x=p+v,b=x+s,S=T-s,P=T+s),w=x):(i==="left"?b=p+Math.max(l,f)+s:i==="right"?b=p+v-Math.max(c,h)-s:b=this.caretX,o==="top"?(S=g,T=S-s,x=b-s,w=b+s):(S=g+y,T=S+s,x=b+s,w=b-s),P=S),{x1:x,x2:b,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=ec(r.rtl,this.x,this.width);for(t.x=Vh(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=Vh(this,"left",o),g=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},b=i.leftForLtr(g,c)+c/2,w=y+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,V1(t,x,b,w),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,V1(t,x,b,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(g,c-f),b=i.leftForLtr(i.xPlus(g,1),c-f-2),w=ka(s.borderRadius);Object.values(w).some(S=>S!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Af(t,{x,y,w:c,h:l,radius:w}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Af(t,{x:b,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(b,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,g=0;const v=ec(r.rtl,this.x,this.width),y=function(D){n.fillText(D,v.x(t.x+g),t.y+p/2),t.y+=p+o},x=v.textAlign(s);let b,w,S,T,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Vh(this,x,r),n.fillStyle=r.bodyColor,vt(this.beforeBody,y),g=a&&x!=="right"?s==="center"?c/2+f:c+2+f:0,T=0,k=i.length;T<k;++T){for(b=i[T],w=this.labelTextColors[T],n.fillStyle=w,vt(b.before,y),S=b.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(b.after,y)}g=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=ec(r.rtl,this.x,this.width);for(t.x=Vh(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:g,bottomRight:v}=ka(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+g,l+f),n.quadraticCurveTo(a,l+f,a,l+f-g),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=Bu[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=nP(this,t),l=Object.assign({},s,this._size),c=rP(n,t,l),f=iP(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=Jn(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),KL(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),XL(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=!Jm(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||!Jm(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=Bu[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}},xe($1,"positioners",Bu),$1);var pz={id:"tooltip",_element:aP,positioners:Bu,afterInit(e,t,n){n&&(e.tooltip=new aP({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:xD},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"]},mz=Object.freeze({__proto__:null,Colors:OU,Decimation:RU,Filler:XU,Legend:rz,SubTitle:sz,Title:oz,Tooltip:pz});const gz=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function vz(e,t,n,r){const i=e.indexOf(t);if(i===-1)return gz(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const yz=(e,t)=>e===null?null:En(Math.round(e),0,t);function lP(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class K1 extends tl{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:vz(r,t,Ke(n,t),this._addedLabels),yz(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 lP.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(K1,"id","category"),xe(K1,"defaults",{ticks:{callback:lP}});function _z(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,g=o||1,v=f-1,{min:y,max:x}=t,b=!ct(s),w=!ct(a),S=!ct(c),T=(x-y)/(h+1);let P=iO((x-y)/v/g)*g,k,N,D,V;if(P<1e-14&&!b&&!w)return[{value:y},{value:x}];V=Math.ceil(x/P)-Math.floor(y/P),V>v&&(P=iO(V*P/v/g)*g),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),b&&w&&o&&m7((a-s)/o,P/1e3)?(V=Math.round(Math.min((a-s)/P,f)),P=(a-s)/V,N=s,D=a):S?(N=b?s:N,D=w?a:D,V=c-1,P=(D-N)/V):(V=(D-N)/P,ef(V,Math.round(V),P/1e3)?V=Math.round(V):V=Math.ceil(V));const A=Math.max(oO(P),oO(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(b&&(p&&N!==s?(n.push({value:s}),N<s&&W++,ef(Math.round((N+W*P)*k)/k,s,cP(s,T,e))&&W++):N<s&&W++);W<V;++W)n.push({value:Math.round((N+W*P)*k)/k});return w&&p&&D!==a?n.length&&ef(n[n.length-1].value,a,cP(a,T,e))?n[n.length-1].value=a:n.push({value:a}):(!w||D===a)&&n.push({value:D}),n}function cP(e,t,{horizontal:n,minRotation:r}){const i=gi(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class ag extends tl{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=Wi(i),c=Wi(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=_z(i,o);return t.bounds==="ticks"&&RL(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 Pd(t,this.chart.options.locale,this.options.ticks.format)}}class X1 extends ag{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=gi(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(X1,"id","linear"),xe(X1,"defaults",{ticks:{callback:Jv.formatters.numeric}});const If=e=>Math.floor(ss(e)),la=(e,t)=>Math.pow(10,If(e)+t);function uP(e){return e/Math.pow(10,If(e))===1}function fP(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function bz(e,t){const n=t-e;let r=If(n);for(;fP(e,t,r)>10;)r++;for(;fP(e,t,r)<10;)r--;return Math.min(r,If(e))}function wz(e,{min:t,max:n}){t=Tr(e.min,t);const r=[],i=If(t);let o=bz(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:uP(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 g=Tr(e.max,p);return r.push({value:g,major:uP(g),significand:h}),r}class Q1 extends tl{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=ag.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===la(this.min,0)?la(this.min,-1):la(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(la(r,-1)),s(la(i,1)))),r<=0&&o(la(i,-1)),i<=0&&s(la(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=wz(n,this);return t.bounds==="ticks"&&RL(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":Pd(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ss(t),this._valueRange=ss(this.max)-ss(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ss(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}xe(Q1,"id","logarithmic"),xe(Q1,"defaults",{ticks:{callback:Jv.formatters.logarithmic,major:{enabled:!0}}});function J1(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Ke(t.font&&t.font.size,tn.font.size)+n.height}return 0}function xz(e,t,n){return n=Mt(n)?n:[n],{w:N7(e,t.string,n),h:n.length*t.lineHeight}}function dP(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 Sz(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=xz(e.ctx,h,e._pointLabels[l]);r[l]=p;const g=Pr(e.getIndexAngle(l)+a),v=Math.round(x2(g)),y=dP(v,f.x,p.w,0,180),x=dP(v,f.y,p.h,90,270);Cz(n,t,g,y,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Ez(e,r,i)}function Cz(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 Ez(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=J1(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(x2(Pr(f.angle+Gt))),p=t[c],g=Pz(f.y,p.h,h),v=Tz(h),y=Oz(f.x,p.w,v);r.push({x:f.x,y:g,textAlign:v,left:y,top:g,right:y+p.w,bottom:g+p.h})}return r}function Tz(e){return e===0||e===180?"center":e<180?"left":"right"}function Oz(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Pz(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function kz(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:g}=e._pointLabelItems[i],{backdropColor:v}=o;if(!ct(v)){const y=ka(o.borderRadius),x=Jn(o.backdropPadding);n.fillStyle=v;const b=f-x.left,w=h-x.top,S=p-f+x.width,T=g-h+x.height;Object.values(y).some(P=>P!==0)?(n.beginPath(),Af(n,{x:b,y:w,w:S,h:T,radius:y}),n.fill()):n.fillRect(b,w,S,T)}$a(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function SD(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Rt);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 Mz(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(),SD(e,n,s,r),o.closePath(),o.stroke(),o.restore())}function Rz(e,t,n){return Hs(e,{label:n,index:t,type:"pointLabel"})}class Uu extends ag{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=Jn(J1(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/J1(this.options))}generateTickLabels(t){ag.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?Sz(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=Rt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Pr(t*n+gi(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 Rz(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(),SD(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&&kz(this,s),i.display&&this.ticks.forEach((f,h)=>{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),g=i.setContext(p),v=o.setContext(p);Mz(this,g,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=Jn(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}$a(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}xe(Uu,"id","radialLinear"),xe(Uu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Jv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),xe(Uu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),xe(Uu,"descriptors",{angleLines:{_fallback:"grid"}});const iy={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}},pr=Object.keys(iy);function Nz(e,t){return e-t}function hP(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"&&(pc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function pP(e,t,n,r){const i=pr.length;for(let o=pr.indexOf(e);o<i-1;++o){const s=iy[pr[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return pr[o]}return pr[i-1]}function Lz(e,t,n,r,i){for(let o=pr.length-1;o>=pr.indexOf(n);o--){const s=pr[o];if(iy[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return pr[n?pr.indexOf(n):0]}function Dz(e){for(let t=pr.indexOf(e)+1,n=pr.length;t<n;++t)if(iy[pr[t]].common)return pr[t]}function mP(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=S2(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Az(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 gP(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:Az(e,r,i,n)}class Ff extends tl{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 GB._date(t.adapters.date);i.init(n),Ju(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:hP(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=_7(i,o,s);return this._unit=n.unit||(r.autoSkip?pP(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Lz(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Dz(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),gP(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||pP(o.minUnit,n,r,this._getLabelCapacity(n)),a=Ke(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=pc(l)||l===!0,f={};let h=n,p,g;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,g=0;p<r;p=+t.add(p,a,s),g++)mP(f,p,v);return(p===r||i.bounds==="ticks"||g===1)&&mP(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],g=c&&h&&p&&p.major;return this._adapter.format(t,i||(g?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=gi(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,gP(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(hP(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return DL(t.sort(Nz))}}xe(Ff,"id","time"),xe(Ff,"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 Wh(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}=vo(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}=vo(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 eb extends Ff{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=Wh(n,this.min),this._tableRange=Wh(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(Wh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Wh(this._table,r*this._tableRange+this._minPos,!0)}}xe(eb,"id","timeseries"),xe(eb,"defaults",Ff.defaults);var jz=Object.freeze({__proto__:null,CategoryScale:K1,LinearScale:X1,LogarithmicScale:Q1,RadialLinearScale:Uu,TimeScale:Ff,TimeSeriesScale:eb});const Iz=[qB,xU,mz,jz];ry.register(...Iz);var CD={exports:{}},jr={},ED={exports:{}},TD={};/**
|
||
* @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 U=j-1>>>1,te=G[U];if(0<i(te,F))G[U]=F,G[j]=te,j=U;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 U=0,te=G.length,z=te>>>1;U<z;){var Z=2*(U+1)-1,ne=G[Z],ae=Z+1,pe=G[ae];if(0>i(ne,j))ae<te&&0>i(pe,ne)?(G[U]=pe,G[ae]=j,U=ae):(G[U]=ne,G[Z]=j,U=Z);else if(ae<te&&0>i(pe,j))G[U]=pe,G[ae]=j,U=ae;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,g=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,b=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&&le(T,F.startTime-G)}}function P(G,F){v=!1,y&&(y=!1,b(D),D=-1),g=!0;var j=p;try{for(S(F),h=n(l);h!==null&&(!(h.expirationTime>F)||G&&!W());){var U=h.callback;if(typeof U=="function"){h.callback=null,p=h.priorityLevel;var te=U(h.expirationTime<=F);F=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(l)&&r(l),S(F)}else r(l);h=n(l)}if(h!==null)var z=!0;else{var Z=n(c);Z!==null&&le(T,Z.startTime-F),z=!1}return z}finally{h=null,p=j,g=!1}}var k=!1,N=null,D=-1,V=5,A=-1;function W(){return!(e.unstable_now()-A<V)}function Y(){if(N!==null){var G=e.unstable_now();A=G;var F=!0;try{F=N(!0,G)}finally{F?ee():(k=!1,N=null)}}else k=!1}var ee;if(typeof w=="function")ee=function(){w(Y)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,X=q.port2;q.port1.onmessage=Y,ee=function(){X.postMessage(null)}}else ee=function(){x(Y,0)};function ie(G){N=G,k||(k=!0,ee())}function le(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||g||(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"):V=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 U=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?U+j:U):j=U,G){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=j+te,G={id:f++,callback:F,priorityLevel:G,startTime:j,expirationTime:te,sortIndex:-1},j>U?(G.sortIndex=j,t(c,G),n(l)===null&&G===n(c)&&(y?(b(D),D=-1):y=!0,le(T,j-U))):(G.sortIndex=te,t(l,G),v||g||(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}}}})(TD);ED.exports=TD;var Fz=ED.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 OD=B,Dr=Fz;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 PD=new Set,$f={};function nl(e,t){vc(e,t),vc(e+"Capture",t)}function vc(e,t){for($f[e]=t,e=0;e<t.length;e++)PD.add(t[e])}var xo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tb=Object.prototype.hasOwnProperty,$z=/^[: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]*$/,vP={},yP={};function Bz(e){return tb.call(yP,e)?!0:tb.call(vP,e)?!1:$z.test(e)?yP[e]=!0:(vP[e]=!0,!1)}function Uz(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 zz(e,t,n,r){if(t===null||typeof t>"u"||Uz(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 ur(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 Vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vn[e]=new ur(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vn[t]=new ur(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vn[e]=new ur(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vn[e]=new ur(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){Vn[e]=new ur(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vn[e]=new ur(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vn[e]=new ur(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vn[e]=new ur(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vn[e]=new ur(e,5,!1,e.toLowerCase(),null,!1,!1)});var L2=/[\-:]([a-z])/g;function D2(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(L2,D2);Vn[t]=new ur(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(L2,D2);Vn[t]=new ur(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(L2,D2);Vn[t]=new ur(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vn[e]=new ur(e,1,!1,e.toLowerCase(),null,!1,!1)});Vn.xlinkHref=new ur("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vn[e]=new ur(e,1,!1,e.toLowerCase(),null,!0,!0)});function A2(e,t,n,r){var i=Vn.hasOwnProperty(t)?Vn[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zz(t,n,i,r)&&(n=null),r||i===null?Bz(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 Do=OD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yh=Symbol.for("react.element"),Fl=Symbol.for("react.portal"),$l=Symbol.for("react.fragment"),j2=Symbol.for("react.strict_mode"),nb=Symbol.for("react.profiler"),kD=Symbol.for("react.provider"),MD=Symbol.for("react.context"),I2=Symbol.for("react.forward_ref"),rb=Symbol.for("react.suspense"),ib=Symbol.for("react.suspense_list"),F2=Symbol.for("react.memo"),Xo=Symbol.for("react.lazy"),RD=Symbol.for("react.offscreen"),_P=Symbol.iterator;function wu(e){return e===null||typeof e!="object"?null:(e=_P&&e[_P]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Object.assign,u0;function zu(e){if(u0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);u0=t&&t[1]||""}return`
|
||
`+u0+e}var f0=!1;function d0(e,t){if(!e||f0)return"";f0=!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{f0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zu(e):""}function Hz(e){switch(e.tag){case 5:return zu(e.type);case 16:return zu("Lazy");case 13:return zu("Suspense");case 19:return zu("SuspenseList");case 0:case 2:case 15:return e=d0(e.type,!1),e;case 11:return e=d0(e.type.render,!1),e;case 1:return e=d0(e.type,!0),e;default:return""}}function ob(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 $l:return"Fragment";case Fl:return"Portal";case nb:return"Profiler";case j2:return"StrictMode";case rb:return"Suspense";case ib:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case MD:return(e.displayName||"Context")+".Consumer";case kD:return(e._context.displayName||"Context")+".Provider";case I2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F2:return t=e.displayName||null,t!==null?t:ob(e.type)||"Memo";case Xo:t=e._payload,e=e._init;try{return ob(e(t))}catch{}}return null}function Vz(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 ob(t);case 8:return t===j2?"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 Ls(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ND(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wz(e){var t=ND(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 qh(e){e._valueTracker||(e._valueTracker=Wz(e))}function LD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ND(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function lg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function sb(e,t){var n=t.checked;return Ht({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ls(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 DD(e,t){t=t.checked,t!=null&&A2(e,"checked",t,!1)}function ab(e,t){DD(e,t);var n=Ls(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")?lb(e,t.type,n):t.hasOwnProperty("defaultValue")&&lb(e,t.type,Ls(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wP(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 lb(e,t,n){(t!=="number"||lg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hu=Array.isArray;function tc(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=""+Ls(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 cb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return Ht({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xP(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(Hu(n)){if(1<n.length)throw Error(Ee(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ls(n)}}function AD(e,t){var n=Ls(t.value),r=Ls(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 SP(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function jD(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 ub(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?jD(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gh,ID=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(Gh=Gh||document.createElement("div"),Gh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var af={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},Yz=["Webkit","ms","Moz","O"];Object.keys(af).forEach(function(e){Yz.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),af[t]=af[e]})});function FD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||af.hasOwnProperty(e)&&af[e]?(""+t).trim():t+"px"}function $D(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=FD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var qz=Ht({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 fb(e,t){if(t){if(qz[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 db(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 hb=null;function $2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pb=null,nc=null,rc=null;function CP(e){if(e=Nd(e)){if(typeof pb!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=cy(t),pb(e.stateNode,e.type,t))}}function BD(e){nc?rc?rc.push(e):rc=[e]:nc=e}function UD(){if(nc){var e=nc,t=rc;if(rc=nc=null,CP(e),t)for(e=0;e<t.length;e++)CP(t[e])}}function zD(e,t){return e(t)}function HD(){}var h0=!1;function VD(e,t,n){if(h0)return e(t,n);h0=!0;try{return zD(e,t,n)}finally{h0=!1,(nc!==null||rc!==null)&&(HD(),UD())}}function Uf(e,t){var n=e.stateNode;if(n===null)return null;var r=cy(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 mb=!1;if(xo)try{var xu={};Object.defineProperty(xu,"passive",{get:function(){mb=!0}}),window.addEventListener("test",xu,xu),window.removeEventListener("test",xu,xu)}catch{mb=!1}function Gz(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 lf=!1,cg=null,ug=!1,gb=null,Zz={onError:function(e){lf=!0,cg=e}};function Kz(e,t,n,r,i,o,s,a,l){lf=!1,cg=null,Gz.apply(Zz,arguments)}function Xz(e,t,n,r,i,o,s,a,l){if(Kz.apply(this,arguments),lf){if(lf){var c=cg;lf=!1,cg=null}else throw Error(Ee(198));ug||(ug=!0,gb=c)}}function rl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function WD(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 EP(e){if(rl(e)!==e)throw Error(Ee(188))}function Qz(e){var t=e.alternate;if(!t){if(t=rl(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 EP(i),e;if(o===r)return EP(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 YD(e){return e=Qz(e),e!==null?qD(e):null}function qD(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qD(e);if(t!==null)return t;e=e.sibling}return null}var GD=Dr.unstable_scheduleCallback,TP=Dr.unstable_cancelCallback,Jz=Dr.unstable_shouldYield,eH=Dr.unstable_requestPaint,en=Dr.unstable_now,tH=Dr.unstable_getCurrentPriorityLevel,B2=Dr.unstable_ImmediatePriority,ZD=Dr.unstable_UserBlockingPriority,fg=Dr.unstable_NormalPriority,nH=Dr.unstable_LowPriority,KD=Dr.unstable_IdlePriority,oy=null,Yi=null;function rH(e){if(Yi&&typeof Yi.onCommitFiberRoot=="function")try{Yi.onCommitFiberRoot(oy,e,void 0,(e.current.flags&128)===128)}catch{}}var bi=Math.clz32?Math.clz32:sH,iH=Math.log,oH=Math.LN2;function sH(e){return e>>>=0,e===0?32:31-(iH(e)/oH|0)|0}var Zh=64,Kh=4194304;function Vu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Vu(a):(o&=s,o!==0&&(r=Vu(o)))}else s=n&~i,s!==0?r=Vu(s):o!==0&&(r=Vu(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-bi(t),i=1<<n,r|=e[n],t&=~i;return r}function aH(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 lH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-bi(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=aH(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function vb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function XD(){var e=Zh;return Zh<<=1,!(Zh&4194240)&&(Zh=64),e}function p0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Md(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bi(t),e[t]=n}function cH(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-bi(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function U2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bi(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _t=0;function QD(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var JD,z2,eA,tA,nA,yb=!1,Xh=[],ys=null,_s=null,bs=null,zf=new Map,Hf=new Map,ns=[],uH="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 OP(e,t){switch(e){case"focusin":case"focusout":ys=null;break;case"dragenter":case"dragleave":_s=null;break;case"mouseover":case"mouseout":bs=null;break;case"pointerover":case"pointerout":zf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hf.delete(t.pointerId)}}function Su(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=Nd(t),t!==null&&z2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fH(e,t,n,r,i){switch(t){case"focusin":return ys=Su(ys,e,t,n,r,i),!0;case"dragenter":return _s=Su(_s,e,t,n,r,i),!0;case"mouseover":return bs=Su(bs,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return zf.set(o,Su(zf.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Hf.set(o,Su(Hf.get(o)||null,e,t,n,r,i)),!0}return!1}function rA(e){var t=Sa(e.target);if(t!==null){var n=rl(t);if(n!==null){if(t=n.tag,t===13){if(t=WD(n),t!==null){e.blockedOn=t,nA(e.priority,function(){eA(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 Yp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_b(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);hb=r,n.target.dispatchEvent(r),hb=null}else return t=Nd(n),t!==null&&z2(t),e.blockedOn=n,!1;t.shift()}return!0}function PP(e,t,n){Yp(e)&&n.delete(t)}function dH(){yb=!1,ys!==null&&Yp(ys)&&(ys=null),_s!==null&&Yp(_s)&&(_s=null),bs!==null&&Yp(bs)&&(bs=null),zf.forEach(PP),Hf.forEach(PP)}function Cu(e,t){e.blockedOn===t&&(e.blockedOn=null,yb||(yb=!0,Dr.unstable_scheduleCallback(Dr.unstable_NormalPriority,dH)))}function Vf(e){function t(i){return Cu(i,e)}if(0<Xh.length){Cu(Xh[0],e);for(var n=1;n<Xh.length;n++){var r=Xh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ys!==null&&Cu(ys,e),_s!==null&&Cu(_s,e),bs!==null&&Cu(bs,e),zf.forEach(t),Hf.forEach(t),n=0;n<ns.length;n++)r=ns[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ns.length&&(n=ns[0],n.blockedOn===null);)rA(n),n.blockedOn===null&&ns.shift()}var ic=Do.ReactCurrentBatchConfig,hg=!0;function hH(e,t,n,r){var i=_t,o=ic.transition;ic.transition=null;try{_t=1,H2(e,t,n,r)}finally{_t=i,ic.transition=o}}function pH(e,t,n,r){var i=_t,o=ic.transition;ic.transition=null;try{_t=4,H2(e,t,n,r)}finally{_t=i,ic.transition=o}}function H2(e,t,n,r){if(hg){var i=_b(e,t,n,r);if(i===null)C0(e,t,r,pg,n),OP(e,r);else if(fH(i,e,t,n,r))r.stopPropagation();else if(OP(e,r),t&4&&-1<uH.indexOf(e)){for(;i!==null;){var o=Nd(i);if(o!==null&&JD(o),o=_b(e,t,n,r),o===null&&C0(e,t,r,pg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else C0(e,t,r,null,n)}}var pg=null;function _b(e,t,n,r){if(pg=null,e=$2(r),e=Sa(e),e!==null)if(t=rl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=WD(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return pg=e,null}function iA(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(tH()){case B2:return 1;case ZD:return 4;case fg:case nH:return 16;case KD:return 536870912;default:return 16}default:return 16}}var us=null,V2=null,qp=null;function oA(){if(qp)return qp;var e,t=V2,n=t.length,r,i="value"in us?us.value:us.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 qp=i.slice(e,1<r?1-r:void 0)}function Gp(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 Qh(){return!0}function kP(){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)?Qh:kP,this.isPropagationStopped=kP,this}return Ht(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=Qh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qh)},persist:function(){},isPersistent:Qh}),t}var Uc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},W2=Ir(Uc),Rd=Ht({},Uc,{view:0,detail:0}),mH=Ir(Rd),m0,g0,Eu,sy=Ht({},Rd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Y2,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!==Eu&&(Eu&&e.type==="mousemove"?(m0=e.screenX-Eu.screenX,g0=e.screenY-Eu.screenY):g0=m0=0,Eu=e),m0)},movementY:function(e){return"movementY"in e?e.movementY:g0}}),MP=Ir(sy),gH=Ht({},sy,{dataTransfer:0}),vH=Ir(gH),yH=Ht({},Rd,{relatedTarget:0}),v0=Ir(yH),_H=Ht({},Uc,{animationName:0,elapsedTime:0,pseudoElement:0}),bH=Ir(_H),wH=Ht({},Uc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xH=Ir(wH),SH=Ht({},Uc,{data:0}),RP=Ir(SH),CH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EH={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"},TH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TH[e])?!!t[e]:!1}function Y2(){return OH}var PH=Ht({},Rd,{key:function(e){if(e.key){var t=CH[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Y2,charCode:function(e){return e.type==="keypress"?Gp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kH=Ir(PH),MH=Ht({},sy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NP=Ir(MH),RH=Ht({},Rd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Y2}),NH=Ir(RH),LH=Ht({},Uc,{propertyName:0,elapsedTime:0,pseudoElement:0}),DH=Ir(LH),AH=Ht({},sy,{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}),jH=Ir(AH),IH=[9,13,27,32],q2=xo&&"CompositionEvent"in window,cf=null;xo&&"documentMode"in document&&(cf=document.documentMode);var FH=xo&&"TextEvent"in window&&!cf,sA=xo&&(!q2||cf&&8<cf&&11>=cf),LP=String.fromCharCode(32),DP=!1;function aA(e,t){switch(e){case"keyup":return IH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bl=!1;function $H(e,t){switch(e){case"compositionend":return lA(t);case"keypress":return t.which!==32?null:(DP=!0,LP);case"textInput":return e=t.data,e===LP&&DP?null:e;default:return null}}function BH(e,t){if(Bl)return e==="compositionend"||!q2&&aA(e,t)?(e=oA(),qp=V2=us=null,Bl=!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 sA&&t.locale!=="ko"?null:t.data;default:return null}}var UH={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 AP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!UH[e.type]:t==="textarea"}function cA(e,t,n,r){BD(r),t=mg(t,"onChange"),0<t.length&&(n=new W2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uf=null,Wf=null;function zH(e){bA(e,0)}function ay(e){var t=Hl(e);if(LD(t))return e}function HH(e,t){if(e==="change")return t}var uA=!1;if(xo){var y0;if(xo){var _0="oninput"in document;if(!_0){var jP=document.createElement("div");jP.setAttribute("oninput","return;"),_0=typeof jP.oninput=="function"}y0=_0}else y0=!1;uA=y0&&(!document.documentMode||9<document.documentMode)}function IP(){uf&&(uf.detachEvent("onpropertychange",fA),Wf=uf=null)}function fA(e){if(e.propertyName==="value"&&ay(Wf)){var t=[];cA(t,Wf,e,$2(e)),VD(zH,t)}}function VH(e,t,n){e==="focusin"?(IP(),uf=t,Wf=n,uf.attachEvent("onpropertychange",fA)):e==="focusout"&&IP()}function WH(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ay(Wf)}function YH(e,t){if(e==="click")return ay(t)}function qH(e,t){if(e==="input"||e==="change")return ay(t)}function GH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ei=typeof Object.is=="function"?Object.is:GH;function Yf(e,t){if(Ei(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(!tb.call(t,i)||!Ei(e[i],t[i]))return!1}return!0}function FP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $P(e,t){var n=FP(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=FP(n)}}function dA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hA(){for(var e=window,t=lg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lg(e.document)}return t}function G2(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 ZH(e){var t=hA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dA(n.ownerDocument.documentElement,n)){if(r!==null&&G2(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=$P(n,o);var s=$P(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 KH=xo&&"documentMode"in document&&11>=document.documentMode,Ul=null,bb=null,ff=null,wb=!1;function BP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wb||Ul==null||Ul!==lg(r)||(r=Ul,"selectionStart"in r&&G2(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}),ff&&Yf(ff,r)||(ff=r,r=mg(bb,"onSelect"),0<r.length&&(t=new W2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ul)))}function Jh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zl={animationend:Jh("Animation","AnimationEnd"),animationiteration:Jh("Animation","AnimationIteration"),animationstart:Jh("Animation","AnimationStart"),transitionend:Jh("Transition","TransitionEnd")},b0={},pA={};xo&&(pA=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function ly(e){if(b0[e])return b0[e];if(!zl[e])return e;var t=zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pA)return b0[e]=t[n];return e}var mA=ly("animationend"),gA=ly("animationiteration"),vA=ly("animationstart"),yA=ly("transitionend"),_A=new Map,UP="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 Vs(e,t){_A.set(e,t),nl(t,[e])}for(var w0=0;w0<UP.length;w0++){var x0=UP[w0],XH=x0.toLowerCase(),QH=x0[0].toUpperCase()+x0.slice(1);Vs(XH,"on"+QH)}Vs(mA,"onAnimationEnd");Vs(gA,"onAnimationIteration");Vs(vA,"onAnimationStart");Vs("dblclick","onDoubleClick");Vs("focusin","onFocus");Vs("focusout","onBlur");Vs(yA,"onTransitionEnd");vc("onMouseEnter",["mouseout","mouseover"]);vc("onMouseLeave",["mouseout","mouseover"]);vc("onPointerEnter",["pointerout","pointerover"]);vc("onPointerLeave",["pointerout","pointerover"]);nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));nl("onBeforeInput",["compositionend","keypress","textInput","paste"]);nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wu="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(" "),JH=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wu));function zP(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Xz(r,t,void 0,e),e.currentTarget=null}function bA(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;zP(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;zP(i,a,c),o=l}}}if(ug)throw e=gb,ug=!1,gb=null,e}function Ot(e,t){var n=t[Tb];n===void 0&&(n=t[Tb]=new Set);var r=e+"__bubble";n.has(r)||(wA(t,e,2,!1),n.add(r))}function S0(e,t,n){var r=0;t&&(r|=4),wA(n,e,r,t)}var ep="_reactListening"+Math.random().toString(36).slice(2);function qf(e){if(!e[ep]){e[ep]=!0,PD.forEach(function(n){n!=="selectionchange"&&(JH.has(n)||S0(n,!1,e),S0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ep]||(t[ep]=!0,S0("selectionchange",!1,t))}}function wA(e,t,n,r){switch(iA(t)){case 1:var i=hH;break;case 4:i=pH;break;default:i=H2}n=i.bind(null,t,n,e),i=void 0,!mb||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 C0(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=Sa(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}VD(function(){var c=o,f=$2(n),h=[];e:{var p=_A.get(e);if(p!==void 0){var g=W2,v=e;switch(e){case"keypress":if(Gp(n)===0)break e;case"keydown":case"keyup":g=kH;break;case"focusin":v="focus",g=v0;break;case"focusout":v="blur",g=v0;break;case"beforeblur":case"afterblur":g=v0;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":g=MP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=vH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=NH;break;case mA:case gA:case vA:g=bH;break;case yA:g=DH;break;case"scroll":g=mH;break;case"wheel":g=jH;break;case"copy":case"cut":case"paste":g=xH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=NP}var y=(t&4)!==0,x=!y&&e==="scroll",b=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,b!==null&&(T=Uf(w,b),T!=null&&y.push(Gf(w,T,S)))),x)break;w=w.return}0<y.length&&(p=new g(p,v,null,n,f),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==hb&&(v=n.relatedTarget||n.fromElement)&&(Sa(v)||v[So]))break e;if((g||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=c,v=v?Sa(v):null,v!==null&&(x=rl(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=c),g!==v)){if(y=MP,T="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(y=NP,T="onPointerLeave",b="onPointerEnter",w="pointer"),x=g==null?p:Hl(g),S=v==null?p:Hl(v),p=new y(T,w+"leave",g,n,f),p.target=x,p.relatedTarget=S,T=null,Sa(f)===c&&(y=new y(b,w+"enter",v,n,f),y.target=S,y.relatedTarget=x,T=y),x=T,g&&v)t:{for(y=g,b=v,w=0,S=y;S;S=Cl(S))w++;for(S=0,T=b;T;T=Cl(T))S++;for(;0<w-S;)y=Cl(y),w--;for(;0<S-w;)b=Cl(b),S--;for(;w--;){if(y===b||b!==null&&y===b.alternate)break t;y=Cl(y),b=Cl(b)}y=null}else y=null;g!==null&&HP(h,p,g,y,!1),v!==null&&x!==null&&HP(h,x,v,y,!0)}}e:{if(p=c?Hl(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var P=HH;else if(AP(p))if(uA)P=qH;else{P=WH;var k=VH}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=YH);if(P&&(P=P(e,c))){cA(h,P,n,f);break e}k&&k(e,p,c),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&lb(p,"number",p.value)}switch(k=c?Hl(c):window,e){case"focusin":(AP(k)||k.contentEditable==="true")&&(Ul=k,bb=c,ff=null);break;case"focusout":ff=bb=Ul=null;break;case"mousedown":wb=!0;break;case"contextmenu":case"mouseup":case"dragend":wb=!1,BP(h,n,f);break;case"selectionchange":if(KH)break;case"keydown":case"keyup":BP(h,n,f)}var N;if(q2)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 Bl?aA(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(sA&&n.locale!=="ko"&&(Bl||D!=="onCompositionStart"?D==="onCompositionEnd"&&Bl&&(N=oA()):(us=f,V2="value"in us?us.value:us.textContent,Bl=!0)),k=mg(c,D),0<k.length&&(D=new RP(D,e,null,n,f),h.push({event:D,listeners:k}),N?D.data=N:(N=lA(n),N!==null&&(D.data=N)))),(N=FH?$H(e,n):BH(e,n))&&(c=mg(c,"onBeforeInput"),0<c.length&&(f=new RP("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=N))}bA(h,t)})}function Gf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Uf(e,n),o!=null&&r.unshift(Gf(e,o,i)),o=Uf(e,t),o!=null&&r.push(Gf(e,o,i))),e=e.return}return r}function Cl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function HP(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=Uf(n,o),l!=null&&s.unshift(Gf(n,l,a))):i||(l=Uf(n,o),l!=null&&s.push(Gf(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var eV=/\r\n?/g,tV=/\u0000|\uFFFD/g;function VP(e){return(typeof e=="string"?e:""+e).replace(eV,`
|
||
`).replace(tV,"")}function tp(e,t,n){if(t=VP(t),VP(e)!==t&&n)throw Error(Ee(425))}function gg(){}var xb=null,Sb=null;function Cb(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 Eb=typeof setTimeout=="function"?setTimeout:void 0,nV=typeof clearTimeout=="function"?clearTimeout:void 0,WP=typeof Promise=="function"?Promise:void 0,rV=typeof queueMicrotask=="function"?queueMicrotask:typeof WP<"u"?function(e){return WP.resolve(null).then(e).catch(iV)}:Eb;function iV(e){setTimeout(function(){throw e})}function E0(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),Vf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vf(t)}function ws(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 YP(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 zc=Math.random().toString(36).slice(2),$i="__reactFiber$"+zc,Zf="__reactProps$"+zc,So="__reactContainer$"+zc,Tb="__reactEvents$"+zc,oV="__reactListeners$"+zc,sV="__reactHandles$"+zc;function Sa(e){var t=e[$i];if(t)return t;for(var n=e.parentNode;n;){if(t=n[So]||n[$i]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=YP(e);e!==null;){if(n=e[$i])return n;e=YP(e)}return t}e=n,n=e.parentNode}return null}function Nd(e){return e=e[$i]||e[So],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function cy(e){return e[Zf]||null}var Ob=[],Vl=-1;function Ws(e){return{current:e}}function Nt(e){0>Vl||(e.current=Ob[Vl],Ob[Vl]=null,Vl--)}function Et(e,t){Vl++,Ob[Vl]=e.current,e.current=t}var Ds={},er=Ws(Ds),vr=Ws(!1),Ba=Ds;function yc(e,t){var n=e.type.contextTypes;if(!n)return Ds;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 yr(e){return e=e.childContextTypes,e!=null}function vg(){Nt(vr),Nt(er)}function qP(e,t,n){if(er.current!==Ds)throw Error(Ee(168));Et(er,t),Et(vr,n)}function xA(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,Vz(e)||"Unknown",i));return Ht({},n,r)}function yg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ds,Ba=er.current,Et(er,e),Et(vr,vr.current),!0}function GP(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=xA(e,t,Ba),r.__reactInternalMemoizedMergedChildContext=e,Nt(vr),Nt(er),Et(er,e)):Nt(vr),Et(vr,n)}var ho=null,uy=!1,T0=!1;function SA(e){ho===null?ho=[e]:ho.push(e)}function aV(e){uy=!0,SA(e)}function Ys(){if(!T0&&ho!==null){T0=!0;var e=0,t=_t;try{var n=ho;for(_t=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ho=null,uy=!1}catch(i){throw ho!==null&&(ho=ho.slice(e+1)),GD(B2,Ys),i}finally{_t=t,T0=!1}}return null}var Wl=[],Yl=0,_g=null,bg=0,Vr=[],Wr=0,Ua=null,yo=1,_o="";function ma(e,t){Wl[Yl++]=bg,Wl[Yl++]=_g,_g=e,bg=t}function CA(e,t,n){Vr[Wr++]=yo,Vr[Wr++]=_o,Vr[Wr++]=Ua,Ua=e;var r=yo;e=_o;var i=32-bi(r)-1;r&=~(1<<i),n+=1;var o=32-bi(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,yo=1<<32-bi(t)+i|n<<i|r,_o=o+e}else yo=1<<o|n<<i|r,_o=e}function Z2(e){e.return!==null&&(ma(e,1),CA(e,1,0))}function K2(e){for(;e===_g;)_g=Wl[--Yl],Wl[Yl]=null,bg=Wl[--Yl],Wl[Yl]=null;for(;e===Ua;)Ua=Vr[--Wr],Vr[Wr]=null,_o=Vr[--Wr],Vr[Wr]=null,yo=Vr[--Wr],Vr[Wr]=null}var Rr=null,kr=null,jt=!1,pi=null;function EA(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 ZP(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=ws(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=Ua!==null?{id:yo,overflow:_o}: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 Pb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kb(e){if(jt){var t=kr;if(t){var n=t;if(!ZP(e,t)){if(Pb(e))throw Error(Ee(418));t=ws(n.nextSibling);var r=Rr;t&&ZP(e,t)?EA(r,n):(e.flags=e.flags&-4097|2,jt=!1,Rr=e)}}else{if(Pb(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,jt=!1,Rr=e}}}function KP(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rr=e}function np(e){if(e!==Rr)return!1;if(!jt)return KP(e),jt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Cb(e.type,e.memoizedProps)),t&&(t=kr)){if(Pb(e))throw TA(),Error(Ee(418));for(;t;)EA(e,t),t=ws(t.nextSibling)}if(KP(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=ws(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}kr=null}}else kr=Rr?ws(e.stateNode.nextSibling):null;return!0}function TA(){for(var e=kr;e;)e=ws(e.nextSibling)}function _c(){kr=Rr=null,jt=!1}function X2(e){pi===null?pi=[e]:pi.push(e)}var lV=Do.ReactCurrentBatchConfig;function fi(e,t){if(e&&e.defaultProps){t=Ht({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var wg=Ws(null),xg=null,ql=null,Q2=null;function J2(){Q2=ql=xg=null}function eS(e){var t=wg.current;Nt(wg),e._currentValue=t}function Mb(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 oc(e,t){xg=e,Q2=ql=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mr=!0),e.firstContext=null)}function Jr(e){var t=e._currentValue;if(Q2!==e)if(e={context:e,memoizedValue:t,next:null},ql===null){if(xg===null)throw Error(Ee(308));ql=e,xg.dependencies={lanes:0,firstContext:e}}else ql=ql.next=e;return t}var Ca=null;function tS(e){Ca===null?Ca=[e]:Ca.push(e)}function OA(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,tS(t)):(n.next=i.next,i.next=n),t.interleaved=n,Co(e,r)}function Co(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 Qo=!1;function nS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function PA(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xs(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,Co(e,n)}return i=r.interleaved,i===null?(t.next=t,tS(r)):(t.next=i.next,i.next=t),r.interleaved=t,Co(e,n)}function Zp(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,U2(e,n)}}function XP(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 Sg(e,t,n,r){var i=e.updateQueue;Qo=!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,g=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(p=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(g,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(g,h,p):v,p==null)break e;h=Ht({},h,p);break e;case 2:Qo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else g={eventTime:g,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=g,l=h):f=f.next=g,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);Ha|=s,e.lanes=s,e.memoizedState=h}}function QP(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 kA=new OD.Component().refs;function Rb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ht({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fy={isMounted:function(e){return(e=e._reactInternals)?rl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lr(),i=Cs(e),o=bo(r,i);o.payload=t,n!=null&&(o.callback=n),t=xs(e,o,i),t!==null&&(wi(t,e,i,r),Zp(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lr(),i=Cs(e),o=bo(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=xs(e,o,i),t!==null&&(wi(t,e,i,r),Zp(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lr(),r=Cs(e),i=bo(n,r);i.tag=2,t!=null&&(i.callback=t),t=xs(e,i,r),t!==null&&(wi(t,e,r,n),Zp(t,e,r))}};function JP(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?!Yf(n,r)||!Yf(i,o):!0}function MA(e,t,n){var r=!1,i=Ds,o=t.contextType;return typeof o=="object"&&o!==null?o=Jr(o):(i=yr(t)?Ba:er.current,r=t.contextTypes,o=(r=r!=null)?yc(e,i):Ds),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ek(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fy.enqueueReplaceState(t,t.state,null)}function Nb(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=kA,nS(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Jr(o):(o=yr(t)?Ba:er.current,i.context=yc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Rb(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&fy.enqueueReplaceState(i,i.state,null),Sg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Tu(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===kA&&(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 rp(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tk(e){var t=e._init;return t(e._payload)}function RA(e){function t(b,w){if(e){var S=b.deletions;S===null?(b.deletions=[w],b.flags|=16):S.push(w)}}function n(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function r(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=Es(b,w),b.index=0,b.sibling=null,b}function o(b,w,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<w?(b.flags|=2,w):S):(b.flags|=2,w)):(b.flags|=1048576,w)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function a(b,w,S,T){return w===null||w.tag!==6?(w=L0(S,b.mode,T),w.return=b,w):(w=i(w,S),w.return=b,w)}function l(b,w,S,T){var P=S.type;return P===$l?f(b,w,S.props.children,T,S.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xo&&tk(P)===w.type)?(T=i(w,S.props),T.ref=Tu(b,w,S),T.return=b,T):(T=tm(S.type,S.key,S.props,null,b.mode,T),T.ref=Tu(b,w,S),T.return=b,T)}function c(b,w,S,T){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=D0(S,b.mode,T),w.return=b,w):(w=i(w,S.children||[]),w.return=b,w)}function f(b,w,S,T,P){return w===null||w.tag!==7?(w=Na(S,b.mode,T,P),w.return=b,w):(w=i(w,S),w.return=b,w)}function h(b,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=L0(""+w,b.mode,S),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Yh:return S=tm(w.type,w.key,w.props,null,b.mode,S),S.ref=Tu(b,null,w),S.return=b,S;case Fl:return w=D0(w,b.mode,S),w.return=b,w;case Xo:var T=w._init;return h(b,T(w._payload),S)}if(Hu(w)||wu(w))return w=Na(w,b.mode,S,null),w.return=b,w;rp(b,w)}return null}function p(b,w,S,T){var P=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return P!==null?null:a(b,w,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Yh:return S.key===P?l(b,w,S,T):null;case Fl:return S.key===P?c(b,w,S,T):null;case Xo:return P=S._init,p(b,w,P(S._payload),T)}if(Hu(S)||wu(S))return P!==null?null:f(b,w,S,T,null);rp(b,S)}return null}function g(b,w,S,T,P){if(typeof T=="string"&&T!==""||typeof T=="number")return b=b.get(S)||null,a(w,b,""+T,P);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Yh:return b=b.get(T.key===null?S:T.key)||null,l(w,b,T,P);case Fl:return b=b.get(T.key===null?S:T.key)||null,c(w,b,T,P);case Xo:var k=T._init;return g(b,w,S,k(T._payload),P)}if(Hu(T)||wu(T))return b=b.get(S)||null,f(w,b,T,P,null);rp(w,T)}return null}function v(b,w,S,T){for(var P=null,k=null,N=w,D=w=0,V=null;N!==null&&D<S.length;D++){N.index>D?(V=N,N=null):V=N.sibling;var A=p(b,N,S[D],T);if(A===null){N===null&&(N=V);break}e&&N&&A.alternate===null&&t(b,N),w=o(A,w,D),k===null?P=A:k.sibling=A,k=A,N=V}if(D===S.length)return n(b,N),jt&&ma(b,D),P;if(N===null){for(;D<S.length;D++)N=h(b,S[D],T),N!==null&&(w=o(N,w,D),k===null?P=N:k.sibling=N,k=N);return jt&&ma(b,D),P}for(N=r(b,N);D<S.length;D++)V=g(N,b,D,S[D],T),V!==null&&(e&&V.alternate!==null&&N.delete(V.key===null?D:V.key),w=o(V,w,D),k===null?P=V:k.sibling=V,k=V);return e&&N.forEach(function(W){return t(b,W)}),jt&&ma(b,D),P}function y(b,w,S,T){var P=wu(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,V=null,A=S.next();N!==null&&!A.done;D++,A=S.next()){N.index>D?(V=N,N=null):V=N.sibling;var W=p(b,N,A.value,T);if(W===null){N===null&&(N=V);break}e&&N&&W.alternate===null&&t(b,N),w=o(W,w,D),k===null?P=W:k.sibling=W,k=W,N=V}if(A.done)return n(b,N),jt&&ma(b,D),P;if(N===null){for(;!A.done;D++,A=S.next())A=h(b,A.value,T),A!==null&&(w=o(A,w,D),k===null?P=A:k.sibling=A,k=A);return jt&&ma(b,D),P}for(N=r(b,N);!A.done;D++,A=S.next())A=g(N,b,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(b,Y)}),jt&&ma(b,D),P}function x(b,w,S,T){if(typeof S=="object"&&S!==null&&S.type===$l&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Yh:e:{for(var P=S.key,k=w;k!==null;){if(k.key===P){if(P=S.type,P===$l){if(k.tag===7){n(b,k.sibling),w=i(k,S.props.children),w.return=b,b=w;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xo&&tk(P)===k.type){n(b,k.sibling),w=i(k,S.props),w.ref=Tu(b,k,S),w.return=b,b=w;break e}n(b,k);break}else t(b,k);k=k.sibling}S.type===$l?(w=Na(S.props.children,b.mode,T,S.key),w.return=b,b=w):(T=tm(S.type,S.key,S.props,null,b.mode,T),T.ref=Tu(b,w,S),T.return=b,b=T)}return s(b);case Fl: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(b,w.sibling),w=i(w,S.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=D0(S,b.mode,T),w.return=b,b=w}return s(b);case Xo:return k=S._init,x(b,w,k(S._payload),T)}if(Hu(S))return v(b,w,S,T);if(wu(S))return y(b,w,S,T);rp(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(b,w.sibling),w=i(w,S),w.return=b,b=w):(n(b,w),w=L0(S,b.mode,T),w.return=b,b=w),s(b)):n(b,w)}return x}var bc=RA(!0),NA=RA(!1),Ld={},qi=Ws(Ld),Kf=Ws(Ld),Xf=Ws(Ld);function Ea(e){if(e===Ld)throw Error(Ee(174));return e}function rS(e,t){switch(Et(Xf,t),Et(Kf,e),Et(qi,Ld),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}Nt(qi),Et(qi,t)}function wc(){Nt(qi),Nt(Kf),Nt(Xf)}function LA(e){Ea(Xf.current);var t=Ea(qi.current),n=ub(t,e.type);t!==n&&(Et(Kf,e),Et(qi,n))}function iS(e){Kf.current===e&&(Nt(qi),Nt(Kf))}var Bt=Ws(0);function Cg(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 O0=[];function oS(){for(var e=0;e<O0.length;e++)O0[e]._workInProgressVersionPrimary=null;O0.length=0}var Kp=Do.ReactCurrentDispatcher,P0=Do.ReactCurrentBatchConfig,za=0,zt=null,mn=null,Cn=null,Eg=!1,df=!1,Qf=0,cV=0;function Yn(){throw Error(Ee(321))}function sS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ei(e[n],t[n]))return!1;return!0}function aS(e,t,n,r,i,o){if(za=o,zt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kp.current=e===null||e.memoizedState===null?hV:pV,e=n(r,i),df){o=0;do{if(df=!1,Qf=0,25<=o)throw Error(Ee(301));o+=1,Cn=mn=null,t.updateQueue=null,Kp.current=mV,e=n(r,i)}while(df)}if(Kp.current=Tg,t=mn!==null&&mn.next!==null,za=0,Cn=mn=zt=null,Eg=!1,t)throw Error(Ee(300));return e}function lS(){var e=Qf!==0;return Qf=0,e}function Ii(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?zt.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function ei(){if(mn===null){var e=zt.alternate;e=e!==null?e.memoizedState:null}else e=mn.next;var t=Cn===null?zt.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?zt.memoizedState=Cn=e:Cn=Cn.next=e}return Cn}function Jf(e,t){return typeof t=="function"?t(e):t}function k0(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((za&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,zt.lanes|=f,Ha|=f}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Ei(r,t.memoizedState)||(mr=!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,zt.lanes|=o,Ha|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function M0(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);Ei(o,t.memoizedState)||(mr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function DA(){}function AA(e,t){var n=zt,r=ei(),i=t(),o=!Ei(r.memoizedState,i);if(o&&(r.memoizedState=i,mr=!0),r=r.queue,cS(FA.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Cn!==null&&Cn.memoizedState.tag&1){if(n.flags|=2048,ed(9,IA.bind(null,n,r,i,t),void 0,null),Tn===null)throw Error(Ee(349));za&30||jA(n,t,i)}return i}function jA(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function IA(e,t,n,r){t.value=n,t.getSnapshot=r,$A(t)&&BA(e)}function FA(e,t,n){return n(function(){$A(t)&&BA(e)})}function $A(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ei(e,n)}catch{return!0}}function BA(e){var t=Co(e,1);t!==null&&wi(t,e,1,-1)}function nk(e){var t=Ii();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jf,lastRenderedState:e},t.queue=e,e=e.dispatch=dV.bind(null,zt,e),[t.memoizedState,e]}function ed(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.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 UA(){return ei().memoizedState}function Xp(e,t,n,r){var i=Ii();zt.flags|=e,i.memoizedState=ed(1|t,n,void 0,r===void 0?null:r)}function dy(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&&sS(r,s.deps)){i.memoizedState=ed(t,n,o,r);return}}zt.flags|=e,i.memoizedState=ed(1|t,n,o,r)}function rk(e,t){return Xp(8390656,8,e,t)}function cS(e,t){return dy(2048,8,e,t)}function zA(e,t){return dy(4,2,e,t)}function HA(e,t){return dy(4,4,e,t)}function VA(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 WA(e,t,n){return n=n!=null?n.concat([e]):null,dy(4,4,VA.bind(null,t,e),n)}function uS(){}function YA(e,t){var n=ei();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qA(e,t){var n=ei();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function GA(e,t,n){return za&21?(Ei(n,t)||(n=XD(),zt.lanes|=n,Ha|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mr=!0),e.memoizedState=n)}function uV(e,t){var n=_t;_t=n!==0&&4>n?n:4,e(!0);var r=P0.transition;P0.transition={};try{e(!1),t()}finally{_t=n,P0.transition=r}}function ZA(){return ei().memoizedState}function fV(e,t,n){var r=Cs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KA(e))XA(t,n);else if(n=OA(e,t,n,r),n!==null){var i=lr();wi(n,e,r,i),QA(n,t,r)}}function dV(e,t,n){var r=Cs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KA(e))XA(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,Ei(a,s)){var l=t.interleaved;l===null?(i.next=i,tS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=OA(e,t,i,r),n!==null&&(i=lr(),wi(n,e,r,i),QA(n,t,r))}}function KA(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function XA(e,t){df=Eg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QA(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U2(e,n)}}var Tg={readContext:Jr,useCallback:Yn,useContext:Yn,useEffect:Yn,useImperativeHandle:Yn,useInsertionEffect:Yn,useLayoutEffect:Yn,useMemo:Yn,useReducer:Yn,useRef:Yn,useState:Yn,useDebugValue:Yn,useDeferredValue:Yn,useTransition:Yn,useMutableSource:Yn,useSyncExternalStore:Yn,useId:Yn,unstable_isNewReconciler:!1},hV={readContext:Jr,useCallback:function(e,t){return Ii().memoizedState=[e,t===void 0?null:t],e},useContext:Jr,useEffect:rk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xp(4194308,4,VA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xp(4,2,e,t)},useMemo:function(e,t){var n=Ii();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ii();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=fV.bind(null,zt,e),[r.memoizedState,e]},useRef:function(e){var t=Ii();return e={current:e},t.memoizedState=e},useState:nk,useDebugValue:uS,useDeferredValue:function(e){return Ii().memoizedState=e},useTransition:function(){var e=nk(!1),t=e[0];return e=uV.bind(null,e[1]),Ii().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zt,i=Ii();if(jt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),Tn===null)throw Error(Ee(349));za&30||jA(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rk(FA.bind(null,r,o,e),[e]),r.flags|=2048,ed(9,IA.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ii(),t=Tn.identifierPrefix;if(jt){var n=_o,r=yo;n=(r&~(1<<32-bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=cV++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pV={readContext:Jr,useCallback:YA,useContext:Jr,useEffect:cS,useImperativeHandle:WA,useInsertionEffect:zA,useLayoutEffect:HA,useMemo:qA,useReducer:k0,useRef:UA,useState:function(){return k0(Jf)},useDebugValue:uS,useDeferredValue:function(e){var t=ei();return GA(t,mn.memoizedState,e)},useTransition:function(){var e=k0(Jf)[0],t=ei().memoizedState;return[e,t]},useMutableSource:DA,useSyncExternalStore:AA,useId:ZA,unstable_isNewReconciler:!1},mV={readContext:Jr,useCallback:YA,useContext:Jr,useEffect:cS,useImperativeHandle:WA,useInsertionEffect:zA,useLayoutEffect:HA,useMemo:qA,useReducer:M0,useRef:UA,useState:function(){return M0(Jf)},useDebugValue:uS,useDeferredValue:function(e){var t=ei();return mn===null?t.memoizedState=e:GA(t,mn.memoizedState,e)},useTransition:function(){var e=M0(Jf)[0],t=ei().memoizedState;return[e,t]},useMutableSource:DA,useSyncExternalStore:AA,useId:ZA,unstable_isNewReconciler:!1};function xc(e,t){try{var n="",r=t;do n+=Hz(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 R0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Lb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var gV=typeof WeakMap=="function"?WeakMap:Map;function JA(e,t,n){n=bo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Pg||(Pg=!0,Hb=r),Lb(e,t)},n}function e4(e,t,n){n=bo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Lb(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Lb(e,t),typeof r!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ik(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new gV;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=MV.bind(null,e,t,n),t.then(e,e))}function ok(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 sk(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bo(-1,1),t.tag=2,xs(n,t,1))),n.lanes|=1),e)}var vV=Do.ReactCurrentOwner,mr=!1;function sr(e,t,n,r){t.child=e===null?NA(t,null,n,r):bc(t,e.child,n,r)}function ak(e,t,n,r,i){n=n.render;var o=t.ref;return oc(t,i),r=aS(e,t,n,r,o,i),n=lS(),e!==null&&!mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Eo(e,t,i)):(jt&&n&&Z2(t),t.flags|=1,sr(e,t,r,i),t.child)}function lk(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!yS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,t4(e,t,o,r,i)):(e=tm(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:Yf,n(s,r)&&e.ref===t.ref)return Eo(e,t,i)}return t.flags|=1,e=Es(o,r),e.ref=t.ref,e.return=t,t.child=e}function t4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Yf(o,r)&&e.ref===t.ref)if(mr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(mr=!0);else return t.lanes=e.lanes,Eo(e,t,i)}return Db(e,t,n,r,i)}function n4(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(Zl,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(Zl,Or),Or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Et(Zl,Or),Or|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Et(Zl,Or),Or|=r;return sr(e,t,i,n),t.child}function r4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Db(e,t,n,r,i){var o=yr(n)?Ba:er.current;return o=yc(t,o),oc(t,i),n=aS(e,t,n,r,o,i),r=lS(),e!==null&&!mr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Eo(e,t,i)):(jt&&r&&Z2(t),t.flags|=1,sr(e,t,n,i),t.child)}function ck(e,t,n,r,i){if(yr(n)){var o=!0;yg(t)}else o=!1;if(oc(t,i),t.stateNode===null)Qp(e,t),MA(t,n,r),Nb(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=yr(n)?Ba:er.current,c=yc(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)&&ek(t,s,r,c),Qo=!1;var p=t.memoizedState;s.state=p,Sg(t,r,s,i),l=t.memoizedState,a!==r||p!==l||vr.current||Qo?(typeof f=="function"&&(Rb(t,n,f,r),l=t.memoizedState),(a=Qo||JP(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,PA(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:fi(t.type,a),s.props=c,h=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Jr(l):(l=yr(n)?Ba:er.current,l=yc(t,l));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||p!==l)&&ek(t,s,r,l),Qo=!1,p=t.memoizedState,s.state=p,Sg(t,r,s,i);var v=t.memoizedState;a!==h||p!==v||vr.current||Qo?(typeof g=="function"&&(Rb(t,n,g,r),v=t.memoizedState),(c=Qo||JP(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 Ab(e,t,n,r,o,i)}function Ab(e,t,n,r,i,o){r4(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&GP(t,n,!1),Eo(e,t,o);r=t.stateNode,vV.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=bc(t,e.child,null,o),t.child=bc(t,null,a,o)):sr(e,t,a,o),t.memoizedState=r.state,i&&GP(t,n,!0),t.child}function i4(e){var t=e.stateNode;t.pendingContext?qP(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qP(e,t.context,!1),rS(e,t.containerInfo)}function uk(e,t,n,r,i){return _c(),X2(i),t.flags|=256,sr(e,t,n,r),t.child}var jb={dehydrated:null,treeContext:null,retryLane:0};function Ib(e){return{baseLanes:e,cachePool:null,transitions:null}}function o4(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 kb(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=my(s,r,0,null),e=Na(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ib(n),t.memoizedState=jb,e):fS(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return yV(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=Es(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Es(a,o):(o=Na(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?Ib(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=jb,r}return o=e.child,e=o.sibling,r=Es(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 fS(e,t){return t=my({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ip(e,t,n,r){return r!==null&&X2(r),bc(t,e.child,null,n),e=fS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yV(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=R0(Error(Ee(422))),ip(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=my({mode:"visible",children:r.children},i,0,null),o=Na(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&bc(t,e.child,null,s),t.child.memoizedState=Ib(s),t.memoizedState=jb,o);if(!(t.mode&1))return ip(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=R0(o,r,void 0),ip(e,t,s,r)}if(a=(s&e.childLanes)!==0,mr||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,Co(e,i),wi(r,e,i,-1))}return vS(),r=R0(Error(Ee(421))),ip(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=RV.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,kr=ws(i.nextSibling),Rr=t,jt=!0,pi=null,e!==null&&(Vr[Wr++]=yo,Vr[Wr++]=_o,Vr[Wr++]=Ua,yo=e.id,_o=e.overflow,Ua=t),t=fS(t,r.children),t.flags|=4096,t)}function fk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mb(e.return,t,n)}function N0(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 s4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(sr(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&&fk(e,n,t);else if(e.tag===19)fk(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&&Cg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),N0(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&&Cg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}N0(t,!0,n,null,o);break;case"together":N0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Eo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ha|=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=Es(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Es(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _V(e,t,n){switch(t.tag){case 3:i4(t),_c();break;case 5:LA(t);break;case 1:yr(t.type)&&yg(t);break;case 4:rS(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Et(wg,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?o4(e,t,n):(Et(Bt,Bt.current&1),e=Eo(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 s4(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,n4(e,t,n)}return Eo(e,t,n)}var a4,Fb,l4,c4;a4=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}};Fb=function(){};l4=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ea(qi.current);var o=null;switch(n){case"input":i=sb(e,i),r=sb(e,r),o=[];break;case"select":i=Ht({},i,{value:void 0}),r=Ht({},r,{value:void 0}),o=[];break;case"textarea":i=cb(e,i),r=cb(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gg)}fb(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"&&($f.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"&&($f.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ot("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)}};c4=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ou(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 qn(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 bV(e,t,n){var r=t.pendingProps;switch(K2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qn(t),null;case 1:return yr(t.type)&&vg(),qn(t),null;case 3:return r=t.stateNode,wc(),Nt(vr),Nt(er),oS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(np(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pi!==null&&(Yb(pi),pi=null))),Fb(e,t),qn(t),null;case 5:iS(t);var i=Ea(Xf.current);if(n=t.type,e!==null&&t.stateNode!=null)l4(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 qn(t),null}if(e=Ea(qi.current),np(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[$i]=t,r[Zf]=o,e=(t.mode&1)!==0,n){case"dialog":Ot("cancel",r),Ot("close",r);break;case"iframe":case"object":case"embed":Ot("load",r);break;case"video":case"audio":for(i=0;i<Wu.length;i++)Ot(Wu[i],r);break;case"source":Ot("error",r);break;case"img":case"image":case"link":Ot("error",r),Ot("load",r);break;case"details":Ot("toggle",r);break;case"input":bP(r,o),Ot("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ot("invalid",r);break;case"textarea":xP(r,o),Ot("invalid",r)}fb(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&&tp(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&tp(r.textContent,a,e),i=["children",""+a]):$f.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Ot("scroll",r)}switch(n){case"input":qh(r),wP(r,o,!0);break;case"textarea":qh(r),SP(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=gg)}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=jD(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[$i]=t,e[Zf]=r,a4(e,t,!1,!1),t.stateNode=e;e:{switch(s=db(n,r),n){case"dialog":Ot("cancel",e),Ot("close",e),i=r;break;case"iframe":case"object":case"embed":Ot("load",e),i=r;break;case"video":case"audio":for(i=0;i<Wu.length;i++)Ot(Wu[i],e);i=r;break;case"source":Ot("error",e),i=r;break;case"img":case"image":case"link":Ot("error",e),Ot("load",e),i=r;break;case"details":Ot("toggle",e),i=r;break;case"input":bP(e,r),i=sb(e,r),Ot("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ht({},r,{value:void 0}),Ot("invalid",e);break;case"textarea":xP(e,r),i=cb(e,r),Ot("invalid",e);break;default:i=r}fb(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?$D(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ID(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Bf(e,l):typeof l=="number"&&Bf(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($f.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ot("scroll",e):l!=null&&A2(e,o,l,s))}switch(n){case"input":qh(e),wP(e,r,!1);break;case"textarea":qh(e),SP(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ls(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?tc(e,!!r.multiple,o,!1):r.defaultValue!=null&&tc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=gg)}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 qn(t),null;case 6:if(e&&t.stateNode!=null)c4(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ee(166));if(n=Ea(Xf.current),Ea(qi.current),np(t)){if(r=t.stateNode,n=t.memoizedProps,r[$i]=t,(o=r.nodeValue!==n)&&(e=Rr,e!==null))switch(e.tag){case 3:tp(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&tp(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$i]=t,t.stateNode=r}return qn(t),null;case 13:if(Nt(Bt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(jt&&kr!==null&&t.mode&1&&!(t.flags&128))TA(),_c(),t.flags|=98560,o=!1;else if(o=np(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[$i]=t}else _c(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qn(t),o=!1}else pi!==null&&(Yb(pi),pi=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Bt.current&1?vn===0&&(vn=3):vS())),t.updateQueue!==null&&(t.flags|=4),qn(t),null);case 4:return wc(),Fb(e,t),e===null&&qf(t.stateNode.containerInfo),qn(t),null;case 10:return eS(t.type._context),qn(t),null;case 17:return yr(t.type)&&vg(),qn(t),null;case 19:if(Nt(Bt),o=t.memoizedState,o===null)return qn(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Ou(o,!1);else{if(vn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Cg(e),s!==null){for(t.flags|=128,Ou(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()>Sc&&(t.flags|=128,r=!0,Ou(o,!1),t.lanes=4194304)}else{if(!r)if(e=Cg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ou(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return qn(t),null}else 2*en()-o.renderingStartTime>Sc&&n!==1073741824&&(t.flags|=128,r=!0,Ou(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):(qn(t),null);case 22:case 23:return gS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(qn(t),t.subtreeFlags&6&&(t.flags|=8192)):qn(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function wV(e,t){switch(K2(t),t.tag){case 1:return yr(t.type)&&vg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wc(),Nt(vr),Nt(er),oS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iS(t),null;case 13:if(Nt(Bt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));_c()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nt(Bt),null;case 4:return wc(),null;case 10:return eS(t.type._context),null;case 22:case 23:return gS(),null;case 24:return null;default:return null}}var op=!1,Kn=!1,xV=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function Gl(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 $b(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var dk=!1;function SV(e,t){if(xb=hg,e=hA(),G2(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 g;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),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sb={focusedElem:e,selectionRange:n},hg=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){t=Ue;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,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:fi(t.type,y),x);b.__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,Ue=e;break}Ue=t.return}return v=dk,dk=!1,v}function hf(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&&$b(t,n,o)}i=i.next}while(i!==r)}}function hy(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 Bb(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 u4(e){var t=e.alternate;t!==null&&(e.alternate=null,u4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$i],delete t[Zf],delete t[Tb],delete t[oV],delete t[sV])),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 f4(e){return e.tag===5||e.tag===3||e.tag===4}function hk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f4(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 Ub(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=gg));else if(r!==4&&(e=e.child,e!==null))for(Ub(e,t,n),e=e.sibling;e!==null;)Ub(e,t,n),e=e.sibling}function zb(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(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var Bn=null,di=!1;function Yo(e,t,n){for(n=n.child;n!==null;)d4(e,t,n),n=n.sibling}function d4(e,t,n){if(Yi&&typeof Yi.onCommitFiberUnmount=="function")try{Yi.onCommitFiberUnmount(oy,n)}catch{}switch(n.tag){case 5:Kn||Gl(n,t);case 6:var r=Bn,i=di;Bn=null,Yo(e,t,n),Bn=r,di=i,Bn!==null&&(di?(e=Bn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bn.removeChild(n.stateNode));break;case 18:Bn!==null&&(di?(e=Bn,n=n.stateNode,e.nodeType===8?E0(e.parentNode,n):e.nodeType===1&&E0(e,n),Vf(e)):E0(Bn,n.stateNode));break;case 4:r=Bn,i=di,Bn=n.stateNode.containerInfo,di=!0,Yo(e,t,n),Bn=r,di=i;break;case 0:case 11:case 14:case 15:if(!Kn&&(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)&&$b(n,t,s),i=i.next}while(i!==r)}Yo(e,t,n);break;case 1:if(!Kn&&(Gl(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)}Yo(e,t,n);break;case 21:Yo(e,t,n);break;case 22:n.mode&1?(Kn=(r=Kn)||n.memoizedState!==null,Yo(e,t,n),Kn=r):Yo(e,t,n);break;default:Yo(e,t,n)}}function pk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xV),t.forEach(function(r){var i=NV.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ui(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,di=!1;break e;case 3:Bn=a.stateNode.containerInfo,di=!0;break e;case 4:Bn=a.stateNode.containerInfo,di=!0;break e}a=a.return}if(Bn===null)throw Error(Ee(160));d4(o,s,i),Bn=null,di=!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;)h4(t,e),t=t.sibling}function h4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ui(t,e),Li(e),r&4){try{hf(3,e,e.return),hy(3,e)}catch(y){Wt(e,e.return,y)}try{hf(5,e,e.return)}catch(y){Wt(e,e.return,y)}}break;case 1:ui(t,e),Li(e),r&512&&n!==null&&Gl(n,n.return);break;case 5:if(ui(t,e),Li(e),r&512&&n!==null&&Gl(n,n.return),e.flags&32){var i=e.stateNode;try{Bf(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&&DD(i,o),db(a,s);var c=db(a,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];f==="style"?$D(i,h):f==="dangerouslySetInnerHTML"?ID(i,h):f==="children"?Bf(i,h):A2(i,f,h,c)}switch(a){case"input":ab(i,o);break;case"textarea":AD(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?tc(i,!!o.multiple,g,!1):p!==!!o.multiple&&(o.defaultValue!=null?tc(i,!!o.multiple,o.defaultValue,!0):tc(i,!!o.multiple,o.multiple?[]:"",!1))}i[Zf]=o}catch(y){Wt(e,e.return,y)}}break;case 6:if(ui(t,e),Li(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(ui(t,e),Li(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vf(t.containerInfo)}catch(y){Wt(e,e.return,y)}break;case 4:ui(t,e),Li(e);break;case 13:ui(t,e),Li(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(pS=en())),r&4&&pk(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Kn=(c=Kn)||f,ui(t,e),Kn=c):ui(t,e),Li(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(Ue=e,f=e.child;f!==null;){for(h=Ue=f;Ue!==null;){switch(p=Ue,g=p.child,p.tag){case 0:case 11:case 14:case 15:hf(4,p,p.return);break;case 1:Gl(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:Gl(p,p.return);break;case 22:if(p.memoizedState!==null){gk(h);continue}}g!==null?(g.return=p,Ue=g):gk(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=FD("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:ui(t,e),Li(e),r&4&&pk(e);break;case 21:break;default:ui(t,e),Li(e)}}function Li(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(f4(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&&(Bf(i,""),r.flags&=-33);var o=hk(e);zb(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=hk(e);Ub(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 CV(e,t,n){Ue=e,p4(e)}function p4(e,t,n){for(var r=(e.mode&1)!==0;Ue!==null;){var i=Ue,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||op;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Kn;a=op;var c=Kn;if(op=s,(Kn=l)&&!c)for(Ue=i;Ue!==null;)s=Ue,l=s.child,s.tag===22&&s.memoizedState!==null?vk(i):l!==null?(l.return=s,Ue=l):vk(i);for(;o!==null;)Ue=o,p4(o),o=o.sibling;Ue=i,op=a,Kn=c}mk(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ue=o):mk(e)}}function mk(e){for(;Ue!==null;){var t=Ue;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Kn||hy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Kn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:fi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&QP(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}QP(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&&Vf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}Kn||t.flags&512&&Bb(t)}catch(p){Wt(t,t.return,p)}}if(t===e){Ue=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ue=n;break}Ue=t.return}}function gk(e){for(;Ue!==null;){var t=Ue;if(t===e){Ue=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ue=n;break}Ue=t.return}}function vk(e){for(;Ue!==null;){var t=Ue;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hy(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{Bb(t)}catch(l){Wt(t,o,l)}break;case 5:var s=t.return;try{Bb(t)}catch(l){Wt(t,s,l)}}}catch(l){Wt(t,t.return,l)}if(t===e){Ue=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ue=a;break}Ue=t.return}}var EV=Math.ceil,Og=Do.ReactCurrentDispatcher,dS=Do.ReactCurrentOwner,Zr=Do.ReactCurrentBatchConfig,ut=0,Tn=null,un=null,Hn=0,Or=0,Zl=Ws(0),vn=0,td=null,Ha=0,py=0,hS=0,pf=null,dr=null,pS=0,Sc=1/0,uo=null,Pg=!1,Hb=null,Ss=null,sp=!1,fs=null,kg=0,mf=0,Vb=null,Jp=-1,em=0;function lr(){return ut&6?en():Jp!==-1?Jp:Jp=en()}function Cs(e){return e.mode&1?ut&2&&Hn!==0?Hn&-Hn:lV.transition!==null?(em===0&&(em=XD()),em):(e=_t,e!==0||(e=window.event,e=e===void 0?16:iA(e.type)),e):1}function wi(e,t,n,r){if(50<mf)throw mf=0,Vb=null,Error(Ee(185));Md(e,n,r),(!(ut&2)||e!==Tn)&&(e===Tn&&(!(ut&2)&&(py|=n),vn===4&&rs(e,Hn)),_r(e,r),n===1&&ut===0&&!(t.mode&1)&&(Sc=en()+500,uy&&Ys()))}function _r(e,t){var n=e.callbackNode;lH(e,t);var r=dg(e,e===Tn?Hn:0);if(r===0)n!==null&&TP(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&TP(n),t===1)e.tag===0?aV(yk.bind(null,e)):SA(yk.bind(null,e)),rV(function(){!(ut&6)&&Ys()}),n=null;else{switch(QD(r)){case 1:n=B2;break;case 4:n=ZD;break;case 16:n=fg;break;case 536870912:n=KD;break;default:n=fg}n=x4(n,m4.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function m4(e,t){if(Jp=-1,em=0,ut&6)throw Error(Ee(327));var n=e.callbackNode;if(sc()&&e.callbackNode!==n)return null;var r=dg(e,e===Tn?Hn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mg(e,r);else{t=r;var i=ut;ut|=2;var o=v4();(Tn!==e||Hn!==t)&&(uo=null,Sc=en()+500,Ra(e,t));do try{PV();break}catch(a){g4(e,a)}while(1);J2(),Og.current=o,ut=i,un!==null?t=0:(Tn=null,Hn=0,t=vn)}if(t!==0){if(t===2&&(i=vb(e),i!==0&&(r=i,t=Wb(e,i))),t===1)throw n=td,Ra(e,0),rs(e,r),_r(e,en()),n;if(t===6)rs(e,r);else{if(i=e.current.alternate,!(r&30)&&!TV(i)&&(t=Mg(e,r),t===2&&(o=vb(e),o!==0&&(r=o,t=Wb(e,o))),t===1))throw n=td,Ra(e,0),rs(e,r),_r(e,en()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ee(345));case 2:ga(e,dr,uo);break;case 3:if(rs(e,r),(r&130023424)===r&&(t=pS+500-en(),10<t)){if(dg(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){lr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Eb(ga.bind(null,e,dr,uo),t);break}ga(e,dr,uo);break;case 4:if(rs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-bi(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*EV(r/1960))-r,10<r){e.timeoutHandle=Eb(ga.bind(null,e,dr,uo),r);break}ga(e,dr,uo);break;case 5:ga(e,dr,uo);break;default:throw Error(Ee(329))}}}return _r(e,en()),e.callbackNode===n?m4.bind(null,e):null}function Wb(e,t){var n=pf;return e.current.memoizedState.isDehydrated&&(Ra(e,t).flags|=256),e=Mg(e,t),e!==2&&(t=dr,dr=n,t!==null&&Yb(t)),e}function Yb(e){dr===null?dr=e:dr.push.apply(dr,e)}function TV(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(!Ei(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 rs(e,t){for(t&=~hS,t&=~py,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bi(t),r=1<<n;e[n]=-1,t&=~r}}function yk(e){if(ut&6)throw Error(Ee(327));sc();var t=dg(e,0);if(!(t&1))return _r(e,en()),null;var n=Mg(e,t);if(e.tag!==0&&n===2){var r=vb(e);r!==0&&(t=r,n=Wb(e,r))}if(n===1)throw n=td,Ra(e,0),rs(e,t),_r(e,en()),n;if(n===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ga(e,dr,uo),_r(e,en()),null}function mS(e,t){var n=ut;ut|=1;try{return e(t)}finally{ut=n,ut===0&&(Sc=en()+500,uy&&Ys())}}function Va(e){fs!==null&&fs.tag===0&&!(ut&6)&&sc();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)&&Ys()}}function gS(){Or=Zl.current,Nt(Zl)}function Ra(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,nV(n)),un!==null)for(n=un.return;n!==null;){var r=n;switch(K2(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vg();break;case 3:wc(),Nt(vr),Nt(er),oS();break;case 5:iS(r);break;case 4:wc();break;case 13:Nt(Bt);break;case 19:Nt(Bt);break;case 10:eS(r.type._context);break;case 22:case 23:gS()}n=n.return}if(Tn=e,un=e=Es(e.current,null),Hn=Or=t,vn=0,td=null,hS=py=Ha=0,dr=pf=null,Ca!==null){for(t=0;t<Ca.length;t++)if(n=Ca[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}Ca=null}return e}function g4(e,t){do{var n=un;try{if(J2(),Kp.current=Tg,Eg){for(var r=zt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Eg=!1}if(za=0,Cn=mn=zt=null,df=!1,Qf=0,dS.current=null,n===null||n.return===null){vn=1,td=t,un=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Hn,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 g=ok(s);if(g!==null){g.flags&=-257,sk(g,s,a,o,t),g.mode&1&&ik(o,c,t),t=g,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)){ik(o,c,t),vS();break e}l=Error(Ee(426))}}else if(jt&&a.mode&1){var x=ok(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),sk(x,s,a,o,t),X2(xc(l,a));break e}}o=l=xc(l,a),vn!==4&&(vn=2),pf===null?pf=[o]:pf.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=JA(o,l,t);XP(o,b);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"&&(Ss===null||!Ss.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=e4(o,a,t);XP(o,T);break e}}o=o.return}while(o!==null)}_4(n)}catch(P){t=P,un===n&&n!==null&&(un=n=n.return);continue}break}while(1)}function v4(){var e=Og.current;return Og.current=Tg,e===null?Tg:e}function vS(){(vn===0||vn===3||vn===2)&&(vn=4),Tn===null||!(Ha&268435455)&&!(py&268435455)||rs(Tn,Hn)}function Mg(e,t){var n=ut;ut|=2;var r=v4();(Tn!==e||Hn!==t)&&(uo=null,Ra(e,t));do try{OV();break}catch(i){g4(e,i)}while(1);if(J2(),ut=n,Og.current=r,un!==null)throw Error(Ee(261));return Tn=null,Hn=0,vn}function OV(){for(;un!==null;)y4(un)}function PV(){for(;un!==null&&!Jz();)y4(un)}function y4(e){var t=w4(e.alternate,e,Or);e.memoizedProps=e.pendingProps,t===null?_4(e):un=t,dS.current=null}function _4(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=wV(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=bV(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 ga(e,t,n){var r=_t,i=Zr.transition;try{Zr.transition=null,_t=1,kV(e,t,n,r)}finally{Zr.transition=i,_t=r}return null}function kV(e,t,n,r){do sc();while(fs!==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(cH(e,o),e===Tn&&(un=Tn=null,Hn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sp||(sp=!0,x4(fg,function(){return sc(),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,dS.current=null,SV(e,n),h4(n,e),ZH(Sb),hg=!!xb,Sb=xb=null,e.current=n,CV(n),eH(),ut=a,_t=s,Zr.transition=o}else e.current=n;if(sp&&(sp=!1,fs=e,kg=i),o=e.pendingLanes,o===0&&(Ss=null),rH(n.stateNode),_r(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(Pg)throw Pg=!1,e=Hb,Hb=null,e;return kg&1&&e.tag!==0&&sc(),o=e.pendingLanes,o&1?e===Vb?mf++:(mf=0,Vb=e):mf=0,Ys(),null}function sc(){if(fs!==null){var e=QD(kg),t=Zr.transition,n=_t;try{if(Zr.transition=null,_t=16>e?16:e,fs===null)var r=!1;else{if(e=fs,fs=null,kg=0,ut&6)throw Error(Ee(331));var i=ut;for(ut|=4,Ue=e.current;Ue!==null;){var o=Ue,s=o.child;if(Ue.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(Ue=c;Ue!==null;){var f=Ue;switch(f.tag){case 0:case 11:case 15:hf(8,f,o)}var h=f.child;if(h!==null)h.return=f,Ue=h;else for(;Ue!==null;){f=Ue;var p=f.sibling,g=f.return;if(u4(f),f===c){Ue=null;break}if(p!==null){p.return=g,Ue=p;break}Ue=g}}}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)}}Ue=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Ue=s;else e:for(;Ue!==null;){if(o=Ue,o.flags&2048)switch(o.tag){case 0:case 11:case 15:hf(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,Ue=b;break e}Ue=o.return}}var w=e.current;for(Ue=w;Ue!==null;){s=Ue;var S=s.child;if(s.subtreeFlags&2064&&S!==null)S.return=s,Ue=S;else e:for(s=w;Ue!==null;){if(a=Ue,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:hy(9,a)}}catch(P){Wt(a,a.return,P)}if(a===s){Ue=null;break e}var T=a.sibling;if(T!==null){T.return=a.return,Ue=T;break e}Ue=a.return}}if(ut=i,Ys(),Yi&&typeof Yi.onPostCommitFiberRoot=="function")try{Yi.onPostCommitFiberRoot(oy,e)}catch{}r=!0}return r}finally{_t=n,Zr.transition=t}}return!1}function _k(e,t,n){t=xc(n,t),t=JA(e,t,1),e=xs(e,t,1),t=lr(),e!==null&&(Md(e,1,t),_r(e,t))}function Wt(e,t,n){if(e.tag===3)_k(e,e,n);else for(;t!==null;){if(t.tag===3){_k(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ss===null||!Ss.has(r))){e=xc(n,e),e=e4(t,e,1),t=xs(t,e,1),e=lr(),t!==null&&(Md(t,1,e),_r(t,e));break}}t=t.return}}function MV(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lr(),e.pingedLanes|=e.suspendedLanes&n,Tn===e&&(Hn&n)===n&&(vn===4||vn===3&&(Hn&130023424)===Hn&&500>en()-pS?Ra(e,0):hS|=n),_r(e,t)}function b4(e,t){t===0&&(e.mode&1?(t=Kh,Kh<<=1,!(Kh&130023424)&&(Kh=4194304)):t=1);var n=lr();e=Co(e,t),e!==null&&(Md(e,t,n),_r(e,n))}function RV(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),b4(e,n)}function NV(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),b4(e,n)}var w4;w4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||vr.current)mr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return mr=!1,_V(e,t,n);mr=!!(e.flags&131072)}else mr=!1,jt&&t.flags&1048576&&CA(t,bg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qp(e,t),e=t.pendingProps;var i=yc(t,er.current);oc(t,n),i=aS(null,t,r,e,i,n);var o=lS();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,yr(r)?(o=!0,yg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nS(t),i.updater=fy,t.stateNode=i,i._reactInternals=t,Nb(t,r,e,n),t=Ab(null,t,r,!0,o,n)):(t.tag=0,jt&&o&&Z2(t),sr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=DV(r),e=fi(r,e),i){case 0:t=Db(null,t,r,e,n);break e;case 1:t=ck(null,t,r,e,n);break e;case 11:t=ak(null,t,r,e,n);break e;case 14:t=lk(null,t,r,fi(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:fi(r,i),Db(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fi(r,i),ck(e,t,r,i,n);case 3:e:{if(i4(t),e===null)throw Error(Ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,PA(e,t),Sg(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=xc(Error(Ee(423)),t),t=uk(e,t,r,n,i);break e}else if(r!==i){i=xc(Error(Ee(424)),t),t=uk(e,t,r,n,i);break e}else for(kr=ws(t.stateNode.containerInfo.firstChild),Rr=t,jt=!0,pi=null,n=NA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_c(),r===i){t=Eo(e,t,n);break e}sr(e,t,r,n)}t=t.child}return t;case 5:return LA(t),e===null&&kb(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Cb(r,i)?s=null:o!==null&&Cb(r,o)&&(t.flags|=32),r4(e,t),sr(e,t,s,n),t.child;case 6:return e===null&&kb(t),null;case 13:return o4(e,t,n);case 4:return rS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bc(t,null,r,n):sr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fi(r,i),ak(e,t,r,i,n);case 7:return sr(e,t,t.pendingProps,n),t.child;case 8:return sr(e,t,t.pendingProps.children,n),t.child;case 12:return sr(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(wg,r._currentValue),r._currentValue=s,o!==null)if(Ei(o.value,s)){if(o.children===i.children&&!vr.current){t=Eo(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=bo(-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),Mb(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),Mb(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}sr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,oc(t,n),i=Jr(i),r=r(i),t.flags|=1,sr(e,t,r,n),t.child;case 14:return r=t.type,i=fi(r,t.pendingProps),i=fi(r.type,i),lk(e,t,r,i,n);case 15:return t4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fi(r,i),Qp(e,t),t.tag=1,yr(r)?(e=!0,yg(t)):e=!1,oc(t,n),MA(t,r,i),Nb(t,r,i,n),Ab(null,t,r,!0,e,n);case 19:return s4(e,t,n);case 22:return n4(e,t,n)}throw Error(Ee(156,t.tag))};function x4(e,t){return GD(e,t)}function LV(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 LV(e,t,n,r)}function yS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DV(e){if(typeof e=="function")return yS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===I2)return 11;if(e===F2)return 14}return 2}function Es(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 tm(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")yS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $l:return Na(n.children,i,o,t);case j2:s=8,i|=8;break;case nb:return e=qr(12,n,t,i|2),e.elementType=nb,e.lanes=o,e;case rb:return e=qr(13,n,t,i),e.elementType=rb,e.lanes=o,e;case ib:return e=qr(19,n,t,i),e.elementType=ib,e.lanes=o,e;case RD:return my(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kD:s=10;break e;case MD:s=9;break e;case I2:s=11;break e;case F2:s=14;break e;case Xo: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 Na(e,t,n,r){return e=qr(7,e,r,t),e.lanes=n,e}function my(e,t,n,r){return e=qr(22,e,r,t),e.elementType=RD,e.lanes=n,e.stateNode={isHidden:!1},e}function L0(e,t,n){return e=qr(6,e,null,t),e.lanes=n,e}function D0(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 AV(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=p0(0),this.expirationTimes=p0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=p0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _S(e,t,n,r,i,o,s,a,l){return e=new AV(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},nS(o),e}function jV(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function S4(e){if(!e)return Ds;e=e._reactInternals;e:{if(rl(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(yr(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(yr(n))return xA(e,n,t)}return t}function C4(e,t,n,r,i,o,s,a,l){return e=_S(n,r,!0,e,i,o,s,a,l),e.context=S4(null),n=e.current,r=lr(),i=Cs(n),o=bo(r,i),o.callback=t??null,xs(n,o,i),e.current.lanes=i,Md(e,i,r),_r(e,r),e}function gy(e,t,n,r){var i=t.current,o=lr(),s=Cs(i);return n=S4(n),t.context===null?t.context=n:t.pendingContext=n,t=bo(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xs(i,t,s),e!==null&&(wi(e,i,s,o),Zp(e,i,s)),s}function Rg(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 bk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bS(e,t){bk(e,t),(e=e.alternate)&&bk(e,t)}function IV(){return null}var E4=typeof reportError=="function"?reportError:function(e){console.error(e)};function wS(e){this._internalRoot=e}vy.prototype.render=wS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));gy(e,t,null,null)};vy.prototype.unmount=wS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Va(function(){gy(null,e,null,null)}),t[So]=null}};function vy(e){this._internalRoot=e}vy.prototype.unstable_scheduleHydration=function(e){if(e){var t=tA();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ns.length&&t!==0&&t<ns[n].priority;n++);ns.splice(n,0,e),n===0&&rA(e)}};function xS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wk(){}function FV(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Rg(s);o.call(c)}}var s=C4(t,r,e,0,null,!1,!1,"",wk);return e._reactRootContainer=s,e[So]=s.current,qf(e.nodeType===8?e.parentNode:e),Va(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Rg(l);a.call(c)}}var l=_S(e,0,!1,null,null,!1,!1,"",wk);return e._reactRootContainer=l,e[So]=l.current,qf(e.nodeType===8?e.parentNode:e),Va(function(){gy(t,l,n,r)}),l}function _y(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=Rg(s);a.call(l)}}gy(t,s,e,i)}else s=FV(n,t,e,i,r);return Rg(s)}JD=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vu(t.pendingLanes);n!==0&&(U2(t,n|1),_r(t,en()),!(ut&6)&&(Sc=en()+500,Ys()))}break;case 13:Va(function(){var r=Co(e,1);if(r!==null){var i=lr();wi(r,e,1,i)}}),bS(e,1)}};z2=function(e){if(e.tag===13){var t=Co(e,134217728);if(t!==null){var n=lr();wi(t,e,134217728,n)}bS(e,134217728)}};eA=function(e){if(e.tag===13){var t=Cs(e),n=Co(e,t);if(n!==null){var r=lr();wi(n,e,t,r)}bS(e,t)}};tA=function(){return _t};nA=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}};pb=function(e,t,n){switch(t){case"input":if(ab(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=cy(r);if(!i)throw Error(Ee(90));LD(r),ab(r,i)}}}break;case"textarea":AD(e,n);break;case"select":t=n.value,t!=null&&tc(e,!!n.multiple,t,!1)}};zD=mS;HD=Va;var $V={usingClientEntryPoint:!1,Events:[Nd,Hl,cy,BD,UD,mS]},Pu={findFiberByHostInstance:Sa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},BV={bundleType:Pu.bundleType,version:Pu.version,rendererPackageName:Pu.rendererPackageName,rendererConfig:Pu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Do.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=YD(e),e===null?null:e.stateNode},findFiberByHostInstance:Pu.findFiberByHostInstance||IV,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 ap=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ap.isDisabled&&ap.supportsFiber)try{oy=ap.inject(BV),Yi=ap}catch{}}jr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$V;jr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xS(t))throw Error(Ee(200));return jV(e,t,null,n)};jr.createRoot=function(e,t){if(!xS(e))throw Error(Ee(299));var n=!1,r="",i=E4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=_S(e,1,!1,null,null,n,!1,r,i),e[So]=t.current,qf(e.nodeType===8?e.parentNode:e),new wS(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=YD(t),e=e===null?null:e.stateNode,e};jr.flushSync=function(e){return Va(e)};jr.hydrate=function(e,t,n){if(!yy(t))throw Error(Ee(200));return _y(null,e,t,!0,n)};jr.hydrateRoot=function(e,t,n){if(!xS(e))throw Error(Ee(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=E4;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=C4(t,null,e,1,n??null,i,!1,o,s),e[So]=t.current,qf(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 vy(t)};jr.render=function(e,t,n){if(!yy(t))throw Error(Ee(200));return _y(null,e,t,!1,n)};jr.unmountComponentAtNode=function(e){if(!yy(e))throw Error(Ee(40));return e._reactRootContainer?(Va(function(){_y(null,null,e,!1,function(){e._reactRootContainer=null,e[So]=null})}),!0):!1};jr.unstable_batchedUpdates=mS;jr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yy(n))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return _y(e,t,n,!1,r)};jr.version="18.2.0-next-9e3b772b8-20220608";function T4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T4)}catch(e){console.error(e)}}T4(),CD.exports=jr;var Dd=CD.exports;const La=ri(Dd);var O4,xk=Dd;O4=xk.createRoot,xk.hydrateRoot;var P4={exports:{}},k4={};/**
|
||
* @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 Cc=B;function UV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zV=typeof Object.is=="function"?Object.is:UV,HV=Cc.useState,VV=Cc.useEffect,WV=Cc.useLayoutEffect,YV=Cc.useDebugValue;function qV(e,t){var n=t(),r=HV({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return WV(function(){i.value=n,i.getSnapshot=t,A0(i)&&o({inst:i})},[e,n,t]),VV(function(){return A0(i)&&o({inst:i}),e(function(){A0(i)&&o({inst:i})})},[e]),YV(n),n}function A0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zV(e,n)}catch{return!0}}function GV(e,t){return t()}var ZV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?GV:qV;k4.useSyncExternalStore=Cc.useSyncExternalStore!==void 0?Cc.useSyncExternalStore:ZV;P4.exports=k4;var M4=P4.exports,KV={};/**
|
||
* @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 by=B,XV=M4;function QV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var JV=typeof Object.is=="function"?Object.is:QV,eW=XV.useSyncExternalStore,tW=by.useRef,nW=by.useEffect,rW=by.useMemo,iW=by.useDebugValue;KV.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=tW(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=rW(function(){function l(g){if(!c){if(c=!0,f=g,g=r(g),i!==void 0&&s.hasValue){var v=s.value;if(i(v,g))return h=v}return h=g}if(v=h,JV(f,g))return v;var y=r(g);return i!==void 0&&i(v,y)?v:(f=g,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=eW(e,o[0],o[1]);return nW(function(){s.hasValue=!0,s.value=a},[a]),iW(a),a};function oW(e){e()}let R4=oW;const sW=e=>R4=e,aW=()=>R4,N4=B.createContext(null),lW=()=>{throw new Error("uSES not initialized!")};function ac(){return ac=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},ac.apply(this,arguments)}function SS(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 L4={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 Pn=typeof Symbol=="function"&&Symbol.for,CS=Pn?Symbol.for("react.element"):60103,ES=Pn?Symbol.for("react.portal"):60106,wy=Pn?Symbol.for("react.fragment"):60107,xy=Pn?Symbol.for("react.strict_mode"):60108,Sy=Pn?Symbol.for("react.profiler"):60114,Cy=Pn?Symbol.for("react.provider"):60109,Ey=Pn?Symbol.for("react.context"):60110,TS=Pn?Symbol.for("react.async_mode"):60111,Ty=Pn?Symbol.for("react.concurrent_mode"):60111,Oy=Pn?Symbol.for("react.forward_ref"):60112,Py=Pn?Symbol.for("react.suspense"):60113,cW=Pn?Symbol.for("react.suspense_list"):60120,ky=Pn?Symbol.for("react.memo"):60115,My=Pn?Symbol.for("react.lazy"):60116,uW=Pn?Symbol.for("react.block"):60121,fW=Pn?Symbol.for("react.fundamental"):60117,dW=Pn?Symbol.for("react.responder"):60118,hW=Pn?Symbol.for("react.scope"):60119;function Fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CS:switch(e=e.type,e){case TS:case Ty:case wy:case Sy:case xy:case Py:return e;default:switch(e=e&&e.$$typeof,e){case Ey:case Oy:case My:case ky:case Cy:return e;default:return t}}case ES:return t}}}function D4(e){return Fr(e)===Ty}bt.AsyncMode=TS;bt.ConcurrentMode=Ty;bt.ContextConsumer=Ey;bt.ContextProvider=Cy;bt.Element=CS;bt.ForwardRef=Oy;bt.Fragment=wy;bt.Lazy=My;bt.Memo=ky;bt.Portal=ES;bt.Profiler=Sy;bt.StrictMode=xy;bt.Suspense=Py;bt.isAsyncMode=function(e){return D4(e)||Fr(e)===TS};bt.isConcurrentMode=D4;bt.isContextConsumer=function(e){return Fr(e)===Ey};bt.isContextProvider=function(e){return Fr(e)===Cy};bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CS};bt.isForwardRef=function(e){return Fr(e)===Oy};bt.isFragment=function(e){return Fr(e)===wy};bt.isLazy=function(e){return Fr(e)===My};bt.isMemo=function(e){return Fr(e)===ky};bt.isPortal=function(e){return Fr(e)===ES};bt.isProfiler=function(e){return Fr(e)===Sy};bt.isStrictMode=function(e){return Fr(e)===xy};bt.isSuspense=function(e){return Fr(e)===Py};bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wy||e===Ty||e===Sy||e===xy||e===Py||e===cW||typeof e=="object"&&e!==null&&(e.$$typeof===My||e.$$typeof===ky||e.$$typeof===Cy||e.$$typeof===Ey||e.$$typeof===Oy||e.$$typeof===fW||e.$$typeof===dW||e.$$typeof===hW||e.$$typeof===uW)};bt.typeOf=Fr;L4.exports=bt;var pW=L4.exports,OS=pW,mW={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gW={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},PS={};PS[OS.ForwardRef]=vW;PS[OS.Memo]=A4;function Sk(e){return OS.isMemo(e)?A4:PS[e.$$typeof]||mW}var yW=Object.defineProperty,_W=Object.getOwnPropertyNames,Ck=Object.getOwnPropertySymbols,bW=Object.getOwnPropertyDescriptor,wW=Object.getPrototypeOf,Ek=Object.prototype;function j4(e,t,n){if(typeof t!="string"){if(Ek){var r=wW(t);r&&r!==Ek&&j4(e,r,n)}var i=_W(t);Ck&&(i=i.concat(Ck(t)));for(var o=Sk(e),s=Sk(t),a=0;a<i.length;++a){var l=i[a];if(!gW[l]&&!(n&&n[l])&&!(s&&s[l])&&!(o&&o[l])){var c=bW(t,l);try{yW(e,l,c)}catch{}}}}return e}var xW=j4;const Tk=ri(xW);var I4={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 kS=Symbol.for("react.element"),MS=Symbol.for("react.portal"),Ry=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),Ly=Symbol.for("react.profiler"),Dy=Symbol.for("react.provider"),Ay=Symbol.for("react.context"),SW=Symbol.for("react.server_context"),jy=Symbol.for("react.forward_ref"),Iy=Symbol.for("react.suspense"),Fy=Symbol.for("react.suspense_list"),$y=Symbol.for("react.memo"),By=Symbol.for("react.lazy"),CW=Symbol.for("react.offscreen"),EW=Symbol.for("react.module.reference");function ii(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kS:switch(e=e.type,e){case Ry:case Ly:case Ny:case Iy:case Fy:return e;default:switch(e=e&&e.$$typeof,e){case SW:case Ay:case jy:case By:case $y:case Dy:return e;default:return t}}case MS:return t}}}wt.ContextConsumer=Ay;wt.ContextProvider=Dy;wt.Element=kS;wt.ForwardRef=jy;wt.Fragment=Ry;wt.Lazy=By;wt.Memo=$y;wt.Portal=MS;wt.Profiler=Ly;wt.StrictMode=Ny;wt.Suspense=Iy;wt.SuspenseList=Fy;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(e){return ii(e)===Ay};wt.isContextProvider=function(e){return ii(e)===Dy};wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kS};wt.isForwardRef=function(e){return ii(e)===jy};wt.isFragment=function(e){return ii(e)===Ry};wt.isLazy=function(e){return ii(e)===By};wt.isMemo=function(e){return ii(e)===$y};wt.isPortal=function(e){return ii(e)===MS};wt.isProfiler=function(e){return ii(e)===Ly};wt.isStrictMode=function(e){return ii(e)===Ny};wt.isSuspense=function(e){return ii(e)===Iy};wt.isSuspenseList=function(e){return ii(e)===Fy};wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ry||e===Ly||e===Ny||e===Iy||e===Fy||e===CW||typeof e=="object"&&e!==null&&(e.$$typeof===By||e.$$typeof===$y||e.$$typeof===Dy||e.$$typeof===Ay||e.$$typeof===jy||e.$$typeof===EW||e.getModuleId!==void 0)};wt.typeOf=ii;I4.exports=wt;var TW=I4.exports;const OW=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function PW(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let a=!1,l,c,f,h,p;function g(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 b(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?b(S,T):g(S,T)}}function kW(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=SS(t,OW);const s=n(e,o),a=r(e,o),l=i(e,o);return PW(s,a,l,e,o)}function MW(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 Ok(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function F4(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=Ok(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Ok(c),c=o(a,l)),c},o}}function RS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function RW(e){return e&&typeof e=="object"?qb(t=>MW(e,t)):e?typeof e=="function"?F4(e):RS(e,"mapDispatchToProps"):qb(t=>({dispatch:t}))}function NW(e){return e?typeof e=="function"?F4(e):RS(e,"mapStateToProps"):qb(()=>({}))}function LW(e,t,n){return ac({},n,e,t)}function DW(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 AW(e){return e?typeof e=="function"?DW(e):RS(e,"mergeProps"):()=>LW}function jW(){const e=aW();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 Pk={notify(){},get:()=>[]};function $4(e,t){let n,r=Pk;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=jW())}function c(){n&&(n(),n=void 0,r.clear(),r=Pk)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const IW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ng=IW?B.useLayoutEffect:B.useEffect;function kk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function j0(e,t){if(kk(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])||!kk(e[n[i]],t[n[i]]))return!1;return!0}const FW=["reactReduxForwardedRef"];let B4=lW;const $W=e=>{B4=e},BW=[null,null];function UW(e,t,n){Ng(()=>e(...t),n)}function zW(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function HW(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const g=()=>{if(h||!a.current)return;const y=t.getState();let x,b;try{x=r(y,i.current)}catch(w){b=w,p=w}b||(p=null),x===o.current?s.current||c():(o.current=x,l.current=x,s.current=!0,f())};return n.onStateChange=g,n.trySubscribe(),g(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function VW(e,t){return e===t}function U4(e,t,n,{pure:r,areStatesEqual:i=VW,areOwnPropsEqual:o=j0,areStatePropsEqual:s=j0,areMergedPropsEqual:a=j0,forwardRef:l=!1,context:c=N4}={}){const f=c,h=NW(e),p=RW(t),g=AW(n),v=!!e;return x=>{const b=x.displayName||x.name||"Component",w=`Connect(${b})`,S={shouldHandleStateChanges:v,displayName:w,wrappedComponentName:b,WrappedComponent:x,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:g,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function T(N){const[D,V,A]=B.useMemo(()=>{const{reactReduxForwardedRef:K}=N,oe=SS(N,FW);return[N.context,K,oe]},[N]),W=B.useMemo(()=>D&&D.Consumer&&TW.isContextConsumer(H.createElement(D.Consumer,null))?D:f,[D,f]),Y=B.useContext(W),ee=!!N.store&&!!N.store.getState&&!!N.store.dispatch,q=!!Y&&!!Y.store,X=ee?N.store:Y.store,ie=q?Y.getServerState:X.getState,le=B.useMemo(()=>kW(X.dispatch,S),[X]),[G,F]=B.useMemo(()=>{if(!v)return BW;const K=$4(X,ee?void 0:Y.subscription),oe=K.notifyNestedSubs.bind(K);return[K,oe]},[X,ee,Y]),j=B.useMemo(()=>ee?Y:ac({},Y,{subscription:G}),[ee,Y,G]),U=B.useRef(),te=B.useRef(A),z=B.useRef(),Z=B.useRef(!1);B.useRef(!1);const ne=B.useRef(!1),ae=B.useRef();Ng(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const pe=B.useMemo(()=>()=>z.current&&A===te.current?z.current:le(X.getState(),A),[X,A]),O=B.useMemo(()=>oe=>G?HW(v,X,G,le,te,U,Z,ne,z,F,oe):()=>{},[G]);UW(zW,[te,U,Z,A,z,F]);let R;try{R=B4(O,pe,ie?()=>le(ie(),A):pe)}catch(K){throw ae.current&&(K.message+=`
|
||
The error may be correlated with this previous error:
|
||
${ae.current.stack}
|
||
|
||
`),K}Ng(()=>{ae.current=void 0,z.current=void 0,U.current=R});const I=B.useMemo(()=>H.createElement(x,ac({},R,{ref:V})),[V,x,R]);return B.useMemo(()=>v?H.createElement(W.Provider,{value:j},I):I,[W,I,j])}const k=H.memo(T);if(k.WrappedComponent=x,k.displayName=T.displayName=w,l){const D=H.forwardRef(function(A,W){return H.createElement(k,ac({},A,{reactReduxForwardedRef:W}))});return D.displayName=w,D.WrappedComponent=x,Tk(D,x)}return Tk(k,x)}}function z4({store:e,context:t,children:n,serverState:r}){const i=B.useMemo(()=>{const a=$4(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=B.useMemo(()=>e.getState(),[e]);Ng(()=>{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||N4;return H.createElement(s.Provider,{value:i},n)}$W(M4.useSyncExternalStore);sW(Dd.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 Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg.apply(this,arguments)}var ds;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ds||(ds={}));const Mk="popstate";function WW(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return Gb("",{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:nd(i)}return GW(t,n,null,e)}function fn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function YW(){return Math.random().toString(36).substr(2,8)}function Rk(e){return{usr:e.state,key:e.key}}function Gb(e,t,n,r){return n===void 0&&(n=null),Lg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hc(t):t,{state:n,key:t&&t.key||r||YW()})}function nd(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 Hc(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 qW(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:nd(e);return fn(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function GW(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=ds.Pop,l=null;function c(){a=ds.Pop,l&&l({action:a,location:p.location})}function f(g,v){a=ds.Push;let y=Gb(p.location,g,v);n&&n(y,g);let x=Rk(y),b=p.createHref(y);try{s.pushState(x,"",b)}catch{i.location.assign(b)}o&&l&&l({action:a,location:p.location})}function h(g,v){a=ds.Replace;let y=Gb(p.location,g,v);n&&n(y,g);let x=Rk(y),b=p.createHref(y);s.replaceState(x,"",b),o&&l&&l({action:a,location:p.location})}let p={get action(){return a},get location(){return e(i,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Mk,c),l=g,()=>{i.removeEventListener(Mk,c),l=null}},createHref(g){return t(i,g)},encodeLocation(g){let v=qW(typeof g=="string"?g:nd(g));return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(g){return s.go(g)}};return p}var Nk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Nk||(Nk={}));function ZW(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Hc(t):t,i=W4(r.pathname||"/",n);if(i==null)return null;let o=H4(e);KW(o);let s=null;for(let a=0;s==null&&a<o.length;++a)s=oY(o[a],lY(i));return s}function H4(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=Ts([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+'".')),H4(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:rY(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 V4(o.path))i(o,s,l)}),t}function V4(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=V4(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 KW(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const XW=/^:\w+$/,QW=3,JW=2,eY=1,tY=10,nY=-2,Lk=e=>e==="*";function rY(e,t){let n=e.split("/"),r=n.length;return n.some(Lk)&&(r+=nY),t&&(r+=JW),n.filter(i=>!Lk(i)).reduce((i,o)=>i+(XW.test(o)?QW:o===""?eY:tY),r)}function iY(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 oY(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=sY({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:Ts([i,f.pathname]),pathnameBase:dY(Ts([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Ts([i,f.pathnameBase]))}return o}function sY(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=aY(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]=cY(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function aY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),NS(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 lY(e){try{return decodeURI(e)}catch(t){return NS(!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 cY(e,t){try{return decodeURIComponent(e)}catch(n){return NS(!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 W4(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 NS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Hc(e):e;return{pathname:n?n.startsWith("/")?n:fY(n,t):t,search:hY(r),hash:pY(i)}}function fY(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 I0(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 Y4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function q4(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Hc(e):(i=Lg({},e),fn(!i.pathname||!i.pathname.includes("?"),I0("?","pathname","search",i)),fn(!i.pathname||!i.pathname.includes("#"),I0("#","pathname","hash",i)),fn(!i.search||!i.search.includes("#"),I0("#","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=uY(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ts=e=>e.join("/").replace(/\/\/+/g,"/"),dY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hY=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mY{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 gY(e){return e instanceof mY}const G4=["post","put","patch","delete"];new Set(G4);const vY=["get",...G4];new Set(vY);/**
|
||
* 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 Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zb.apply(this,arguments)}function yY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const _Y=typeof Object.is=="function"?Object.is:yY,{useState:bY,useEffect:wY,useLayoutEffect:xY,useDebugValue:SY}=B1;function CY(e,t,n){const r=t(),[{inst:i},o]=bY({inst:{value:r,getSnapshot:t}});return xY(()=>{i.value=r,i.getSnapshot=t,F0(i)&&o({inst:i})},[e,r,t]),wY(()=>(F0(i)&&o({inst:i}),e(()=>{F0(i)&&o({inst:i})})),[e]),SY(r),r}function F0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!_Y(n,r)}catch{return!0}}function EY(e,t,n){return t()}const TY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OY=!TY,PY=OY?EY:CY;"useSyncExternalStore"in B1&&(e=>e.useSyncExternalStore)(B1);const kY=B.createContext(null),MY=B.createContext(null),Uy=B.createContext(null),Ad=B.createContext(null),zy=B.createContext(null),il=B.createContext({outlet:null,matches:[]}),Z4=B.createContext(null);function RY(e,t){let{relative:n}=t===void 0?{}:t;ol()||fn(!1);let{basename:r,navigator:i}=B.useContext(Ad),{hash:o,pathname:s,search:a}=LS(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Ts([r,s])),i.createHref({pathname:l,search:a,hash:o})}function ol(){return B.useContext(zy)!=null}function bn(){return ol()||fn(!1),B.useContext(zy).location}function eo(){ol()||fn(!1);let{basename:e,navigator:t}=B.useContext(Ad),{matches:n}=B.useContext(il),{pathname:r}=bn(),i=JSON.stringify(Y4(n).map(a=>a.pathnameBase)),o=B.useRef(!1);return B.useEffect(()=>{o.current=!0}),B.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=q4(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:Ts([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function sl(){let{matches:e}=B.useContext(il),t=e[e.length-1];return t?t.params:{}}function LS(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=B.useContext(il),{pathname:i}=bn(),o=JSON.stringify(Y4(r).map(s=>s.pathnameBase));return B.useMemo(()=>q4(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function NY(e,t){ol()||fn(!1);let{navigator:n}=B.useContext(Ad),r=B.useContext(Uy),{matches:i}=B.useContext(il),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=bn(),c;if(t){var f;let y=typeof t=="string"?Hc(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)||"/",g=ZW(e,{pathname:p}),v=jY(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:Ts([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:Ts([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return t&&v?B.createElement(zy.Provider,{value:{location:Zb({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ds.Pop}},v):v}function LY(){let e=BY(),t=gY(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 B.createElement(B.Fragment,null,B.createElement("h2",null,"Unhandled Thrown Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},t),n?B.createElement("pre",{style:i},n):null,B.createElement("p",null,"💿 Hey developer 👋"),B.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",B.createElement("code",{style:o},"errorElement")," props on ",B.createElement("code",{style:o},"<Route>")))}class DY extends B.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?B.createElement(il.Provider,{value:this.props.routeContext},B.createElement(Z4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AY(e){let{routeContext:t,match:n,children:r}=e,i=B.useContext(kY);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),B.createElement(il.Provider,{value:t},r)}function jY(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||B.createElement(LY,null):null,f=t.concat(r.slice(0,a+1)),h=()=>B.createElement(AY,{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)?B.createElement(DY,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var Dk;(function(e){e.UseRevalidator="useRevalidator"})(Dk||(Dk={}));var Dg;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Dg||(Dg={}));function IY(e){let t=B.useContext(Uy);return t||fn(!1),t}function FY(e){let t=B.useContext(il);return t||fn(!1),t}function $Y(e){let t=FY(),n=t.matches[t.matches.length-1];return n.route.id||fn(!1),n.route.id}function BY(){var e;let t=B.useContext(Z4),n=IY(Dg.UseRouteError),r=$Y(Dg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function DS(e){let{to:t,replace:n,state:r,relative:i}=e;ol()||fn(!1);let o=B.useContext(Uy),s=eo();return B.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function gt(e){fn(!1)}function UY(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ds.Pop,navigator:o,static:s=!1}=e;ol()&&fn(!1);let a=t.replace(/^\/*/,"/"),l=B.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Hc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:g="default"}=r,v=B.useMemo(()=>{let y=W4(c,a);return y==null?null:{pathname:y,search:f,hash:h,state:p,key:g}},[a,c,f,h,p,g]);return v==null?null:B.createElement(Ad.Provider,{value:l},B.createElement(zy.Provider,{children:n,value:{location:v,navigationType:i}}))}function Hy(e){let{children:t,location:n}=e,r=B.useContext(MY),i=r&&!t?r.router.routes:Kb(t);return NY(i,n)}var Ak;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Ak||(Ak={}));new Promise(()=>{});function Kb(e,t){t===void 0&&(t=[]);let n=[];return B.Children.forEach(e,(r,i)=>{if(!B.isValidElement(r))return;if(r.type===B.Fragment){n.push.apply(n,Kb(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=Kb(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 Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ag.apply(this,arguments)}function K4(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 zY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HY(e,t){return e.button===0&&(!t||t==="_self")&&!zY(e)}const VY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],WY=["aria-current","caseSensitive","className","end","style","to","children"];function X4(e){let{basename:t,children:n,window:r}=e,i=B.useRef();i.current==null&&(i.current=WW({window:r,v5Compat:!0}));let o=i.current,[s,a]=B.useState({action:o.action,location:o.location});return B.useLayoutEffect(()=>o.listen(a),[o]),B.createElement(UY,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const Dt=B.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=K4(t,VY),p=RY(c,{relative:i}),g=YY(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function v(y){r&&r(y),y.defaultPrevented||g(y)}return B.createElement("a",Ag({},h,{href:p,onClick:o?r:v,ref:n,target:l}))}),Q4=B.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=K4(t,WY),h=LS(l,{relative:f.relative}),p=bn(),g=B.useContext(Uy),{navigator:v}=B.useContext(Ad),y=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,x=p.pathname,b=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(x=x.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase());let w=x===y||!s&&x.startsWith(y)&&x.charAt(y.length)==="/",S=b!=null&&(b===y||!s&&b.startsWith(y)&&b.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 B.createElement(Dt,Ag({},f,{"aria-current":T,className:P,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:w,isPending:S}):c)});var jk;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(jk||(jk={}));var Ik;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ik||(Ik={}));function YY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=eo(),l=bn(),c=LS(e,{relative:s});return B.useCallback(f=>{if(HY(f,n)){f.preventDefault();let h=r!==void 0?r:nd(l)===nd(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const qY="shlink-web-client",GY="A React-based progressive web application for shlink",ZY="/shlink-web-client/feature/shlink-web-component",KY="https://github.com/shlinkio/shlink-web-client",XY="MIT",QY={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss shlink-web-component/*.scss shlink-web-component/**/*.scss shlink-frontend-kit/*.scss shlink-frontend-kit/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src shlink-web-component shlink-frontend-kit 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"},JY={"@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"},eq={"@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"},tq=[">0.2%","not dead","not ie <= 11","not op_mini all"],jg={name:qY,description:GY,private:!1,homepage:ZY,repository:KY,license:XY,scripts:QY,dependencies:JY,devDependencies:eq,browserslist:tq};var Ti,Ki=".",J4="function",ej="string",tj="__global__",AS="Provider",nq=0,jS=Array.prototype.slice,rq=function(t,n){var r=t[n];if(r===void 0&&Ti.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Vy=function(t){var n;return this.nested[t]||(n=Ti.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},nj=function(t){return t.split(Ki).reduce(rq,this)},iq=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]},oq=function(t,n){var r,i;return typeof t===J4&&(n=t,t=tj),r=t.split(Ki),i=r.shift(),r.length?Vy.call(this,i).middleware(r.join(Ki),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},sq=function(t,n){return n(t)},Fk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},aq=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+AS,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=Fk(s,t).reduce(sq,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:iq(Fk(a,t),t,f,o)}},Object.defineProperties(o,i),this},rj=function(t,n){var r,i;return r=t.split(Ki),this.providerMap[t]&&r.length===1&&!this.container[t+AS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Vy.call(this,i).provider(r.join(Ki),n),this):aq.call(this,i,n))},IS=function(t,n){return rj.call(this,t,function(){this.$get=n})},ij=function(t,n,r){var i=arguments.length>3?jS.call(arguments,3):[],o=this;return IS.call(this,t,function(){var a=n,l=i.map(nj,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},lq=function(t,n){return ij.apply(this,[t,n,!0].concat(jS.call(arguments,2)))},cq=function(t,n){return ij.apply(this,[t,n,!1].concat(jS.call(arguments,2)))},oj=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},sj=function(t,n){var r=t[n];return r||(r={},oj.call(t,n,r)),r},uq=function(t,n){var r;return r=t.split(Ki),t=r.pop(),oj.call(r.reduce(sj,this.container),t,n),this},fq=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},dq=function(t,n){var r=t.split(Ki);return t=r.pop(),fq.call(r.reduce(sj,this.container),t,n),this},aj=function(t,n){var r,i;return typeof t===J4&&(n=t,t=tj),r=t.split(Ki),i=r.shift(),r.length?Vy.call(this,i).decorator(r.join(Ki),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},hq=function(t){return this.deferred.push(t),this},pq=function(t){return(t||[]).map(nj,this.container)},mq=function(t,n){return IS.call(this,t,function(i){return{instance:n.bind(n,i)}})},gq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},FS=function(t){return Object.keys(t||this.container||{}).filter(gq)},Ig={},vq=function(t){var n;return typeof t===ej?(n=Ig[t],n||(Ig[t]=n=new Ti,n.constant("BOTTLE_NAME",t)),n):new Ti},yq=function(t){typeof t===ej?delete Ig[t]:Ig={}},lj=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},$k=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+AS]},_q=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(Ki);s.length>1&&s.forEach($k,Vy.call(this,s[0])),$k.call(this,o),this.provider(o,n[o])}},this)},bq=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ti=function e(t){if(!(this instanceof e))return e.pop(t);this.id=nq++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:aj.bind(this),$register:lj.bind(this),$list:FS.bind(this)}};Ti.prototype={constant:dq,decorator:aj,defer:hq,digest:pq,factory:IS,instanceFactory:mq,list:FS,middleware:oq,provider:rj,resetProviders:_q,register:lj,resolve:bq,service:lq,serviceFactory:cq,value:uq};Ti.pop=vq;Ti.clear=yq;Ti.list=FS;Ti.config={strict:!1};const cj=Ti;var wq=function(){return!0};const uj=wq;function Pt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function yt(e){return function t(n){return arguments.length===0||Pt(n)?t:e.apply(this,arguments)}}function lt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Pt(n)?t:yt(function(i){return e(n,i)});default:return Pt(n)&&Pt(r)?t:Pt(n)?yt(function(i){return e(i,r)}):Pt(r)?yt(function(i){return e(n,i)}):e(n,r)}}}function xq(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 Vc(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 Wy(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&&(!Pt(t[s])||i>=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,Pt(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Vc(o,Wy(e,r,n))}}var Sq=lt(function(t,n){return t===1?yt(n):Vc(t,Wy(t,[],n))});const Fg=Sq;function qs(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Pt(n)?t:lt(function(o,s){return e(n,o,s)});case 2:return Pt(n)&&Pt(r)?t:Pt(n)?lt(function(o,s){return e(o,r,s)}):Pt(r)?lt(function(o,s){return e(n,o,s)}):yt(function(o){return e(n,r,o)});default:return Pt(n)&&Pt(r)&&Pt(i)?t:Pt(n)&&Pt(r)?lt(function(o,s){return e(o,s,i)}):Pt(n)&&Pt(i)?lt(function(o,s){return e(o,r,s)}):Pt(r)&&Pt(i)?lt(function(o,s){return e(n,o,s)}):Pt(n)?yt(function(o){return e(o,r,i)}):Pt(r)?yt(function(o){return e(n,o,i)}):Pt(i)?yt(function(o){return e(n,r,o)}):e(n,r,i)}}}const jd=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Cq(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function $S(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!jd(i)){for(var o=0;o<e.length;){if(typeof i[e[o]]=="function")return i[e[o]].apply(i,r);o+=1}if(Cq(i)){var s=t.apply(null,r);return s(i)}}return n.apply(this,arguments)}}const rd={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var Eq=lt(function(t,n){return n>t?n:t});const fj=Eq;function nm(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function Yy(e){return Object.prototype.toString.call(e)==="[object String]"}var Tq=yt(function(t){return jd(t)?!0:!t||typeof t!="object"||Yy(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const dj=Tq;var Oq=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 Pq(e){return new Oq(e)}var kq=lt(function(t,n){return Vc(t.length,function(){return t.apply(n,arguments)})});const Mq=kq;function Rq(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 Bk(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 Uk(e,t,n,r){return e["@@transducer/result"](n[r](Mq(e["@@transducer/step"],e),t))}var zk=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Wc(e,t,n){if(typeof e=="function"&&(e=Pq(e)),dj(n))return Rq(e,t,n);if(typeof n["fantasy-land/reduce"]=="function")return Uk(e,t,n,"fantasy-land/reduce");if(n[zk]!=null)return Bk(e,t,n[zk]());if(typeof n.next=="function")return Bk(e,t,n);if(typeof n.reduce=="function")return Uk(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var Nq=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=rd.init,e.prototype["@@transducer/result"]=rd.result,e.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},e}(),Lq=lt(function(t,n){return new Nq(t,n)});const Dq=Lq;function Mr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var Hk=Object.prototype.toString,Aq=function(){return Hk.call(arguments)==="[object Arguments]"?function(t){return Hk.call(t)==="[object Arguments]"}:function(t){return Mr("callee",t)}}();const hj=Aq;var jq=!{toString:null}.propertyIsEnumerable("toString"),Vk=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Wk=function(){return arguments.propertyIsEnumerable("length")}(),Iq=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},Fq=yt(typeof Object.keys=="function"&&!Wk?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=Wk&&hj(t);for(n in t)Mr(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(jq)for(r=Vk.length-1;r>=0;)n=Vk[r],Mr(n,t)&&!Iq(i,n)&&(i[i.length]=n),r-=1;return i});const Xi=Fq;var $q=lt($S(["fantasy-land/map","map"],Dq,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Fg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Wc(function(r,i){return r[i]=t(n[i]),r},{},Xi(n));default:return nm(t,n)}}));const Id=$q,Xb=Number.isInteger||function(t){return t<<0===t};var Bq=lt(function(t,n){var r=t<0?n.length+t:t;return Yy(n)?n.charAt(r):n[r]});const pj=Bq;var Uq=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=Xb(s)?pj(s,i):i[s],o+=1}return i})});const zq=Uq;var Hq=lt(function(t,n){return zq([t],n)[0]});const Vq=Hq;var Wq=lt(function(t,n){return Vq([t],n)});const at=Wq;var Yq=qs(Wc);const BS=Yq;var qq=yt(function(t){return function(){return t}});const $0=qq;var Gq=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))}:Wc(function(r,i){return xq(r,Id(i,n))},[],t)});const Zq=Gq;var Kq=yt(function(t){for(var n=Xi(t),r=n.length,i=[],o=0;o<r;)i[o]=t[n[o]],o+=1;return i});const Yc=Kq;var Xq=qs(function(t,n,r){var i={};for(var o in r)i[o]=r[o];return i[t]=n,i});const id=Xq;var Qq=yt(function(t){return t==null});const Ao=Qq;var Jq=qs(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var o=!Ao(r)&&Mr(i,r)?r[i]:Xb(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(Xb(i)&&jd(r)){var s=[].concat(r);return s[i]=n,s}else return id(i,n,r)});const El=Jq;function eG(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var tG=lt(function(t,n){var r=Fg(t,n);return Fg(t,function(){return Wc(Zq,Id(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const nG=tG;var rG=yt(function(t){return nG(t.length,t)});const iG=rG;function oG(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a<l;){if(dj(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 sG(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}var aG=yt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});const $g=aG;function mj(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?mj(e[c],t,n,!0):e[c];return s};switch($g(e)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(e.valueOf());case"RegExp":return sG(e);default:return e}}var lG=yt(function(t){return!t});const cG=lG;var uG=iG(cG);const fG=uG;function dG(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function US(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return jd(r)||typeof r[e]!="function"?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var hG=qs(US("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}));const gj=hG;var pG=yt(US("tail",gj(1,1/0)));const mG=pG;function Tt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Vc(arguments[0].length,BS(dG,arguments[0],mG(arguments)))}var gG=yt(function(t){return Yy(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});const Qb=gG;function vG(e){return e}var yG=yt(vG);const qy=yG;function Yk(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function qk(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function _G(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function bG(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const B0=typeof Object.is=="function"?Object.is:bG;function Gk(e,t,n,r){var i=Yk(e),o=Yk(t);function s(a,l){return zS(a,l,n.slice(),r.slice())}return!qk(function(a,l){return!qk(s,l,a)},o,i)}function zS(e,t,n,r){if(B0(e,t))return!0;var i=$g(e);if(i!==$g(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"&&_G(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&B0(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!B0(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:Gk(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:Gk(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=Xi(e);if(s.length!==Xi(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 wG=lt(function(t,n){return zS(t,n,[],[])});const HS=wG;function xG(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(HS(e[n],t))return n;n+=1}return-1}function SG(e,t){return xG(t,e,0)>=0}function U0(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 ku=function(t){return(t<10?"0":"")+t},CG=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+ku(t.getUTCMonth()+1)+"-"+ku(t.getUTCDate())+"T"+ku(t.getUTCHours())+":"+ku(t.getUTCMinutes())+":"+ku(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const EG=CG;function TG(e){return function(){return!e.apply(this,arguments)}}function OG(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 Bg(e){return Object.prototype.toString.call(e)==="[object Object]"}var PG=function(){function e(t,n){this.xf=n,this.f=t}return e.prototype["@@transducer/init"]=rd.init,e.prototype["@@transducer/result"]=rd.result,e.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e}(),kG=lt(function(t,n){return new PG(t,n)});const MG=kG;var RG=lt($S(["filter"],MG,function(e,t){return Bg(t)?Wc(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},Xi(t)):OG(e,t)}));const vj=RG;var NG=lt(function(t,n){return vj(TG(t),n)});const Fd=NG;function yj(e,t){var n=function(s){var a=t.concat([e]);return SG(s,a)?"<Circular>":yj(s,a)},r=function(o,s){return nm(function(a){return U0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+nm(n,e).join(", ")+"))";case"[object Array]":return"["+nm(n,e).concat(r(e,Fd(function(o){return/^\d+$/.test(o)},Xi(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):U0(EG(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())+")":U0(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,Xi(e)).join(", ")+"}"}}var LG=yt(function(t){return yj(t,[])});const DG=LG;var AG=yt(function(t){var n=BS(fj,0,Id(function(r){return r[0].length},t));return Vc(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 VS=AG;var jG=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"]=rd.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}(),IG=Wy(4,[],function(t,n,r,i){return new jG(t,n,r,i)});const FG=IG;var $G=Wy(4,[],$S([],FG,function(t,n,r,i){return Wc(function(o,s){var a=r(s);return o[a]=t(Mr(a,o)?o[a]:mj(n,[],[],!1),s),o},{},i)}));const _j=$G;var BG=_j(function(e,t){return e+1},0);const bj=BG;var UG=lt(function(t,n){var r={};for(var i in n)r[i]=n[i];return delete r[t],r});const zG=UG;var HG=pj(-1);const VG=HG;var WG=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():jd(t)?[]:Yy(t)?"":Bg(t)?{}:hj(t)?function(){return arguments}():void 0});const YG=WG;var qG=yt(oG(!0));const GG=qG;var ZG=yt(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n});const Yu=ZG;var KG=lt(US("groupBy",_j(function(e,t){return e==null&&(e=[]),e.push(t),e},null)));const XG=KG;var QG=lt(function(t,n){return Fg(t+1,function(){var r=arguments[t];if(r!=null&&eG(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(DG(r)+' does not have a method named "'+n+'"')})});const JG=QG;var eZ=yt(function(t){return t!=null&&HS(t,YG(t))});const Wn=eZ;function Zk(e){return Object.prototype.toString.call(e)==="[object Number]"}var tZ=lt(function(t,n){var r={};return Vc(n.length,function(){var i=t.apply(this,arguments);return Mr(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const wj=tZ;var nZ=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 rZ=nZ;var iZ=qs(function e(t,n,r){return rZ(function(i,o,s){return Bg(o)&&Bg(s)?e(t,o,s):t(i,o,s)},n,r)});const oZ=iZ;var sZ=lt(function(t,n){return oZ(function(r,i,o){return o},t,n)});const xj=sZ;var aZ=lt(function(t,n){return n<t?n:t});const Sj=aZ;var lZ=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 cZ=lZ;var uZ=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 WS=uZ;var fZ=qs(function(t,n,r){return HS(n,r[t])});const dZ=fZ;var hZ=lt(function(t,n){if(!(Zk(t)&&Zk(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 YS=hZ;var pZ=qs(function(t,n,r){return r.replace(t,n)});const mZ=pZ;var gZ=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 vZ=gZ;var yZ=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(gj(i,i+=t,n));return r});const od=yZ;var _Z=JG(0,"toLowerCase");const bZ=_Z;var wZ=yt(function(t){var n=[];for(var r in t)Mr(r,t)&&(n[n.length]=[r,t[r]]);return n});const Ug=wZ;var Mu=`
|
||
\v\f\r \u2028\u2029\uFEFF`,xZ="",SZ=typeof String.prototype.trim=="function",CZ=yt(!SZ||Mu.trim()||!xZ.trim()?function(t){var n=new RegExp("^["+Mu+"]["+Mu+"]*"),r=new RegExp("["+Mu+"]["+Mu+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()});const EZ=CZ;var TZ=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 Cj=TZ,Ej=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),gf=e=>!!(e!=null&&e.id),Tj=e=>!!(e!=null&&e.version),OZ=e=>!!(e!=null&&e.serverNotFound),PZ=e=>gf(e)?e.id:"",kZ=e=>cZ(["id","autoConnect"],e);var MZ={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"]},RZ=MZ,NZ={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"]},qS=NZ,LZ={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"]},DZ={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"]},AZ=DZ,Oj={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"]},jZ={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"]},Pj={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"]},IZ={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"]},FZ=IZ,$Z={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"]},GS=$Z,BZ={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"]},UZ={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"]},zZ={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"]},Kk={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"]},HZ={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"]},VZ=HZ,WZ={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"]},kj=WZ,YZ={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"]},qZ={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"]},GZ={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"]},ZZ=GZ,ZS={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"]},Mj={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"]},Xk={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"]},KZ={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"]},Rj={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"]},XZ={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"]},QZ=XZ,JZ={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"]},eK={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"]},KS=eK,tK={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"]},nK=tK,rK={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"]},iK={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"]},oK=iK,sK={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"]},aK=sK,lK={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"]},cK=lK,uK={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"]},Nj=uK,fK={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"]},dK={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"]},hK={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"]},pK=hK,mK={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"]},XS={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"]},gK={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"]},Jb=gK,vK={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},yK={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"]},_K=yK,Qk={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"]},bK={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"]},wK=bK,xK={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"]},SK={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"]},CK={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"]},EK={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"]},sd={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 Jk(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?Jk(Object(n),!0).forEach(function(r){_n(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zg(e){return zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zg(e)}function TK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eM(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 OK(e,t,n){return t&&eM(e.prototype,t),n&&eM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QS(e,t){return kK(e)||RK(e,t)||Lj(e,t)||LK()}function $d(e){return PK(e)||MK(e)||Lj(e)||NK()}function PK(e){if(Array.isArray(e))return ew(e)}function kK(e){if(Array.isArray(e))return e}function MK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RK(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 Lj(e,t){if(e){if(typeof e=="string")return ew(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 ew(e,t)}}function ew(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 NK(){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 LK(){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 tM=function(){},JS={},Dj={},Aj=null,jj={mark:tM,measure:tM};try{typeof window<"u"&&(JS=window),typeof document<"u"&&(Dj=document),typeof MutationObserver<"u"&&(Aj=MutationObserver),typeof performance<"u"&&(jj=performance)}catch{}var DK=JS.navigator||{},nM=DK.userAgent,rM=nM===void 0?"":nM,As=JS,Lt=Dj,iM=Aj,lp=jj;As.document;var jo=!!Lt.documentElement&&!!Lt.head&&typeof Lt.addEventListener=="function"&&typeof Lt.createElement=="function",Ij=~rM.indexOf("MSIE")||~rM.indexOf("Trident/"),cp,up,fp,dp,hp,To="___FONT_AWESOME___",tw=16,Fj="fa",$j="svg-inline--fa",Wa="data-fa-i2svg",nw="data-fa-pseudo-element",AK="data-fa-pseudo-element-pending",eC="data-prefix",tC="data-icon",oM="fontawesome-i2svg",jK="async",IK=["HTML","HEAD","STYLE","SCRIPT"],Bj=function(){try{return!0}catch{return!1}}(),kt="classic",Yt="sharp",nC=[kt,Yt];function Bd(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[kt]}})}var ad=Bd((cp={},_n(cp,kt,{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"}),_n(cp,Yt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),cp)),ld=Bd((up={},_n(up,kt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),_n(up,Yt,{solid:"fass",regular:"fasr"}),up)),cd=Bd((fp={},_n(fp,kt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),_n(fp,Yt,{fass:"fa-solid",fasr:"fa-regular"}),fp)),FK=Bd((dp={},_n(dp,kt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),_n(dp,Yt,{"fa-solid":"fass","fa-regular":"fasr"}),dp)),$K=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,Uj="fa-layers-text",BK=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,UK=Bd((hp={},_n(hp,kt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),_n(hp,Yt,{900:"fass",400:"fasr"}),hp)),zj=[1,2,3,4,5,6,7,8,9,10],zK=zj.concat([11,12,13,14,15,16,17,18,19,20]),HK=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ta={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ud=new Set;Object.keys(ld[kt]).map(ud.add.bind(ud));Object.keys(ld[Yt]).map(ud.add.bind(ud));var VK=[].concat(nC,$d(ud),["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",Ta.GROUP,Ta.SWAP_OPACITY,Ta.PRIMARY,Ta.SECONDARY]).concat(zj.map(function(e){return"".concat(e,"x")})).concat(zK.map(function(e){return"w-".concat(e)})),vf=As.FontAwesomeConfig||{};function WK(e){var t=Lt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function YK(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Lt&&typeof Lt.querySelector=="function"){var qK=[["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"]];qK.forEach(function(e){var t=QS(e,2),n=t[0],r=t[1],i=YK(WK(n));i!=null&&(vf[r]=i)})}var Hj={styleDefault:"solid",familyDefault:"classic",cssPrefix:Fj,replacementClass:$j,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};vf.familyPrefix&&(vf.cssPrefix=vf.familyPrefix);var Ec=Be(Be({},Hj),vf);Ec.autoReplaceSvg||(Ec.observeMutations=!1);var He={};Object.keys(Hj).forEach(function(e){Object.defineProperty(He,e,{enumerable:!0,set:function(n){Ec[e]=n,yf.forEach(function(r){return r(He)})},get:function(){return Ec[e]}})});Object.defineProperty(He,"familyPrefix",{enumerable:!0,set:function(t){Ec.cssPrefix=t,yf.forEach(function(n){return n(He)})},get:function(){return Ec.cssPrefix}});As.FontAwesomeConfig=He;var yf=[];function GK(e){return yf.push(e),function(){yf.splice(yf.indexOf(e),1)}}var qo=tw,Vi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ZK(e){if(!(!e||!jo)){var t=Lt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Lt.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return Lt.head.insertBefore(t,r),e}}var KK="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function fd(){for(var e=12,t="";e-- >0;)t+=KK[Math.random()*62|0];return t}function qc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function rC(e){return e.classList?qc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Vj(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function XK(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Vj(e[n]),'" ')},"").trim()}function Gy(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function iC(e){return e.size!==Vi.size||e.x!==Vi.x||e.y!==Vi.y||e.rotate!==Vi.rotate||e.flipX||e.flipY}function QK(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 JK(e){var t=e.transform,n=e.width,r=n===void 0?tw:n,i=e.height,o=i===void 0?tw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&Ij?l+="translate(".concat(t.x/qo-r/2,"em, ").concat(t.y/qo-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/qo,"em), calc(-50% + ").concat(t.y/qo,"em)) "):l+="translate(".concat(t.x/qo,"em, ").concat(t.y/qo,"em) "),l+="scale(".concat(t.size/qo*(t.flipX?-1:1),", ").concat(t.size/qo*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var eX=`: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 Wj(){var e=Fj,t=$j,n=He.cssPrefix,r=He.replacementClass,i=eX;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 sM=!1;function z0(){He.autoAddCss&&!sM&&(ZK(Wj()),sM=!0)}var tX={mixout:function(){return{dom:{css:Wj,insertCss:z0}}},hooks:function(){return{beforeDOMElementCreation:function(){z0()},beforeI2svg:function(){z0()}}}},Oo=As||{};Oo[To]||(Oo[To]={});Oo[To].styles||(Oo[To].styles={});Oo[To].hooks||(Oo[To].hooks={});Oo[To].shims||(Oo[To].shims=[]);var vi=Oo[To],Yj=[],nX=function e(){Lt.removeEventListener("DOMContentLoaded",e),Hg=1,Yj.map(function(t){return t()})},Hg=!1;jo&&(Hg=(Lt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Lt.readyState),Hg||Lt.addEventListener("DOMContentLoaded",nX));function rX(e){jo&&(Hg?setTimeout(e,0):Yj.push(e))}function Ud(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"?Vj(e):"<".concat(t," ").concat(XK(r),">").concat(o.map(Ud).join(""),"</").concat(t,">")}function aM(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var iX=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},H0=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?iX(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 oX(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 rw(e){var t=oX(e);return t.length===1?t[0].toString(16):null}function sX(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 lM(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 iw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=lM(t);typeof vi.hooks.addPack=="function"&&!i?vi.hooks.addPack(e,lM(t)):vi.styles[e]=Be(Be({},vi.styles[e]||{}),o),e==="fas"&&iw("fa",t)}var pp,mp,gp,Kl=vi.styles,aX=vi.shims,lX=(pp={},_n(pp,kt,Object.values(cd[kt])),_n(pp,Yt,Object.values(cd[Yt])),pp),oC=null,qj={},Gj={},Zj={},Kj={},Xj={},cX=(mp={},_n(mp,kt,Object.keys(ad[kt])),_n(mp,Yt,Object.keys(ad[Yt])),mp);function uX(e){return~VK.indexOf(e)}function fX(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!uX(i)?i:null}var Qj=function(){var t=function(o){return H0(Kl,function(s,a,l){return s[l]=H0(a,o,{}),s},{})};qj=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}),Gj=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}),Xj=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 Kl||He.autoFetchSvg,r=H0(aX,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:{}});Zj=r.names,Kj=r.unicodes,oC=Zy(He.styleDefault,{family:He.familyDefault})};GK(function(e){oC=Zy(e.styleDefault,{family:He.familyDefault})});Qj();function sC(e,t){return(qj[e]||{})[t]}function dX(e,t){return(Gj[e]||{})[t]}function Oa(e,t){return(Xj[e]||{})[t]}function Jj(e){return Zj[e]||{prefix:null,iconName:null}}function hX(e){var t=Kj[e],n=sC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function js(){return oC}var aC=function(){return{prefix:null,iconName:null,rest:[]}};function Zy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?kt:n,i=ad[r][e],o=ld[r][e]||ld[r][i],s=e in vi.styles?e:null;return o||s||null}var cM=(gp={},_n(gp,kt,Object.keys(cd[kt])),_n(gp,Yt,Object.keys(cd[Yt])),gp);function Ky(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},_n(t,kt,"".concat(He.cssPrefix,"-").concat(kt)),_n(t,Yt,"".concat(He.cssPrefix,"-").concat(Yt)),t),s=null,a=kt;(e.includes(o[kt])||e.some(function(c){return cM[kt].includes(c)}))&&(a=kt),(e.includes(o[Yt])||e.some(function(c){return cM[Yt].includes(c)}))&&(a=Yt);var l=e.reduce(function(c,f){var h=fX(He.cssPrefix,f);if(Kl[f]?(f=lX[a].includes(f)?FK[a][f]:f,s=f,c.prefix=f):cX[a].indexOf(f)>-1?(s=f,c.prefix=Zy(f,{family:a})):h?c.iconName=h:f!==He.replacementClass&&f!==o[kt]&&f!==o[Yt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?Jj(c.iconName):{},g=Oa(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||g||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Kl.far&&Kl.fas&&!He.autoFetchSvg&&(c.prefix="fas")}return c},aC());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&&(Kl.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Oa(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=js()||"fas"),l}var pX=function(){function e(){TK(this,e),this.definitions={}}return OK(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]),iw(a,s[a]);var l=cd[kt][a];l&&iw(l,s[a]),Qj()})}},{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}(),uM=[],Xl={},lc={},mX=Object.keys(lc);function gX(e,t){var n=t.mixoutsTo;return uM=e,Xl={},Object.keys(lc).forEach(function(r){mX.indexOf(r)===-1&&delete lc[r]}),uM.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),zg(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){Xl[s]||(Xl[s]=[]),Xl[s].push(o[s])})}r.provides&&r.provides(lc)}),n}function ow(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=Xl[e]||[];return o.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Ya(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=Xl[e]||[];i.forEach(function(o){o.apply(null,n)})}function Po(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return lc[e]?lc[e].apply(null,t):void 0}function sw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||js();if(t)return t=Oa(n,t)||t,aM(eI.definitions,n,t)||aM(vi.styles,n,t)}var eI=new pX,vX=function(){He.autoReplaceSvg=!1,He.observeMutations=!1,Ya("noAuto")},yX={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return jo?(Ya("beforeI2svg",t),Po("pseudoElements2svg",t),Po("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;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,rX(function(){bX({autoReplaceSvgRoot:n}),Ya("watch",t)})}},_X={icon:function(t){if(t===null)return null;if(zg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Oa(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=Zy(t[0]);return{prefix:r,iconName:Oa(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match($K))){var i=Ky(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||js(),iconName:Oa(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=js();return{prefix:o,iconName:Oa(o,t)||t}}}},$r={noAuto:vX,config:He,dom:yX,parse:_X,library:eI,findIconDefinition:sw,toHtml:Ud},bX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Lt:n;(Object.keys(vi.styles).length>0||He.autoFetchSvg)&&jo&&He.autoReplaceSvg&&$r.dom.i2svg({node:r})};function Xy(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Ud(r)})}}),Object.defineProperty(e,"node",{get:function(){if(jo){var r=Lt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function wX(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(iC(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=Gy(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 xX(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Be(Be({},i),{},{id:s}),children:r}]}]}function lC(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,g=p===void 0?!1:p,v=r.found?r:n,y=v.width,x=v.height,b=i==="fak",w=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(V){return h.classes.indexOf(V)===-1}).filter(function(V){return V!==""||!!V}).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=b&&!~h.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};g&&(S.attributes[Wa]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(f||fd())},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?Po("generateAbstractMask",P)||{children:[],attributes:{}}:Po("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,D=k.attributes;return P.children=N,P.attributes=D,a?xX(P):wX(P)}function fM(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[Wa]="");var f=Be({},s.styles);iC(i)&&(f.transform=JK({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=Gy(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 SX(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=Gy(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 V0=vi.styles;function aw(e){var t=e[0],n=e[1],r=e.slice(4),i=QS(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(Ta.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Ta.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Ta.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var CX={found:!1,width:512,height:512};function EX(e,t){!Bj&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function lw(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=js()),new Promise(function(r,i){if(Po("missingIconAbstract"),n==="fa"){var o=Jj(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&V0[t]&&V0[t][e]){var s=V0[t][e];return r(aw(s))}EX(e,t),r(Be(Be({},CX),{},{icon:He.showMissingIcons&&e?Po("missingIconAbstract")||{}:{}}))})}var dM=function(){},cw=He.measurePerformance&&lp&&lp.mark&&lp.measure?lp:{mark:dM,measure:dM},qu='FA "6.3.0"',TX=function(t){return cw.mark("".concat(qu," ").concat(t," begins")),function(){return tI(t)}},tI=function(t){cw.mark("".concat(qu," ").concat(t," ends")),cw.measure("".concat(qu," ").concat(t),"".concat(qu," ").concat(t," begins"),"".concat(qu," ").concat(t," ends"))},cC={begin:TX,end:tI},rm=function(){};function hM(e){var t=e.getAttribute?e.getAttribute(Wa):null;return typeof t=="string"}function OX(e){var t=e.getAttribute?e.getAttribute(eC):null,n=e.getAttribute?e.getAttribute(tC):null;return t&&n}function PX(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function kX(){if(He.autoReplaceSvg===!0)return im.replace;var e=im[He.autoReplaceSvg];return e||im.replace}function MX(e){return Lt.createElementNS("http://www.w3.org/2000/svg",e)}function RX(e){return Lt.createElement(e)}function nI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?MX:RX:n;if(typeof e=="string")return Lt.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(nI(s,{ceFn:r}))}),i}function NX(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var im={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(nI(i),n)}),n.getAttribute(Wa)===null&&He.keepOriginalSource){var r=Lt.createComment(NX(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~rC(n).indexOf(He.replacementClass))return im.replace(t);var i=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===He.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 Ud(a)}).join(`
|
||
`);n.setAttribute(Wa,""),n.innerHTML=s}};function pM(e){e()}function rI(e,t){var n=typeof t=="function"?t:rm;if(e.length===0)n();else{var r=pM;He.mutateApproach===jK&&(r=As.requestAnimationFrame||pM),r(function(){var i=kX(),o=cC.begin("mutate");e.map(i),o(),n()})}}var uC=!1;function iI(){uC=!0}function uw(){uC=!1}var Vg=null;function mM(e){if(iM&&He.observeMutations){var t=e.treeCallback,n=t===void 0?rm:t,r=e.nodeCallback,i=r===void 0?rm:r,o=e.pseudoElementsCallback,s=o===void 0?rm:o,a=e.observeMutationsRoot,l=a===void 0?Lt:a;Vg=new iM(function(c){if(!uC){var f=js();qc(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!hM(h.addedNodes[0])&&(He.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&He.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&hM(h.target)&&~HK.indexOf(h.attributeName))if(h.attributeName==="class"&&OX(h.target)){var p=Ky(rC(h.target)),g=p.prefix,v=p.iconName;h.target.setAttribute(eC,g||f),v&&h.target.setAttribute(tC,v)}else PX(h.target)&&i(h.target)})}}),jo&&Vg.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function LX(){Vg&&Vg.disconnect()}function DX(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 AX(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Ky(rC(e));return i.prefix||(i.prefix=js()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=dX(i.prefix,e.innerText)||sC(i.prefix,rw(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function jX(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 He.autoA11y&&(n?t["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(r||fd()):(t["aria-hidden"]="true",t.focusable="false")),t}function IX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Vi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function gM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=AX(e),r=n.iconName,i=n.prefix,o=n.rest,s=jX(e),a=ow("parseNodeAttributes",{},e),l=t.styleParser?DX(e):[];return Be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Vi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var FX=vi.styles;function oI(e){var t=He.autoReplaceSvg==="nest"?gM(e,{styleParser:!1}):gM(e);return~t.extra.classes.indexOf(Uj)?Po("generateLayersText",e,t):Po("generateSvgReplacementMutation",e,t)}var Is=new Set;nC.map(function(e){Is.add("fa-".concat(e))});Object.keys(ad[kt]).map(Is.add.bind(Is));Object.keys(ad[Yt]).map(Is.add.bind(Is));Is=$d(Is);function vM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!jo)return Promise.resolve();var n=Lt.documentElement.classList,r=function(h){return n.add("".concat(oM,"-").concat(h))},i=function(h){return n.remove("".concat(oM,"-").concat(h))},o=He.autoFetchSvg?Is:nC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(FX));o.includes("fa")||o.push("fa");var s=[".".concat(Uj,":not([").concat(Wa,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Wa,"])")})).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=oI(h);p&&f.push(p)}catch(g){Bj||g.name==="MissingIcon"&&console.error(g)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){rI(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function $X(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;oI(e).then(function(n){n&&rI([n],t)})}function BX(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:sw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:sw(i||{})),e(r,Be(Be({},n),{},{mask:i}))}}var UX=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Vi: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,g=n.titleId,v=g===void 0?null:g,y=n.classes,x=y===void 0?[]:y,b=n.attributes,w=b===void 0?{}:b,S=n.styles,T=S===void 0?{}:S;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return Xy(Be({type:"icon"},t),function(){return Ya("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?w["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(v||fd()):(w["aria-hidden"]="true",w.focusable="false")),lC({icons:{main:aw(N),mask:l?aw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:Be(Be({},Vi),i),symbol:s,title:p,maskId:f,titleId:v,extra:{attributes:w,styles:T,classes:x}})})}},zX={mixout:function(){return{icon:BX(UX)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=vM,n.nodeCallback=$X,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Lt:r,o=n.callback,s=o===void 0?function(){}:o;return vM(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(g,v){Promise.all([lw(i,a),f.iconName?lw(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=QS(y,2),b=x[0],w=x[1];g([n,lC({icons:{main:b,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=Gy(a);l.length>0&&(i.style=l);var c;return iC(s)&&(c=Po("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},HX={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 Xy({type:"layer"},function(){Ya("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(He.cssPrefix,"-layers")].concat($d(o)).join(" ")},children:s}]})}}}},VX={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 Xy({type:"counter",content:n},function(){return Ya("beforeDOMElementCreation",{content:n,params:r}),SX({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(He.cssPrefix,"-layers-counter")].concat($d(a))}})})}}}},WX={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Vi: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,g=p===void 0?{}:p;return Xy({type:"text",content:n},function(){return Ya("beforeDOMElementCreation",{content:n,params:r}),fM({content:n,transform:Be(Be({},Vi),o),title:a,extra:{attributes:h,styles:g,classes:["".concat(He.cssPrefix,"-layers-text")].concat($d(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(Ij){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return He.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,fM({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},YX=new RegExp('"',"ug"),yM=[1105920,1112319];function qX(e){var t=e.replace(YX,""),n=sX(t,0),r=n>=yM[0]&&n<=yM[1],i=t.length===2?t[0]===t[1]:!1;return{value:rw(i?t[0]:t),isSecondary:r||i}}function _M(e,t){var n="".concat(AK).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(nw)===t})[0],a=As.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(BK),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:kt,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?ld[p][l[2].toLowerCase()]:UK[p][c],v=qX(h),y=v.value,x=v.isSecondary,b=l[0].startsWith("FontAwesome"),w=sC(g,y),S=w;if(b){var T=hX(y);T.iconName&&T.prefix&&(w=T.iconName,g=T.prefix)}if(w&&!x&&(!s||s.getAttribute(eC)!==g||s.getAttribute(tC)!==S)){e.setAttribute(n,S),s&&e.removeChild(s);var P=IX(),k=P.extra;k.attributes[nw]=t,lw(w,g).then(function(N){var D=lC(Be(Be({},P),{},{icons:{main:N,mask:aC()},prefix:g,iconName:S,extra:k,watchable:!0})),V=Lt.createElement("svg");t==="::before"?e.insertBefore(V,e.firstChild):e.appendChild(V),V.outerHTML=D.map(function(A){return Ud(A)}).join(`
|
||
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function GX(e){return Promise.all([_M(e,"::before"),_M(e,"::after")])}function ZX(e){return e.parentNode!==document.head&&!~IK.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(nw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function bM(e){if(jo)return new Promise(function(t,n){var r=qc(e.querySelectorAll("*")).filter(ZX).map(GX),i=cC.begin("searchPseudoElements");iI(),Promise.all(r).then(function(){i(),uw(),t()}).catch(function(){i(),uw(),n()})})}var KX={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=bM,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Lt:r;He.searchPseudoElements&&bM(i)}}},wM=!1,XX={mixout:function(){return{dom:{unwatch:function(){iI(),wM=!0}}}},hooks:function(){return{bootstrap:function(){mM(ow("mutationObserverCallbacks",{}))},noAuto:function(){LX()},watch:function(n){var r=n.observeMutationsRoot;wM?uw():mM(ow("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},xM=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)},QX={mixout:function(){return{parse:{transform:function(n){return xM(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=xM(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)")},g={outer:a,inner:h,path:p};return{tag:"g",attributes:Be({},g.outer),children:[{tag:"g",attributes:Be({},g.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Be(Be({},r.icon.attributes),g.path)}]}]}}}},W0={x:0,y:0,width:"100%",height:"100%"};function SM(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 JX(e){return e.tag==="g"?e.children:[e]}var eQ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Ky(i.split(" ").map(function(s){return s.trim()})):aC();return o.prefix||(o.prefix=js()),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,g=QK({transform:l,containerWidth:h,iconWidth:c}),v={tag:"rect",attributes:Be(Be({},W0),{},{fill:"white"})},y=f.children?{children:f.children.map(SM)}:{},x={tag:"g",attributes:Be({},g.inner),children:[SM(Be({tag:f.tag,attributes:Be(Be({},f.attributes),g.path)},y))]},b={tag:"g",attributes:Be({},g.outer),children:[x]},w="mask-".concat(a||fd()),S="clip-".concat(a||fd()),T={tag:"mask",attributes:Be(Be({},W0),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,b]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:JX(p)},T]};return r.push(P,{tag:"rect",attributes:Be({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},W0)}),{children:r,attributes:i}}}},tQ={provides:function(t){var n=!1;As.matchMedia&&(n=As.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}}}},nQ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},rQ=[tX,zX,HX,VX,WX,KX,XX,QX,eQ,tQ,nQ];gX(rQ,{mixoutsTo:$r});$r.noAuto;$r.config;$r.library;$r.dom;var fw=$r.parse;$r.findIconDefinition;$r.toHtml;var iQ=$r.icon;$r.layer;$r.text;$r.counter;var sI={exports:{}},oQ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sQ=oQ,aQ=sQ;function aI(){}function lI(){}lI.resetWarningCache=aI;var lQ=function(){function e(r,i,o,s,a,l){if(l!==aQ){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:lI,resetWarningCache:aI};return n.PropTypes=n,n};sI.exports=lQ();var cQ=sI.exports;const C=ri(cQ);function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){Ql(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wg(e){return Wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wg(e)}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uQ(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 fQ(e,t){if(e==null)return{};var n=uQ(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 dw(e){return dQ(e)||hQ(e)||pQ(e)||mQ()}function dQ(e){if(Array.isArray(e))return hw(e)}function hQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pQ(e,t){if(e){if(typeof e=="string")return hw(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 hw(e,t)}}function hw(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 mQ(){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 gQ(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,g=e.inverse,v=e.border,y=e.listItem,x=e.flip,b=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":g,"fa-border":v,"fa-li":y,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Ql(t,"fa-".concat(b),typeof b<"u"&&b!==null),Ql(t,"fa-rotate-".concat(w),typeof w<"u"&&w!==null&&w!==0),Ql(t,"fa-pull-".concat(S),typeof S<"u"&&S!==null),Ql(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 vQ(e){return e=e-0,e===e}function cI(e){return vQ(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var yQ=["style"];function _Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function bQ(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=cI(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[_Q(i)]=o:t[i]=o,t},{})}function uI(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 uI(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=bQ(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[cI(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=fQ(n,yQ);return i.attrs.style=hs(hs({},i.attrs.style),s),e.apply(void 0,[t.tag,hs(hs({},i.attrs),a)].concat(dw(r)))}var fI=!1;try{fI=!0}catch{}function wQ(){if(!fI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function EM(e){if(e&&Wg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(fw.icon)return fw.icon(e);if(e===null)return null;if(e&&Wg(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 Y0(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ql({},e,t):{}}var Fe=H.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=EM(n),f=Y0("classes",[].concat(dw(gQ(e)),dw(o.split(" ")))),h=Y0("transform",typeof e.transform=="string"?fw.transform(e.transform):e.transform),p=Y0("mask",EM(r)),g=iQ(c,hs(hs(hs(hs({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!g)return wQ("Could not find icon",c),null;var v=g.abstract,y={ref:t};return Object.keys(e).forEach(function(x){Fe.defaultProps.hasOwnProperty(x)||(y[x]=e[x])}),xQ(v[0],y)});Fe.displayName="FontAwesomeIcon";Fe.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};Fe.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 xQ=uI.bind(null,H.createElement),dI={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})()})(dI);var SQ=dI.exports;const me=ri(SQ);var hI=B.createContext(),pI=B.createContext();function TM(e){var t=e.children,n=B.useState(null),r=n[0],i=n[1],o=B.useRef(!1);B.useEffect(function(){return function(){o.current=!0}},[]);var s=B.useCallback(function(a){o.current||i(a)},[]);return B.createElement(hI.Provider,{value:r},B.createElement(pI.Provider,{value:s},t))}var mI=function(t){return Array.isArray(t)?t[0]:t},gI=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)}},pw=function(t,n){if(typeof t=="function")return gI(t,n);t!=null&&(t.current=n)},OM=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},PM=typeof window<"u"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,br="top",ti="bottom",ni="right",wr="left",fC="auto",zd=[br,ti,ni,wr],Tc="start",dd="end",CQ="clippingParents",vI="viewport",Ru="popper",EQ="reference",kM=zd.reduce(function(e,t){return e.concat([t+"-"+Tc,t+"-"+dd])},[]),yI=[].concat(zd,[fC]).reduce(function(e,t){return e.concat([t,t+"-"+Tc,t+"-"+dd])},[]),TQ="beforeRead",OQ="read",PQ="afterRead",kQ="beforeMain",MQ="main",RQ="afterMain",NQ="beforeWrite",LQ="write",DQ="afterWrite",AQ=[TQ,OQ,PQ,kQ,MQ,RQ,NQ,LQ,DQ];function Qi(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 qa(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 dC(e){if(typeof ShadowRoot>"u")return!1;var t=oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jQ(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)||!Qi(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 IQ(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)||!Qi(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const FQ={name:"applyStyles",enabled:!0,phase:"write",fn:jQ,effect:IQ,requires:["computeStyles"]};function Gi(e){return e.split("-")[0]}var Da=Math.max,Yg=Math.min,Oc=Math.round;function mw(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function _I(){return!/^((?!chrome|android).)*safari/i.test(mw())}function Pc(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&&Oc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Oc(r.height)/e.offsetHeight||1);var s=qa(e)?oi(e):window,a=s.visualViewport,l=!_I()&&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 hC(e){var t=Pc(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 bI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ko(e){return oi(e).getComputedStyle(e)}function $Q(e){return["table","td","th"].indexOf(Qi(e))>=0}function Gs(e){return((qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qy(e){return Qi(e)==="html"?e:e.assignedSlot||e.parentNode||(dC(e)?e.host:null)||Gs(e)}function MM(e){return!Kr(e)||ko(e).position==="fixed"?null:e.offsetParent}function BQ(e){var t=/firefox/i.test(mw()),n=/Trident/i.test(mw());if(n&&Kr(e)){var r=ko(e);if(r.position==="fixed")return null}var i=Qy(e);for(dC(i)&&(i=i.host);Kr(i)&&["html","body"].indexOf(Qi(i))<0;){var o=ko(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 Hd(e){for(var t=oi(e),n=MM(e);n&&$Q(n)&&ko(n).position==="static";)n=MM(n);return n&&(Qi(n)==="html"||Qi(n)==="body"&&ko(n).position==="static")?t:n||BQ(e)||t}function pC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _f(e,t,n){return Da(e,Yg(t,n))}function UQ(e,t,n){var r=_f(e,t,n);return r>n?n:r}function wI(){return{top:0,right:0,bottom:0,left:0}}function xI(e){return Object.assign({},wI(),e)}function SI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zQ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xI(typeof t!="number"?t:SI(t,zd))};function HQ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Gi(n.placement),l=pC(a),c=[wr,ni].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=zQ(i.padding,n),p=hC(o),g=l==="y"?br:wr,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],b=Hd(o),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-x/2,T=h[g],P=w-p[f]-h[v],k=w/2-p[f]/2+S,N=_f(T,k,P),D=l;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-k,t)}}function VQ(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)||bI(t.elements.popper,i)&&(t.elements.arrow=i))}const WQ={name:"arrow",enabled:!0,phase:"main",fn:HQ,effect:VQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kc(e){return e.split("-")[1]}var YQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qQ(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Oc(t*i)/i||0,y:Oc(n*i)/i||0}}function RM(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,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,x=typeof f=="function"?f({x:g,y}):{x:g,y};g=x.x,y=x.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),S=wr,T=br,P=window;if(c){var k=Hd(n),N="clientHeight",D="clientWidth";if(k===oi(n)&&(k=Gs(n),ko(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),k=k,i===br||(i===wr||i===ni)&&o===dd){T=ti;var V=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];y-=V-r.height,y*=l?1:-1}if(i===wr||(i===br||i===ti)&&o===dd){S=ni;var A=h&&k===P&&P.visualViewport?P.visualViewport.width:k[D];g-=A-r.width,g*=l?1:-1}}var W=Object.assign({position:a},c&&YQ),Y=f===!0?qQ({x:g,y}):{x:g,y};if(g=Y.x,y=Y.y,l){var ee;return Object.assign({},W,(ee={},ee[T]=w?"0":"",ee[S]=b?"0":"",ee.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",ee))}return Object.assign({},W,(t={},t[T]=w?y+"px":"",t[S]=b?g+"px":"",t.transform="",t))}function GQ(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:Gi(t.placement),variation:kc(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,RM(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,RM(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 ZQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GQ,data:{}};var vp={passive:!0};function KQ(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,vp)}),a&&l.addEventListener("resize",n.update,vp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,vp)}),a&&l.removeEventListener("resize",n.update,vp)}}const XQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KQ,data:{}};var QQ={left:"right",right:"left",bottom:"top",top:"bottom"};function om(e){return e.replace(/left|right|bottom|top/g,function(t){return QQ[t]})}var JQ={start:"end",end:"start"};function NM(e){return e.replace(/start|end/g,function(t){return JQ[t]})}function mC(e){var t=oi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gC(e){return Pc(Gs(e)).left+mC(e).scrollLeft}function eJ(e,t){var n=oi(e),r=Gs(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=_I();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+gC(e),y:l}}function tJ(e){var t,n=Gs(e),r=mC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Da(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Da(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+gC(e),l=-r.scrollTop;return ko(i||n).direction==="rtl"&&(a+=Da(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function vC(e){var t=ko(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function CI(e){return["html","body","#document"].indexOf(Qi(e))>=0?e.ownerDocument.body:Kr(e)&&vC(e)?e:CI(Qy(e))}function bf(e,t){var n;t===void 0&&(t=[]);var r=CI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=oi(r),s=i?[o].concat(o.visualViewport||[],vC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(bf(Qy(s)))}function gw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nJ(e,t){var n=Pc(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 LM(e,t,n){return t===vI?gw(eJ(e,n)):qa(t)?nJ(t,n):gw(tJ(Gs(e)))}function rJ(e){var t=bf(Qy(e)),n=["absolute","fixed"].indexOf(ko(e).position)>=0,r=n&&Kr(e)?Hd(e):e;return qa(r)?t.filter(function(i){return qa(i)&&bI(i,r)&&Qi(i)!=="body"}):[]}function iJ(e,t,n,r){var i=t==="clippingParents"?rJ(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=LM(e,c,r);return l.top=Da(f.top,l.top),l.right=Yg(f.right,l.right),l.bottom=Yg(f.bottom,l.bottom),l.left=Da(f.left,l.left),l},LM(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 EI(e){var t=e.reference,n=e.element,r=e.placement,i=r?Gi(r):null,o=r?kc(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case br: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 wr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?pC(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Tc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case dd:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function hd(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?CQ:a,c=n.rootBoundary,f=c===void 0?vI:c,h=n.elementContext,p=h===void 0?Ru:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,b=xI(typeof x!="number"?x:SI(x,zd)),w=p===Ru?EQ:Ru,S=e.rects.popper,T=e.elements[v?w:p],P=iJ(qa(T)?T:T.contextElement||Gs(e.elements.popper),l,f,s),k=Pc(e.elements.reference),N=EI({reference:k,element:S,strategy:"absolute",placement:i}),D=gw(Object.assign({},S,N)),V=p===Ru?D:k,A={top:P.top-V.top+b.top,bottom:V.bottom-P.bottom+b.bottom,left:P.left-V.left+b.left,right:V.right-P.right+b.right},W=e.modifiersData.offset;if(p===Ru&&W){var Y=W[i];Object.keys(A).forEach(function(ee){var q=[ni,ti].indexOf(ee)>=0?1:-1,X=[br,ti].indexOf(ee)>=0?"y":"x";A[ee]+=Y[X]*q})}return A}function oJ(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?yI:l,f=kc(r),h=f?a?kM:kM.filter(function(v){return kc(v)===f}):zd,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=hd(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[Gi(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function sJ(e){if(Gi(e)===fC)return[];var t=om(e);return[NM(e),t,NM(t)]}function aJ(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,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,b=Gi(x),w=b===x,S=l||(w||!v?[om(x)]:sJ(x)),T=[x].concat(S).reduce(function(Z,ne){return Z.concat(Gi(ne)===fC?oJ(t,{placement:ne,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:y}):ne)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,D=!0,V=T[0],A=0;A<T.length;A++){var W=T[A],Y=Gi(W),ee=kc(W)===Tc,q=[br,ti].indexOf(Y)>=0,X=q?"width":"height",ie=hd(t,{placement:W,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),le=q?ee?ni:wr:ee?ti:br;P[X]>k[X]&&(le=om(le));var G=om(le),F=[];if(o&&F.push(ie[Y]<=0),a&&F.push(ie[le]<=0,ie[G]<=0),F.every(function(Z){return Z})){V=W,D=!1;break}N.set(W,F)}if(D)for(var j=v?3:1,U=function(ne){var ae=T.find(function(pe){var O=N.get(pe);if(O)return O.slice(0,ne).every(function(R){return R})});if(ae)return V=ae,"break"},te=j;te>0;te--){var z=U(te);if(z==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const lJ={name:"flip",enabled:!0,phase:"main",fn:aJ,requiresIfExists:["offset"],data:{_skip:!1}};function DM(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 AM(e){return[br,ni,ti,wr].some(function(t){return e[t]>=0})}function cJ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=hd(t,{elementContext:"reference"}),a=hd(t,{altBoundary:!0}),l=DM(s,r),c=DM(a,i,o),f=AM(l),h=AM(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 uJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cJ};function fJ(e,t,n){var r=Gi(e),i=[wr,br].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,[wr,ni].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function dJ(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=yI.reduce(function(f,h){return f[h]=fJ(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 hJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dJ};function pJ(e){var t=e.state,n=e.name;t.modifiersData[n]=EI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const mJ={name:"popperOffsets",enabled:!0,phase:"read",fn:pJ,data:{}};function gJ(e){return e==="x"?"y":"x"}function vJ(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,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=hd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),b=Gi(t.placement),w=kc(t.placement),S=!w,T=pC(b),P=gJ(T),k=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(k){if(o){var ee,q=T==="y"?br:wr,X=T==="y"?ti:ni,ie=T==="y"?"height":"width",le=k[T],G=le+x[q],F=le-x[X],j=g?-D[ie]/2:0,U=w===Tc?N[ie]:D[ie],te=w===Tc?-D[ie]:-N[ie],z=t.elements.arrow,Z=g&&z?hC(z):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wI(),ae=ne[q],pe=ne[X],O=_f(0,N[ie],Z[ie]),R=S?N[ie]/2-j-O-ae-A.mainAxis:U-O-ae-A.mainAxis,I=S?-N[ie]/2+j+O+pe+A.mainAxis:te+O+pe+A.mainAxis,Q=t.elements.arrow&&Hd(t.elements.arrow),K=Q?T==="y"?Q.clientTop||0:Q.clientLeft||0:0,oe=(ee=W==null?void 0:W[T])!=null?ee:0,ge=le+R-oe-K,Le=le+I-oe,ue=_f(g?Yg(G,ge):G,le,g?Da(F,Le):F);k[T]=ue,Y[T]=ue-le}if(a){var ve,_e=T==="x"?br:wr,Te=T==="x"?ti:ni,De=k[P],Re=P==="y"?"height":"width",Ne=De+x[_e],ce=De-x[Te],de=[br,wr].indexOf(b)!==-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=g&&de?UQ(ye,De,Ce):_f(g?ye:Ne,De,g?Ce:ce);k[P]=ke,Y[P]=ke-De}t.modifiersData[r]=Y}}const yJ={name:"preventOverflow",enabled:!0,phase:"main",fn:vJ,requiresIfExists:["offset"]};function _J(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bJ(e){return e===oi(e)||!Kr(e)?mC(e):_J(e)}function wJ(e){var t=e.getBoundingClientRect(),n=Oc(t.width)/e.offsetWidth||1,r=Oc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xJ(e,t,n){n===void 0&&(n=!1);var r=Kr(t),i=Kr(t)&&wJ(t),o=Gs(t),s=Pc(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qi(t)!=="body"||vC(o))&&(a=bJ(t)),Kr(t)?(l=Pc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=gC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function SJ(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 CJ(e){var t=SJ(e);return AQ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function EJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function TJ(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 jM={placement:"bottom",modifiers:[],strategy:"absolute"};function IM(){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 OJ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?jM:i;return function(a,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},jM,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],p=!1,g={state:f,setOptions:function(b){var w=typeof b=="function"?b(f.options):b;y(),f.options=Object.assign({},o,f.options,w),f.scrollParents={reference:qa(a)?bf(a):a.contextElement?bf(a.contextElement):[],popper:bf(l)};var S=CJ(TJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(T){return T.enabled}),v(),g.update()},forceUpdate:function(){if(!p){var b=f.elements,w=b.reference,S=b.popper;if(IM(w,S)){f.rects={reference:xJ(w,Hd(S),f.options.strategy==="fixed"),popper:hC(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,V=P.name;typeof k=="function"&&(f=k({state:f,options:D,name:V,instance:g})||f)}}}},update:EJ(function(){return new Promise(function(x){g.forceUpdate(),x(f)})}),destroy:function(){y(),p=!0}};if(!IM(a,l))return g;g.setOptions(c).then(function(x){!p&&c.onFirstUpdate&&c.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var b=x.name,w=x.options,S=w===void 0?{}:w,T=x.effect;if(typeof T=="function"){var P=T({state:f,name:b,instance:g,options:S}),k=function(){};h.push(P||k)}})}function y(){h.forEach(function(x){return x()}),h=[]}return g}}var PJ=[XQ,mJ,ZQ,FQ,hJ,lJ,yJ,WQ,uJ],TI=OJ({defaultModifiers:PJ}),kJ=typeof Element<"u",MJ=typeof Map=="function",RJ=typeof Set=="function",NJ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function sm(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(!sm(e[r],t[r]))return!1;return!0}var o;if(MJ&&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(!sm(r.value[1],t.get(r.value[0])))return!1;return!0}if(RJ&&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(NJ&&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(kJ&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!sm(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var LJ=function(t,n){try{return sm(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 OI=ri(LJ);var DJ=[],AJ=function(t,n,r){r===void 0&&(r={});var i=B.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||DJ},s=B.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=B.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var v=g.state,y=Object.keys(v.elements);l({styles:OM(y.map(function(x){return[x,v.styles[x]||{}]})),attributes:OM(y.map(function(x){return[x,v.attributes[x]]}))})},requires:["computeStyles"]}},[]),f=B.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return OI(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=B.useRef();return PM(function(){h.current&&h.current.setOptions(f)},[f]),PM(function(){if(!(t==null||n==null)){var p=r.createPopper||TI,g=p(t,n,f);return h.current=g,function(){g.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}},jJ=function(){},IJ=function(){return Promise.resolve(null)},FJ=[];function PI(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?FJ:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=B.useContext(hI),p=B.useState(null),g=p[0],v=p[1],y=B.useState(null),x=y[0],b=y[1];B.useEffect(function(){pw(c,g)},[c,g]);var w=B.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=AJ(a||h,g,w),T=S.state,P=S.styles,k=S.forceUpdate,N=S.update,D=B.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:b},forceUpdate:k||jJ,update:N||IJ}},[v,b,n,T,P,N,k]);return mI(f)(D)}var $J=function(){},BJ=$J;const kI=ri(BJ);function UJ(e){var t=e.children,n=e.innerRef,r=B.useContext(pI),i=B.useCallback(function(o){pw(n,o),gI(r,o)},[n,r]);return B.useEffect(function(){return function(){return pw(n,null)}}),B.useEffect(function(){kI(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),mI(t)({ref:i})}function vw(e,t){return vw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vw(e,t)}function zJ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vw(e,t)}const FM={disabled:!1},MI=H.createContext(null);var Gu="unmounted",va="exited",ya="entering",Al="entered",yw="exiting",Io=function(e){zJ(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=va,o.appearStatus=ya):l=Al:r.unmountOnExit||r.mountOnEnter?l=Gu:l=va,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Gu?{status:va}: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!==ya&&s!==Al&&(o=ya):(s===ya||s===Al)&&(o=yw)}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===ya?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===va&&this.setState({status:Gu})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[La.findDOMNode(this),a],c=l[0],f=l[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||FM.disabled){this.safeSetState({status:Al},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:ya},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Al},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:La.findDOMNode(this);if(!o||FM.disabled){this.safeSetState({status:va},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:yw},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:va},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:La.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===Gu)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=SS(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(MI.Provider,{value:null},typeof s=="function"?s(i,a):H.cloneElement(H.Children.only(s),a))},t}(H.Component);Io.contextType=MI;Io.propTypes={};function Tl(){}Io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tl,onEntering:Tl,onEntered:Tl,onExit:Tl,onExiting:Tl,onExited:Tl};Io.UNMOUNTED=Gu;Io.EXITED=va;Io.ENTERING=ya;Io.ENTERED=Al;Io.EXITING=yw;const Fo=Io;function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){HJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HJ(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 VJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function qe(e,t){if(e==null)return{};var n=VJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WJ(){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 yC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function YJ(){return document.body.clientWidth<window.innerWidth}function RI(){const e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function NI(){const e=WJ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;YJ()&&yC(n+e)}let qJ;function Ie(e="",t=qJ){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 LI(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 BM={};function _w(e){BM[e]||(typeof console<"u"&&console.error(e),BM[e]=!0)}function DI(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&_w(`"${i}" property of "${o}" has been deprecated.
|
||
${t}`),e(r,i,o,...s)}}const GJ=typeof window=="object"&&window.Element||function(){};function _C(e,t,n){if(!(e[t]instanceof GJ))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Fs=C.oneOfType([C.string,C.func,_C,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})]))]),Ga={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},qg=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],mo={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},ZJ=["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"],bC=!!(typeof window<"u"&&window.document&&window.document.createElement);function KJ(e){return e&&typeof e=="object"?"current"in e:!1}function AI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Gg(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function UM(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&AI(e)==="[object Symbol]")return n;if(Gg(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=Gg(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 XJ(e){if(!Gg(e))return!1;const t=AI(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function jI(e){if(KJ(e))return e.current;if(XJ(e))return e();if(typeof e=="string"&&bC){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 Zg(e){return e===null?!1:Array.isArray(e)||bC&&typeof e.length=="number"}function Mc(e,t){const n=jI(e);return t?Zg(n)?n:n===null?[]:[n]:Zg(n)?n[0]:n}const QJ=["touchstart","click"];function JJ(e,t,n,r){let i=e;Zg(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!Zg(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 II=["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 eee=["className","cssModule","noGutters","tag","widths"],tee=["xs","sm","md","lg","xl","xxl"],Ol=C.oneOfType([C.number,C.string]),nee={tag:Pe,noGutters:DI(C.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:C.string,cssModule:C.object,xs:Ol,sm:Ol,md:Ol,lg:Ol,xl:Ol,xxl:Ol,widths:C.array},ree={tag:"div",widths:tee};function Xn(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=qe(e,eee),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=Ie(me(t,r?"gx-0":null,"row",a),n);return H.createElement(i,$e({},s,{className:l}))}Xn.propTypes=nee;Xn.defaultProps=ree;const iee=["className","cssModule","widths","tag"],FI=["xs","sm","md","lg","xl","xxl"],zM=C.oneOfType([C.number,C.string]),Pl=C.oneOfType([C.bool,C.number,C.string,C.shape({size:C.oneOfType([C.bool,C.number,C.string]),order:zM,offset:zM})]),oee={tag:Pe,xs:Pl,sm:Pl,md:Pl,lg:Pl,xl:Pl,xxl:Pl,className:C.string,cssModule:C.object,widths:C.array},see={tag:"div",widths:FI},HM=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,aee=(e,t,n=FI)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(Gg(a)){const c=l?"-":`-${o}-`,f=HM(l,o,a.size);i.push(Ie(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=HM(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function wC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=qe(e,iee);let{modifiedAttributes:s,colClasses:a}=aee(o,n,r);a.length||a.push("col");const l=Ie(me(t,a),n);return H.createElement(i,$e({},s,{className:l}))}wC.propTypes=oee;wC.defaultProps=see;const lee=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],cee={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},uee={tag:"nav",expand:!1,container:"fluid"},fee=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function xC(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,lee),g=Ie(me(n,"navbar",fee(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 H.createElement(f,$e({},p,{className:g}),c?H.createElement("div",{className:v},h):h)}xC.propTypes=cee;xC.defaultProps=uee;const dee=["className","cssModule","tag"],hee={className:C.string,cssModule:C.object,tag:Pe},pee={tag:"a"};function SC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,dee),o=Ie(me(t,"navbar-brand"),n);return H.createElement(r,$e({},i,{className:o}))}SC.propTypes=hee;SC.defaultProps=pee;C.string,C.object,C.bool;const mee=["className","cssModule","children","tag"],gee={className:C.string,cssModule:C.object,tag:Pe,type:C.string,children:C.node},vee={tag:"button",type:"button"};function CC(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=qe(e,mee),s=Ie(me(t,"navbar-toggler"),n);return H.createElement(i,$e({"aria-label":"Toggle navigation"},o,{className:s}),r||H.createElement("span",{className:Ie("navbar-toggler-icon",n)}))}CC.propTypes=gee;CC.defaultProps=vee;const yee=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],_ee={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])},bee={tag:"ul",vertical:!1},wee=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function Jy(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,yee),g=Ie(me(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,wee(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 H.createElement(h,$e({},p,{className:g}))}Jy.propTypes=_ee;Jy.defaultProps=bee;const xee=["className","cssModule","active","tag"],See={active:C.bool,className:C.string,cssModule:C.object,tag:Pe},Cee={tag:"li"};function EC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=qe(e,xee),s=Ie(me(t,"nav-item",r?"active":!1),n);return H.createElement(i,$e({},o,{className:s}))}EC.propTypes=See;EC.defaultProps=Cee;const Eee=["className","cssModule","active","tag","innerRef"],Tee={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},Oee={tag:"a"};class TC extends H.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,Eee);const l=Ie(me(n,"nav-link",{disabled:a.disabled,active:i}),r);return H.createElement(o,$e({},a,{ref:s,onClick:this.onClick,className:l}))}}TC.propTypes=Tee;TC.defaultProps=Oee;var $I=TC;C.string,C.node,C.string,C.object,C.string;C.bool,C.string,C.object;const Pee=["className","cssModule","variant","innerRef"],kee={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])},Mee={"aria-label":"close"};function OC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=qe(e,Pee),s=Ie(me(t,"btn-close",r&&`btn-close-${r}`));return H.createElement("button",$e({ref:i,type:"button",className:s},o))}OC.propTypes=kee;OC.defaultProps=Mee;const Ree=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],Nee={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},Lee={color:"secondary",tag:"button"};function ht(e){const t=B.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,g=qe(e,Ree);if(s)return H.createElement(OC,g);const v=`btn${c?"-outline":""}-${l}`,y=Ie(me(o,"btn",v,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return g.href&&h==="button"&&(h="a"),H.createElement(h,$e({type:h==="button"&&g.onClick?"button":void 0},g,{className:y,ref:p,onClick:t,"aria-label":r}))}ht.propTypes=Nee;ht.defaultProps=Lee;C.func,C.func,C.func,C.bool,C.string,C.object;const pd=H.createContext({}),BI=H.createContext({}),Dee=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Aee={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"])},jee={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Iee=[mt.space,mt.enter,mt.up,mt.down,mt.end,mt.home];class e_ extends H.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=H.createRef(),this.menuRef=H.createRef(),this.toggleRef=H.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))&&((Iee.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,g=qe(t,Dee),v=h||(l?"li":"div");let y=!1;c&&H.Children.map(this.props.children[1].props.children,b=>{b&&b.props.active&&(y=!0)});const x=Ie(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?H.createElement(pd.Provider,{value:this.getContextValue()},H.createElement(TM,null,H.Children.map(this.props.children,b=>H.cloneElement(b,{onKeyDown:this.handleKeyDown})))):H.createElement(pd.Provider,{value:this.getContextValue()},H.createElement(TM,null,H.createElement(v,$e({},g,{[typeof v=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:x}))))}}e_.propTypes=Aee;e_.defaultProps=jee;e_.contextType=BI;var Gc=e_;const Fee={children:C.node};function PC(e){return H.createElement(Gc,$e({group:!0},e))}PC.propTypes=Fee;C.string,C.string,C.object,C.string,C.string,C.bool;C.string,C.string,C.object,C.string;const $ee=["className","cssModule","divider","tag","header","active","text"],Bee={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},Uee={tag:"button",toggle:!0};class t_ extends H.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,$ee);const p=Ie(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")),H.createElement(a,$e({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}t_.propTypes=Bee;t_.defaultProps=Uee;t_.contextType=pd;var ze=t_;const zee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],Hee={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:Fs,updateOnSelect:C.bool,right:DI(C.bool,'Please use "end" instead.')},Vee={tag:"div",flip:!0,modifiers:[]},Wee={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class n_ extends H.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:g}=t,v=qe(t,zee),y=Ie(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=`${Wee[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=H.createElement(PI,{placement:T,modifiers:P,strategy:h},({ref:N,style:D,placement:V,update:A})=>{let W=We(We({},this.props.style),D);const Y=ee=>{N(ee);const{onMenuRef:q}=this.context;q&&q(ee)};return H.createElement(x,$e({tabIndex:"-1",role:this.getRole(),ref:Y},v,{style:W,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":V,onClick:()=>g&&A()}))});return p?La.createPortal(k,Mc(p)):k}const{onMenuRef:b}=this.context;return H.createElement(x,$e({tabIndex:"-1",role:this.getRole()},v,{ref:b,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":v.placement}))}}n_.propTypes=Hee;n_.defaultProps=Vee;n_.contextType=pd;var Zc=n_;const Yee=["className","color","cssModule","caret","split","nav","tag","innerRef"],qee={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])},Gee={color:"secondary","aria-haspopup":!0};class r_ extends H.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,Yee),h=f["aria-label"]||"Toggle Dropdown",p=Ie(me(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),g=typeof f.children<"u"?f.children:H.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?H.createElement(v,$e({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:g})):H.createElement(UJ,{innerRef:c},({ref:y})=>{const x=b=>{y(b);const{onToggleRef:w}=this.context;w&&w(b)};return H.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:g}))})}}r_.propTypes=qee;r_.defaultProps=Gee;r_.contextType=pd;var Vd=r_;const Zee=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],Kee=We(We({},Fo.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])}),Xee=We(We({},Fo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Ga.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,Zee),c=LI(l,qg),f=Cr(l,qg);return H.createElement(Fo,c,h=>{const g=Ie(me(i,n,h==="entered"&&r),o);return H.createElement(t,$e({className:g},f,{ref:a}),s)})}Zt.propTypes=Kee;Zt.defaultProps=Xee;H.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 Qee=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Jee=We(We({},Fo.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})}),ete=We(We({},Fo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Ga.Collapse}),tte={[mo.ENTERING]:"collapsing",[mo.ENTERED]:"collapse show",[mo.EXITING]:"collapsing",[mo.EXITED]:"collapse"};function nte(e){return tte[e]||"collapse"}class kC extends B.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||H.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,Qee),{dimension:h}=this.state,p=LI(f,qg),g=Cr(f,qg);return H.createElement(Fo,$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=nte(v);const x=Ie(me(o,r&&"collapse-horizontal",y,s&&"navbar-collapse"),a),b=h===null?null:{[r?"width":"height"]:h};return H.createElement(n,$e({},g,{style:We(We({},g.style),b),className:x,ref:this.nodeRef}),l)})}}kC.propTypes=Jee;kC.defaultProps=ete;var UI=kC;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 rte=["className","cssModule","color","body","inverse","outline","tag","innerRef"],ite={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},ote={tag:"div"};function xr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=qe(e,rte),f=Ie(me(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return H.createElement(a,$e({},c,{className:f,ref:l}))}xr.propTypes=ite;xr.defaultProps=ote;C.string,C.object;C.string,C.object;C.string,C.object;const ste=["className","cssModule","innerRef","tag"],ate={className:C.string,cssModule:C.object,innerRef:C.oneOfType([C.object,C.string,C.func]),tag:Pe},lte={tag:"div"};function Za(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=qe(e,ste),s=Ie(me(t,"card-body"),n);return H.createElement(i,$e({},o,{className:s,ref:r}))}Za.propTypes=ate;Za.defaultProps=lte;C.oneOfType([C.object,C.func,C.string]),C.string,C.object;const cte=["className","cssModule","tag"],ute={className:C.string,cssModule:C.object,tag:Pe},fte={tag:"div"};function MC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,cte),o=Ie(me(t,"card-footer"),n);return H.createElement(r,$e({},i,{className:o}))}MC.propTypes=ute;MC.defaultProps=fte;const dte=["className","cssModule","tag"],hte={className:C.string,cssModule:C.object,tag:Pe},pte={tag:"div"};function Ka(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,dte),o=Ie(me(t,"card-header"),n);return H.createElement(r,$e({},i,{className:o}))}Ka.propTypes=hte;Ka.defaultProps=pte;C.bool,C.string,C.object,C.bool;C.string,C.object;const am=H.createContext({}),mte=["in","children","cssModule","slide","tag","className"];class i_ extends H.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,mte);return H.createElement(Fo,$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===mo.ENTERED||c===mo.EXITING,p=(c===mo.ENTERING||c===mo.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),g=c===mo.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),v=Ie(me(a,"carousel-item",h&&"active",p,g),i);return H.createElement(s,{className:v},r)})}}i_.propTypes=We(We({},Fo.propTypes),{},{tag:Pe,in:C.bool,cssModule:C.object,children:C.node,slide:C.bool,className:C.string});i_.defaultProps=We(We({},Fo.defaultProps),{},{tag:"div",timeout:Ga.Carousel,slide:!0});i_.contextType=am;var zI=i_;const gte=40,HI={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},vte=Object.keys(HI),yte={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class RC extends H.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<gte||(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 H.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return H.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Cr(this.props,vte),a=Ie(me(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=Ie(me("carousel-inner"),t),c=this.props.children.filter(b=>b!=null&&typeof b!="boolean");if(c.every(b=>b.type===zI))return H.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),H.createElement(am.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const b=c[0],w=c[1],S=c[2];return H.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),H.createElement(am.Provider,{value:this.getContextValue()},this.renderItems(b,l),w,S))}const h=c[0],p=b=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(b))},g=H.cloneElement(h,{onClickHandler:p}),v=c[1],y=c[2],x=c[3];return H.createElement("div",$e({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),H.createElement(am.Provider,{value:this.getContextValue()},g,this.renderItems(v,l),y,x))}}RC.propTypes=HI;RC.defaultProps=yte;var _te=RC;const bte=["direction","onClickHandler","cssModule","directionText","className"];function bw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=qe(e,bte),a=Ie(me(o,`carousel-control-${t}`),r),l=Ie(me(`carousel-control-${t}-icon`),r),c=Ie(me("visually-hidden"),r);return H.createElement("a",$e({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),H.createElement("span",{className:l,"aria-hidden":"true"}),H.createElement("span",{className:c},i||t))}bw.propTypes={direction:C.oneOf(["prev","next"]).isRequired,onClickHandler:C.func.isRequired,cssModule:C.object,directionText:C.string,className:C.string};const wte=["items","activeIndex","cssModule","onClickHandler","className"];function VI(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=qe(e,wte),a=Ie(me(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=Ie(me({active:n===f}),r);return H.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 H.createElement("div",$e({className:a},s),l)}VI.propTypes={activeIndex:C.number.isRequired,className:C.string,cssModule:C.object,items:C.array.isRequired,onClickHandler:C.func.isRequired};function WI(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=Ie(me(i,"carousel-caption","d-none","d-md-block"),r);return H.createElement("div",{className:o},H.createElement("h3",null,t),H.createElement("p",null,n))}WI.propTypes={captionHeader:C.node,captionText:C.node.isRequired,className:C.string,cssModule:C.object};const xte=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Ste={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 YI extends B.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,xte),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return H.createElement(zI,{onExiting:this.onExiting,onExited:this.onExited,key:p},H.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),H.createElement(WI,{captionText:h.caption,captionHeader:h.header||h.caption}))});return H.createElement(_te,$e({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&H.createElement(VI,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&H.createElement(bw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&H.createElement(bw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}YI.propTypes=Ste;YI.defaultProps={controls:!0,indicators:!0,autoPlay:!0};C.string,C.object;const Cte=["className","cssModule","tag"],Ete={className:C.string,cssModule:C.object,tag:Pe},Tte={tag:"p"};function NC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Cte),o=Ie(me(t,"card-text"),n);return H.createElement(r,$e({},i,{className:o}))}NC.propTypes=Ete;NC.defaultProps=Tte;const Ote=["className","cssModule","tag"],Pte={className:C.string,cssModule:C.object,tag:Pe},kte={tag:"div"};function LC(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Ote),o=Ie(me(t,"card-title"),n);return H.createElement(r,$e({},i,{className:o}))}LC.propTypes=Pte;LC.defaultProps=kte;const Mte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Rte(){}const Nte={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:Fs,target:Fs.isRequired,modifiers:C.array,strategy:C.string,boundariesElement:C.oneOfType([C.string,_C]),onClosed:C.func,fade:C.bool,transition:C.shape(Zt.propTypes)},Lte={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Rte,fade:!0,transition:We({},Zt.defaultProps)};class DC extends H.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 Mc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?Mc(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:g,container:v,modifiers:y,strategy:x,boundariesElement:b,onClosed:w,fade:S,transition:T,placement:P}=t,k=qe(t,Mte),N=Ie(me("arrow",f),n),D=Ie(me(p,c?`${c}-auto`:""),this.props.cssModule),V=y.map(ee=>ee.name),W=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:b}}].filter(ee=>!V.includes(ee.name)),...y],Y=We(We(We({},Zt.defaultProps),T),{},{baseClass:S?T.baseClass:"",timeout:S?T.timeout:0});return H.createElement(Zt,$e({},Y,k,{in:i,onExited:this.onClosed,tag:g}),H.createElement(PI,{referenceElement:this.targetNode,modifiers:W,placement:P,strategy:x},({ref:ee,style:q,placement:X,isReferenceHidden:ie,arrowProps:le,update:G})=>H.createElement("div",{ref:ee,style:q,className:D,"data-popper-placement":X,"data-popper-reference-hidden":ie?"true":void 0},typeof r=="function"?r({update:G}):r,!h&&H.createElement("span",{ref:le.ref,className:N,style:le.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():La.createPortal(H.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}DC.propTypes=Nte;DC.defaultProps=Lte;var Dte=DC;C.object.isRequired;Fs.isRequired;const o_={children:C.oneOfType([C.node,C.func]),placement:C.oneOf(ZJ),target:Fs.isRequired,container:Fs,isOpen:C.bool,disabled:C.bool,hideArrow:C.bool,boundariesElement:C.oneOfType([C.string,_C]),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},qI={show:0,hide:50},Ate={isOpen:!1,hideArrow:!1,autohide:!1,delay:qI,toggle:function(){},trigger:"click",fade:!0};function GI(e,t){return t&&(e===t||t.contains(e))}function VM(e,t=[]){return t&&t.length&&t.filter(n=>GI(e,n))[0]}class AC extends H.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||VM(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!GI(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&VM(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])?qI[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=Mc(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:g,strategy:v,offset:y,fade:x,flip:b,children:w}=this.props,S=Cr(this.props,Object.keys(o_)),T=Ie(h,r),P=Ie(i,r);return H.createElement(Dte,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:T,container:p,modifiers:g,strategy:v,offset:y,cssModule:r,fade:x,flip:b},({update:k})=>H.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))}}AC.propTypes=o_;AC.defaultProps=Ate;var ZI=AC;const jte={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Wd(e){const t=me("popover","show",e.popperClassName),n=me("popover-inner",e.innerClassName);return H.createElement(ZI,$e({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Wd.propTypes=o_;Wd.defaultProps=jte;const Ite=["defaultOpen"];class Fte extends B.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 H.createElement(Wd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Ite)))}}Fte.propTypes=We({defaultOpen:C.bool},Wd.propTypes);C.string,C.object;C.string,C.object;const $te=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],Bte={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])},Ute={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function jC(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:g,style:v,barStyle:y,barAriaValueText:x,barAriaLabelledBy:b}=e,w=qe(e,$te),S=UM(o)/UM(a)*100,T=Ie(me(n,"progress"),i),k={className:Ie(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":b,children:t};return h?H.createElement(g,$e({},w,k)):H.createElement(g,$e({},w,{style:v,className:T}),p?t:H.createElement("div",k))}jC.propTypes=Bte;jC.defaultProps=Ute;const zte={children:C.node.isRequired,node:C.any};class KI extends H.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return bC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),La.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}KI.propTypes=zte;var XI=KI;function Kg(){}const WM=C.shape(Zt.propTypes),QI={autoFocus:C.bool,backdrop:C.oneOfType([C.bool,C.oneOf(["static"])]),backdropClassName:C.string,backdropTransition:WM,centered:C.bool,children:C.node,contentClassName:C.string,className:C.string,container:Fs,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:WM,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])},Hte=Object.keys(QI),Vte={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Kg,onClosed:Kg,modalTransition:{timeout:Ga.Modal},backdropTransition:{mountOnEnter:!0,timeout:Ga.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Un extends H.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<Un.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||Kg)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||Kg)(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(II.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<Un.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=Mc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=RI(),Un.openCount<1&&(Un.originalBodyOverflow=window.getComputedStyle(document.body).overflow),NI(),Un.openCount===0&&(document.body.className=me(document.body.className,Ie("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Un.openCount,Un.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(Un.openCount<=1){const t=Ie("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=Un.originalBodyOverflow}this.manageFocusAfterClose(),Un.openCount=Math.max(0,Un.openCount-1),yC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Cr(this.props,Hte),n="modal-dialog";return H.createElement("div",$e({},t,{className:Ie(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}}),H.createElement("div",{className:Ie(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,g={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}),b=l&&(v?H.createElement(Zt,$e({},x,{in:a&&!!l,cssModule:s,className:Ie(me("modal-backdrop",o),s)})):H.createElement("div",{className:Ie(me("modal-backdrop","show",o),s)}));return H.createElement(XI,{node:this._element},H.createElement("div",{className:Ie(r)},H.createElement(Zt,$e({},g,y,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Ie(me("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),b))}return null}}Un.propTypes=QI;Un.defaultProps=Vte;Un.openCount=0;Un.originalBodyOverflow=null;var $o=Un;const Wte=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],Yte={children:C.node,className:C.string,close:C.object,closeAriaLabel:C.string,cssModule:C.object,tag:Pe,toggle:C.func,wrapTag:Pe},qte={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function to(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=qe(e,Wte),h=Ie(me(n,"modal-header"),r);return!c&&o&&(t=H.createElement("button",{type:"button",onClick:o,className:Ie("btn-close",r),"aria-label":l})),H.createElement(a,$e({},f,{className:h}),H.createElement(s,{className:Ie("modal-title",r)},i),c||t)}to.propTypes=Yte;to.defaultProps=qte;const Gte=["className","cssModule","tag"],Zte={className:C.string,cssModule:C.object,tag:Pe},Kte={tag:"div"};function Oi(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Gte),o=Ie(me(t,"modal-body"),n);return H.createElement(r,$e({},i,{className:o}))}Oi.propTypes=Zte;Oi.defaultProps=Kte;const Xte=["className","cssModule","tag"],Qte={className:C.string,cssModule:C.object,tag:Pe},Jte={tag:"div"};function Zs(e){const{className:t,cssModule:n,tag:r}=e,i=qe(e,Xte),o=Ie(me(t,"modal-footer"),n);return H.createElement(r,$e({},i,{className:o}))}Zs.propTypes=Qte;Zs.defaultProps=Jte;const ene={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Yd(e){const t=me("tooltip","show",e.popperClassName),n=me("tooltip-inner",e.innerClassName);return H.createElement(ZI,$e({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Yd.propTypes=o_;Yd.defaultProps=ene;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 tne=["className","cssModule","tag","flush","horizontal","numbered"],nne={className:C.string,cssModule:C.object,flush:C.bool,horizontal:C.oneOfType([C.bool,C.string]),numbered:C.bool,tag:Pe},rne={tag:"ul",horizontal:!1,numbered:!1},ine=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function IC(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=qe(e,tne),l=Ie(me(t,"list-group",i?"list-group-flush":ine(o),{"list-group-numbered":s}),n);return H.createElement(r,$e({},a,{className:l}))}IC.propTypes=nne;IC.defaultProps=rne;const one=["className","cssModule","tag","innerRef"],sne={children:C.node,tag:Pe,innerRef:C.oneOfType([C.object,C.func,C.string]),className:C.string,cssModule:C.object},ane={tag:"form"};class JI extends B.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,one),a=Ie(n,r);return H.createElement(i,$e({},s,{ref:o,className:a}))}}JI.propTypes=sne;JI.defaultProps=ane;C.node,C.string,C.object,C.bool,C.bool;const lne=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],cne={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},une={tag:"div"};function gr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=qe(e,lne),h=o||c,p=Ie(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),H.createElement(l,$e({},f,{className:p}))}gr.propTypes=cne;gr.defaultProps=une;C.node,C.bool,C.string,C.string,C.object;const fne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],dne={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},hne={type:"text"};let FC=class extends H.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,fne);const g=["switch","radio","checkbox"].indexOf(i)>-1,v=/\D/g,y=i==="textarea",x=i==="select",b=i==="range";let w=l||(x||y?i:"input"),S="form-control";f?(S=`${S}-plaintext`,w=l||"input"):b?S="form-range":x?S="form-select":g&&(c?S=null:S="form-check-input"),p.size&&v.test(p.size)&&(_w(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const T=Ie(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")&&(_w(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),H.createElement(w,$e({},p,{ref:h,className:T,"aria-invalid":a}))}};FC.propTypes=dne;FC.defaultProps=hne;var Rc=FC;const pne=["className","cssModule","tag","type","size"],mne={className:C.string,cssModule:C.object,size:C.string,tag:Pe,type:C.string},gne={tag:"div"};function qd(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=qe(e,pne),a=Ie(me(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?H.createElement(Gc,$e({},s,{className:a})):H.createElement(BI.Provider,{value:{insideInputGroup:!0}},H.createElement(r,$e({},s,{className:a})))}qd.propTypes=mne;qd.defaultProps=gne;C.string,C.object;const q0=C.oneOfType([C.number,C.string]),kl=C.oneOfType([C.bool,C.string,C.number,C.shape({size:q0,order:q0,offset:q0})]);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 Xg(){}const YM=C.shape(Zt.propTypes),e6={autoFocus:C.bool,backdrop:C.bool,backdropClassName:C.string,backdropTransition:YM,children:C.node,className:C.string,container:Fs,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:YM,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])},vne=Object.keys(e6),yne={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Xg,onClosed:Xg,offcanvasTransition:{timeout:Ga.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Ga.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class hi extends H.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<hi.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||Xg)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.offcanvasTransition.onExited||Xg)(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(II.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<hi.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=Mc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=RI(),NI(),hi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=hi.openCount,hi.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(),hi.openCount=Math.max(0,hi.openCount-1),document.body.style.overflow=null,yC(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"},g=this.props.fade,v=We(We(We({},Zt.defaultProps),this.props.offcanvasTransition),{},{baseClass:g?this.props.offcanvasTransition.baseClass:"",timeout:g?this.props.offcanvasTransition.timeout:0}),y=We(We(We({},Zt.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),x=l&&(g?H.createElement(Zt,$e({},y,{in:a&&!!l,innerRef:w=>{this._backdrop=w},cssModule:s,className:Ie(me("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):H.createElement("div",{className:Ie(me("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),b=Cr(this.props,vne);return H.createElement(XI,{node:this._element},H.createElement(Zt,$e({},b,p,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Ie(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}}hi.propTypes=e6;hi.defaultProps=yne;hi.openCount=0;C.string,C.object;C.node,C.string,C.object,C.string,C.object,C.func;const _ne=["className","listClassName","cssModule","size","tag","listTag","aria-label"],bne={children:C.node,className:C.string,listClassName:C.string,cssModule:C.object,size:C.string,tag:Pe,listTag:Pe,"aria-label":C.string},wne={tag:"nav",listTag:"ul","aria-label":"pagination"};function s_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=qe(e,_ne),c=Ie(me(t),r),f=Ie(me(n,"pagination",{[`pagination-${i}`]:!!i}),r);return H.createElement(o,{className:c,"aria-label":a},H.createElement(s,$e({},l,{className:f})))}s_.propTypes=bne;s_.defaultProps=wne;const xne=["active","className","cssModule","disabled","tag"],Sne={active:C.bool,children:C.node,className:C.string,cssModule:C.object,disabled:C.bool,tag:Pe},Cne={tag:"li"};function Os(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=qe(e,xne),a=Ie(me(n,"page-item",{active:t,disabled:i}),r);return H.createElement(o,$e({},s,{className:a}))}Os.propTypes=Sne;Os.defaultProps=Cne;const Ene=["className","cssModule","next","previous","first","last","tag"],Tne={"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},One={tag:"a"};function Ps(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=qe(e,Ene);const c=Ie(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:g}=e;return g&&Array.isArray(g)&&g.length===0&&(g=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(g=[H.createElement("span",{"aria-hidden":"true",key:"caret"},g||p),H.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),H.createElement(a,$e({},l,{className:c,"aria-label":h}),g)}Ps.propTypes=Tne;Ps.defaultProps=One;const Pne=H.createContext({}),t6={tag:Pe,activeTab:C.any,className:C.string,cssModule:C.object},kne={tag:"div"};class n6 extends B.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(t6)),o=Ie(me("tab-content",t),n);return H.createElement(Pne.Provider,{value:{activeTabId:this.state.activeTab}},H.createElement(r,$e({},i,{className:o})))}}n6.propTypes=t6;n6.defaultProps=kne;C.string,C.object,C.any;const Mne=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Rne={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)},Nne={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:We(We({},Zt.defaultProps),{},{unmountOnExit:!0})};function $C(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,g=qe(e,Mne),v=Ie(me(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),y=Ie(me("btn-close",n),i),x=We(We(We({},Zt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return H.createElement(Zt,$e({},g,x,{tag:o,className:v,in:a,role:"alert",innerRef:p}),l?H.createElement("button",{type:"button",className:y,"aria-label":r,onClick:l}):null,c)}$C.propTypes=Rne;$C.defaultProps=Nne;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 Lne=["className","cssModule","tag","active","disabled","action","color"],Dne={action:C.bool,active:C.bool,className:C.string,cssModule:C.object,color:C.string,disabled:C.bool,tag:Pe},Ane={tag:"li"},jne=e=>{e.preventDefault()};function BC(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=qe(e,Lne),c=Ie(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=jne),H.createElement(r,$e({},l,{className:c}))}BC.propTypes=Dne;BC.defaultProps=Ane;C.string,C.object;C.string,C.object;const Ine=["className","cssModule","tag","type"],Fne={className:C.string,cssModule:C.object,tag:Pe,type:C.string},$ne={tag:"ul"},UC=B.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=qe(e,Ine),a=Ie(me(n,o?`list-${o}`:!1),r);return H.createElement(i,$e({},s,{className:a,ref:t}))});UC.name="List";UC.propTypes=Fne;UC.defaultProps=$ne;const Bne=["className","cssModule","tag"],Une={className:C.string,cssModule:C.object,tag:Pe},zne={tag:"li"},zC=B.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=qe(e,Bne),s=Ie(me(n,"list-inline-item"),r);return H.createElement(i,$e({},o,{className:s,ref:t}))});zC.name="ListInlineItem";zC.propTypes=Une;zC.defaultProps=zne;const Hne=["defaultOpen"];class Vne extends B.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 H.createElement(PC,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Hne)))}}Vne.propTypes=We({defaultOpen:C.bool},PC.propTypes);const Wne=["toggleEvents","defaultOpen"],Yne={defaultOpen:C.bool,toggler:C.string.isRequired,toggleEvents:C.arrayOf(C.string)},qne={toggleEvents:QJ};class r6 extends B.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=jI(this.props.toggler),this.togglers.length&&(this.removeEventListeners=JJ(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 H.createElement(UI,$e({isOpen:this.state.isOpen},Cr(this.props,Wne)))}}r6.propTypes=Yne;r6.defaultProps=qne;const Gne=["defaultOpen"];class Gd extends B.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 H.createElement(Gc,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Gne)))}}Gd.propTypes=We({defaultOpen:C.bool,onToggle:C.func},Gc.propTypes);const Zne=["defaultOpen"];class Er extends B.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 H.createElement(Yd,$e({isOpen:this.state.isOpen,toggle:this.toggle},Cr(this.props,Zne)))}}Er.propTypes=We({defaultOpen:C.bool},Yd.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({},wC.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 Kne=e=>({error:"border-danger",default:""})[e],Xne=e=>({error:"text-danger",default:"text-muted"})[e],wo=({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 m.jsx(Xn,{className:me("g-0",e),children:m.jsx("div",{className:o,children:m.jsx(xr,{className:Kne(r),body:!0,children:m.jsxs("h3",{className:me("text-center mb-0",Xne(r)),children:[n&&m.jsx(Fe,{icon:Oj,spin:!0}),n&&m.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},cn=({title:e,children:t,bodyClassName:n,...r})=>m.jsxs(xr,{...r,children:[e&&m.jsx(Ka,{role:"heading",children:e}),m.jsx(Za,{className:n,children:t})]}),Nr=({children:e,type:t,className:n,small:r=!1})=>m.jsx(Xn,{className:n,children:m.jsx("div",{className:me({"col-md-10 offset-md-1":!r,"col-12":r}),children:m.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})})});var yp,Qne=new Uint8Array(16);function Jne(){if(!yp&&(yp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!yp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yp(Qne)}const ere=/^(?:[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 tre(e){return typeof e=="string"&&ere.test(e)}var Fn=[];for(var G0=0;G0<256;++G0)Fn.push((G0+256).toString(16).substr(1));function nre(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(!tre(n))throw TypeError("Stringified UUID is invalid");return n}function HC(e,t,n){e=e||{};var r=e.random||(e.rng||Jne)();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 nre(r)}const hn=(e=!1)=>{const[t,n]=B.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},a_=()=>{const{current:e}=B.useRef(`dom-${HC()}`);return e},al=()=>B.useRef(null),i6=({checked:e=!1,onChange:t=qy,className:n,children:r,type:i,inline:o=!1})=>{const s=a_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return m.jsxs("span",{className:me("form-check",l,n),style:c,children:[m.jsx("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),m.jsx("label",{className:"form-check-label",htmlFor:s,children:r})]})},o6=e=>m.jsx(i6,{type:"checkbox",...e}),Nc=e=>m.jsx(i6,{type:"switch",...e}),Kc=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>m.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[m.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),lm=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=a_();return m.jsx(Kc,{label:m.jsxs(m.Fragment,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:m.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})};const rre=500;let _p;const Zd=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=B.useState(i),a=()=>{_p&&clearTimeout(_p),_p=null},l=(c,f=rre)=>{s(c),a(),_p=setTimeout(()=>{e(c),a()},f)};return m.jsxs("div",{className:me("search-field",t),children:[m.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)}),m.jsx(Fe,{icon:pK,className:"search-field__icon"}),m.jsx("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const Bo=({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}),g={minWidth:a&&`${a}px`};return m.jsxs(Gc,{isOpen:f,toggle:h,disabled:t,className:i,children:[m.jsx(Vd,{size:c,caret:!o,className:p,color:"primary",children:e}),m.jsx(Zc,{className:"w-100",end:s,style:g,children:r})]})},l_=({children:e,minWidth:t})=>m.jsx(Bo,{text:m.jsx(Fe,{className:"px-1",icon:oK}),size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e});const wf=({children:e,...t})=>m.jsx($I,{className:"nav-pills__nav-link",tag:Q4,...t,children:e}),s6=({children:e,fill:t=!1,className:n=""})=>m.jsx(xr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:m.jsx(Jy,{pills:!0,fill:t,children:B.Children.map(e,r=>{if(!B.isValidElement(r)||r.type!==wf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),c_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",a6=(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}),l6=e=>e.dir?`${e.field}-${e.dir}`:void 0,ire=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Kd({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=c_(a,t.field,t.dir);n(l?a:void 0,l)};return m.jsxs(Gd,{children:[m.jsxs(Vd,{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&&m.jsx(m.Fragment,{children:"Order by"}),r&&!t.field&&m.jsx("i",{children:"Order by..."}),r&&t.field&&m.jsxs(m.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",m.jsx("small",{children:t.dir??"DESC"})]})]}),m.jsxs(Zc,{end:i,className:me("w-100",{"ordering-dropdown__menu--link":!r}),children:[Ug(e).map(([a,l])=>m.jsxs(ze,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&m.jsx(Fe,{icon:t.dir==="ASC"?cK:ZZ,className:"ordering-dropdown__sort-icon"})]},a)),m.jsx(ze,{divider:!0}),m.jsx(ze,{disabled:!t.field,onClick:()=>n(),children:m.jsx("i",{children:"Clear selection"})})]})]})}const VC="#4696e5",ore="rgba(70, 150, 229, 0.4)",c6="#f77f28",sre="rgba(247, 127, 40, 0.4)",are="white",lre="#161b22",u6=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},cre=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"};var ure=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},qM=typeof Symbol<"u"&&Symbol,fre=ure,dre=function(){return typeof qM!="function"||typeof Symbol!="function"||typeof qM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fre()},hre="Function.prototype.bind called on incompatible ",Z0=Array.prototype.slice,pre=Object.prototype.toString,mre="[object Function]",gre=function(t){var n=this;if(typeof n!="function"||pre.call(n)!==mre)throw new TypeError(hre+n);for(var r=Z0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(Z0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(Z0.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},vre=gre,WC=Function.prototype.bind||vre,yre=WC,_re=yre.call(Function.call,Object.prototype.hasOwnProperty),st,md=SyntaxError,f6=Function,cc=TypeError,K0=function(e){try{return f6('"use strict"; return ('+e+").constructor;")()}catch{}},Aa=Object.getOwnPropertyDescriptor;if(Aa)try{Aa({},"")}catch{Aa=null}var X0=function(){throw new cc},bre=Aa?function(){try{return arguments.callee,X0}catch{try{return Aa(arguments,"callee").get}catch{return X0}}}():X0,Ml=dre(),Jo=Object.getPrototypeOf||function(e){return e.__proto__},jl={},wre=typeof Uint8Array>"u"?st:Jo(Uint8Array),uc={"%AggregateError%":typeof AggregateError>"u"?st:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?st:ArrayBuffer,"%ArrayIteratorPrototype%":Ml?Jo([][Symbol.iterator]()):st,"%AsyncFromSyncIteratorPrototype%":st,"%AsyncFunction%":jl,"%AsyncGenerator%":jl,"%AsyncGeneratorFunction%":jl,"%AsyncIteratorPrototype%":jl,"%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%":f6,"%GeneratorFunction%":jl,"%Int8Array%":typeof Int8Array>"u"?st:Int8Array,"%Int16Array%":typeof Int16Array>"u"?st:Int16Array,"%Int32Array%":typeof Int32Array>"u"?st:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ml?Jo(Jo([][Symbol.iterator]())):st,"%JSON%":typeof JSON=="object"?JSON:st,"%Map%":typeof Map>"u"?st:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ml?st:Jo(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"||!Ml?st:Jo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?st:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ml?Jo(""[Symbol.iterator]()):st,"%Symbol%":Ml?Symbol:st,"%SyntaxError%":md,"%ThrowTypeError%":bre,"%TypedArray%":wre,"%TypeError%":cc,"%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},xre=function e(t){var n;if(t==="%AsyncFunction%")n=K0("async function () {}");else if(t==="%GeneratorFunction%")n=K0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=K0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=Jo(i.prototype))}return uc[t]=n,n},GM={"%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"]},u_=WC,Qg=_re,Sre=u_.call(Function.call,Array.prototype.concat),Cre=u_.call(Function.apply,Array.prototype.splice),ZM=u_.call(Function.call,String.prototype.replace),Jg=u_.call(Function.call,String.prototype.slice),Ere=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Tre=/\\(\\)?/g,Ore=function(t){var n=Jg(t,0,1),r=Jg(t,-1);if(n==="%"&&r!=="%")throw new md("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new md("invalid intrinsic syntax, expected opening `%`");var i=[];return ZM(t,Ere,function(o,s,a,l){i[i.length]=a?ZM(l,Tre,"$1"):s||o}),i},Pre=function(t,n){var r=t,i;if(Qg(GM,r)&&(i=GM[r],r="%"+i[0]+"%"),Qg(uc,r)){var o=uc[r];if(o===jl&&(o=xre(r)),typeof o>"u"&&!n)throw new cc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new md("intrinsic "+t+" does not exist!")},YC=function(t,n){if(typeof t!="string"||t.length===0)throw new cc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new cc('"allowMissing" argument must be a boolean');var r=Ore(t),i=r.length>0?r[0]:"",o=Pre("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],Cre(r,Sre([0,1],c)));for(var f=1,h=!0;f<r.length;f+=1){var p=r[f],g=Jg(p,0,1),v=Jg(p,-1);if((g==='"'||g==="'"||g==="`"||v==='"'||v==="'"||v==="`")&&g!==v)throw new md("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,s="%"+i+"%",Qg(uc,s))a=uc[s];else if(a!=null){if(!(p in a)){if(!n)throw new cc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Aa&&f+1>=r.length){var y=Aa(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=Qg(a,p),a=a[p];h&&!l&&(uc[s]=a)}}return a},d6={exports:{}};(function(e){var t=WC,n=YC,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 g=s(p,"length");g.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})(d6);var kre=d6.exports,h6=YC,p6=kre,Mre=p6(h6("String.prototype.indexOf")),Rre=function(t,n){var r=h6(t,!!n);return typeof r=="function"&&Mre(t,".prototype.")>-1?p6(r):r};const Nre={},Lre=Object.freeze(Object.defineProperty({__proto__:null,default:Nre},Symbol.toStringTag,{value:"Module"})),Dre=m$(Lre);var qC=typeof Map=="function"&&Map.prototype,Q0=Object.getOwnPropertyDescriptor&&qC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ev=qC&&Q0&&typeof Q0.get=="function"?Q0.get:null,Are=qC&&Map.prototype.forEach,GC=typeof Set=="function"&&Set.prototype,J0=Object.getOwnPropertyDescriptor&&GC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,tv=GC&&J0&&typeof J0.get=="function"?J0.get:null,jre=GC&&Set.prototype.forEach,Ire=typeof WeakMap=="function"&&WeakMap.prototype,xf=Ire?WeakMap.prototype.has:null,Fre=typeof WeakSet=="function"&&WeakSet.prototype,Sf=Fre?WeakSet.prototype.has:null,$re=typeof WeakRef=="function"&&WeakRef.prototype,KM=$re?WeakRef.prototype.deref:null,Bre=Boolean.prototype.valueOf,Ure=Object.prototype.toString,zre=Function.prototype.toString,Hre=String.prototype.match,ZC=String.prototype.slice,ps=String.prototype.replace,Vre=String.prototype.toUpperCase,XM=String.prototype.toLowerCase,m6=RegExp.prototype.test,QM=Array.prototype.concat,Fi=Array.prototype.join,Wre=Array.prototype.slice,JM=Math.floor,ww=typeof BigInt=="function"?BigInt.prototype.valueOf:null,e1=Object.getOwnPropertySymbols,xw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Lc||"symbol")?Symbol.toStringTag:null,g6=Object.prototype.propertyIsEnumerable,e3=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function t3(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||m6.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-JM(-e):JM(e);if(r!==e){var i=String(r),o=ZC.call(t,i.length+1);return ps.call(i,n,"$&_")+"."+ps.call(ps.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ps.call(t,n,"$&_")}var t1=Dre.custom,n1=t1&&y6(t1)?t1:null,Yre=function e(t,n,r,i){var o=n||{};if(es(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(es(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=es(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(es(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(es(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 b6(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?t3(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?t3(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=fie(o,r);if(typeof i>"u")i=[];else if(_6(i,t)>=0)return"[Circular]";function p(ee,q,X){if(q&&(i=Wre.call(i),i.push(q)),X){var ie={depth:o.depth};return es(o,"quoteStyle")&&(ie.quoteStyle=o.quoteStyle),e(ee,ie,r+1,i)}return e(ee,o,r+1,i)}if(typeof t=="function"){var g=nie(t),v=bp(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Fi.call(v,", ")+" }":"")}if(y6(t)){var y=Lc?ps.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):xw.call(t);return typeof t=="object"&&!Lc?Nu(y):y}if(lie(t)){for(var x="<"+XM.call(String(t.nodeName)),b=t.attributes||[],w=0;w<b.length;w++)x+=" "+b[w].name+"="+v6(qre(b[w].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+XM.call(String(t.nodeName))+">",x}if(Sw(t)){if(t.length===0)return"[]";var S=bp(t,p);return h&&!uie(S)?"["+Cw(S,h)+"]":"[ "+Fi.call(S,", ")+" ]"}if(Kre(t)){var T=bp(t,p);return"cause"in t&&!g6.call(t,"cause")?"{ ["+String(t)+"] "+Fi.call(QM.call("[cause]: "+p(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Fi.call(T,", ")+" }"}if(typeof t=="object"&&s){if(n1&&typeof t[n1]=="function")return t[n1]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(rie(t)){var P=[];return Are.call(t,function(ee,q){P.push(p(q,t,!0)+" => "+p(ee,t))}),n3("Map",ev.call(t),P,h)}if(sie(t)){var k=[];return jre.call(t,function(ee){k.push(p(ee,t))}),n3("Set",tv.call(t),k,h)}if(iie(t))return r1("WeakMap");if(aie(t))return r1("WeakSet");if(oie(t))return r1("WeakRef");if(Qre(t))return Nu(p(Number(t)));if(eie(t))return Nu(p(ww.call(t)));if(Jre(t))return Nu(Bre.call(t));if(Xre(t))return Nu(p(String(t)));if(!Gre(t)&&!Zre(t)){var N=bp(t,p),D=e3?e3(t)===Object.prototype:t instanceof Object||t.constructor===Object,V=t instanceof Object?"":"null prototype",A=!D&&tr&&Object(t)===t&&tr in t?ZC.call(Ks(t),8,-1):V?"Object":"",W=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Y=W+(A||V?"["+Fi.call(QM.call([],A||[],V||[]),": ")+"] ":"");return N.length===0?Y+"{}":h?Y+"{"+Cw(N,h)+"}":Y+"{ "+Fi.call(N,", ")+" }"}return String(t)};function v6(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function qre(e){return ps.call(String(e),/"/g,""")}function Sw(e){return Ks(e)==="[object Array]"&&(!tr||!(typeof e=="object"&&tr in e))}function Gre(e){return Ks(e)==="[object Date]"&&(!tr||!(typeof e=="object"&&tr in e))}function Zre(e){return Ks(e)==="[object RegExp]"&&(!tr||!(typeof e=="object"&&tr in e))}function Kre(e){return Ks(e)==="[object Error]"&&(!tr||!(typeof e=="object"&&tr in e))}function Xre(e){return Ks(e)==="[object String]"&&(!tr||!(typeof e=="object"&&tr in e))}function Qre(e){return Ks(e)==="[object Number]"&&(!tr||!(typeof e=="object"&&tr in e))}function Jre(e){return Ks(e)==="[object Boolean]"&&(!tr||!(typeof e=="object"&&tr in e))}function y6(e){if(Lc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!xw)return!1;try{return xw.call(e),!0}catch{}return!1}function eie(e){if(!e||typeof e!="object"||!ww)return!1;try{return ww.call(e),!0}catch{}return!1}var tie=Object.prototype.hasOwnProperty||function(e){return e in this};function es(e,t){return tie.call(e,t)}function Ks(e){return Ure.call(e)}function nie(e){if(e.name)return e.name;var t=Hre.call(zre.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _6(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 rie(e){if(!ev||!e||typeof e!="object")return!1;try{ev.call(e);try{tv.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function iie(e){if(!xf||!e||typeof e!="object")return!1;try{xf.call(e,xf);try{Sf.call(e,Sf)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function oie(e){if(!KM||!e||typeof e!="object")return!1;try{return KM.call(e),!0}catch{}return!1}function sie(e){if(!tv||!e||typeof e!="object")return!1;try{tv.call(e);try{ev.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function aie(e){if(!Sf||!e||typeof e!="object")return!1;try{Sf.call(e,Sf);try{xf.call(e,xf)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function lie(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function b6(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return b6(ZC.call(e,0,t.maxStringLength),t)+r}var i=ps.call(ps.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,cie);return v6(i,"single",t)}function cie(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":"")+Vre.call(t.toString(16))}function Nu(e){return"Object("+e+")"}function r1(e){return e+" { ? }"}function n3(e,t,n,r){var i=r?Cw(n,r):Fi.call(n,", ");return e+" ("+t+") {"+i+"}"}function uie(e){for(var t=0;t<e.length;t++)if(_6(e[t],`
|
||
`)>=0)return!1;return!0}function fie(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Fi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Fi.call(Array(t+1),n)}}function Cw(e,t){if(e.length===0)return"";var n=`
|
||
`+t.prev+t.base;return n+Fi.call(e,","+n)+`
|
||
`+t.prev}function bp(e,t){var n=Sw(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=es(e,i)?t(e[i],e):""}var o=typeof e1=="function"?e1(e):[],s;if(Lc){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)es(e,l)&&(n&&String(Number(l))===l&&l<e.length||Lc&&s["$"+l]instanceof Symbol||(m6.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if(typeof e1=="function")for(var c=0;c<o.length;c++)g6.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var KC=YC,Xc=Rre,die=Yre,hie=KC("%TypeError%"),wp=KC("%WeakMap%",!0),xp=KC("%Map%",!0),pie=Xc("WeakMap.prototype.get",!0),mie=Xc("WeakMap.prototype.set",!0),gie=Xc("WeakMap.prototype.has",!0),vie=Xc("Map.prototype.get",!0),yie=Xc("Map.prototype.set",!0),_ie=Xc("Map.prototype.has",!0),XC=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},bie=function(e,t){var n=XC(e,t);return n&&n.value},wie=function(e,t,n){var r=XC(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},xie=function(e,t){return!!XC(e,t)},Sie=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new hie("Side channel does not contain "+die(o))},get:function(o){if(wp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return pie(t,o)}else if(xp){if(n)return vie(n,o)}else if(r)return bie(r,o)},has:function(o){if(wp&&o&&(typeof o=="object"||typeof o=="function")){if(t)return gie(t,o)}else if(xp){if(n)return _ie(n,o)}else if(r)return xie(r,o);return!1},set:function(o,s){wp&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new wp),mie(t,o,s)):xp?(n||(n=new xp),yie(n,o,s)):(r||(r={key:{},next:null}),wie(r,o,s))}};return i},Cie=String.prototype.replace,Eie=/%20/g,i1={RFC1738:"RFC1738",RFC3986:"RFC3986"},QC={default:i1.RFC3986,formatters:{RFC1738:function(e){return Cie.call(e,Eie,"+")},RFC3986:function(e){return String(e)}},RFC1738:i1.RFC1738,RFC3986:i1.RFC3986},Tie=QC,o1=Object.prototype.hasOwnProperty,wa=Array.isArray,Di=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Oie=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(wa(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},w6=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},Pie=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(wa(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!o1.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 wa(t)&&!wa(n)&&(i=w6(t,r)),wa(t)&&wa(n)?(n.forEach(function(o,s){if(o1.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 o1.call(o,s)?o[s]=e(o[s],a,r):o[s]=a,o},i)},kie=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},Mie=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}},Rie=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===Tie.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Di[c];continue}if(c<2048){a=a+(Di[192|c>>6]+Di[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Di[224|c>>12]+Di[128|c>>6&63]+Di[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Di[240|c>>18]+Di[128|c>>12&63]+Di[128|c>>6&63]+Di[128|c&63]}return a},Nie=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 Oie(n),t},Lie=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Die=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Aie=function(t,n){return[].concat(t,n)},jie=function(t,n){if(wa(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},x6={arrayToObject:w6,assign:kie,combine:Aie,compact:Nie,decode:Mie,encode:Rie,isBuffer:Die,isRegExp:Lie,maybeMap:jie,merge:Pie},S6=Sie,Ew=x6,Cf=QC,Iie=Object.prototype.hasOwnProperty,r3={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},po=Array.isArray,Fie=String.prototype.split,$ie=Array.prototype.push,C6=function(e,t){$ie.apply(e,po(t)?t:[t])},Bie=Date.prototype.toISOString,i3=Cf.default,$n={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ew.encode,encodeValuesOnly:!1,format:i3,formatter:Cf.formatters[i3],indices:!1,serializeDate:function(t){return Bie.call(t)},skipNulls:!1,strictNullHandling:!1},Uie=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},s1={},zie=function e(t,n,r,i,o,s,a,l,c,f,h,p,g,v,y,x){for(var b=t,w=x,S=0,T=!1;(w=w.get(s1))!==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(s1)>"u"&&(S=0)}if(typeof l=="function"?b=l(n,b):b instanceof Date?b=h(b):r==="comma"&&po(b)&&(b=Ew.maybeMap(b,function(F){return F instanceof Date?h(F):F})),b===null){if(o)return a&&!v?a(n,$n.encoder,y,"key",p):n;b=""}if(Uie(b)||Ew.isBuffer(b)){if(a){var k=v?n:a(n,$n.encoder,y,"key",p);if(r==="comma"&&v){for(var N=Fie.call(String(b),","),D="",V=0;V<N.length;++V)D+=(V===0?"":",")+g(a(N[V],$n.encoder,y,"value",p));return[g(k)+(i&&po(b)&&N.length===1?"[]":"")+"="+D]}return[g(k)+"="+g(a(b,$n.encoder,y,"value",p))]}return[g(n)+"="+g(String(b))]}var A=[];if(typeof b>"u")return A;var W;if(r==="comma"&&po(b))W=[{value:b.length>0?b.join(",")||null:void 0}];else if(po(l))W=l;else{var Y=Object.keys(b);W=c?Y.sort(c):Y}for(var ee=i&&po(b)&&b.length===1?n+"[]":n,q=0;q<W.length;++q){var X=W[q],ie=typeof X=="object"&&typeof X.value<"u"?X.value:b[X];if(!(s&&ie===null)){var le=po(b)?typeof r=="function"?r(ee,X):ee:ee+(f?"."+X:"["+X+"]");x.set(t,S);var G=S6();G.set(s1,x),C6(A,e(ie,le,r,i,o,s,a,l,c,f,h,p,g,v,y,G))}}return A},Hie=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=Cf.default;if(typeof t.format<"u"){if(!Iie.call(Cf.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=Cf.formatters[r],o=$n.filter;return(typeof t.filter=="function"||po(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}},Vie=function(e,t){var n=e,r=Hie(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):po(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in r3?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=r3[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=S6(),h=0;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||C6(s,zie(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 g=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&"),g.length>0?v+g:""},Dc=x6,Tw=Object.prototype.hasOwnProperty,Wie=Array.isArray,Sn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Dc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Yie=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},E6=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},qie="utf8=%26%2310003%3B",Gie="utf8=%E2%9C%93",Zie=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]===Gie?c="utf-8":s[l]===qie&&(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,g,v;p===-1?(g=n.decoder(f,Sn.decoder,c,"key"),v=n.strictNullHandling?null:""):(g=n.decoder(f.slice(0,p),Sn.decoder,c,"key"),v=Dc.maybeMap(E6(f.slice(p+1),n),function(y){return n.decoder(y,Sn.decoder,c,"value")})),v&&n.interpretNumericEntities&&c==="iso-8859-1"&&(v=Yie(v)),f.indexOf("[]=")>-1&&(v=Wie(v)?[v]:v),Tw.call(r,g)?r[g]=Dc.combine(r[g],v):r[g]=v}return r},Kie=function(e,t,n,r){for(var i=r?t:E6(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},Xie=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&&Tw.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&&Tw.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),Kie(f,n,r,i)}},Qie=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"||Dc.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}},Jie=function(e,t){var n=Qie(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?Zie(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var a=o[s],l=Xie(a,r[a],n,typeof e=="string");i=Dc.merge(i,l,n)}return n.allowSparse===!0?i:Dc.compact(i)},eoe=Vie,toe=Jie,noe=QC,roe={formats:noe,parse:toe,stringify:eoe};const T6=ri(roe),ll=e=>T6.parse(e,{ignoreQueryPrefix:!0}),Xd=e=>T6.stringify(e,{arrayFormat:"brackets"});var f_=(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))(f_||{}),d_=(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))(d_||{});const ioe=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},ooe=(e,t)=>`${e}/rest/v${t}`,soe=Fd(Ao),aoe=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:l6(e)}),loe=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===f_.NOT_FOUND||e.type===d_.NOT_FOUND)&&e.status===404;class coe{constructor(t,n,r){xe(this,"apiVersion");xe(this,"listShortUrls",async(t={})=>this.performRequest({url:"/short-urls",query:aoe(t)}).then(({shortUrls:n})=>n));xe(this,"createShortUrl",async t=>{const n=Fd(r=>Wn(r)||Ao(r),t);return this.performRequest({url:"/short-urls",method:"POST",body:n})});xe(this,"getShortUrlVisits",async(t,n)=>this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getTagVisits",async(t,n)=>this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getDomainVisits",async(t,n)=>this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r));xe(this,"getOrphanVisits",async t=>this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n));xe(this,"getNonOrphanVisits",async t=>this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n));xe(this,"getVisitsOverview",async()=>this.performRequest({url:"/visits"}).then(({visits:t})=>t));xe(this,"getShortUrl",async(t,n)=>this.performRequest({url:`/short-urls/${t}`,query:{domain:n}}));xe(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}}));xe(this,"updateShortUrl",async(t,n,r)=>this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r}));xe(this,"listTags",async()=>this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));xe(this,"tagsStats",async()=>this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));xe(this,"deleteTags",async t=>this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t})));xe(this,"editTag",async(t,n)=>this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n})));xe(this,"health",async t=>this.performRequest({url:"/health",domain:t}));xe(this,"mercureInfo",async()=>this.performRequest({url:"/mercure-info"}));xe(this,"listDomains",async()=>this.performRequest({url:"/domains"}).then(({domains:t})=>t));xe(this,"editDomainRedirects",async t=>this.performRequest({url:"/domains/redirects",method:"PATCH",body:t}));xe(this,"performRequest",async t=>this.httpClient.fetchJson(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t)))));xe(this,"performEmptyRequest",async t=>this.httpClient.fetchEmpty(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t)))));xe(this,"toFetchParams",({url:t,method:n="GET",query:r={},body:i,domain:o})=>{const s=Xd(soe(r)),a=Wn(s)?"":`?${s}`,l=o?ioe(this.baseUrl,o):this.baseUrl;return[`${ooe(l,this.apiVersion)}${t}${a}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});xe(this,"handleFetchError",t=>n=>{if(!loe(n))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const a1={},uoe=e=>typeof e=="function",foe=e=>{const{selectedServer:t}=e();if(!Ej(t))throw new Error("There's no selected server or it is not found");return t},doe=e=>t=>{const{url:n,apiKey:r}=uoe(t)?foe(t):t,i=`${n}_${r}`;return a1[i]||(a1[i]=new coe(e,n,r)),a1[i]},hoe=e=>{e.serviceFactory("buildShlinkApiClient",doe,"HttpClient")};const poe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=hn(),o=()=>{i(),n()};return m.jsxs($C,{className:"app-update-banner",isOpen:e,toggle:t,tag:cn,color:"secondary",children:[m.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),m.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",m.jsxs(ht,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&m.jsxs(m.Fragment,{children:["Restart now ",m.jsx(Fe,{icon:_K,className:"ms-1"})]}),r&&m.jsx(m.Fragment,{children:"Restarting..."})]})]})]})},O6=({to:e="/",children:t="Home"})=>m.jsx("div",{className:"home",children:m.jsxs(cn,{className:"p-4",children:[m.jsx("h2",{children:"Oops! We could not find requested route."}),m.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),m.jsx("br",{}),m.jsx(Dt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),moe=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"})})};const goe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const v=bn().pathname==="/";return B.useEffect(()=>{var y;Object.keys(c).length===0&&l(),u6(((y=f.ui)==null?void 0:y.theme)??"light")},[]),m.jsxs("div",{className:"container-fluid app-container",children:[m.jsx(e,{}),m.jsxs("div",{className:"app",children:[m.jsx("div",{className:me("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:m.jsxs(Hy,{children:[m.jsx(gt,{index:!0,element:m.jsx(t,{})}),m.jsx(gt,{path:"/settings/*",element:m.jsx(o,{})}),m.jsx(gt,{path:"/manage-servers",element:m.jsx(s,{})}),m.jsx(gt,{path:"/server/create",element:m.jsx(r,{})}),m.jsx(gt,{path:"/server/:serverId/edit",element:m.jsx(i,{})}),m.jsx(gt,{path:"/server/:serverId/*",element:m.jsx(n,{})}),m.jsx(gt,{path:"*",element:m.jsx(O6,{})})]})}),m.jsx("div",{className:"shlink-footer",children:m.jsx(a,{})})]}),m.jsx(poe,{isOpen:h,toggle:p,forceUpdate:moe})]})};function mi(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 $s(e){return!!e&&!!e[At]}function Mo(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)===Eoe}(e)||Array.isArray(e)||!!e[f3]||!!(!((t=e.constructor)===null||t===void 0)&&t[f3])||JC(e)||eE(e))}function Xa(e,t,n){n===void 0&&(n=!1),Qc(e)===0?(n?Object.keys:dc)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Qc(e){var t=e[At];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:JC(e)?2:eE(e)?3:0}function fc(e,t){return Qc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function voe(e,t){return Qc(e)===2?e.get(t):e[t]}function P6(e,t,n){var r=Qc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function k6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function JC(e){return Soe&&e instanceof Map}function eE(e){return Coe&&e instanceof Set}function _a(e){return e.o||e.t}function tE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=R6(e);delete t[At];for(var n=dc(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 nE(e,t){return t===void 0&&(t=!1),rE(e)||$s(e)||!Mo(e)||(Qc(e)>1&&(e.set=e.add=e.clear=e.delete=yoe),Object.freeze(e),t&&Xa(e,function(n,r){return nE(r,!0)},!0)),e}function yoe(){mi(2)}function rE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Zi(e){var t=Mw[e];return t||mi(18,e),t}function _oe(e,t){Mw[e]||(Mw[e]=t)}function Ow(){return gd}function l1(e,t){t&&(Zi("Patches"),e.u=[],e.s=[],e.v=t)}function nv(e){Pw(e),e.p.forEach(boe),e.p=null}function Pw(e){e===gd&&(gd=e.l)}function o3(e){return gd={p:[],l:gd,h:e,m:!0,_:0}}function boe(e){var t=e[At];t.i===0||t.i===1?t.j():t.O=!0}function c1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Zi("ES5").S(t,e,r),r?(n[At].P&&(nv(t),mi(4)),Mo(e)&&(e=rv(t,e),t.l||iv(t,e)),t.u&&Zi("Patches").M(n[At].t,e,t.u,t.s)):e=rv(t,n,[]),nv(t),t.u&&t.v(t.u,t.s),e!==M6?e:void 0}function rv(e,t,n){if(rE(t))return t;var r=t[At];if(!r)return Xa(t,function(o,s){return s3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return iv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=tE(r.k):r.o;Xa(r.i===3?new Set(i):i,function(o,s){return s3(e,r,i,o,s,n)}),iv(e,i,!1),n&&e.u&&Zi("Patches").R(r,n,e.u,e.s)}return r.o}function s3(e,t,n,r,i,o){if($s(i)){var s=rv(e,i,o&&t&&t.i!==3&&!fc(t.D,r)?o.concat(r):void 0);if(P6(n,r,s),!$s(s))return;e.m=!1}if(Mo(i)&&!rE(i)){if(!e.h.F&&e._<1)return;rv(e,i),t&&t.A.l||iv(e,i)}}function iv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&nE(t,n)}function u1(e,t){var n=e[At];return(n?_a(n):e)[t]}function a3(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 is(e){e.P||(e.P=!0,e.l&&is(e.l))}function f1(e){e.o||(e.o=tE(e.t))}function kw(e,t,n){var r=JC(t)?Zi("MapSet").N(t,n):eE(t)?Zi("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Ow(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=vd;s&&(l=[a],c=Zu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Zi("ES5").J(t,n);return(n?n.A:Ow()).p.push(r),r}function woe(e){return $s(e)||mi(22,e),function t(n){if(!Mo(n))return n;var r,i=n[At],o=Qc(n);if(i){if(!i.P&&(i.i<4||!Zi("ES5").K(i)))return i.t;i.I=!0,r=l3(n,o),i.I=!1}else r=l3(n,o);return Xa(r,function(s,a){i&&voe(i.t,s)===a||P6(r,s,t(a))}),o===3?new Set(r):r}(e)}function l3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return tE(e)}function xoe(){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 vd.get(l,o)},set:function(l){var c=this[At];vd.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)&&is(a);break;case 4:n(a)&&is(a)}}}function n(o){for(var s=o.t,a=o.k,l=dc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==At){var h=s[f];if(h===void 0&&!fc(s,f))return!0;var p=a[f],g=p&&p[At];if(g?g.t!==h:!k6(p,h))return!0}}var v=!!s[At];return l.length!==dc(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={};_oe("ES5",{J:function(o,s){var a=Array.isArray(o),l=function(f,h){if(f){for(var p=Array(h.length),g=0;g<h.length;g++)Object.defineProperty(p,""+g,e(g,!0));return p}var v=R6(h);delete v[At];for(var y=dc(v),x=0;x<y.length;x++){var b=y[x];v[b]=e(b,f||!!v[b].enumerable)}return Object.create(Object.getPrototypeOf(h),v)}(a,o),c={i:a?5:4,A:s?s.A:Ow(),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?$s(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,g=f.D,v=f.i;if(v===4)Xa(p,function(S){S!==At&&(h[S]!==void 0||fc(h,S)?g[S]||l(p[S]):(g[S]=!0,is(f)))}),Xa(h,function(S){p[S]!==void 0||fc(p,S)||(g[S]=!1,is(f))});else if(v===5){if(r(f)&&(is(f),g.length=!0),p.length<h.length)for(var y=p.length;y<h.length;y++)g[y]=!1;else for(var x=h.length;x<p.length;x++)g[x]=!0;for(var b=Math.min(p.length,h.length),w=0;w<b;w++)p.hasOwnProperty(w)||(g[w]=!0),g[w]===void 0&&l(p[w])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var c3,gd,iE=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Soe=typeof Map<"u",Coe=typeof Set<"u",u3=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",M6=iE?Symbol.for("immer-nothing"):((c3={})["immer-nothing"]=!0,c3),f3=iE?Symbol.for("immer-draftable"):"__$immer_draftable",At=iE?Symbol.for("immer-state"):"__$immer_state",Eoe=""+Object.prototype.constructor,dc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,R6=Object.getOwnPropertyDescriptors||function(e){var t={};return dc(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Mw={},vd={get:function(e,t){if(t===At)return e;var n=_a(e);if(!fc(n,t))return function(i,o,s){var a,l=a3(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||!Mo(r)?r:r===u1(e.t,t)?(f1(e),e.o[t]=kw(e.A.h,r,e)):r},has:function(e,t){return t in _a(e)},ownKeys:function(e){return Reflect.ownKeys(_a(e))},set:function(e,t,n){var r=a3(_a(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=u1(_a(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(k6(n,i)&&(n!==void 0||fc(e.t,t)))return!0;f1(e),is(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 u1(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,f1(e),is(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=_a(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){mi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mi(12)}},Zu={};Xa(vd,function(e,t){Zu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Zu.deleteProperty=function(e,t){return Zu.set.call(this,e,t,void 0)},Zu.set=function(e,t,n){return vd.set.call(this,e[0],t,n,e[0])};var Toe=function(){function e(n){var r=this;this.g=u3,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 b=arguments.length,w=Array(b>1?b-1:0),S=1;S<b;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"&&mi(6),s!==void 0&&typeof s!="function"&&mi(7),Mo(i)){var f=o3(r),h=kw(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?nv(f):Pw(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return l1(f,s),c1(y,f)},function(y){throw nv(f),y}):(l1(f,s),c1(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===M6&&(c=void 0),r.F&&nE(c,!0),s){var g=[],v=[];Zi("Patches").M(i,c,g,v),s(g,v)}return c}mi(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(g){return i.apply(void 0,[g].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){Mo(n)||mi(8),$s(n)&&(n=woe(n));var r=o3(this),i=kw(this,n,void 0);return i[At].C=!0,Pw(r),i},t.finishDraft=function(n,r){var i=n&&n[At],o=i.A;return l1(o,r),c1(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!u3&&mi(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=Zi("Patches").$;return $s(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new Toe,N6=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 Ooe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d3(Object(n),!0).forEach(function(r){Ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gn(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 p3=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),d1=function(){return Math.random().toString(36).substring(7).split("").join(".")},ov={INIT:"@@redux/INIT"+d1(),REPLACE:"@@redux/REPLACE"+d1(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d1()}};function Poe(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 L6(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Gn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Gn(1));return n(L6)(e,t)}if(typeof e!="function")throw new Error(Gn(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(Gn(3));return o}function h(y){if(typeof y!="function")throw new Error(Gn(4));if(l)throw new Error(Gn(5));var x=!0;return c(),a.push(y),function(){if(x){if(l)throw new Error(Gn(6));x=!1,c();var w=a.indexOf(y);a.splice(w,1),s=null}}}function p(y){if(!Poe(y))throw new Error(Gn(7));if(typeof y.type>"u")throw new Error(Gn(8));if(l)throw new Error(Gn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=s=a,b=0;b<x.length;b++){var w=x[b];w()}return y}function g(y){if(typeof y!="function")throw new Error(Gn(10));i=y,p({type:ov.REPLACE})}function v(){var y,x=h;return y={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(Gn(11));function S(){w.next&&w.next(f())}S();var T=x(S);return{unsubscribe:T}}},y[p3]=function(){return this},y}return p({type:ov.INIT}),r={dispatch:p,subscribe:h,getState:f,replaceReducer:g},r[p3]=v,r}function koe(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:ov.INIT});if(typeof r>"u")throw new Error(Gn(12));if(typeof n(void 0,{type:ov.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Gn(13))})}function oE(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{koe(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 g=o[p],v=n[g],y=l[g],x=v(y,c);if(typeof x>"u")throw c&&c.type,new Error(Gn(14));h[g]=x,f=f||x!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function sv(){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 Moe(){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(Gn(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=sv.apply(void 0,a)(i.dispatch),h3(h3({},i),{},{dispatch:o})}}}function D6(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 A6=D6();A6.withExtraArgument=D6;const m3=A6;var Roe=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)}}(),Noe=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}}},av=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},Loe=Object.defineProperty,Doe=Object.defineProperties,Aoe=Object.getOwnPropertyDescriptors,g3=Object.getOwnPropertySymbols,joe=Object.prototype.hasOwnProperty,Ioe=Object.prototype.propertyIsEnumerable,v3=function(e,t,n){return t in e?Loe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ks=function(e,t){for(var n in t||(t={}))joe.call(t,n)&&v3(e,n,t[n]);if(g3)for(var r=0,i=g3(t);r<i.length;r++){var n=i[r];Ioe.call(t,n)&&v3(e,n,t[n])}return e},h1=function(e,t){return Doe(e,Aoe(t))},Foe=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())})},$oe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sv:sv.apply(null,arguments)};function Boe(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 Uoe=function(e){Roe(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,av([void 0],n[0].concat(this)))):new(t.bind.apply(t,av([void 0],n.concat(this))))},t}(Array);function Rw(e){return Mo(e)?N6(e,function(){}):e}function zoe(e){return typeof e=="boolean"}function Hoe(){return function(t){return Voe(t)}}function Voe(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new Uoe;return n&&(zoe(n)?r.push(m3):r.push(m3.withExtraArgument(n.extraArgument))),r}var Woe=!0;function j6(e){var t=Hoe(),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,g;if(typeof i=="function")g=i;else if(Boe(i))g=oE(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=Moe.apply(void 0,v),x=sv;l&&(x=$oe(ks({trace:!Woe},typeof l=="object"&&l)));var b=[y];Array.isArray(p)?b=av([y],p):typeof p=="function"&&(b=p(b));var w=x.apply(void 0,b);return L6(g,f,w)}function On(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 ks(ks({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 I6(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 Yoe(e){return typeof e=="function"}function qoe(e,t,n,r){n===void 0&&(n=[]);var i=typeof t=="function"?I6(t):[t,n,r],o=i[0],s=i[1],a=i[2],l;if(Yoe(e))l=function(){return Rw(e())};else{var c=Rw(e);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var g=av([o[p.type]],s.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[a]),g.reduce(function(v,y){if(y)if($s(v)){var x=v,b=y(x,p);return b===void 0?v:b}else{if(Mo(v))return N6(v,function(w){return y(w,p)});var b=y(v,p);if(b===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return v},h)}return f.getInitialState=l,f}function Goe(e,t){return e+"/"+t}function nr(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:Rw(e.initialState),r=e.reducers||{},i=Object.keys(r),o={},s={},a={};i.forEach(function(f){var h=r[f],p=Goe(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,o[f]=g,s[p]=g,a[f]=v?On(p,v):On(p)});function l(){var f=typeof e.extraReducers=="function"?I6(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],x=y===void 0?void 0:y,b=ks(ks({},p),s);return qoe(n,function(w){for(var S in b)w.addCase(S,b[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 Zoe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Koe=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=Zoe[Math.random()*64|0];return t},Xoe=["name","message","stack","code"],p1=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),y3=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),Qoe=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=Xoe;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},F6=function(){function e(t,n,r){var i=On(t+"/fulfilled",function(c,f,h,p){return{payload:c,meta:h1(ks({},p||{}),{arg:h,requestId:f,requestStatus:"fulfilled"})}}),o=On(t+"/pending",function(c,f,h){return{payload:void 0,meta:h1(ks({},h||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),s=On(t+"/rejected",function(c,f,h,p,g){return{payload:p,error:(r&&r.serializeError||Qoe)(c||"Rejected"),meta:h1(ks({},g||{}),{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 g=r!=null&&r.idGenerator?r.idGenerator(c):Koe(),v=new a,y;function x(w){y=w,v.abort()}var b=function(){return Foe(this,null,function(){var w,S,T,P,k,N,D;return Noe(this,function(V){switch(V.label){case 0:return V.trys.push([0,4,,5]),P=(w=r==null?void 0:r.condition)==null?void 0:w.call(r,c,{getState:h,extra:p}),ese(P)?[4,P]:[3,2];case 1:P=V.sent(),V.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(g,c,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:g,arg:c},{getState:h,extra:p}))),[4,Promise.race([k,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:g,signal:v.signal,abort:x,rejectWithValue:function(A,W){return new p1(A,W)},fulfillWithValue:function(A,W){return new y3(A,W)}})).then(function(A){if(A instanceof p1)throw A;return A instanceof y3?i(A.payload,g,c,A.meta):i(A,g,c)})])];case 3:return T=V.sent(),[3,5];case 4:return N=V.sent(),T=N instanceof p1?s(null,g,c,N.payload,N.meta):s(N,g,c),[3,5];case 5:return D=r&&!r.dispatchConditionRejection&&s.match(T)&&T.meta.condition,D||f(T),[2,T]}})})}();return Object.assign(b,{abort:x,requestId:g,arg:c,unwrap:function(){return b.then(Joe)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function Joe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ese(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sE="listenerMiddleware";On(sE+"/add");On(sE+"/removeAll");On(sE+"/remove");var _3;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);xoe();const{actions:tse,reducer:nse}=nr({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:rse,resetAppUpdate:ise}=tse,ose=nse,sse=(e,t)=>{e.serviceFactory("App",goe,"MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>rse),e.serviceFactory("resetAppUpdate",()=>ise)};const ase=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=hn(),{domains:a}=n,l=Wn(t),c=()=>r("");return B.useEffect(()=>{e()},[]),i?m.jsxs(qd,{children:[m.jsx(Rc,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),m.jsx(ht,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Tt(c,s),children:m.jsx(Fe,{icon:nK})}),m.jsx(Er,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):m.jsxs(Bo,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>m.jsxs(ze,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&m.jsx("span",{className:"float-end text-muted",children:"default"})]},f)),m.jsx(ze,{divider:!0}),m.jsx(ze,{onClick:Tt(c,o),children:m.jsx("i",{children:"New domain"})})]})},lse=e=>(e==null?void 0:e.type)===f_.INVALID_ARGUMENT||(e==null?void 0:e.type)===d_.INVALID_ARGUMENT,cse=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===f_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===d_.INVALID_SHORT_URL_DELETION,use=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Uo=e=>use(e)?e:void 0,Ro=({errorData:e,fallbackMessage:t})=>m.jsxs(m.Fragment,{children:[(e==null?void 0:e.detail)??t,lse(e)&&m.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),fse=(e,t)=>{const n=b3(e),r=b3(t),i=n.pop(),o=r.pop(),s=S3(n,r);return s!==0?s:i&&o?S3(i.split("."),o.split(".")):i||o?i?-1:1:0},Nw=(e,t,n)=>{mse(n);const r=fse(e,t);return $6[n].includes(r)},dse=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,b3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(dse);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},w3=e=>e==="*"||e==="x"||e==="X",x3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},hse=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],pse=(e,t)=>{if(w3(e)||w3(t))return 0;const[n,r]=hse(x3(e),x3(t));return n>r?1:n<r?-1:0},S3=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=pse(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},$6={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},C3=Object.keys($6),mse=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(C3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${C3.join("|")}`)},gse=(e,{maxVersion:t,minVersion:n})=>{const r=!n||Nw(e,n,">=");return(!t||Nw(e,t,"<="))&&r},B6={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(B6);const Sp=(e,t)=>gse(t,{minVersion:B6[e]}),U6=e=>({domainVisits:Sp("domainVisits",e),excludeBotsOnShortUrls:Sp("excludeBotsOnShortUrls",e),filterDisabledUrls:Sp("filterDisabledUrls",e),deviceLongUrls:Sp("deviceLongUrls",e)}),vse=e=>B.useMemo(()=>U6(e),[e]),z6=B.createContext(U6("0.0.0")),yse=z6.Provider,Qd=e=>B.useContext(z6)[e],H6=B.createContext(""),_se=H6.Provider,cl=()=>B.useContext(H6),Ef=(e,t,n)=>Ao(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,bse=(e,t)=>!e.domain&&t===v5?!0:e.domain===t,wse=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},V6="__",xse=e=>e.replaceAll("/",V6),cm=e=>e.replaceAll(V6,"/");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 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 Me(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||um(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 ul(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 Ji(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 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 Sse(e,t){if(Oe(2,arguments),!t||fm(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?Ji(c,r+n*12):c,h=o||i?ul(f,o+i*7):f,p=a+s*60,g=l+p*60,v=g*1e3,y=new Date(h.getTime()+v);return y}function aE(e,t){Oe(2,arguments);var n=Me(e).getTime(),r=Qe(t);return new Date(n+r)}var Cse=36e5;function Ese(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,n*Cse)}var Tse={};function zo(){return Tse}function W6(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),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),g=p.getDay(),v=(g<h?7:0)+g-h;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function yd(e){return Oe(1,arguments),W6(e,{weekStartsOn:1})}function Ose(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=yd(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var s=yd(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Pse(e){Oe(1,arguments);var t=Ose(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=yd(n);return r}function Ac(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 kse=864e5;function _d(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t),i=n.getTime()-Ac(n),o=r.getTime()-Ac(r);return Math.round((i-o)/kse)}var Mse=6e4;function Lw(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,n*Mse)}function lE(e,t){Oe(2,arguments);var n=Qe(t),r=n*7;return ul(e,r)}function jc(e,t){Oe(2,arguments);var n=Qe(t);return Ji(e,n*12)}function dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dm=function(n){return typeof n}:dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dm(e)}function E3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(dm(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 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 T3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(hm(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 pm(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 cE=6e4,h_=36e5,Rse=1e3;function Nse(e,t){Oe(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}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 uE(e){return Oe(1,arguments),e instanceof Date||mm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Y6(e){if(Oe(1,arguments),!uE(e)&&typeof e!="number")return!1;var t=Me(e);return!isNaN(Number(t))}function bd(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 Dw(e){Oe(1,arguments);var t=Me(e),n=Math.floor(t.getMonth()/3)+1;return n}function lv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()-r.getFullYear()}function O3(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 fE(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=O3(n,r),o=Math.abs(_d(n,r));n.setDate(n.getDate()-i*o);var s=+(O3(n,r)===-i),a=i*(o-s);return a===0?0:a}function q6(e,t){return Oe(2,arguments),Me(e).getTime()-Me(t).getTime()}var P3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Lse="trunc";function dE(e){return e?P3[e]:P3[Lse]}function Dse(e,t,n){Oe(2,arguments);var r=q6(e,t)/h_;return dE(n==null?void 0:n.roundingMethod)(r)}function Qa(e){Oe(1,arguments);var t=Me(e);return t.setHours(23,59,59,999),t}function Ase(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 jse(e){Oe(1,arguments);var t=Me(e);return Qa(t).getTime()===Ase(t).getTime()}function cv(e,t){Oe(2,arguments);var n=Me(e),r=Me(t),i=pm(n,r),o=Math.abs(bd(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=pm(n,r)===-i;jse(Me(e))&&o===1&&pm(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function Ise(e,t,n){Oe(2,arguments);var r=q6(e,t)/1e3;return dE(n==null?void 0:n.roundingMethod)(r)}function Fse(e,t,n){Oe(2,arguments);var r=fE(e,t)/7;return dE(n==null?void 0:n.roundingMethod)(r)}function Aw(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 $se(e){Oe(1,arguments);var t=Me(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Bse(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 Use(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),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),g=p.getDay(),v=(g<h?-7:0)+6-(g-h);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function zse(e){return Oe(1,arguments),Use(e,{weekStartsOn:1})}function G6(e,t){Oe(2,arguments);var n=Qe(t);return aE(e,-n)}var Hse=864e5;function Vse(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/Hse)+1}function Ic(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 Z6(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=Ic(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Ic(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Wse(e){Oe(1,arguments);var t=Z6(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ic(n);return r}var Yse=6048e5;function K6(e){Oe(1,arguments);var t=Me(e),n=Ic(t).getTime()-Wse(t).getTime();return Math.round(n/Yse)+1}function Ja(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),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),g=p.getUTCDay(),v=(g<h?7:0)+g-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function hE(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=Me(e),h=f.getUTCFullYear(),p=zo(),g=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(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,g),v.setUTCHours(0,0,0,0);var y=Ja(v,t),x=new Date(0);x.setUTCFullYear(h,0,g),x.setUTCHours(0,0,0,0);var b=Ja(x,t);return f.getTime()>=y.getTime()?h+1:f.getTime()>=b.getTime()?h:h-1}function qse(e,t){var n,r,i,o,s,a,l,c;Oe(1,arguments);var f=zo(),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=hE(e,t),g=new Date(0);g.setUTCFullYear(p,0,h),g.setUTCHours(0,0,0,0);var v=Ja(g,t);return v}var Gse=6048e5;function X6(e,t){Oe(1,arguments);var n=Me(e),r=Ja(n,t).getTime()-qse(n,t).getTime();return Math.round(r/Gse)+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 Zse={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 Go=Zse;var Rl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kse={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 Go.y(t,n)},Y:function(t,n,r,i){var o=hE(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=Z6(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 Go.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=X6(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):tt(o,n.length)},I:function(t,n,r){var i=K6(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"}):Go.d(t,n)},D:function(t,n,r){var i=Vse(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=Rl.noon:i===0?o=Rl.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=Rl.evening:i>=12?o=Rl.afternoon:i>=4?o=Rl.morning:o=Rl.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 Go.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Go.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"}):Go.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Go.s(t,n)},S:function(t,n){return Go.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 M3(s);case"XXXX":case"XX":return ba(s);case"XXXXX":case"XXX":default:return ba(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return M3(s);case"xxxx":case"xx":return ba(s);case"xxxxx":case"xxx":default:return ba(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"+k3(s,":");case"OOOO":default:return"GMT"+ba(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"+k3(s,":");case"zzzz":default:return"GMT"+ba(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 k3(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 M3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return ba(e,t)}function ba(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 Xse=Kse;var R3=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"})}},Q6=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"})}},Qse=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return R3(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}}",R3(i,n)).replace("{{time}}",Q6(o,n))},Jse={p:Q6,P:Qse};const jw=Jse;var eae=["D","DD"],tae=["YY","YYYY"];function J6(e){return eae.indexOf(e)!==-1}function e5(e){return tae.indexOf(e)!==-1}function uv(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 nae={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"}},rae=function(t,n,r){var i,o=nae[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 iae=rae;function m1(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 oae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lae={date:m1({formats:oae,defaultWidth:"full"}),time:m1({formats:sae,defaultWidth:"full"}),dateTime:m1({formats:aae,defaultWidth:"full"})};const cae=lae;var uae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fae=function(t,n,r,i){return uae[t]};const dae=fae;function Lu(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 hae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mae={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"]},gae={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"]},vae={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"}},yae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_ae=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"},bae={ordinalNumber:_ae,era:Lu({values:hae,defaultWidth:"wide"}),quarter:Lu({values:pae,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Lu({values:mae,defaultWidth:"wide"}),day:Lu({values:gae,defaultWidth:"wide"}),dayPeriod:Lu({values:vae,defaultWidth:"wide",formattingValues:yae,defaultFormattingWidth:"wide"})};const wae=bae;function Du(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)?Sae(a,function(h){return h.test(s)}):xae(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 xae(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Sae(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Cae(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 Eae=/^(\d+)(th|st|nd|rd)?/i,Tae=/\d+/i,Oae={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},Pae={any:[/^b/i,/^(a|c)/i]},kae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mae={any:[/1/i,/2/i,/3/i,/4/i]},Rae={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},Nae={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]},Lae={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},Dae={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]},Aae={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},jae={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}},Iae={ordinalNumber:Cae({matchPattern:Eae,parsePattern:Tae,valueCallback:function(t){return parseInt(t,10)}}),era:Du({matchPatterns:Oae,defaultMatchWidth:"wide",parsePatterns:Pae,defaultParseWidth:"any"}),quarter:Du({matchPatterns:kae,defaultMatchWidth:"wide",parsePatterns:Mae,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Du({matchPatterns:Rae,defaultMatchWidth:"wide",parsePatterns:Nae,defaultParseWidth:"any"}),day:Du({matchPatterns:Lae,defaultMatchWidth:"wide",parsePatterns:Dae,defaultParseWidth:"any"}),dayPeriod:Du({matchPatterns:Aae,defaultMatchWidth:"any",parsePatterns:jae,defaultParseWidth:"any"})};const Fae=Iae;var $ae={code:"en-US",formatDistance:iae,formatLong:cae,formatRelative:dae,localize:wae,match:Fae,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pE=$ae;var Bae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Uae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zae=/^'([^]*?)'?$/,Hae=/''/g,Vae=/[a-zA-Z]/;function Fc(e,t,n){var r,i,o,s,a,l,c,f,h,p,g,v,y,x,b,w,S,T;Oe(2,arguments);var P=String(t),k=zo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:pE,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 V=Qe((g=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(b=n.locale)===null||b===void 0||(w=b.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&&g!==void 0?g:0);if(!(V>=0&&V<=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(!Y6(A))throw new RangeError("Invalid time value");var W=Ac(A),Y=G6(A,W),ee={firstWeekContainsDate:D,weekStartsOn:V,locale:N,_originalDate:A},q=P.match(Uae).map(function(X){var ie=X[0];if(ie==="p"||ie==="P"){var le=jw[ie];return le(X,N.formatLong)}return X}).join("").match(Bae).map(function(X){if(X==="''")return"'";var ie=X[0];if(ie==="'")return Wae(X);var le=Xse[ie];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&e5(X)&&uv(X,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&J6(X)&&uv(X,t,String(e)),le(Y,X,N.localize,ee);if(ie.match(Vae))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return X}).join("");return q}function Wae(e){var t=e.match(zae);return t?t[1].replace(Hae,"'"):e}function mE(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 Yae(e){return mE({},e)}var N3=1440,qae=2520,g1=43200,Gae=86400;function Zae(e,t,n){var r,i;Oe(2,arguments);var o=zo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:pE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=pm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=mE(Yae(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=Ise(f,c),p=(Ac(f)-Ac(c))/1e3,g=Math.round((h-p)/60),v;if(g<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):g===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",g,l);if(g<45)return s.formatDistance("xMinutes",g,l);if(g<90)return s.formatDistance("aboutXHours",1,l);if(g<N3){var y=Math.round(g/60);return s.formatDistance("aboutXHours",y,l)}else{if(g<qae)return s.formatDistance("xDays",1,l);if(g<g1){var x=Math.round(g/N3);return s.formatDistance("xDays",x,l)}else if(g<Gae)return v=Math.round(g/g1),s.formatDistance("aboutXMonths",v,l)}if(v=cv(f,c),v<12){var b=Math.round(g/g1);return s.formatDistance("xMonths",b,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 Kae(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),g=tt(i.getFullYear(),4);a="".concat(g).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),b=tt(y%60,2),w=v<0?"+":"-";l="".concat(w).concat(x,":").concat(b)}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 L3(e){Oe(1,arguments);var t=Me(e),n=t.getDate();return n}function Xae(e){Oe(1,arguments);var t=Me(e),n=t.getDay();return n}function Qae(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 xi(e){Oe(1,arguments);var t=Me(e),n=t.getHours();return n}var Jae=6048e5;function ele(e){Oe(1,arguments);var t=Me(e),n=yd(t).getTime()-Pse(t).getTime();return Math.round(n/Jae)+1}function Si(e){Oe(1,arguments);var t=Me(e),n=t.getMinutes();return n}function ar(e){Oe(1,arguments);var t=Me(e),n=t.getMonth();return n}function tle(e){Oe(1,arguments);var t=Me(e),n=t.getSeconds();return n}function fv(e){Oe(1,arguments);var t=Me(e),n=t.getTime();return n}function nle(e){return Oe(1,arguments),Math.floor(fv(e)/1e3)}function dt(e){return Oe(1,arguments),Me(e).getFullYear()}function Bs(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 t5(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getTime()===r.getTime()}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 n5(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&&Iw(e,t)}function Iw(e,t){return Iw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Iw(e,t)}function r5(e){var t=ile();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 rle(this,i)}}function rle(e,t){return t&&(gm(t)==="object"||typeof t=="function")?t:Fw(e)}function Fw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ile(){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 gE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D3(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 vE(e,t,n){return t&&D3(e.prototype,t),n&&D3(e,n),e}function $w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ole=10,i5=function(){function e(){gE(this,e),$w(this,"subPriority",0)}return vE(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),sle=function(e){n5(n,e);var t=r5(n);function n(r,i,o,s,a){var l;return gE(this,n),l=t.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=s,a&&(l.subPriority=a),l}return vE(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}(i5),ale=function(e){n5(n,e);var t=r5(n);function n(){var r;gE(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)),$w(Fw(r),"priority",ole),$w(Fw(r),"subPriority",-1),r}return vE(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}(i5);function lle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cle(e,t,n){return t&&A3(e.prototype,t),n&&A3(e,n),e}var pt=function(){function e(){lle(this,e)}return cle(e,[{key:"run",value:function(n,r,i,o){var s=this.parse(n,r,i,o);return s?{setter:new sle(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 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 ule(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 fle(e,t,n){return t&&j3(e.prototype,t),n&&j3(e,n),e}function dle(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&&Bw(e,t)}function Bw(e,t){return Bw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Bw(e,t)}function hle(e){var t=mle();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 ple(this,i)}}function ple(e,t){return t&&(vm(t)==="object"||typeof t=="function")?t:Uw(e)}function Uw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mle(){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 I3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gle=function(e){dle(n,e);var t=hle(n);function n(){var r;ule(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)),I3(Uw(r),"priority",140),I3(Uw(r),"incompatibleTokens",["R","u","t","T"]),r}return fle(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}/},Bi={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 Ut(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ui(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*h_+o*cE+s*Rse),rest:t.slice(n[0].length)}}function o5(e){return Ut(nn.anyDigitsSigned,e)}function Kt(e,t){switch(e){case 1:return Ut(nn.singleDigit,t);case 2:return Ut(nn.twoDigits,t);case 3:return Ut(nn.threeDigits,t);case 4:return Ut(nn.fourDigits,t);default:return Ut(new RegExp("^\\d{1,"+e+"}"),t)}}function pv(e,t){switch(e){case 1:return Ut(nn.singleDigitSigned,t);case 2:return Ut(nn.twoDigitsSigned,t);case 3:return Ut(nn.threeDigitsSigned,t);case 4:return Ut(nn.fourDigitsSigned,t);default:return Ut(new RegExp("^-?\\d{1,"+e+"}"),t)}}function yE(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 s5(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 a5(e){return e%400===0||e%4===0&&e%100!==0}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 vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F3(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 yle(e,t,n){return t&&F3(e.prototype,t),n&&F3(e,n),e}function _le(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 ble(e){var t=xle();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 wle(this,i)}}function wle(e,t){return t&&(ym(t)==="object"||typeof t=="function")?t:Hw(e)}function Hw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xle(){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 $3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sle=function(e){_le(n,e);var t=ble(n);function n(){var r;vle(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)),$3(Hw(r),"priority",130),$3(Hw(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return yle(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=s5(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 _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 Cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B3(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 Ele(e,t,n){return t&&B3(e.prototype,t),n&&B3(e,n),e}function Tle(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&&Vw(e,t)}function Vw(e,t){return Vw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vw(e,t)}function Ole(e){var t=kle();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 Ple(this,i)}}function Ple(e,t){return t&&(_m(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 kle(){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 U3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mle=function(e){Tle(n,e);var t=Ole(n);function n(){var r;Cle(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)),U3(Ww(r),"priority",130),U3(Ww(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ele(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=hE(i,a);if(s.isTwoDigitYear){var c=s5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),Ja(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),Ja(i,a)}}]),n}(pt);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 Rle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z3(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 Nle(e,t,n){return t&&z3(e.prototype,t),n&&z3(e,n),e}function Lle(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&&Yw(e,t)}function Yw(e,t){return Yw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Yw(e,t)}function Dle(e){var t=jle();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 Ale(this,i)}}function Ale(e,t){return t&&(bm(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 jle(){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 H3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ile=function(e){Lle(n,e);var t=Dle(n);function n(){var r;Rle(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)),H3(qw(r),"priority",130),H3(qw(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Nle(n,[{key:"parse",value:function(i,o){return pv(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),Ic(a)}}]),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 Fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(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 $le(e,t,n){return t&&V3(e.prototype,t),n&&V3(e,n),e}function Ble(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&&Gw(e,t)}function Gw(e,t){return Gw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Gw(e,t)}function Ule(e){var t=Hle();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 zle(this,i)}}function zle(e,t){return t&&(wm(t)==="object"||typeof t=="function")?t:Zw(e)}function Zw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hle(){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 W3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vle=function(e){Ble(n,e);var t=Ule(n);function n(){var r;Fle(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)),W3(Zw(r),"priority",130),W3(Zw(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return $le(n,[{key:"parse",value:function(i,o){return pv(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 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 Wle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y3(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 Yle(e,t,n){return t&&Y3(e.prototype,t),n&&Y3(e,n),e}function qle(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&&Kw(e,t)}function Kw(e,t){return Kw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kw(e,t)}function Gle(e){var t=Kle();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 Zle(this,i)}}function Zle(e,t){return t&&(xm(t)==="object"||typeof t=="function")?t:Xw(e)}function Xw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kle(){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 q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xle=function(e){qle(n,e);var t=Gle(n);function n(){var r;Wle(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)),q3(Xw(r),"priority",120),q3(Xw(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Yle(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 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 Qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(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 Jle(e,t,n){return t&&G3(e.prototype,t),n&&G3(e,n),e}function ece(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 tce(e){var t=rce();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 nce(this,i)}}function nce(e,t){return t&&(Sm(t)==="object"||typeof t=="function")?t:Jw(e)}function Jw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rce(){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 Z3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ice=function(e){ece(n,e);var t=tce(n);function n(){var r;Qle(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)),Z3(Jw(r),"priority",120),Z3(Jw(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Jle(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 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 oce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K3(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 sce(e,t,n){return t&&K3(e.prototype,t),n&&K3(e,n),e}function ace(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 lce(e){var t=uce();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 cce(this,i)}}function cce(e,t){return t&&(Cm(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 uce(){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 X3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fce=function(e){ace(n,e);var t=lce(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)),X3(tx(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),X3(tx(r),"priority",110),r}return sce(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"M":return rn(Ut(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 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 dce(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 hce(e,t,n){return t&&Q3(e.prototype,t),n&&Q3(e,n),e}function pce(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&&nx(e,t)}function nx(e,t){return nx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nx(e,t)}function mce(e){var t=vce();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 gce(this,i)}}function gce(e,t){return t&&(Em(t)==="object"||typeof t=="function")?t:rx(e)}function rx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vce(){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 J3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yce=function(e){pce(n,e);var t=mce(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)),J3(rx(r),"priority",110),J3(rx(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return hce(n,[{key:"parse",value:function(i,o,s){var a=function(c){return c-1};switch(o){case"L":return rn(Ut(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 _ce(e,t,n){Oe(2,arguments);var r=Me(e),i=Qe(t),o=X6(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}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 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&&ix(e,t)}function ix(e,t){return ix=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ix(e,t)}function Sce(e){var t=Ece();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 Cce(this,i)}}function Cce(e,t){return t&&(Tm(t)==="object"||typeof t=="function")?t:ox(e)}function ox(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 Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(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(ox(r),"priority",100),tR(ox(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return wce(n,[{key:"parse",value:function(i,o,s){switch(o){case"w":return Ut(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 Ja(_ce(i,s,a),a)}}]),n}(pt);function Oce(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=K6(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}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 Pce(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 kce(e,t,n){return t&&nR(e.prototype,t),n&&nR(e,n),e}function Mce(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 Rce(e){var t=Lce();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 Nce(this,i)}}function Nce(e,t){return t&&(Om(t)==="object"||typeof t=="function")?t:ax(e)}function ax(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lce(){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 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 Dce=function(e){Mce(n,e);var t=Rce(n);function n(){var r;Pce(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(ax(r),"priority",100),rR(ax(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return kce(n,[{key:"parse",value:function(i,o,s){switch(o){case"I":return Ut(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 Ic(Oce(i,s))}}]),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 Ace(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 jce(e,t,n){return t&&iR(e.prototype,t),n&&iR(e,n),e}function Ice(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 Fce(e){var t=Bce();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 $ce(this,i)}}function $ce(e,t){return t&&(Pm(t)==="object"||typeof t=="function")?t:km(e)}function km(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bce(){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 v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uce=[31,28,31,30,31,30,31,31,30,31,30,31],zce=[31,29,31,30,31,30,31,31,30,31,30,31],Hce=function(e){Ice(n,e);var t=Fce(n);function n(){var r;Ace(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)),v1(km(r),"priority",90),v1(km(r),"subPriority",1),v1(km(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return jce(n,[{key:"parse",value:function(i,o,s){switch(o){case"d":return Ut(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=a5(s),l=i.getUTCMonth();return a?o>=1&&o<=zce[l]:o>=1&&o<=Uce[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),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 Vce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oR(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&&oR(e.prototype,t),n&&oR(e,n),e}function Yce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cx(e,t)}function cx(e,t){return cx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},cx(e,t)}function qce(e){var t=Zce();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 Gce(this,i)}}function Gce(e,t){return t&&(Mm(t)==="object"||typeof t=="function")?t:Rm(e)}function Rm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zce(){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 y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kce=function(e){Yce(n,e);var t=qce(n);function n(){var r;Vce(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)),y1(Rm(r),"priority",90),y1(Rm(r),"subpriority",1),y1(Rm(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Wce(n,[{key:"parse",value:function(i,o,s){switch(o){case"D":case"DD":return Ut(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=a5(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 _E(e,t,n){var r,i,o,s,a,l,c,f;Oe(2,arguments);var h=zo(),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 g=Me(e),v=Qe(t),y=g.getUTCDay(),x=v%7,b=(x+7)%7,w=(b<p?7:0)+v-y;return g.setUTCDate(g.getUTCDate()+w),g}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 Xce(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 Qce(e,t,n){return t&&sR(e.prototype,t),n&&sR(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&&ux(e,t)}function ux(e,t){return ux=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ux(e,t)}function eue(e){var t=nue();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 tue(this,i)}}function tue(e,t){return t&&(Nm(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 nue(){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 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 rue=function(e){Jce(n,e);var t=eue(n);function n(){var r;Xce(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(fx(r),"priority",90),aR(fx(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Qce(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=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),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 iue(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 oue(e,t,n){return t&&lR(e.prototype,t),n&&lR(e,n),e}function sue(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&&dx(e,t)}function dx(e,t){return dx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},dx(e,t)}function aue(e){var t=cue();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 lue(this,i)}}function lue(e,t){return t&&(Lm(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 cue(){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 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 uue=function(e){sue(n,e);var t=aue(n);function n(){var r;iue(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(hx(r),"priority",90),cR(hx(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return oue(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=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function fue(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 due(e,t,n){return t&&uR(e.prototype,t),n&&uR(e,n),e}function hue(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&&px(e,t)}function px(e,t){return px=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},px(e,t)}function pue(e){var t=gue();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 mue(this,i)}}function mue(e,t){return t&&(Dm(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 gue(){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 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 vue=function(e){hue(n,e);var t=pue(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)),fR(mx(r),"priority",90),fR(mx(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return due(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=_E(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(pt);function yue(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 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 _ue(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 bue(e,t,n){return t&&dR(e.prototype,t),n&&dR(e,n),e}function wue(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 xue(e){var t=Cue();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 Sue(this,i)}}function Sue(e,t){return t&&(Am(t)==="object"||typeof t=="function")?t:vx(e)}function vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cue(){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 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 Eue=function(e){wue(n,e);var t=xue(n);function n(){var r;_ue(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(vx(r),"priority",90),hR(vx(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return bue(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=yue(i,s),i.setUTCHours(0,0,0,0),i}}]),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 Tue(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 Oue(e,t,n){return t&&pR(e.prototype,t),n&&pR(e,n),e}function Pue(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&&yx(e,t)}function yx(e,t){return yx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yx(e,t)}function kue(e){var t=Rue();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 Mue(this,i)}}function Mue(e,t){return t&&(jm(t)==="object"||typeof t=="function")?t:_x(e)}function _x(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rue(){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 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 Nue=function(e){Pue(n,e);var t=kue(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)),mR(_x(r),"priority",80),mR(_x(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Oue(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(yE(s),0,0,0),i}}]),n}(pt);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 Lue(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 Due(e,t,n){return t&&gR(e.prototype,t),n&&gR(e,n),e}function Aue(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&&bx(e,t)}function bx(e,t){return bx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bx(e,t)}function jue(e){var t=Fue();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 Iue(this,i)}}function Iue(e,t){return t&&(Im(t)==="object"||typeof t=="function")?t:wx(e)}function wx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fue(){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 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 $ue=function(e){Aue(n,e);var t=jue(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)),vR(wx(r),"priority",80),vR(wx(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Due(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(yE(s),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 Bue(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 Uue(e,t,n){return t&&yR(e.prototype,t),n&&yR(e,n),e}function zue(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 Hue(e){var t=Wue();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 Vue(this,i)}}function Vue(e,t){return t&&(Fm(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 Wue(){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 _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 Yue=function(e){zue(n,e);var t=Hue(n);function n(){var r;Bue(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(Sx(r),"priority",80),_R(Sx(r),"incompatibleTokens",["a","b","t","T"]),r}return Uue(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(yE(s),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 que(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 Gue(e,t,n){return t&&bR(e.prototype,t),n&&bR(e,n),e}function Zue(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 Kue(e){var t=Que();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 Xue(this,i)}}function Xue(e,t){return t&&($m(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 Que(){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 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 Jue=function(e){Zue(n,e);var t=Kue(n);function n(){var r;que(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(Ex(r),"priority",70),wR(Ex(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Gue(n,[{key:"parse",value:function(i,o,s){switch(o){case"h":return Ut(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 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 efe(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 tfe(e,t,n){return t&&xR(e.prototype,t),n&&xR(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&&Tx(e,t)}function Tx(e,t){return Tx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Tx(e,t)}function rfe(e){var t=ofe();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 ife(this,i)}}function ife(e,t){return t&&(Bm(t)==="object"||typeof t=="function")?t:Ox(e)}function Ox(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 Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function SR(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)),SR(Ox(r),"priority",70),SR(Ox(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return tfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"H":return Ut(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 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 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&&Px(e,t)}function Px(e,t){return Px=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Px(e,t)}function ufe(e){var t=dfe();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 ffe(this,i)}}function ffe(e,t){return t&&(Um(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 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 jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(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(kx(r),"priority",70),ER(kx(r),"incompatibleTokens",["h","H","k","t","T"]),r}return lfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"K":return Ut(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 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 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&&Mx(e,t)}function Mx(e,t){return Mx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mx(e,t)}function vfe(e){var t=_fe();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 yfe(this,i)}}function yfe(e,t){return t&&(zm(t)==="object"||typeof t=="function")?t:Rx(e)}function Rx(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 Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(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(Rx(r),"priority",70),OR(Rx(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return mfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"k":return Ut(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 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 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&&Nx(e,t)}function Nx(e,t){return Nx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Nx(e,t)}function Cfe(e){var t=Tfe();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 Efe(this,i)}}function Efe(e,t){return t&&(Hm(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 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 Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(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(Lx(r),"priority",60),kR(Lx(r),"incompatibleTokens",["t","T"]),r}return xfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"m":return Ut(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 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 Pfe(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 kfe(e,t,n){return t&&MR(e.prototype,t),n&&MR(e,n),e}function Mfe(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&&Dx(e,t)}function Dx(e,t){return Dx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Dx(e,t)}function Rfe(e){var t=Lfe();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 Nfe(this,i)}}function Nfe(e,t){return t&&(Vm(t)==="object"||typeof t=="function")?t:Ax(e)}function Ax(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lfe(){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 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 Dfe=function(e){Mfe(n,e);var t=Rfe(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)),RR(Ax(r),"priority",50),RR(Ax(r),"incompatibleTokens",["t","T"]),r}return kfe(n,[{key:"parse",value:function(i,o,s){switch(o){case"s":return Ut(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 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 Afe(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 jfe(e,t,n){return t&&NR(e.prototype,t),n&&NR(e,n),e}function Ife(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&&jx(e,t)}function jx(e,t){return jx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jx(e,t)}function Ffe(e){var t=Bfe();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 $fe(this,i)}}function $fe(e,t){return t&&(Wm(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 Bfe(){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 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){Ife(n,e);var t=Ffe(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)),LR(Ix(r),"priority",30),LR(Ix(r),"incompatibleTokens",["t","T"]),r}return jfe(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 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 zfe(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 Vfe(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 Wfe(e){var t=qfe();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 Yfe(this,i)}}function Yfe(e,t){return t&&(Ym(t)==="object"||typeof t=="function")?t:$x(e)}function $x(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qfe(){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 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 Gfe=function(e){Vfe(n,e);var t=Wfe(n);function n(){var r;zfe(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($x(r),"priority",10),AR($x(r),"incompatibleTokens",["t","T","x"]),r}return Hfe(n,[{key:"parse",value:function(i,o){switch(o){case"X":return Ui(Bi.basicOptionalMinutes,i);case"XX":return Ui(Bi.basic,i);case"XXXX":return Ui(Bi.basicOptionalSeconds,i);case"XXXXX":return Ui(Bi.extendedOptionalSeconds,i);case"XXX":default:return Ui(Bi.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 Zfe(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 Kfe(e,t,n){return t&&jR(e.prototype,t),n&&jR(e,n),e}function Xfe(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&&Bx(e,t)}function Bx(e,t){return Bx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Bx(e,t)}function Qfe(e){var t=ede();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 Jfe(this,i)}}function Jfe(e,t){return t&&(qm(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 ede(){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 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 tde=function(e){Xfe(n,e);var t=Qfe(n);function n(){var r;Zfe(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(Ux(r),"priority",10),IR(Ux(r),"incompatibleTokens",["t","T","X"]),r}return Kfe(n,[{key:"parse",value:function(i,o){switch(o){case"x":return Ui(Bi.basicOptionalMinutes,i);case"xx":return Ui(Bi.basic,i);case"xxxx":return Ui(Bi.basicOptionalSeconds,i);case"xxxxx":return Ui(Bi.extendedOptionalSeconds,i);case"xxx":default:return Ui(Bi.extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),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 nde(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 rde(e,t,n){return t&&FR(e.prototype,t),n&&FR(e,n),e}function ide(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 ode(e){var t=ade();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 sde(this,i)}}function sde(e,t){return t&&(Gm(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 ade(){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 $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 lde=function(e){ide(n,e);var t=ode(n);function n(){var r;nde(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(Hx(r),"priority",40),$R(Hx(r),"incompatibleTokens","*"),r}return rde(n,[{key:"parse",value:function(i){return o5(i)}},{key:"set",value:function(i,o,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),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 cde(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 ude(e,t,n){return t&&BR(e.prototype,t),n&&BR(e,n),e}function fde(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 dde(e){var t=pde();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 hde(this,i)}}function hde(e,t){return t&&(Zm(t)==="object"||typeof t=="function")?t:Wx(e)}function Wx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pde(){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 UR(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){fde(n,e);var t=dde(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)),UR(Wx(r),"priority",20),UR(Wx(r),"incompatibleTokens","*"),r}return ude(n,[{key:"parse",value:function(i){return o5(i)}},{key:"set",value:function(i,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),n}(pt),gde={G:new gle,y:new Sle,Y:new Mle,R:new Ile,u:new Vle,Q:new Xle,q:new ice,M:new fce,L:new yce,w:new Tce,I:new Dce,d:new Hce,D:new Kce,E:new rue,e:new uue,c:new vue,i:new Eue,a:new Nue,b:new $ue,B:new Yue,h:new Jue,H:new sfe,K:new hfe,k:new bfe,m:new Ofe,s:new Dfe,S:new Ufe,X:new Gfe,x:new tde,t:new lde,T:new mde};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 zR(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=vde(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 vde(e,t){if(e){if(typeof e=="string")return HR(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 HR(e,t)}}function HR(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 yde=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_de=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bde=/^'([^]*?)'?$/,wde=/''/g,xde=/\S/,Sde=/[a-zA-Z]/;function _1(e,t,n,r){var i,o,s,a,l,c,f,h,p,g,v,y,x,b,w,S,T,P;Oe(3,arguments);var k=String(e),N=String(t),D=zo(),V=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:D.locale)!==null&&i!==void 0?i:pE;if(!V.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||(g=p.options)===null||g===void 0?void 0:g.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=(b=r==null?void 0:r.weekStartsOn)!==null&&b!==void 0?b: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:V},ee=[new ale],q=N.match(_de).map(function(O){var R=O[0];if(R in jw){var I=jw[R];return I(O,V.formatLong)}return O}).join("").match(yde),X=[],ie=zR(q),le;try{var G=function(){var R=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&e5(R)&&uv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&J6(R)&&uv(R,N,e);var I=R[0],Q=gde[I];if(Q){var K=Q.incompatibleTokens;if(Array.isArray(K)){var oe=X.find(function(Le){return K.includes(Le.token)||Le.token===I});if(oe)throw new RangeError("The format string mustn't contain `".concat(oe.fullToken,"` and `").concat(R,"` at the same time"))}else if(Q.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));X.push({token:I,fullToken:R});var ge=Q.run(k,R,V.match,Y);if(!ge)return{v:new Date(NaN)};ee.push(ge.setter),k=ge.rest}else{if(I.match(Sde))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(R==="''"?R="'":I==="'"&&(R=Cde(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(ie.s();!(le=ie.n()).done;){var F=G();if(Km(F)==="object")return F.v}}catch(O){ie.e(O)}finally{ie.f()}if(k.length>0&&xde.test(k))return new Date(NaN);var j=ee.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 ee.filter(function(R){return R.priority===O}).sort(function(R,I){return I.subPriority-R.subPriority})}).map(function(O){return O[0]}),U=Me(n);if(isNaN(U.getTime()))return new Date(NaN);var te=G6(U,Ac(U)),z={},Z=zR(j),ne;try{for(Z.s();!(ne=Z.n()).done;){var ae=ne.value;if(!ae.validate(te,Y))return new Date(NaN);var pe=ae.set(te,z,Y);Array.isArray(pe)?(te=pe[0],mE(z,pe[1])):te=pe}}catch(O){Z.e(O)}finally{Z.f()}return te}function Cde(e){return e.match(bde)[1].replace(wde,"'")}function Ede(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Tde(e,t){Oe(2,arguments);var n=Aw(e),r=Aw(t);return n.getTime()===r.getTime()}function Ode(e,t){Oe(2,arguments);var n=Me(e),r=Me(t);return n.getFullYear()===r.getFullYear()}function $c(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 bE(e,t){Oe(2,arguments);var n=Qe(t);return ul(e,-n)}function No(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=Rde(e),o;if(i.date){var s=Nde(i.date,r);o=Lde(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=Dde(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Ade(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 Cp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Pde=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,kde=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Mde=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Rde(e){var t={},n=e.split(Cp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Cp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Cp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Cp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Nde(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 Lde(e,t){if(t===null)return new Date(NaN);var n=e.match(Pde);if(!n)return new Date(NaN);var r=!!n[4],i=Au(n[1]),o=Au(n[2])-1,s=Au(n[3]),a=Au(n[4]),l=Au(n[5])-1;if(r)return Bde(t,a,l)?jde(t,a,l):new Date(NaN);var c=new Date(0);return!Fde(t,o,s)||!$de(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Au(e){return e?parseInt(e):1}function Dde(e){var t=e.match(kde);if(!t)return NaN;var n=b1(t[1]),r=b1(t[2]),i=b1(t[3]);return Ude(n,r,i)?n*h_+r*cE+i*1e3:NaN}function b1(e){return e&&parseFloat(e.replace(",","."))||0}function Ade(e){if(e==="Z")return 0;var t=e.match(Mde);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return zde(r,i)?n*(r*h_+i*cE):NaN}function jde(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 Ide=[31,null,31,30,31,30,31,31,30,31,30,31];function l5(e){return e%400===0||e%4===0&&e%100!==0}function Fde(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ide[t]||(l5(e)?29:28))}function $de(e,t){return t>=1&&t<=(l5(e)?366:365)}function Bde(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ude(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function zde(e,t){return t>=0&&t<=59}function zi(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=Qae(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 Ku(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return zi(n,n.getMonth()+o*3)}function Hde(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return n.setSeconds(r),n}function Wv(e,t){Oe(2,arguments);var n=Me(e),r=Qe(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function wd(e,t){Oe(2,arguments);var n=Qe(t);return Ji(e,-n)}function Vde(e,t){Oe(2,arguments);var n=Qe(t);return lE(e,-n)}function xd(e,t){Oe(2,arguments);var n=Qe(t);return jc(e,-n)}const c5="yyyy-MM-dd",wE="yyyy-MM-dd HH:mm",Us=()=>new Date,xE=e=>typeof e!="string",SE=(e,t)=>!e||!xE(e)?e:t?Fc(e,t):Kae(e),zs=e=>SE(e,void 0),Pa=e=>SE(e,c5),Yv=e=>SE(e,wE),yi=e=>xE(e)?e:No(e),Jd=(e,t,n)=>{try{return $c(yi(e),{start:yi(t??e),end:yi(n??e)})}catch{return!1}},ca=(e,t)=>t5(e,t)||Gr(e,t),eh="all",u5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[eh]:void 0},f5=Object.keys(u5),d5=e=>e===void 0||Wn(vj(Boolean,e)),qv=e=>typeof e=="string"&&f5.includes(e),Wde=f5.filter(e=>e!==eh),VR=e=>e?yi(e):null,h5=(e,t)=>({startDate:VR(e),endDate:VR(t)}),Yde=e=>{if(!(!e||d5(e)))return e.startDate&&!e.endDate?`Since ${Pa(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Pa(e.endDate)}`:`${Pa(e.startDate)} - ${Pa(e.endDate)}`},p5=e=>{if(!(!e||e===eh))return qv(e)?u5[e]:Yde(e)},Yr=e=>Lr(bE(Us(),e)),Nl=e=>({startDate:e,endDate:Qa(Us())}),ua=e=>t=>e===t,m5=VS([[ua("today"),()=>Nl(Lr(Us()))],[ua("yesterday"),()=>({startDate:Yr(1),endDate:Qa(bE(Us(),1))})],[ua("last7Days"),()=>Nl(Yr(7))],[ua("last30Days"),()=>Nl(Yr(30))],[ua("last90Days"),()=>Nl(Yr(90))],[ua("last180Days"),()=>Nl(Yr(180))],[ua("last365Days"),()=>Nl(Yr(365))],[uj,()=>({})]]),qde=e=>{const t=yi(e);return VS([[()=>ca(Lr(Us()),t),()=>"today"],[()=>ca(Yr(1),t),()=>"yesterday"],[()=>ca(Yr(7),t),()=>"last7Days"],[()=>ca(Yr(30),t),()=>"last30Days"],[()=>ca(Yr(90),t),()=>"last90Days"],[()=>ca(Yr(180),t),()=>"last180Days"],[()=>ca(Yr(365),t),()=>"last365Days"],[uj,()=>eh]])()},Gde=e=>qv(e)?m5(e):e,Sr=(e,t)=>F6(e,t,{serializeError:qy}),th=On("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),WR=5e3,YR=4,qR=2,Zde=({currentPage:e,pagesCount:t})=>e>=t,Kde=(e,t)=>t*100/e,nh=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=On(`${e}/progressChanged`),o=On(`${e}/large`),s=On(`${e}/fallbackToInterval`),a=Sr(e,async(l,{getState:c,dispatch:f})=>{var w;const[h,p]=t(l),g=async S=>Promise.all(S.map(async T=>h(T,WR).then(at("data")))).then(GG),v=async(S,T=0)=>{if(r(c))return[];const P=await g(S[T]);return f(i(Kde(S.length,T+qR))),T<S.length-1?P.concat(await v(S,T+1)):P},y=async(S=1)=>{const{pagination:T,data:P}=await h(S,WR);if(!T||Zde(T))return P;const k=YS(qR,T.pagesCount+1),N=od(YR,k);return T.pagesCount-1>YR&&f(o()),P.concat(await v(N))},[x,b]=await Promise.all([y(),p((w=l.query)==null?void 0:w.excludeBots)]);return!x.length&&b&&f(s(qde(b.date))),{...n(l),visits:x}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},rh=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),ih=({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}=nr({name:e,initialState:n,reducers:{cancelGetVisits:g=>({...g,cancelLoad:!0})},extraReducers:g=>{g.addCase(i,()=>({...n,loading:!0})),g.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:Uo(y)})),g.addCase(s,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),g.addCase(a,v=>({...v,loadingLarge:!0})),g.addCase(l,(v,{payload:y})=>({...v,progress:y})),g.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),g.addCase(th,(v,{payload:y})=>{const{visits:x}=v,b=r(v,y.createdVisits).map(({visit:w})=>w);return b.length?{...v,visits:[...b,...x]}:v})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},g5="shlink/domainVisits",v5="DEFAULT",Xde={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Qde=e=>nh({typePrefix:`${g5}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1})=>{const{getDomainVisits:i}=e(),o=async(a,l)=>i(t,{...n,page:a,itemsPerPage:l}),s=rh(r,async a=>i(t,a));return[o,s]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),Jde=e=>ih({name:g5,initialState:Xde,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&bse(s,t)&&Jd(a.date,i,o))}}),Xm=({className:e="",placement:t,children:n})=>{const r=al();return m.jsxs(m.Fragment,{children:[m.jsx("span",{className:e,ref:r,children:m.jsx(Fe,{icon:KS})}),m.jsx(Er,{target:r,placement:t,children:n})]})},p_=e=>Tt(t=>t.preventDefault(),e),CE=(e,t,n=1)=>YS(n,e+1).map(t),Hi=e=>!Ao(e)&&!Wn(e),w1=e=>Wn(e)?null:e,y5=e=>e?"true":"false",x1=e=>e===void 0?void 0:y5(e),S1=({isLast:e,...t})=>m.jsx(lm,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),ehe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,g;const[i,o]=B.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=B.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=B.useState(((g=n.redirects)==null?void 0:g.invalidShortUrlRedirect)??""),f=p_(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:w1(i),regular404Redirect:w1(s),invalidShortUrlRedirect:w1(l)}}).then(t));return m.jsx($o,{isOpen:e,toggle:t,centered:!0,children:m.jsxs("form",{name:"domainRedirectsModal",onSubmit:f,children:[m.jsxs(to,{toggle:t,children:["Edit redirects for ",m.jsx("b",{children:n.domain})]}),m.jsxs(Oi,{children:[m.jsxs(S1,{value:i,onChange:o,children:[m.jsxs(Xm,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",m.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),m.jsxs(S1,{value:s,onChange:a,children:[m.jsxs(Xm,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",m.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),m.jsxs(S1,{value:l,isLast:!0,onChange:c,children:[m.jsx(Xm,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),m.jsxs(Zs,{children:[m.jsx(ht,{color:"link",type:"button",onClick:t,children:"Cancel"}),m.jsx(ht,{color:"primary",children:"Save"})]})]})})},the=({domain:e,editDomainRedirects:t})=>{const[n,r]=hn(),i=Qd("domainVisits"),o=cl();return m.jsxs(l_,{children:[i&&m.jsxs(ze,{tag:Dt,to:`${o}/domain/${e.domain}${e.isDefault?`_${v5}`:""}/visits`,children:[m.jsx(Fe,{icon:ZS,fixedWidth:!0})," Visit stats"]}),m.jsxs(ze,{onClick:r,children:[m.jsx(Fe,{fixedWidth:!0,icon:GS})," Edit redirects"]}),m.jsx(ehe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Ci=({href:e,children:t,rel:n,...r})=>m.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),nhe=({status:e,matchMedia:t=window.matchMedia})=>{const n=al(),r=()=>t("(max-width: 991px)").matches,[i,o]=B.useState(r());return B.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?m.jsx(Fe,{fixedWidth:!0,icon:Oj,spin:!0}):m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:n,children:e==="valid"?m.jsx(Fe,{fixedWidth:!0,icon:sd,className:"text-muted"}):m.jsx(Fe,{fixedWidth:!0,icon:Jb,className:"text-danger"})}),m.jsx(Er,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":m.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",m.jsx("br",{}),"Check the ",m.jsx(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},C1=({fallback:e})=>m.jsxs("span",{className:"text-muted",children:[!e&&m.jsx("small",{children:"No redirect"}),e&&m.jsxs(m.Fragment,{children:[e," ",m.jsx("small",{children:"(as fallback)"})]})]}),rhe=()=>m.jsxs(m.Fragment,{children:[m.jsx(Fe,{fixedWidth:!0,icon:FZ,className:"text-primary",id:"defaultDomainIcon"}),m.jsx(Er,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),ihe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:s,status:a}=e;return B.useEffect(()=>{n(e.domain)},[]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&m.jsx(rhe,{})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(s==null?void 0:s.baseUrlRedirect)??m.jsx(C1,{fallback:r==null?void 0:r.baseUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(s==null?void 0:s.regular404Redirect)??m.jsx(C1,{fallback:r==null?void 0:r.regular404Redirect})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(s==null?void 0:s.invalidShortUrlRedirect)??m.jsx(C1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),m.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:m.jsx(nhe,{status:a})}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(the,{domain:e,editDomainRedirects:t})})]})},GR=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],ohe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var p;const{filteredDomains:o,defaultRedirects:s,loading:a,error:l,errorData:c}=t,f=s??((p=o.find(({isDefault:g})=>g))==null?void 0:p.redirects);if(B.useEffect(()=>{e()},[]),a)return m.jsx(wo,{loading:!0});const h=()=>l?m.jsx(Nr,{type:"error",children:m.jsx(Ro,{errorData:c,fallbackMessage:"Error loading domains :("})}):m.jsx(cn,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsx("tr",{children:GR.map((g,v)=>m.jsx("th",{children:g},v))})}),m.jsxs("tbody",{children:[o.length<1&&m.jsx("tr",{children:m.jsx("td",{colSpan:GR.length,className:"text-center",children:"No results found"})}),o.map(g=>m.jsx(ihe,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:f},g.domain))]})]})});return m.jsxs(m.Fragment,{children:[m.jsx(Zd,{className:"mb-3",onChange:n}),h()]})},she="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ahe=e=>Sr(she,async({domain:t,redirects:n})=>{const i=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:i}}),Ep="shlink/domainsList",Tp={domains:[],filteredDomains:[],loading:!1,error:!1},ZR=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},KR=(e,t)=>n=>n.domain!==e?n:{...n,status:t},lhe=(e,t)=>{const n=Sr(`${Ep}/listDomains`,async()=>{const{data:s,defaultRedirects:a}=await e().listDomains();return{domains:s.map(l=>({...l,status:"validating"})),defaultRedirects:a}}),r=Sr(`${Ep}/checkDomainHealth`,async s=>{try{const{status:a}=await e().health(s);return{domain:s,status:a==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=On(`${Ep}/filterDomains`),{reducer:o}=nr({name:Ep,initialState:Tp,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Tp,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Tp,error:!0,errorData:Uo(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Tp,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(KR(f.domain,f.status)),filteredDomains:l.map(KR(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(ZR(l)),filteredDomains:a.filteredDomains.map(ZR(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},che=(e,t)=>{e.serviceFactory("DomainSelector",()=>ase),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>ohe),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",lhe,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",at("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",at("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",at("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",ahe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",at("checkDomainHealth"),"domainsListReducerCreator")},XR="shlink/mercure",uhe={loading:!0,error:!1},fhe=e=>{const t=Sr(`${XR}/loadMercureInfo`,({realTimeUpdates:r})=>{if(r&&!r.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=nr({name:XR,initialState:uhe,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}},dhe=e=>{e.serviceFactory("mercureInfoReducerCreator",fhe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",at("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",at("loadMercureInfo"),"mercureInfoReducerCreator")};var Yx={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,g=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 b(){this.bitsNeeded=0,this.codePoint=0}b.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 g().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(g==null||v==null||!w())&&(g=b);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="",je=void 0;if("contentType"in Te)Ce=200,ke="OK",je=Te.contentType;else try{Ce=Te.status,ke=Te.statusText,je=Te.getResponseHeader("Content-Type")}catch{Ce=0,ke="",je=void 0}Ce!==0&&(De=2,_e.readyState=2,_e.status=Ce,_e.statusText=ke,_e._contentType=je,_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 V(){}V.prototype.open=function(ue,ve,_e,Te,De,Re,Ne){var ce=null,de=new y,be=de.signal,ye=new g;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,je){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){je(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 ee(ue,ve){Y.call(this,ue),this.data=ve.data,this.lastEventId=ve.lastEventId}ee.prototype=Object.create(Y.prototype);function q(ue,ve){Y.call(this,ue),this.status=ve.status,this.statusText=ve.statusText,this.headers=ve.headers}q.prototype=Object.create(Y.prototype);function X(ue,ve){Y.call(this,ue),this.error=ve.error}X.prototype=Object.create(Y.prototype);var ie=-1,le=0,G=1,F=2,j=-1,U=0,te=1,z=2,Z=3,ne=/^text\/event\-stream(;.*)?$/i,ae=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,ae),pe)},I=function(ue,ve,_e){try{typeof ve=="function"&&ve.call(ue,_e)}catch(Te){W(Te)}};function Q(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 oe=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,je=oe&&ke==null?void 0:new T(ke!=null?new ke:K()),Je=ke!=null&&typeof ke!="string"?new ke:je==null?new V:new N,et=void 0,Ge=0,Vt=ie,Ft="",wn="",rr="",Pi="",Ln=U,nu=0,ki=0,uh=function(sn,Xt,ir,Dn){if(Vt===le)if(sn===200&&ir!=null&&ne.test(ir)){Vt=G,be=Date.now(),de=Re,ue.readyState=G;var An=new q("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: "+(ir==null?"-":ir.replace(/\s+/g," "))+". Aborting the connection.",ru();var An=new q("error",{status:sn,statusText:Xt,headers:Dn});ue.dispatchEvent(An),I(ue,ue.onerror,An),console.error(pn)}},fh=function(sn){if(Vt===G){for(var Xt=-1,ir=0;ir<sn.length;ir+=1){var Dn=sn.charCodeAt(ir);(Dn===`
|
||
`.charCodeAt(0)||Dn==="\r".charCodeAt(0))&&(Xt=ir)}var An=(Xt!==-1?Pi:"")+sn.slice(0,Xt+1);Pi=(Xt===-1?Pi:"")+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=U;else if(Ln===j&&(Ln=U),Dn==="\r".charCodeAt(0)||Dn===`
|
||
`.charCodeAt(0)){if(Ln!==U){Ln===te&&(ki=pn+1);var si=An.slice(nu,ki-1),ai=An.slice(ki+(ki<pn&&An.charCodeAt(ki)===" ".charCodeAt(0)?1:0),pn);si==="data"?(Ft+=`
|
||
`,Ft+=ai):si==="id"?wn=ai:si==="event"?rr=ai:si==="retry"?(Re=O(ai,Re),de=Re):si==="heartbeatTimeout"&&(Ne=O(ai,Ne),Ge!==0&&(i(Ge),Ge=r(function(){Qs()},Ne)))}if(Ln===U){if(Ft!==""){ce=wn,rr===""&&(rr="message");var jn=new ee(rr,{data:Ft.slice(1),lastEventId:wn});if(ue.dispatchEvent(jn),rr==="open"?I(ue,ue.onopen,jn):rr==="message"?I(ue,ue.onmessage,jn):rr==="error"&&I(ue,ue.onerror,jn),Vt===F)return}Ft="",rr=""}Ln=Dn==="\r".charCodeAt(0)?j:U}else Ln===U&&(nu=pn,Ln=te),Ln===te?Dn===":".charCodeAt(0)&&(ki=pn+1,Ln=z):Ln===z&&(Ln=Z)}}},dh=function(sn){if(Vt===G||Vt===le){Vt=ie,Ge!==0&&(i(Ge),Ge=0),Ge=r(function(){Qs()},de),de=R(Math.min(Re*16,de*2)),ue.readyState=le;var Xt=new X("error",{error:sn});ue.dispatchEvent(Xt),I(ue,ue.onerror,Xt),sn!=null&&console.error(sn)}},ru=function(){Vt=F,et!=null&&(et.abort(),et=void 0),Ge!==0&&(i(Ge),Ge=0),ue.readyState=F},Qs=function(){if(Ge=0,Vt!==ie){if(!be&&et!=null)dh(new Error("No activity within "+Ne+" milliseconds. "+(Vt===le?"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(){Qs()},sn)}return}be=!1,ye=0,Ge=r(function(){Qs()},Ne),Vt=le,Ft="",rr="",wn=ce,Pi="",nu=0,ki=0,Ln=U;var Xt=ve;if(ve.slice(0,5)!=="data:"&&ve.slice(0,5)!=="blob:"&&ce!==""){var ir=ve.indexOf("?");Xt=ir===-1?ve:ve.slice(0,ir+1)+ve.slice(ir+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ai,jn){return jn===De?"":ai}),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 si in pn)Object.prototype.hasOwnProperty.call(pn,si)&&(An[si]=pn[si]);try{et=Je.open(je,uh,fh,dh,Xt,Dn,An)}catch(ai){throw ru(),ai}};ue.url=ve,ue.readyState=le,ue.withCredentials=Te,ue.headers=Ce,ue._close=ru,Qs()}Q.prototype=Object.create(A.prototype),Q.prototype.CONNECTING=le,Q.prototype.OPEN=G,Q.prototype.CLOSED=F,Q.prototype.close=function(){this._close()},Q.CONNECTING=le,Q.OPEN=G,Q.CLOSED=F,Q.prototype.withCredentials=void 0;var Le=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Le=Q),function(ue){{var ve=ue(t);ve!==void 0&&(e.exports=ve)}}(function(ue){ue.EventSourcePolyfill=Q,ue.NativeEventSource=l,ue.EventSource=Le})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Il:globalThis)})(Yx,Yx.exports);var hhe=Yx.exports;const phe=(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 g=new hhe.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return g.onmessage=l,g.onerror=c,g});return()=>f.forEach(h=>h.close())};function Xs(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=sl();return B.useEffect(()=>{const c=g=>a?n.add(g):i([g]),f=t(r,l),h=phe(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return Tt(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),m.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 EE="shlink/shortUrlDeletion",QR={shortCode:"",loading:!1,deleted:!1,error:!1},mhe=e=>Sr(`${EE}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),_5=On(`${EE}/shortUrlDeleted`),ghe=e=>{const{actions:t,reducer:n}=nr({name:EE,initialState:QR,reducers:{resetDeleteShortUrl:()=>QR},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:Uo(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}},b5="shlink/shortUrlsList",w5=5,vhe={loading:!0,error:!1},yhe=e=>Sr(`${b5}/listShortUrls`,t=>e().listShortUrls(t??{})),_he=(e,t,n)=>nr({name:b5,initialState:vhe,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,Tt((i,{payload:o})=>i.shortUrls?El(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,w5-1)],i):i,i=>i.shortUrls?El(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?El(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return Ef(s,a,l)?o:s}),i):i),r.addCase(_5,Tt((i,{payload:o})=>i.shortUrls?El(["shortUrls","data"],Fd(s=>Ef(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?El(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(th,(i,{payload:o})=>{var s,a;return El(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=VG(o.createdVisits.filter(({shortUrl:f})=>f&&Ef(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),JR=10,{ceil:bhe}=Math,whe=new Intl.NumberFormat("en-US"),yn=e=>whe.format(Number(e)),xhe=e=>bhe(e/JR)*JR,She={field:"dateCreated",dir:"DESC"},x5={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:She}},S5=B.createContext(x5),Che=S5.Provider,TE=()=>B.useContext(S5)??x5,fl=e=>TE()[e];var Ehe={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"]},The=Ehe,Ohe={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"]},Phe=Ohe,khe={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"]},C5={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 Mhe=e=>({tag:Dt,to:e}),qx=({children:e,title:t,link:n,tooltip:r})=>{const i=al();return m.jsxs(m.Fragment,{children:[m.jsxs(xr,{innerRef:i,className:"highlight-card",body:!0,...Mhe(n),children:[m.jsx(Fe,{size:"3x",className:"highlight-card__link-icon",icon:Phe}),m.jsx(LC,{tag:"h5",className:"highlight-card__title",children:t}),m.jsx(NC,{tag:"h2",children:e})]}),r&&m.jsx(Er,{target:i,placement:"bottom",children:r})]})},eN=({loading:e,excludeBots:t,visitsSummary:n,...r})=>m.jsx(qx,{tooltip:n.bots!==void 0?m.jsxs(m.Fragment,{children:[t?"Plus":"Including"," ",m.jsx("strong",{children:yn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":yn(t&&n.nonBots?n.nonBots:n.total)}),Rhe=(e,t)=>Xs(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,loadVisitsOverview:s,visitsOverview:a})=>{const{loading:l,shortUrls:c}=n,{loading:f}=o,{loading:h,nonOrphanVisits:p,orphanVisits:g}=a,v=cl(),y=eo(),x=fl("visits");return B.useEffect(()=>{r({itemsPerPage:w5,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),s()},[]),m.jsxs(m.Fragment,{children:[m.jsxs(Xn,{children:[m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(eN,{title:"Visits",link:`${v}/non-orphan-visits`,excludeBots:(x==null?void 0:x.excludeBots)??!1,loading:h,visitsSummary:p})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(eN,{title:"Orphan visits",link:`${v}/orphan-visits`,excludeBots:(x==null?void 0:x.excludeBots)??!1,loading:h,visitsSummary:g})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(qx,{title:"Short URLs",link:`${v}/list-short-urls/1`,children:l?"Loading...":yn((c==null?void 0:c.pagination.totalItems)??0)})}),m.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:m.jsx(qx,{title:"Tags",link:`${v}/manage-tags`,children:f?"Loading...":yn(o.tags.length)})})]}),m.jsxs(xr,{className:"mb-3",children:[m.jsxs(Ka,{children:[m.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),m.jsx(Dt,{className:"float-end",to:`${v}/create-short-url`,children:"Advanced options »"})]}),m.jsx(Za,{children:m.jsx(t,{basicMode:!0})})]}),m.jsxs(xr,{children:[m.jsxs(Ka,{children:[m.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),m.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),m.jsx(Dt,{className:"float-end",to:`${v}/list-short-urls/1`,children:"See all »"})]}),m.jsx(Za,{children:m.jsx(e,{shortUrlsList:n,className:"mb-0",onTagClick:b=>y(`${v}/list-short-urls/1?tags=${encodeURIComponent(b)}`)})})]})]})},()=>[Xr.visits,Xr.orphanVisits]);function Nhe(e,t){e.serviceFactory("Overview",Rhe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const Lhe=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}),Dhe=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,basicMode:o=!1})=>{const s=fl("shortUrlCreation"),a=B.useMemo(()=>Lhe(s),[s]);return m.jsxs(m.Fragment,{children:[m.jsx(e,{initialState:a,saving:r.saving,mode:o?"create-basic":"create",onSave:async l=>(i(),n(l))}),m.jsx(t,{creation:r,resetCreateShortUrl:i,canBeClosed:o})]})},Ahe="Left",jhe="Right",Ihe="Up",Fhe="Down",Jl={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Gx={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},tN="mousemove",nN="mouseup",$he="touchend",Bhe="touchmove",Uhe="touchstart";function zhe(e,t,n,r){return e>t?n>0?jhe:Ahe:r>0?Fhe:Ihe}function rN(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 Hhe(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,g)=>{g.trackMouse&&!h&&(document.addEventListener(tN,r),document.addEventListener(nN,s));const{clientX:v,clientY:y}=h?f.touches[0]:f,x=rN([v,y],g.rotationAngle);return g.onTouchStartOrOnMouseDown&&g.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),Gx),{initial:x.slice(),xy:x,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const g="touches"in f;if(g&&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}=g?f.touches[0]:f,[x,b]=rN([v,y],p.rotationAngle),w=x-h.xy[0],S=b-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)],V=zhe(T,P,w,S),A=typeof p.delta=="number"?p.delta:p.delta[V.toLowerCase()]||Jl.delta;if(T<A&&P<A&&!h.swiping)return h;const W={absX:T,absY:P,deltaX:w,deltaY:S,dir:V,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${V}`])&&(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 g;if(h.swiping&&h.eventData){if(f.timeStamp-h.start<p.swipeDuration){g=Object.assign(Object.assign({},h.eventData),{event:f}),p.onSwiped&&p.onSwiped(g);const v=p[`onSwiped${g.dir}`];v&&v(g)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},h),Gx),{eventData:g})})},o=()=>{document.removeEventListener(tN,r),document.removeEventListener(nN,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const g=Object.assign(Object.assign({},Jl.touchEventOptions),h.touchEventOptions),v=[[Uhe,n,g],[Bhe,r,Object.assign(Object.assign({},g),h.preventScrollOnSwipe?{passive:!1}:{})],[$he,i,g]];v.forEach(([y,x,b])=>f.addEventListener(y,x,b)),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 g={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),g.cleanUpTouch=void 0),p.trackTouch&&f&&(g.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),g)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function Vhe(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 Whe(e){const{trackMouse:t}=e,n=B.useRef(Object.assign({},Gx)),r=B.useRef(Object.assign({},Jl)),i=B.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Jl),e);let o;for(o in Jl)r.current[o]===void 0&&(r.current[o]=Jl[o]);const[s,a]=B.useMemo(()=>Hhe(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Vhe(n.current,r.current,i.current,a),s}const Yhe=2e3,qhe=(e,t)=>(n=!1,r=Yhe)=>{const[i,o]=B.useState(n),s=B.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},Ghe=(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 Whe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Zhe=(e,t)=>{const[n,r]=B.useState(t);return[n,o=>{const{location:s,history:a}=window,l=ll(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${Xd(l)}`),r(o)}]},Khe=(e,t)=>{const n=B.useRef(!0);B.useEffect(()=>{!n.current&&e(),n.current=!1},t)},Jc=()=>{const e=eo();return()=>e(-1)},Xhe=e=>({shortUrlDetail:t,getShortUrlDetail:n,shortUrlEdition:r,editShortUrl:i})=>{const{search:o}=bn(),s=sl(),a=Jc(),{loading:l,error:c,errorData:f,shortUrl:h}=t,{saving:p,saved:g,error:v,errorData:y}=r,{domain:x}=ll(o),b=fl("shortUrlCreation"),w=B.useMemo(()=>wse(h,b),[h,b]);return B.useEffect(()=>{s.shortCode&&n({shortCode:cm(s.shortCode),domain:x})},[]),l?m.jsx(wo,{loading:!0}):c?m.jsx(Nr,{type:"error",children:m.jsx(Ro,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):m.jsxs(m.Fragment,{children:[m.jsx("header",{className:"mb-3",children:m.jsx(xr,{body:!0,children:m.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[m.jsx(ht,{color:"link",size:"lg",className:"p-0 me-3",onClick:a,children:m.jsx(Fe,{icon:Rj})}),m.jsx("span",{className:"text-center",children:m.jsxs("small",{children:["Edit ",m.jsx(Ci,{href:(h==null?void 0:h.shortUrl)??""})]})}),m.jsx("span",{})]})})}),m.jsx(e,{initialState:w,saving:p,mode:"edit",onSave:async S=>{h&&i({...h,data:S})}}),g&&v&&m.jsx(Nr,{type:"error",className:"mt-3",children:m.jsx(Ro,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),g&&!v&&m.jsx(Nr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var m_={},Qhe=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()}},Jhe=Qhe,iN={"text/plain":"Text","text/html":"Url",default:"Text"},epe="Copy to clipboard: #{key}, Enter";function tpe(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function npe(e,t){var n,r,i,o,s,a,l=!1;t||(t={}),n=t.debug||!1;try{i=Jhe(),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=iN[t.format]||iN.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=tpe("message"in t?t.message:epe),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var rpe=npe;function Zx(e){return Zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zx(e)}Object.defineProperty(m_,"__esModule",{value:!0});m_.CopyToClipboard=void 0;var Op=E5(B),ipe=E5(rpe),ope=["text","onCopy","options","children"];function E5(e){return e&&e.__esModule?e:{default:e}}function oN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oN(Object(n),!0).forEach(function(r){OE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function spe(e,t){if(e==null)return{};var n=ape(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 ape(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 lpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aN(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 cpe(e,t,n){return t&&aN(e.prototype,t),n&&aN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function upe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kx(e,t)}function Kx(e,t){return Kx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kx(e,t)}function fpe(e){var t=hpe();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 dpe(this,i)}}function dpe(e,t){if(t&&(Zx(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T5(e)}function T5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hpe(){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 OE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O5=function(e){upe(n,e);var t=fpe(n);function n(){var r;lpe(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)),OE(T5(r),"onClick",function(a){var l=r.props,c=l.text,f=l.onCopy,h=l.children,p=l.options,g=Op.default.Children.only(h),v=(0,ipe.default)(c,p);f&&f(c,v),g&&g.props&&typeof g.props.onClick=="function"&&g.props.onClick(a)}),r}return cpe(n,[{key:"render",value:function(){var i=this.props;i.text,i.onCopy,i.options;var o=i.children,s=spe(i,ope),a=Op.default.Children.only(o);return Op.default.cloneElement(a,sN(sN({},s),{},{onClick:this.onClick}))}}]),n}(Op.default.PureComponent);m_.CopyToClipboard=O5;OE(O5,"defaultProps",{onCopy:void 0,options:void 0});var ppe=m_,Xx=ppe.CopyToClipboard;Xx.CopyToClipboard=Xx;var mpe=Xx;const P5=ri(mpe);const gpe=e=>({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(B.useEffect(()=>{n()},[]),s)return m.jsxs(Nr,{type:"error",className:"mt-3",children:[r&&m.jsx(Fe,{icon:Jb,className:"float-end pointer",onClick:n}),m.jsx(Ro,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return m.jsxs(Nr,{type:"success",className:"mt-3",children:[r&&m.jsx(Fe,{icon:Jb,className:"float-end pointer",onClick:n}),m.jsxs("span",{children:[m.jsx("b",{children:"Great!"})," The short URL is ",m.jsx("b",{children:l})]}),m.jsx(P5,{text:l,onCopy:o,children:m.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[m.jsx(Fe,{icon:C5})," Copy"]})}),m.jsx(Yd,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},E1="delete",vpe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=B.useState("");B.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,g=Tt(i,t),v=p_(()=>o(e).then(t));return m.jsx($o,{isOpen:n,toggle:g,centered:!0,onClosed:()=>h&&s(e),children:m.jsxs("form",{onSubmit:v,children:[m.jsx(to,{toggle:g,children:m.jsx("span",{className:"text-danger",children:"Delete short URL"})}),m.jsxs(Oi,{children:[m.jsxs("p",{children:[m.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),m.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),m.jsxs("p",{children:["Write ",m.jsx("b",{children:E1})," to confirm deletion."]}),m.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${E1}`,value:a,onChange:y=>l(y.target.value)}),f&&m.jsx(Nr,{type:cse(p)?"warning":"error",small:!0,className:"mt-2",children:m.jsx(Ro,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),m.jsxs(Zs,{children:[m.jsx("button",{type:"button",className:"btn btn-link",onClick:g,children:"Cancel"}),m.jsx("button",{type:"submit",className:"btn btn-danger",disabled:a!==E1||c,children:c?"Deleting...":"Delete"})]})]})})},k5=({amount:e=0,loading:t=!1,...n})=>m.jsxs(ht,{...n,outline:!0,color:"primary",disabled:t,children:[m.jsx(Fe,{icon:LZ})," ",t?"Exporting...":m.jsxs(m.Fragment,{children:["Export (",yn(e),")"]})]}),g_=()=>{const e=eo(),{search:t}=bn(),n=cl(),r=B.useMemo(Tt(()=>ll(t),({orderBy:o,tags:s,excludeBots:a,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?ire(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]),i=B.useCallback(o=>{const s={...r,...o},{orderBy:a,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=s,g={...p,orderBy:a&&l6(a),tags:l.length>0?l.join(","):void 0,excludeBots:x1(c),excludeMaxVisitsReached:x1(f),excludePastValidUntil:x1(h)},v=Xd(g),y=Wn(v)?"":`?${v}`;e(`${n}/list-short-urls/1${y}`)},[r,e,n]);return[r,i]},lN=20,ype=(e,{exportShortUrls:t})=>({amount:n=0})=>{const[{tags:r,search:i,startDate:o,endDate:s,orderBy:a,tagsMode:l}]=g_(),[c,,f,h]=hn(),p=B.useCallback(async()=>{const g=n/lN,v=async(x=1)=>{const{data:b}=await e().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:s,orderBy:a,tagsMode:l,itemsPerPage:lN});return x>=g?b:b.concat(await v(x+1))};f();const y=await v();t(y.map(x=>{var T;const{hostname:b,pathname:w}=new URL(x.shortUrl),S=w.substring(1);return{createdAt:x.dateCreated,domain:b,shortCode:S,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((T=x==null?void 0:x.visitsSummary)==null?void 0:T.total)??x.visitsCount}})),h()},[]);return m.jsx(k5,{loading:c,className:"btn-md-block",amount:n,onClick:p})};const M5=({text:e,onCopy:t})=>m.jsx(P5,{text:e,onCopy:t,children:m.jsx(Fe,{icon:C5,className:"ms-2 copy-to-clipboard-icon"})}),_pe=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=Xd({...n,margin:t>0?t:void 0});return`${r}${Wn(i)?"":`?${i}`}`},bpe=({errorCorrection:e,setErrorCorrection:t})=>m.jsxs(Bo,{text:`Error correction (${e})`,children:[m.jsxs(ze,{active:e==="L",onClick:()=>t("L"),children:[m.jsx("b",{children:"L"}),"ow"]}),m.jsxs(ze,{active:e==="M",onClick:()=>t("M"),children:[m.jsx("b",{children:"M"}),"edium"]}),m.jsxs(ze,{active:e==="Q",onClick:()=>t("Q"),children:[m.jsx("b",{children:"Q"}),"uartile"]}),m.jsxs(ze,{active:e==="H",onClick:()=>t("H"),children:[m.jsx("b",{children:"H"}),"igh"]})]}),wpe=({format:e,setFormat:t})=>m.jsxs(Bo,{text:`Format (${e})`,children:[m.jsx(ze,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),m.jsx(ze,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]});const xpe=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i})=>{const[o,s]=B.useState(300),[a,l]=B.useState(0),[c,f]=B.useState("png"),[h,p]=B.useState("L"),g=B.useMemo(()=>_pe(t,{size:o,format:c,margin:a,errorCorrection:h}),[t,o,c,a,h]),v=B.useMemo(()=>o+a,[o,a]),y=B.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return m.jsxs($o,{isOpen:i,toggle:r,centered:!0,size:y,children:[m.jsxs(to,{toggle:r,children:["QR code for ",m.jsx(Ci,{href:t,children:t})]}),m.jsxs(Oi,{children:[m.jsxs(Xn,{children:[m.jsxs(gr,{className:"d-grid col-md-6",children:[m.jsxs("label",{children:["Size: ",o,"px"]}),m.jsx("input",{type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>s(Number(x.target.value))})]}),m.jsxs(gr,{className:"d-grid col-md-6",children:[m.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",a,"px"]}),m.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:a,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),m.jsx(gr,{className:"d-grid col-md-6",children:m.jsx(wpe,{format:c,setFormat:f})}),m.jsx(gr,{className:"col-md-6",children:m.jsx(bpe,{errorCorrection:h,setErrorCorrection:p})})]}),m.jsxs("div",{className:"text-center",children:[m.jsxs("div",{className:"mb-3",children:[m.jsx(Ci,{href:g}),m.jsx(M5,{text:g})]}),m.jsx("img",{src:g,className:"qr-code-modal__img",alt:"QR code"}),m.jsx("div",{className:"mt-3",children:m.jsxs(ht,{block:!0,color:"primary",onClick:()=>{e.saveImage(g,`${n}-qr-code.${c}`).catch(()=>{})},children:["Download ",m.jsx(Fe,{icon:Nj,className:"ms-1"})]})})]})]})]})},Zv=({date:e,format:t=wE,relative:n=!1})=>{const r=xE(e)?e:No(e);return m.jsx("time",{dateTime:`${nle(r)}000`,children:n?`${Zae(Us(),r)} ago`:Fc(r,t)})},Spe=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:CK,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",m.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Gr(yi(s),Us())?{icon:Xk,className:"text-danger",description:m.jsxs(m.Fragment,{children:["This short URL cannot be visited since ",m.jsx("b",{className:"indivisible",children:Yv(yi(s))}),"."]})}:o&&Gr(Us(),yi(o))?{icon:Xk,className:"text-warning",description:m.jsxs(m.Fragment,{children:["This short URL will start working on ",m.jsx("b",{className:"indivisible",children:Yv(yi(o))}),"."]})}:{icon:sd,className:"text-primary",description:"This short URL can be visited normally."}},Cpe=({shortUrl:e})=>{const t=al(),{icon:n,className:r,description:i}=Spe(e);return m.jsxs(m.Fragment,{children:[m.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:m.jsx(Fe,{icon:n,className:r})}),m.jsx(Er,{target:t,placement:"bottom",children:i})]})},Epe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${xse(t)}/${r}${i}`},Qx=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=cl();return!n||!e?m.jsx("span",{...i,children:r}):m.jsx(Dt,{to:Epe(o,e,t),...i,children:r})};const R5=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=m.jsx(Qx,{shortUrl:t,suffix:"visits",asLink:r,children:m.jsx("strong",{className:me("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:yn(e)})});if(!a)return l;const c=al();return m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"indivisible",children:[l,m.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&m.jsxs(m.Fragment,{children:[" / ",yn(i)]}),m.jsx("sup",{className:"ms-1",children:m.jsx(Fe,{icon:KS})})]})]}),m.jsx(Er,{target:c,placement:"bottom",children:m.jsxs("ul",{className:"list-unstyled mb-0",children:[i&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",m.jsx("b",{children:yn(i)})," visit",i===1?"":"s","."]}),o&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",m.jsx("b",{className:"indivisible",children:Yv(yi(o))}),"."]}),s&&m.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",m.jsx("b",{className:"indivisible",children:Yv(yi(s))}),"."]})]})})]})};const PE=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>m.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&&m.jsx("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),Tpe=({tags:e,onTagClick:t,colorGenerator:n})=>Wn(e)?m.jsx("i",{className:"indivisible",children:m.jsx("small",{children:"No tags"})}):m.jsx(m.Fragment,{children:e.map(r=>m.jsx(PE,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))});const Ope=(e,t,n)=>({shortUrl:r,onTagClick:i})=>{var g,v,y,x;const[o,s]=n(),[a,l]=n(!1,500),c=B.useRef(!0),[{excludeBots:f}]=g_(),h=fl("visits"),p=f??(h==null?void 0:h.excludeBots);return B.useEffect(()=>{!c.current&&l(),c.current=!1},[(g=r.visitsSummary)==null?void 0:g.total,(v=r.visitsSummary)==null?void 0:v.nonBots,r.visitsCount]),m.jsxs("tr",{className:"responsive-table__row",children:[m.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:m.jsx(Zv,{date:r.dateCreated})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:m.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[m.jsx("span",{className:"short-urls-row__short-url-wrapper",children:m.jsx(Ci,{href:r.shortUrl})}),m.jsx(M5,{text:r.shortUrl,onCopy:s}),m.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!o,children:"Copied short URL!"})]})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:m.jsx(Ci,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&m.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:m.jsx(Ci,{href:r.longUrl})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:m.jsx(Tpe,{tags:r.tags,colorGenerator:t,onTagClick:i})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:m.jsx(R5,{visitsCount:(p?(y=r.visitsSummary)==null?void 0:y.nonBots:(x=r.visitsSummary)==null?void 0:x.total)??r.visitsCount,shortUrl:r,active:a,asLink:!0})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:m.jsx(Cpe,{shortUrl:r})}),m.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:m.jsx(e,{shortUrl:r})})]})},Ppe=(e,t)=>({shortUrl:n})=>{const[r,,i,o]=hn(),[s,,a,l]=hn();return m.jsxs(l_,{minWidth:190,children:[m.jsxs(ze,{tag:Qx,shortUrl:n,suffix:"visits",asLink:!0,children:[m.jsx(Fe,{icon:ZS,fixedWidth:!0})," Visit stats"]}),m.jsxs(ze,{tag:Qx,shortUrl:n,suffix:"edit",asLink:!0,children:[m.jsx(Fe,{icon:GS,fixedWidth:!0})," Edit short URL"]}),m.jsxs(ze,{onClick:i,children:[m.jsx(Fe,{icon:xK,fixedWidth:!0})," QR code"]}),m.jsx(t,{shortUrl:n,isOpen:r,toggle:o}),m.jsx(ze,{divider:!0}),m.jsxs(ze,{className:"dropdown-item--danger",onClick:a,children:[m.jsx(Fe,{icon:qS,fixedWidth:!0})," Delete short URL"]}),m.jsx(e,{shortUrl:n,isOpen:s,toggle:l})]})},N5="shlink/shortUrlCreation",cN={saving:!1,saved:!1,error:!1},kpe=e=>Sr(`${N5}/createShortUrl`,t=>e().createShortUrl(t)),Mpe=e=>{const{reducer:t,actions:n}=nr({name:N5,initialState:cN,reducers:{resetCreateShortUrl:()=>cN},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:Uo(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},uN="shlink/shortUrlDetail",fN={loading:!1,error:!1},Rpe=e=>{const t=Sr(`${uN}/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().getShortUrl(r,i)}),{reducer:n}=nr({name:uN,initialState:fN,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Uo(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...fN,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},L5="shlink/shortUrlEdition",Npe={saving:!1,saved:!1,error:!1},Lpe=e=>Sr(`${L5}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),Dpe=e=>nr({name:L5,initialState:Npe,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:Uo(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}});var Ape={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"]},jpe={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 Ipe=({icon:e,className:t,...n})=>{const r=al(),i=me("icon-input-container__input",t);return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(Rc,{className:i,innerRef:r,...n}),m.jsx(Fe,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})};function Fpe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jx(e,t)}function Jx(e,t){return Jx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Jx(e,t)}function $pe(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 dN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bpe(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Upe(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Bpe(e,t,n))return!0;e=e.parentNode||e.host}return e}function zpe(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Hpe=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 Vpe(e){return e===void 0&&(e=0),function(){return++e}}var Wpe=Vpe(),e2,Pp={},T1={},Ype=["touchstart","touchmove"],qpe="ignore-react-onclickoutside";function hN(e,t){var n=null,r=Ype.indexOf(t)!==-1;return r&&e2&&(n={passive:!e.props.preventDefault}),n}function v_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Fpe(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():Dd.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||T1[c._uid])){typeof e2>"u"&&(e2=Hpe()),T1[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),Pp[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&zpe(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;Upe(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,Pp[c._uid],hN(dN(c),h))})}},c.disableOnClickOutside=function(){delete T1[c._uid];var f=Pp[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,hN(dN(c),p))}),delete Pp[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=Wpe(),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=$pe(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,B.createElement(e,f)},s}(B.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:qpe,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var D5=B.createContext(),A5=B.createContext();function Gpe(e){var t=e.children,n=B.useState(null),r=n[0],i=n[1],o=B.useRef(!1);B.useEffect(function(){return function(){o.current=!0}},[]);var s=B.useCallback(function(a){o.current||i(a)},[]);return B.createElement(D5.Provider,{value:r},B.createElement(A5.Provider,{value:s},t))}var j5=function(t){return Array.isArray(t)?t[0]:t},I5=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)}},t2=function(t,n){if(typeof t=="function")return I5(t,n);t!=null&&(t.current=n)},pN=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},mN=typeof window<"u"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,Zpe=[],Kpe=function(t,n,r){r===void 0&&(r={});var i=B.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Zpe},s=B.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=B.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var v=g.state,y=Object.keys(v.elements);l({styles:pN(y.map(function(x){return[x,v.styles[x]||{}]})),attributes:pN(y.map(function(x){return[x,v.attributes[x]]}))})},requires:["computeStyles"]}},[]),f=B.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return OI(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=B.useRef();return mN(function(){h.current&&h.current.setOptions(f)},[f]),mN(function(){if(!(t==null||n==null)){var p=r.createPopper||TI,g=p(t,n,f);return h.current=g,function(){g.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}},Xpe=function(){},Qpe=function(){return Promise.resolve(null)},Jpe=[];function eme(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?Jpe:o,a=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,f=e.children,h=B.useContext(D5),p=B.useState(null),g=p[0],v=p[1],y=B.useState(null),x=y[0],b=y[1];B.useEffect(function(){t2(c,g)},[c,g]);var w=B.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=Kpe(a||h,g,w),T=S.state,P=S.styles,k=S.forceUpdate,N=S.update,D=B.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:b},forceUpdate:k||Xpe,update:N||Qpe}},[v,b,n,T,P,N,k]);return j5(f)(D)}function tme(e){var t=e.children,n=e.innerRef,r=B.useContext(A5),i=B.useCallback(function(o){t2(n,o),I5(r,o)},[n,r]);return B.useEffect(function(){return function(){return t2(n,null)}}),B.useEffect(function(){kI(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),j5(t)({ref:i})}function gN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(n),!0).forEach(function(r){re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F5(e){return(F5=typeof Symbol=="function"&&typeof 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 yN(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&&yN(e.prototype,t),n&&yN(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 y_(){return(y_=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&&$5(e,t)}function n2(e){return(n2=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function $5(e,t){return($5=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(e,t)}function se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nme(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 se(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=n2(e);if(t){var i=n2(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nme(this,n)}}function B5(e){return function(t){if(Array.isArray(t))return O1(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 O1(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 O1(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 O1(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 _N(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 bN(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 rme={p:bN,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return _N(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}}",_N(i,t)).replace("{{time}}",bN(o,t))}},ime=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function dn(e){var t=e?typeof e=="string"||e instanceof String?No(e):Me(e):new Date;return ts(t)?t:null}function ome(e,t,n,r,i){var o=null,s=Ms(n)||Ms(Ia()),a=!0;return Array.isArray(t)?(t.forEach(function(l){var c=_1(e,l,new Date,{locale:s});r&&(a=ts(c,i)&&e===on(c,l,n)),ts(c,i)&&a&&(o=c)}),o):(o=_1(e,t,new Date,{locale:s}),r?a=ts(o)&&e===on(o,t,n):ts(o)||(t=t.match(ime).map(function(l){var c=l[0];return c==="p"||c==="P"?s?(0,rme[c])(l,s.formatLong):c:l}).join(""),e.length>0&&(o=_1(e,t.slice(0,e.length),new Date)),ts(o)||(o=new Date(e))),ts(o)&&a?o:null)}function ts(e,t){return t=t||new Date("1/1/1000"),Y6(e)&&!Gr(e,t)}function on(e,t,n){if(n==="en")return Fc(e,t,{awareOfUnicodeTokens:!0});var r=Ms(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Ia()&&Ms(Ia())&&(r=Ms(Ia())),Fc(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function P1(e,t){var n=t.dateFormat,r=t.locale;return e&&on(e,Array.isArray(n)?n[0]:n,r)||""}function wN(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(Hde(e,s===void 0?0:s),o),r)}function sme(e,t){var n=t&&Ms(t)||Ia()&&Ms(Ia());return ele(e,n?{locale:n}:null)}function ame(e,t){return on(e,"ddd",t)}function lme(e){return Lr(e)}function kE(e,t,n){var r=Ms(t||Ia());return W6(e,{locale:r,weekStartsOn:n})}function ja(e){return $se(e)}function Xu(e){return Bse(e)}function cme(e){return Aw(e)}function U5(e,t){return e&&t?Ode(e,t):!e&&!t}function ms(e,t){return e&&t?Ede(e,t):!e&&!t}function Kv(e,t){return e&&t?Tde(e,t):!e&&!t}function hr(e,t){return e&&t?Nse(e,t):!e&&!t}function gs(e,t){return e&&t?t5(e,t):!e&&!t}function Qm(e,t,n){var r,i=Lr(t),o=Qa(n);try{r=$c(e,{start:i,end:o})}catch{r=!1}return r}function Ia(){return(typeof window<"u"?window:globalThis).__localeId__}function Ms(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function z5(e,t){return on(zi(dn(),e),"LLLL",t)}function H5(e,t){return on(zi(dn(),e),"LLL",t)}function ume(e,t){return on(Ku(dn(),e),"QQQ",t)}function __(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 b_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return hr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return $c(e,{start:f,end:h})})||s&&!s.some(function(c){return hr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return $c(e,{start:f,end:h})})||l&&!l(dn(e))||!1}function ME(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 $c(e,{start:o,end:s})}):n&&n.some(function(i){return hr(e,i)})||!1}function fme(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 b_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ms(e,a)})||o&&!o.some(function(a){return ms(e,a)})||s&&!s(dn(e))||!1}function dme(e,t,n,r){var i=dt(e),o=ar(e),s=dt(t),a=ar(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 hme(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 b_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return Kv(e,a)})||o&&!o.some(function(a){return Kv(e,a)})||s&&!s(dn(e))||!1}function pme(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 b_(i,{minDate:n,maxDate:r})||!1}function mme(e,t,n,r){var i=dt(e),o=Dw(e),s=dt(t),a=Dw(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 b_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&_d(e,n)<0||r&&_d(e,r)>0}function xN(e,t){return t.some(function(n){return xi(n)===xi(e)&&Si(n)===Si(e)})}function SN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&xN(e,n)||r&&!xN(e,r)||i&&!i(e)||!1}function CN(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,Si(e)),xi(e)),a=Tf(Of(o,Si(n)),xi(n)),l=Tf(Of(o,Si(r)),xi(r));try{i=!$c(s,{start:a,end:l})}catch{i=!1}return i}function EN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=wd(e,1);return n&&bd(n,i)>0||r&&r.every(function(o){return bd(o,i)>0})||!1}function TN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Ji(e,1);return n&&bd(i,n)>0||r&&r.every(function(o){return bd(i,o)>0})||!1}function ON(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=xd(e,1);return n&&lv(n,i)>0||r&&r.every(function(o){return lv(o,i)>0})||!1}function PN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=jc(e,1);return n&&lv(i,n)>0||r&&r.every(function(o){return lv(i,o)>0})||!1}function V5(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return _d(i,t)>=0});return T3(r)}return n?T3(n):t}function W5(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return _d(i,t)<=0});return E3(r)}return n?E3(n):t}function kN(){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(uE(o)){var s=on(o,"MM.dd.yyyy"),a=n.get(s)||[];a.includes(t)||(a.push(t),n.set(s,a))}else if(F5(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 g=on(f[h],"MM.dd.yyyy"),v=n.get(g)||[];v.includes(c)||(v.push(c),n.set(g,v))}}}return n}function gme(e,t,n,r,i){for(var o=i.length,s=[],a=0;a<o;a++){var l=Lw(Ese(e,xi(i[a])),Si(i[a])),c=Lw(e,(n+1)*r);Bs(l,t)&&Gr(l,c)&&s.push(i[a])}return s}function MN(e){return e<10?"0".concat(e):"".concat(e)}function Pf(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 vme(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 yme=v_(function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;kn(this,n),re(se(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return H.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(se(i),p),"aria-selected":l===p?"true":void 0},l===p?H.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(H.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},H.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(H.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),re(se(i),"onChange",function(l){i.props.onChange(l)}),re(se(i),"handleClickOutside",function(){i.props.onCancel()}),re(se(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),re(se(i),"incrementYears",function(){return i.shiftYears(1)}),re(se(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:vme(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=B.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 H.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),_me=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),re(se(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(H.createElement("option",{key:f,value:f},f));return c}),re(se(r),"onSelectChange",function(a){r.onChange(a.target.value)}),re(se(r),"renderSelectMode",function(){return H.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),re(se(r),"renderReadView",function(a){return H.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},H.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),re(se(r),"renderDropdown",function(){return H.createElement(yme,{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(se(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),re(se(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.year&&r.props.onChange(a)}),re(se(r),"toggleDropdown",function(a){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,a)})}),re(se(r),"handleYearChange",function(a,l){r.onSelect(a,l),r.setOpen()}),re(se(r),"onSelect",function(a,l){r.props.onSelect&&r.props.onSelect(a,l)}),re(se(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 H.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),bme=v_(function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"isSelectedMonth",function(a){return r.props.month===a}),re(se(r),"renderOptions",function(){return r.props.monthNames.map(function(a,l){return H.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(se(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?H.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",a)})}),re(se(r),"onChange",function(a){return r.props.onChange(a)}),re(se(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Mn(n,[{key:"render",value:function(){return H.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),wme=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),re(se(r),"renderSelectOptions",function(a){return a.map(function(l,c){return H.createElement("option",{key:c,value:c},l)})}),re(se(r),"renderSelectMode",function(a){return H.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(a))}),re(se(r),"renderReadView",function(a,l){return H.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},H.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),re(se(r),"renderDropdown",function(a){return H.createElement(bme,{key:"dropdown",month:r.props.month,monthNames:a,onChange:r.onChange,onCancel:r.toggleDropdown})}),re(se(r),"renderScrollMode",function(a){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,a)];return l&&c.unshift(r.renderDropdown(a)),c}),re(se(r),"onChange",function(a){r.toggleDropdown(),a!==r.props.month&&r.props.onChange(a)}),re(se(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 H5(s,i.props.locale)}:function(s){return z5(s,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return H.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function xme(e,t){for(var n=[],r=ja(e),i=ja(t);!Bs(r,i);)n.push(dn(r)),r=Ji(r,1);return n}var Sme=v_(function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(se(i=t.call(this,r)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var s=fv(o),a=U5(i.props.date,o)&&ms(i.props.date,o);return H.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:i.onChange.bind(se(i),s),"aria-selected":a?"true":void 0},a?H.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",on(o,i.props.dateFormat,i.props.locale))})}),re(se(i),"onChange",function(o){return i.props.onChange(o)}),re(se(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:xme(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 H.createElement("div",{className:r},this.renderOptions())}}]),n}()),Cme=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"state",{dropdownVisible:!1}),re(se(r),"renderSelectOptions",function(){for(var a=ja(r.props.minDate),l=ja(r.props.maxDate),c=[];!Bs(a,l);){var f=fv(a);c.push(H.createElement("option",{key:f,value:f},on(a,r.props.dateFormat,r.props.locale))),a=Ji(a,1)}return c}),re(se(r),"onSelectChange",function(a){r.onChange(a.target.value)}),re(se(r),"renderSelectMode",function(){return H.createElement("select",{value:fv(ja(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),re(se(r),"renderReadView",function(a){var l=on(r.props.date,r.props.dateFormat,r.props.locale);return H.createElement("div",{key:"read",style:{visibility:a?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},H.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),re(se(r),"renderDropdown",function(){return H.createElement(Sme,{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(se(r),"renderScrollMode",function(){var a=r.state.dropdownVisible,l=[r.renderReadView(!a)];return a&&l.unshift(r.renderDropdown()),l}),re(se(r),"onChange",function(a){r.toggleDropdown();var l=dn(parseInt(a));U5(r.props.date,l)&&ms(r.props.date,l)||r.props.onChange(l)}),re(se(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 H.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),Eme=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"dayEl",H.createRef()),re(se(r),"handleClick",function(a){!r.isDisabled()&&r.props.onClick&&r.props.onClick(a)}),re(se(r),"handleMouseEnter",function(a){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(a)}),re(se(r),"handleOnKeyDown",function(a){a.key===" "&&(a.preventDefault(),a.key="Enter"),r.props.handleOnKeyDown(a)}),re(se(r),"isSameDay",function(a){return hr(r.props.day,a)}),re(se(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),re(se(r),"isDisabled",function(){return __(r.props.day,r.props)}),re(se(r),"isExcluded",function(){return ME(r.props.day,r.props)}),re(se(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(se(r),"isInRange",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&Qm(l,c,f)}),re(se(r),"isInSelectingRange",function(){var a,l=r.props,c=l.day,f=l.selectsStart,h=l.selectsEnd,p=l.selectsRange,g=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||!g&&r.isDisabled())&&(f&&y&&(Gr(x,y)||gs(x,y))?Qm(c,x,y):(h&&v&&(Bs(x,v)||gs(x,v))||!(!p||!v||y||!Bs(x,v)&&!gs(x,v)))&&Qm(c,v,x))}),re(se(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 hr(c,h?p:f)}),re(se(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 hr(c,h?p:f)}),re(se(r),"isRangeStart",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&hr(c,l)}),re(se(r),"isRangeEnd",function(){var a=r.props,l=a.day,c=a.startDate,f=a.endDate;return!(!c||!f)&&hr(f,l)}),re(se(r),"isWeekend",function(){var a=Xae(r.props.day);return a===0||a===6}),re(se(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===ar(r.props.day)}),re(se(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(ar(r.props.day)+1)%12===r.props.month}),re(se(r),"isCurrentDay",function(){return r.isSameDay(dn())}),re(se(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),re(se(r),"getClassNames",function(a){var l=r.props.dayClassName?r.props.dayClassName(a):void 0;return me("react-datepicker__day",l,"react-datepicker__day--"+ame(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(se(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,g=r.isDisabled()||r.isExcluded()?p:f;return"".concat(g," ").concat(on(l,"PPPP",r.props.locale))}),re(se(r),"getTabIndex",function(a,l){var c=a||r.props.selected,f=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&hr(f,c)?0:-1}),re(se(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(se(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(L3(r.props.day),r.props.day):L3(r.props.day)}),re(se(r),"render",function(){return H.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}(),Tme=function(e){Rn(n,H.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(se(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 H.createElement("div",{className:me(a),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}]),n}(),Ome=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l)}),re(se(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),re(se(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(se(r),"formatWeekNumber",function(a){return r.props.formatWeekNumber?r.props.formatWeekNumber(a):sme(a)}),re(se(r),"renderDays",function(){var a=kE(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(se(r),a,c):void 0;l.push(H.createElement(Tme,{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=ul(a,h);return H.createElement(Eme,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(se(r),p),onMouseEnter:r.handleDayMouseEnter.bind(se(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 H.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),Pme=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"MONTH_REFS",B5(Array(12)).map(function(){return H.createRef()})),re(se(r),"isDisabled",function(a){return __(a,r.props)}),re(se(r),"isExcluded",function(a){return ME(a,r.props)}),re(se(r),"handleDayClick",function(a,l){r.props.onDayClick&&r.props.onDayClick(a,l,r.props.orderInDisplay)}),re(se(r),"handleDayMouseEnter",function(a){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(a)}),re(se(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),re(se(r),"isRangeStartMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ms(zi(c,a),f)}),re(se(r),"isRangeStartQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Kv(Ku(c,a),f)}),re(se(r),"isRangeEndMonth",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&ms(zi(c,a),h)}),re(se(r),"isRangeEndQuarter",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Kv(Ku(c,a),h)}),re(se(r),"isWeekInMonth",function(a){var l=r.props.day,c=ul(a,6);return ms(a,l)||ms(c,l)}),re(se(r),"isCurrentMonth",function(a,l){return dt(a)===dt(dn())&&l===ar(dn())}),re(se(r),"isSelectedMonth",function(a,l,c){return ar(a)===l&&dt(a)===dt(c)}),re(se(r),"isSelectedQuarter",function(a,l,c){return Dw(a)===l&&dt(a)===dt(c)}),re(se(r),"renderWeeks",function(){for(var a=[],l=r.props.fixedHeight,c=0,f=!1,h=kE(ja(r.props.day),r.props.locale,r.props.calendarStartDay);a.push(H.createElement(Ome,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:h,month:ar(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=lE(h,1);var p=l&&c>=6,g=!l&&!r.isWeekInMonth(h);if(p||g){if(!r.props.peekNextMonth)break;f=!0}}return a}),re(se(r),"onMonthClick",function(a,l){r.handleDayClick(ja(zi(r.props.day,l)),a)}),re(se(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(se(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,Ji(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,wd(r.props.preSelection,1))}}),re(se(r),"onQuarterClick",function(a,l){r.handleDayClick(cme(Ku(r.props.day,l)),a)}),re(se(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,g=l.minDate,v=l.maxDate,y=l.preSelection,x=l.monthClassName,b=x?x(c):void 0;return me("react-datepicker__month-text","react-datepicker__month-".concat(a),b,{"react-datepicker__month--disabled":(g||v)&&fme(zi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":ar(y)===a,"react-datepicker__month--in-range":dme(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(se(r),"getTabIndex",function(a){var l=ar(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),re(se(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,g=l.day,v=zi(g,a),y=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(y," ").concat(on(v,"MMMM yyyy"))}),re(se(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,g=l.minDate,v=l.maxDate;return me("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(g||v)&&hme(Ku(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":mme(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),re(se(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,g=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 H.createElement("div",{className:"react-datepicker__month-wrapper",key:y},v.map(function(x,b){return H.createElement("div",{ref:r.MONTH_REFS[x],key:b,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,g)},l?z5(x,h):H5(x,h))}))})}),re(se(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return H.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return H.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},ume(f,r.props.locale))}))}),re(se(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 H.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}(),Y5=function(e){Rn(n,H.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(se(r=t.call.apply(t,[this].concat(o))),"state",{height:null}),re(se(r),"handleClick",function(a){(r.props.minTime||r.props.maxTime)&&CN(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&SN(a,r.props)||r.props.onChange(a)}),re(se(r),"isSelectedTime",function(a,l,c){return r.props.selected&&l===xi(a)&&c===Si(a)}),re(se(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)&&CN(a,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&SN(a,r.props))&&f.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*xi(a)+Si(a))%r.props.intervals!=0&&f.push("react-datepicker__time-list-item--injected"),f.join(" ")}),re(se(r),"handleOnKeyDown",function(a,l){a.key===" "&&(a.preventDefault(),a.key="Enter"),a.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(a)}),re(se(r),"renderTimes",function(){for(var a=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,f=lme(dn(r.props.selected)),h=1440/c,p=r.props.injectTimes&&r.props.injectTimes.sort(function(T,P){return T-P}),g=r.props.selected||r.props.openToDate||dn(),v=xi(g),y=Si(g),x=Tf(Of(f,y),v),b=0;b<h;b++){var w=Lw(f,b*c);if(a.push(w),p){var S=gme(f,w,b,c,p);a=a.concat(S)}}return a.map(function(T,P){return H.createElement("li",{key:P,onClick:r.handleClick.bind(se(r),T),className:r.liClasses(T,v,y),ref:function(k){(Gr(T,x)||gs(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 H.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},H.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}},H.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),H.createElement("div",{className:"react-datepicker__time"},H.createElement("div",{className:"react-datepicker__time-box"},H.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(Y5,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var kme=function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(se(i=t.call(this,r)),"YEAR_REFS",B5(Array(i.props.yearItemNumber)).map(function(){return H.createRef()})),re(se(i),"isDisabled",function(o){return __(o,i.props)}),re(se(i),"isExcluded",function(o){return ME(o,i.props)}),re(se(i),"updateFocusOnPaginate",function(o){var s=function(){this.YEAR_REFS[o].current.focus()}.bind(se(i));window.requestAnimationFrame(s)}),re(se(i),"handleYearClick",function(o,s){i.props.onDayClick&&i.props.onDayClick(o,s)}),re(se(i),"handleYearNavigation",function(o,s){var a=i.props,l=a.date,c=a.yearItemNumber,f=Pf(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(se(i),"isSameDay",function(o,s){return hr(o,s)}),re(se(i),"isCurrentYear",function(o){return o===dt(dn())}),re(se(i),"isKeyboardSelected",function(o){var s=Xu(Wv(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!hr(s,Xu(i.props.selected))&&hr(s,Xu(i.props.preSelection))}),re(se(i),"onYearClick",function(o,s){var a=i.props.date;i.handleYearClick(Xu(Wv(a,s)),o)}),re(se(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,jc(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(s-1,xd(i.props.preSelection,1))}}),re(se(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)&&pme(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),re(se(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=Pf(o.date,o.yearItemNumber),a=s.startPeriod,l=s.endPeriod,c=function(h){i.push(H.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 H.createElement("div",{className:"react-datepicker__year"},H.createElement("div",{className:"react-datepicker__year-wrapper"},i))}}]),n}(),Mme=function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(se(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(se(i),"renderTimeInput",function(){var o=i.state.time,s=i.props,a=s.date,l=s.timeString,c=s.customTimeInput;return c?H.cloneElement(c,{date:a,value:o,onChange:i.onTimeChange}):H.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 H.createElement("div",{className:"react-datepicker__input-time-container"},H.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),H.createElement("div",{className:"react-datepicker-time__input-container"},H.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 Rme(e){var t=e.className,n=e.children,r=e.showPopperArrow,i=e.arrowProps,o=i===void 0?{}:i;return H.createElement("div",{className:t},r&&H.createElement("div",y_({className:"react-datepicker__triangle"},o)),n)}var Nme=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Lme=function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(se(i=t.call(this,r)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),re(se(i),"setClickOutsideRef",function(){return i.containerRef.current}),re(se(i),"handleDropdownFocus",function(o){(function(){var s=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return Nme.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),re(se(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=V5(i.props),f=W5(i.props),h=dn(),p=l||a||s;return p||(c&&Gr(h,c)?c:f&&Bs(h,f)?f:h)}),re(se(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:Ji(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),re(se(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:wd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),re(se(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),re(se(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),re(se(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),re(se(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(se(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(se(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),re(se(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:Wv(a,o)}},function(){return i.handleYearChange(i.state.date)})}),re(se(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:zi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),re(se(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:Wv(zi(a,ar(o)),dt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),re(se(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=kE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(H.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=ul(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return H.createElement("div",{key:l,className:me("react-datepicker__day-name",h)},f)}))}),re(se(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(se(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:xd(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),re(se(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=ON(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.minDate,T=w.yearItemNumber,P=T===void 0?12:T,k=Pf(Xu(xd(b,P)),P).endPeriod,N=S&&dt(S);return N&&N>k||!1}(i.state.date,i.props);break;default:o=EN(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,g=p.previousMonthAriaLabel,v=g===void 0?typeof f=="string"?f:"Previous Month":g,y=p.previousYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Previous Year":y;return H.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},H.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),re(se(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:jc(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),re(se(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=PN(i.state.date,i.props);break;case i.props.showYearPicker:o=function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.maxDate,T=w.yearItemNumber,P=T===void 0?12:T,k=Pf(jc(b,P),P).startPeriod,N=S&&dt(S);return N&&N<k||!1}(i.state.date,i.props);break;default:o=TN(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,g=p.nextMonthAriaLabel,v=g===void 0?typeof f=="string"?f:"Next Month":g,y=p.nextYearAriaLabel,x=y===void 0?typeof h=="string"?h:"Next Year":y;return H.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},H.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),re(se(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"),H.createElement("div",{className:s.join(" ")},on(o,i.props.dateFormat,i.props.locale))}),re(se(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return H.createElement(_me,{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(se(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return H.createElement(wme,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:ar(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),re(se(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return H.createElement(Cme,{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(se(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return H.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Lr(dn()),o)}},i.props.todayButton)}),re(se(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return H.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),H.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)),H.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),re(se(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=EN(i.state.date,i.props),c=TN(i.state.date,i.props),f=ON(i.state.date,i.props),h=PN(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return H.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(vN(vN({},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&&H.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),re(se(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=Pf(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return H.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):dt(o))}),re(se(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(se(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=wd(i.state.date,s),l=0;l<i.props.monthsShown;++l){var c=l-i.props.monthSelectedIn,f=Ji(a,c),h="month-".concat(l),p=l<i.props.monthsShown-1,g=l>0;o.push(H.createElement("div",{key:h,ref:function(v){i.monthContainer=v},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),H.createElement(Pme,{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:g})))}return o}}),re(se(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?H.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),H.createElement(kme,y_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),re(se(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return H.createElement(Y5,{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(se(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=ts(o)&&i.props.selected?"".concat(MN(o.getHours()),":").concat(MN(o.getMinutes())):"";if(i.props.showTimeInput)return H.createElement(Mme,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=H.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&&!hr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!hr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||Rme;return H.createElement("div",{ref:this.containerRef},H.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}(),q5=function(e){Rn(n,H.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 La.createPortal(this.props.children,this.el)}}]),n}(),Dme=function(e){return!e.disabled&&e.tabIndex!==-1},Ame=function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(se(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(Dme)}),re(se(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),re(se(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=H.createRef(),i}return Mn(n,[{key:"render",value:function(){return this.props.enableTabLoop?H.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},H.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,H.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),jme=function(e){Rn(n,H.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,g=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,x=i.portalHost;if(!a){var b=me("react-datepicker-popper",o);r=H.createElement(eme,y_({modifiers:c,placement:f},h),function(S){var T=S.ref,P=S.style,k=S.placement,N=S.arrowProps;return H.createElement(Ame,{enableTabLoop:g},H.createElement("div",{ref:T,style:P,className:b,"data-placement":k,onKeyDown:v},H.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=H.createElement(this.props.popperContainer,{},r)),y&&!a&&(r=H.createElement(q5,{portalId:y,portalHost:x},r));var w=me("react-datepicker-wrapper",s);return H.createElement(Gpe,{className:"react-datepicker-manager"},H.createElement(tme,null,function(S){var T=S.ref;return H.createElement("div",{ref:T,className:w},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),Ime=v_(Lme),Fme=function(e){Rn(n,H.Component);var t=Nn(n);function n(r){var i;return kn(this,n),re(se(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(se(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=V5(i.props),l=W5(i.props),c=a&&Gr(s,Lr(a))?a:l&&Bs(s,Qa(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:kN(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),re(se(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),re(se(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),re(se(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),re(se(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:k1},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),re(se(i),"inputOk",function(){return uE(i.state.preSelection)}),re(se(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),re(se(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(se(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),re(se(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),re(se(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),re(se(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),re(se(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),re(se(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(se(i),s),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:$me});var c=ome(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(se(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(se(i),"setSelected",function(o,s,a,l){var c=o;if(c===null||!__(c,i.props)){var f=i.props,h=f.onChange,p=f.selectsRange,g=f.startDate,v=f.endDate;if(!gs(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=wN(c,{hour:xi(i.props.selected),minute:Si(i.props.selected),second:tle(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var y=g&&!v,x=g&&v;!g&&!v?h([c,null],s):y&&(Gr(c,g)?h([c,null],s):h([g,c],s)),x&&h([c,null],s)}else h(c,s);a||(i.props.onSelect(c,s),i.setState({inputValue:null}))}}),re(se(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=Qm(o,i.props.minDate,i.props.maxDate);else if(s){var f=Lr(i.props.minDate);l=Bs(o,f)||gs(c,f)}else if(a){var h=Qa(i.props.maxDate);l=Gr(o,h)||gs(c,h)}}l&&i.setState({preSelection:o})}),re(se(i),"handleTimeChange",function(o){var s=wN(i.props.selected?i.props.selected:i.getPreSelection(),{hour:xi(o),minute:Si(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(se(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),re(se(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===k1?(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(se(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=bE(a,1);break;case"ArrowRight":l=ul(a,1);break;case"ArrowUp":l=Vde(a,1);break;case"ArrowDown":l=lE(a,1);break;case"PageUp":l=wd(a,1);break;case"PageDown":l=Ji(a,1);break;case"Home":l=xd(a,1);break;case"End":l=jc(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:k1}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=ar(a),f=ar(l),h=dt(a),p=dt(l);c!==f||h!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),re(se(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(se(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(se(i),"clear",function(){i.onClearClick()}),re(se(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(se(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?H.createElement(Ime,{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(se(i),"renderDateInput",function(){var o,s=me(i.props.className,re({},"react-datepicker-ignore-onclickoutside",i.state.open)),a=i.props.customInput||H.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 g=P1(f,p),v=h?P1(h,p):"";return"".concat(g," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):P1(i.props.selected,i.props);return H.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(se(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,g=o.ariaLabelClose,v=g===void 0?"Close":g;return!s||a==null&&l==null&&c==null?null:H.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?ar(o)!==ar(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:kN(this.props.highlightDates)}),i.focused||gs(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 H.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?H.createElement("div",{className:"react-datepicker__portal"},r):null;return this.state.open&&this.props.portalId&&(i=H.createElement(q5,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),H.createElement("div",null,this.renderInputContainer(),i)}return H.createElement(jme,{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}(),$me="input",k1="navigate";const r2=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||Ao(r),s=B.useRef();return m.jsxs("div",{className:"icon-input-container",children:[m.jsx(Fme,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??c5,className:me("icon-input-container__input form-control",t),ref:s}),o&&m.jsx(Fe,{icon:The,className:"icon-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},Bme=e=>m.jsx(r2,{...e,dateFormat:wE,showTimeSelect:!0,timeIntervals:10}),M1=({children:e,infoTooltip:t,checked:n,onChange:r})=>m.jsxs("p",{children:[m.jsx(o6,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&m.jsx(Xm,{placement:"right",children:t})]});const Ume=({isOpen:e,toggle:t})=>m.jsxs($o,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[m.jsx(to,{toggle:t,children:"Info"}),m.jsxs(Oi,{children:[m.jsxs("p",{children:["When the ",m.jsx("b",{children:m.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),m.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),m.jsxs("ul",{children:[m.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),m.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",m.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),m.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),zme=()=>{const[e,t]=hn();return m.jsxs(m.Fragment,{children:[m.jsx("span",{title:"What does this mean?",children:m.jsx(Fe,{icon:KS,style:{cursor:"pointer"},onClick:t})}),m.jsx(Ume,{isOpen:e,toggle:t})]})};const Hme=Tt(EZ,mZ(/ /g,"-")),R1=e=>typeof e=="string"?No(e):e,Vme=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Wme=(e,t)=>function({mode:r,saving:i,onSave:o,initialState:s}){const[a,l]=B.useState(s),c=()=>l(s),f=Qd("deviceLongUrls"),h=r==="edit",p=Vme(a),g=r==="create-basic",v=P=>l({...a,tags:P.map(Hme)}),y=(P,k)=>Hi(P)?P:Hi(k)?null:void 0,x=p_(async()=>o({...a,validSince:zs(a.validSince)??null,validUntil:zs(a.validUntil)??null,maxVisits:Hi(a.maxVisits)?Number(a.maxVisits):null}).then(()=>!h&&c()).catch(()=>{}));B.useEffect(()=>{l(s)},[s]);const b=(P,k,N="text",D={},V={})=>m.jsx(gr,{...V,children:m.jsx(Rc,{id:P,type:N,placeholder:k,value:a[P]??"",onChange:D.onChange??(A=>l({...a,[P]:A.target.value})),...D})}),w=(P,k,N)=>{var D;return m.jsx(Ipe,{icon:N,id:P,type:"url",placeholder:k,value:((D=a.deviceLongUrls)==null?void 0:D[P])??"",onChange:V=>{var A;return l({...a,deviceLongUrls:{...a.deviceLongUrls??{},[P]:y(V.target.value,(A=s.deviceLongUrls)==null?void 0:A[P])}})}})},S=(P,k,N={})=>m.jsx(Bme,{selected:a[P]?R1(a[P]):null,placeholderText:k,isClearable:!0,onChange:D=>l({...a,[P]:D}),...N}),T=m.jsxs(m.Fragment,{children:[m.jsx(gr,{children:m.jsx(Rc,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:P=>l({...a,longUrl:P.target.value})})}),m.jsxs(Xn,{children:[g&&b("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),m.jsx("div",{className:g?"col-lg-6 mb-3":"col-12",children:m.jsx(e,{selectedTags:a.tags??[],onChange:v})})]})]});return m.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[g&&T,!g&&m.jsxs(m.Fragment,{children:[m.jsxs(Xn,{children:[m.jsx("div",{className:me("mb-3",{"col-sm-6":f,"col-12":!f}),children:m.jsx(cn,{title:"Main options",className:"mb-3",children:T})}),f&&m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(cn,{title:"Device-specific long URLs",children:[m.jsx(gr,{children:w("android","Android-specific redirection",jpe)}),m.jsx(gr,{children:w("ios","iOS-specific redirection",Ape)}),w("desktop","Desktop-specific redirection",EK)]})})]}),m.jsxs(Xn,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(cn,{title:"Customize the short URL",children:[b("title","Title","text",{onChange:({target:P})=>l({...a,title:y(P.value,s.title)})}),!h&&p&&m.jsxs(m.Fragment,{children:[m.jsxs(Xn,{children:[m.jsx("div",{className:"col-lg-6",children:b("customSlug","Custom slug","text",{disabled:Hi(a.shortCodeLength)})}),m.jsx("div",{className:"col-lg-6",children:b("shortCodeLength","Short code length","number",{min:4,disabled:Hi(a.customSlug)})})]}),m.jsx(t,{value:a.domain,onChange:P=>l({...a,domain:P})})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(cn,{title:"Limit access to the short URL",children:[b("maxVisits","Maximum number of visits allowed","number",{min:1}),m.jsx("div",{className:"mb-3",children:S("validSince","Enabled since...",{maxDate:a.validUntil?R1(a.validUntil):void 0})}),S("validUntil","Enabled until...",{minDate:a.validSince?R1(a.validSince):void 0})]})})]}),m.jsxs(Xn,{children:[m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(cn,{title:"Extra checks",children:[m.jsx(M1,{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&&p&&m.jsxs("p",{children:[m.jsx(o6,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:P=>l({...a,findIfExists:P}),children:"Use existing URL if found"}),m.jsx(zme,{})]})]})}),m.jsx("div",{className:"col-sm-6 mb-3",children:m.jsxs(cn,{title:"Configure behavior",children:[m.jsx(M1,{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"}),m.jsx(M1,{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"})]})})]})]}),m.jsx("div",{className:"text-center",children:m.jsx(ht,{outline:!0,color:"primary",disabled:i||Wn(a.longUrl),className:"btn-xs-block",children:i?"Saving...":"Save"})})]})},Yme=({active:e,allText:t,onChange:n})=>m.jsxs(m.Fragment,{children:[m.jsx(ze,{active:e==="all",onClick:()=>n("all"),children:t}),m.jsx(ze,{divider:!0}),Wde.map(r=>m.jsx(ze,{active:e===r,onClick:()=>n(r),children:p5(r)},r))]}),qme=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(r2,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),m.jsx("div",{className:"col-md-6",children:m.jsx(r2,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Qa(o))})})]}),G5=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=qv(t),[s,a]=B.useState(o?t:void 0),[l,c]=B.useState(o?void 0:t),f=p=>{a(d5(p)?eh:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(m5(p))};return i&&Khe(()=>{const p=qv(t);p&&h(t),t&&!p&&f(t)},[t]),m.jsxs(Bo,{disabled:r,text:p5(s??l)??n,children:[m.jsx(Yme,{allText:n,active:s,onChange:h}),m.jsx(ze,{divider:!0}),m.jsx(ze,{header:!0,children:"Custom:"}),m.jsx(ze,{text:!0,children:m.jsx(qme,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},Z5={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Gme=({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 m.jsxs(Bo,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[m.jsx(ze,{header:!0,children:"Visits:"}),m.jsx(ze,{active:i,onClick:a("excludeBots"),children:"Ignore visits from bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(ze,{divider:!0}),m.jsx(ze,{header:!0,children:"Short URLs:"}),m.jsx(ze,{active:o,onClick:a("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),m.jsx(ze,{active:s,onClick:a("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),m.jsx(ze,{divider:!0}),m.jsx(ze,{disabled:!Hi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:m.jsx("i",{children:"Clear filters"})})]})};const Zme=(e,t)=>({className:n,shortUrlsAmount:r,order:i,handleOrderBy:o})=>{const[s,a]=g_(),{search:l,tags:c,startDate:f,endDate:h,excludeBots:p,excludeMaxVisitsReached:g,excludePastValidUntil:v,tagsMode:y="any"}=s,x=Qd("filterDisabledUrls"),b=fl("visits"),w=Tt(({startDate:k,endDate:N})=>({startDate:zs(k)??void 0,endDate:zs(N)??void 0}),a),S=Tt(k=>Wn(k)?void 0:k,k=>a({search:k})),T=k=>a({tags:k}),P=Tt(()=>y==="any"?"all":"any",k=>a({tagsMode:k}));return m.jsxs("div",{className:me("short-urls-filtering-bar-container",n),children:[m.jsx(Zd,{initialValue:l,onChange:S}),m.jsxs(qd,{className:"mt-3",children:[m.jsx(t,{allowNew:!1,placeholder:"With tags...",selectedTags:c,onChange:T}),c.length>1&&m.jsxs(m.Fragment,{children:[m.jsx(ht,{outline:!0,color:"secondary",onClick:P,id:"tagsModeBtn","aria-label":"Change tags mode",children:m.jsx(Fe,{className:"short-urls-filtering-bar__tags-icon",icon:y==="all"?Mj:JZ})}),m.jsx(Er,{target:"tagsModeBtn",placement:"left",children:y==="all"?"With all the tags.":"With any of the tags."})]})]}),m.jsxs(Xn,{className:"flex-lg-row-reverse",children:[m.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-fill",children:m.jsx(G5,{defaultText:"All short URLs",initialDateRange:h5(f,h),onDatesChange:w})}),m.jsx(Gme,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:p??(b==null?void 0:b.excludeBots),excludeMaxVisitsReached:g,excludePastValidUntil:v},onChange:a,supportsDisabledFiltering:x})]})}),m.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:m.jsx(e,{amount:r})}),m.jsx("div",{className:"col-6 d-lg-none mt-3",children:m.jsx(Kd,{prefixed:!1,items:Z5,order:i,onChange:o})})]})]})};function kf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:m.jsx(Fe,{icon:e.dir==="ASC"?YZ:rK,className:n})}const Ll=2,i2="...",K5=(e,t)=>{const n=YS(fj(Ll,e-Ll),Sj(t-1,e+Ll)+1);return e-Ll>Ll&&n.unshift(i2),e+Ll<t-1&&n.push(i2),n.unshift(1),n.push(t),n},Sd=e=>e===i2,X5=e=>Sd(e)?e:yn(e),Q5=(e,t)=>Sd(e)?`${e}_${t}`:`${e}`,Kme=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=cl(),o=a=>`${i}/list-short-urls/${a}${t}`;if(r<=1)return m.jsx("div",{className:"pb-3"});const s=()=>K5(n,r).map((a,l)=>m.jsx(Os,{disabled:Sd(a),active:n===a,children:m.jsx(Ps,{tag:Dt,to:o(a),children:X5(a)})},Q5(a,l)));return m.jsxs(s_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[m.jsx(Os,{disabled:n===1,children:m.jsx(Ps,{previous:!0,tag:Dt,to:o(n-1)})}),s(),m.jsx(Os,{disabled:n>=r,children:m.jsx(Ps,{next:!0,tag:Dt,to:o(n+1)})})]})},Xme={field:"dateCreated",dir:"DESC"},Qme=(e,t)=>Xs(({listShortUrls:n,shortUrlsList:r})=>{var Y,ee,q;const{page:i}=sl(),o=bn(),[s,a]=g_(),l=TE(),{tags:c,search:f,startDate:h,endDate:p,orderBy:g,tagsMode:v,excludeBots:y,excludePastValidUntil:x,excludeMaxVisitsReached:b}=s,[w,S]=B.useState(g??((Y=l.shortUrlsList)==null?void 0:Y.defaultOrdering)??Xme),{pagination:T}=(r==null?void 0:r.shortUrls)??{},P=y??((ee=l.visits)==null?void 0:ee.excludeBots),k=Qd("excludeBotsOnShortUrls"),N=(X,ie)=>{a({orderBy:{field:X,dir:ie}}),S({field:X,dir:ie})},D=X=>()=>N(X,c_(X,w.field,w.dir)),V=X=>m.jsx(kf,{currentOrder:w,field:X}),A=Tt(X=>[...new Set([...c,X])],X=>a({tags:X})),W=({field:X,dir:ie})=>k&&P&&X==="visits"?{field:"nonBotVisits",dir:ie}:{field:X,dir:ie};return B.useEffect(()=>{n({page:i,searchTerm:f,tags:c,startDate:h,endDate:p,orderBy:W(w),tagsMode:v,excludePastValidUntil:x,excludeMaxVisitsReached:b})},[i,f,c,h,p,w.field,w.dir,v,x,b]),m.jsxs(m.Fragment,{children:[m.jsx(t,{shortUrlsAmount:(q=r.shortUrls)==null?void 0:q.pagination.totalItems,order:w,handleOrderBy:N,className:"mb-3"}),m.jsxs(xr,{body:!0,className:"pb-0",children:[m.jsx(e,{shortUrlsList:r,orderByColumn:D,renderOrderIcon:V,onTagClick:A}),m.jsx(Kme,{paginator:T,currentQueryString:o.search})]})]})},()=>[Xr.visits]);const Jme=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,className:o})=>{const{error:s,loading:a,shortUrls:l}=r,c=me({"short-urls-table__header-cell--with-action":!!t}),f=me("short-urls-table__header-cell",c),h=me("table table-hover responsive-table short-urls-table",o),p=()=>s?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):a?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!a&&Wn(l==null?void 0:l.data)?m.jsx("tr",{children:m.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(g=>m.jsx(e,{shortUrl:g,onTagClick:i},g.shortUrl));return m.jsxs("table",{className:h,children:[m.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:m.jsxs("tr",{children:[m.jsxs("th",{className:f,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),m.jsxs("th",{className:f,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),m.jsxs("th",{className:"short-urls-table__header-cell",children:[m.jsxs("span",{className:c,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]})," / ",m.jsxs("span",{className:c,onClick:t==null?void 0:t("longUrl"),children:[m.jsx("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),m.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),m.jsx("th",{className:f,onClick:t==null?void 0:t("visits"),children:m.jsxs("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),m.jsx("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),m.jsx("tbody",{children:p()})]})},ege=(e,t)=>{e.serviceFactory("ShortUrlsList",Qme,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Jme,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",Ope,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.serviceFactory("ShortUrlsRowMenu",Ppe,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",gpe,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Wme,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",Dhe,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Xhe,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>vpe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",xpe,"ImageDownloader"),e.serviceFactory("ShortUrlsFilteringBar",Zme,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",ype,"apiClientFactory","ReportExporter"),e.serviceFactory("shortUrlsListReducerCreator",_he,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",at("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Mpe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",at("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Dpe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",at("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",ghe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",at("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",Rpe,"apiClientFactory"),e.serviceFactory("shortUrlDetailReducer",at("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",yhe,"apiClientFactory"),e.serviceFactory("createShortUrl",kpe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",at("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",mhe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",at("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>_5),e.serviceFactory("getShortUrlDetail",at("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",Lpe,"apiClientFactory")},tge=({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 m.jsxs($o,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[m.jsx(to,{toggle:t,className:"text-danger",children:"Delete tag"}),m.jsxs(Oi,{children:["Are you sure you want to delete tag ",m.jsx("b",{children:e}),"?",a&&m.jsx(Nr,{type:"error",small:!0,className:"mt-2",children:m.jsx(Ro,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),m.jsxs(Zs,{children:[m.jsx(ht,{color:"link",onClick:t,children:"Cancel"}),m.jsx(ht,{color:"danger",disabled:s,onClick:f,children:s?"Deleting tag...":"Delete tag"})]})]})};function w_(){return(w_=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 J5(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 o2(e){var t=B.useRef(e),n=B.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Cd=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Mf=function(e){return"touches"in e},s2=function(e){return e&&e.ownerDocument.defaultView||self},RN=function(e,t,n){var r=e.getBoundingClientRect(),i=Mf(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:Cd((i.pageX-(r.left+s2(e).pageXOffset))/r.width),top:Cd((i.pageY-(r.top+s2(e).pageYOffset))/r.height)}},NN=function(e){!Mf(e)&&e.preventDefault()},e8=H.memo(function(e){var t=e.onMove,n=e.onKey,r=J5(e,["onMove","onKey"]),i=B.useRef(null),o=o2(t),s=o2(n),a=B.useRef(null),l=B.useRef(!1),c=B.useMemo(function(){var g=function(x){NN(x),(Mf(x)?x.touches.length>0:x.buttons>0)&&i.current?o(RN(i.current,x,a.current)):y(!1)},v=function(){return y(!1)};function y(x){var b=l.current,w=s2(i.current),S=x?w.addEventListener:w.removeEventListener;S(b?"touchmove":"mousemove",g),S(b?"touchend":"mouseup",v)}return[function(x){var b=x.nativeEvent,w=i.current;if(w&&(NN(b),!function(T,P){return P&&!Mf(T)}(b,l.current)&&w)){if(Mf(b)){l.current=!0;var S=b.changedTouches||[];S.length&&(a.current=S[0].identifier)}w.focus(),o(RN(w,b,a.current)),y(!0)}},function(x){var b=x.which||x.keyCode;b<37||b>40||(x.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},y]},[s,o]),f=c[0],h=c[1],p=c[2];return B.useEffect(function(){return p},[p]),H.createElement("div",w_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),RE=function(e){return e.filter(Boolean).join(" ")},t8=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=RE(["react-colorful__pointer",e.className]);return H.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},H.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},zn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},nge=function(e){return age(a2(e))},a2=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?zn(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?zn(parseInt(e.substring(6,8),16)/255,2):1}},rge=function(e){return sge(oge(e))},ige=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:zn(e.h),s:zn(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:zn(i/2),a:zn(r,2)}},l2=function(e){var t=ige(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},oge=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:zn(255*[r,a,s,s,l,r][c]),g:zn(255*[l,r,r,a,s,s][c]),b:zn(255*[s,s,l,r,r,a][c]),a:zn(i,2)}},kp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},sge=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?kp(zn(255*i)):"";return"#"+kp(t)+kp(n)+kp(r)+o},age=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:zn(60*(a<0?a+6:a)),s:zn(o?s/o*100:0),v:zn(o/255*100),a:i}},lge=H.memo(function(e){var t=e.hue,n=e.onChange,r=RE(["react-colorful__hue",e.className]);return H.createElement("div",{className:r},H.createElement(e8,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Cd(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":zn(t),"aria-valuemax":"360","aria-valuemin":"0"},H.createElement(t8,{className:"react-colorful__hue-pointer",left:t/360,color:l2({h:t,s:100,v:100,a:1})})))}),cge=H.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:l2({h:t.h,s:100,v:100,a:1})};return H.createElement("div",{className:"react-colorful__saturation",style:r},H.createElement(e8,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Cd(t.s+100*i.left,0,100),v:Cd(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+zn(t.s)+"%, Brightness "+zn(t.v)+"%"},H.createElement(t8,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:l2(t)})))}),n8=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},uge=function(e,t){return e.toLowerCase()===t.toLowerCase()||n8(a2(e),a2(t))};function fge(e,t,n){var r=o2(n),i=B.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=B.useRef({color:t,hsva:o});B.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),B.useEffect(function(){var c;n8(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=B.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var dge=typeof window<"u"?B.useLayoutEffect:B.useEffect,hge=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},LN=new Map,pge=function(e){dge(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!LN.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}`,LN.set(t,n);var r=hge();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},mge=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=J5(e,["className","colorModel","color","onChange"]),a=B.useRef(null);pge(a);var l=fge(n,i,o),c=l[0],f=l[1],h=RE(["react-colorful",t]);return H.createElement("div",w_({},s,{ref:a,className:h}),H.createElement(cge,{hsva:c,onChange:f}),H.createElement(lge,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},gge={defaultColor:"000",toHsva:nge,fromHsva:function(e){return rge({h:e.h,s:e.s,v:e.v,a:1})},equal:uge},vge=function(e){return H.createElement(mge,w_({},e,{colorModel:gge}))};const yge=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=B.useState(t),[c,f]=B.useState(e(t)),[h,p,,g]=hn(),{editing:v,error:y,edited:x,errorData:b}=s,w=p_(async()=>{await n({oldName:t,newName:a,color:c}),r()}),S=Tt(g,()=>x&&i({oldName:t,newName:a,color:c}));return m.jsx($o,{isOpen:o,toggle:r,centered:!0,onClosed:S,children:m.jsxs("form",{name:"editTag",onSubmit:w,children:[m.jsx(to,{toggle:r,children:"Edit tag"}),m.jsxs(Oi,{children:[m.jsxs(qd,{children:[m.jsx("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:m.jsx(Fe,{icon:qZ,className:"edit-tag-modal__color-icon"})}),m.jsx(Wd,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:m.jsx(vge,{color:c,onChange:f})}),m.jsx(Rc,{value:a,placeholder:"Tag",required:!0,onChange:({target:T})=>l(T.value)})]}),y&&m.jsx(Nr,{type:"error",small:!0,className:"mt-2",children:m.jsx(Ro,{errorData:b,fallbackMessage:"Something went wrong while editing the tag :("})})]}),m.jsxs(Zs,{children:[m.jsx(ht,{type:"button",color:"link",onClick:r,children:"Cancel"}),m.jsx(ht,{color:"primary",disabled:v,children:v?"Saving...":"Save"})]})]})})};function _ge(e){return H.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},H.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const bge={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},wge=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class xge extends H.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=H.createRef(),this.sizer=H.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);wge.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 H.createElement("div",{className:s.searchWrapper},H.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}})),H.createElement("div",{ref:this.sizer,style:bge},n||i))}}function NE(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function Sge(e){return new RegExp(NE(e),"gi")}function Cge(e){return new RegExp(`(?:^|\\s)${NE(e)}`,"i")}function Ege(e){return new RegExp(`^${NE(e)}$`,"i")}function Tge(e,t){const n=Sge(t);return e.replace(n,"<mark>$&</mark>")}function Oge({item:e,query:t}){return H.createElement("span",{dangerouslySetInnerHTML:{__html:Tge(e.name,t)}})}function Pge(e){const t=e.suggestionComponent||Oge,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),H.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?H.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:H.createElement(t,{item:r,query:e.query}))});return H.createElement("div",{className:e.classNames.suggestions},H.createElement("ul",{role:"listbox",id:e.id},n))}function kge(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 xa={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},r8={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 i8(e,t){return e.findIndex(n=>Ege(t).test(n.name))}function N1(){if(this.state.query.length>=this.props.minQueryLength){const e=i8(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 Mge(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function Rge(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function Nge(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function Lge(e,t){return Cge(t).test(e.name)}function Dge(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&&i8(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 LE extends H.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=H.createRef(),this.input=H.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?N1.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(),N1.call(this)),t.key===xa.BACKSPACE&&this.props.allowBackspace&&Nge.call(this,t),(t.key===xa.UP_ARROW||t.key===xa.UP_ARROW_COMPAT)&&Mge.call(this,t),(t.key===xa.DOWN_ARROW||t.key===xa.DOWN_ARROW_COMPAT)&&Rge.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&&N1.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&kge(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||_ge,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},r8,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),H.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},H.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>H.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),H.createElement("div",{className:r.search},H.createElement(xge,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?H.createElement(Pge,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:Dge(t,n)}:null}}LE.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:Lge,suggestionsTransform:null,autoresize:!0,classNames:r8,delimiters:[xa.TAB,xa.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};LE.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 o8=({tag:e,colorGenerator:t})=>m.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),DN=e=>({id:e,name:e}),Age=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,allowNew:s=!0})=>{const a=fl("shortUrlCreation");B.useEffect(()=>{i()},[]);const l=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=({tag:h,onDelete:p})=>m.jsx(PE,{colorGenerator:e,text:h.name,clearable:!0,className:"react-tags__tag",onClose:p}),f=({item:h})=>m.jsxs(m.Fragment,{children:[m.jsx(o8,{tag:`${h.name}`,colorGenerator:e}),h.name]});return m.jsx(LE,{tags:t.map(DN),tagComponent:c,suggestions:o.tags.filter(h=>!t.includes(h)).map(DN),suggestionComponent:f,allowNew:s,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(h,p)=>p.filter(({name:g})=>g.includes(h)):void 0,onDelete:h=>{const p=[...t];p.splice(h,1),n(p)},onAddition:({name:h})=>n([...new Set([...t,...h.toLowerCase().split(",")])])})},c2="shlink/tagDelete",jge={deleting:!1,deleted:!1,error:!1},s8=On(`${c2}/tagDeleted`),Ige=e=>{const t=Sr(`${c2}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=nr({name:c2,initialState:jge,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:Uo(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},DE="shlink/tagEdit",Fge={editing:!1,edited:!1,error:!1},a8=On(`${DE}/tagEdited`),$ge=(e,t)=>Sr(`${DE}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),Bge=e=>nr({name:DE,initialState:Fge,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:Uo(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...WS(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),AE="shlink/tagsList",L1={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},AN=(e,t)=>n=>n===e?t:n,jN=(e,t)=>Fd(n=>n===t,e),Uge=(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}),zge=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),{})),Hge=(e,t=!0)=>Sr(`${AE}/listTags`,async(n,{getState:r})=>{const{tagsList:i}=r();if(!t&&!Wn(i.tags))return i;const{tags:o,stats:s}=await e().tagsStats(),a=s.reduce((l,{tag:c,...f})=>(l[c]=f,l),{});return{tags:o,stats:a}}),l8=On(`${AE}/filterTags`),Vge=(e,t)=>nr({name:AE,initialState:L1,reducers:{},extraReducers:n=>{n.addCase(l8,(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})=>({...L1,error:!0,errorData:Uo(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...L1,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(s8,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:jN(r,s),filteredTags:jN(i,s)})),n.addCase(a8,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(AN(a.oldName,a.newName)).sort(),filteredTags:i.map(AN(a.oldName,a.newName)).sort()})),n.addCase(th,(r,{payload:i})=>({...r,stats:Uge(zge(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),c8={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Wge=e=>Xs(({filterTags:t,forceListTags:n,tagsList:r})=>{var f;const i=TE(),[o,s]=B.useState(((f=i.tags)==null?void 0:f.defaultOrdering)??{}),a=Tt(()=>r.filteredTags.map(h=>{var v,y,x;const p=r.stats[h],g=((v=i.visits)!=null&&v.excludeBots?(y=p==null?void 0:p.visitsSummary)==null?void 0:y.nonBots:(x=p==null?void 0:p.visitsSummary)==null?void 0:x.total)??(p==null?void 0:p.visitsCount)??0;return{tag:h,visits:g,shortUrls:(p==null?void 0:p.shortUrlsCount)??0}}),h=>a6(h,o));if(B.useEffect(()=>{n()},[]),r.loading)return m.jsx(wo,{loading:!0});if(r.error)return m.jsx(Nr,{type:"error",children:m.jsx(Ro,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const l=h=>()=>{const p=c_(h,o.field,o.dir);s({field:p?h:void 0,dir:p})},c=()=>{if(r.filteredTags.length<1)return m.jsx(wo,{children:"No tags found"});const h=a();return m.jsx(e,{sortedTags:h,currentOrder:o,orderByColumn:l})};return m.jsxs(m.Fragment,{children:[m.jsx(Zd,{className:"mb-3",onChange:t}),m.jsx(Xn,{className:"mb-3",children:m.jsx("div",{className:"col-lg-6 offset-lg-6",children:m.jsx(Kd,{items:c8,order:o,onChange:(h,p)=>s({field:h,dir:p})})})}),c()]})},()=>[Xr.visits]);const jE=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Sd(o)&&n(o);return m.jsxs(s_,{listClassName:me("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[m.jsx(Os,{disabled:t<=1,children:m.jsx(Ps,{previous:!0,tag:"span",onClick:i(t-1)})}),K5(t,e).map((o,s)=>m.jsx(Os,{disabled:Sd(o),active:t===o,children:m.jsx(Ps,{role:"link",tag:"span",onClick:i(o),children:X5(o)})},Q5(o,s))),m.jsx(Os,{disabled:t>=e,children:m.jsx(Ps,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Yge=20,qge=e=>({sortedTags:t,orderByColumn:n,currentOrder:r})=>{const i=B.useRef(!0),{search:o}=bn(),{page:s=1}=ll(o),[a,l]=Zhe("page",Number(s)),c=od(Yge,t),f=c.length>1,h=c[a-1]??[];return B.useEffect(()=>{!i.current&&l(1),i.current=!1},[t]),B.useEffect(()=>{scrollTo(0,0)},[a]),m.jsxs(cn,{bodyClassName:f?"pb-1":"",children:[m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsxs("thead",{className:"responsive-table__header",children:[m.jsxs("tr",{children:[m.jsxs("th",{className:"tags-table__header-cell",onClick:n("tag"),children:["Tag ",m.jsx(kf,{currentOrder:r,field:"tag"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("shortUrls"),children:["Short URLs ",m.jsx(kf,{currentOrder:r,field:"shortUrls"})]}),m.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("visits"),children:["Visits ",m.jsx(kf,{currentOrder:r,field:"visits"})]}),m.jsx("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),m.jsx("tr",{children:m.jsx("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),m.jsxs("tbody",{children:[h.length===0&&m.jsx("tr",{children:m.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),h.map(p=>m.jsx(e,{tag:p},p.tag))]})]}),f&&m.jsx("div",{className:"sticky-card-paginator",children:m.jsx(jE,{pagesCount:c.length,currentPage:a,setCurrentPage:l})})]},a)},Gge=(e,t,n)=>({tag:r})=>{const[i,o]=hn(),[s,a]=hn(),l=cl();return m.jsxs("tr",{className:"responsive-table__row",children:[m.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[m.jsx(o8,{tag:r.tag,colorGenerator:n})," ",r.tag]}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:m.jsx(Dt,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:yn(r.shortUrls)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:m.jsx(Dt,{to:`${l}/tag/${r.tag}/visits`,children:yn(r.visits)})}),m.jsx("td",{className:"responsive-table__cell text-lg-end",children:m.jsxs(l_,{children:[m.jsxs(ze,{onClick:a,children:[m.jsx(Fe,{icon:AZ,fixedWidth:!0,className:"me-1"})," Edit"]}),m.jsxs(ze,{onClick:o,children:[m.jsx(Fe,{icon:KZ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),m.jsx(t,{tag:r.tag,toggle:a,isOpen:s}),m.jsx(e,{tag:r.tag,toggle:o,isOpen:i})]})},Zge=(e,t)=>{e.serviceFactory("TagsSelector",Age,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>tge),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",yge,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",Gge,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",qge,"TagsTableRow"),e.serviceFactory("TagsList",Wge,"TagsTable"),e.decorator("TagsList",t(["tagsList","mercureInfo"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",Bge,"editTag"),e.serviceFactory("tagEditReducer",at("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",Ige,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",at("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Vge,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",at("reducer"),"tagsListReducerCreator");const n=r=>({apiClientFactory:i})=>Hge(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>l8),e.serviceFactory("deleteTag",at("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>s8),e.serviceFactory("editTag",$ge,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>a8)};var Kge="Expected a function",u8="__lodash_hash_undefined__",f8=1/0,Xge="[object Function]",Qge="[object GeneratorFunction]",Jge="[object Symbol]",eve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tve=/^\w*$/,nve=/^\./,rve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ive=/[\\^$.*+?()[\]{}|]/g,ove=/\\(\\)?/g,sve=/^\[object .+?Constructor\]$/,ave=typeof Il=="object"&&Il&&Il.Object===Object&&Il,lve=typeof self=="object"&&self&&self.Object===Object&&self,IE=ave||lve||Function("return this")();function cve(e,t){return e==null?void 0:e[t]}function uve(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var fve=Array.prototype,dve=Function.prototype,d8=Object.prototype,D1=IE["__core-js_shared__"],IN=function(){var e=/[^.]+$/.exec(D1&&D1.keys&&D1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),h8=dve.toString,FE=d8.hasOwnProperty,p8=d8.toString,hve=RegExp("^"+h8.call(FE).replace(ive,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),FN=IE.Symbol,pve=fve.splice,mve=m8(IE,"Map"),Ed=m8(Object,"create"),$N=FN?FN.prototype:void 0,BN=$N?$N.toString:void 0;function el(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 gve(){this.__data__=Ed?Ed(null):{}}function vve(e){return this.has(e)&&delete this.__data__[e]}function yve(e){var t=this.__data__;if(Ed){var n=t[e];return n===u8?void 0:n}return FE.call(t,e)?t[e]:void 0}function _ve(e){var t=this.__data__;return Ed?t[e]!==void 0:FE.call(t,e)}function bve(e,t){var n=this.__data__;return n[e]=Ed&&t===void 0?u8:t,this}el.prototype.clear=gve;el.prototype.delete=vve;el.prototype.get=yve;el.prototype.has=_ve;el.prototype.set=bve;function eu(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 wve(){this.__data__=[]}function xve(e){var t=this.__data__,n=x_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pve.call(t,n,1),!0}function Sve(e){var t=this.__data__,n=x_(t,e);return n<0?void 0:t[n][1]}function Cve(e){return x_(this.__data__,e)>-1}function Eve(e,t){var n=this.__data__,r=x_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}eu.prototype.clear=wve;eu.prototype.delete=xve;eu.prototype.get=Sve;eu.prototype.has=Cve;eu.prototype.set=Eve;function dl(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 Tve(){this.__data__={hash:new el,map:new(mve||eu),string:new el}}function Ove(e){return S_(this,e).delete(e)}function Pve(e){return S_(this,e).get(e)}function kve(e){return S_(this,e).has(e)}function Mve(e,t){return S_(this,e).set(e,t),this}dl.prototype.clear=Tve;dl.prototype.delete=Ove;dl.prototype.get=Pve;dl.prototype.has=kve;dl.prototype.set=Mve;function x_(e,t){for(var n=e.length;n--;)if(Uve(e[n][0],t))return n;return-1}function Rve(e,t){t=Ave(t,e)?[t]:Dve(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[$ve(t[n++])];return n&&n==r?e:void 0}function Nve(e){if(!v8(e)||Ive(e))return!1;var t=zve(e)||uve(e)?hve:sve;return t.test(Bve(e))}function Lve(e){if(typeof e=="string")return e;if(BE(e))return BN?BN.call(e):"";var t=e+"";return t=="0"&&1/e==-f8?"-0":t}function Dve(e){return g8(e)?e:Fve(e)}function S_(e,t){var n=e.__data__;return jve(t)?n[typeof t=="string"?"string":"hash"]:n.map}function m8(e,t){var n=cve(e,t);return Nve(n)?n:void 0}function Ave(e,t){if(g8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||BE(e)?!0:tve.test(e)||!eve.test(e)||t!=null&&e in Object(t)}function jve(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ive(e){return!!IN&&IN in e}var Fve=$E(function(e){e=Vve(e);var t=[];return nve.test(e)&&t.push(""),e.replace(rve,function(n,r,i,o){t.push(i?o.replace(ove,"$1"):r||n)}),t});function $ve(e){if(typeof e=="string"||BE(e))return e;var t=e+"";return t=="0"&&1/e==-f8?"-0":t}function Bve(e){if(e!=null){try{return h8.call(e)}catch{}try{return e+""}catch{}}return""}function $E(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Kge);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($E.Cache||dl),n}$E.Cache=dl;function Uve(e,t){return e===t||e!==e&&t!==t}var g8=Array.isArray;function zve(e){var t=v8(e)?p8.call(e):"";return t==Xge||t==Qge}function v8(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Hve(e){return!!e&&typeof e=="object"}function BE(e){return typeof e=="symbol"||Hve(e)&&p8.call(e)==Jge}function Vve(e){return e==null?"":Lve(e)}function Wve(e,t,n){var r=e==null?void 0:Rve(e,t);return r===void 0?n:r}var Yve=Wve;const UN=ri(Yve);function A1(e){return e==null?"":`${e}`}function qve(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 UE(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 Gve(e={stringFormatter:UE()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Zve(e={stringFormatter:UE()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function zN(e,t,n){const r=e[t];return r===void 0?n:r}function y8(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function u2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class Kve{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||UE(),i=Zve({stringFormatter:r}),o={header:r,undefined:A1,boolean:A1,number:qve(),bigint:A1,string:r,symbol:Gve({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=>UN(i,r,n):i=>zN(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=>UN(o,r.value,i):o=>zN(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 u2(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(y8,[]),[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 u2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class _8 extends Kve{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(y8,[])}processData(t){return u2(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 HN;(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"})(HN||(HN={}));var VN;(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"})(VN||(VN={}));var WN;(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"})(WN||(WN={}));var YN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(YN||(YN={}));const Xve=new _8,Qve=e=>Xve.parse(e),Jve=6,qN="0123456789ABCDEF",eye=128,{floor:tye,random:nye,sqrt:rye,round:iye}=Math,oye=()=>`#${CE(Jve,()=>qN[tye(nye()*qN.length)]).join("")}`,GN=e=>e.toLowerCase().trim(),sye=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),aye=(e=0,t=0,n=0)=>iye(rye(.299*e**2+.587*t**2+.114*n**2));class lye{constructor(t){xe(this,"colors");xe(this,"lights");xe(this,"getColorForKey",t=>{const n=GN(t),r=this.colors[n];return r||this.setColorForKey(n,oye())});xe(this,"setColorForKey",(t,n)=>{var i;const r=GN(t);return this.colors[r]=n,(i=this.storage)==null||i.storeTagColors(this.colors),n});xe(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if(Ao(this.lights[n])){const r=sye(n);this.lights[n]=aye(...r)>=eye}return this.lights[n]});var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}}const b8=({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)},cye=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);b8(e,i,n)};class uye{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);b8(this.window,i,n)}}class fye{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);cye(this.window,r,t)});this.window=t,this.jsonToCsv=n}}function dye(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",uye,"fetch","window"),e.service("ColorGenerator",lye,"TagColorsStorage"),e.constant("jsonToCsv",Qve),e.service("ReportExporter",fye,"window","jsonToCsv"),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",qhe,"setTimeout","clearTimeout")}const zE=e=>e.visitedUrl!==void 0,hye=e=>e.visitedUrl!==void 0,pye=Tt(XG(e=>zE(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),Mp=(e,t)=>bj(at(t),e),oh=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&zs(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&zs(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}},sh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>m.jsx("header",{children:m.jsxs(xr,{body:!0,children:[m.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[m.jsx(ht,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:m.jsx(Fe,{icon:Rj})}),m.jsx("span",{className:"text-center d-none d-sm-block",children:m.jsx("small",{children:i})}),m.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",m.jsx(R5,{visitsCount:e.length,shortUrl:n})]})]}),m.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:m.jsx("small",{children:i})}),r&&m.jsx("div",{className:"mt-md-2",children:r})]})});const w8=({title:e,footer:t,children:n})=>m.jsxs(xr,{role:"document",children:[m.jsx(Ka,{className:"chart-card__header",children:typeof e=="function"?e():e}),m.jsx(Za,{children:n}),t&&m.jsx(MC,{className:"chart-card__footer--sticky",children:t})]}),x8="label";function ZN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mye(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function S8(e,t){e.labels=t}function C8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x8;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 gye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x8;const n={labels:[],datasets:[]};return S8(n,e.labels),C8(n,e.datasets,t),n}function E8(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function vye(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,g=B.useRef(null),v=B.useRef(),y=()=>{g.current&&(v.current=new ry(g.current,{type:s,data:gye(a,o),options:l&&{...l},plugins:c}),ZN(t,v.current))},x=()=>{ZN(t,null),v.current&&(v.current.destroy(),v.current=null)};return B.useEffect(()=>{!i&&v.current&&l&&mye(v.current,l)},[i,l]),B.useEffect(()=>{!i&&v.current&&S8(v.current.config.data,a.labels)},[i,a.labels]),B.useEffect(()=>{!i&&v.current&&a.datasets&&C8(v.current.config.data,a.datasets,o)},[i,a.datasets]),B.useEffect(()=>{v.current&&(i?(x(),setTimeout(y)):v.current.update(h))},[i,l,a.labels,a.datasets,h]),B.useEffect(()=>{v.current&&(x(),setTimeout(y))},[s]),B.useEffect(()=>(y(),()=>x()),[]),H.createElement("canvas",Object.assign({ref:g,role:"img",height:n,width:r},p),f)}const yye=B.forwardRef(vye);function HE(e,t){return ry.register(t),B.forwardRef((n,r)=>H.createElement(yye,Object.assign({},n,{ref:r,type:e})))}const _ye=HE("line",of),bye=HE("bar",rf),wye=HE("doughnut",as),T8=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},O8=({dataset:e,raw:t})=>`${e.label}: ${yn(`${t}`)}`,xye=({label:e,raw:t})=>`${e}: ${yn(`${t}`)}`;const Sye=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return m.jsx("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>m.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[m.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),m.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},Cye=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:cre()?lre:are,borderWidth:2}],Eye=(e,t)=>({labels:e,datasets:Cye(t)}),Tye=B.memo(({stats:e})=>{const[t,n]=B.useState(),r=Xi(e),i=Yc(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:xye}}}},s=Eye(r,i);return m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-sm-12 col-md-7",children:m.jsx(wye,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),m.jsx("div",{className:"col-sm-12 col-md-5",children:t&&m.jsx(Sye,{chart:t})})]})}),KN=({title:e,stats:t})=>m.jsx(w8,{title:e,children:m.jsx(Tye,{stats:t})}),Oye={"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"},P8={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"},or={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"},Ko={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 Oye[t]}static getBrowserTypeByAlias(t){return P8[t]||""}}const xt=/version\/(\d+(\.?_?\d+)+)/i,Pye=[{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)}}}],kye=[{test:[/Roku\/DVP/],describe(e){const t=we.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:or.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=we.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:or.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:or.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:or.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:or.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:or.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:or.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:or.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:or.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=we.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:or.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=we.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:or.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:or.Linux}}},{test:[/CrOS/],describe(){return{name:or.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=we.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:or.PlayStation4,version:t}}}],Mye=[{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}}}],Rye=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ko.Blink};const n=we.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ko.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Ko.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:Ko.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:Ko.Gecko},n=we.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ko.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Ko.WebKit},n=we.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class XN{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(Pye,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(kye,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(Mye,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(Rye,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 Nye{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new XN(t,n)}static parse(t){return new XN(t).getResult()}static get BROWSER_MAP(){return P8}static get ENGINE_MAP(){return Ko}static get OS_MAP(){return or}static get PLATFORMS_MAP(){return Jt}}const Rp="Others",Lye=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],Dye=e=>{if(!Hi(e))return{browser:Rp,os:Rp};const{browser:{name:t},os:{name:n}}=Nye.parse(e);return{os:n??Rp,browser:t&&Lye.includes(t)?t:Rp}},Aye=e=>{var t;return Hi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},VE=(e,t)=>Object.values({...Cj(t,t.map(()=>0)),...e});const QN={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},jye={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},Iye={hourly:Dse,daily:fE,weekly:Fse,monthly:cv},WE={hourly:e=>Fc(e,"yyyy-MM-dd HH:00"),daily:e=>Pa(e),weekly(e){const t=Pa(yd(e)),n=Pa(zse(e));return`${t} - ${n}`},monthly:e=>Fc(e,"yyyy-MM")},Fye=e=>{const t=new Date,n=No(e);return VS([[()=>fE(t,n)<=2,$0("hourly")],[()=>cv(t,n)<=1,$0("daily")],[()=>cv(t,n)<=6,$0("weekly")]])()??"monthly"},JN=(e,t)=>bj(n=>WE[e](No(n.date)),t),$ye=(e,t)=>t.reduce((n,r)=>{const i=WE[e](No(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),Bye=(e,t)=>{const n=Iye[e],r=WE[e],i=No(t[0].date),o=No(t[t.length-1].date),s=n(i,o),a=jye[e];return[r(o),...CE(s,l=>r(Sse(o,a(l))))]},Uye=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=Bye(n,e);return[i,VE(t,i)]},eL=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let j1=null;const zye=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;j1===e[i]?(r([]),j1=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),j1=e[i]??null)},Hye=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=B.useState(t.length>0?Fye(t[t.length-1].date):"monthly"),[a,l]=hn(!0),c=B.useRef(null),f=B.useRef(null),h=B.useMemo(()=>$ye(o,t),[o,t]),p=B.useMemo(()=>JN(o,Qb(t)),[o,t]),[g,v]=B.useMemo(()=>Uye(t,p,o,a),[t,o,a]),y=B.useMemo(()=>VE(JN(o,Qb(n)),g),[n,o,g]),x=()=>{const T=eL(v,"Visits",VC);if(n.length===0)return[T];const P=eL(y,r,c6);return[T,P]},b=()=>({labels:g,datasets:x()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:O8}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:yn}},x:{title:{display:!0,text:QN[o]}}},onHover:T8},S=T=>m.jsx(_ye,{ref:T,data:b(),options:w,onClick:P=>zye(g,h,E8(T.current,P),i)});return m.jsxs(xr,{children:[m.jsxs(Ka,{role:"heading",children:[e,m.jsx("div",{className:"float-end",children:m.jsxs(Gd,{children:[m.jsx(Vd,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),m.jsx(Zc,{end:!0,children:Object.entries(QN).map(([T,P])=>m.jsx(ze,{active:o===T,onClick:()=>s(T),children:P},T))})]})}),m.jsx("div",{className:"float-end me-2",children:m.jsx(Nc,{checked:a,onChange:l,children:m.jsx("small",{children:"Skip dates with no visits"})})})]}),m.jsxs(Za,{className:"line-chart-card__body",children:[n.length>0&&S(c),n.length===0&&S(f)]})]})},Vye=({toggleClassName:e,ranges:t,value:n,setValue:r})=>m.jsxs(Gd,{children:[m.jsx(Vd,{caret:!0,color:"link",className:e,children:"Paginate"}),m.jsxs(Zc,{end:!0,children:[t.map(i=>m.jsxs(ze,{active:i===n,onClick:()=>r(i),children:[m.jsx("b",{children:i})," items per page"]},i)),m.jsx(ze,{divider:!0}),m.jsx(ze,{disabled:n===1/0,onClick:()=>r(1/0),children:m.jsx("i",{children:"Clear pagination"})})]})]}),Wye=e=>e.startsWith("hidden")?"":e,Yye=e=>!!e&&Object.keys(e).length>0,qye=e=>e.length>20?e.length*10:void 0,Gye=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:ore,borderColor:VC,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:sre,borderColor:c6,borderWidth:2}]},Zye=(e,t,n,r)=>({labels:e,datasets:Gye(t,n,r)}),Kye=(e,[t],n)=>{!n||!t||n(e[t.index])},Xye=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=Xi(e).map(Wye),s=Yc(Yye(t)?Xi(t).reduce((v,y)=>(v[y]&&(v[y]-=t[y]),v),{...e}):e),a=VE(t??{},o),l=B.useRef(null),c=B.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:v})=>v!=="",callbacks:{label:O8}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:yn}},y:{stacked:!0}},onHover:T8,indexAxis:"y"},h=Zye(o,s,a,n),p=qye(o),g=(v,y)=>m.jsx(bye,{ref:y,data:h,options:f,height:p,onClick:x=>Kye(o,E8(y.current,x),r)},`${p}_${v}`);return m.jsxs(m.Fragment,{children:[t!==void 0&&g("with_stats",l),t===void 0&&g("without_stats",c)]})},Qye=e=>$g(e)==="String"?bZ(e):e,tL=([e])=>e,nL=([,e])=>e,Np=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=B.useState({}),[c,f]=B.useState(1),[h,p]=B.useState(50),g=(N,D)=>{const V=Ug(N),A=a.field?vZ(Tt(a.field===Object.keys(D)[0]?tL:nL,Qye),V):V;return!a.dir||a.dir==="ASC"?A:Qb(A)},v=N=>{const D=N[c-1];if(c<N.length)return D;const V=N[0].length;return[...D,...CE(V-D.length,A=>[`hidden_${A}`,0])]},y=N=>m.jsx(jE,{currentPage:c,pagesCount:N,setCurrentPage:f}),x=(N,D,V)=>{const A=g(N,D),W=A.map(tL),Y=V&&Ug({...Cj(W,W.map(()=>0)),...V});if(A.length<=h)return{currentPageStats:Yu(A),currentPageHighlightedStats:Y&&Yu(Y)};const ee=od(h,A),q=Y&&od(h,Y);return{currentPageStats:Yu(v(ee)),currentPageHighlightedStats:q&&Yu(v(q)),pagination:y(ee.length),max:xhe(Math.max(...A.map(nL)))}},{currentPageStats:b,currentPageHighlightedStats:w,pagination:S,max:T}=x(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(b),k=()=>m.jsxs(m.Fragment,{children:[n,m.jsx("div",{className:"float-end",children:m.jsx(Kd,{isButton:!1,right:!0,items:r,order:a,onChange:(N,D)=>{l({field:N,dir:D}),f(1)}})}),o&&Object.keys(e).length>50&&m.jsx("div",{className:"float-end",children:m.jsx(Vye,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&m.jsx("div",{className:"float-end",children:i(S?P:void 0)})]});return m.jsx(w8,{title:k,footer:S,children:m.jsx(Xye,{stats:b,highlightedStats:w,max:T,...s})})},Jye=()=>{const e=eo(),{search:t}=bn(),{filtering:n,domain:r}=B.useMemo(Tt(()=>ll(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?h5(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:Ao(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=xj(n,o),{excludeBots:l,orphanVisitsType:c}=a,f={startDate:(s==null?void 0:s.startDate)&&zs(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&zs(s.endDate)||"",excludeBots:l===void 0?void 0:y5(l),orphanVisitsType:c,domain:r},h=Xd(f),p=Wn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]};function k8(e,t){const n=B.useRef(t);B.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 e_e=1;function t_e(e){return Object.freeze({__version:e_e,map:e})}function n_e(e,t){return Object.freeze({...e,...t})}const M8=B.createContext(null),R8=M8.Provider;function N8(){const e=B.useContext(M8);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function r_e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return B.useImperativeHandle(r,()=>i),n.children==null?null:H.createElement(R8,{value:o},n.children)}return B.forwardRef(t)}function i_e(e){function t(n,r){const[i,o]=B.useState(!1),{instance:s}=e(n,o).current;B.useImperativeHandle(r,()=>s),B.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Dd.createPortal(n.children,a):null}return B.forwardRef(t)}function o_e(e){function t(n,r){const{instance:i}=e(n).current;return B.useImperativeHandle(r,()=>i),null}return B.forwardRef(t)}function L8(e,t){const n=B.useRef();B.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 YE(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function s_e(e,t){return function(r,i){const o=N8(),s=e(YE(r,o),o);return k8(o.map,r.attribution),L8(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var f2={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)})(Il,function(n){var r="1.9.3";function i(u){var d,_,E,M;for(_=1,E=arguments.length;_<E;_++){M=arguments[_];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 _=Array.prototype.slice;if(u.bind)return u.bind.apply(u,_.call(arguments,1));var E=_.call(arguments,2);return function(){return u.apply(d,E.length?E.concat(_.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,_){var E,M,$,J;return J=function(){E=!1,M&&($.apply(_,M),M=!1)},$=function(){E?M=arguments:(u.apply(_,arguments),setTimeout(J,d),E=!0)},$}function f(u,d,_){var E=d[1],M=d[0],$=E-M;return u===E&&_?u:((u-M)%$+$)%$+M}function h(){return!1}function p(u,d){if(d===!1)return u;var _=Math.pow(10,d===void 0?6:d);return Math.round(u*_)/_}function g(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return g(u).split(/\s+/)}function y(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var _ in d)u.options[_]=d[_];return u.options}function x(u,d,_){var E=[];for(var M in u)E.push(encodeURIComponent(_?M.toUpperCase():M)+"="+encodeURIComponent(u[M]));return(!d||d.indexOf("?")===-1?"?":"&")+E.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function w(u,d){return u.replace(b,function(_,E){var M=d[E];if(M===void 0)throw new Error("No value provided for variable "+_);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 _=0;_<u.length;_++)if(u[_]===d)return _;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,_=Math.max(0,16-(d-N));return N=d+_,window.setTimeout(u,_)}var V=window.requestAnimationFrame||k("RequestAnimationFrame")||D,A=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function W(u,d,_){if(_&&V===D)u.call(d);else return V.call(window,s(u,d))}function Y(u){u&&A.call(window,u)}var ee={__proto__:null,extend:i,create:o,bind:s,get lastId(){return a},stamp:l,throttle:c,wrapNum:f,falseFn:h,formatNum:p,trim:g,splitWords:v,setOptions:y,getParamString:x,template:w,isArray:S,indexOf:T,emptyImageUrl:P,requestFn:V,cancelFn:A,requestAnimFrame:W,cancelAnimFrame:Y};function q(){}q.extend=function(u){var d=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},_=d.__super__=this.prototype,E=o(_);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&&(X(u.includes),i.apply(null,[E].concat(u.includes))),i(E,u),delete E.statics,delete E.includes,E.options&&(E.options=_.options?o(_.options):{},i(E.options,u.options)),E._initHooks=[],E.callInitHooks=function(){if(!this._initHooksCalled){_.callInitHooks&&_.callInitHooks.call(this),this._initHooksCalled=!0;for(var $=0,J=E._initHooks.length;$<J;$++)E._initHooks[$].call(this)}},d},q.include=function(u){var d=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},q.mergeOptions=function(u){return i(this.prototype.options,u),this},q.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),_=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(_),this};function X(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,_){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,_)}return this},off:function(u,d,_){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,J=u.length;$<J;$++)M?this._off(u[$]):this._off(u[$],d,_)}return this},_on:function(u,d,_,E){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,_)===!1){_===this&&(_=void 0);var M={fn:d,ctx:_};E&&(M.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(M)}},_off:function(u,d,_){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 J=this._listens(u,d,_);if(J!==!1){var fe=E[J];this._firingCount&&(fe.fn=h,this._events[u]=E=E.slice()),E.splice(J,1)}}},fire:function(u,d,_){if(!this.listens(u,_))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,J=M.length;$<J;$++){var fe=M[$],he=fe.fn;fe.once&&this.off(u,he,fe.ctx),he.call(fe.ctx||this,E)}this._firingCount--}}return _&&this._propagateEvent(E),this},listens:function(u,d,_,E){typeof u!="string"&&console.warn('"string" type argument expected');var M=d;typeof d!="function"&&(E=!!d,M=void 0,_=void 0);var $=this._events&&this._events[u];if($&&$.length&&this._listens(u,M,_)!==!1)return!0;if(E){for(var J in this._eventParents)if(this._eventParents[J].listens(u,d,_,E))return!0}return!1},_listens:function(u,d,_){if(!this._events)return!1;var E=this._events[u]||[];if(!d)return!!E.length;_===this&&(_=void 0);for(var M=0,$=E.length;M<$;M++)if(E[M].fn===d&&E[M].ctx===_)return M;return!1},once:function(u,d,_){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,_,!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 le=q.extend(ie);function G(u,d,_){this.x=_?Math.round(u):u,this.y=_?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,_=u.y-this.y;return Math.sqrt(d*d+_*_)},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,_){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,_)}function U(u,d){if(u)for(var _=d?[u,d]:u,E=0,M=_.length;E<M;E++)this.extend(_[E])}U.prototype={extend:function(u){var d,_;if(!u)return this;if(u instanceof G||typeof u[0]=="number"||"x"in u)d=_=j(u);else if(u=te(u),d=u.min,_=u.max,!d||!_)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=_.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(_.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(_.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,_;return typeof u[0]=="number"||u instanceof G?u=j(u):u=te(u),u instanceof U?(d=u.min,_=u.max):d=_=u,d.x>=this.min.x&&_.x<=this.max.x&&d.y>=this.min.y&&_.y<=this.max.y},intersects:function(u){u=te(u);var d=this.min,_=this.max,E=u.min,M=u.max,$=M.x>=d.x&&E.x<=_.x,J=M.y>=d.y&&E.y<=_.y;return $&&J},overlaps:function(u){u=te(u);var d=this.min,_=this.max,E=u.min,M=u.max,$=M.x>d.x&&E.x<_.x,J=M.y>d.y&&E.y<_.y;return $&&J},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,_=this.max,E=Math.abs(d.x-_.x)*u,M=Math.abs(d.y-_.y)*u;return te(j(d.x-E,d.y-M),j(_.x+E,_.y+M))},equals:function(u){return u?(u=te(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function te(u,d){return!u||u instanceof U?u:new U(u,d)}function z(u,d){if(u)for(var _=d?[u,d]:u,E=0,M=_.length;E<M;E++)this.extend(_[E])}z.prototype={extend:function(u){var d=this._southWest,_=this._northEast,E,M;if(u instanceof ne)E=u,M=u;else if(u instanceof z){if(E=u._southWest,M=u._northEast,!E||!M)return this}else return u?this.extend(ae(u)||Z(u)):this;return!d&&!_?(this._southWest=new ne(E.lat,E.lng),this._northEast=new ne(M.lat,M.lng)):(d.lat=Math.min(E.lat,d.lat),d.lng=Math.min(E.lng,d.lng),_.lat=Math.max(M.lat,_.lat),_.lng=Math.max(M.lng,_.lng)),this},pad:function(u){var d=this._southWest,_=this._northEast,E=Math.abs(d.lat-_.lat)*u,M=Math.abs(d.lng-_.lng)*u;return new z(new ne(d.lat-E,d.lng-M),new ne(_.lat+E,_.lng+M))},getCenter:function(){return new ne((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 ne(this.getNorth(),this.getWest())},getSouthEast:function(){return new ne(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 ne||"lat"in u?u=ae(u):u=Z(u);var d=this._southWest,_=this._northEast,E,M;return u instanceof z?(E=u.getSouthWest(),M=u.getNorthEast()):E=M=u,E.lat>=d.lat&&M.lat<=_.lat&&E.lng>=d.lng&&M.lng<=_.lng},intersects:function(u){u=Z(u);var d=this._southWest,_=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),$=M.lat>=d.lat&&E.lat<=_.lat,J=M.lng>=d.lng&&E.lng<=_.lng;return $&&J},overlaps:function(u){u=Z(u);var d=this._southWest,_=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),$=M.lat>d.lat&&E.lat<_.lat,J=M.lng>d.lng&&E.lng<_.lng;return $&&J},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=Z(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Z(u,d){return u instanceof z?u:new z(u,d)}function ne(u,d,_){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,_!==void 0&&(this.alt=+_)}ne.prototype={equals:function(u,d){if(!u)return!1;u=ae(u);var _=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return _<=(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,ae(u))},wrap:function(){return O.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,_=d/Math.cos(Math.PI/180*this.lat);return Z([this.lat-d,this.lng-_],[this.lat+d,this.lng+_])},clone:function(){return new ne(this.lat,this.lng,this.alt)}};function ae(u,d,_){return u instanceof ne?u:S(u)&&typeof u[0]!="object"?u.length===3?new ne(u[0],u[1],u[2]):u.length===2?new ne(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new ne(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new ne(u,d,_)}var pe={latLngToPoint:function(u,d){var _=this.projection.project(u),E=this.scale(d);return this.transformation._transform(_,E)},pointToLatLng:function(u,d){var _=this.scale(d),E=this.transformation.untransform(u,_);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,_=this.scale(u),E=this.transformation.transform(d.min,_),M=this.transformation.transform(d.max,_);return new U(E,M)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,_=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,E=u.alt;return new ne(_,d,E)},wrapLatLngBounds:function(u){var d=u.getCenter(),_=this.wrapLatLng(d),E=d.lat-_.lat,M=d.lng-_.lng;if(E===0&&M===0)return u;var $=u.getSouthWest(),J=u.getNorthEast(),fe=new ne($.lat-E,$.lng-M),he=new ne(J.lat-E,J.lng-M);return new z(fe,he)}},O=i({},pe,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var _=Math.PI/180,E=u.lat*_,M=d.lat*_,$=Math.sin((d.lat-u.lat)*_/2),J=Math.sin((d.lng-u.lng)*_/2),fe=$*$+Math.cos(E)*Math.cos(M)*J*J,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,_=this.MAX_LATITUDE,E=Math.max(Math.min(_,u.lat),-_),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 ne((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 U([-u,-u],[u,u])}()};function Q(u,d,_,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=_,this._d=E}Q.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,_,E){return new Q(u,d,_,E)}var oe=i({},O,{code:"EPSG:3857",projection:I,transformation:function(){var u=.5/(Math.PI*I.R);return K(u,.5,-u,.5)}()}),ge=i({},oe,{code:"EPSG:900913"});function Le(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function ue(u,d){var _="",E,M,$,J,fe,he;for(E=0,$=u.length;E<$;E++){for(fe=u[E],M=0,J=fe.length;M<J;M++)he=fe[M],_+=(M?"L":"M")+he.x+" "+he.y;_+=d?Ve.svg?"z":"x":""}return _||"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,je=!Ce&&jn("safari"),Je=jn("phantom"),et="OTransition"in ve,Ge=navigator.platform.indexOf("Win")===0,Vt=_e&&"transition"in ve,Ft="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ce,wn="MozPerspective"in ve,rr=!window.L_DISABLE_3D&&(Vt||Ft||wn)&&!et&&!Je,Pi=typeof orientation<"u"||jn("mobile"),Ln=Pi&&Re,nu=Pi&&Ft,ki=!window.PointerEvent&&window.MSPointerEvent,uh=!!(window.PointerEvent||ki),fh="ontouchstart"in window||!!window.TouchEvent,dh=!window.L_NO_TOUCH&&(fh||uh),ru=Pi&&ye,Qs=Pi&&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}(),ir=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}}(),si=navigator.platform.indexOf("Mac")===0,ai=navigator.platform.indexOf("Linux")===0;function jn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Ve={ie:_e,ielt9:Te,edge:De,webkit:Re,android:Ne,android23:ce,androidStock:be,opera:ye,chrome:Ce,gecko:ke,safari:je,phantom:Je,opera12:et,win:Ge,ie3d:Vt,webkit3d:Ft,gecko3d:wn,any3d:rr,mobile:Pi,mobileWebkit:Ln,mobileWebkit3d:nu,msPointer:ki,pointer:uh,touch:dh,touchNative:fh,mobileOpera:ru,mobileGecko:Qs,retina:sn,passiveEvents:Xt,canvas:ir,svg:Dn,vml:pn,inlineSvg:An,mac:si,linux:ai},JE=Ve.msPointer?"MSPointerDown":"pointerdown",eT=Ve.msPointer?"MSPointerMove":"pointermove",tT=Ve.msPointer?"MSPointerUp":"pointerup",nT=Ve.msPointer?"MSPointerCancel":"pointercancel",E_={touchstart:JE,touchmove:eT,touchend:tT,touchcancel:nT},rT={touchstart:dF,touchmove:hh,touchend:hh,touchcancel:hh},pl={},iT=!1;function aF(u,d,_){return d==="touchstart"&&fF(),rT[d]?(_=rT[d].bind(this,_),u.addEventListener(E_[d],_,!1),_):(console.warn("wrong event specified:",d),h)}function lF(u,d,_){if(!E_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(E_[d],_,!1)}function cF(u){pl[u.pointerId]=u}function uF(u){pl[u.pointerId]&&(pl[u.pointerId]=u)}function oT(u){delete pl[u.pointerId]}function fF(){iT||(document.addEventListener(JE,cF,!0),document.addEventListener(eT,uF,!0),document.addEventListener(tT,oT,!0),document.addEventListener(nT,oT,!0),iT=!0)}function hh(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var _ in pl)d.touches.push(pl[_]);d.changedTouches=[d],u(d)}}function dF(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&In(d),hh(u,d)}function hF(u){var d={},_,E;for(E in u)_=u[E],d[E]=_&&_.bind?_.bind(u):_;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var pF=200;function mF(u,d){u.addEventListener("dblclick",d);var _=0,E;function M($){if($.detail!==1){E=$.detail;return}if(!($.pointerType==="mouse"||$.sourceCapabilities&&!$.sourceCapabilities.firesTouchEvents)){var J=uT($);if(!(J.some(function(he){return he instanceof HTMLLabelElement&&he.attributes.for})&&!J.some(function(he){return he instanceof HTMLInputElement||he instanceof HTMLSelectElement}))){var fe=Date.now();fe-_<=pF?(E++,E===2&&d(hF($))):E=1,_=fe}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function gF(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var T_=gh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iu=gh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),sT=iu==="webkitTransition"||iu==="OTransition"?iu+"End":"transitionend";function aT(u){return typeof u=="string"?document.getElementById(u):u}function ou(u,d){var _=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!_||_==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);_=E?E[d]:null}return _==="auto"?null:_}function ft(u,d,_){var E=document.createElement(u);return E.className=d||"",_&&_.appendChild(E),E}function $t(u){var d=u.parentNode;d&&d.removeChild(u)}function ph(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function ml(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function gl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function O_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var _=mh(u);return _.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(_)}function Xe(u,d){if(u.classList!==void 0)for(var _=v(d),E=0,M=_.length;E<M;E++)u.classList.add(_[E]);else if(!O_(u,d)){var $=mh(u);P_(u,($?$+" ":"")+d)}}function Qt(u,d){u.classList!==void 0?u.classList.remove(d):P_(u,g((" "+mh(u)+" ").replace(" "+d+" "," ")))}function P_(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function mh(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&&vF(u,d)}function vF(u,d){var _=!1,E="DXImageTransform.Microsoft.Alpha";try{_=u.filters.item(E)}catch{if(d===1)return}d=Math.round(d*100),_?(_.Enabled=d!==100,_.Opacity=d):u.style.filter+=" progid:"+E+"(opacity="+d+")"}function gh(u){for(var d=document.documentElement.style,_=0;_<u.length;_++)if(u[_]in d)return u[_];return!1}function Js(u,d,_){var E=d||new G(0,0);u.style[T_]=(Ve.ie3d?"translate("+E.x+"px,"+E.y+"px)":"translate3d("+E.x+"px,"+E.y+"px,0)")+(_?" scale("+_+")":"")}function an(u,d){u._leaflet_pos=d,Ve.any3d?Js(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function ea(u){return u._leaflet_pos||new G(0,0)}var su,au,k_;if("onselectstart"in document)su=function(){Ze(window,"selectstart",In)},au=function(){St(window,"selectstart",In)};else{var lu=gh(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);su=function(){if(lu){var u=document.documentElement.style;k_=u[lu],u[lu]="none"}},au=function(){lu&&(document.documentElement.style[lu]=k_,k_=void 0)}}function M_(){Ze(window,"dragstart",In)}function R_(){St(window,"dragstart",In)}var vh,N_;function L_(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(yh(),vh=u,N_=u.style.outline,u.style.outline="none",Ze(window,"keydown",yh))}function yh(){vh&&(vh.style.outline=N_,vh=void 0,N_=void 0,St(window,"keydown",yh))}function lT(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function D_(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var yF={__proto__:null,TRANSFORM:T_,TRANSITION:iu,TRANSITION_END:sT,get:aT,getStyle:ou,create:ft,remove:$t,empty:ph,toFront:ml,toBack:gl,hasClass:O_,addClass:Xe,removeClass:Qt,setClass:P_,getClass:mh,setOpacity:Br,testProp:gh,setTransform:Js,setPosition:an,getPosition:ea,get disableTextSelection(){return su},get enableTextSelection(){return au},disableImageDrag:M_,enableImageDrag:R_,preventOutline:L_,restoreOutline:yh,getSizedParentNode:lT,getScale:D_};function Ze(u,d,_,E){if(d&&typeof d=="object")for(var M in d)j_(u,M,d[M],_);else{d=v(d);for(var $=0,J=d.length;$<J;$++)j_(u,d[$],_,E)}return this}var Mi="_leaflet_events";function St(u,d,_,E){if(arguments.length===1)cT(u),delete u[Mi];else if(d&&typeof d=="object")for(var M in d)I_(u,M,d[M],_);else if(d=v(d),arguments.length===2)cT(u,function(fe){return T(d,fe)!==-1});else for(var $=0,J=d.length;$<J;$++)I_(u,d[$],_,E);return this}function cT(u,d){for(var _ in u[Mi]){var E=_.split(/\d/)[0];(!d||d(E))&&I_(u,E,null,null,_)}}var A_={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function j_(u,d,_,E){var M=d+l(_)+(E?"_"+l(E):"");if(u[Mi]&&u[Mi][M])return this;var $=function(fe){return _.call(E||u,fe||window.event)},J=$;!Ve.touchNative&&Ve.pointer&&d.indexOf("touch")===0?$=aF(u,d,$):Ve.touch&&d==="dblclick"?$=mF(u,$):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(A_[d]||d,$,Ve.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?($=function(fe){fe=fe||window.event,$_(u,fe)&&J(fe)},u.addEventListener(A_[d],$,!1)):u.addEventListener(d,J,!1):u.attachEvent("on"+d,$),u[Mi]=u[Mi]||{},u[Mi][M]=$}function I_(u,d,_,E,M){M=M||d+l(_)+(E?"_"+l(E):"");var $=u[Mi]&&u[Mi][M];if(!$)return this;!Ve.touchNative&&Ve.pointer&&d.indexOf("touch")===0?lF(u,d,$):Ve.touch&&d==="dblclick"?gF(u,$):"removeEventListener"in u?u.removeEventListener(A_[d]||d,$,!1):u.detachEvent("on"+d,$),u[Mi][M]=null}function ta(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function F_(u){return j_(u,"wheel",ta),this}function cu(u){return Ze(u,"mousedown touchstart dblclick contextmenu",ta),u._leaflet_disable_click=!0,this}function In(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function na(u){return In(u),ta(u),this}function uT(u){if(u.composedPath)return u.composedPath();for(var d=[],_=u.target;_;)d.push(_),_=_.parentNode;return d}function fT(u,d){if(!d)return new G(u.clientX,u.clientY);var _=D_(d),E=_.boundingClientRect;return new G((u.clientX-E.left)/_.x-d.clientLeft,(u.clientY-E.top)/_.y-d.clientTop)}var _F=Ve.linux&&Ve.chrome?window.devicePixelRatio:Ve.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function dT(u){return Ve.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/_F: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 $_(u,d){var _=d.relatedTarget;if(!_)return!0;try{for(;_&&_!==u;)_=_.parentNode}catch{return!1}return _!==u}var bF={__proto__:null,on:Ze,off:St,stopPropagation:ta,disableScrollPropagation:F_,disableClickPropagation:cu,preventDefault:In,stop:na,getPropagationPath:uT,getMousePosition:fT,getWheelDelta:dT,isExternalTarget:$_,addListener:Ze,removeListener:St},hT=le.extend({run:function(u,d,_,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=_||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=ea(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,_=this._duration*1e3;d<_?this._runFrame(this._easeOut(d/_),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var _=this._startPos.add(this._offset.multiplyBy(u));d&&_._round(),an(this._el,_),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=le.extend({options:{crs:oe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,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(ae(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=iu&&Ve.any3d&&!Ve.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ze(this._proxy,sT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,_){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(ae(u),d,this.options.maxBounds),_=_||{},this._stop(),this._loaded&&!_.reset&&_!==!0){_.animate!==void 0&&(_.zoom=i({animate:_.animate},_.zoom),_.pan=i({animate:_.animate,duration:_.duration},_.pan));var E=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,_.zoom):this._tryAnimatedPan(u,_.pan);if(E)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,_.pan&&_.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||(Ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(Ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,_){var E=this.getZoomScale(d),M=this.getSize().divideBy(2),$=u instanceof G?u:this.latLngToContainerPoint(u),J=$.subtract(M).multiplyBy(1-1/E),fe=this.containerPointToLatLng(M.add(J));return this.setView(fe,d,{zoom:_})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():Z(u);var _=j(d.paddingTopLeft||d.padding||[0,0]),E=j(d.paddingBottomRight||d.padding||[0,0]),M=this.getBoundsZoom(u,!1,_.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(_).divideBy(2),J=this.project(u.getSouthWest(),M),fe=this.project(u.getNorthEast(),M),he=this.unproject(J.add(fe).divideBy(2).add($),M);return{center:he,zoom:M}},fitBounds:function(u,d){if(u=Z(u),!u.isValid())throw new Error("Bounds are not valid.");var _=this._getBoundsCenterZoom(u,d);return this.setView(_.center,_.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 hT,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 _=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,_,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,_){if(_=_||{},_.animate===!1||!Ve.any3d)return this.setView(u,d,_);this._stop();var E=this.project(this.getCenter()),M=this.project(u),$=this.getSize(),J=this._zoom;u=ae(u),d=d===void 0?J:d;var fe=Math.max($.x,$.y),he=fe*this.getZoomScale(J,d),Se=M.distanceTo(E)||1,Ae=1.42,Ye=Ae*Ae;function nt(ln){var Rh=ln?-1:1,l$=ln?he:fe,c$=he*he-fe*fe+Rh*Ye*Ye*Se*Se,u$=2*l$*Ye*Se,K_=c$/u$,qT=Math.sqrt(K_*K_+1)-K_,f$=qT<1e-9?-18:Math.log(qT);return f$}function zr(ln){return(Math.exp(ln)-Math.exp(-ln))/2}function ia(ln){return(Math.exp(ln)+Math.exp(-ln))/2}function Mh(ln){return zr(ln)/ia(ln)}var Wo=nt(0);function Z_(ln){return fe*(ia(Wo)/ia(Wo+Ae*ln))}function i$(ln){return fe*(ia(Wo)*Mh(Wo+Ae*ln)-zr(Wo))/Ye}function o$(ln){return 1-Math.pow(1-ln,1.5)}var s$=Date.now(),WT=(nt(1)-Wo)/Ae,a$=_.duration?1e3*_.duration:1e3*WT*.8;function YT(){var ln=(Date.now()-s$)/a$,Rh=o$(ln)*WT;ln<=1?(this._flyToFrame=W(YT,this),this._move(this.unproject(E.add(M.subtract(E).multiplyBy(i$(Rh)/Se)),J),this.getScaleZoom(fe/Z_(Rh),J),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,_.noMoveStart),YT.call(this),this},flyToBounds:function(u,d){var _=this._getBoundsCenterZoom(u,d);return this.flyTo(_.center,_.zoom,d)},setMaxBounds:function(u){return u=Z(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 _=this.getCenter(),E=this._limitCenter(_,this._zoom,Z(u));return _.equals(E)||this.panTo(E,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var _=j(d.paddingTopLeft||d.padding||[0,0]),E=j(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),$=this.project(u),J=this.getPixelBounds(),fe=te([J.min.add(_),J.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 _=this.getSize(),E=d.divideBy(2).round(),M=_.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:_}))},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),_=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,_,u):navigator.geolocation.getCurrentPosition(d,_,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,_=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: "+_+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,_=u.coords.longitude,E=new ne(d,_),M=E.toBounds(u.coords.accuracy*2),$=this._locateOptions;if($.setView){var J=this.getBoundsZoom(M);this.setView(E,$.maxZoom?Math.min(J,$.maxZoom):J)}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 _=this[u]=new d(this);return this._handlers.push(_),this.options[u]&&_.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 _="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=ft("div",_,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()),_=this.unproject(u.getTopRight());return new z(d,_)},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,_){u=Z(u),_=j(_||[0,0]);var E=this.getZoom()||0,M=this.getMinZoom(),$=this.getMaxZoom(),J=u.getNorthWest(),fe=u.getSouthEast(),he=this.getSize().subtract(_),Se=te(this.project(fe,E),this.project(J,E)).getSize(),Ae=Ve.any3d?this.options.zoomSnap:1,Ye=he.x/Se.x,nt=he.y/Se.y,zr=d?Math.max(Ye,nt):Math.min(Ye,nt);return E=this.getScaleZoom(zr,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 _=this._getTopLeftPoint(u,d);return new U(_,_.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 _=this.options.crs;return d=d===void 0?this._zoom:d,_.scale(u)/_.scale(d)},getScaleZoom:function(u,d){var _=this.options.crs;d=d===void 0?this._zoom:d;var E=_.zoom(u*_.scale(d));return isNaN(E)?1/0:E},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(ae(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(ae(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(Z(u))},distance:function(u,d){return this.options.crs.distance(ae(u),ae(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(ae(u)))},mouseEventToContainerPoint:function(u){return fT(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=aT(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&&Ve.any3d,Xe(u,"leaflet-container"+(Ve.touch?" leaflet-touch":"")+(Ve.retina?" leaflet-retina":"")+(Ve.ielt9?" leaflet-oldie":"")+(Ve.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=ou(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,_){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,_)._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,_,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?_&&_.pinch&&this.fire("zoom",_):((M||_&&_.pinch)&&this.fire("zoom",_),this.fire("move",_)),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),Ve.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 _=[],E,M=d==="mouseout"||d==="mouseover",$=u.target||u.srcElement,J=!1;$;){if(E=this._targets[l($)],E&&(d==="click"||d==="preclick")&&this._draggableMoved(E)){J=!0;break}if(E&&E.listens(d,!0)&&(M&&!$_($,u)||(_.push(E),M))||$===this._container)break;$=$.parentNode}return!_.length&&!J&&!M&&this.listens(d,!0)&&(_=[this]),_},_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 _=u.type;_==="mousedown"&&L_(d),this._fireDOMEvent(u,_)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,_){if(u.type==="click"){var E=i({},u);E.type="preclick",this._fireDOMEvent(E,E.type,_)}var M=this._findEventTargets(u,d);if(_){for(var $=[],J=0;J<_.length;J++)_[J].listens(d,!0)&&$.push(_[J]);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(J=0;J<M.length;J++)if(M[J].fire(d,he,!0),he.originalEvent._stopped||M[J].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 ea(this._mapPane)||new G(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var _=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return _.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var _=this.getSize()._divideBy(2);return this.project(u,d)._subtract(_)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,_){var E=this._getNewPixelOrigin(_,d);return this.project(u,d)._subtract(E)},_latLngBoundsToNewLayerBounds:function(u,d,_){var E=this._getNewPixelOrigin(_,d);return te([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,_){if(!_)return u;var E=this.project(u,d),M=this.getSize().divideBy(2),$=new U(E.subtract(M),E.add(M)),J=this._getBoundsOffset($,_,d);return Math.abs(J.x)<=1&&Math.abs(J.y)<=1?u:this.unproject(E.add(J),d)},_limitOffset:function(u,d){if(!d)return u;var _=this.getPixelBounds(),E=new U(_.min.add(u),_.max.add(u));return u.add(this._getBoundsOffset(E,d))},_getBoundsOffset:function(u,d,_){var E=te(this.project(d.getNorthEast(),_),this.project(d.getSouthWest(),_)),M=E.min.subtract(u.min),$=E.max.subtract(u.max),J=this._rebound(M.x,-$.x),fe=this._rebound(M.y,-$.y);return new G(J,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(),_=this.getMaxZoom(),E=Ve.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(d,Math.min(_,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var _=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(_)?!1:(this.panBy(_,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 _=T_,E=this._proxy.style[_];Js(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),E===this._proxy.style[_]&&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();Js(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,_){if(this._animatingZoom)return!0;if(_=_||{},!this._zoomAnimated||_.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 _.animate!==!0&&!this.getSize().contains(M)?!1:(W(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,_,E){this._mapPane&&(_&&(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 wF(u,d){return new ot(u,d)}var li=q.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),_=this.getPosition(),E=u._controlCorners[_];return Xe(d,"leaflet-control"),_.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()}}),uu=function(u){return new li(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-",_=this._controlContainer=ft("div",d+"control-container",this._container);function E(M,$){var J=d+M+" "+d+$;u[M+$]=ft("div",J,_)}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 pT=li.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,_,E){return _<E?-1:E<_?1:0}},initialize:function(u,d,_){y(this,_),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 li.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),_=this.options.collapsed;d.setAttribute("aria-haspopup",!0),cu(d),F_(d);var E=this._section=ft("section",u+"-list");_&&(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),_||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,_){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:_}),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;ph(this._baseLayersList),ph(this._overlaysList),this._layerControlInputs=[];var u,d,_,E,M=0;for(_=0;_<this._layers.length;_++)E=this._layers[_],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)),_=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;_&&this._map.fire(_,d)},_createRadioElement:function(u,d){var _='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",E=document.createElement("div");return E.innerHTML=_,E.firstChild},_addItem:function(u){var d=document.createElement("label"),_=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=_):E=this._createRadioElement("leaflet-base-layers_"+l(this),_),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 J=u.overlay?this._overlaysList:this._baseLayersList;return J.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,_,E=[],M=[];this._handlingClick=!0;for(var $=u.length-1;$>=0;$--)d=u[$],_=this._getLayer(d.layerId).layer,d.checked?E.push(_):d.checked||M.push(_);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,_,E=this._map.getZoom(),M=u.length-1;M>=0;M--)d=u[M],_=this._getLayer(d.layerId).layer,d.disabled=_.options.minZoom!==void 0&&E<_.options.minZoom||_.options.maxZoom!==void 0&&E>_.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)})}}),xF=function(u,d,_){return new pT(u,d,_)},B_=li.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",_=ft("div",d+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,d+"-in",_,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,d+"-out",_,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),_},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,_,E,M){var $=ft("a",_,E);return $.innerHTML=u,$.href="#",$.title=d,$.setAttribute("role","button"),$.setAttribute("aria-label",d),cu($),Ze($,"click",na),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 B_,this.addControl(this.zoomControl))});var SF=function(u){return new B_(u)},mT=li.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",_=ft("div",d),E=this.options;return this._addScales(E,d+"-line",_),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),_},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,_){u.metric&&(this._mScale=ft("div",d,_)),u.imperial&&(this._iScale=ft("div",d,_))},_update:function(){var u=this._map,d=u.getSize().y/2,_=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(_)},_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),_=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,_,d/u)},_updateImperial:function(u){var d=u*3.2808399,_,E,M;d>5280?(_=d/5280,E=this._getRoundNum(_),this._updateScale(this._iScale,E+" mi",E/_)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,_){u.style.width=Math.round(this.options.maxWidth*_)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),_=u/d;return _=_>=10?10:_>=5?5:_>=3?3:_>=2?2:1,d*_}}),CF=function(u){return new mT(u)},EF='<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>',U_=li.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ve.inlineSvg?EF+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),cu(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 _=[];this.options.prefix&&_.push(this.options.prefix),u.length&&_.push(u.join(", ")),this._container.innerHTML=_.join(' <span aria-hidden="true">|</span> ')}}});ot.mergeOptions({attributionControl:!0}),ot.addInitHook(function(){this.options.attributionControl&&new U_().addTo(this)});var TF=function(u){return new U_(u)};li.Layers=pT,li.Zoom=B_,li.Scale=mT,li.Attribution=U_,uu.layers=xF,uu.zoom=SF,uu.scale=CF,uu.attribution=TF;var Ri=q.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}});Ri.addTo=function(u,d){return u.addHandler(d,this),this};var OF={Events:ie},gT=Ve.touch?"touchstart mousedown":"mousedown",Ho=le.extend({options:{clickTolerance:3},initialize:function(u,d,_,E){y(this,E),this._element=u,this._dragStartTarget=d||u,this._preventOutline=_},enable:function(){this._enabled||(Ze(this._dragStartTarget,gT,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ho._dragging===this&&this.finishDrag(!0),St(this._dragStartTarget,gT,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!O_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Ho._dragging===this&&this.finishDrag();return}if(!(Ho._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Ho._dragging=this,this._preventOutline&&L_(this._element),M_(),su(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,_=lT(this._element);this._startPoint=new G(d.clientX,d.clientY),this._startPos=ea(this._element),this._parentScale=D_(_);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,_=new G(d.clientX,d.clientY)._subtract(this._startPoint);!_.x&&!_.y||Math.abs(_.x)+Math.abs(_.y)<this.options.clickTolerance||(_.x/=this._parentScale.x,_.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(_),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),R_(),au(),this._moved&&this._moving&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,Ho._dragging=!1}});function vT(u,d){if(!d||!u.length)return u.slice();var _=d*d;return u=MF(u,_),u=kF(u,_),u}function yT(u,d,_){return Math.sqrt(fu(u,d,_,!0))}function PF(u,d,_){return fu(u,d,_)}function kF(u,d){var _=u.length,E=typeof Uint8Array!=void 0+""?Uint8Array:Array,M=new E(_);M[0]=M[_-1]=1,z_(u,M,d,0,_-1);var $,J=[];for($=0;$<_;$++)M[$]&&J.push(u[$]);return J}function z_(u,d,_,E,M){var $=0,J,fe,he;for(fe=E+1;fe<=M-1;fe++)he=fu(u[fe],u[E],u[M],!0),he>$&&(J=fe,$=he);$>_&&(d[J]=1,z_(u,d,_,E,J),z_(u,d,_,J,M))}function MF(u,d){for(var _=[u[0]],E=1,M=0,$=u.length;E<$;E++)RF(u[E],u[M])>d&&(_.push(u[E]),M=E);return M<$-1&&_.push(u[$-1]),_}var _T;function bT(u,d,_,E,M){var $=E?_T:ra(u,_),J=ra(d,_),fe,he,Se;for(_T=J;;){if(!($|J))return[u,d];if($&J)return!1;fe=$||J,he=_h(u,d,fe,_,M),Se=ra(he,_),fe===$?(u=he,$=Se):(d=he,J=Se)}}function _h(u,d,_,E,M){var $=d.x-u.x,J=d.y-u.y,fe=E.min,he=E.max,Se,Ae;return _&8?(Se=u.x+$*(he.y-u.y)/J,Ae=he.y):_&4?(Se=u.x+$*(fe.y-u.y)/J,Ae=fe.y):_&2?(Se=he.x,Ae=u.y+J*(he.x-u.x)/$):_&1&&(Se=fe.x,Ae=u.y+J*(fe.x-u.x)/$),new G(Se,Ae,M)}function ra(u,d){var _=0;return u.x<d.min.x?_|=1:u.x>d.max.x&&(_|=2),u.y<d.min.y?_|=4:u.y>d.max.y&&(_|=8),_}function RF(u,d){var _=d.x-u.x,E=d.y-u.y;return _*_+E*E}function fu(u,d,_,E){var M=d.x,$=d.y,J=_.x-M,fe=_.y-$,he=J*J+fe*fe,Se;return he>0&&(Se=((u.x-M)*J+(u.y-$)*fe)/he,Se>1?(M=_.x,$=_.y):Se>0&&(M+=J*Se,$+=fe*Se)),J=u.x-M,fe=u.y-$,E?J*J+fe*fe:new G(M,$)}function Ur(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function wT(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ur(u)}function xT(u,d){var _,E,M,$,J,fe,he,Se;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ae=[];for(var Ye in u)Ae.push(d.project(ae(u[Ye])));var nt=Ae.length;for(_=0,E=0;_<nt-1;_++)E+=Ae[_].distanceTo(Ae[_+1])/2;if(E===0)Se=Ae[0];else for(_=0,$=0;_<nt-1;_++)if(J=Ae[_],fe=Ae[_+1],M=J.distanceTo(fe),$+=M,$>E){he=($-E)/M,Se=[fe.x-he*(fe.x-J.x),fe.y-he*(fe.y-J.y)];break}return d.unproject(j(Se))}var NF={__proto__:null,simplify:vT,pointToSegmentDistance:yT,closestPointOnSegment:PF,clipSegment:bT,_getEdgeIntersection:_h,_getBitCode:ra,_sqClosestPointOnSegment:fu,isFlat:Ur,_flat:wT,polylineCenter:xT};function ST(u,d,_){var E,M=[1,4,2,8],$,J,fe,he,Se,Ae,Ye,nt;for($=0,Ae=u.length;$<Ae;$++)u[$]._code=ra(u[$],d);for(fe=0;fe<4;fe++){for(Ye=M[fe],E=[],$=0,Ae=u.length,J=Ae-1;$<Ae;J=$++)he=u[$],Se=u[J],he._code&Ye?Se._code&Ye||(nt=_h(Se,he,Ye,d,_),nt._code=ra(nt,d),E.push(nt)):(Se._code&Ye&&(nt=_h(Se,he,Ye,d,_),nt._code=ra(nt,d),E.push(nt)),E.push(he));u=E}return u}function CT(u,d){var _,E,M,$,J,fe,he,Se,Ae;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ye=[];for(var nt in u)Ye.push(d.project(ae(u[nt])));var zr=Ye.length;for(fe=he=Se=0,_=0,E=zr-1;_<zr;E=_++)M=Ye[_],$=Ye[E],J=M.y*$.x-$.y*M.x,he+=(M.x+$.x)*J,Se+=(M.y+$.y)*J,fe+=J*3;return fe===0?Ae=Ye[0]:Ae=[he/fe,Se/fe],d.unproject(j(Ae))}var LF={__proto__:null,clipPolygon:ST,polygonCenter:CT},H_={project:function(u){return new G(u.lng,u.lat)},unproject:function(u){return new ne(u.y,u.x)},bounds:new U([-180,-90],[180,90])},V_={R:6378137,R_MINOR:6356752314245179e-9,bounds:new U([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var d=Math.PI/180,_=this.R,E=u.lat*d,M=this.R_MINOR/_,$=Math.sqrt(1-M*M),J=$*Math.sin(E),fe=Math.tan(Math.PI/4-E/2)/Math.pow((1-J)/(1+J),$/2);return E=-_*Math.log(Math.max(fe,1e-10)),new G(u.lng*d*_,E)},unproject:function(u){for(var d=180/Math.PI,_=this.R,E=this.R_MINOR/_,M=Math.sqrt(1-E*E),$=Math.exp(-u.y/_),J=Math.PI/2-2*Math.atan($),fe=0,he=.1,Se;fe<15&&Math.abs(he)>1e-7;fe++)Se=M*Math.sin(J),Se=Math.pow((1-Se)/(1+Se),M/2),he=Math.PI/2-2*Math.atan($*Se)-J,J+=he;return new ne(J*d,u.x*d/_)}},DF={__proto__:null,LonLat:H_,Mercator:V_,SphericalMercator:I},AF=i({},O,{code:"EPSG:3395",projection:V_,transformation:function(){var u=.5/(Math.PI*V_.R);return K(u,.5,-u,.5)}()}),ET=i({},O,{code:"EPSG:4326",projection:H_,transformation:K(1/180,1,-1/180,.5)}),jF=i({},pe,{projection:H_,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 _=d.lng-u.lng,E=d.lat-u.lat;return Math.sqrt(_*_+E*E)},infinite:!0});pe.Earth=O,pe.EPSG3395=AF,pe.EPSG3857=oe,pe.EPSG900913=ge,pe.EPSG4326=ET,pe.Simple=jF;var ci=le.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 _=this.getEvents();d.on(_,this),this.once("remove",function(){d.off(_,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 _ in this._layers)u.call(d,this._layers[_]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var d=0,_=u.length;d<_;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,_=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,_!==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 vl=ci.extend({initialize:function(u,d){y(this,d),this._layers={};var _,E;if(u)for(_=0,E=u.length;_<E;_++)this.addLayer(u[_])},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),_,E;for(_ in this._layers)E=this._layers[_],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 _ in this._layers)u.call(d,this._layers[_]);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)}}),IF=function(u,d){return new vl(u,d)},ro=vl.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),vl.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),vl.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 z;for(var d in this._layers){var _=this._layers[d];u.extend(_.getBounds?_.getBounds():_.getLatLng())}return u}}),FF=function(u,d){return new ro(u,d)},yl=q.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 _=this._getIconUrl(u);if(!_){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var E=this._createImg(_,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 _=this.options,E=_[d+"Size"];typeof E=="number"&&(E=[E,E]);var M=j(E),$=j(d==="shadow"&&_.shadowAnchor||_.iconAnchor||M&&M.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(_.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 Ve.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function $F(u){return new yl(u)}var du=yl.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 du.imagePath!="string"&&(du.imagePath=this._detectIconPath()),(this.options.imagePath||du.imagePath)+yl.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(_,E,M){var $=E.exec(_);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=ou(u,"background-image")||ou(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var _=document.querySelector('link[href$="leaflet.css"]');return _?_.href.substring(0,_.href.length-11-1):""}}),TT=Ri.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new Ho(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,_=d._map,E=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,$=ea(d._icon),J=_.getPixelBounds(),fe=_.getPixelOrigin(),he=te(J.min._subtract(fe).add(M),J.max._subtract(fe).subtract(M));if(!he.contains($)){var Se=j((Math.max(he.max.x,$.x)-he.max.x)/(J.max.x-he.max.x)-(Math.min(he.min.x,$.x)-he.min.x)/(J.min.x-he.min.x),(Math.max(he.max.y,$.y)-he.max.y)/(J.max.y-he.max.y)-(Math.min(he.min.y,$.y)-he.min.y)/(J.min.y-he.min.y)).multiplyBy(E);_.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,_=d._shadow,E=ea(d._icon),M=d._map.layerPointToLatLng(E);_&&an(_,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)}}),bh=ci.extend({options:{icon:new du,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=ae(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(u){var d=this._latlng;return this._latlng=ae(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"),_=u.icon.createIcon(this._icon),E=!1;_!==this._icon&&(this._icon&&this._removeIcon(),E=!0,u.title&&(_.title=u.title),_.tagName==="IMG"&&(_.alt=u.alt||"")),Xe(_,d),u.keyboard&&(_.tabIndex="0",_.setAttribute("role","button")),this._icon=_,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ze(_,"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),TT)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new TT(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,_=d.iconSize?j(d.iconSize):j(0,0),E=d.iconAnchor?j(d.iconAnchor):j(0,0);u.panInside(this._latlng,{paddingTopLeft:E,paddingBottomRight:_.subtract(E)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function BF(u,d){return new bh(u,d)}var Vo=ci.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)}}),wh=Vo.extend({options:{fill:!0,radius:10},initialize:function(u,d){y(this,d),this._latlng=ae(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=ae(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 Vo.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,_=this._clickTolerance(),E=[u+_,d+_];this._pxBounds=new U(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 UF(u,d){return new wh(u,d)}var W_=wh.extend({initialize:function(u,d,_){if(typeof d=="number"&&(d=i({},_,{radius:d})),y(this,d),this._latlng=ae(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new z(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:Vo.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,_=this._map,E=_.options.crs;if(E.distance===O.distance){var M=Math.PI/180,$=this._mRadius/O.R/M,J=_.project([d+$,u]),fe=_.project([d-$,u]),he=J.add(fe).divideBy(2),Se=_.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(_.getPixelOrigin()),this._radius=isNaN(Ae)?0:he.x-_.project([Se,u-Ae]).x,this._radiusY=he.y-J.y}else{var Ye=E.unproject(E.project(this._latlng).subtract([this._mRadius,0]));this._point=_.latLngToLayerPoint(this._latlng),this._radius=this._point.x-_.latLngToLayerPoint(Ye).x}this._updateBounds()}});function zF(u,d,_){return new W_(u,d,_)}var io=Vo.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,_=null,E=fu,M,$,J=0,fe=this._parts.length;J<fe;J++)for(var he=this._parts[J],Se=1,Ae=he.length;Se<Ae;Se++){M=he[Se-1],$=he[Se];var Ye=E(u,M,$,!0);Ye<d&&(d=Ye,_=E(u,M,$))}return _&&(_.distance=Math.sqrt(d)),_},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return xT(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=ae(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new z,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return Ur(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],_=Ur(u),E=0,M=u.length;E<M;E++)_?(d[E]=ae(u[E]),this._bounds.extend(d[E])):d[E]=this._convertLatLngs(u[E]);return d},_project:function(){var u=new U;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 U([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,_){var E=u[0]instanceof ne,M=u.length,$,J;if(E){for(J=[],$=0;$<M;$++)J[$]=this._map.latLngToLayerPoint(u[$]),_.extend(J[$]);d.push(J)}else for($=0;$<M;$++)this._projectLatlngs(u[$],d,_)},_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,_,E,M,$,J,fe,he;for(_=0,M=0,$=this._rings.length;_<$;_++)for(he=this._rings[_],E=0,J=he.length;E<J-1;E++)fe=bT(he[E],he[E+1],u,E,!0),fe&&(d[M]=d[M]||[],d[M].push(fe[0]),(fe[1]!==he[E+1]||E===J-2)&&(d[M].push(fe[1]),M++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,_=0,E=u.length;_<E;_++)u[_]=vT(u[_],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var _,E,M,$,J,fe,he=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(_=0,$=this._parts.length;_<$;_++)for(fe=this._parts[_],E=0,J=fe.length,M=J-1;E<J;M=E++)if(!(!d&&E===0)&&yT(u,fe[M],fe[E])<=he)return!0;return!1}});function HF(u,d){return new io(u,d)}io._flat=wT;var _l=io.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 CT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=io.prototype._convertLatLngs.call(this,u),_=d.length;return _>=2&&d[0]instanceof ne&&d[0].equals(d[_-1])&&d.pop(),d},_setLatLngs:function(u){io.prototype._setLatLngs.call(this,u),Ur(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ur(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,_=new G(d,d);if(u=new U(u.min.subtract(_),u.max.add(_)),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++)$=ST(this._rings[E],u,!0),$.length&&this._parts.push($)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,_,E,M,$,J,fe,he,Se;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for($=0,he=this._parts.length;$<he;$++)for(_=this._parts[$],J=0,Se=_.length,fe=Se-1;J<Se;fe=J++)E=_[J],M=_[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||io.prototype._containsPoint.call(this,u,!0)}});function VF(u,d){return new _l(u,d)}var oo=ro.extend({initialize:function(u,d){y(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=S(u)?u:u.features,_,E,M;if(d){for(_=0,E=d.length;_<E;_++)M=d[_],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var $=this.options;if($.filter&&!$.filter(u))return this;var J=xh(u,$);return J?(J.feature=Eh(u),J.defaultOptions=J.options,this.resetStyle(J),$.onEachFeature&&$.onEachFeature(u,J),this.addLayer(J)):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 xh(u,d){var _=u.type==="Feature"?u.geometry:u,E=_?_.coordinates:null,M=[],$=d&&d.pointToLayer,J=d&&d.coordsToLatLng||Y_,fe,he,Se,Ae;if(!E&&!_)return null;switch(_.type){case"Point":return fe=J(E),OT($,u,fe,d);case"MultiPoint":for(Se=0,Ae=E.length;Se<Ae;Se++)fe=J(E[Se]),M.push(OT($,u,fe,d));return new ro(M);case"LineString":case"MultiLineString":return he=Sh(E,_.type==="LineString"?0:1,J),new io(he,d);case"Polygon":case"MultiPolygon":return he=Sh(E,_.type==="Polygon"?1:2,J),new _l(he,d);case"GeometryCollection":for(Se=0,Ae=_.geometries.length;Se<Ae;Se++){var Ye=xh({geometry:_.geometries[Se],type:"Feature",properties:u.properties},d);Ye&&M.push(Ye)}return new ro(M);case"FeatureCollection":for(Se=0,Ae=_.features.length;Se<Ae;Se++){var nt=xh(_.features[Se],d);nt&&M.push(nt)}return new ro(M);default:throw new Error("Invalid GeoJSON object.")}}function OT(u,d,_,E){return u?u(d,_):new bh(_,E&&E.markersInheritOptions&&E)}function Y_(u){return new ne(u[1],u[0],u[2])}function Sh(u,d,_){for(var E=[],M=0,$=u.length,J;M<$;M++)J=d?Sh(u[M],d-1,_):(_||Y_)(u[M]),E.push(J);return E}function q_(u,d){return u=ae(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 Ch(u,d,_,E){for(var M=[],$=0,J=u.length;$<J;$++)M.push(d?Ch(u[$],Ur(u[$])?0:d-1,_,E):q_(u[$],E));return!d&&_&&M.push(M[0].slice()),M}function bl(u,d){return u.feature?i({},u.feature,{geometry:d}):Eh(d)}function Eh(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var G_={toGeoJSON:function(u){return bl(this,{type:"Point",coordinates:q_(this.getLatLng(),u)})}};bh.include(G_),W_.include(G_),wh.include(G_),io.include({toGeoJSON:function(u){var d=!Ur(this._latlngs),_=Ch(this._latlngs,d?1:0,!1,u);return bl(this,{type:(d?"Multi":"")+"LineString",coordinates:_})}}),_l.include({toGeoJSON:function(u){var d=!Ur(this._latlngs),_=d&&!Ur(this._latlngs[0]),E=Ch(this._latlngs,_?2:d?1:0,!0,u);return d||(E=[E]),bl(this,{type:(_?"Multi":"")+"Polygon",coordinates:E})}}),vl.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(_){d.push(_.toGeoJSON(u).geometry.coordinates)}),bl(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 _=d==="GeometryCollection",E=[];return this.eachLayer(function(M){if(M.toGeoJSON){var $=M.toGeoJSON(u);if(_)E.push($.geometry);else{var J=Eh($);J.type==="FeatureCollection"?E.push.apply(E,J.features):E.push(J)}}}),_?bl(this,{geometries:E,type:"GeometryCollection"}):{type:"FeatureCollection",features:E}}});function PT(u,d){return new oo(u,d)}var WF=PT,Th=ci.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,_){this._url=u,this._bounds=Z(d),y(this,_)},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&&ml(this._image),this},bringToBack:function(){return this._map&&gl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=Z(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),_=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;Js(this._image,_,d)},_reset:function(){var u=this._image,d=new U(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),_=d.getSize();an(u,d.min),u.style.width=_.x+"px",u.style.height=_.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()}}),YF=function(u,d,_){return new Th(u,d,_)},kT=Th.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 _=d.getElementsByTagName("source"),E=[],M=0;M<_.length;M++)E.push(_[M].src);this._url=_.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 J=ft("source");J.src=this._url[$],d.appendChild(J)}}});function qF(u,d,_){return new kT(u,d,_)}var MT=Th.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 GF(u,d,_){return new MT(u,d,_)}var Ni=ci.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof ne||S(u))?(this._latlng=ae(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=ae(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ml(this._container),this},bringToBack:function(){return this._map&&gl(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof ro){d=null;var _=this._source._layers;for(var E in _)if(_[E]._map){d=_[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),_=this._getAnchor();this._zoomAnimated?an(this._container,u.add(_)):d=d.add(u).add(_);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,_,E){var M=d;return M instanceof u||(M=new u(E).setContent(d)),_&&M.setLatLng(_),M}}),ci.include({_initOverlay:function(u,d,_,E){var M=_;return M instanceof u?(y(M,E),M._source=this):(M=d&&!E?d:new u(E,this),M.setContent(_)),M}});var Oh=Ni.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,Ni.prototype.openOn.call(this,u)},onAdd:function(u){Ni.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Vo||this._source.on("preclick",ta))},onRemove:function(u){Ni.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Vo||this._source.off("preclick",ta))},getEvents:function(){var u=Ni.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"),_=this._wrapper=ft("div",u+"-content-wrapper",d);if(this._contentNode=ft("div",u+"-content",_),cu(d),F_(this._contentNode),Ze(d,"contextmenu",ta),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">×</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 _=u.offsetWidth;_=Math.min(_,this.options.maxWidth),_=Math.max(_,this.options.minWidth),d.width=_+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),_=this._getAnchor();an(this._container,d.add(_))},_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(ou(this._container,"marginBottom"),10)||0,_=this._container.offsetHeight+d,E=this._containerWidth,M=new G(this._containerLeft,-_-this._containerBottom);M._add(ea(this._container));var $=u.layerPointToContainerPoint(M),J=j(this.options.autoPanPadding),fe=j(this.options.autoPanPaddingTopLeft||J),he=j(this.options.autoPanPaddingBottomRight||J),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+_+he.y>Se.y&&(Ye=$.y+_-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])}}),ZF=function(u,d){return new Oh(u,d)};ot.mergeOptions({closePopupOnClick:!0}),ot.include({openPopup:function(u,d,_){return this._initOverlay(Oh,u,d,_).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),ci.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Oh,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 ro||(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)){na(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof Vo)){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 Ph=Ni.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ni.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){Ni.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=Ni.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,_,E=this._map,M=this._container,$=E.latLngToContainerPoint(E.getCenter()),J=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,_=Se):fe==="bottom"?(d=he/2,_=0):fe==="center"?(d=he/2,_=Se/2):fe==="right"?(d=0,_=Se/2):fe==="left"?(d=he,_=Se/2):J.x<$.x?(fe="right",d=0,_=Se/2):(fe="left",d=he+(Ae.x+Ye.x)*2,_=Se/2),u=u.subtract(j(d,_,!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])}}),KF=function(u,d){return new Ph(u,d)};ot.include({openTooltip:function(u,d,_){return this._initOverlay(Ph,u,d,_).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),ci.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ph,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",_={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?_.add=this._openTooltip:(_.mouseover=this._openTooltip,_.mouseout=this.closeTooltip,_.click=this._openTooltip,this._map?this._addFocusListeners():_.add=this._addFocusListeners),this._tooltip.options.sticky&&(_.mousemove=this._moveTooltip),this[d](_),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof ro||(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,_,E;this._tooltip.options.sticky&&u.originalEvent&&(_=this._map.mouseEventToContainerPoint(u.originalEvent),E=this._map.containerPointToLayerPoint(_),d=this._map.layerPointToLatLng(E)),this._tooltip.setLatLng(d)}});var RT=yl.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"),_=this.options;if(_.html instanceof Element?(ph(d),d.appendChild(_.html)):d.innerHTML=_.html!==!1?_.html:"",_.bgPos){var E=j(_.bgPos);d.style.backgroundPosition=-E.x+"px "+-E.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function XF(u){return new RT(u)}yl.Default=du;var hu=ci.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ve.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&&(ml(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gl(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,_=-u(-1/0,1/0),E=0,M=d.length,$;E<M;E++)$=d[E].style.zIndex,d[E]!==this._container&&$&&(_=u(_,+$));isFinite(_)&&(this.options.zIndex=_+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ve.ielt9){Br(this._container,this.options.opacity);var u=+new Date,d=!1,_=!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?_=!0:this._onOpaqueTile(M),M.active=!0)}}_&&!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 _ in this._levels)_=Number(_),this._levels[_].el.children.length||_===u?(this._levels[_].el.style.zIndex=d-Math.abs(u-_),this._onUpdateLevel(_)):($t(this._levels[_].el),this._removeTilesAtZoom(_),this._onRemoveLevel(_),delete this._levels[_]);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,_=this._map.getZoom();if(_>this.options.maxZoom||_<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,_,E){var M=Math.floor(u/2),$=Math.floor(d/2),J=_-1,fe=new G(+M,+$);fe.z=+J;var he=this._tileCoordsToKey(fe),Se=this._tiles[he];return Se&&Se.active?(Se.retain=!0,!0):(Se&&Se.loaded&&(Se.retain=!0),J>E?this._retainParent(M,$,J,E):!1)},_retainChildren:function(u,d,_,E){for(var M=2*u;M<2*u+2;M++)for(var $=2*d;$<2*d+2;$++){var J=new G(M,$);J.z=_+1;var fe=this._tileCoordsToKey(J),he=this._tiles[fe];if(he&&he.active){he.retain=!0;continue}else he&&he.loaded&&(he.retain=!0);_+1<E&&this._retainChildren(M,$,_+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,_,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),_||this._pruneTiles(),this._noPrune=!!_),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var _ in this._levels)this._setZoomTransform(this._levels[_],u,d)},_setZoomTransform:function(u,d,_){var E=this._map.getZoomScale(_,u.zoom),M=u.origin.multiplyBy(E).subtract(this._map._getNewPixelOrigin(d,_)).round();Ve.any3d?Js(u.el,M,E):an(u.el,M)},_resetGrid:function(){var u=this._map,d=u.options.crs,_=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/_.x),Math.ceil(u.project([0,d.wrapLng[1]],E).x/_.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],E).y/_.x),Math.ceil(u.project([d.wrapLat[1],0],E).y/_.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,_=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),E=d.getZoomScale(_,this._tileZoom),M=d.project(u,this._tileZoom).floor(),$=d.getSize().divideBy(E*2);return new U(M.subtract($),M.add($))},_update:function(u){var d=this._map;if(d){var _=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(),J=[],fe=this.options.keepBuffer,he=new U(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(_-this._tileZoom)>1){this._setView(u,_);return}for(var Ye=M.min.y;Ye<=M.max.y;Ye++)for(var nt=M.min.x;nt<=M.max.x;nt++){var zr=new G(nt,Ye);if(zr.z=this._tileZoom,!!this._isValidTile(zr)){var ia=this._tiles[this._tileCoordsToKey(zr)];ia?ia.current=!0:J.push(zr)}}if(J.sort(function(Wo,Z_){return Wo.distanceTo($)-Z_.distanceTo($)}),J.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mh=document.createDocumentFragment();for(nt=0;nt<J.length;nt++)this._addTile(J[nt],Mh);this._level.el.appendChild(Mh)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var _=this._globalTileRange;if(!d.wrapLng&&(u.x<_.min.x||u.x>_.max.x)||!d.wrapLat&&(u.y<_.min.y||u.y>_.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return Z(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,_=this.getTileSize(),E=u.scaleBy(_),M=E.add(_),$=d.unproject(E,u.z),J=d.unproject(M,u.z);return[$,J]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),_=new z(d[0],d[1]);return this.options.noWrap||(_=this._map.wrapLatLngBounds(_)),_},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),_=new G(+d[0],+d[1]);return _.z=+d[2],_},_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,Ve.ielt9&&this.options.opacity<1&&Br(u,this.options.opacity)},_addTile:function(u,d){var _=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,_),this._tiles[E]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,_){d&&this.fire("tileerror",{error:d,tile:_,coords:u});var E=this._tileCoordsToKey(u);_=this._tiles[E],_&&(_.loaded=+new Date,this._map._fadeAnimated?(Br(_.el,0),Y(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(_.active=!0,this._pruneTiles()),d||(Xe(_.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:_.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ve.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 U(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 QF(u){return new hu(u)}var wl=hu.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&&Ve.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 _=document.createElement("img");return Ze(_,"load",s(this._tileOnLoad,this,d,_)),Ze(_,"error",s(this._tileOnError,this,d,_)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(_.referrerPolicy=this.options.referrerPolicy),_.alt="",_.src=this.getTileUrl(u),_},getTileUrl:function(u){var d={r:Ve.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var _=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=_),d["-y"]=_}return w(this._url,i(d,this.options))},_tileOnLoad:function(u,d){Ve.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,_){var E=this.options.errorTileUrl;E&&d.getAttribute("src")!==E&&(d.src=E),u(_,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,_=this.options.zoomReverse,E=this.options.zoomOffset;return _&&(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 _=this._tiles[u].coords;$t(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:_})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),hu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,_){if(!(!this._map||_&&_.getAttribute("src")===P))return hu.prototype._tileReady.call(this,u,d,_)}});function NT(u,d){return new wl(u,d)}var LT=wl.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 _=i({},this.defaultWmsParams);for(var E in d)E in this.options||(_[E]=d[E]);d=y(this,d);var M=d.detectRetina&&Ve.retina?2:1,$=this.getTileSize();_.width=$.x*M,_.height=$.y*M,this.wmsParams=_},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,wl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),_=this._crs,E=te(_.project(d[0]),_.project(d[1])),M=E.min,$=E.max,J=(this._wmsVersion>=1.3&&this._crs===ET?[M.y,M.x,$.y,$.x]:[M.x,M.y,$.x,$.y]).join(","),fe=wl.prototype.getTileUrl.call(this,u);return fe+x(this.wmsParams,fe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+J},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function JF(u,d){return new LT(u,d)}wl.WMS=LT,NT.wms=JF;var so=ci.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 _=this._map.getZoomScale(d,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),$=E.multiplyBy(-_).add(M).subtract(this._map._getNewPixelOrigin(u,d));Ve.any3d?Js(this._container,$,_):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(),_=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new U(_,_.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),DT=so.extend({options:{tolerance:0},getEvents:function(){var u=so.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){so.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)){so.prototype._update.call(this);var u=this._bounds,d=this._container,_=u.getSize(),E=Ve.retina?2:1;an(d,u.min),d.width=E*_.x,d.height=E*_.y,d.style.width=_.x+"px",d.style.height=_.y+"px",Ve.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){so.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,_=d.next,E=d.prev;_?_.prev=E:this._drawLast=E,E?E.next=_:this._drawFirst=_,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(/[, ]+/),_=[],E,M;for(M=0;M<d.length;M++){if(E=Number(d[M]),isNaN(E))return;_.push(E)}u.options._dashArray=_}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 U,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 _=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,_.x,_.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 _,E,M,$,J=u._parts,fe=J.length,he=this._ctx;if(fe){for(he.beginPath(),_=0;_<fe;_++){for(E=0,M=J[_].length;E<M;E++)$=J[_][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,_=this._ctx,E=Math.max(Math.round(u._radius),1),M=(Math.max(Math.round(u._radiusY),1)||E)/E;M!==1&&(_.save(),_.scale(1,M)),_.beginPath(),_.arc(d.x,d.y/M,E,0,Math.PI*2,!1),M!==1&&_.restore(),this._fillStroke(_,u)}},_fillStroke:function(u,d){var _=d.options;_.fill&&(u.globalAlpha=_.fillOpacity,u.fillStyle=_.fillColor||_.color,u.fill(_.fillRule||"evenodd")),_.stroke&&_.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=_.opacity,u.lineWidth=_.weight,u.strokeStyle=_.color,u.lineCap=_.lineCap,u.lineJoin=_.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),_,E,M=this._drawFirst;M;M=M.next)_=M.layer,_.options.interactive&&_._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(_))&&(E=_);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 _,E,M=this._drawFirst;M;M=M.next)_=M.layer,_.options.interactive&&_._containsPoint(d)&&(E=_);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,_){this._map._fireDOMEvent(d,_||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var _=d.next,E=d.prev;if(_)_.prev=E;else return;E?E.next=_:_&&(this._drawFirst=_),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 _=d.next,E=d.prev;if(E)E.next=_;else return;_?_.prev=E:E&&(this._drawLast=E),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function AT(u){return Ve.canvas?new DT(u):null}var pu=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">')}}(),e$={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(so.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=pu("shape");Xe(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=pu("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,_=u._fill,E=u.options,M=u._container;M.stroked=!!E.stroke,M.filled=!!E.fill,E.stroke?(d||(d=u._stroke=pu("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?(_||(_=u._fill=pu("fill")),M.appendChild(_),_.color=E.fillColor||E.color,_.opacity=E.fillOpacity):_&&(M.removeChild(_),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),_=Math.round(u._radius),E=Math.round(u._radiusY||_);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+_+","+E+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){ml(u._container)},_bringToBack:function(u){gl(u._container)}},kh=Ve.vml?pu:Le,mu=so.extend({_initContainer:function(){this._container=kh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=kh("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)){so.prototype._update.call(this);var u=this._bounds,d=u.getSize(),_=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,_.setAttribute("width",d.x),_.setAttribute("height",d.y)),an(_,u.min),_.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=kh("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,_=u.options;d&&(_.stroke?(d.setAttribute("stroke",_.color),d.setAttribute("stroke-opacity",_.opacity),d.setAttribute("stroke-width",_.weight),d.setAttribute("stroke-linecap",_.lineCap),d.setAttribute("stroke-linejoin",_.lineJoin),_.dashArray?d.setAttribute("stroke-dasharray",_.dashArray):d.removeAttribute("stroke-dasharray"),_.dashOffset?d.setAttribute("stroke-dashoffset",_.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),_.fill?(d.setAttribute("fill",_.fillColor||_.color),d.setAttribute("fill-opacity",_.fillOpacity),d.setAttribute("fill-rule",_.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,ue(u._parts,d))},_updateCircle:function(u){var d=u._point,_=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||_,M="a"+_+","+E+" 0 1,0 ",$=u._empty()?"M0 0":"M"+(d.x-_)+","+d.y+M+_*2+",0 "+M+-_*2+",0 ";this._setPath(u,$)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){ml(u._path)},_bringToBack:function(u){gl(u._path)}});Ve.vml&&mu.include(e$);function jT(u){return Ve.svg||Ve.vml?new mu(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&&AT(u)||jT(u)}});var IT=_l.extend({initialize:function(u,d){_l.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=Z(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function t$(u,d){return new IT(u,d)}mu.create=kh,mu.pointsToPath=ue,oo.geometryToLayer=xh,oo.coordsToLatLng=Y_,oo.coordsToLatLngs=Sh,oo.latLngToCoords=q_,oo.latLngsToCoords=Ch,oo.getFeature=bl,oo.asFeature=Eh,ot.mergeOptions({boxZoom:!0});var FT=Ri.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(),su(),M_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ze(document,{contextmenu:na,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 U(this._point,this._startPoint),_=d.getSize();an(this._box,d.min),this._box.style.width=_.x+"px",this._box.style.height=_.y+"px"},_finish:function(){this._moved&&($t(this._box),Qt(this._container,"leaflet-crosshair")),au(),R_(),St(document,{contextmenu:na,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 z(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",FT),ot.mergeOptions({doubleClickZoom:!0});var $T=Ri.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,_=d.getZoom(),E=d.options.zoomDelta,M=u.originalEvent.shiftKey?_-E:_+E;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});ot.addInitHook("addHandler","doubleClickZoom",$T),ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var BT=Ri.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Ho(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=Z(this._map.options.maxBounds);this._offsetLimit=te(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,_=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(_),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),_=this._initialWorldOffset,E=this._draggable._newPos.x,M=(E-d+_)%u+d-_,$=(E+d+_)%u-d-_,J=Math.abs(M+_)<Math.abs($+_)?M:$;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=J},_onDragEnd:function(u){var d=this._map,_=d.options,E=!_.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,J=_.easeLinearity,fe=M.multiplyBy(J/$),he=fe.distanceTo([0,0]),Se=Math.min(_.inertiaMaxSpeed,he),Ae=fe.multiplyBy(Se/he),Ye=Se/(_.inertiaDeceleration*J),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:J,noMoveStart:!0,animate:!0})}))}}});ot.addInitHook("addHandler","dragging",BT),ot.mergeOptions({keyboard:!0,keyboardPanDelta:80});var UT=Ri.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,_=u.scrollTop||d.scrollTop,E=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(E,_)}},_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={},_=this.keyCodes,E,M;for(E=0,M=_.left.length;E<M;E++)d[_.left[E]]=[-1*u,0];for(E=0,M=_.right.length;E<M;E++)d[_.right[E]]=[u,0];for(E=0,M=_.down.length;E<M;E++)d[_.down[E]]=[0,u];for(E=0,M=_.up.length;E<M;E++)d[_.up[E]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},_=this.keyCodes,E,M;for(E=0,M=_.zoomIn.length;E<M;E++)d[_.zoomIn[E]]=u;for(E=0,M=_.zoomOut.length;E<M;E++)d[_.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,_=this._map,E;if(d in this._panKeys){if(!_._panAnim||!_._panAnim._inProgress)if(E=this._panKeys[d],u.shiftKey&&(E=j(E).multiplyBy(3)),_.options.maxBounds&&(E=_._limitOffset(j(E),_.options.maxBounds)),_.options.worldCopyJump){var M=_.wrapLatLng(_.unproject(_.project(_.getCenter()).add(E)));_.panTo(M)}else _.panBy(E)}else if(d in this._zoomKeys)_.setZoom(_.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&_._popup&&_._popup.options.closeOnEscapeKey)_.closePopup();else return;na(u)}}});ot.addInitHook("addHandler","keyboard",UT),ot.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var zT=Ri.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=dT(u),_=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var E=Math.max(_-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),E),na(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),_=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,$=_?Math.ceil(M/_)*_:M,J=u._limitZoom(d+(this._delta>0?$:-$))-d;this._delta=0,this._startTime=null,J&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+J):u.setZoomAround(this._lastMousePos,d+J))}});ot.addInitHook("addHandler","scrollWheelZoom",zT);var n$=600;ot.mergeOptions({tapHold:Ve.touchNative&&Ve.safari&&Ve.mobile,tapTolerance:15});var HT=Ri.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),n$),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 _=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});_._simulated=!0,d.target.dispatchEvent(_)}});ot.addInitHook("addHandler","tapHold",HT),ot.mergeOptions({touchZoom:Ve.touch,bounceAtZoomLimits:!0});var VT=Ri.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 _=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(_.add(E)._divideBy(2))),this._startDist=_.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,_=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]),M=_.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 $=_._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 J=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(J,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",VT),ot.BoxZoom=FT,ot.DoubleClickZoom=$T,ot.Drag=BT,ot.Keyboard=UT,ot.ScrollWheelZoom=zT,ot.TapHold=HT,ot.TouchZoom=VT,n.Bounds=U,n.Browser=Ve,n.CRS=pe,n.Canvas=DT,n.Circle=W_,n.CircleMarker=wh,n.Class=q,n.Control=li,n.DivIcon=RT,n.DivOverlay=Ni,n.DomEvent=bF,n.DomUtil=yF,n.Draggable=Ho,n.Evented=le,n.FeatureGroup=ro,n.GeoJSON=oo,n.GridLayer=hu,n.Handler=Ri,n.Icon=yl,n.ImageOverlay=Th,n.LatLng=ne,n.LatLngBounds=z,n.Layer=ci,n.LayerGroup=vl,n.LineUtil=NF,n.Map=ot,n.Marker=bh,n.Mixin=OF,n.Path=Vo,n.Point=G,n.PolyUtil=LF,n.Polygon=_l,n.Polyline=io,n.Popup=Oh,n.PosAnimation=hT,n.Projection=DF,n.Rectangle=IT,n.Renderer=so,n.SVG=mu,n.SVGOverlay=MT,n.TileLayer=wl,n.Tooltip=Ph,n.Transformation=Q,n.Util=ee,n.VideoOverlay=kT,n.bind=s,n.bounds=te,n.canvas=AT,n.circle=zF,n.circleMarker=UF,n.control=uu,n.divIcon=XF,n.extend=i,n.featureGroup=FF,n.geoJSON=PT,n.geoJson=WF,n.gridLayer=QF,n.icon=$F,n.imageOverlay=YF,n.latLng=ae,n.latLngBounds=Z,n.layerGroup=IF,n.map=wF,n.marker=BF,n.point=j,n.polygon=VF,n.polyline=HF,n.popup=ZF,n.rectangle=t$,n.setOptions=y,n.stamp=l,n.svg=jT,n.svgOverlay=GF,n.tileLayer=NT,n.tooltip=KF,n.transformation=K,n.version=r,n.videoOverlay=qF;var r$=window.L;n.noConflict=function(){return window.L=r$,this},window.L=n})})(f2,f2.exports);var ah=f2.exports;const rL=ri(ah);function qE(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function GE(e,t){return t==null?function(r,i){const o=B.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=B.useRef();o.current||(o.current=e(r,i));const s=B.useRef(r),{instance:a}=o.current;return B.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function a_e(e,t){B.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 D8(e){return function(n){const r=N8(),i=e(YE(n,r),r);return k8(r.map,n.attribution),L8(i.current,n.eventHandlers),a_e(i.current,r),i}}function l_e(e,t){const n=GE(e,t),r=D8(n);return r_e(r)}function c_e(e,t){const n=GE(e),r=s_e(n,t);return i_e(r)}function u_e(e,t){const n=GE(e,t),r=D8(n);return o_e(r)}function f_e(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 d2(){return d2=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},d2.apply(this,arguments)}function d_e({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:a,whenReady:l,zoom:c,...f},h){const[p]=B.useState({className:i,id:o,style:a}),[g,v]=B.useState(null);B.useImperativeHandle(h,()=>(g==null?void 0:g.map)??null,[g]);const y=B.useCallback(b=>{if(b!==null&&g===null){const w=new ah.Map(b,f);n!=null&&c!=null?w.setView(n,c):e!=null&&w.fitBounds(e,t),l!=null&&w.whenReady(l),v(t_e(w))}},[]);B.useEffect(()=>()=>{g==null||g.map.remove()},[g]);const x=g?H.createElement(R8,{value:g},r):s??null;return H.createElement("div",d2({},p,{ref:y}),x)}const h_e=B.forwardRef(d_e),p_e=l_e(function({position:t,...n},r){const i=new ah.Marker(t,n);return qE(i,n_e(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())}),m_e=c_e(function(t,n){const r=new ah.Popup(t,n.overlayContainer);return qE(r,n)},function(t,n,{position:r},i){B.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])}),g_e=u_e(function({url:t,...n},r){const i=new ah.TileLayer(t,YE(n,r));return qE(i,r)},function(t,n,r){f_e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const v_e=()=>m.jsx(g_e,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),y_e=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}},A8=({toggle:e,isOpen:t,title:n,locations:r=[]})=>m.jsx($o,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:m.jsxs(Oi,{className:"map-modal__modal-body",children:[m.jsxs("h3",{className:"map-modal__modal-title",children:[n,m.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),m.jsxs(h_e,{...y_e(r),children:[m.jsx(v_e,{}),r.map(({cityName:i,latLong:o,count:s},a)=>m.jsx(p_e,{position:o,children:m.jsxs(m_e,{children:[m.jsx("b",{children:s})," visit",s>1?"s":""," from ",m.jsx("b",{children:i})]})},a))]})]})});const __e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=hn(),[s,a,l]=hn(),[c,f]=B.useState([]),h=a_(),p=y=>t?y.filter(({cityName:x})=>t==null?void 0:t.includes(x)):y,g=()=>{if(!t){f(n),i();return}l()},v=y=>()=>{f(y?p(n):n),i()};return m.jsxs(m.Fragment,{children:[m.jsx(ht,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:g,children:m.jsx(Fe,{icon:kj})}),m.jsx(Er,{placement:"left",target:h,children:"Show in map"}),m.jsx(Gc,{isOpen:s,toggle:a,inNavbar:!0,children:m.jsxs(Zc,{end:!0,children:[m.jsx(ze,{onClick:v(!1),children:"Show all locations"}),m.jsx(ze,{onClick:v(!0),children:"Show locations in current page"})]})}),m.jsx(A8,{toggle:o,isOpen:r,title:e,locations:c})]})},b_e=({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 m.jsxs(Bo,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[m.jsx(ze,{header:!0,children:"Bots:"}),m.jsx(ze,{active:o,onClick:a,children:"Exclude potential bots"}),r&&m.jsxs(m.Fragment,{children:[m.jsx(ze,{divider:!0}),m.jsx(ze,{header:!0,children:"Orphan visits type:"}),m.jsx(ze,{...s("base_url"),children:"Base URL"}),m.jsx(ze,{...s("invalid_short_url"),children:"Invalid short URL"}),m.jsx(ze,{...s("regular_404"),children:"Regular 404"})]}),m.jsx(ze,{divider:!0}),m.jsx(ze,{disabled:!Hi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:m.jsx("i",{children:"Clear filters"})})]})},j8=(e,t)=>!Ao(e)&&Hi(e[t]),iL=e=>typeof e=="number"?e:e?parseFloat(e):0,w_e=(e,{os:t})=>{e[t]=(e[t]||0)+1},x_e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},S_e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},I8=e=>(t,n)=>{const i=j8(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},C_e=I8("country"),E_e=I8("city"),T_e=(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:[iL(r),iL(i)]};o.count+=1,e[n]=o},O_e=(e,t)=>{if(!hye(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},F8=e=>e.reduce((t,n)=>(w_e(t.os,n),x_e(t.browsers,n),S_e(t.referrers,n),C_e(t.countries,n),E_e(t.cities,n),T_e(t.citiesForMap,n),O_e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),$8=Id(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...Dye(t),referer:Aye(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 zE(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),P_e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:$8,processStatsFromVisits:F8},Symbol.toStringTag,{value:"Module"}));const Qu=20,k_e=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),M_e=(e,t)=>t.filter(n=>k_e(n,e)),R_e=(e,t)=>a6(t,e),N_e=(e,t,n)=>{const r=t?M_e(t,e):[...e],i=R_e(n,r),o=i.length;return{visitsGroups:od(Qu,i),total:o}},L_e=({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]=B.useState(s()),[c,f]=B.useState(void 0),[h,p]=B.useState({}),g=B.useMemo(()=>N_e(e,c,h),[c,h]),v=B.useRef(!0),[y,x]=B.useState(1),b=y*Qu,w=b-Qu,S=8+Number(i),T=D=>()=>p({field:D,dir:c_(D,h.field,h.dir)}),P=D=>m.jsx(kf,{currentOrder:h,field:D,className:"visits-table__header-icon"});return B.useEffect(()=>{const D=()=>l(s());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),B.useEffect(()=>{x(1),!v.current&&n([]),v.current=!1},[c]),m.jsx("div",{className:"table-responsive-md",children:m.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[m.jsxs("thead",{className:"visits-table__header",children:[m.jsxs("tr",{children:[m.jsx("th",{className:`${o} text-center`,onClick:()=>n(t.length<g.total?g.visitsGroups.flat():[]),children:m.jsx(Fe,{icon:sd,className:me({"text-primary":t.length>0})})}),m.jsxs("th",{className:`${o} text-center`,onClick:T("potentialBot"),children:[m.jsx(Fe,{icon:Qk}),P("potentialBot")]}),m.jsxs("th",{className:o,onClick:T("date"),children:["Date",P("date")]}),m.jsxs("th",{className:o,onClick:T("country"),children:["Country",P("country")]}),m.jsxs("th",{className:o,onClick:T("city"),children:["City",P("city")]}),m.jsxs("th",{className:o,onClick:T("browser"),children:["Browser",P("browser")]}),m.jsxs("th",{className:o,onClick:T("os"),children:["OS",P("os")]}),m.jsxs("th",{className:o,onClick:T("referer"),children:["Referrer",P("referer")]}),i&&m.jsxs("th",{className:o,onClick:T("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"p-0",children:m.jsx(Zd,{noBorder:!0,large:!1,onChange:f})})})]}),m.jsxs("tbody",{children:[!((k=g.visitsGroups[y-1])!=null&&k.length)&&m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"text-center",children:"No visits found with current filtering"})}),(N=g.visitsGroups[y-1])==null?void 0:N.map((D,V)=>{const A=t.includes(D);return m.jsxs("tr",{style:{cursor:"pointer"},className:me({"table-active":A}),onClick:()=>n(A?t.filter(W=>W!==D):[...t,D]),children:[m.jsx("td",{className:"text-center",children:A&&m.jsx(Fe,{icon:sd,className:"text-primary"})}),m.jsx("td",{className:"text-center",children:D.potentialBot&&m.jsxs(m.Fragment,{children:[m.jsx(Fe,{icon:Qk,id:`botIcon${V}`}),m.jsx(Er,{placement:"right",target:`botIcon${V}`,children:"Potentially a visit from a bot or crawler"})]})}),m.jsx("td",{children:m.jsx(Zv,{date:D.date})}),m.jsx("td",{children:D.country}),m.jsx("td",{children:D.city}),m.jsx("td",{children:D.browser}),m.jsx("td",{children:D.os}),m.jsx("td",{children:D.referer}),i&&m.jsx("td",{children:D.visitedUrl})]},V)})]}),g.total>Qu&&m.jsx("tfoot",{children:m.jsx("tr",{children:m.jsx("td",{colSpan:S,className:"visits-table__footer-cell visits-table__sticky",children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-md-6",children:m.jsx(jE,{pagesCount:Math.ceil(g.total/Qu),currentPage:y,setCurrentPage:x,centered:a})}),m.jsx("div",{className:me("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:m.jsxs("div",{children:["Visits ",m.jsx("b",{children:yn(w+1)})," to"," ",m.jsx("b",{children:yn(Sj(b,g.total))})," of"," ",m.jsx("b",{children:yn(g.total)})]})})]})})})})]})})},Dl={byTime:{title:"By time",subPath:"by-time",icon:RZ},byContext:{title:"By context",subPath:"by-context",icon:ZS},byLocation:{title:"By location",subPath:"by-location",icon:kj},list:{title:"List",subPath:"list",icon:Pj}};let Lp;const lh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,exportCsv:i,isOrphanVisits:o=!1})=>{const{visits:s,loading:a,loadingLarge:l,error:c,errorData:f,progress:h,fallbackInterval:p}=t,[{dateRange:g,visitsFilter:v},y]=Jye(),x=fl("visits"),b=Tt(({startDate:z,endDate:Z})=>({dateRange:{startDate:z??void 0,endDate:Z??void 0}}),y),w=B.useRef(g??p??(x==null?void 0:x.defaultInterval)??"last30Days"),[S,T]=B.useState([]),[P,k]=B.useState(),N=B.useRef(!0),{search:D}=bn(),V=z=>z?`${z}${D}`:D,A=B.useMemo(()=>$8(s),[s]),{os:W,browsers:Y,referrers:ee,countries:q,cities:X,citiesForMap:ie,visitedUrls:le}=B.useMemo(()=>F8(A),[A]),G=B.useMemo(()=>({...v,excludeBots:v.excludeBots??(x==null?void 0:x.excludeBots)}),[v]),F=Yc(ie),j=z=>{Lp=void 0,T(z)},U=z=>Z=>{const ne=`${z}_${Z}`;Lp===ne?(T([]),k(void 0),Lp=void 0):(T(A.filter(dZ(z,Z))),k(Z),Lp=ne)};B.useEffect(()=>r,[]),B.useEffect(()=>{const z=N.current?g??Gde(w.current):g;n({dateRange:z,filter:G},N.current),N.current=!1},[g,v]),B.useEffect(()=>{p&&w.current===((x==null?void 0:x.defaultInterval)??"last30Days")&&(w.current=p)},[p]);const te=()=>l?m.jsxs(wo,{loading:!0,children:["This is going to take a while... :S",m.jsx(jC,{value:h,striped:h===100,className:"mt-3"})]}):a?m.jsx(wo,{loading:!0}):c?m.jsx(Nr,{type:"error",children:m.jsx(Ro,{errorData:f,fallbackMessage:"An error occurred while loading visits :("})}):Wn(s)?m.jsx(wo,{children:"There are no visits matching current filter"}):m.jsxs(m.Fragment,{children:[m.jsx(s6,{fill:!0,children:Object.values(Dl).map(({title:z,icon:Z,subPath:ne},ae)=>m.jsxs(wf,{to:V(ne),replace:!0,children:[m.jsx(Fe,{icon:Z}),m.jsx("span",{className:"ms-2 d-none d-sm-inline",children:z})]},ae))}),m.jsx(Xn,{children:m.jsxs(Hy,{children:[m.jsx(gt,{path:Dl.byTime.subPath,element:m.jsx("div",{className:"col-12 mt-3",children:m.jsx(Hye,{title:"Visits during time",visits:A,highlightedVisits:S,highlightedLabel:P,setSelectedVisits:j})})}),m.jsx(gt,{path:Dl.byContext.subPath,element:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:me("mt-3 col-lg-6",{"col-xl-4":!o}),children:m.jsx(KN,{title:"Operating systems",stats:W})}),m.jsx("div",{className:me("mt-3 col-lg-6",{"col-xl-4":!o}),children:m.jsx(KN,{title:"Browsers",stats:Y})}),m.jsx("div",{className:me("mt-3",{"col-xl-4":!o,"col-lg-6":o}),children:m.jsx(Np,{title:"Referrers",stats:ee,withPagination:!1,highlightedStats:Mp(S,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:U("referer")})}),o&&m.jsx("div",{className:"mt-3 col-lg-6",children:m.jsx(Np,{title:"Visited URLs",stats:le,highlightedLabel:P,highlightedStats:Mp(S,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:U("visitedUrl")})})]})}),m.jsx(gt,{path:Dl.byLocation.subPath,element:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Np,{title:"Countries",stats:q,highlightedStats:Mp(S,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:U("country")})}),m.jsx("div",{className:"col-lg-6 mt-3",children:m.jsx(Np,{title:"Cities",stats:X,highlightedStats:Mp(S,"city"),highlightedLabel:P,extraHeaderContent:z=>F.length>0&&m.jsx(__e,{modalTitle:"Cities",locations:F,activeCities:z}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:U("city")})})]})}),m.jsx(gt,{path:Dl.list.subPath,element:m.jsx("div",{className:"col-12",children:m.jsx(L_e,{visits:A,selectedVisits:S,setSelectedVisits:j,isOrphanVisits:o})})}),m.jsx(gt,{path:"*",element:m.jsx(DS,{replace:!0,to:V(Dl.byTime.subPath)})})]})})]});return m.jsxs(m.Fragment,{children:[e,m.jsx("section",{className:"mt-3",children:m.jsxs("div",{className:"row flex-md-row-reverse",children:[m.jsx("div",{className:"col-lg-7 col-xl-6",children:m.jsxs("div",{className:"d-md-flex",children:[m.jsx("div",{className:"flex-fill",children:m.jsx(G5,{updatable:!0,disabled:a,initialDateRange:w.current,defaultText:"All visits",onDatesChange:b})}),m.jsx(b_e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:o,selected:G,onChange:z=>y({visitsFilter:z})})]})}),s.length>0&&m.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:m.jsxs("div",{className:"d-flex",children:[m.jsx(k5,{className:"btn-md-block",amount:A.length,onClick:()=>i(A)}),m.jsxs(ht,{outline:!0,disabled:S.length===0,className:"btn-md-block ms-2",onClick:()=>j([]),children:["Clear selection ",S.length>0&&m.jsxs(m.Fragment,{children:["(",yn(S.length),")"]})]})]})})]})}),m.jsx("section",{className:"mt-3",children:te()})]})},D_e=({exportVisits:e})=>Xs(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r})=>{const i=Jc(),{domain:o=""}=sl(),[s,a=s]=o.split("_"),l=(f,h)=>t({domain:a,query:oh(f),doIntervalFallback:h}),c=f=>e(`domain_${s}_visits.csv`,f);return m.jsx(lh,{getVisits:l,cancelGetVisits:r,visitsInfo:n,exportCsv:c,children:m.jsx(sh,{goBack:i,visits:n.visits,title:`"${s}" visits`})})},()=>[Xr.visits]),A_e=({exportVisits:e})=>Xs(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r})=>{const i=Jc(),o=a=>e("non_orphan_visits.csv",a),s=(a,l)=>t({query:oh(a),doIntervalFallback:l});return m.jsx(lh,{getVisits:s,cancelGetVisits:r,visitsInfo:n,exportCsv:o,children:m.jsx(sh,{title:"Non-orphan visits",goBack:i,visits:n.visits})})},()=>[Xr.visits]),j_e=({exportVisits:e})=>Xs(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r})=>{const i=Jc(),o=a=>e("orphan_visits.csv",a),s=(a,l)=>{var c;return t({query:oh(a),orphanVisitsType:(c=a.filter)==null?void 0:c.orphanVisitsType,doIntervalFallback:l})};return m.jsx(lh,{getVisits:s,cancelGetVisits:r,visitsInfo:n,exportCsv:o,isOrphanVisits:!0,children:m.jsx(sh,{title:"Orphan visits",goBack:i,visits:n.visits})})},()=>[Xr.orphanVisits]),B8="shlink/orphanVisits",I_e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},F_e=e=>nh({typePrefix:`${B8}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1})=>{const{getNonOrphanVisits:r}=e(),i=async(s,a)=>r({...t,page:s,itemsPerPage:a}),o=rh(n,r);return[i,o]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),$_e=e=>ih({name:B8,initialState:I_e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>Jd(o.date,r,i))}}),U8="shlink/orphanVisits",B_e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},U_e=(e,t)=>!t||t===e.type,z_e=e=>nh({typePrefix:`${U8}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1})=>{const{getOrphanVisits:i}=e(),o=async(a,l)=>i({...n,page:a,itemsPerPage:l}).then(c=>{const f=c.data.filter(h=>zE(h)&&U_e(h,t));return{...c,data:f}}),s=rh(r,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),H_e=e=>ih({name:U8,initialState:B_e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&Jd(o.date,r,i))}}),z8="shlink/shortUrlVisits",V_e={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},W_e=e=>nh({typePrefix:`${z8}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1})=>{const{getShortUrlVisits:i}=e(),o=async(a,l)=>i(t,{...n,page:a,itemsPerPage:l}),s=rh(r,async a=>i(t,{...a,domain:n.domain}));return[o,s]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),Y_e=e=>ih({name:z8,initialState:V_e,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)&&Jd(l.date,o,s))}}),H8="shlink/tagVisits",q_e={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},G_e=e=>nh({typePrefix:`${H8}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1})=>{const{getTagVisits:i}=e(),o=async(a,l)=>i(t,{...n,page:a,itemsPerPage:l}),s=rh(r,async a=>i(t,a));return[o,s]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),Z_e=e=>ih({name:H8,initialState:q_e,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))&&Jd(a.date,i,o))}}),V8="shlink/visitsOverview",Dp={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},oL=e=>e.filter(({visit:t})=>t.potentialBot).length,K_e=e=>Sr(`${V8}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),X_e=e=>nr({name:V8,initialState:Dp,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Dp,loading:!0})),t.addCase(e.rejected,()=>({...Dp,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Dp,...r})),t.addCase(th,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:a}=pye(o.createdVisits),l=s.length,c=oL(s),f=l-c,h=a.length,p=oL(a),g=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+g}}})}});const Q_e=({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?m.jsxs("span",{children:[m.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:m.jsx(Zv,{date:r.dateCreated,relative:!0})}),m.jsx(Er,{placement:"bottom",target:"created",children:m.jsx(Zv,{date:r.dateCreated})})]}):m.jsx("small",{children:"Loading..."}),f=m.jsxs(m.Fragment,{children:["Visits for ",m.jsx(Ci,{href:s})]});return m.jsxs(sh,{title:f,goBack:n,visits:o,shortUrl:r,children:[m.jsx("hr",{}),m.jsxs("div",{children:["Created: ",c()]}),m.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&m.jsx("small",{children:"Loading..."}),!i&&m.jsx(Ci,{href:a,children:l??a})]})]})},J_e=({exportVisits:e})=>Xs(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o})=>{const{shortCode:s=""}=sl(),{search:a}=bn(),l=Jc(),{domain:c}=ll(a),f=(p,g)=>r({shortCode:cm(s),query:{...oh(p),domain:c},doIntervalFallback:g}),h=p=>{var g;return e(`short-url_${(g=n.shortUrl)==null?void 0:g.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,p)};return B.useEffect(()=>{i({shortCode:cm(s),domain:c})},[]),m.jsx(lh,{getVisits:f,cancelGetVisits:o,visitsInfo:t,exportCsv:h,children:m.jsx(Q_e,{shortUrlDetail:n,shortUrlVisits:t,goBack:l})})},(t,n)=>n.shortCode?[Xr.shortUrlVisits(cm(n.shortCode))]:[]),e0e=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e,o=m.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[m.jsx("span",{className:"me-2",children:"Visits for"}),m.jsx(PE,{text:i,colorGenerator:n})]});return m.jsx(sh,{title:o,goBack:t,visits:r})},t0e=(e,{exportVisits:t})=>Xs(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i})=>{const o=Jc(),{tag:s=""}=sl(),a=(c,f)=>n({tag:s,query:oh(c),doIntervalFallback:f}),l=c=>t(`tag_${s}_visits.csv`,c);return m.jsx(lh,{getVisits:a,cancelGetVisits:i,visitsInfo:r,exportCsv:l,children:m.jsx(e0e,{tagVisits:r,goBack:o,colorGenerator:e})})},()=>[Xr.visits]),n0e=(e,t)=>{e.serviceFactory("MapModal",()=>A8),e.serviceFactory("ShortUrlVisits",J_e,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",t0e,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",D_e,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",j_e,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",A_e,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>P_e),e.serviceFactory("getShortUrlVisits",W_e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",at("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",G_e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",at("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",Qde,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",at("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",z_e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",at("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",F_e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",at("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>th),e.serviceFactory("loadVisitsOverview",K_e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",X_e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",at("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Jde,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",at("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",$_e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",at("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",H_e,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",at("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",Y_e,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",at("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Z_e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",at("reducer"),"tagVisitsReducerCreator")};const ju=({children:e,to:t,className:n,...r})=>m.jsx(Q4,{className:({isActive:i})=>me("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),r0e=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=bn(),r=me("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return m.jsx("aside",{className:r,children:m.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[m.jsxs(ju,{to:i("/overview"),children:[m.jsx(Fe,{fixedWidth:!0,icon:aK}),m.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),m.jsxs(ju,{to:i("/list-short-urls/1"),className:me({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[m.jsx(Fe,{fixedWidth:!0,icon:Pj}),m.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),m.jsxs(ju,{to:i("/create-short-url"),children:[m.jsx(Fe,{fixedWidth:!0,icon:dK,flip:"horizontal"}),m.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),m.jsxs(ju,{to:i("/manage-tags"),children:[m.jsx(Fe,{fixedWidth:!0,icon:Mj}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),m.jsxs(ju,{to:i("/manage-domains"),children:[m.jsx(Fe,{fixedWidth:!0,icon:UZ}),m.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})};const i0e=(e,t,n,r,i,o,s,a,l,c,f)=>({createNotFound:h})=>{const p=bn(),g=cl(),v=ol(),[y,x]=B.useMemo(()=>v?[B.Fragment,{}]:[X4,{basename:g}],[v]),[b,w,S,T]=hn();B.useEffect(()=>T(),[p]);const P=Qd("domainVisits"),k=me("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":b}),N=Ghe(S,T);return m.jsxs(y,{...x,children:[m.jsx(Fe,{icon:jZ,className:k,onClick:w}),m.jsx("div",{...N,className:"shlink-layout__swipeable",children:m.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[m.jsx(r0e,{routePrefix:g,showOnMobile:b}),m.jsx("div",{className:"shlink-layout__container",onClick:()=>T(),children:m.jsx("div",{className:"container-xl",children:m.jsxs(Hy,{children:[m.jsx(gt,{index:!0,element:m.jsx(DS,{replace:!0,to:"overview"})}),m.jsx(gt,{path:"/overview",element:m.jsx(l,{})}),m.jsx(gt,{path:"/list-short-urls/:page",element:m.jsx(t,{})}),m.jsx(gt,{path:"/create-short-url",element:m.jsx(n,{})}),m.jsx(gt,{path:"/short-code/:shortCode/visits/*",element:m.jsx(r,{})}),m.jsx(gt,{path:"/short-code/:shortCode/edit",element:m.jsx(c,{})}),m.jsx(gt,{path:"/tag/:tag/visits/*",element:m.jsx(i,{})}),P&&m.jsx(gt,{path:"/domain/:domain/visits/*",element:m.jsx(o,{})}),m.jsx(gt,{path:"/orphan-visits/*",element:m.jsx(s,{})}),m.jsx(gt,{path:"/non-orphan-visits/*",element:m.jsx(a,{})}),m.jsx(gt,{path:"/manage-tags",element:m.jsx(e,{})}),m.jsx(gt,{path:"/manage-domains",element:m.jsx(f,{})}),h&&m.jsx(gt,{path:"*",element:h("/list-short-urls/1")})]})})})]})})]})},o0e=!0,s0e=e=>j6({devTools:!o0e,reducer:oE({mercureInfo:e.mercureInfoReducer,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,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),a0e=e=>{e.serviceFactory("Main",i0e,"TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"),e.factory("store",s0e)},no=new cj,{container:l0e}=no,c0e=(e,t)=>(...n)=>e[t](...n),u0e=(e,t)=>({...e,[t]:c0e(l0e,t)}),ch=(e,t=[])=>U4(e?WS(e):null,t.reduce(u0e,{}));a0e(no);ege(no,ch);Zge(no,ch);n0e(no,ch);dhe(no);che(no,ch);Nhe(no,ch);dye(no);let sL;const f0e=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:s})=>{const a=vse(t),l=B.useRef(),[c,f]=B.useState();return B.useEffect(()=>{sL=n,e.value("apiClientFactory",()=>sL),s&&e.value("TagColorsStorage",s);const{container:h}=e,{Main:p,store:g,loadMercureInfo:v}=h;l.current=m.jsx(p,{createNotFound:o}),f(g),g.dispatch(v(r))},[n,s]),c?m.jsx(z4,{store:c,children:m.jsx(Che,{value:r,children:m.jsx(yse,{value:a,children:m.jsx(_se,{value:i,children:l.current})})})}):m.jsx(m.Fragment,{})},d0e=f0e(no);function Xv(e){return t=>{const{resetSelectedServer:n}=t;return B.useEffect(()=>{n()},[]),m.jsx(e,{...t})}}const h0e=({location:e},{error:t})=>class extends B.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 m.jsx("div",{className:"home",children:m.jsxs(cn,{className:"p-4",children:[m.jsx("h1",{children:"Oops! This is awkward :S"}),m.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),m.jsx("br",{}),m.jsx(ht,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const p0e=({id:e,name:t})=>m.jsxs(BC,{tag:Dt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,m.jsx(Fe,{icon:vK,className:"servers-list__server-item-icon"})]}),W8=({servers:e,children:t,embedded:n=!1})=>m.jsxs(m.Fragment,{children:[t&&m.jsx("h5",{className:"mb-md-3",children:t}),e.length>0&&m.jsx(IC,{className:me("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>m.jsx(p0e,{id:r,name:i},r))})]}),Y8=({color:e=VC,className:t})=>m.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:m.jsxs("g",{fill:e,children:[m.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),m.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),m.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),m.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const m0e=({servers:e})=>{const t=eo(),n=Yc(e),r=!Wn(n);return B.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),m.jsx("div",{className:"home",children:m.jsx(xr,{className:"home__main-card",children:m.jsxs(Xn,{className:"g-0",children:[m.jsx("div",{className:"col-md-5 d-none d-md-block",children:m.jsx("div",{className:"home__logo-wrapper",children:m.jsx("div",{className:"home__logo",children:m.jsx(Y8,{})})})}),m.jsxs("div",{className:"col-md-7 home__servers-container",children:[m.jsx("div",{className:"home__title-wrapper",children:m.jsx("h1",{className:"home__title",children:"Welcome!"})}),m.jsx(W8,{embedded:!0,servers:n,children:!r&&m.jsxs("div",{className:"p-4 text-center",children:[m.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),m.jsx("p",{children:m.jsxs(Dt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[m.jsx(Fe,{icon:XS})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]})}),m.jsx("p",{className:"mb-0 mt-5",children:m.jsx(Ci,{href:"https://shlink.io/documentation",children:m.jsxs("small",{children:[m.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",m.jsx(Fe,{icon:QZ})]})})})]})})]})]})})})};const g0e=e=>()=>{const[t,n,,r]=hn(),i=bn(),{pathname:o}=i;B.useEffect(r,[i]);const s="/settings",a=me("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return m.jsxs(xC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[m.jsxs(SC,{tag:Dt,to:"/",children:[m.jsx(Y8,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),m.jsx(CC,{onClick:n,children:m.jsx(Fe,{icon:mK,className:a})}),m.jsx(UI,{navbar:!0,isOpen:t,children:m.jsxs(Jy,{navbar:!0,className:"ms-auto",children:[m.jsx(EC,{children:m.jsxs($I,{tag:Dt,to:s,active:o.startsWith(s),children:[m.jsx(Fe,{icon:wK})," Settings"]})}),m.jsx(e,{})]})})]})},v0e=({children:e})=>{const t=bn();return B.useEffect(()=>{scrollTo(0,0)},[t]),m.jsx(m.Fragment,{children:e})},q8=wj(qy,e=>{try{return Nw(e,e,"=")}catch{return!1}}),G8=e=>q8(e)?`v${e}`:e,Z8=(e="latest")=>t=>q8(t)?t:e,y0e="%_VERSION_%",_0e=Tt(Z8(),G8),aL=({project:e,version:t})=>m.jsx(Ci,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:m.jsx("b",{children:t})}),b0e=({selectedServer:e,clientVersion:t=y0e})=>{const n=_0e(t);return m.jsxs("small",{className:"text-muted",children:[Tj(e)&&m.jsxs(m.Fragment,{children:["Server: ",m.jsx(aL,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",m.jsx(aL,{project:"shlink-web-client",version:n})]})};const w0e=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,x0e=({selectedServer:e})=>{const{pathname:t}=bn(),n=B.useMemo(()=>w0e.test(t),[t]),r=me("text-center",{"shlink-versions-container--with-sidebar":n});return m.jsx("div",{className:r,children:m.jsx(b0e,{selectedServer:e})})};const tu=({children:e})=>m.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function K8(e,t){return n=>{const r=sl(),{selectServer:i,selectedServer:o}=n;return B.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?OZ(o)?m.jsx(t,{}):m.jsx(e,{...n}):m.jsx(tu,{children:m.jsx(wo,{loading:!0})})}}const S0e=(e,t,n,r)=>K8(({selectedServer:i,settings:o})=>{const s=Tj(i),a=s?`/server/${i.id}`:"";return s?m.jsx(n,{serverVersion:i.version,apiClient:e(i),settings:o,routesPrefix:a,tagColorsStorage:t,createNotFound:l=>m.jsx(O6,{to:`${a}${l}`,children:"List short URLs"})}):m.jsx(r,{})},r),lL={"Content-Type":"application/json"},cL=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...lL}}:{headers:lL}:e;class C0e{constructor(t){xe(this,"fetchJson",(t,n)=>this.fetch(t,cL(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));xe(this,"fetchEmpty",(t,n)=>this.fetch(t,cL(n)).then(async r=>{if(!r.ok)throw await r.json()}));this.fetch=t}}const E0e=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",C0e,"fetch"),e.serviceFactory("ScrollToTop",()=>v0e),e.serviceFactory("MainHeader",g0e,"ServersDropdown"),e.serviceFactory("Home",()=>m0e),e.decorator("Home",Xv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>d0e),e.serviceFactory("ShlinkWebComponentContainer",S0e,"buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>x0e),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",h0e,"window","console")},T0e=2e3,O0e=(e,t)=>(n=!1,r=T0e)=>{const[i,o]=B.useState(n),s=B.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},X8=()=>{const e=eo();return()=>e(-1)},P0e=()=>{const{search:e}=bn();return ll(e)},Q8=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return m.jsxs($o,{centered:!0,isOpen:e,children:[m.jsxs(to,{children:["Duplicated server",i&&"s"]}),m.jsxs(Oi,{children:[m.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),m.jsx("ul",{children:t.map(({url:o,apiKey:s},a)=>i?m.jsxs("li",{children:[m.jsx("b",{children:o})," - ",m.jsx("b",{children:s})]},a):m.jsxs(B.Fragment,{children:[m.jsxs("li",{children:["URL: ",m.jsx("b",{children:o})]}),m.jsxs("li",{children:["API key: ",m.jsx("b",{children:s})]})]},a))}),m.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),m.jsxs(Zs,{children:[m.jsx(ht,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),m.jsx(ht,{color:"primary",onClick:r,children:"Save anyway"})]})]})},k0e=e=>Tt(t=>t.preventDefault(),e),J8=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=B.useState(""),[s,a]=B.useState(""),[l,c]=B.useState(""),f=k0e(()=>e({name:i,url:s,apiKey:l}));return B.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),m.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[m.jsxs(cn,{className:"mb-3",title:r,children:[m.jsx(lm,{value:i,onChange:o,children:"Name"}),m.jsx(lm,{type:"url",value:s,onChange:a,children:"URL"}),m.jsx(lm,{value:l,onChange:c,children:"API key"})]}),m.jsx("div",{className:"text-end",children:n})]})},uL=4e3,fL=({type:e})=>m.jsx("div",{className:"mt-3",children:m.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."]})}),M0e=(e,t)=>({servers:n,createServers:r})=>{const i=eo(),o=X8(),s=!!Object.keys(n).length,[a,l]=t(!1,uL),[c,f]=t(!1,uL),[h,p]=hn(),[g,v]=B.useState(),y=()=>{if(!g)return;const x=HC();r([{...g,id:x}]),i(`/server/${x}`)};return B.useEffect(()=>{Object.values(n).some(({url:b,apiKey:w})=>(g==null?void 0:g.url)===b&&(g==null?void 0:g.apiKey)===w)?p():y()},[g]),m.jsxs(tu,{children:[m.jsxs(J8,{title:m.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!s&&m.jsx(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&m.jsx(ht,{outline:!0,onClick:o,children:"Cancel"}),m.jsx(ht,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&m.jsx(fL,{type:"success"}),c&&m.jsx(fL,{type:"error"}),m.jsx(Q8,{isOpen:h,duplicatedServers:g?[g]:[],onDiscard:o,onSave:y})]})},R0e=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=hn();return m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:n,onClick:s,children:[!r&&m.jsx(Fe,{fixedWidth:!0,icon:qS}),m.jsx("span",{className:i,children:r??"Remove this server"})]}),m.jsx(e,{server:t,isOpen:o,toggle:a})]})},N0e=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=eo(),s=B.useRef(!1),a=()=>{s.current=!0,t()},l=()=>{s.current&&(r(e),i&&o("/"))};return m.jsxs($o,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[m.jsx(to,{toggle:t,className:"text-danger",children:"Remove server"}),m.jsxs(Oi,{children:[m.jsxs("p",{children:["Are you sure you want to remove ",m.jsx("b",{children:e?e.name:""}),"?"]}),m.jsx("p",{children:m.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),m.jsxs(Zs,{children:[m.jsx(ht,{color:"link",onClick:t,children:"Cancel"}),m.jsx(ht,{color:"danger",onClick:a,children:"Delete"})]})]})},L0e=e=>K8(({editServer:t,selectedServer:n,selectServer:r})=>{const i=X8(),{reconnect:o}=P0e();if(!gf(n))return null;const s=a=>{t(n.id,a),o==="true"&&r(n.id),i()};return m.jsx(tu,{children:m.jsxs(J8,{title:m.jsxs("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[m.jsx(ht,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),m.jsx(ht,{outline:!0,color:"primary",children:"Save"})]})})},e);const dL=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),D0e=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=al(),[c,f]=B.useState(),[h,p]=B.useState([]),[g,,v,y]=hn(),x=Tt(t,i),b=Tt(()=>x(c??[]),y),w=Tt(()=>x((c??[]).filter(fG(dL(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 B.useEffect(()=>{if(!c)return;const T=Object.values(n),P=c.filter(dL(T)),k=!!P.length;k?p(P):x(c),k&&v()},[c]),m.jsxs(m.Fragment,{children:[m.jsxs(ht,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=l.current)==null?void 0:T.click()},children:[m.jsx(Fe,{icon:VZ,fixedWidth:!0})," ",r??"Import from file"]}),m.jsxs(Er,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",m.jsx("b",{children:"name"}),", ",m.jsx("b",{children:"apiKey"})," and ",m.jsx("b",{children:"url"}),"."]}),m.jsx("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:S}),m.jsx(Q8,{isOpen:g,duplicatedServers:h,onDiscard:w,onSave:b})]})};const A0e=e=>({servers:t,selectedServer:n})=>m.jsx(tu,{children:m.jsxs("div",{className:"server-error__container flex-column",children:[m.jsxs(wo,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!gf(n)&&"Could not find this Shlink server.",gf(n)&&m.jsxs(m.Fragment,{children:[m.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),m.jsxs(W8,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",m.jsx(Dt,{to:"/server/create",children:"add a new one"}),"."]}),gf(n)&&m.jsx("div",{className:"container mt-3 mt-md-5",children:m.jsxs("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",m.jsx(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",m.jsx(Dt,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),j0e=4e3,I0e=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=B.useState(o),l=p=>a(o.filter(({name:g,url:v})=>`${g} ${v}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,j0e);return B.useEffect(()=>{a(Object.values(i))},[i]),m.jsxs(tu,{children:[m.jsx(Zd,{className:"mb-3",onChange:l}),m.jsxs(Xn,{className:"mb-3",children:[m.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[m.jsx(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&m.jsxs(ht,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[m.jsx(Fe,{icon:Nj,fixedWidth:!0})," Export servers"]})]}),m.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:m.jsxs(ht,{outline:!0,color:"primary",className:"flex-fill",tag:Dt,to:"/server/create",children:[m.jsx(Fe,{icon:XS,fixedWidth:!0})," Add a server"]})})]}),m.jsx(cn,{children:m.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[m.jsx("thead",{className:"responsive-table__header",children:m.jsxs("tr",{children:[c&&m.jsx("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),m.jsx("th",{children:"Name"}),m.jsx("th",{children:"Base URL"}),m.jsx("th",{"aria-label":"Options"})]})}),m.jsxs("tbody",{children:[!s.length&&m.jsx("tr",{className:"text-center",children:m.jsx("td",{colSpan:4,children:"No servers found."})}),s.map(p=>m.jsx(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&m.jsx("div",{className:"mt-3",children:m.jsx(Nr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},F0e=e=>({server:t,hasAutoConnect:n})=>m.jsxs("tr",{className:"responsive-table__row",children:[n&&m.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&m.jsxs(m.Fragment,{children:[m.jsx(Fe,{icon:sd,className:"text-primary",id:"autoConnectIcon"}),m.jsx(Er,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),m.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:m.jsx(Dt,{to:`/server/${t.id}`,children:t.name})}),m.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),m.jsx("td",{className:"responsive-table__cell text-end",children:m.jsx(e,{server:t})})]}),$0e=e=>({server:t,setAutoConnect:n})=>{const[r,,i,o]=hn(),s=`/server/${t.id}`,{autoConnect:a}=t,l=a?zZ:khe;return m.jsxs(l_,{minWidth:170,children:[m.jsxs(ze,{tag:Dt,to:s,children:[m.jsx(Fe,{icon:BZ,fixedWidth:!0})," Connect"]}),m.jsxs(ze,{tag:Dt,to:`${s}/edit`,children:[m.jsx(Fe,{icon:GS,fixedWidth:!0})," Edit server"]}),m.jsxs(ze,{onClick:()=>n(t,!a),children:[m.jsx(Fe,{icon:l,fixedWidth:!0})," ",a?"Do not a":"A","uto-connect"]}),m.jsx(ze,{divider:!0}),m.jsxs(ze,{className:"dropdown-item--danger",onClick:i,children:[m.jsx(Fe,{icon:qS,fixedWidth:!0})," Remove server"]}),m.jsx(e,{redirectHome:!1,server:t,isOpen:r,toggle:o})]})},eF=(e,t)=>F6(e,t,{serializeError:qy}),B0e={},U0e=e=>e.id?e:id("id",HC(),e),z0e=BS((e,t)=>id(t.id,t,e),{}),{actions:H0e,reducer:V0e}=nr({name:"shlink/servers",initialState:B0e,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?id(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>zG(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?Yu(Ug(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):id(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:Tt(Id(U0e),z0e,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:W0e,deleteServer:Y0e,setAutoConnect:q0e,createServers:tF}=H0e,G0e=V0e,Z0e=e=>Array.isArray(e)?e.filter(Ej):[],K0e=e=>eF("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${jg.homepage}/servers.json`),i=Z0e(r);n(tF(i))}),ZE="shlink/selectedServer",X0e="1.0.0",Q0e="999.999.999",J0e="latest",e1e=Tt(e=>e===J0e?Q0e:e,Z8(X0e)),t1e=wj(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:e1e(n),printableVersion:G8(n)}))),hL=null,KE=On(`${ZE}/resetSelectedServer`),n1e=e=>eF(`${ZE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(KE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await t1e(o,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),r1e=e=>nr({name:ZE,initialState:hL,reducers:{},extraReducers:t=>{t.addCase(KE,()=>hL),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),i1e=({servers:e,selectedServer:t})=>{const n=Yc(e),r=()=>Wn(n)?m.jsxs(ze,{tag:Dt,to:"/server/create",children:[m.jsx(Fe,{icon:XS})," ",m.jsx("span",{className:"ms-1",children:"Add a server"})]}):m.jsxs(m.Fragment,{children:[n.map(({name:i,id:o})=>m.jsx(ze,{tag:Dt,to:`/server/${o}`,active:PZ(t)===o,children:i},o)),m.jsx(ze,{divider:!0}),m.jsxs(ze,{tag:Dt,to:"/manage-servers",children:[m.jsx(Fe,{icon:Kk})," ",m.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return m.jsxs(Gd,{nav:!0,inNavbar:!0,children:[m.jsxs(Vd,{nav:!0,caret:!0,children:[m.jsx(Fe,{icon:Kk})," ",m.jsx("span",{className:"ms-1",children:"Servers"})]}),m.jsx(Zc,{end:!0,style:{right:0},children:r()})]})},o1e=({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)},s1e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);o1e(e,i,n)},a1e="shlink-servers.csv";class l1e{constructor(t,n,r){xe(this,"exportServers",async()=>{const t=Yc(this.storage.get("servers")??{}).map(kZ);try{const n=this.jsonToCsv(t);s1e(this.window,n,a1e)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const c1e=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",u1e=e=>Array.isArray(e)&&e.every(c1e);class f1e{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(!u1e(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 d1e=(e,t)=>{e.serviceFactory("ManageServers",I0e,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",Xv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",F0e,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",$0e,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",M0e,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",Xv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",L0e,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>i1e),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>N0e),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",R0e,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",D0e,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",A0e,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",f1e,"csvToJson","fileReaderFactory"),e.service("ServersExporter",l1e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",n1e,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>tF),e.serviceFactory("deleteServer",()=>Y0e),e.serviceFactory("editServer",()=>W0e),e.serviceFactory("setAutoConnect",()=>q0e),e.serviceFactory("fetchServers",K0e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>KE),e.serviceFactory("selectedServerReducerCreator",r1e,"selectServer"),e.serviceFactory("selectedServerReducer",at("reducer"),"selectedServerReducerCreator")},hc=({children:e})=>m.jsx("small",{className:"form-text text-muted d-block",children:e}),h1e=e=>e?`${e}`:"",p1e=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=a_();return m.jsxs(cn,{title:"Real-time updates",className:"h-100",children:[m.jsx(gr,{children:m.jsxs(Nc,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",m.jsxs(hc,{children:["Real-time updates are currently being ",m.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),m.jsxs(Kc,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:me("form-label",{"text-muted":!r.enabled}),id:i,children:[m.jsx(Rc,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:h1e(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&m.jsxs(hc,{children:[r.interval!==void 0&&r.interval>0&&m.jsxs("span",{children:["Updates will be reflected in the UI every ",m.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},nF={field:"dateCreated",dir:"DESC"},m1e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:nF}},g1e=(e,{payload:t})=>xj(e,t),fa=e=>({reducer:g1e,prepare:e}),da=e=>({payload:e}),{reducer:v1e,actions:y1e}=nr({name:"shlink/settings",initialState:m1e,reducers:{toggleRealTimeUpdates:fa(e=>da({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:fa(e=>da({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:fa(e=>da({shortUrlCreation:e})),setShortUrlsListSettings:fa(e=>da({shortUrlsList:e})),setUiSettings:fa(e=>da({ui:e})),setVisitsSettings:fa(e=>da({visits:e})),setTagsSettings:fa(e=>da({tags:e}))}}),{toggleRealTimeUpdates:_1e,setRealTimeUpdatesInterval:b1e,setShortUrlCreationSettings:w1e,setShortUrlsListSettings:x1e,setUiSettings:S1e,setVisitsSettings:C1e,setTagsSettings:E1e}=y1e,T1e=v1e,I1=({items:e})=>m.jsx(m.Fragment,{children:e.map((t,n)=>m.jsx("div",{className:"mb-3",children:t},n))}),O1e=(e,t,n,r,i,o)=>()=>m.jsxs(tu,{children:[m.jsxs(s6,{className:"mb-3",children:[m.jsx(wf,{to:"general",children:"General"}),m.jsx(wf,{to:"short-urls",children:"Short URLs"}),m.jsx(wf,{to:"other-items",children:"Other items"})]}),m.jsxs(Hy,{children:[m.jsx(gt,{path:"general",element:m.jsx(I1,{items:[m.jsx(r,{}),m.jsx(e,{})]})}),m.jsx(gt,{path:"short-urls",element:m.jsx(I1,{items:[m.jsx(t,{}),m.jsx(n,{})]})}),m.jsx(gt,{path:"other-items",element:m.jsx(I1,{items:[m.jsx(o,{}),m.jsx(i,{})]})}),m.jsx(gt,{path:"*",element:m.jsx(DS,{replace:!0,to:"general"})})]})]}),F1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",P1e=e=>e==="includes"?m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"including"})," provided input."]}):m.jsxs(m.Fragment,{children:["The list of suggested tags will contain those ",m.jsx("b",{children:"starting with"})," provided input."]}),k1e=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return m.jsxs(cn,{title:"Short URLs form",className:"h-100",children:[m.jsx(gr,{children:m.jsxs(Nc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",m.jsxs(hc,{children:["The initial state of the ",m.jsx("b",{children:"Validate URL"})," checkbox will be ",m.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),m.jsx(gr,{children:m.jsxs(Nc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",m.jsxs(hc,{children:["The initial state of the ",m.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",m.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),m.jsxs(Kc,{noMargin:!0,label:"Tag suggestions search mode:",children:[m.jsxs(Bo,{text:F1(n.tagFilteringMode),children:[m.jsx(ze,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:F1("startsWith")}),m.jsx(ze,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:F1("includes")})]}),m.jsx(hc,{children:P1e(n.tagFilteringMode)})]})]})},M1e=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>m.jsx(cn,{title:"Short URLs list",className:"h-100",children:m.jsx(Kc,{noMargin:!0,label:"Default ordering for short URLs list:",children:m.jsx(Kd,{items:Z5,order:(e==null?void 0:e.defaultOrdering)??nF,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),R1e=({settings:{tags:e},setTagsSettings:t})=>m.jsx(cn,{title:"Tags",className:"h-100",children:m.jsx(Kc,{noMargin:!0,label:"Default ordering for tags list:",children:m.jsx(Kd,{items:c8,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const N1e=({settings:{ui:e},setUiSettings:t})=>m.jsxs(cn,{title:"User interface",className:"h-100",children:[m.jsx(Fe,{icon:(e==null?void 0:e.theme)==="dark"?SK:fK,className:"user-interface__theme-icon"}),m.jsx(Nc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),u6(r)},children:"Use dark theme."})]}),rF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},L1e=(e,t)=>!e||e==="all"?t:rF[e],D1e=({onChange:e,active:t,allText:n})=>m.jsxs(Bo,{text:L1e(t,n),children:[m.jsx(ze,{active:t==="all",onClick:()=>e("all"),children:n}),m.jsx(ze,{divider:!0}),Object.entries(rF).map(([r,i])=>m.jsx(ze,{active:t===r,onClick:()=>e(r),children:i},r))]}),pL=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},A1e=({settings:e,setVisitsSettings:t})=>{var n,r;return m.jsxs(cn,{title:"Visits",className:"h-100",children:[m.jsx(gr,{children:m.jsxs(Nc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:pL(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",m.jsxs(hc,{children:["The visits coming from potential bots will be ",m.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),m.jsx(Kc,{noMargin:!0,label:"Default interval to load on visits sections:",children:m.jsx(D1e,{allText:"All visits",active:pL(e),onChange:i=>t({defaultInterval:i})})})]})},j1e=(e,t)=>{e.serviceFactory("Settings",O1e,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",Xv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>p1e),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>k1e),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>N1e),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>A1e),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>R1e),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>M1e),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>_1e),e.serviceFactory("setRealTimeUpdatesInterval",()=>b1e),e.serviceFactory("setShortUrlCreationSettings",()=>w1e),e.serviceFactory("setShortUrlsListSettings",()=>x1e),e.serviceFactory("setUiSettings",()=>S1e),e.serviceFactory("setVisitsSettings",()=>C1e),e.serviceFactory("setTagsSettings",()=>E1e)};var I1e=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(g,this)}function g(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,Q){if(typeof R=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&R instanceof ArrayBuffer?function(K,oe,ge,Le){if(oe.byteLength,ge<0||oe.byteLength<ge)throw new RangeError("'offset' is out of bounds");if(oe.byteLength<ge+(Le||0))throw new RangeError("'length' is out of bounds");return oe=ge===void 0&&Le===void 0?new Uint8Array(oe):Le===void 0?new Uint8Array(oe,ge):new Uint8Array(oe,ge,Le),c.TYPED_ARRAY_SUPPORT?(K=oe).__proto__=c.prototype:K=g(K,oe),K}(O,R,I,Q):typeof R=="string"?function(K,oe,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(oe,ge),ue=(K=l(K,Le)).write(oe,ge);return ue!==Le&&(K=K.slice(0,ue)),K}(O,R,I):function(K,oe){if(c.isBuffer(oe)){var ge=0|v(oe.length);return(K=l(K,ge)).length===0||oe.copy(K,0,0,ge),K}if(oe){if(typeof ArrayBuffer<"u"&&oe.buffer instanceof ArrayBuffer||"length"in oe)return typeof oe.length!="number"||function(Le){return Le!=Le}(oe.length)?l(K,0):g(K,oe);if(oe.type==="Buffer"&&s(oe.data))return g(K,oe.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 g(O,R){var I=R.length<0?0:0|v(R.length);O=l(O,I);for(var Q=0;Q<I;Q+=1)O[Q]=255&R[Q];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 Q=!1;;)switch(R){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":case void 0:return ne(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return ae(O).length;default:if(Q)return ne(O).length;R=(""+R).toLowerCase(),Q=!0}}function x(O,R,I){var Q=O[R];O[R]=O[I],O[I]=Q}function b(O,R,I,Q,K){if(O.length===0)return-1;if(typeof I=="string"?(Q=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,Q)),c.isBuffer(R))return R.length===0?-1:w(O,R,I,Q,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,Q,K);throw new TypeError("val must be string, number or Buffer")}function w(O,R,I,Q,K){var oe,ge=1,Le=O.length,ue=R.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="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(oe=I;oe<Le;oe++)if(ve(O,oe)===ve(R,_e===-1?0:oe-_e)){if(_e===-1&&(_e=oe),oe-_e+1===ue)return _e*ge}else _e!==-1&&(oe-=oe-_e),_e=-1}else for(I+ue>Le&&(I=Le-ue),oe=I;oe>=0;oe--){for(var Te=!0,De=0;De<ue;De++)if(ve(O,oe+De)!==ve(R,De)){Te=!1;break}if(Te)return oe}return-1}function S(O,R,I,Q){I=Number(I)||0;var K=O.length-I;Q?(Q=Number(Q))>K&&(Q=K):Q=K;var oe=R.length;if(oe%2!=0)throw new TypeError("Invalid hex string");Q>oe/2&&(Q=oe/2);for(var ge=0;ge<Q;++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,Q){return pe(ne(R,O.length-I),O,I,Q)}function P(O,R,I,Q){return pe(function(K){for(var oe=[],ge=0;ge<K.length;++ge)oe.push(255&K.charCodeAt(ge));return oe}(R),O,I,Q)}function k(O,R,I,Q){return P(O,R,I,Q)}function N(O,R,I,Q){return pe(ae(R),O,I,Q)}function D(O,R,I,Q){return pe(function(K,oe){for(var ge,Le,ue,ve=[],_e=0;_e<K.length&&!((oe-=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,Q)}function V(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 Q=[],K=R;K<I;){var oe,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&(oe=O[K+1]))==128&&(ue=(31&ve)<<6|63&oe)>127&&(_e=ue);break;case 3:oe=O[K+1],ge=O[K+2],(192&oe)==128&&(192&ge)==128&&(ue=(15&ve)<<12|(63&oe)<<6|63&ge)>2047&&(ue<55296||ue>57343)&&(_e=ue);break;case 4:oe=O[K+1],ge=O[K+2],Le=O[K+3],(192&oe)==128&&(192&ge)==128&&(192&Le)==128&&(ue=(15&ve)<<18|(63&oe)<<12|(63&ge)<<6|63&Le)>65535&&ue<1114112&&(_e=ue)}_e===null?(_e=65533,Te=1):_e>65535&&(_e-=65536,Q.push(_e>>>10&1023|55296),_e=56320|1023&_e),Q.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}(Q)}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(Q,K,oe,ge){return h(K),K<=0?l(Q,K):oe!==void 0?typeof ge=="string"?l(Q,K).fill(oe,ge):l(Q,K).fill(oe):l(Q,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,Q=R.length,K=0,oe=Math.min(I,Q);K<oe;++K)if(O[K]!==R[K]){I=O[K],Q=R[K];break}return I<Q?-1:Q<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 Q=c.allocUnsafe(R),K=0;for(I=0;I<O.length;++I){var oe=O[I];if(!c.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(Q,K),K+=oe.length}return Q},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,Q){var K=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(I>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return q(this,I,Q);case"utf8":case"utf-8":return A(this,I,Q);case"ascii":return Y(this,I,Q);case"latin1":case"binary":return ee(this,I,Q);case"base64":return V(this,I,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,I,Q);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,Q,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),Q===void 0&&(Q=0),K===void 0&&(K=this.length),R<0||I>O.length||Q<0||K>this.length)throw new RangeError("out of range index");if(Q>=K&&R>=I)return 0;if(Q>=K)return-1;if(R>=I)return 1;if(R>>>=0,I>>>=0,Q>>>=0,K>>>=0,this===O)return 0;for(var oe=K-Q,ge=I-R,Le=Math.min(oe,ge),ue=this.slice(Q,K),ve=O.slice(R,I),_e=0;_e<Le;++_e)if(ue[_e]!==ve[_e]){oe=ue[_e],ge=ve[_e];break}return oe<ge?-1:ge<oe?1:0},c.prototype.includes=function(O,R,I){return this.indexOf(O,R,I)!==-1},c.prototype.indexOf=function(O,R,I){return b(this,O,R,I,!0)},c.prototype.lastIndexOf=function(O,R,I){return b(this,O,R,I,!1)},c.prototype.write=function(O,R,I,Q){if(R===void 0)Q="utf8",I=this.length,R=0;else if(I===void 0&&typeof R=="string")Q=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,Q===void 0&&(Q="utf8")):(Q=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");Q||(Q="utf8");for(var oe=!1;;)switch(Q){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(oe)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),oe=!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 Q="";I=Math.min(O.length,I);for(var K=R;K<I;++K)Q+=String.fromCharCode(127&O[K]);return Q}function ee(O,R,I){var Q="";I=Math.min(O.length,I);for(var K=R;K<I;++K)Q+=String.fromCharCode(O[K]);return Q}function q(O,R,I){var Q=O.length;(!R||R<0)&&(R=0),(!I||I<0||I>Q)&&(I=Q);for(var K="",oe=R;oe<I;++oe)K+=Z(O[oe]);return K}function X(O,R,I){for(var Q=O.slice(R,I),K="",oe=0;oe<Q.length;oe+=2)K+=String.fromCharCode(Q[oe]+256*Q[oe+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 le(O,R,I,Q,K,oe){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>K||R<oe)throw new RangeError('"value" argument is out of bounds');if(I+Q>O.length)throw new RangeError("Index out of range")}function G(O,R,I,Q){R<0&&(R=65535+R+1);for(var K=0,oe=Math.min(O.length-I,2);K<oe;++K)O[I+K]=(R&255<<8*(Q?K:1-K))>>>8*(Q?K:1-K)}function F(O,R,I,Q){R<0&&(R=4294967295+R+1);for(var K=0,oe=Math.min(O.length-I,4);K<oe;++K)O[I+K]=R>>>8*(Q?K:3-K)&255}function j(O,R,I,Q,K,oe){if(I+Q>O.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function U(O,R,I,Q,K){return K||j(O,0,I,4),o.write(O,R,I,Q,23,4),I+4}function te(O,R,I,Q,K){return K||j(O,0,I,8),o.write(O,R,I,Q,52,8),I+8}c.prototype.slice=function(O,R){var I,Q=this.length;if(O=~~O,R=R===void 0?Q:~~R,O<0?(O+=Q)<0&&(O=0):O>Q&&(O=Q),R<0?(R+=Q)<0&&(R=0):R>Q&&(R=Q),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 oe=0;oe<K;++oe)I[oe]=this[oe+O]}return I},c.prototype.readUIntLE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var Q=this[O],K=1,oe=0;++oe<R&&(K*=256);)Q+=this[O+oe]*K;return Q},c.prototype.readUIntBE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var Q=this[O+--R],K=1;R>0&&(K*=256);)Q+=this[O+--R]*K;return Q},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 Q=this[O],K=1,oe=0;++oe<R&&(K*=256);)Q+=this[O+oe]*K;return Q>=(K*=128)&&(Q-=Math.pow(2,8*R)),Q},c.prototype.readIntBE=function(O,R,I){O|=0,R|=0,I||ie(O,R,this.length);for(var Q=R,K=1,oe=this[O+--Q];Q>0&&(K*=256);)oe+=this[O+--Q]*K;return oe>=(K*=128)&&(oe-=Math.pow(2,8*R)),oe},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,Q){O=+O,R|=0,I|=0,Q||le(this,O,R,I,Math.pow(2,8*I)-1,0);var K=1,oe=0;for(this[R]=255&O;++oe<I&&(K*=256);)this[R+oe]=O/K&255;return R+I},c.prototype.writeUIntBE=function(O,R,I,Q){O=+O,R|=0,I|=0,Q||le(this,O,R,I,Math.pow(2,8*I)-1,0);var K=I-1,oe=1;for(this[R+K]=255&O;--K>=0&&(oe*=256);)this[R+K]=O/oe&255;return R+I},c.prototype.writeUInt8=function(O,R,I){return O=+O,R|=0,I||le(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||le(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||le(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||le(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||le(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,Q){if(O=+O,R|=0,!Q){var K=Math.pow(2,8*I-1);le(this,O,R,I,K-1,-K)}var oe=0,ge=1,Le=0;for(this[R]=255&O;++oe<I&&(ge*=256);)O<0&&Le===0&&this[R+oe-1]!==0&&(Le=1),this[R+oe]=(O/ge>>0)-Le&255;return R+I},c.prototype.writeIntBE=function(O,R,I,Q){if(O=+O,R|=0,!Q){var K=Math.pow(2,8*I-1);le(this,O,R,I,K-1,-K)}var oe=I-1,ge=1,Le=0;for(this[R+oe]=255&O;--oe>=0&&(ge*=256);)O<0&&Le===0&&this[R+oe+1]!==0&&(Le=1),this[R+oe]=(O/ge>>0)-Le&255;return R+I},c.prototype.writeInt8=function(O,R,I){return O=+O,R|=0,I||le(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||le(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||le(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||le(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||le(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 U(this,O,R,!0,I)},c.prototype.writeFloatBE=function(O,R,I){return U(this,O,R,!1,I)},c.prototype.writeDoubleLE=function(O,R,I){return te(this,O,R,!0,I)},c.prototype.writeDoubleBE=function(O,R,I){return te(this,O,R,!1,I)},c.prototype.copy=function(O,R,I,Q){if(I||(I=0),Q||Q===0||(Q=this.length),R>=O.length&&(R=O.length),R||(R=0),Q>0&&Q<I&&(Q=I),Q===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(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),O.length-R<Q-I&&(Q=O.length-R+I);var K,oe=Q-I;if(this===O&&I<R&&R<Q)for(K=oe-1;K>=0;--K)O[K+R]=this[K+I];else if(oe<1e3||!c.TYPED_ARRAY_SUPPORT)for(K=0;K<oe;++K)O[K+R]=this[K+I];else Uint8Array.prototype.set.call(O,this.subarray(I,I+oe),R);return oe},c.prototype.fill=function(O,R,I,Q){if(typeof O=="string"){if(typeof R=="string"?(Q=R,R=0,I=this.length):typeof I=="string"&&(Q=I,I=this.length),O.length===1){var K=O.charCodeAt(0);K<256&&(O=K)}if(Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!c.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q)}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 oe;if(R>>>=0,I=I===void 0?this.length:I>>>0,O||(O=0),typeof O=="number")for(oe=R;oe<I;++oe)this[oe]=O;else{var ge=c.isBuffer(O)?O:ne(new c(O,Q).toString()),Le=ge.length;for(oe=0;oe<I-R;++oe)this[oe+R]=ge[oe%Le]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function Z(O){return O<16?"0"+O.toString(16):O.toString(16)}function ne(O,R){var I;R=R||1/0;for(var Q=O.length,K=null,oe=[],ge=0;ge<Q;++ge){if((I=O.charCodeAt(ge))>55295&&I<57344){if(!K){if(I>56319){(R-=3)>-1&&oe.push(239,191,189);continue}if(ge+1===Q){(R-=3)>-1&&oe.push(239,191,189);continue}K=I;continue}if(I<56320){(R-=3)>-1&&oe.push(239,191,189),K=I;continue}I=65536+(K-55296<<10|I-56320)}else K&&(R-=3)>-1&&oe.push(239,191,189);if(K=null,I<128){if((R-=1)<0)break;oe.push(I)}else if(I<2048){if((R-=2)<0)break;oe.push(I>>6|192,63&I|128)}else if(I<65536){if((R-=3)<0)break;oe.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;oe.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return oe}function ae(O){return i.toByteArray(function(R){if((R=function(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}(R).replace(z,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function pe(O,R,I,Q){for(var K=0;K<Q&&!(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&&g())}function g(){if(!f){var x=a(p);f=!0;for(var b=c.length;b;){for(l=c,c=[];++h<b;)l&&l[h].run();h=-1,b=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,b){this.fun=x,this.array=b}function y(){}i.nextTick=function(x){var b=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w<arguments.length;w++)b[w-1]=arguments[w];c.push(new v(x,b)),c.length!==1||f||a(g)},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 g=new Error('Uncaught, unspecified "error" event. ('+a+")");throw g.context=a,g}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,ee,q){var X=Y.entry;for(Y.entry=null;X;){var ie=X.callback;ee.pendingcb--,ie(void 0),X=X.next}ee.corkedRequestsFree?ee.corkedRequestsFree.next=Y:ee.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)},g=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function b(){}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 ee=A.highWaterMark,q=A.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=ee||ee===0?ee:Y&&(q||q===0)?q:X,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var 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(le){(function(G,F){var j=G._writableState,U=j.sync,te=j.writecb;if(function(Z){Z.writing=!1,Z.writecb=null,Z.length-=Z.writelen,Z.writelen=0}(j),F)(function(Z,ne,ae,pe,O){--ne.pendingcb,ae?(s.nextTick(O,pe),s.nextTick(V,Z,ne),Z._writableState.errorEmitted=!0,Z.emit("error",pe)):(O(pe),Z._writableState.errorEmitted=!0,Z.emit("error",pe),V(Z,ne))})(G,j,U,F,te);else{var z=N(j);z||j.corked||j.bufferProcessing||!j.bufferedRequest||k(G,j),U?c(P,G,j,z,te):P(G,j,z,te)}})(W,le)},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)),g.call(this)}function T(A,W,Y,ee,q,X,ie){W.writelen=ee,W.writecb=ie,W.writing=!0,W.sync=!0,Y?A._writev(q,W.onwrite):A._write(q,X,W.onwrite),W.sync=!1}function P(A,W,Y,ee){Y||function(q,X){X.length===0&&X.needDrain&&(X.needDrain=!1,q.emit("drain"))}(A,W),W.pendingcb--,ee(),V(A,W)}function k(A,W){W.bufferProcessing=!0;var Y=W.bufferedRequest;if(A._writev&&Y&&Y.next){var ee=W.bufferedRequestCount,q=new Array(ee),X=W.corkedRequestsFree;X.entry=Y;for(var ie=0,le=!0;Y;)q[ie]=Y,Y.isBuf||(le=!1),Y=Y.next,ie+=1;q.allBuffers=le,T(A,W,!0,W.length,q,"",X.finish),W.pendingcb++,W.lastBufferedRequest=null,X.next?(W.corkedRequestsFree=X.next,X.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"),V(A,W)})}function V(A,W){var Y=N(W);return Y&&(function(ee,q){q.prefinished||q.finalCalled||(typeof ee._final=="function"?(q.pendingcb++,q.finalCalled=!0,s.nextTick(D,ee,q)):(q.prefinished=!0,ee.emit("prefinish")))}(A,W),W.pendingcb===0&&(W.finished=!0,A.emit("finish"))),Y}f.inherits(S,g),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 ee=this._writableState,q=!1,X=!ee.objectMode&&function(ie){return v.isBuffer(ie)||ie instanceof y}(A);return X&&!v.isBuffer(A)&&(A=function(ie){return v.from(ie)}(A)),typeof W=="function"&&(Y=W,W=null),X?W="buffer":W||(W=ee.defaultEncoding),typeof Y!="function"&&(Y=b),ee.ended?function(ie,le){var G=new Error("write after end");ie.emit("error",G),s.nextTick(le,G)}(this,Y):(X||function(ie,le,G,F){var j=!0,U=!1;return G===null?U=new TypeError("May not write null values to stream"):typeof G=="string"||G===void 0||le.objectMode||(U=new TypeError("Invalid non-string/buffer chunk")),U&&(ie.emit("error",U),s.nextTick(F,U),j=!1),j}(this,ee,A,Y))&&(ee.pendingcb++,q=function(ie,le,G,F,j,U){if(!G){var te=function(ae,pe,O){return ae.objectMode||ae.decodeStrings===!1||typeof pe!="string"||(pe=v.from(pe,O)),pe}(le,F,j);F!==te&&(G=!0,j="buffer",F=te)}var z=le.objectMode?1:F.length;le.length+=z;var Z=le.length<le.highWaterMark;if(Z||(le.needDrain=!0),le.writing||le.corked){var ne=le.lastBufferedRequest;le.lastBufferedRequest={chunk:F,encoding:j,isBuf:G,callback:U,next:null},ne?ne.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else T(ie,le,!1,z,F,j,U);return Z}(this,ee,X,A,W,Y)),q},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 ee=this._writableState;typeof A=="function"?(Y=A,A=null,W=null):typeof W=="function"&&(Y=W,W=null),A!=null&&this.write(A,W),ee.corked&&(ee.corked=1,this.uncork()),ee.ending||ee.finished||function(q,X,ie){X.ending=!0,V(q,X),ie&&(X.finished?s.nextTick(ie):q.once("finish",ie)),X.ended=!0,q.writable=!1}(this,ee,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(g,v){if(!l[g]){if(!a[g]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(g,!0);if(h)return h(g,!0);var x=new Error("Cannot find module '"+g+"'");throw x.code="MODULE_NOT_FOUND",x}var b=l[g]={exports:{}};a[g][0].call(b.exports,function(w){return f(a[g][1][w]||w)},b,b.exports,s,a,l,c)}return l[g].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 g=new f(p),v=g.promise();return g.setHowMany(1),g.setUnwrap(),g.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(b){c=b}var f=s("./schedule"),h=s("./queue"),p=s("./util");function g(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var b=this;this.drainQueues=function(){b._drainQueues()},this._schedule=f}function v(b,w,S){this._lateQueue.push(b,w,S),this._queueTick()}function y(b,w,S){this._normalQueue.push(b,w,S),this._queueTick()}function x(b){this._normalQueue._pushOne(b),this._queueTick()}g.prototype.setScheduler=function(b){var w=this._schedule;return this._schedule=b,this._customScheduler=!0,w},g.prototype.hasCustomScheduler=function(){return this._customScheduler},g.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},g.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},g.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},g.prototype.fatalError=function(b,w){w?(r.stderr.write("Fatal "+(b instanceof Error?b.stack:b)+`
|
||
`),r.exit(2)):this.throwLater(b)},g.prototype.throwLater=function(b,w){if(arguments.length===1&&(w=b,b=function(){throw w}),typeof setTimeout<"u")setTimeout(function(){b(w)},0);else try{this._schedule(function(){b(w)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(g.prototype.invokeLater=function(b,w,S){this._trampolineEnabled?v.call(this,b,w,S):this._schedule(function(){setTimeout(function(){b.call(w,S)},100)})},g.prototype.invoke=function(b,w,S){this._trampolineEnabled?y.call(this,b,w,S):this._schedule(function(){b.call(w,S)})},g.prototype.settlePromises=function(b){this._trampolineEnabled?x.call(this,b):this._schedule(function(){b._settlePromises()})}):(g.prototype.invokeLater=v,g.prototype.invoke=y,g.prototype.settlePromises=x),g.prototype._drainQueue=function(b){for(;b.length()>0;){var w=b.shift();if(typeof w=="function"){var S=b.shift(),T=b.shift();w.call(S,T)}else w._settlePromises()}},g.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},g.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},g.prototype._reset=function(){this._isTickUsed=!1},a.exports=g,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var g=!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)},b=function(w,S){S.promiseRejectionQueued||this._reject(w)};c.prototype.bind=function(w){g||(g=!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,b,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 g=s("./util"),v=g.canEvaluate;function y(w){return function(S,T){var P;if(S!=null&&(P=S[T]),typeof P!="function"){var k="Object "+g.classString(S)+" has no method '"+g.toString(T)+"'";throw new p.TypeError(k)}return P}(w,this.pop()).apply(w,this)}function x(w){return w[this]}function b(w){var S=+this;return S<0&&(S=Math.max(0,S+w.length)),w[S]}g.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=b;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 g=s("./util"),v=g.tryCatch,y=g.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var b=this,w=b;b._isCancellable();){if(!b._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var S=b._cancellationParent;if(S==null||!S._isCancellable()){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}b._isFollowing()&&b._followee().cancel(),b._setWillBeCancelled(),w=b,b=S}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(b){return b===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),x.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(b,w){if(g.isArray(b))for(var S=0;S<b.length;++S)this._doInvokeOnCancel(b[S],w);else if(b!==void 0)if(typeof b=="function"){if(!w){var T=v(b).call(this._boundValue());T===y&&(this._attachExtraTrace(T.e),x.throwLater(T.e))}}else b._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var b=this._onCancel();this._unsetOnCancel(),x.invoke(this._doInvokeOnCancel,this,b)},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,g=f.errorObj;return function(v,y,x){return function(b){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(b instanceof T)return p(y).call(w,b)}else if(typeof T=="function"){var P=p(T).call(w,b);if(P===g)return P;if(P)return p(y).call(w,b)}else if(f.isObject(b)){for(var k=h(T),N=0;N<k.length;++N){var D=k[N];if(T[D]!=b[D])continue e}return p(y).call(w,b)}}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(g())}function g(){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,b=c.prototype._peekContext,w=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=x,c.prototype._peekContext=b,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=g,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,g,v=c._getDomain,y=c._async,x=s("./errors").Warning,b=s("./util"),w=b.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,D=!1,V=b.env("BLUEBIRD_DEBUG")!=0,A=!(b.env("BLUEBIRD_WARNINGS")==0||!V&&!b.env("BLUEBIRD_WARNINGS")),W=!(b.env("BLUEBIRD_LONG_STACK_TRACES")==0||!V&&!b.env("BLUEBIRD_LONG_STACK_TRACES")),Y=b.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!b.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:b.domainBind(de,ce):void 0},c.onUnhandledRejectionHandled=function(ce){var de=v();h=typeof ce=="function"?de===null?ce:b.domainBind(de,ce):void 0};var ee=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,ee=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 q=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return b.global.dispatchEvent(ce),function(de,be){var ye=new CustomEvent(de.toLowerCase(),{detail:be,cancelable:!0});return!b.global.dispatchEvent(ye)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),b.global.dispatchEvent(ce),function(de,be){var ye=new Event(de.toLowerCase(),{cancelable:!0});return ye.detail=be,!b.global.dispatchEvent(ye)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),b.global.dispatchEvent(ce),function(de,be){var ye=document.createEvent("CustomEvent");return ye.initCustomEvent(de.toLowerCase(),!1,!0,be),!b.global.dispatchEvent(ye)})}catch{}return function(){return!1}}(),X=b.isNode?function(){return r.emit.apply(r,arguments)}:b.global?function(ce){var de="on"+ce.toLowerCase(),be=b.global[de];return!!be&&(be.apply(b.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ie(ce,de){return{promise:de}}var le={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=X.apply(null,arguments)}catch(ye){y.throwLater(ye),de=!0}var be=!1;try{be=q(ce,le[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: "+b.toString(Ce));ye._attachCancellationCallback(Ce)})}catch(Ce){return Ce}}function U(ce){if(!this._isCancellable())return this;var de=this._onCancel();de!==void 0?b.isArray(de)?de.push(ce):this._setOnCancel([de,ce]):this._setOnCancel(ce)}function te(){return this._onCancelField}function z(ce){this._onCancelField=ce}function Z(){this._cancellationParent=void 0,this._onCancelField=void 0}function ne(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()&&ee()),"warnings"in ce){var de=ce.warnings;Ne.warnings=!!de,Y=Ne.warnings,b.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=Z,c.prototype._propagateFrom=ne,c.prototype._onCancel=te,c.prototype._setOnCancel=z,c.prototype._attachCancellationCallback=U,c.prototype._execute=j,ae=ne,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 ae=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);b.notEnumerableProp(ce,"stack",ye.message+`
|
||
`+ye.stack.join(`
|
||
`)),b.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)||oe(Ce,"",!0)}}function Q(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 je=Ce[ke];if(je===" (No stack trace)"||k.test(je))break}return ke>0&&ye.name!="SyntaxError"&&(Ce=Ce.slice(ke)),Ce}(ce):[" (No stack trace)"],{message:be,stack:ce.name=="SyntaxError"?de:Q(de)}}function oe(ce,de,be){if(typeof console<"u"){var ye;if(b.isObject(ce)){var Ce=ce.stack;ye=de+N(Ce,ce)}else ye=de+String(ce);typeof g=="function"?g(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||oe(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():b.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()}b.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 je=be[de[ye].stack];if(je!==void 0&&je!==ye){je>0&&(de[je-1]._parent=void 0,de[je-1]._length=1),de[ye]._parent=void 0,de[ye]._length=1;var Je=ye>0?de[ye-1]:this;je<ce-1?(Je._parent=de[je+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(Q(Ce.stack.split(`
|
||
`))),Ce=Ce._parent;(function(ke){for(var je=ke[0],Je=1;Je<ke.length;++Je){for(var et=ke[Je],Ge=je.length-1,Vt=je[Ge],Ft=-1,wn=et.length-1;wn>=0;--wn)if(et[wn]===Vt){Ft=wn;break}for(wn=Ft;wn>=0;--wn){var rr=et[wn];if(je[Ge]!==rr)break;je.pop(),Ge--}je=et}})(ye),function(ke){for(var je=0;je<ke.length;++je)(ke[je].length===0||je+1<ke.length&&ke[je][0]===ke[je+1][0])&&(ke.splice(je,1),je--)}(ye),b.notEnumerableProp(ce,"stack",function(ke,je){for(var Je=0;Je<je.length-1;++Je)je[Je].push("From previous event:"),je[Je]=je[Je].join(`
|
||
`);return Je<je.length&&(je[Je]=je[Je].join(`
|
||
`)),ke+`
|
||
`+je.join(`
|
||
`)}(be,ye)),b.notEnumerableProp(ce,"__stackCleaned__",!0)}};var Re=function(){var ce=/^\s*at\s*/,de=function(ke,je){return typeof ke=="string"?ke:je.name!==void 0&&je.message!==void 0?je.toString():Le(je)};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,je){Error.stackTraceLimit+=6,be(ke,je),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,je){return typeof ke=="string"?ke:typeof je!="object"&&typeof je!="function"||je.name===void 0||je.message===void 0?Le(je):je.toString()},null):(k=ce,N=de,function(ke){Error.stackTraceLimit+=6;try{throw new Error}catch(je){ke.stack=je.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(g=function(ce){console.warn(ce)},b.isNode&&r.stderr.isTTY?g=function(ce,de){var be=de?"\x1B[33m":"\x1B[31m";console.warn(be+ce+`\x1B[0m
|
||
`)}:b.isNode||typeof new Error().stack!="string"||(g=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 ae},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="",je="";if(de._trace){for(var Je=de._trace.stack.split(`
|
||
`),et=Q(Je),Ge=et.length-1;Ge>=0;--Ge){var Vt=et[Ge];if(!T.test(Vt)){var Ft=Vt.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&&(je=`
|
||
`+Je[Ge-1]);break}}}var rr="a promise was created in a "+be+"handler "+ke+"but was not returned from it, see http://goo.gl/rRqMUw"+je;ye._warn(rr,!0,de)}},setBounds:function(ce,de){if(ue()){for(var be,ye,Ce=ce.stack.split(`
|
||
`),ke=de.stack.split(`
|
||
`),je=-1,Je=-1,et=0;et<Ce.length;++et)if(Ge=Te(Ce[et])){be=Ge.fileName,je=Ge.line;break}for(et=0;et<ke.length;++et){var Ge;if(Ge=Te(ke[et])){ye=Ge.fileName,Je=Ge.line;break}}je<0||Je<0||!be||!ye||be!==ye||je>=Je||(ve=function(Vt){if(S.test(Vt))return!0;var Ft=Te(Vt);return!!(Ft&&Ft.fileName===be&&je<=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:q,fireGlobalEvent:X}}},{"./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 g=arguments[1];return this.caught(p,function(){throw g})},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 g=arguments[1];return g instanceof c&&g.suppressUnhandledRejections(),this.caught(p,function(){return g})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function g(){return p(this)}c.prototype.each=function(v){return h(this,v,f,0)._then(g,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(g,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,g=s("./util"),v=g.inherits,y=g.notEnumerableProp;function x(A,W){function Y(ee){if(!(this instanceof Y))return new Y(ee);y(this,"message",typeof ee=="string"?ee:W),y(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(Y,Error),Y}var b=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 ee=this[Y]===this?"[Circular AggregateError]":this[Y]+"",q=ee.split(`
|
||
`),X=0;X<q.length;++X)q[X]=A+q[X];W+=(ee=q.join(`
|
||
`))+`
|
||
`}return N--,W},v(D,Error);var V=Error.__BluebirdErrorTypes__;V||(V=p({CancellationError:w,TimeoutError:S,OperationalError:D,RejectionError:D,AggregateError:T}),h.defineProperty(Error,"__BluebirdErrorTypes__",{value:V,writable:!1,enumerable:!1,configurable:!1})),a.exports={Error,TypeError:c,RangeError:f,CancellationError:V.CancellationError,OperationalError:V.OperationalError,TimeoutError:V.TimeoutError,AggregateError:V.AggregateError,Warning:b}},{"./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,g=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:g,names:g,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,g){return h(this,p,g,f)},c.filter=function(p,g,v){return h(p,g,v,f)}}},{}],15:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),g=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 b(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 V=this.isFinallyHandler()?D.call(N._boundValue()):D.call(N._boundValue(),k);if(V===h)return V;if(V!==void 0){N._setReturnedNonUndefined();var A=f(V,N);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var W=new g("late cancellation observer");return N._attachExtraTrace(W),v.e=W,v}A.isPending()&&A._attachCancellationCallback(new b(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},b.prototype._resultCancelled=function(){w(this.finallyHandler)},c.prototype._passThrough=function(k,N,D,V){return typeof k!="function"?this.then():this._then(D,V,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,V=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)));V[A++]=W}V.length=A;var Y=arguments[D];return this._passThrough(y(V,Y,this),1,void 0,P)},x}},{"./catch_filter":7,"./util":36}],16:[function(s,a,l){a.exports=function(c,f,h,p,g,v){var y=s("./errors").TypeError,x=s("./util"),b=x.errorObj,w=x.tryCatch,S=[];function T(P,k,N,D){if(v.cancellation()){var V=new c(h),A=this._finallyPromise=new c(h);this._promise=V.lastly(function(){return A}),V._captureStackTrace(),V._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,g),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===b)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 ee=0;ee<W.length;++ee){Y._pushContext();var q=w(W[ee])(A);if(Y._popContext(),q===b){Y._pushContext();var X=c.reject(b.e);return Y._popContext(),X}var ie=p(q,Y);if(ie instanceof c)return ie}return null}(D,this._yieldHandlers,this._promise))!==null){var V=(D=D._target())._bitField;50397184&V?33554432&V?c._async.invoke(this._promiseFulfilled,this,D._value()):16777216&V?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,V=new Error().stack;return function(){var A=P.apply(this,arguments),W=new D(void 0,void 0,N,V),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,g,v){var y=s("./util");y.canEvaluate,y.tryCatch,y.errorObj,c.join=function(){var x,b=arguments.length-1;b>0&&typeof arguments[b]=="function"&&(x=arguments[b]);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,g,v){var y=c._getDomain,x=s("./util"),b=x.tryCatch,w=x.errorObj,S=c._async;function T(k,N,D,V){this.constructor$(k),this._promise._captureStackTrace();var A=y();this._callback=A===null?N:x.domainBind(A,N),this._preservedValues=V===g?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,V){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,V).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,V=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,ee=this._callback,q=Y._boundValue();Y._pushContext();var X=b(ee).call(q,k,N,V),ie=Y._popContext();if(v.checkForgottenReturns(X,ie,A!==null?"Promise.filter":"Promise.map",Y),X===w)return this._reject(X.e),!0;var le=p(X,this._promise);if(le instanceof c){var G=(le=le._target())._bitField;if(!(50397184&G))return W>=1&&this._inFlight++,D[N]=le,le._proxy(this,-1*(N+1)),!1;if(!(33554432&G))return 16777216&G?(this._reject(le._reason()),!0):(this._cancel(),!0);X=le._value()}D[N]=X}return++this._totalResolved>=V&&(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 V=k.pop();this._promiseFulfilled(D[V],V)}},T.prototype._filter=function(k,N){for(var D=N.length,V=new Array(D),A=0,W=0;W<D;++W)k[W]&&(V[A++]=N[W]);V.length=A,this._resolve(V)},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,V){return P(k,N,D,V)}}},{"./util":36}],19:[function(s,a,l){a.exports=function(c,f,h,p,g){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 b=new c(f);b._captureStackTrace(),b._pushContext();var w=y(x).apply(this,arguments),S=b._popContext();return g.checkForgottenReturns(w,S,"Promise.method",b),b._resolveFromSyncValue(w),b}},c.attempt=c.try=function(x){if(typeof x!="function")return p("expecting a function but got "+v.classString(x));var b,w=new c(f);if(w._captureStackTrace(),w._pushContext(),arguments.length>1){g.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],T=arguments[2];b=v.isArray(S)?y(x).apply(T,S):y(x).call(T,S)}else b=y(x)();var P=w._popContext();return g.checkForgottenReturns(b,P,"Promise.try",w),w._resolveFromSyncValue(b),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"),g=/^(?: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 b=p.keys(y),w=0;w<b.length;++w){var S=b[w];g.test(S)||(x[S]=y[S])}return x}return c.markAsOriginatingFromRejection(y),y}a.exports=function(y,x){return function(b,w){if(y!==null){if(b){var S=v(f(b));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,g=f.errorObj;function v(b,w){if(!f.isArray(b))return y.call(this,b,w);var S=p(w).apply(this._boundValue(),[null].concat(b));S===g&&h.throwLater(S.e)}function y(b,w){var S=this._boundValue(),T=b===void 0?p(w).call(S,null):p(w).call(S,null,b);T===g&&h.throwLater(T.e)}function x(b,w){if(!b){var S=new Error(b+"");S.cause=b,b=S}var T=p(w).call(this._boundValue(),b);T===g&&h.throwLater(T.e)}c.prototype.asCallback=c.prototype.nodeify=function(b,w){if(typeof b=="function"){var S=y;w!==void 0&&Object(w).spread&&(S=v),this._then(S,x,void 0,this,b)}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(z){return F.reject(new T(z))};function p(){}var g,v={},y=s("./util");g=y.isNode?function(){var z=r.domain;return z===void 0&&(z=null),z}:function(){return null},y.notEnumerableProp(F,"_getDomain",g);var x=s("./es5"),b=s("./async"),w=new b;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={},V=s("./thenables")(F,k),A=s("./promise_array")(F,k,V,h,p),W=s("./context")(F),Y=W.create,ee=s("./debuggability")(F,W),q=(ee.CapturedTrace,s("./finally")(F,V,D)),X=s("./catch_filter")(D),ie=s("./nodeback"),le=y.errorObj,G=y.tryCatch;function F(z){z!==k&&function(Z,ne){if(Z==null||Z.constructor!==F)throw new T(`the promise constructor cannot be invoked directly
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);if(typeof ne!="function")throw new T("expecting a function but got "+y.classString(ne))}(this,z),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(z),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function j(z){this.promise._resolveCallback(z)}function U(z){this.promise._rejectCallback(z,!1)}function te(z){var Z=new F(k);Z._fulfillmentHandler0=z,Z._rejectionHandler0=z,Z._promise0=z,Z._receiver0=z}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(z){var Z=arguments.length;if(Z>1){var ne,ae=new Array(Z-1),pe=0;for(ne=0;ne<Z-1;++ne){var O=arguments[ne];if(!y.isObject(O))return h("Catch statement predicate: expecting an object but got "+y.classString(O));ae[pe++]=O}return ae.length=pe,z=arguments[ne],this.then(void 0,X(ae,z,this))}return this.then(void 0,z)},F.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},F.prototype.then=function(z,Z){if(ee.warnings()&&arguments.length>0&&typeof z!="function"&&typeof Z!="function"){var ne=".then() only accepts functions but was passed: "+y.classString(z);arguments.length>1&&(ne+=", "+y.classString(Z)),this._warn(ne)}return this._then(z,Z,void 0,void 0,void 0)},F.prototype.done=function(z,Z){this._then(z,Z,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(z){return typeof z!="function"?h("expecting a function but got "+y.classString(z)):this.all()._then(z,void 0,void 0,N,void 0)},F.prototype.toJSON=function(){var z={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(z.fulfillmentValue=this.value(),z.isFulfilled=!0):this.isRejected()&&(z.rejectionReason=this.reason(),z.isRejected=!0),z},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(z){return this.caught(y.originatesFromRejection,z)},F.getNewLibraryCopy=a.exports,F.is=function(z){return z instanceof F},F.fromNode=F.fromCallback=function(z){var Z=new F(k);Z._captureStackTrace();var ne=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=G(z)(ie(Z,ne));return ae===le&&Z._rejectCallback(ae.e,!0),Z._isFateSealed()||Z._setAsyncGuaranteed(),Z},F.all=function(z){return new A(z).promise()},F.cast=function(z){var Z=V(z);return Z instanceof F||((Z=new F(k))._captureStackTrace(),Z._setFulfilled(),Z._rejectionHandler0=z),Z},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(z){var Z=new F(k);return Z._captureStackTrace(),Z._rejectCallback(z,!0),Z},F.setScheduler=function(z){if(typeof z!="function")throw new T("expecting a function but got "+y.classString(z));return w.setScheduler(z)},F.prototype._then=function(z,Z,ne,ae,pe){var O=pe!==void 0,R=O?pe:new F(k),I=this._target(),Q=I._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&Q?this._boundValue():I===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var K=g();if(50397184&Q){var oe,ge,Le=I._settlePromiseCtx;33554432&Q?(ge=I._rejectionHandler0,oe=z):16777216&Q?(ge=I._fulfillmentHandler0,oe=Z,I._unsetRejectionIsUnhandled()):(Le=I._settlePromiseLateCancellationObserver,ge=new P("late cancellation observer"),I._attachExtraTrace(ge),oe=Z),w.invoke(Le,I,{handler:K===null?oe:typeof oe=="function"&&y.domainBind(K,oe),promise:R,receiver:ae,value:ge})}else I._addCallbacks(z,Z,R,ae,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(z){this._bitField=-65536&this._bitField|65535&z},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(z){var Z=z===0?this._receiver0:this[4*z-4+3];if(Z!==v)return Z===void 0&&this._isBound()?this._boundValue():Z},F.prototype._promiseAt=function(z){return this[4*z-4+2]},F.prototype._fulfillmentHandlerAt=function(z){return this[4*z-4+0]},F.prototype._rejectionHandlerAt=function(z){return this[4*z-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(z){z._bitField;var Z=z._fulfillmentHandler0,ne=z._rejectionHandler0,ae=z._promise0,pe=z._receiverAt(0);pe===void 0&&(pe=v),this._addCallbacks(Z,ne,ae,pe,null)},F.prototype._migrateCallbackAt=function(z,Z){var ne=z._fulfillmentHandlerAt(Z),ae=z._rejectionHandlerAt(Z),pe=z._promiseAt(Z),O=z._receiverAt(Z);O===void 0&&(O=v),this._addCallbacks(ne,ae,pe,O,null)},F.prototype._addCallbacks=function(z,Z,ne,ae,pe){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=ne,this._receiver0=ae,typeof z=="function"&&(this._fulfillmentHandler0=pe===null?z:y.domainBind(pe,z)),typeof Z=="function"&&(this._rejectionHandler0=pe===null?Z:y.domainBind(pe,Z));else{var R=4*O-4;this[R+2]=ne,this[R+3]=ae,typeof z=="function"&&(this[R+0]=pe===null?z:y.domainBind(pe,z)),typeof Z=="function"&&(this[R+1]=pe===null?Z:y.domainBind(pe,Z))}return this._setLength(O+1),O},F.prototype._proxy=function(z,Z){this._addCallbacks(void 0,void 0,Z,z,null)},F.prototype._resolveCallback=function(z,Z){if(!(117506048&this._bitField)){if(z===this)return this._rejectCallback(c(),!1);var ne=V(z,this);if(!(ne instanceof F))return this._fulfill(z);Z&&this._propagateFrom(ne,2);var ae=ne._target();if(ae!==this){var pe=ae._bitField;if(50397184&pe)if(33554432&pe)this._fulfill(ae._value());else if(16777216&pe)this._reject(ae._reason());else{var I=new P("late cancellation observer");ae._attachExtraTrace(I),this._reject(I)}else{var O=this._length();O>0&&ae._migrateCallback0(this);for(var R=1;R<O;++R)ae._migrateCallbackAt(this,R);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(c())}},F.prototype._rejectCallback=function(z,Z,ne){var ae=y.ensureErrorObject(z),pe=ae===z;if(!pe&&!ne&&ee.warnings()){var O="a promise was rejected with a non-error: "+y.classString(z);this._warn(O,!0)}this._attachExtraTrace(ae,!!Z&&pe),this._reject(z)},F.prototype._resolveFromExecutor=function(z){if(z!==k){var Z=this;this._captureStackTrace(),this._pushContext();var ne=!0,ae=this._execute(z,function(pe){Z._resolveCallback(pe)},function(pe){Z._rejectCallback(pe,ne)});ne=!1,this._popContext(),ae!==void 0&&Z._rejectCallback(ae,!0)}},F.prototype._settlePromiseFromHandler=function(z,Z,ne,ae){var pe=ae._bitField;if(!(65536&pe)){var O;ae._pushContext(),Z===N?ne&&typeof ne.length=="number"?O=G(z).apply(this._boundValue(),ne):(O=le).e=new T("cannot .spread() a non-array: "+y.classString(ne)):O=G(z).call(Z,ne);var R=ae._popContext();!(65536&(pe=ae._bitField))&&(O===D?ae._reject(ne):O===le?ae._rejectCallback(O.e,!1):(ee.checkForgottenReturns(O,R,"",ae,this),ae._resolveCallback(O)))}},F.prototype._target=function(){for(var z=this;z._isFollowing();)z=z._followee();return z},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(z){this._rejectionHandler0=z},F.prototype._settlePromise=function(z,Z,ne,ae){var pe=z instanceof F,O=this._bitField,R=(134217728&O)!=0;65536&O?(pe&&z._invokeInternalOnCancel(),ne instanceof q&&ne.isFinallyHandler()?(ne.cancelPromise=z,G(Z).call(ne,ae)===le&&z._reject(le.e)):Z===f?z._fulfill(f.call(ne)):ne instanceof p?ne._promiseCancelled(z):pe||z instanceof A?z._cancel():ne.cancel()):typeof Z=="function"?pe?(R&&z._setAsyncGuaranteed(),this._settlePromiseFromHandler(Z,ne,ae,z)):Z.call(ne,ae,z):ne instanceof p?ne._isResolved()||(33554432&O?ne._promiseFulfilled(ae,z):ne._promiseRejected(ae,z)):pe&&(R&&z._setAsyncGuaranteed(),33554432&O?z._fulfill(ae):z._reject(ae))},F.prototype._settlePromiseLateCancellationObserver=function(z){var Z=z.handler,ne=z.promise,ae=z.receiver,pe=z.value;typeof Z=="function"?ne instanceof F?this._settlePromiseFromHandler(Z,ae,pe,ne):Z.call(ae,pe,ne):ne instanceof F&&ne._reject(pe)},F.prototype._settlePromiseCtx=function(z){this._settlePromise(z.promise,z.handler,z.receiver,z.value)},F.prototype._settlePromise0=function(z,Z,ne){var ae=this._promise0,pe=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,z,pe,Z)},F.prototype._clearCallbackDataAtIndex=function(z){var Z=4*z-4;this[Z+2]=this[Z+3]=this[Z+0]=this[Z+1]=void 0},F.prototype._fulfill=function(z){var Z=this._bitField;if(!((117506048&Z)>>>16)){if(z===this){var ne=c();return this._attachExtraTrace(ne),this._reject(ne)}this._setFulfilled(),this._rejectionHandler0=z,(65535&Z)>0&&(134217728&Z?this._settlePromises():w.settlePromises(this))}},F.prototype._reject=function(z){var Z=this._bitField;if(!((117506048&Z)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=z,this._isFinal())return w.fatalError(z,y.isNode);(65535&Z)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(z,Z){for(var ne=1;ne<z;ne++){var ae=this._fulfillmentHandlerAt(ne),pe=this._promiseAt(ne),O=this._receiverAt(ne);this._clearCallbackDataAtIndex(ne),this._settlePromise(pe,ae,O,Z)}},F.prototype._rejectPromises=function(z,Z){for(var ne=1;ne<z;ne++){var ae=this._rejectionHandlerAt(ne),pe=this._promiseAt(ne),O=this._receiverAt(ne);this._clearCallbackDataAtIndex(ne),this._settlePromise(pe,ae,O,Z)}},F.prototype._settlePromises=function(){var z=this._bitField,Z=65535&z;if(Z>0){if(16842752&z){var ne=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ne,z),this._rejectPromises(Z,ne)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,z),this._fulfillPromises(Z,ae)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var z=this._bitField;return 33554432&z?this._rejectionHandler0:16777216&z?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return ee.deprecated("Promise.defer","new Promise"),{promise:new F(k),resolve:j,reject:U}},y.notEnumerableProp(F,"_makeSelfResolutionError",c),s("./method")(F,k,V,h,ee),s("./bind")(F,k,V,ee),s("./cancel")(F,A,h,ee),s("./direct_resolve")(F),s("./synchronous_inspection")(F),s("./join")(F,A,V,k,w,g),F.Promise=F,F.version="3.5.1",s("./map.js")(F,A,h,V,k,ee),s("./call_get.js")(F),s("./using.js")(F,h,V,Y,k,ee),s("./timers.js")(F,k,ee),s("./generators.js")(F,h,k,V,p,ee),s("./nodeify.js")(F),s("./promisify.js")(F,k),s("./props.js")(F,A,V,h),s("./race.js")(F,k,V,h),s("./reduce.js")(F,A,h,V,k,ee),s("./settle.js")(F,A,ee),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),te({a:1}),te({b:2}),te({c:3}),te(1),te(function(){}),te(void 0),te(!1),te(new F(k)),ee.setBounds(b.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,g){var v=s("./util");function y(x){var b=this._promise=new c(f);x instanceof c&&b._propagateFrom(x,3),b._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(y,g),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(b,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 b=this.getActualLength(x.length);this._length=b,this._values=this.shouldCopyValues()?new Array(b):this._values;for(var w=this._promise,S=!1,T=null,P=0;P<b;++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,b){return this._values[b]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var b=0;b<x.length;++b)x[b]instanceof c&&x[b].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"),g=s("./nodeback"),v=p.withAppended,y=p.maybeWrapAsError,x=p.canEvaluate,b=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,ee,q){var X=p.getDataPropertyOrDefault(Y,ee+q,w);return!!X&&k(X)}function D(Y,ee,q,X){for(var ie=p.inheritedDataKeys(Y),le=[],G=0;G<ie.length;++G){var F=ie[G],j=Y[F],U=X===T||T(F);typeof j!="function"||k(j)||N(Y,F,ee)||!X(F,j,Y,U)||le.push(F,j)}return function(te,z,Z){for(var ne=0;ne<te.length;ne+=2){var ae=te[ne];if(Z.test(ae)){for(var pe=ae.replace(Z,""),O=0;O<te.length;O+=2)if(te[O]===pe)throw new b(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",z))}}}(le,ee,q),le}var V=function(Y){return Y.replace(/([$])/,"\\$")},A=x?void 0:function(Y,ee,q,X,ie,le){var G=function(){return this}(),F=Y;function j(){var U=ee;ee===h&&(U=this);var te=new c(f);te._captureStackTrace();var z=typeof F=="string"&&this!==G?this[F]:Y,Z=g(te,le);try{z.apply(U,v(arguments,Z))}catch(ne){te._rejectCallback(y(ne),!0,!0)}return te._isFateSealed()||te._setAsyncGuaranteed(),te}return typeof F=="string"&&(Y=X),p.notEnumerableProp(j,"__isPromisified__",!0),j};function W(Y,ee,q,X,ie){for(var le=new RegExp(V(ee)+"$"),G=D(Y,ee,le,q),F=0,j=G.length;F<j;F+=2){var U=G[F],te=G[F+1],z=U+ee;if(X===A)Y[z]=A(U,h,U,te,ee,ie);else{var Z=X(te,function(){return A(U,h,U,te,ee,ie)});p.notEnumerableProp(Z,"__isPromisified__",!0),Y[z]=Z}}return p.toFastProperties(Y),Y}c.promisify=function(Y,ee){if(typeof Y!="function")throw new b("expecting a function but got "+p.classString(Y));if(k(Y))return Y;var q=(ee=Object(ee)).context===void 0?h:ee.context,X=!!ee.multiArgs,ie=function(le,G,F){return A(le,G,void 0,le,null,X)}(Y,q);return p.copyDescriptors(Y,ie,P),ie},c.promisifyAll=function(Y,ee){if(typeof Y!="function"&&typeof Y!="object")throw new b(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var q=!!(ee=Object(ee)).multiArgs,X=ee.suffix;typeof X!="string"&&(X="Async");var ie=ee.filter;typeof ie!="function"&&(ie=T);var le=ee.promisifier;if(typeof le!="function"&&(le=A),!p.isIdentifier(X))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,X,ie,le,q),W(j,X,ie,le,q))}return W(Y,X,ie,le,q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,a,l){a.exports=function(c,f,h,p){var g,v=s("./util"),y=v.isObject,x=s("./es5");typeof Map=="function"&&(g=Map);var b=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(g!==void 0&&T instanceof g)P=b(T),k=!0;else{var N=x.keys(T),D=N.length;P=new Array(2*D);for(var V=0;V<D;++V){var A=N[V];P[V]=T[A],P[V+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 g,Y=A.length/2|0,ee=0;ee<Y;++ee){var q=A[Y+ee],X=A[ee];W.set(q,X)}return W}(this._values);else{k={};for(var N=this.length(),D=0,V=this.length();D<V;++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 g=this.length()+3;if(this._willBeOverCapacity(g))return this._pushOne(f),this._pushOne(h),void this._pushOne(p);var v=this._front+g-3;this._checkCapacity(g);var y=this._capacity-1;this[v+0&y]=f,this[v+1&y]=h,this[v+2&y]=p,this._length=g},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,g,v,y,x){for(var b=0;b<x;++b)v[b+y]=p[b+0],p[b+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 g=s("./util"),v=function(x){return x.then(function(b){return y(b,x)})};function y(x,b){var w=h(x);if(w instanceof c)return v(w);if((x=g.asArray(x))===null)return p("expecting an array or an iterable object but got "+g.classString(x));var S=new c(f);b!==void 0&&S._propagateFrom(b,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,g,v){var y=c._getDomain,x=s("./util"),b=x.tryCatch;function w(N,D,V,A){this.constructor$(N);var W=y();this._fn=W===null?D:x.domainBind(W,D),V!==void 0&&(V=c.resolve(V))._attachCancellationCallback(this),this._initialValue=V,this._currentCancellable=null,this._eachValues=A===g?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,V,A){return typeof D!="function"?h("expecting a function but got "+x.classString(D)):new w(N,D,V,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,V=this.array,A=V._promise,W=b(V._fn);A._pushContext(),(D=V._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&&(V._currentCancellable=D);var Y=A._popContext();return v.checkForgottenReturns(D,Y,V._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!==g&&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,V;this._values=N;var A=N.length;if(this._initialValue!==void 0?(D=this._initialValue,V=0):(D=c.resolve(N[0]),V=1),this._currentCancellable=D,!D.isRejected())for(;V<A;++V){var W={accum:null,value:N[V],index:V,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,V,A){return T(N,D,V,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,g=r.nextTick;c=f.isRecentNode?function(y){p.call(i,y)}:function(y){g.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},b=!1,w=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),b=!1}).observe(w,x),function(S){var T=new MutationObserver(function(){T.disconnect(),S()});T.observe(y,x),b||(b=!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 g(v){this.constructor$(v)}s("./util").inherits(g,f),g.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},g.prototype._promiseFulfilled=function(v,y){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(y,x)},g.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 g(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"),g=s("./errors").RangeError,v=s("./errors").AggregateError,y=p.isArray,x={};function b(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 b(S),k=P.promise();return P.setHowMany(T),P.init(),k}p.inherits(b,f),b.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([])},b.prototype.init=function(){this._initialized=!0,this._init()},b.prototype.setUnwrap=function(){this._unwrap=!0},b.prototype.howMany=function(){return this._howMany},b.prototype.setHowMany=function(S){this._howMany=S},b.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)},b.prototype._promiseRejected=function(S){return this._addRejected(S),this._checkOutcome()},b.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},b.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},b.prototype._fulfilled=function(){return this._totalResolved},b.prototype._rejected=function(){return this._values.length-this.length()},b.prototype._addRejected=function(S){this._values.push(S)},b.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},b.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},b.prototype._getRangeError=function(S){var T="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new g(T)},b.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=b}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.exports=function(c){function f(b){b!==void 0?(b=b._target(),this._bitField=b._bitField,this._settledValueField=b._isFateSealed()?b._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var 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()},g=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 g.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 b=this._target();return b._unsetRejectionIsUnhandled(),p.call(b)},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,g=h.isObject,v={}.hasOwnProperty;return function(y,x){if(g(y)){if(y instanceof c)return y;var b=function(S){try{return function(T){return T.then}(S)}catch(T){return p.e=T,p}}(y);if(b===p){x&&x._pushContext();var w=c.reject(b.e);return x&&x._popContext(),w}if(typeof b=="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,V=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&&V===p&&(k._rejectCallback(V.e,!0,!0),k=null),N}(y,b,x)}return y}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),g=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 b(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,V,A){var W;W=typeof V!="string"?V instanceof Error?V:new g("operation timed out"):new g(V),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(b,w,void 0,N,void 0))._setOnCancel(N)):P=this._then(b,w,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,g,v){var y=s("./util"),x=s("./errors").TypeError,b=s("./util").inherits,w=y.errorObj,S=y.tryCatch,T={};function P(W){setTimeout(function(){throw W},0)}function k(W,Y){var ee=0,q=W.length,X=new c(g);return function ie(){if(ee>=q)return X._fulfill();var le=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[ee++]);if(le instanceof c&&le._isDisposable()){try{le=h(le._getDisposer().tryDispose(Y),W.promise)}catch(G){return P(G)}if(le instanceof c)return le._then(ie,P,null,null,null)}ie()}(),X}function N(W,Y,ee){this._data=W,this._promise=Y,this._context=ee}function D(W,Y,ee){this.constructor$(W,Y,ee)}function V(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(),ee=this._context;ee!==void 0&&ee._pushContext();var q=Y!==T?this.doDispose(Y,W):null;return ee!==void 0&&ee._popContext(),this._promise._unsetDisposable(),this._data=null,q},N.isDisposer=function(W){return W!=null&&typeof W.resource=="function"&&typeof W.tryDispose=="function"},b(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 ee=this[Y];ee instanceof c&&ee.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,ee=arguments[W-1];if(typeof ee!="function")return f("expecting a function but got "+y.classString(ee));var q=!0;W===2&&Array.isArray(arguments[0])?(W=(Y=arguments[0]).length,q=!1):(Y=arguments,W--);for(var X=new A(W),ie=0;ie<W;++ie){var le=Y[ie];if(N.isDisposer(le)){var G=le;(le=le.promise())._setDisposable(G)}else{var F=h(le);F instanceof c&&(le=F._then(V,null,null,{resources:X,index:ie},void 0))}X[ie]=le}var j=new Array(X.length);for(ie=0;ie<j.length;++ie)j[ie]=c.resolve(X[ie]).reflect();var U=c.all(j).then(function(z){for(var Z=0;Z<z.length;++Z){var ne=z[Z];if(ne.isRejected())return w.e=ne.error(),w;if(!ne.isFulfilled())return void U.cancel();z[Z]=ne.value()}te._pushContext(),ee=S(ee);var ae=q?ee.apply(void 0,z):ee(z),pe=te._popContext();return v.checkForgottenReturns(ae,pe,"Promise.using",te),ae}),te=U.lastly(function(){var z=new c.PromiseInspection(U);return k(X,z)});return X.promise=te,te._setOnCancel(X),te},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:{}},g=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var q=c;return c=null,q.apply(this,arguments)}catch(X){return p.e=X,p}}function y(q){return q==null||q===!0||q===!1||typeof q=="string"||typeof q=="number"}function x(q,X,ie){if(y(q))return q;var le={value:ie,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(q,X,le),q}var b=function(){var q=[Array.prototype,Object.prototype,Function.prototype],X=function(G){for(var F=0;F<q.length;++F)if(q[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&&!X(G);){var U;try{U=ie(G)}catch{return F}for(var te=0;te<U.length;++te){var z=U[te];if(!j[z]){j[z]=!0;var Z=Object.getOwnPropertyDescriptor(G,z);Z!=null&&Z.get==null&&Z.set==null&&F.push(z)}}G=f.getPrototypeOf(G)}return F}}var le={}.hasOwnProperty;return function(G){if(X(G))return[];var F=[];e:for(var j in G)if(le.call(G,j))F.push(j);else{for(var U=0;U<q.length;++U)if(le.call(q[U],j))continue e;F.push(j)}return F}}(),w=/this\s*\.\s*\S+\s*=/,S=/^[a-z$_][a-z$_0-9]*$/i;function T(q){try{return q+""}catch{return"[no string representation]"}}function P(q){return q instanceof Error||q!==null&&typeof q=="object"&&typeof q.message=="string"&&typeof q.name=="string"}function k(q){return P(q)&&f.propertyIsWritable(q,"stack")}var N="stack"in new Error?function(q){return k(q)?q:new Error(T(q))}:function(q){if(k(q))return q;try{throw new Error(T(q))}catch(X){return X}};function D(q){return{}.toString.call(q)}var V=function(q){return f.isArray(q)?q:null};if(typeof Symbol<"u"&&Symbol.iterator){var A=typeof Array.from=="function"?function(q){return Array.from(q)}:function(q){for(var X,ie=[],le=q[Symbol.iterator]();!(X=le.next()).done;)ie.push(X.value);return ie};V=function(q){return f.isArray(q)?q:q!=null&&typeof q[Symbol.iterator]=="function"?A(q):null}}var W=r!==void 0&&D(r).toLowerCase()==="[object process]",Y=r!==void 0&&r.env!==void 0,ee={isClass:function(q){try{if(typeof q=="function"){var X=f.names(q.prototype),ie=f.isES5&&X.length>1,le=X.length>0&&!(X.length===1&&X[0]==="constructor"),G=w.test(q+"")&&f.names(q).length>0;if(ie||le||G)return!0}return!1}catch{return!1}},isIdentifier:function(q){return S.test(q)},inheritedDataKeys:b,getDataPropertyOrDefault:function(q,X,ie){if(!f.isES5)return{}.hasOwnProperty.call(q,X)?q[X]:void 0;var le=Object.getOwnPropertyDescriptor(q,X);return le!=null?le.get==null&&le.set==null?le.value:ie:void 0},thrower:function(q){throw q},isArray:f.isArray,asArray:V,notEnumerableProp:x,isPrimitive:y,isObject:function(q){return typeof q=="function"||typeof q=="object"&&q!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(q){return c=q,v},inherits:function(q,X){var ie={}.hasOwnProperty;function le(){for(var G in this.constructor=q,this.constructor$=X,X.prototype)ie.call(X.prototype,G)&&G.charAt(G.length-1)!=="$"&&(this[G+"$"]=X.prototype[G])}return le.prototype=X.prototype,q.prototype=new le,q.prototype},withAppended:function(q,X){var ie,le=q.length,G=new Array(le+1);for(ie=0;ie<le;++ie)G[ie]=q[ie];return G[ie]=X,G},maybeWrapAsError:function(q){return y(q)?new Error(T(q)):q},toFastProperties:function(q){return q},filledRange:function(q,X,ie){for(var le=new Array(q),G=0;G<q;++G)le[G]=X+G+ie;return le},toString:T,canAttachTrace:k,ensureErrorObject:N,originatesFromRejection:function(q){return q!=null&&(q instanceof Error.__BluebirdErrorTypes__.OperationalError||q.isOperational===!0)},markAsOriginatingFromRejection:function(q){try{x(q,"isOperational",!0)}catch{}},classString:D,copyDescriptors:function(q,X,ie){for(var le=f.names(q),G=0;G<le.length;++G){var F=le[G];if(ie(F))try{f.defineProperty(X,F,f.getDescriptor(q,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:W,hasEnvVariables:Y,env:function(q){return Y?r.env[q]:void 0},global:g,getNativePromise:function(){if(typeof Promise=="function")try{var q=new Promise(function(){});if({}.toString.call(q)==="[object Promise]")return Promise}catch{}},domainBind:function(q,X){return q.bind(X)}};ee.isRecentNode=ee.isNode&&function(){var q=r.versions.node.split(".").map(Number);return q[0]===0&&q[1]>10||q[0]>0}(),ee.isNode&&ee.toFastProperties(r);try{throw new Error}catch(q){ee.lastLineError=q}a.exports=ee},{"./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,U){return j.listeners(U).length},c=n(24),f=n(7).Buffer,h=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var g=n(41),v=void 0;v=g&&g.debuglog?g.debuglog("stream"):function(){};var y,x=n(42),b=n(25);p.inherits(T,c);var w=["error","close","destroy","pause","resume"];function S(j,U){s=s||n(1),j=j||{};var te=U instanceof s;this.objectMode=!!j.objectMode,te&&(this.objectMode=this.objectMode||!!j.readableObjectMode);var z=j.highWaterMark,Z=j.readableHighWaterMark,ne=this.objectMode?16:16384;this.highWaterMark=z||z===0?z:te&&(Z||Z===0)?Z:ne,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,U,te,z,Z){var ne,ae=j._readableState;return U===null?(ae.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,V(pe)}}(j,ae)):(Z||(ne=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}(ae,U)),ne?j.emit("error",ne):ae.objectMode||U&&U.length>0?(typeof U=="string"||ae.objectMode||Object.getPrototypeOf(U)===f.prototype||(U=function(pe){return f.from(pe)}(U)),z?ae.endEmitted?j.emit("error",new Error("stream.unshift() after end event")):k(j,ae,U,!0):ae.ended?j.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!te?(U=ae.decoder.write(U),ae.objectMode||U.length!==0?k(j,ae,U,!1):W(j,ae)):k(j,ae,U,!1))):z||(ae.reading=!1)),function(pe){return!pe.ended&&(pe.needReadable||pe.length<pe.highWaterMark||pe.length===0)}(ae)}function k(j,U,te,z){U.flowing&&U.length===0&&!U.sync?(j.emit("data",te),j.read(0)):(U.length+=U.objectMode?1:te.length,z?U.buffer.unshift(te):U.buffer.push(te),U.needReadable&&V(j)),W(j,U)}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=b.destroy,T.prototype._undestroy=b.undestroy,T.prototype._destroy=function(j,U){this.push(null),U(j)},T.prototype.push=function(j,U){var te,z=this._readableState;return z.objectMode?te=!0:typeof j=="string"&&((U=U||z.defaultEncoding)!==z.encoding&&(j=f.from(j,U),U=""),te=!0),P(this,j,U,!1,te)},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,U){return j<=0||U.length===0&&U.ended?0:U.objectMode?1:j!=j?U.flowing&&U.length?U.buffer.head.data.length:U.length:(j>U.highWaterMark&&(U.highWaterMark=function(te){return te>=N?te=N:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}(j)),j<=U.length?j:U.ended?U.length:(U.needReadable=!0,0))}function V(j){var U=j._readableState;U.needReadable=!1,U.emittedReadable||(v("emitReadable",U.flowing),U.emittedReadable=!0,U.sync?o.nextTick(A,j):A(j))}function A(j){v("emit readable"),j.emit("readable"),X(j)}function W(j,U){U.readingMore||(U.readingMore=!0,o.nextTick(Y,j,U))}function Y(j,U){for(var te=U.length;!U.reading&&!U.flowing&&!U.ended&&U.length<U.highWaterMark&&(v("maybeReadMore read 0"),j.read(0),te!==U.length);)te=U.length;U.readingMore=!1}function ee(j){v("readable nexttick read 0"),j.read(0)}function q(j,U){U.reading||(v("resume read 0"),j.read(0)),U.resumeScheduled=!1,U.awaitDrain=0,j.emit("resume"),X(j),U.flowing&&!U.reading&&j.read(0)}function X(j){var U=j._readableState;for(v("flow",U.flowing);U.flowing&&j.read()!==null;);}function ie(j,U){return U.length===0?null:(U.objectMode?te=U.buffer.shift():!j||j>=U.length?(te=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.head.data:U.buffer.concat(U.length),U.buffer.clear()):te=function(z,Z,ne){var ae;return z<Z.head.data.length?(ae=Z.head.data.slice(0,z),Z.head.data=Z.head.data.slice(z)):ae=z===Z.head.data.length?Z.shift():ne?function(pe,O){var R=O.head,I=1,Q=R.data;for(pe-=Q.length;R=R.next;){var K=R.data,oe=pe>K.length?K.length:pe;if(oe===K.length?Q+=K:Q+=K.slice(0,pe),(pe-=oe)==0){oe===K.length?(++I,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=K.slice(oe));break}++I}return O.length-=I,Q}(z,Z):function(pe,O){var R=f.allocUnsafe(pe),I=O.head,Q=1;for(I.data.copy(R),pe-=I.data.length;I=I.next;){var K=I.data,oe=pe>K.length?K.length:pe;if(K.copy(R,R.length-pe,0,oe),(pe-=oe)==0){oe===K.length?(++Q,I.next?O.head=I.next:O.head=O.tail=null):(O.head=I,I.data=K.slice(oe));break}++Q}return O.length-=Q,R}(z,Z),ae}(j,U.buffer,U.decoder),te);var te}function le(j){var U=j._readableState;if(U.length>0)throw new Error('"endReadable()" called on non-empty stream');U.endEmitted||(U.ended=!0,o.nextTick(G,U,j))}function G(j,U){j.endEmitted||j.length!==0||(j.endEmitted=!0,U.readable=!1,U.emit("end"))}function F(j,U){for(var te=0,z=j.length;te<z;te++)if(j[te]===U)return te;return-1}T.prototype.read=function(j){v("read",j),j=parseInt(j,10);var U=this._readableState,te=j;if(j!==0&&(U.emittedReadable=!1),j===0&&U.needReadable&&(U.length>=U.highWaterMark||U.ended))return v("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?le(this):V(this),null;if((j=D(j,U))===0&&U.ended)return U.length===0&&le(this),null;var z,Z=U.needReadable;return v("need readable",Z),(U.length===0||U.length-j<U.highWaterMark)&&v("length less than watermark",Z=!0),U.ended||U.reading?v("reading or ended",Z=!1):Z&&(v("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(j=D(te,U))),(z=j>0?ie(j,U):null)===null?(U.needReadable=!0,j=0):U.length-=j,U.length===0&&(U.ended||(U.needReadable=!0),te!==j&&U.ended&&le(this)),z!==null&&this.emit("data",z),z},T.prototype._read=function(j){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(j,U){var te=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=j;break;case 1:z.pipes=[z.pipes,j];break;default:z.pipes.push(j)}z.pipesCount+=1,v("pipe count=%d opts=%j",z.pipesCount,U);var Z=U&&U.end===!1||j===i.stdout||j===i.stderr?oe:ne;function ne(){v("onend"),j.end()}z.endEmitted?o.nextTick(Z):te.once("end",Z),j.on("unpipe",function ge(Le,ue){v("onunpipe"),Le===te&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),j.removeListener("close",Q),j.removeListener("finish",K),j.removeListener("drain",ae),j.removeListener("error",I),j.removeListener("unpipe",ge),te.removeListener("end",ne),te.removeListener("end",oe),te.removeListener("data",R),pe=!0,!z.awaitDrain||j._writableState&&!j._writableState.needDrain||ae())});var ae=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,X(ge))}}(te);j.on("drain",ae);var pe=!1,O=!1;function R(ge){v("ondata"),O=!1,j.write(ge)!==!1||O||((z.pipesCount===1&&z.pipes===j||z.pipesCount>1&&F(z.pipes,j)!==-1)&&!pe&&(v("false write response, pause",te._readableState.awaitDrain),te._readableState.awaitDrain++,O=!0),te.pause())}function I(ge){v("onerror",ge),oe(),j.removeListener("error",I),l(j,"error")===0&&j.emit("error",ge)}function Q(){j.removeListener("finish",K),oe()}function K(){v("onfinish"),j.removeListener("close",Q),oe()}function oe(){v("unpipe"),te.unpipe(j)}return te.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",Q),j.once("finish",K),j.emit("pipe",te),z.flowing||(v("pipe resume"),te.resume()),j},T.prototype.unpipe=function(j){var U=this._readableState,te={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return j&&j!==U.pipes?this:(j||(j=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,j&&j.emit("unpipe",this,te),this);if(!j){var z=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var ne=0;ne<Z;ne++)z[ne].emit("unpipe",this,te);return this}var ae=F(U.pipes,j);return ae===-1?this:(U.pipes.splice(ae,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),j.emit("unpipe",this,te),this)},T.prototype.on=function(j,U){var te=c.prototype.on.call(this,j,U);if(j==="data")this._readableState.flowing!==!1&&this.resume();else if(j==="readable"){var z=this._readableState;z.endEmitted||z.readableListening||(z.readableListening=z.needReadable=!0,z.emittedReadable=!1,z.reading?z.length&&V(this):o.nextTick(ee,this))}return te},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var j=this._readableState;return j.flowing||(v("resume"),j.flowing=!0,function(U,te){te.resumeScheduled||(te.resumeScheduled=!0,o.nextTick(q,U,te))}(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 U=this,te=this._readableState,z=!1;for(var Z in j.on("end",function(){if(v("wrapped end"),te.decoder&&!te.ended){var ae=te.decoder.end();ae&&ae.length&&U.push(ae)}U.push(null)}),j.on("data",function(ae){v("wrapped data"),te.decoder&&(ae=te.decoder.write(ae)),(!te.objectMode||ae!=null)&&(te.objectMode||ae&&ae.length)&&(U.push(ae)||(z=!0,j.pause()))}),j)this[Z]===void 0&&typeof j[Z]=="function"&&(this[Z]=function(ae){return function(){return j[ae].apply(j,arguments)}}(Z));for(var ne=0;ne<w.length;ne++)j.on(w[ne],this.emit.bind(this,w[ne]));return this._read=function(ae){v("wrapped _read",ae),z&&(z=!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 b=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 b!="string"&&(r.isEncoding===i||!i(x)))throw new Error("Unknown encoding: "+x);return b||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=g)}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(b,w,S){if((192&w[0])!=128)return b.lastNeed=0,"<22>";if(b.lastNeed>1&&w.length>1){if((192&w[1])!=128)return b.lastNeed=1,"<22>";if(b.lastNeed>2&&w.length>2&&(192&w[2])!=128)return b.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 b=x.charCodeAt(x.length-1);if(b>=55296&&b<=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 g(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 b=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,b),v.toString("utf8",y,b)},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 g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.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 g=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}g(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};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(g){function v(y,x){x===void 0&&(x={});var b=g.call(this,x)||this;return b.options=x,b.params=a.mergeParams(y),b.runtime=l.initParseRuntime(b),b.result=new h.Result(b),b.processor=new f.ProcessorLocal(b),b.once("error",function(w){r(function(){b.result.processError(w),b.emit("done",w)})}),b.once("done",function(){b.processor.destroy()}),b}return i(v,g),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,b){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:b},this},v.prototype.fromFile=function(y,x){var b=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(b):b.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,b=0;return x._read=function(w){if(b>=y.length)this.push(null);else{var S=y.substr(b,w);this.push(S),b+=w}},this.fromStream(x)},v.prototype.then=function(y,x){var b=this;return new c.default(function(w,S){b.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,b){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"),b()},function(S){w.runtime.hasError=!0,w.runtime.error=S,w.emit("error",S),b()})},v.prototype._flush=function(y){var x=this;this.processor.flush().then(function(b){if(b.length>0)return x.result.processResult(b)}).then(function(){x.processEnd(y)},function(b){x.emit("error",b),y()})},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(b){b.source===o&&typeof b.data=="string"&&b.data.indexOf(y)===0&&v(+b.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),a=function(b){o.postMessage(y+b,"*")}}():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 b=h.createElement("script");b.onreadystatechange=function(){v(x),b.onreadystatechange=null,y.removeChild(b),b=null},y.appendChild(b)}}():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),b=0;b<x.length;b++)x[b]=arguments[b+1];var w={callback:y,args:x};return c[l]=w,a(l),l++},p.clearImmediate=g}function g(y){delete c[y]}function v(y){if(f)setTimeout(v,0,y);else{var x=c[y];if(x){f=!0;try{(function(b){var w=b.callback,S=b.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{g(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 g(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",g),o.removeListener("error",g),a.removeListener("end",v),a.removeListener("close",v),o.removeListener("close",v)}return a.on("error",g),o.on("error",g),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 g=c(p),v=g[0],y=g[1];return 3*(v+y)/4-y},t.toByteArray=function(p){for(var g,v=c(p),y=v[0],x=v[1],b=new o(3*(y+x)/4-x),w=0,S=x>0?y-4:y,T=0;T<S;T+=4)g=i[p.charCodeAt(T)]<<18|i[p.charCodeAt(T+1)]<<12|i[p.charCodeAt(T+2)]<<6|i[p.charCodeAt(T+3)],b[w++]=g>>16&255,b[w++]=g>>8&255,b[w++]=255&g;return x===2&&(g=i[p.charCodeAt(T)]<<2|i[p.charCodeAt(T+1)]>>4,b[w++]=255&g),x===1&&(g=i[p.charCodeAt(T)]<<10|i[p.charCodeAt(T+1)]<<4|i[p.charCodeAt(T+2)]>>2,b[w++]=g>>8&255,b[w++]=255&g),b},t.fromByteArray=function(p){for(var g,v=p.length,y=v%3,x=[],b=0,w=v-y;b<w;b+=16383)x.push(h(p,b,b+16383>w?w:b+16383));return y===1?(g=p[v-1],x.push(r[g>>2]+r[g<<4&63]+"==")):y===2&&(g=(p[v-2]<<8)+p[v-1],x.push(r[g>>10]+r[g>>4&63]+r[g<<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 g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=g),[v,v===g?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,g,v){for(var y,x=[],b=g;b<v;b+=3)y=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(255&p[b+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,g=i?s-1:0,v=i?-1:1,y=n[r+g];for(g+=v,a=y&(1<<-p)-1,y>>=-p,p+=c;p>0;a=256*a+n[r+g],g+=v,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+g],g+=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,g=p>>1,v=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:a-1,x=o?1:-1,b=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(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+g>=1?v/f:v*Math.pow(2,1-g))*f>=2&&(l++,f/=2),l+g>=p?(c=0,l=p):l+g>=1?(c=(r*f-1)*Math.pow(2,s),l+=g):(c=r*Math.pow(2,g-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*b}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(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(b,w){b.__proto__=w}||function(b,w){for(var S in w)w.hasOwnProperty(S)&&(b[S]=w[S])};return function(b,w){function S(){this.constructor=b}x(b,w),b.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),g=o(n(59)),v=o(n(29)),y=function(x){function b(){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(b,x),b.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([])},b.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(b.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),b.prototype.process=function(w,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([])})},b.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([])},b.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)},b.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)}},b.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:g.default(S.rowsCells,this.converter)},b.prototype.prependLeftBuf=function(w){w&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([w,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=w)},b.prototype.runPreLineHook=function(w){var S=this;return new a.default(function(T,P){(function k(N,D,V,A){if(V>=N.length)A();else if(D.preFileLineHook){var W=N[V],Y=D.preFileLineHook(W,D.parsedLineNumber+V);if(V++,Y&&Y.then)Y.then(function(ee){N[V-1]=ee,k(N,D,V,A)});else{for(N[V-1]=Y;V<N.length;)N[V]=D.preFileLineHook(N[V],D.parsedLineNumber+V),V++;A()}}else A()})(w,S.runtime,0,function(k){k?P(k):T(w)})})},b}(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,g=c.split(p);if(f==="off"){if(h)for(var v=0;v<g.length;v++)g[v]=g[v].trim();return{cells:g,closed:!0}}return this.toCSVRow(g,h,f,p)},l.prototype.toCSVRow=function(c,f,h,p){for(var g=[],v=!1,y="",x=0,b=c.length;x<b;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)),g.push(y),y=""):y+=p+w;else{if(S===2&&w===this.quote+this.quote){g.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),g.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)),g.push(h+w);continue}v=!0,y+=w;continue}v=!0,y+=w;continue}f&&(w=o.trimRight(w)),g.push(w)}}return{cells:g,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(g){var v=c.split(g).length;v>h&&(p=g,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,g=c.length-1;c[g]===f||c[g]===h;)g--,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(),g=this.parse(p);g.cells.length===0&&this.conv.parseParam.ignoreEmpty||(g.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(g.cells,this.conv.parseRuntime.selectedColumns)):f.push(g.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(b){return b&&b.__esModule?b:{default:b}};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(b,w,S){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&b.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+S);return function(T,P,k){for(var N=!1,D={},V=0,A=T.length;V<A;V++){var W=T[V];if(!k.parseParam.ignoreEmpty||W!==""){N=!0;var Y=P[V];Y&&Y!==""||(Y=P[V]="field"+(V+1));var ee=c(Y,V,k);if(ee){var q=ee(W,Y,D,T,V);q!==void 0&&f(D,Y,q,k,V)}else k.parseParam.checkType&&(W=g(W,Y,V,k)(W)),W!==void 0&&f(D,Y,W,k,V)}}return N?D:null}(b,w.parseRuntime.headers||[],w)||null}t.default=function(b,w){for(var S=[],T=0,P=b.length;T<P;T++){var k=a(b[T],w,T);k&&S.push(k)}return S};var l={string:y,number:v,omit:function(){}};function c(b,w,S){if(S.parseRuntime.columnConv[w]!==void 0)return S.parseRuntime.columnConv[w];var T=S.parseParam.colParser[b];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(b,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](b,w,S)}function h(b,w,S){b[w]=S}function p(b,w,S){o.default(b,w,S)}function g(b,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(b){var w=parseFloat(b);return isNaN(w)?b:w}function y(b){return b.toString()}function x(b){var w=b.trim();return w===""?y(b):s.test(w)?v(b):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"}(b):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(b):y(b)}},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,g=(c=i(c,l)).length,v=g-1,y=l;y!=null&&++p<g;){var x=a(c[p]),b=f;if(p!=v){var w=y[x];(b=h?h(w,x,y):void 0)===void 0&&(b=s(w)?w:o(c[p+1])?[]:{})}r(y,x,b),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(g){return!(!o(g)||i(g))&&(r(g)?p:a).test(s(g))}},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,g){f.needEmitLine?function v(y,x,b,w,S){if(b>=y.length)S();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var T=x.parseRuntime.subscribe.onNext,P=y[b],k=T(P,x.parseRuntime.parsedLineNumber+b);if(b++,k&&k.then)k.then(function(){(function(D,V,A,W,Y,ee,q){Y&&a(A,q),v(D,A,W,Y,ee)})(y,0,x,b,w,S,P)},S);else{for(w&&a(x,P);b<y.length;){var N=y[b];T(N,x.parseRuntime.parsedLineNumber+b),b++,w&&a(x,N)}S()}}else{if(w)for(;b<y.length;)N=y[b++],a(x,N);S()}}(c,f.converter,0,f.needPushDownstream,function(v){v?g(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 F1e=ri(I1e),$1e=e=>new Promise(t=>{F1e().fromString(e).then(t)}),B1e=new _8,U1e=e=>B1e.parse(e),z1e="shlink",mL=e=>`${z1e}.${e}`;class H1e{constructor(t){xe(this,"get",t=>{const n=this.localStorage.getItem(mL(t));return n?JSON.parse(n):void 0});xe(this,"set",(t,n)=>this.localStorage.setItem(mL(t),JSON.stringify(n)));this.localStorage=t}}class V1e{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const W1e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",H1e,"localStorage"),e.service("TagColorsStorage",V1e,"Storage"),e.constant("csvToJson",$1e),e.constant("jsonToCsv",U1e),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",O0e,"setTimeout","clearTimeout")},hl=new cj,{container:XE}=hl,Y1e=(e,t)=>(...n)=>e[t](...n),q1e=(e,t)=>({...e,[t]:Y1e(XE,t)}),C_=(e,t=[])=>U4(e?WS(e):null,t.reduce(q1e,{}));sse(hl,C_);E0e(hl,C_);hoe(hl);d1e(hl,C_);W1e(hl);j1e(hl,C_);var QE={},h2={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 g=0;g<h.length;++g){var v=h[g];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}})(h2,h2.exports);var G1e=h2.exports;(function(e){var t=n(G1e);Object.defineProperty(e,"__esModule",{value:!0}),e.clear=ee,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 U=Object.prototype.toString.call(F).slice(8,-1);return U==="Object"&&F.constructor&&(U=F.constructor.name),U==="Map"||U==="Set"?Array.from(F):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?s(F,j):void 0}}function s(F,j){(j==null||j>F.length)&&(j=F.length);for(var U=0,te=Array(j);U<j;U++)te[U]=F[U];return te}function a(F,j){var U=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(U!=null){var te,z,Z=[],ne=!0,ae=!1;try{for(U=U.call(F);!(ne=(te=U.next()).done)&&(Z.push(te.value),!(j&&Z.length===j));ne=!0);}catch(pe){ae=!0,z=pe}finally{try{ne||U.return==null||U.return()}finally{if(ae)throw z}}return Z}}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,U){return j in F?Object.defineProperty(F,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):F[j]=U,F}var h="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",g="_",v=[],y=[],x=0,b=!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(te,z){return te.length===0?z:j(te.slice(1),f({},te[0],z))}var U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return j(F.split(".").reverse(),U)}function V(F){this.warnFn=F||T}Object.defineProperty(V.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),V.prototype.key=function(F){try{return localStorage.key(F)}catch(j){this.warnFn(j)}return null},V.prototype.setItem=function(F,j){try{localStorage.setItem(F,JSON.stringify(j))}catch(U){this.warnFn(U)}},V.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(j){this.warnFn(j)}return null},V.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,U=j===void 0?v:j,te=F.ignoreStates,z=te===void 0?y:te,Z=F.namespace,ne=Z===void 0?p:Z,ae=F.namespaceSeparator,pe=ae===void 0?g:ae,O=F.debounce,R=O===void 0?x:O,I=F.disableWarnings,Q=I===void 0?w:I;return function(K){return function(oe){return function(ge){function Le(Re,Ne){return 1<Re.split(".").length?N(Re.split("."),Ne):N([Re],Ne)}function ue(){U.length===0?De.setItem(ne,ve):U.forEach(function(Re){var Ne=ne+pe+Re,ce=Le(Re,ve);ce?De.setItem(Ne,ce):De.removeItem(Ne)})}var ve,_e=k(Q),Te=oe(ge);q(U)||(console.error(h,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),U=v),q(z)||(console.error(h,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),z=y),0<z.length&&(z=z.filter(function(Re){return X(Re)?Re:void console.error(h,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),X(ne)||(console.error(h,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ne=p),X(pe)||(console.error(h,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),pe=g),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<z.length?G(z,K.getState()):K.getState();var De=new V(_e);return R?(S.get(U+ne)&&clearTimeout(S.get(U+ne)),S.set(U+ne,setTimeout(function(){ue()},R))):ue(),Te}}}}function W(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},j=F.states,U=j===void 0?v:j,te=F.immutablejs,z=te===void 0?b:te,Z=F.namespace,ne=Z===void 0?p:Z,ae=F.namespaceSeparator,pe=ae===void 0?g:ae,O=F.preloadedState,R=O===void 0?{}:O,I=F.disableWarnings,Q=I===void 0?w:I,K=k(Q);q(U)||(console.error(h,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),U=v),X(ne)||(console.error(h,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ne=p),X(pe)||(console.error(h,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),pe=g),z===!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 oe=new V(K),ge=R;if(U.length===0){var Le=oe.getItem(ne);Le&&(ge=Le)}else U.forEach(function(ue){var ve=ne+pe+ue,_e=oe.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,U=Array(j),te=0;te<j;te++)U[te]=arguments[te];return U.forEach(function(z){for(var Z in le(z)||(console.error(h,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),z={}),z)F[Z]=z[Z]}),F}function ee(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},j=F.namespace,U=j===void 0?p:j,te=F.disableWarnings,z=te===void 0?w:te,Z=k(z);X(U)||(console.error(h,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),U=p);for(var ne,ae=new V(Z),pe=ae.length,O=0;O<pe;O++)ne=ae.key(O),ne&&ne.slice(0,U.length)===U&&ae.removeItem(ne)}function q(F){return Object.prototype.toString.call(F)==="[object Array]"}function X(F){return typeof F=="string"}function ie(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function le(F){return F!==null&&c(F)==="object"}function G(F,j){var U=Object.entries(j).reduce(function(te,z){var Z=r(z,2),ne=Z[0];return Z[1],F.indexOf(ne)===-1&&(te[ne]=j[ne]),te},{});return U}})(QE);const Z1e=e=>oE({appUpdated:ose,servers:G0e,selectedServer:e.selectedServerReducer,settings:T1e}),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,iF={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Q1e=K1e(QE.load(iF)),J1e=e=>j6({devTools:!X1e,reducer:Z1e(e),preloadedState:Q1e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(QE.save(iF))}),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(jg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${jg.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")})):oF(n,e)})}}function oF(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()})}):oF(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 rL.Icon.Default.prototype._getIconUrl,rL.Icon.Default.mergeOptions({iconRetinaUrl:ibe,iconUrl:rbe,shadowUrl:obe})};sbe();const sF=J1e(XE),{App:abe,ScrollToTop:lbe,ErrorHandler:cbe,appUpdateAvailable:ube}=XE;O4(document.getElementById("root")).render(m.jsx(z4,{store:sF,children:m.jsx(X4,{basename:jg.homepage,children:m.jsx(cbe,{children:m.jsx(lbe,{children:m.jsx(abe,{})})})})}));tbe({onUpdate(){sF.dispatch(ube())}});
|