@soton.ac.uk/cape3 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cape3.umd.js CHANGED
@@ -1,66 +1,69 @@
1
- (function(Ke,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(Ke=typeof globalThis<"u"?globalThis:Ke||self,o(Ke.Cape3={},Ke.Vue))})(this,function(Ke,o){"use strict";var FL=Object.defineProperty;var YL=(Ke,o,Wa)=>o in Ke?FL(Ke,o,{enumerable:!0,configurable:!0,writable:!0,value:Wa}):Ke[o]=Wa;var Pe=(Ke,o,Wa)=>YL(Ke,typeof o!="symbol"?o+"":o,Wa);function Wa(){return ov().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ov(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const FE=typeof Proxy=="function",YE="devtools-plugin:setup",$E="plugin:settings:set";let ja,Pf;function BE(){var e;return ja!==void 0||(typeof window<"u"&&window.performance?(ja=!0,Pf=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ja=!0,Pf=globalThis.perf_hooks.performance):ja=!1),ja}function UE(){return BE()?Pf.now():Date.now()}class HE{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},r);try{const s=localStorage.getItem(i),l=JSON.parse(s);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}a=s},now(){return UE()}},n&&n.on($E,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Af(e,t){const n=e,r=ov(),i=Wa(),a=FE&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(YE,e,t);else{const s=a?new HE(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
1
+ (function(pt,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(pt=typeof globalThis<"u"?globalThis:pt||self,l(pt.Cape3={},pt.Vue))})(this,function(pt,l){"use strict";var YY=Object.defineProperty;var $Y=(pt,l,Za)=>l in pt?YY(pt,l,{enumerable:!0,configurable:!0,writable:!0,value:Za}):pt[l]=Za;var Ke=(pt,l,Za)=>$Y(pt,typeof l!="symbol"?l+"":l,Za);function Za(){return _g().__VUE_DEVTOOLS_GLOBAL_HOOK__}function _g(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Lb=typeof Proxy=="function",Mb="devtools-plugin:setup",Ab="plugin:settings:set";let Ga,yh;function Bb(){var e;return Ga!==void 0||(typeof window<"u"&&window.performance?(Ga=!0,yh=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ga=!0,yh=globalThis.perf_hooks.performance):Ga=!1),Ga}function Vb(){return Bb()?yh.now():Date.now()}class Fb{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const i={};if(t.settings)for(const c in t.settings){const f=t.settings[c];i[c]=f.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},i);try{const c=localStorage.getItem(o),f=JSON.parse(c);Object.assign(s,f)}catch{}this.fallbacks={getSettings(){return s},setSettings(c){try{localStorage.setItem(o,JSON.stringify(c))}catch{}s=c},now(){return Vb()}},n&&n.on(Ab,(c,f)=>{c===this.plugin.id&&this.fallbacks.setSettings(f)}),this.proxiedOn=new Proxy({},{get:(c,f)=>this.target?this.target.on[f]:(...d)=>{this.onQueue.push({method:f,args:d})}}),this.proxiedTarget=new Proxy({},{get:(c,f)=>this.target?this.target[f]:f==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(f)?(...d)=>(this.targetQueue.push({method:f,args:d,resolve:()=>{}}),this.fallbacks[f](...d)):(...d)=>new Promise(p=>{this.targetQueue.push({method:f,args:d,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Sh(e,t){const n=e,i=_g(),o=Za(),s=Lb&&n.enableEarlyProxy;if(o&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(Mb,e,t);else{const c=s?new Fb(n,o):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:c}),c&&t(c.proxiedTarget)}}/*!
2
2
  * vue-router v4.5.1
3
3
  * (c) 2025 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */const _r=typeof document<"u";function sv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function GE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sv(e.default)}const He=Object.assign;function Mf(e,t){const n={};for(const r in t){const i=t[r];n[r]=rn(i)?i.map(e):e(i)}return n}const hs=()=>{},rn=Array.isArray;function Re(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const lv=/#/g,WE=/&/g,jE=/\//g,zE=/=/g,KE=/\?/g,cv=/\+/g,qE=/%5B/g,XE=/%5D/g,uv=/%5E/g,JE=/%60/g,fv=/%7B/g,QE=/%7C/g,dv=/%7D/g,ZE=/%20/g;function xf(e){return encodeURI(""+e).replace(QE,"|").replace(qE,"[").replace(XE,"]")}function eT(e){return xf(e).replace(fv,"{").replace(dv,"}").replace(uv,"^")}function Vf(e){return xf(e).replace(cv,"%2B").replace(ZE,"+").replace(lv,"%23").replace(WE,"%26").replace(JE,"`").replace(fv,"{").replace(dv,"}").replace(uv,"^")}function tT(e){return Vf(e).replace(zE,"%3D")}function nT(e){return xf(e).replace(lv,"%23").replace(KE,"%3F")}function rT(e){return e==null?"":nT(e).replace(jE,"%2F")}function za(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&Re(`Error decoding "${e}". Using original value`)}return""+e}const iT=/\/$/,aT=e=>e.replace(iT,"");function Lf(e,t,n="/"){let r,i={},a="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),i=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=lT(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:i,hash:za(s)}}function oT(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function hv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pv(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Xr(t.matched[r],n.matched[i])&&mv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!sT(e[n],t[n]))return!1;return!0}function sT(e,t){return rn(e)?vv(e,t):rn(t)?vv(t,e):e===t}function vv(e,t){return rn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function lT(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return Re(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Jr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ps;(function(e){e.pop="pop",e.push="push"})(ps||(ps={}));var ms;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ms||(ms={}));function cT(e){if(!e)if(_r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aT(e)}const uT=/^[^#]+#/;function fT(e,t){return e.replace(uT,"#")+t}function dT(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Jl=()=>({left:window.scrollX,top:window.scrollY});function hT(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!r||!document.getElementById(e.el.slice(1))))try{const a=document.querySelector(e.el);if(r&&a){Re(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{Re(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){process.env.NODE_ENV!=="production"&&Re(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=dT(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _v(e,t){return(history.state?history.state.position-t:-1)+e}const Ff=new Map;function pT(e,t){Ff.set(e,t)}function mT(e){const t=Ff.get(e);return Ff.delete(e),t}let vT=()=>location.protocol+"//"+location.host;function gv(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let l=i.includes(e.slice(a))?e.slice(a).length:1,c=i.slice(l);return c[0]!=="/"&&(c="/"+c),hv(c,"")}return hv(n,e)+r+i}function _T(e,t,n,r){let i=[],a=[],s=null;const l=({state:p})=>{const h=gv(e,location),m=n.value,v=t.value;let _=0;if(p){if(n.value=h,t.value=p,s&&s===m){s=null;return}_=v?p.position-v.position:0}else r(h);i.forEach(g=>{g(n.value,m,{delta:_,type:ps.pop,direction:_?_>0?ms.forward:ms.back:ms.unknown})})};function c(){s=n.value}function u(p){i.push(p);const h=()=>{const m=i.indexOf(p);m>-1&&i.splice(m,1)};return a.push(h),h}function f(){const{history:p}=window;p.state&&p.replaceState(He({},p.state,{scroll:Jl()}),"")}function d(){for(const p of a)p();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function yv(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Jl():null}}function gT(e){const{history:t,location:n}=window,r={value:gv(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,u,f){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:vT()+e+c;try{t[f?"replaceState":"pushState"](u,"",p),i.value=u}catch(h){process.env.NODE_ENV!=="production"?Re("Error with push/replace State",h):console.error(h),n[f?"replace":"assign"](p)}}function s(c,u){const f=He({},t.state,yv(i.value.back,c,i.value.forward,!0),u,{position:i.value.position});a(c,f,!0),r.value=c}function l(c,u){const f=He({},i.value,t.state,{forward:c,scroll:Jl()});process.env.NODE_ENV!=="production"&&!t.state&&Re(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
5
+ */const ni=typeof document<"u";function mg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&mg(e.default)}const lt=Object.assign;function wh(e,t){const n={};for(const i in t){const o=t[i];n[i]=Mn(o)?o.map(e):e(o)}return n}const El=()=>{},Mn=Array.isArray;function je(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const vg=/#/g,$b=/&/g,Ub=/\//g,zb=/=/g,Hb=/\?/g,gg=/\+/g,Wb=/%5B/g,Zb=/%5D/g,yg=/%5E/g,Gb=/%60/g,Sg=/%7B/g,jb=/%7C/g,wg=/%7D/g,qb=/%20/g;function Eh(e){return encodeURI(""+e).replace(jb,"|").replace(Wb,"[").replace(Zb,"]")}function Kb(e){return Eh(e).replace(Sg,"{").replace(wg,"}").replace(yg,"^")}function Th(e){return Eh(e).replace(gg,"%2B").replace(qb,"+").replace(vg,"%23").replace($b,"%26").replace(Gb,"`").replace(Sg,"{").replace(wg,"}").replace(yg,"^")}function Xb(e){return Th(e).replace(zb,"%3D")}function Jb(e){return Eh(e).replace(vg,"%23").replace(Hb,"%3F")}function Qb(e){return e==null?"":Jb(e).replace(Ub,"%2F")}function ja(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&je(`Error decoding "${e}". Using original value`)}return""+e}const eN=/\/$/,tN=e=>e.replace(eN,"");function bh(e,t,n="/"){let i,o={},s="",c="";const f=t.indexOf("#");let d=t.indexOf("?");return f<d&&f>=0&&(d=-1),d>-1&&(i=t.slice(0,d),s=t.slice(d+1,f>-1?f:t.length),o=e(s)),f>-1&&(i=i||t.slice(0,f),c=t.slice(f,t.length)),i=iN(i??t,n),{fullPath:i+(s&&"?")+s+c,path:i,query:o,hash:ja(c)}}function nN(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Eg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Tg(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&$i(t.matched[i],n.matched[o])&&bg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function $i(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!rN(e[n],t[n]))return!1;return!0}function rN(e,t){return Mn(e)?Ng(e,t):Mn(t)?Ng(t,e):e===t}function Ng(e,t){return Mn(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function iN(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return je(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let s=n.length-1,c,f;for(c=0;c<i.length;c++)if(f=i[c],f!==".")if(f==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+i.slice(c).join("/")}const Ui={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Tl;(function(e){e.pop="pop",e.push="push"})(Tl||(Tl={}));var bl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(bl||(bl={}));function oN(e){if(!e)if(ni){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),tN(e)}const aN=/^[^#]+#/;function sN(e,t){return e.replace(aN,"#")+t}function lN(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const wu=()=>({left:window.scrollX,top:window.scrollY});function cN(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!i||!document.getElementById(e.el.slice(1))))try{const s=document.querySelector(e.el);if(i&&s){je(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{je(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){process.env.NODE_ENV!=="production"&&je(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=lN(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function kg(e,t){return(history.state?history.state.position-t:-1)+e}const Nh=new Map;function uN(e,t){Nh.set(e,t)}function fN(e){const t=Nh.get(e);return Nh.delete(e),t}let dN=()=>location.protocol+"//"+location.host;function Cg(e,t){const{pathname:n,search:i,hash:o}=t,s=e.indexOf("#");if(s>-1){let f=o.includes(e.slice(s))?e.slice(s).length:1,d=o.slice(f);return d[0]!=="/"&&(d="/"+d),Eg(d,"")}return Eg(n,e)+i+o}function hN(e,t,n,i){let o=[],s=[],c=null;const f=({state:y})=>{const g=Cg(e,location),E=n.value,w=t.value;let T=0;if(y){if(n.value=g,t.value=y,c&&c===E){c=null;return}T=w?y.position-w.position:0}else i(g);o.forEach(b=>{b(n.value,E,{delta:T,type:Tl.pop,direction:T?T>0?bl.forward:bl.back:bl.unknown})})};function d(){c=n.value}function p(y){o.push(y);const g=()=>{const E=o.indexOf(y);E>-1&&o.splice(E,1)};return s.push(g),g}function _(){const{history:y}=window;y.state&&y.replaceState(lt({},y.state,{scroll:wu()}),"")}function v(){for(const y of s)y();s=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",_)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",_,{passive:!0}),{pauseListeners:d,listen:p,destroy:v}}function Pg(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?wu():null}}function pN(e){const{history:t,location:n}=window,i={value:Cg(e,n)},o={value:t.state};o.value||s(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(d,p,_){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+d:dN()+e+d;try{t[_?"replaceState":"pushState"](p,"",y),o.value=p}catch(g){process.env.NODE_ENV!=="production"?je("Error with push/replace State",g):console.error(g),n[_?"replace":"assign"](y)}}function c(d,p){const _=lt({},t.state,Pg(o.value.back,d,o.value.forward,!0),p,{position:o.value.position});s(d,_,!0),i.value=d}function f(d,p){const _=lt({},o.value,t.state,{forward:d,scroll:wu()});process.env.NODE_ENV!=="production"&&!t.state&&je(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
6
6
 
7
7
  history.replaceState(history.state, '', url)
8
8
 
9
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),a(f.current,f,!0);const d=He({},yv(r.value,c,null),{position:f.position+1},u);a(c,d,!1),r.value=c}return{location:r,state:i,push:l,replace:s}}function yT(e){e=cT(e);const t=gT(e),n=_T(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=He({location:"",base:e,go:r,createHref:fT.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ST(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),process.env.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&Re(`A hash base must end with a "#":
10
- "${e}" should be "${e.replace(/#.*$/,"#")}".`),yT(e)}function Ql(e){return typeof e=="string"||e&&typeof e=="object"}function Sv(e){return typeof e=="string"||typeof e=="symbol"}const Yf=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Ev;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ev||(Ev={}));const ET={1({location:e,currentLocation:t}){return`No match for
9
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),s(_.current,_,!0);const v=lt({},Pg(i.value,d,null),{position:_.position+1},p);s(d,v,!1),i.value=d}return{location:i,state:o,push:f,replace:c}}function _N(e){e=oN(e);const t=pN(e),n=hN(e,t.state,t.location,t.replace);function i(s,c=!0){c||n.pauseListeners(),history.go(s)}const o=lt({location:"",base:e,go:i,createHref:sN.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function mN(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),process.env.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&je(`A hash base must end with a "#":
10
+ "${e}" should be "${e.replace(/#.*$/,"#")}".`),_N(e)}function Eu(e){return typeof e=="string"||e&&typeof e=="object"}function Dg(e){return typeof e=="string"||typeof e=="symbol"}const kh=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var xg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xg||(xg={}));const vN={1({location:e,currentLocation:t}){return`No match for
11
11
  ${JSON.stringify(e)}${t?`
12
12
  while being at
13
- `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${NT(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function Ka(e,t){return process.env.NODE_ENV!=="production"?He(new Error(ET[e](t)),{type:e,[Yf]:!0},t):He(new Error,{type:e,[Yf]:!0},t)}function gr(e,t){return e instanceof Error&&Yf in e&&(t==null||!!(e.type&t))}const TT=["params","query","hash"];function NT(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of TT)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Tv="[^/]+?",wT={sensitive:!1,strict:!1,start:!0,end:!0},bT=/[.+*?^${}()[\]/\\]/g;function DT(e,t){const n=He({},wT,t),r=[];let i=n.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const p=u[d];let h=40+(n.sensitive?.25:0);if(p.type===0)d||(i+="/"),i+=p.value.replace(bT,"\\$&"),h+=40;else if(p.type===1){const{value:m,repeatable:v,optional:_,regexp:g}=p;a.push({name:m,repeatable:v,optional:_});const S=g||Tv;if(S!==Tv){h+=10;try{new RegExp(`(${S})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${m}" (${S}): `+A.message)}}let C=v?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;d||(C=_&&u.length<2?`(?:/${C})`:"/"+C),_&&(C+="?"),i+=C,h+=20,_&&(h+=-8),v&&(h+=-20),S===".*"&&(h+=-50)}f.push(h)}r.push(f)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function l(u){const f=u.match(s),d={};if(!f)return null;for(let p=1;p<f.length;p++){const h=f[p]||"",m=a[p-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function c(u){let f="",d=!1;for(const p of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const h of p)if(h.type===0)f+=h.value;else if(h.type===1){const{value:m,repeatable:v,optional:_}=h,g=m in u?u[m]:"";if(rn(g)&&!v)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const S=rn(g)?g.join("/"):g;if(!S)if(_)p.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);f+=S}}return f||"/"}return{re:s,score:r,keys:a,parse:l,stringify:c}}function kT(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Nv(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=kT(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(wv(r))return 1;if(wv(i))return-1}return i.length-r.length}function wv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const CT={type:0,value:""},IT=/[a-zA-Z0-9_]/;function RT(e){if(!e)return[[]];if(e==="/")return[[CT]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let l=0,c,u="",f="";function d(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&d(),s()):c===":"?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:c==="("?n=2:IT.test(c)?p():(d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=3:f+=c;break;case 3:d(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),s(),i}function OT(e,t,n){const r=DT(RT(e.path),n);if(process.env.NODE_ENV!=="production"){const a=new Set;for(const s of r.keys)a.has(s.name)&&Re(`Found duplicated params with name "${s.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),a.add(s.name)}const i=He(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function PT(e,t){const n=[],r=new Map;t=Cv({strict:!1,end:!0,sensitive:!1},t);function i(d){return r.get(d)}function a(d,p,h){const m=!h,v=Dv(d);process.env.NODE_ENV!=="production"&&VT(v,p),v.aliasOf=h&&h.record;const _=Cv(t,d),g=[v];if("alias"in d){const A=typeof d.alias=="string"?[d.alias]:d.alias;for(const V of A)g.push(Dv(He({},v,{components:h?h.record.components:v.components,path:V,aliasOf:h?h.record:v})))}let S,C;for(const A of g){const{path:V}=A;if(p&&V[0]!=="/"){const z=p.record.path,b=z[z.length-1]==="/"?"":"/";A.path=p.record.path+(V&&b+V)}if(process.env.NODE_ENV!=="production"&&A.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
14
- See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=OT(A,p,_),process.env.NODE_ENV!=="production"&&p&&V[0]==="/"&&FT(S,p),h?(h.alias.push(S),process.env.NODE_ENV!=="production"&&xT(h,S)):(C=C||S,C!==S&&C.alias.push(S),m&&d.name&&!kv(S)&&(process.env.NODE_ENV!=="production"&&LT(d,p),s(d.name))),Iv(S)&&c(S),v.children){const z=v.children;for(let b=0;b<z.length;b++)a(z[b],S,h&&h.children[b])}h=h||S}return C?()=>{s(C)}:hs}function s(d){if(Sv(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function l(){return n}function c(d){const p=YT(d,n);n.splice(p,0,d),d.record.name&&!kv(d)&&r.set(d.record.name,d)}function u(d,p){let h,m={},v,_;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Ka(1,{location:d});if(process.env.NODE_ENV!=="production"){const C=Object.keys(d.params||{}).filter(A=>!h.keys.find(V=>V.name===A));C.length&&Re(`Discarded invalid param(s) "${C.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}_=h.record.name,m=He(bv(p.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&bv(d.params,h.keys.map(C=>C.name))),v=h.stringify(m)}else if(d.path!=null)v=d.path,process.env.NODE_ENV!=="production"&&!v.startsWith("/")&&Re(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(C=>C.re.test(v)),h&&(m=h.parse(v),_=h.record.name);else{if(h=p.name?r.get(p.name):n.find(C=>C.re.test(p.path)),!h)throw Ka(1,{location:d,currentLocation:p});_=h.record.name,m=He({},p.params,d.params),v=h.stringify(m)}const g=[];let S=h;for(;S;)g.unshift(S.record),S=S.parent;return{name:_,path:v,params:m,matched:g,meta:MT(g)}}e.forEach(d=>a(d));function f(){n.length=0,r.clear()}return{addRoute:a,resolve:u,removeRoute:s,clearRoutes:f,getRoutes:l,getRecordMatcher:i}}function bv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Dv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:AT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function AT(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function kv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function MT(e){return e.reduce((t,n)=>He(t,n.meta),{})}function Cv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function $f(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function xT(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find($f.bind(null,n)))return Re(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find($f.bind(null,n)))return Re(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function VT(e,t){t&&t.record.name&&!e.name&&!e.path&&Re(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function LT(e,t){for(let n=t;n;n=n.parent)if(n.record.name===e.name)throw new Error(`A route named "${String(e.name)}" has been added as a ${t===n?"child":"descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`)}function FT(e,t){for(const n of t.keys)if(!e.keys.find($f.bind(null,n)))return Re(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function YT(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Nv(e,t[a])<0?r=a:n=a+1}const i=$T(e);return i&&(r=t.lastIndexOf(i,r-1),process.env.NODE_ENV!=="production"&&r<0&&Re(`Finding ancestor route "${i.record.path}" failed for "${e.record.path}"`)),r}function $T(e){let t=e;for(;t=t.parent;)if(Iv(t)&&Nv(e,t)===0)return t}function Iv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function BT(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const a=r[i].replace(cv," "),s=a.indexOf("="),l=za(s<0?a:a.slice(0,s)),c=s<0?null:za(a.slice(s+1));if(l in t){let u=t[l];rn(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function Rv(e){let t="";for(let n in e){const r=e[n];if(n=tT(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(rn(r)?r.map(a=>a&&Vf(a)):[r&&Vf(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function UT(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=rn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const HT=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Ov=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Zl=Symbol(process.env.NODE_ENV!=="production"?"router":""),Bf=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Uf=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function vs(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qr(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(Ka(4,{from:n,to:t})):p instanceof Error?c(p):Ql(p)?c(Ka(2,{from:t,to:p})):(s&&r.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),l())},f=a(()=>e.call(r&&r.instances[i],t,n,process.env.NODE_ENV!=="production"?GT(u,t,n):u));let d=Promise.resolve(f);if(e.length<3&&(d=d.then(u)),process.env.NODE_ENV!=="production"&&e.length>2){const p=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
13
+ `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${yN(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function qa(e,t){return process.env.NODE_ENV!=="production"?lt(new Error(vN[e](t)),{type:e,[kh]:!0},t):lt(new Error,{type:e,[kh]:!0},t)}function ri(e,t){return e instanceof Error&&kh in e&&(t==null||!!(e.type&t))}const gN=["params","query","hash"];function yN(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of gN)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Og="[^/]+?",SN={sensitive:!1,strict:!1,start:!0,end:!0},wN=/[.+*?^${}()[\]/\\]/g;function EN(e,t){const n=lt({},SN,t),i=[];let o=n.start?"^":"";const s=[];for(const p of e){const _=p.length?[]:[90];n.strict&&!p.length&&(o+="/");for(let v=0;v<p.length;v++){const y=p[v];let g=40+(n.sensitive?.25:0);if(y.type===0)v||(o+="/"),o+=y.value.replace(wN,"\\$&"),g+=40;else if(y.type===1){const{value:E,repeatable:w,optional:T,regexp:b}=y;s.push({name:E,repeatable:w,optional:T});const C=b||Og;if(C!==Og){g+=10;try{new RegExp(`(${C})`)}catch(z){throw new Error(`Invalid custom RegExp for param "${E}" (${C}): `+z.message)}}let M=w?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;v||(M=T&&p.length<2?`(?:/${M})`:"/"+M),T&&(M+="?"),o+=M,g+=20,T&&(g+=-8),w&&(g+=-20),C===".*"&&(g+=-50)}_.push(g)}i.push(_)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const c=new RegExp(o,n.sensitive?"":"i");function f(p){const _=p.match(c),v={};if(!_)return null;for(let y=1;y<_.length;y++){const g=_[y]||"",E=s[y-1];v[E.name]=g&&E.repeatable?g.split("/"):g}return v}function d(p){let _="",v=!1;for(const y of e){(!v||!_.endsWith("/"))&&(_+="/"),v=!1;for(const g of y)if(g.type===0)_+=g.value;else if(g.type===1){const{value:E,repeatable:w,optional:T}=g,b=E in p?p[E]:"";if(Mn(b)&&!w)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const C=Mn(b)?b.join("/"):b;if(!C)if(T)y.length<2&&(_.endsWith("/")?_=_.slice(0,-1):v=!0);else throw new Error(`Missing required param "${E}"`);_+=C}}return _||"/"}return{re:c,score:i,keys:s,parse:f,stringify:d}}function TN(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Ig(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const s=TN(i[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-i.length)===1){if(Rg(i))return 1;if(Rg(o))return-1}return o.length-i.length}function Rg(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const bN={type:0,value:""},NN=/[a-zA-Z0-9_]/;function kN(e){if(!e)return[[]];if(e==="/")return[[bN]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${p}": ${g}`)}let n=0,i=n;const o=[];let s;function c(){s&&o.push(s),s=[]}let f=0,d,p="",_="";function v(){p&&(n===0?s.push({type:0,value:p}):n===1||n===2||n===3?(s.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:p,regexp:_,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=d}for(;f<e.length;){if(d=e[f++],d==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:d==="/"?(p&&v(),c()):d===":"?(v(),n=1):y();break;case 4:y(),n=i;break;case 1:d==="("?n=2:NN.test(d)?y():(v(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&f--);break;case 2:d===")"?_[_.length-1]=="\\"?_=_.slice(0,-1)+d:n=3:_+=d;break;case 3:v(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&f--,_="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),v(),c(),o}function CN(e,t,n){const i=EN(kN(e.path),n);if(process.env.NODE_ENV!=="production"){const s=new Set;for(const c of i.keys)s.has(c.name)&&je(`Found duplicated params with name "${c.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),s.add(c.name)}const o=lt(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function PN(e,t){const n=[],i=new Map;t=Bg({strict:!1,end:!0,sensitive:!1},t);function o(v){return i.get(v)}function s(v,y,g){const E=!g,w=Mg(v);process.env.NODE_ENV!=="production"&&IN(w,y),w.aliasOf=g&&g.record;const T=Bg(t,v),b=[w];if("alias"in v){const z=typeof v.alias=="string"?[v.alias]:v.alias;for(const G of z)b.push(Mg(lt({},w,{components:g?g.record.components:w.components,path:G,aliasOf:g?g.record:w})))}let C,M;for(const z of b){const{path:G}=z;if(y&&G[0]!=="/"){const oe=y.record.path,R=oe[oe.length-1]==="/"?"":"/";z.path=y.record.path+(G&&R+G)}if(process.env.NODE_ENV!=="production"&&z.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
14
+ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(C=CN(z,y,T),process.env.NODE_ENV!=="production"&&y&&G[0]==="/"&&LN(C,y),g?(g.alias.push(C),process.env.NODE_ENV!=="production"&&ON(g,C)):(M=M||C,M!==C&&M.alias.push(C),E&&v.name&&!Ag(C)&&(process.env.NODE_ENV!=="production"&&RN(v,y),c(v.name))),Vg(C)&&d(C),w.children){const oe=w.children;for(let R=0;R<oe.length;R++)s(oe[R],C,g&&g.children[R])}g=g||C}return M?()=>{c(M)}:El}function c(v){if(Dg(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(c),y.alias.forEach(c))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(c),v.alias.forEach(c))}}function f(){return n}function d(v){const y=MN(v,n);n.splice(y,0,v),v.record.name&&!Ag(v)&&i.set(v.record.name,v)}function p(v,y){let g,E={},w,T;if("name"in v&&v.name){if(g=i.get(v.name),!g)throw qa(1,{location:v});if(process.env.NODE_ENV!=="production"){const M=Object.keys(v.params||{}).filter(z=>!g.keys.find(G=>G.name===z));M.length&&je(`Discarded invalid param(s) "${M.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}T=g.record.name,E=lt(Lg(y.params,g.keys.filter(M=>!M.optional).concat(g.parent?g.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),v.params&&Lg(v.params,g.keys.map(M=>M.name))),w=g.stringify(E)}else if(v.path!=null)w=v.path,process.env.NODE_ENV!=="production"&&!w.startsWith("/")&&je(`The Matcher cannot resolve relative paths but received "${w}". Unless you directly called \`matcher.resolve("${w}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),g=n.find(M=>M.re.test(w)),g&&(E=g.parse(w),T=g.record.name);else{if(g=y.name?i.get(y.name):n.find(M=>M.re.test(y.path)),!g)throw qa(1,{location:v,currentLocation:y});T=g.record.name,E=lt({},y.params,v.params),w=g.stringify(E)}const b=[];let C=g;for(;C;)b.unshift(C.record),C=C.parent;return{name:T,path:w,params:E,matched:b,meta:xN(b)}}e.forEach(v=>s(v));function _(){n.length=0,i.clear()}return{addRoute:s,resolve:p,removeRoute:c,clearRoutes:_,getRoutes:f,getRecordMatcher:o}}function Lg(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Mg(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:DN(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function DN(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ag(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xN(e){return e.reduce((t,n)=>lt(t,n.meta),{})}function Bg(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Ch(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function ON(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Ch.bind(null,n)))return je(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Ch.bind(null,n)))return je(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function IN(e,t){t&&t.record.name&&!e.name&&!e.path&&je(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function RN(e,t){for(let n=t;n;n=n.parent)if(n.record.name===e.name)throw new Error(`A route named "${String(e.name)}" has been added as a ${t===n?"child":"descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`)}function LN(e,t){for(const n of t.keys)if(!e.keys.find(Ch.bind(null,n)))return je(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function MN(e,t){let n=0,i=t.length;for(;n!==i;){const s=n+i>>1;Ig(e,t[s])<0?i=s:n=s+1}const o=AN(e);return o&&(i=t.lastIndexOf(o,i-1),process.env.NODE_ENV!=="production"&&i<0&&je(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)),i}function AN(e){let t=e;for(;t=t.parent;)if(Vg(t)&&Ig(e,t)===0)return t}function Vg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function BN(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<i.length;++o){const s=i[o].replace(gg," "),c=s.indexOf("="),f=ja(c<0?s:s.slice(0,c)),d=c<0?null:ja(s.slice(c+1));if(f in t){let p=t[f];Mn(p)||(p=t[f]=[p]),p.push(d)}else t[f]=d}return t}function Fg(e){let t="";for(let n in e){const i=e[n];if(n=Xb(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Mn(i)?i.map(s=>s&&Th(s)):[i&&Th(i)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function VN(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Mn(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const FN=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Yg=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Tu=Symbol(process.env.NODE_ENV!=="production"?"router":""),Ph=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Dh=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Nl(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function zi(e,t,n,i,o,s=c=>c()){const c=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((f,d)=>{const p=y=>{y===!1?d(qa(4,{from:n,to:t})):y instanceof Error?d(y):Eu(y)?d(qa(2,{from:t,to:y})):(c&&i.enterCallbacks[o]===c&&typeof y=="function"&&c.push(y),f())},_=s(()=>e.call(i&&i.instances[o],t,n,process.env.NODE_ENV!=="production"?YN(p,t,n):p));let v=Promise.resolve(_);if(e.length<3&&(v=v.then(p)),process.env.NODE_ENV!=="production"&&e.length>2){const y=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
15
15
  ${e.toString()}
16
- . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof f=="object"&&"then"in f)d=d.then(h=>u._called?h:(Re(p),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!u._called){Re(p),c(new Error("Invalid navigation guard"));return}}d.catch(p=>c(p))})}function GT(e,t,n){let r=0;return function(){r++===1&&Re(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,r===1&&e.apply(null,arguments)}}function Hf(e,t,n,r,i=a=>a()){const a=[];for(const s of e){process.env.NODE_ENV!=="production"&&!s.components&&!s.children.length&&Re(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);for(const l in s.components){let c=s.components[l];if(process.env.NODE_ENV!=="production"){if(!c||typeof c!="object"&&typeof c!="function")throw Re(`Component "${l}" in record with path "${s.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){Re(`Component "${l}" in record with path "${s.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const u=c;c=()=>u}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,Re(`Component "${l}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(sv(c)){const f=(c.__vccOpts||c)[t];f&&a.push(Qr(f,n,r,s,l,i))}else{let u=c();process.env.NODE_ENV!=="production"&&!("catch"in u)&&(Re(`Component "${l}" in record with path "${s.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),u=Promise.resolve(u)),a.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const d=GE(f)?f.default:f;s.mods[l]=f,s.components[l]=d;const h=(d.__vccOpts||d)[t];return h&&Qr(h,n,r,s,l,i)()}))}}}return a}function Pv(e){const t=o.inject(Zl),n=o.inject(Bf);let r=!1,i=null;const a=o.computed(()=>{const f=o.unref(e.to);return process.env.NODE_ENV!=="production"&&(!r||f!==i)&&(Ql(f)||(r?Re(`Invalid value for prop "to" in useLink()
17
- - to:`,f,`
18
- - previous to:`,i,`
19
- - props:`,e):Re(`Invalid value for prop "to" in useLink()
20
- - to:`,f,`
21
- - props:`,e)),i=f,r=!0),t.resolve(f)}),s=o.computed(()=>{const{matched:f}=a.value,{length:d}=f,p=f[d-1],h=n.matched;if(!p||!h.length)return-1;const m=h.findIndex(Xr.bind(null,p));if(m>-1)return m;const v=Av(f[d-2]);return d>1&&Av(p)===v&&h[h.length-1].path!==v?h.findIndex(Xr.bind(null,f[d-2])):m}),l=o.computed(()=>s.value>-1&&KT(n.params,a.value.params)),c=o.computed(()=>s.value>-1&&s.value===n.matched.length-1&&mv(n.params,a.value.params));function u(f={}){if(zT(f)){const d=t[o.unref(e.replace)?"replace":"push"](o.unref(e.to)).catch(hs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}if(process.env.NODE_ENV!=="production"&&_r){const f=o.getCurrentInstance();if(f){const d={route:a.value,isActive:l.value,isExactActive:c.value,error:null};f.__vrl_devtools=f.__vrl_devtools||[],f.__vrl_devtools.push(d),o.watchEffect(()=>{d.route=a.value,d.isActive=l.value,d.isExactActive=c.value,d.error=Ql(o.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:a,href:o.computed(()=>a.value.href),isActive:l,isExactActive:c,navigate:u}}function WT(e){return e.length===1?e[0]:e}const jT=o.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Pv,setup(e,{slots:t}){const n=o.reactive(Pv(e)),{options:r}=o.inject(Zl),i=o.computed(()=>({[Mv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Mv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&WT(t.default(n));return e.custom?a:o.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function zT(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function KT(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!rn(i)||i.length!==r.length||r.some((a,s)=>a!==i[s]))return!1}return!0}function Av(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Mv=(e,t,n)=>e??t??n,qT=o.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&JT();const r=o.inject(Uf),i=o.computed(()=>e.route||r.value),a=o.inject(Ov,0),s=o.computed(()=>{let u=o.unref(a);const{matched:f}=i.value;let d;for(;(d=f[u])&&!d.components;)u++;return u}),l=o.computed(()=>i.value.matched[s.value]);o.provide(Ov,o.computed(()=>s.value+1)),o.provide(HT,l),o.provide(Uf,i);const c=o.ref();return o.watch(()=>[c.value,l.value,e.name],([u,f,d],[p,h,m])=>{f&&(f.instances[d]=u,h&&h!==f&&u&&u===p&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Xr(f,h)||!p)&&(f.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,d=l.value,p=d&&d.components[f];if(!p)return xv(n.default,{Component:p,route:u});const h=d.props[f],m=h?h===!0?u.params:typeof h=="function"?h(u):h:null,v=g=>{g.component.isUnmounted&&(d.instances[f]=null)},_=o.h(p,He({},m,t,{onVnodeUnmounted:v,ref:c}));if(process.env.NODE_ENV!=="production"&&_r&&_.ref){const g={depth:s.value,name:d.name,path:d.path,meta:d.meta};(rn(_.ref)?_.ref.map(C=>C.i):[_.ref.i]).forEach(C=>{C.__vrv_devtools=g})}return xv(n.default,{Component:_,route:u})||_}}});function xv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const XT=qT;function JT(){const e=o.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const r=t==="KeepAlive"?"keep-alive":"transition";Re(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
16
+ . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof _=="object"&&"then"in _)v=v.then(g=>p._called?g:(je(y),Promise.reject(new Error("Invalid navigation guard"))));else if(_!==void 0&&!p._called){je(y),d(new Error("Invalid navigation guard"));return}}v.catch(y=>d(y))})}function YN(e,t,n){let i=0;return function(){i++===1&&je(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,i===1&&e.apply(null,arguments)}}function xh(e,t,n,i,o=s=>s()){const s=[];for(const c of e){process.env.NODE_ENV!=="production"&&!c.components&&!c.children.length&&je(`Record with path "${c.path}" is either missing a "component(s)" or "children" property.`);for(const f in c.components){let d=c.components[f];if(process.env.NODE_ENV!=="production"){if(!d||typeof d!="object"&&typeof d!="function")throw je(`Component "${f}" in record with path "${c.path}" is not a valid component. Received "${String(d)}".`),new Error("Invalid route component");if("then"in d){je(`Component "${f}" in record with path "${c.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const p=d;d=()=>p}else d.__asyncLoader&&!d.__warnedDefineAsync&&(d.__warnedDefineAsync=!0,je(`Component "${f}" in record with path "${c.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!c.instances[f]))if(mg(d)){const _=(d.__vccOpts||d)[t];_&&s.push(zi(_,n,i,c,f,o))}else{let p=d();process.env.NODE_ENV!=="production"&&!("catch"in p)&&(je(`Component "${f}" in record with path "${c.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),p=Promise.resolve(p)),s.push(()=>p.then(_=>{if(!_)throw new Error(`Couldn't resolve component "${f}" at "${c.path}"`);const v=Yb(_)?_.default:_;c.mods[f]=_,c.components[f]=v;const g=(v.__vccOpts||v)[t];return g&&zi(g,n,i,c,f,o)()}))}}}return s}function $g(e){const t=l.inject(Tu),n=l.inject(Ph);let i=!1,o=null;const s=l.computed(()=>{const _=l.unref(e.to);return process.env.NODE_ENV!=="production"&&(!i||_!==o)&&(Eu(_)||(i?je(`Invalid value for prop "to" in useLink()
17
+ - to:`,_,`
18
+ - previous to:`,o,`
19
+ - props:`,e):je(`Invalid value for prop "to" in useLink()
20
+ - to:`,_,`
21
+ - props:`,e)),o=_,i=!0),t.resolve(_)}),c=l.computed(()=>{const{matched:_}=s.value,{length:v}=_,y=_[v-1],g=n.matched;if(!y||!g.length)return-1;const E=g.findIndex($i.bind(null,y));if(E>-1)return E;const w=Ug(_[v-2]);return v>1&&Ug(y)===w&&g[g.length-1].path!==w?g.findIndex($i.bind(null,_[v-2])):E}),f=l.computed(()=>c.value>-1&&HN(n.params,s.value.params)),d=l.computed(()=>c.value>-1&&c.value===n.matched.length-1&&bg(n.params,s.value.params));function p(_={}){if(zN(_)){const v=t[l.unref(e.replace)?"replace":"push"](l.unref(e.to)).catch(El);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>v),v}return Promise.resolve()}if(process.env.NODE_ENV!=="production"&&ni){const _=l.getCurrentInstance();if(_){const v={route:s.value,isActive:f.value,isExactActive:d.value,error:null};_.__vrl_devtools=_.__vrl_devtools||[],_.__vrl_devtools.push(v),l.watchEffect(()=>{v.route=s.value,v.isActive=f.value,v.isExactActive=d.value,v.error=Eu(l.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:s,href:l.computed(()=>s.value.href),isActive:f,isExactActive:d,navigate:p}}function $N(e){return e.length===1?e[0]:e}const UN=l.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:$g,setup(e,{slots:t}){const n=l.reactive($g(e)),{options:i}=l.inject(Tu),o=l.computed(()=>({[zg(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[zg(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&$N(t.default(n));return e.custom?s:l.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}});function zN(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function HN(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Mn(o)||o.length!==i.length||i.some((s,c)=>s!==o[c]))return!1}return!0}function Ug(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const zg=(e,t,n)=>e??t??n,WN=l.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&GN();const i=l.inject(Dh),o=l.computed(()=>e.route||i.value),s=l.inject(Yg,0),c=l.computed(()=>{let p=l.unref(s);const{matched:_}=o.value;let v;for(;(v=_[p])&&!v.components;)p++;return p}),f=l.computed(()=>o.value.matched[c.value]);l.provide(Yg,l.computed(()=>c.value+1)),l.provide(FN,f),l.provide(Dh,o);const d=l.ref();return l.watch(()=>[d.value,f.value,e.name],([p,_,v],[y,g,E])=>{_&&(_.instances[v]=p,g&&g!==_&&p&&p===y&&(_.leaveGuards.size||(_.leaveGuards=g.leaveGuards),_.updateGuards.size||(_.updateGuards=g.updateGuards))),p&&_&&(!g||!$i(_,g)||!y)&&(_.enterCallbacks[v]||[]).forEach(w=>w(p))},{flush:"post"}),()=>{const p=o.value,_=e.name,v=f.value,y=v&&v.components[_];if(!y)return Hg(n.default,{Component:y,route:p});const g=v.props[_],E=g?g===!0?p.params:typeof g=="function"?g(p):g:null,w=b=>{b.component.isUnmounted&&(v.instances[_]=null)},T=l.h(y,lt({},E,t,{onVnodeUnmounted:w,ref:d}));if(process.env.NODE_ENV!=="production"&&ni&&T.ref){const b={depth:c.value,name:v.name,path:v.path,meta:v.meta};(Mn(T.ref)?T.ref.map(M=>M.i):[T.ref.i]).forEach(M=>{M.__vrv_devtools=b})}return Hg(n.default,{Component:T,route:p})||T}}});function Hg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ZN=WN;function GN(){const e=l.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const i=t==="KeepAlive"?"keep-alive":"transition";je(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
22
22
  Use slot props instead:
23
23
 
24
24
  <router-view v-slot="{ Component }">
25
- <${r}>
25
+ <${i}>
26
26
  <component :is="Component" />
27
- </${r}>
28
- </router-view>`)}}function _s(e,t){const n=He({},e,{matched:e.matched.map(r=>lN(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ec(e){return{_custom:{display:e}}}let QT=0;function ZT(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=QT++;Af({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},i=>{typeof i.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),i.on.inspectComponent((f,d)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:_s(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:d})=>{if(d.__vrv_devtools){const p=d.__vrv_devtools;f.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Vv})}rn(d.__vrl_devtools)&&(d.__devtoolsApi=i,d.__vrl_devtools.forEach(p=>{let h=p.route.path,m=Yv,v="",_=0;p.error?(h=p.error,m=iN,_=aN):p.isExactActive?(m=Fv,v="This is exactly active"):p.isActive&&(m=Lv,v="This link is active"),f.tags.push({label:h,textColor:_,tooltip:v,backgroundColor:m})}))}),o.watch(t.currentRoute,()=>{c(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const a="router:navigations:"+r;i.addTimelineLayer({id:a,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((f,d)=>{i.addTimelineEvent({layerId:a,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:d.meta.__navigationId}})});let s=0;t.beforeEach((f,d)=>{const p={guard:ec("beforeEach"),from:_s(d,"Current Location during this navigation"),to:_s(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:s++}),i.addTimelineEvent({layerId:a,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:p,groupId:f.meta.__navigationId}})}),t.afterEach((f,d,p)=>{const h={guard:ec("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=ec("❌")):h.status=ec("✅"),h.from=_s(d,"Current Location during this navigation"),h.to=_s(f,"Target location"),i.addTimelineEvent({layerId:a,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:h,logType:p?"warning":"default",groupId:f.meta.__navigationId}})});const l="router-inspector:"+r;i.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function c(){if(!u)return;const f=u;let d=n.getRoutes().filter(p=>!p.parent||!p.parent.record.components);d.forEach(Uv),f.filter&&(d=d.filter(p=>Gf(p,f.filter.toLowerCase()))),d.forEach(p=>Bv(p,t.currentRoute.value)),f.rootNodes=d.map($v)}let u;i.on.getInspectorTree(f=>{u=f,f.app===e&&f.inspectorId===l&&c()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===l){const p=n.getRoutes().find(h=>h.record.__vd_id===f.nodeId);p&&(f.state={options:tN(p)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function eN(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function tN(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${eN(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Vv=15485081,Lv=2450411,Fv=8702998,nN=2282478,Yv=16486972,rN=6710886,iN=16704226,aN=12131356;function $v(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:nN}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Yv}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Vv}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Fv}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Lv}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:rN});let r=n.__vd_id;return r==null&&(r=String(oN++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map($v)}}let oN=0;const sN=/^\/(.*)\/([a-z]*)$/;function Bv(e,t){const n=t.matched.length&&Xr(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Xr(r,e.record))),e.children.forEach(r=>Bv(r,t))}function Uv(e){e.__vd_match=!1,e.children.forEach(Uv)}function Gf(e,t){const n=String(e.re).match(sN);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(s=>Gf(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const i=e.record.path.toLowerCase(),a=za(i);return!t.startsWith("/")&&(a.includes(t)||i.includes(t))||a.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>Gf(s,t))}function lN(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function cN(e){const t=PT(e.routes,e),n=e.parseQuery||BT,r=e.stringifyQuery||Rv,i=e.history;if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const a=vs(),s=vs(),l=vs(),c=o.shallowRef(Jr);let u=Jr;_r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Mf.bind(null,w=>""+w),d=Mf.bind(null,rT),p=Mf.bind(null,za);function h(w,H){let Y,Q;return Sv(w)?(Y=t.getRecordMatcher(w),process.env.NODE_ENV!=="production"&&!Y&&Re(`Parent route "${String(w)}" not found when adding child route`,H),Q=H):Q=w,t.addRoute(Q,Y)}function m(w){const H=t.getRecordMatcher(w);H?t.removeRoute(H):process.env.NODE_ENV!=="production"&&Re(`Cannot remove non-existent route "${String(w)}"`)}function v(){return t.getRoutes().map(w=>w.record)}function _(w){return!!t.getRecordMatcher(w)}function g(w,H){if(H=He({},H||c.value),typeof w=="string"){const ce=Lf(n,w,H.path),Ae=t.resolve({path:ce.path},H),Mt=i.createHref(ce.fullPath);return process.env.NODE_ENV!=="production"&&(Mt.startsWith("//")?Re(`Location "${w}" resolved to "${Mt}". A resolved location cannot start with multiple slashes.`):Ae.matched.length||Re(`No match found for location with path "${w}"`)),He(ce,Ae,{params:p(Ae.params),hash:za(ce.hash),redirectedFrom:void 0,href:Mt})}if(process.env.NODE_ENV!=="production"&&!Ql(w))return Re(`router.resolve() was passed an invalid location. This will fail in production.
29
- - Location:`,w),g({});let Y;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&Re(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),Y=He({},w,{path:Lf(n,w.path,H.path).path});else{const ce=He({},w.params);for(const Ae in ce)ce[Ae]==null&&delete ce[Ae];Y=He({},w,{params:d(ce)}),H.params=d(H.params)}const Q=t.resolve(Y,H),Ee=w.hash||"";process.env.NODE_ENV!=="production"&&Ee&&!Ee.startsWith("#")&&Re(`A \`hash\` should always start with the character "#". Replace "${Ee}" with "#${Ee}".`),Q.params=f(p(Q.params));const Ye=oT(r,He({},w,{hash:eT(Ee),path:Q.path})),fe=i.createHref(Ye);return process.env.NODE_ENV!=="production"&&(fe.startsWith("//")?Re(`Location "${w}" resolved to "${fe}". A resolved location cannot start with multiple slashes.`):Q.matched.length||Re(`No match found for location with path "${w.path!=null?w.path:w}"`)),He({fullPath:Ye,hash:Ee,query:r===Rv?UT(w.query):w.query||{}},Q,{redirectedFrom:void 0,href:fe})}function S(w){return typeof w=="string"?Lf(n,w,c.value.path):He({},w)}function C(w,H){if(u!==w)return Ka(8,{from:H,to:w})}function A(w){return b(w)}function V(w){return A(He(S(w),{replace:!0}))}function z(w){const H=w.matched[w.matched.length-1];if(H&&H.redirect){const{redirect:Y}=H;let Q=typeof Y=="function"?Y(w):Y;if(typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=S(Q):{path:Q},Q.params={}),process.env.NODE_ENV!=="production"&&Q.path==null&&!("name"in Q))throw Re(`Invalid redirect found:
30
- ${JSON.stringify(Q,null,2)}
31
- when navigating to "${w.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return He({query:w.query,hash:w.hash,params:Q.path!=null?{}:w.params},Q)}}function b(w,H){const Y=u=g(w),Q=c.value,Ee=w.state,Ye=w.force,fe=w.replace===!0,ce=z(Y);if(ce)return b(He(S(ce),{state:typeof ce=="object"?He({},Ee,ce.state):Ee,force:Ye,replace:fe}),H||Y);const Ae=Y;Ae.redirectedFrom=H;let Mt;return!Ye&&pv(r,Q,Y)&&(Mt=Ka(16,{to:Ae,from:Q}),ve(Q,Q,!0,!1)),(Mt?Promise.resolve(Mt):k(Ae,Q)).catch(Je=>gr(Je)?gr(Je,2)?Je:ue(Je):O(Je,Ae,Q)).then(Je=>{if(Je){if(gr(Je,2))return process.env.NODE_ENV!=="production"&&pv(r,g(Je.to),Ae)&&H&&(H._count=H._count?H._count+1:1)>30?(Re(`Detected a possibly infinite redirection in a navigation guard when going from "${Q.fullPath}" to "${Ae.fullPath}". Aborting to avoid a Stack Overflow.
32
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):b(He({replace:fe},S(Je.to),{state:typeof Je.to=="object"?He({},Ee,Je.to.state):Ee,force:Ye}),H||Ae)}else Je=q(Ae,Q,!0,fe,Ee);return P(Ae,Q,Je),Je})}function I(w,H){const Y=C(w,H);return Y?Promise.reject(Y):Promise.resolve()}function B(w){const H=T.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(w):w()}function k(w,H){let Y;const[Q,Ee,Ye]=uN(w,H);Y=Hf(Q.reverse(),"beforeRouteLeave",w,H);for(const ce of Q)ce.leaveGuards.forEach(Ae=>{Y.push(Qr(Ae,w,H))});const fe=I.bind(null,w,H);return Y.push(fe),ie(Y).then(()=>{Y=[];for(const ce of a.list())Y.push(Qr(ce,w,H));return Y.push(fe),ie(Y)}).then(()=>{Y=Hf(Ee,"beforeRouteUpdate",w,H);for(const ce of Ee)ce.updateGuards.forEach(Ae=>{Y.push(Qr(Ae,w,H))});return Y.push(fe),ie(Y)}).then(()=>{Y=[];for(const ce of Ye)if(ce.beforeEnter)if(rn(ce.beforeEnter))for(const Ae of ce.beforeEnter)Y.push(Qr(Ae,w,H));else Y.push(Qr(ce.beforeEnter,w,H));return Y.push(fe),ie(Y)}).then(()=>(w.matched.forEach(ce=>ce.enterCallbacks={}),Y=Hf(Ye,"beforeRouteEnter",w,H,B),Y.push(fe),ie(Y))).then(()=>{Y=[];for(const ce of s.list())Y.push(Qr(ce,w,H));return Y.push(fe),ie(Y)}).catch(ce=>gr(ce,8)?ce:Promise.reject(ce))}function P(w,H,Y){l.list().forEach(Q=>B(()=>Q(w,H,Y)))}function q(w,H,Y,Q,Ee){const Ye=C(w,H);if(Ye)return Ye;const fe=H===Jr,ce=_r?history.state:{};Y&&(Q||fe?i.replace(w.fullPath,He({scroll:fe&&ce&&ce.scroll},Ee)):i.push(w.fullPath,Ee)),c.value=w,ve(w,H,Y,fe),ue()}let te;function E(){te||(te=i.listen((w,H,Y)=>{if(!U.listening)return;const Q=g(w),Ee=z(Q);if(Ee){b(He(Ee,{replace:!0,force:!0}),Q).catch(hs);return}u=Q;const Ye=c.value;_r&&pT(_v(Ye.fullPath,Y.delta),Jl()),k(Q,Ye).catch(fe=>gr(fe,12)?fe:gr(fe,2)?(b(He(S(fe.to),{force:!0}),Q).then(ce=>{gr(ce,20)&&!Y.delta&&Y.type===ps.pop&&i.go(-1,!1)}).catch(hs),Promise.reject()):(Y.delta&&i.go(-Y.delta,!1),O(fe,Q,Ye))).then(fe=>{fe=fe||q(Q,Ye,!1),fe&&(Y.delta&&!gr(fe,8)?i.go(-Y.delta,!1):Y.type===ps.pop&&gr(fe,20)&&i.go(-1,!1)),P(Q,Ye,fe)}).catch(hs)}))}let D=vs(),j=vs(),x;function O(w,H,Y){ue(w);const Q=j.list();return Q.length?Q.forEach(Ee=>Ee(w,H,Y)):(process.env.NODE_ENV!=="production"&&Re("uncaught error during route navigation:"),console.error(w)),Promise.reject(w)}function re(){return x&&c.value!==Jr?Promise.resolve():new Promise((w,H)=>{D.add([w,H])})}function ue(w){return x||(x=!w,E(),D.list().forEach(([H,Y])=>w?Y(w):H()),D.reset()),w}function ve(w,H,Y,Q){const{scrollBehavior:Ee}=e;if(!_r||!Ee)return Promise.resolve();const Ye=!Y&&mT(_v(w.fullPath,0))||(Q||!Y)&&history.state&&history.state.scroll||null;return o.nextTick().then(()=>Ee(w,H,Ye)).then(fe=>fe&&hT(fe)).catch(fe=>O(fe,w,H))}const y=w=>i.go(w);let M;const T=new Set,U={currentRoute:c,listening:!0,addRoute:h,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:v,resolve:g,options:e,push:A,replace:V,go:y,back:()=>y(-1),forward:()=>y(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:j.add,isReady:re,install(w){const H=this;w.component("RouterLink",jT),w.component("RouterView",XT),w.config.globalProperties.$router=H,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>o.unref(c)}),_r&&!M&&c.value===Jr&&(M=!0,A(i.location).catch(Ee=>{process.env.NODE_ENV!=="production"&&Re("Unexpected error when starting the router:",Ee)}));const Y={};for(const Ee in Jr)Object.defineProperty(Y,Ee,{get:()=>c.value[Ee],enumerable:!0});w.provide(Zl,H),w.provide(Bf,o.shallowReactive(Y)),w.provide(Uf,c);const Q=w.unmount;T.add(w),w.unmount=function(){T.delete(w),T.size<1&&(u=Jr,te&&te(),te=null,c.value=Jr,M=!1,x=!1),Q()},process.env.NODE_ENV!=="production"&&_r&&ZT(w,H,t)}};function ie(w){return w.reduce((H,Y)=>H.then(()=>B(Y)),Promise.resolve())}return U}function uN(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const l=t.matched[s];l&&(e.matched.find(u=>Xr(u,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(u=>Xr(u,c))||i.push(c))}return[n,r,i]}function fN(){return o.inject(Zl)}function Hv(e){return o.inject(Bf)}function tc(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Wf(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
27
+ </${i}>
28
+ </router-view>`)}}function kl(e,t){const n=lt({},e,{matched:e.matched.map(i=>ik(i,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function bu(e){return{_custom:{display:e}}}let jN=0;function qN(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const i=jN++;Sh({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},o=>{typeof o.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),o.on.inspectComponent((_,v)=>{_.instanceData&&_.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:kl(t.currentRoute.value,"Current Route")})}),o.on.visitComponentTree(({treeNode:_,componentInstance:v})=>{if(v.__vrv_devtools){const y=v.__vrv_devtools;_.tags.push({label:(y.name?`${y.name.toString()}: `:"")+y.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Wg})}Mn(v.__vrl_devtools)&&(v.__devtoolsApi=o,v.__vrl_devtools.forEach(y=>{let g=y.route.path,E=jg,w="",T=0;y.error?(g=y.error,E=ek,T=tk):y.isExactActive?(E=Gg,w="This is exactly active"):y.isActive&&(E=Zg,w="This link is active"),_.tags.push({label:g,textColor:T,tooltip:w,backgroundColor:E})}))}),l.watch(t.currentRoute,()=>{d(),o.notifyComponentUpdate(),o.sendInspectorTree(f),o.sendInspectorState(f)});const s="router:navigations:"+i;o.addTimelineLayer({id:s,label:`Router${i?" "+i:""} Navigations`,color:4237508}),t.onError((_,v)=>{o.addTimelineEvent({layerId:s,event:{title:"Error during Navigation",subtitle:v.fullPath,logType:"error",time:o.now(),data:{error:_},groupId:v.meta.__navigationId}})});let c=0;t.beforeEach((_,v)=>{const y={guard:bu("beforeEach"),from:kl(v,"Current Location during this navigation"),to:kl(_,"Target location")};Object.defineProperty(_.meta,"__navigationId",{value:c++}),o.addTimelineEvent({layerId:s,event:{time:o.now(),title:"Start of navigation",subtitle:_.fullPath,data:y,groupId:_.meta.__navigationId}})}),t.afterEach((_,v,y)=>{const g={guard:bu("afterEach")};y?(g.failure={_custom:{type:Error,readOnly:!0,display:y?y.message:"",tooltip:"Navigation Failure",value:y}},g.status=bu("❌")):g.status=bu("✅"),g.from=kl(v,"Current Location during this navigation"),g.to=kl(_,"Target location"),o.addTimelineEvent({layerId:s,event:{title:"End of navigation",subtitle:_.fullPath,time:o.now(),data:g,logType:y?"warning":"default",groupId:_.meta.__navigationId}})});const f="router-inspector:"+i;o.addInspector({id:f,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"});function d(){if(!p)return;const _=p;let v=n.getRoutes().filter(y=>!y.parent||!y.parent.record.components);v.forEach(Xg),_.filter&&(v=v.filter(y=>Oh(y,_.filter.toLowerCase()))),v.forEach(y=>Kg(y,t.currentRoute.value)),_.rootNodes=v.map(qg)}let p;o.on.getInspectorTree(_=>{p=_,_.app===e&&_.inspectorId===f&&d()}),o.on.getInspectorState(_=>{if(_.app===e&&_.inspectorId===f){const y=n.getRoutes().find(g=>g.record.__vd_id===_.nodeId);y&&(_.state={options:XN(y)})}}),o.sendInspectorTree(f),o.sendInspectorState(f)})}function KN(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function XN(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(i=>`${i.name}${KN(i)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(i=>i.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(i=>i.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Wg=15485081,Zg=2450411,Gg=8702998,JN=2282478,jg=16486972,QN=6710886,ek=16704226,tk=12131356;function qg(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:JN}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:jg}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Wg}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Gg}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Zg}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:QN});let i=n.__vd_id;return i==null&&(i=String(nk++),n.__vd_id=i),{id:i,label:n.path,tags:t,children:e.children.map(qg)}}let nk=0;const rk=/^\/(.*)\/([a-z]*)$/;function Kg(e,t){const n=t.matched.length&&$i(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(i=>$i(i,e.record))),e.children.forEach(i=>Kg(i,t))}function Xg(e){e.__vd_match=!1,e.children.forEach(Xg)}function Oh(e,t){const n=String(e.re).match(rk);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(c=>Oh(c,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),s=ja(o);return!t.startsWith("/")&&(s.includes(t)||o.includes(t))||s.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(c=>Oh(c,t))}function ik(e,t){const n={};for(const i in e)t.includes(i)||(n[i]=e[i]);return n}function ok(e){const t=PN(e.routes,e),n=e.parseQuery||BN,i=e.stringifyQuery||Fg,o=e.history;if(process.env.NODE_ENV!=="production"&&!o)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const s=Nl(),c=Nl(),f=Nl(),d=l.shallowRef(Ui);let p=Ui;ni&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _=wh.bind(null,O=>""+O),v=wh.bind(null,Qb),y=wh.bind(null,ja);function g(O,X){let J,fe;return Dg(O)?(J=t.getRecordMatcher(O),process.env.NODE_ENV!=="production"&&!J&&je(`Parent route "${String(O)}" not found when adding child route`,X),fe=X):fe=O,t.addRoute(fe,J)}function E(O){const X=t.getRecordMatcher(O);X?t.removeRoute(X):process.env.NODE_ENV!=="production"&&je(`Cannot remove non-existent route "${String(O)}"`)}function w(){return t.getRoutes().map(O=>O.record)}function T(O){return!!t.getRecordMatcher(O)}function b(O,X){if(X=lt({},X||d.value),typeof O=="string"){const be=bh(n,O,X.path),ze=t.resolve({path:be.path},X),Wt=o.createHref(be.fullPath);return process.env.NODE_ENV!=="production"&&(Wt.startsWith("//")?je(`Location "${O}" resolved to "${Wt}". A resolved location cannot start with multiple slashes.`):ze.matched.length||je(`No match found for location with path "${O}"`)),lt(be,ze,{params:y(ze.params),hash:ja(be.hash),redirectedFrom:void 0,href:Wt})}if(process.env.NODE_ENV!=="production"&&!Eu(O))return je(`router.resolve() was passed an invalid location. This will fail in production.
29
+ - Location:`,O),b({});let J;if(O.path!=null)process.env.NODE_ENV!=="production"&&"params"in O&&!("name"in O)&&Object.keys(O.params).length&&je(`Path "${O.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),J=lt({},O,{path:bh(n,O.path,X.path).path});else{const be=lt({},O.params);for(const ze in be)be[ze]==null&&delete be[ze];J=lt({},O,{params:v(be)}),X.params=v(X.params)}const fe=t.resolve(J,X),Oe=O.hash||"";process.env.NODE_ENV!=="production"&&Oe&&!Oe.startsWith("#")&&je(`A \`hash\` should always start with the character "#". Replace "${Oe}" with "#${Oe}".`),fe.params=_(y(fe.params));const Ge=nN(i,lt({},O,{hash:Kb(Oe),path:fe.path})),we=o.createHref(Ge);return process.env.NODE_ENV!=="production"&&(we.startsWith("//")?je(`Location "${O}" resolved to "${we}". A resolved location cannot start with multiple slashes.`):fe.matched.length||je(`No match found for location with path "${O.path!=null?O.path:O}"`)),lt({fullPath:Ge,hash:Oe,query:i===Fg?VN(O.query):O.query||{}},fe,{redirectedFrom:void 0,href:we})}function C(O){return typeof O=="string"?bh(n,O,d.value.path):lt({},O)}function M(O,X){if(p!==O)return qa(8,{from:X,to:O})}function z(O){return R(O)}function G(O){return z(lt(C(O),{replace:!0}))}function oe(O){const X=O.matched[O.matched.length-1];if(X&&X.redirect){const{redirect:J}=X;let fe=typeof J=="function"?J(O):J;if(typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=C(fe):{path:fe},fe.params={}),process.env.NODE_ENV!=="production"&&fe.path==null&&!("name"in fe))throw je(`Invalid redirect found:
30
+ ${JSON.stringify(fe,null,2)}
31
+ when navigating to "${O.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return lt({query:O.query,hash:O.hash,params:fe.path!=null?{}:O.params},fe)}}function R(O,X){const J=p=b(O),fe=d.value,Oe=O.state,Ge=O.force,we=O.replace===!0,be=oe(J);if(be)return R(lt(C(be),{state:typeof be=="object"?lt({},Oe,be.state):Oe,force:Ge,replace:we}),X||J);const ze=J;ze.redirectedFrom=X;let Wt;return!Ge&&Tg(i,fe,J)&&(Wt=qa(16,{to:ze,from:fe}),_e(fe,fe,!0,!1)),(Wt?Promise.resolve(Wt):A(ze,fe)).catch(dt=>ri(dt)?ri(dt,2)?dt:re(dt):x(dt,ze,fe)).then(dt=>{if(dt){if(ri(dt,2))return process.env.NODE_ENV!=="production"&&Tg(i,b(dt.to),ze)&&X&&(X._count=X._count?X._count+1:1)>30?(je(`Detected a possibly infinite redirection in a navigation guard when going from "${fe.fullPath}" to "${ze.fullPath}". Aborting to avoid a Stack Overflow.
32
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):R(lt({replace:we},C(dt.to),{state:typeof dt.to=="object"?lt({},Oe,dt.to.state):Oe,force:Ge}),X||ze)}else dt=ae(ze,fe,!0,we,Oe);return B(ze,fe,dt),dt})}function F(O,X){const J=M(O,X);return J?Promise.reject(J):Promise.resolve()}function Q(O){const X=k.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(O):O()}function A(O,X){let J;const[fe,Oe,Ge]=ak(O,X);J=xh(fe.reverse(),"beforeRouteLeave",O,X);for(const be of fe)be.leaveGuards.forEach(ze=>{J.push(zi(ze,O,X))});const we=F.bind(null,O,X);return J.push(we),ie(J).then(()=>{J=[];for(const be of s.list())J.push(zi(be,O,X));return J.push(we),ie(J)}).then(()=>{J=xh(Oe,"beforeRouteUpdate",O,X);for(const be of Oe)be.updateGuards.forEach(ze=>{J.push(zi(ze,O,X))});return J.push(we),ie(J)}).then(()=>{J=[];for(const be of Ge)if(be.beforeEnter)if(Mn(be.beforeEnter))for(const ze of be.beforeEnter)J.push(zi(ze,O,X));else J.push(zi(be.beforeEnter,O,X));return J.push(we),ie(J)}).then(()=>(O.matched.forEach(be=>be.enterCallbacks={}),J=xh(Ge,"beforeRouteEnter",O,X,Q),J.push(we),ie(J))).then(()=>{J=[];for(const be of c.list())J.push(zi(be,O,X));return J.push(we),ie(J)}).catch(be=>ri(be,8)?be:Promise.reject(be))}function B(O,X,J){f.list().forEach(fe=>Q(()=>fe(O,X,J)))}function ae(O,X,J,fe,Oe){const Ge=M(O,X);if(Ge)return Ge;const we=X===Ui,be=ni?history.state:{};J&&(fe||we?o.replace(O.fullPath,lt({scroll:we&&be&&be.scroll},Oe)):o.push(O.fullPath,Oe)),d.value=O,_e(O,X,J,we),re()}let he;function P(){he||(he=o.listen((O,X,J)=>{if(!H.listening)return;const fe=b(O),Oe=oe(fe);if(Oe){R(lt(Oe,{replace:!0,force:!0}),fe).catch(El);return}p=fe;const Ge=d.value;ni&&uN(kg(Ge.fullPath,J.delta),wu()),A(fe,Ge).catch(we=>ri(we,12)?we:ri(we,2)?(R(lt(C(we.to),{force:!0}),fe).then(be=>{ri(be,20)&&!J.delta&&J.type===Tl.pop&&o.go(-1,!1)}).catch(El),Promise.reject()):(J.delta&&o.go(-J.delta,!1),x(we,fe,Ge))).then(we=>{we=we||ae(fe,Ge,!1),we&&(J.delta&&!ri(we,8)?o.go(-J.delta,!1):J.type===Tl.pop&&ri(we,20)&&o.go(-1,!1)),B(fe,Ge,we)}).catch(El)}))}let V=Nl(),K=Nl(),W;function x(O,X,J){re(O);const fe=K.list();return fe.length?fe.forEach(Oe=>Oe(O,X,J)):(process.env.NODE_ENV!=="production"&&je("uncaught error during route navigation:"),console.error(O)),Promise.reject(O)}function ve(){return W&&d.value!==Ui?Promise.resolve():new Promise((O,X)=>{V.add([O,X])})}function re(O){return W||(W=!O,P(),V.list().forEach(([X,J])=>O?J(O):X()),V.reset()),O}function _e(O,X,J,fe){const{scrollBehavior:Oe}=e;if(!ni||!Oe)return Promise.resolve();const Ge=!J&&fN(kg(O.fullPath,0))||(fe||!J)&&history.state&&history.state.scroll||null;return l.nextTick().then(()=>Oe(O,X,Ge)).then(we=>we&&cN(we)).catch(we=>x(we,O,X))}const N=O=>o.go(O);let U;const k=new Set,H={currentRoute:d,listening:!0,addRoute:g,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:w,resolve:b,options:e,push:z,replace:G,go:N,back:()=>N(-1),forward:()=>N(1),beforeEach:s.add,beforeResolve:c.add,afterEach:f.add,onError:K.add,isReady:ve,install(O){const X=this;O.component("RouterLink",UN),O.component("RouterView",ZN),O.config.globalProperties.$router=X,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>l.unref(d)}),ni&&!U&&d.value===Ui&&(U=!0,z(o.location).catch(Oe=>{process.env.NODE_ENV!=="production"&&je("Unexpected error when starting the router:",Oe)}));const J={};for(const Oe in Ui)Object.defineProperty(J,Oe,{get:()=>d.value[Oe],enumerable:!0});O.provide(Tu,X),O.provide(Ph,l.shallowReactive(J)),O.provide(Dh,d);const fe=O.unmount;k.add(O),O.unmount=function(){k.delete(O),k.size<1&&(p=Ui,he&&he(),he=null,d.value=Ui,U=!1,W=!1),fe()},process.env.NODE_ENV!=="production"&&ni&&qN(O,X,t)}};function ie(O){return O.reduce((X,J)=>X.then(()=>Q(J)),Promise.resolve())}return H}function ak(e,t){const n=[],i=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let c=0;c<s;c++){const f=t.matched[c];f&&(e.matched.find(p=>$i(p,f))?i.push(f):n.push(f));const d=e.matched[c];d&&(t.matched.find(p=>$i(p,d))||o.push(d))}return[n,i,o]}function sk(){return l.inject(Tu)}function Jg(e){return l.inject(Ph)}function Nu(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ih(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
33
33
  * pinia v2.3.1
34
34
  * (c) 2025 Eduardo San Martin Morote
35
35
  * @license MIT
36
- */let gs;const ys=e=>gs=e,Gv=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Yi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Gn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Gn||(Gn={}));const Zr=typeof window<"u",Wv=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function dN(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function jf(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Kv(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function jv(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function nc(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const rc=typeof navigator=="object"?navigator:{userAgent:""},zv=/Macintosh/.test(rc.userAgent)&&/AppleWebKit/.test(rc.userAgent)&&!/Safari/.test(rc.userAgent),Kv=Zr?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!zv?hN:"msSaveOrOpenBlob"in rc?pN:mN:()=>{};function hN(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?jv(r.href)?jf(e,t,n):(r.target="_blank",nc(r)):nc(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){nc(r)},0))}function pN(e,t="download",n){if(typeof e=="string")if(jv(e))jf(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){nc(r)})}else navigator.msSaveOrOpenBlob(dN(e,n),t)}function mN(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return jf(e,t,n);const i=e.type==="application/octet-stream",a=/constructor/i.test(String(Wv.HTMLElement))||"safari"in Wv,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a||zv)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=s?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function bt(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function zf(e){return"_a"in e&&"install"in e}function qv(){if(!("clipboard"in navigator))return bt("Your browser doesn't support the Clipboard API","error"),!0}function Xv(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(bt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function vN(e){if(!qv())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),bt("Global state copied to clipboard.")}catch(t){if(Xv(t))return;bt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function _N(e){if(!qv())try{Jv(e,JSON.parse(await navigator.clipboard.readText())),bt("Global state pasted from clipboard.")}catch(t){if(Xv(t))return;bt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function gN(e){try{Kv(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){bt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let yr;function yN(){yr||(yr=document.createElement("input"),yr.type="file",yr.accept=".json");function e(){return new Promise((t,n)=>{yr.onchange=async()=>{const r=yr.files;if(!r)return t(null);const i=r.item(0);return t(i?{text:await i.text(),file:i}:null)},yr.oncancel=()=>t(null),yr.onerror=n,yr.click()})}return e}async function SN(e){try{const n=await yN()();if(!n)return;const{text:r,file:i}=n;Jv(e,JSON.parse(r)),bt(`Global state imported from "${i.name}".`)}catch(t){bt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Jv(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Cn(e){return{_custom:{display:e}}}const Qv="🍍 Pinia (root)",ic="_root";function EN(e){return zf(e)?{id:ic,label:Qv}:{id:e.$id,label:e.$id}}function TN(e){if(zf(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(a=>({editable:!0,key:a,value:e.state.value[a]})),getters:n.filter(a=>r.get(a)._getters).map(a=>{const s=r.get(a);return{editable:!1,key:a,value:s._getters.reduce((l,c)=>(l[c]=s[c],l),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function NN(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Cn(e.type),key:Cn(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function wN(e){switch(e){case Gn.direct:return"mutation";case Gn.patchFunction:return"$patch";case Gn.patchObject:return"$patch";default:return"unknown"}}let qa=!0;const ac=[],$i="pinia:mutations",Vt="pinia",{assign:bN}=Object,oc=e=>"🍍 "+e;function DN(e,t){Af({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ac,app:e},n=>{typeof n.now!="function"&&bt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:$i,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Vt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{vN(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await _N(t),n.sendInspectorTree(Vt),n.sendInspectorState(Vt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{gN(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await SN(t),n.sendInspectorTree(Vt),n.sendInspectorState(Vt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const i=t._s.get(r);i?typeof i.$reset!="function"?bt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(i.$reset(),bt(`Store "${r}" reset.`)):bt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,i)=>{const a=r.componentInstance&&r.componentInstance.proxy;if(a&&a._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(l=>{r.instanceData.state.push({type:oc(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:o.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,u)=>(c[u]=l.$state[u],c),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:oc(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,u)=>{try{c[u]=l[u]}catch(f){c[u]=f}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===Vt){let i=[t];i=i.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?i.filter(a=>"$id"in a?a.$id.toLowerCase().includes(r.filter.toLowerCase()):Qv.toLowerCase().includes(r.filter.toLowerCase())):i).map(EN)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===Vt){const i=r.nodeId===ic?t:t._s.get(r.nodeId);if(!i)return;i&&(r.nodeId!==ic&&(globalThis.$store=o.toRaw(i)),r.state=TN(i))}}),n.on.editInspectorState((r,i)=>{if(r.app===e&&r.inspectorId===Vt){const a=r.nodeId===ic?t:t._s.get(r.nodeId);if(!a)return bt(`store "${r.nodeId}" not found`,"error");const{path:s}=r;zf(a)?s.unshift("state"):(s.length!==1||!a._customProperties.has(s[0])||s[0]in a.$state)&&s.unshift("$state"),qa=!1,r.set(a,s,r.state.value),qa=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const i=r.type.replace(/^🍍\s*/,""),a=t._s.get(i);if(!a)return bt(`store "${i}" not found`,"error");const{path:s}=r;if(s[0]!=="state")return bt(`Invalid path for store "${i}":
37
- ${s}
38
- Only state can be modified.`);s[0]="$state",qa=!1,r.set(a,s,r.state.value),qa=!0}})})}function kN(e,t){ac.includes(oc(t.$id))||ac.push(oc(t.$id)),Af({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:ac,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:s,onError:l,name:c,args:u})=>{const f=Zv++;n.addTimelineEvent({layerId:$i,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:Cn(t.$id),action:Cn(c),args:u},groupId:f}}),s(d=>{ei=void 0,n.addTimelineEvent({layerId:$i,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:Cn(t.$id),action:Cn(c),args:u,result:d},groupId:f}})}),l(d=>{ei=void 0,n.addTimelineEvent({layerId:$i,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:Cn(t.$id),action:Cn(c),args:u,error:d},groupId:f}})})},!0),t._customProperties.forEach(s=>{o.watch(()=>o.unref(t[s]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(Vt),qa&&n.addTimelineEvent({layerId:$i,event:{time:r(),title:"Change",subtitle:s,data:{newValue:l,oldValue:c},groupId:ei}})},{deep:!0})}),t.$subscribe(({events:s,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Vt),!qa)return;const u={time:r(),title:wN(l),data:bN({store:Cn(t.$id)},NN(s)),groupId:ei};l===Gn.patchFunction?u.subtitle="⤵️":l===Gn.patchObject?u.subtitle="🧩":s&&!Array.isArray(s)&&(u.subtitle=s.type),s&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:s}}),n.addTimelineEvent({layerId:$i,event:u})},{detached:!0,flush:"sync"});const i=t._hotUpdate;t._hotUpdate=o.markRaw(s=>{i(s),n.addTimelineEvent({layerId:$i,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Cn(t.$id),info:Cn("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Vt),n.sendInspectorState(Vt)});const{$dispose:a}=t;t.$dispose=()=>{a(),n.notifyComponentUpdate(),n.sendInspectorTree(Vt),n.sendInspectorState(Vt),n.getSettings().logStoreChanges&&bt(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Vt),n.sendInspectorState(Vt),n.getSettings().logStoreChanges&&bt(`"${t.$id}" store installed 🆕`)})}let Zv=0,ei;function e_(e,t,n){const r=t.reduce((i,a)=>(i[a]=o.toRaw(e)[a],i),{});for(const i in r)e[i]=function(){const a=Zv,s=n?new Proxy(e,{get(...c){return ei=a,Reflect.get(...c)},set(...c){return ei=a,Reflect.set(...c)}}):e;ei=a;const l=r[i].apply(s,arguments);return ei=void 0,l}}function CN({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){e_(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;o.toRaw(t)._hotUpdate=function(i){r.apply(this,arguments),e_(t,Object.keys(i._hmrPayload.actions),!!t._isOptionsAPI)}}kN(e,t)}}function IN(){const e=o.effectScope(!0),t=e.run(()=>o.ref({}));let n=[],r=[];const i=o.markRaw({install(a){ys(i),i._a=a,a.provide(Gv,i),a.config.globalProperties.$pinia=i,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr&&DN(a,i),r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr&&typeof Proxy<"u"&&i.use(CN),i}function t_(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const i=e[n];Yi(i)&&Yi(r)&&!o.isRef(r)&&!o.isReactive(r)?e[n]=t_(i,r):e[n]=r}return e}const n_=()=>{};function r_(e,t,n,r=n_){e.push(t);const i=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&o.getCurrentScope()&&o.onScopeDispose(i),i}function Xa(e,...t){e.slice().forEach(n=>{n(...t)})}const RN=e=>e(),i_=Symbol(),Kf=Symbol();function qf(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Yi(i)&&Yi(r)&&e.hasOwnProperty(n)&&!o.isRef(r)&&!o.isReactive(r)?e[n]=qf(i,r):e[n]=r}return e}const ON=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function PN(e){return!Yi(e)||!e.hasOwnProperty(ON)}const{assign:pn}=Object;function a_(e){return!!(o.isRef(e)&&e.effect)}function o_(e,t,n,r){const{state:i,actions:a,getters:s}=t,l=n.state.value[e];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=i?i():{});const f=process.env.NODE_ENV!=="production"&&r?o.toRefs(o.ref(i?i():{}).value):o.toRefs(n.state.value[e]);return pn(f,a,Object.keys(s||{}).reduce((d,p)=>(process.env.NODE_ENV!=="production"&&p in f&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),d[p]=o.markRaw(o.computed(()=>{ys(n);const h=n._s.get(e);return s[p].call(h,h)})),d),{}))}return c=Xf(e,u,t,n,r,!0),c}function Xf(e,t,n={},r,i,a){let s;const l=pn({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=k=>{u?h=k:u==!1&&!b._hotUpdating&&(Array.isArray(h)?h.push(k):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,f,d=[],p=[],h;const m=r.state.value[e];!a&&!m&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[e]={});const v=o.ref({});let _;function g(k){let P;u=f=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof k=="function"?(k(r.state.value[e]),P={type:Gn.patchFunction,storeId:e,events:h}):(qf(r.state.value[e],k),P={type:Gn.patchObject,payload:k,storeId:e,events:h});const q=_=Symbol();o.nextTick().then(()=>{_===q&&(u=!0)}),f=!0,Xa(d,P,r.state.value[e])}const S=a?function(){const{state:P}=n,q=P?P():{};this.$patch(te=>{pn(te,q)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:n_;function C(){s.stop(),d=[],p=[],r._s.delete(e)}const A=(k,P="")=>{if(i_ in k)return k[Kf]=P,k;const q=function(){ys(r);const te=Array.from(arguments),E=[],D=[];function j(re){E.push(re)}function x(re){D.push(re)}Xa(p,{args:te,name:q[Kf],store:b,after:j,onError:x});let O;try{O=k.apply(this&&this.$id===e?this:b,te)}catch(re){throw Xa(D,re),re}return O instanceof Promise?O.then(re=>(Xa(E,re),re)).catch(re=>(Xa(D,re),Promise.reject(re))):(Xa(E,O),O)};return q[i_]=!0,q[Kf]=P,q},V=o.markRaw({actions:{},getters:{},state:[],hotState:v}),z={_p:r,$id:e,$onAction:r_.bind(null,p),$patch:g,$reset:S,$subscribe(k,P={}){const q=r_(d,k,P.detached,()=>te()),te=s.run(()=>o.watch(()=>r.state.value[e],E=>{(P.flush==="sync"?f:u)&&k({storeId:e,type:Gn.direct,events:h},E)},pn({},c,P)));return q},$dispose:C},b=o.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr?pn({_hmrPayload:V,_customProperties:o.markRaw(new Set)},z):z);r._s.set(e,b);const B=(r._a&&r._a.runWithContext||RN)(()=>r._e.run(()=>(s=o.effectScope()).run(()=>t({action:A}))));for(const k in B){const P=B[k];if(o.isRef(P)&&!a_(P)||o.isReactive(P))process.env.NODE_ENV!=="production"&&i?tc(v.value,k,o.toRef(B,k)):a||(m&&PN(P)&&(o.isRef(P)?P.value=m[k]:qf(P,m[k])),r.state.value[e][k]=P),process.env.NODE_ENV!=="production"&&V.state.push(k);else if(typeof P=="function"){const q=process.env.NODE_ENV!=="production"&&i?P:A(P,k);B[k]=q,process.env.NODE_ENV!=="production"&&(V.actions[k]=P),l.actions[k]=P}else process.env.NODE_ENV!=="production"&&a_(P)&&(V.getters[k]=a?n.getters[k]:P,Zr&&(B._getters||(B._getters=o.markRaw([]))).push(k))}if(pn(b,B),pn(o.toRaw(b),B),Object.defineProperty(b,"$state",{get:()=>process.env.NODE_ENV!=="production"&&i?v.value:r.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&i)throw new Error("cannot set hotState");g(P=>{pn(P,k)})}}),process.env.NODE_ENV!=="production"&&(b._hotUpdate=o.markRaw(k=>{b._hotUpdating=!0,k._hmrPayload.state.forEach(P=>{if(P in b.$state){const q=k.$state[P],te=b.$state[P];typeof q=="object"&&Yi(q)&&Yi(te)?t_(q,te):k.$state[P]=te}tc(b,P,o.toRef(k.$state,P))}),Object.keys(b.$state).forEach(P=>{P in k.$state||Wf(b,P)}),u=!1,f=!1,r.state.value[e]=o.toRef(k._hmrPayload,"hotState"),f=!0,o.nextTick().then(()=>{u=!0});for(const P in k._hmrPayload.actions){const q=k[P];tc(b,P,A(q,P))}for(const P in k._hmrPayload.getters){const q=k._hmrPayload.getters[P],te=a?o.computed(()=>(ys(r),q.call(b,b))):q;tc(b,P,te)}Object.keys(b._hmrPayload.getters).forEach(P=>{P in k._hmrPayload.getters||Wf(b,P)}),Object.keys(b._hmrPayload.actions).forEach(P=>{P in k._hmrPayload.actions||Wf(b,P)}),b._hmrPayload=k._hmrPayload,b._getters=k._getters,b._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(P=>{Object.defineProperty(b,P,pn({value:b[P]},k))})}return r._p.forEach(k=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Zr){const P=s.run(()=>k({store:b,app:r._a,pinia:r,options:l}));Object.keys(P||{}).forEach(q=>b._customProperties.add(q)),pn(b,P)}else pn(b,s.run(()=>k({store:b,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&b.$state&&typeof b.$state=="object"&&typeof b.$state.constructor=="function"&&!b.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
36
+ */let Cl;const Pl=e=>Cl=e,Qg=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Ro(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Cr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Cr||(Cr={}));const Hi=typeof window<"u",ey=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function lk(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Rh(e,t,n){const i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){ry(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function ty(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ku(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Cu=typeof navigator=="object"?navigator:{userAgent:""},ny=/Macintosh/.test(Cu.userAgent)&&/AppleWebKit/.test(Cu.userAgent)&&!/Safari/.test(Cu.userAgent),ry=Hi?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!ny?ck:"msSaveOrOpenBlob"in Cu?uk:fk:()=>{};function ck(e,t="download",n){const i=document.createElement("a");i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?ty(i.href)?Rh(e,t,n):(i.target="_blank",ku(i)):ku(i)):(i.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(i.href)},4e4),setTimeout(function(){ku(i)},0))}function uk(e,t="download",n){if(typeof e=="string")if(ty(e))Rh(e,t,n);else{const i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){ku(i)})}else navigator.msSaveOrOpenBlob(lk(e,n),t)}function fk(e,t,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return Rh(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(ey.HTMLElement))||"safari"in ey,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s||ny)&&typeof FileReader<"u"){const f=new FileReader;f.onloadend=function(){let d=f.result;if(typeof d!="string")throw i=null,new Error("Wrong reader.result type");d=c?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=d:location.assign(d),i=null},f.readAsDataURL(e)}else{const f=URL.createObjectURL(e);i?i.location.assign(f):location.href=f,i=null,setTimeout(function(){URL.revokeObjectURL(f)},4e4)}}function Jt(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Lh(e){return"_a"in e&&"install"in e}function iy(){if(!("clipboard"in navigator))return Jt("Your browser doesn't support the Clipboard API","error"),!0}function oy(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(Jt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function dk(e){if(!iy())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Jt("Global state copied to clipboard.")}catch(t){if(oy(t))return;Jt("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function hk(e){if(!iy())try{ay(e,JSON.parse(await navigator.clipboard.readText())),Jt("Global state pasted from clipboard.")}catch(t){if(oy(t))return;Jt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function pk(e){try{ry(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){Jt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let ii;function _k(){ii||(ii=document.createElement("input"),ii.type="file",ii.accept=".json");function e(){return new Promise((t,n)=>{ii.onchange=async()=>{const i=ii.files;if(!i)return t(null);const o=i.item(0);return t(o?{text:await o.text(),file:o}:null)},ii.oncancel=()=>t(null),ii.onerror=n,ii.click()})}return e}async function mk(e){try{const n=await _k()();if(!n)return;const{text:i,file:o}=n;ay(e,JSON.parse(i)),Jt(`Global state imported from "${o.name}".`)}catch(t){Jt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function ay(e,t){for(const n in t){const i=e.state.value[n];i?Object.assign(i,t[n]):e.state.value[n]=t[n]}}function cr(e){return{_custom:{display:e}}}const sy="🍍 Pinia (root)",Pu="_root";function vk(e){return Lh(e)?{id:Pu,label:sy}:{id:e.$id,label:e.$id}}function gk(e){if(Lh(e)){const n=Array.from(e._s.keys()),i=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>i.get(s)._getters).map(s=>{const c=i.get(s);return{editable:!1,key:s,value:c._getters.reduce((f,d)=>(f[d]=c[d],f),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function yk(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:cr(e.type),key:cr(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Sk(e){switch(e){case Cr.direct:return"mutation";case Cr.patchFunction:return"$patch";case Cr.patchObject:return"$patch";default:return"unknown"}}let Ka=!0;const Du=[],Lo="pinia:mutations",un="pinia",{assign:wk}=Object,xu=e=>"🍍 "+e;function Ek(e,t){Sh({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Du,app:e},n=>{typeof n.now!="function"&&Jt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Lo,label:"Pinia 🍍",color:15064968}),n.addInspector({id:un,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{dk(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await hk(t),n.sendInspectorTree(un),n.sendInspectorState(un)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{pk(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await mk(t),n.sendInspectorTree(un),n.sendInspectorState(un)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:i=>{const o=t._s.get(i);o?typeof o.$reset!="function"?Jt(`Cannot reset "${i}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),Jt(`Store "${i}" reset.`)):Jt(`Cannot reset "${i}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((i,o)=>{const s=i.componentInstance&&i.componentInstance.proxy;if(s&&s._pStores){const c=i.componentInstance.proxy._pStores;Object.values(c).forEach(f=>{i.instanceData.state.push({type:xu(f.$id),key:"state",editable:!0,value:f._isOptionsAPI?{_custom:{value:l.toRaw(f.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>f.$reset()}]}}:Object.keys(f.$state).reduce((d,p)=>(d[p]=f.$state[p],d),{})}),f._getters&&f._getters.length&&i.instanceData.state.push({type:xu(f.$id),key:"getters",editable:!1,value:f._getters.reduce((d,p)=>{try{d[p]=f[p]}catch(_){d[p]=_}return d},{})})})}}),n.on.getInspectorTree(i=>{if(i.app===e&&i.inspectorId===un){let o=[t];o=o.concat(Array.from(t._s.values())),i.rootNodes=(i.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(i.filter.toLowerCase()):sy.toLowerCase().includes(i.filter.toLowerCase())):o).map(vk)}}),globalThis.$pinia=t,n.on.getInspectorState(i=>{if(i.app===e&&i.inspectorId===un){const o=i.nodeId===Pu?t:t._s.get(i.nodeId);if(!o)return;o&&(i.nodeId!==Pu&&(globalThis.$store=l.toRaw(o)),i.state=gk(o))}}),n.on.editInspectorState((i,o)=>{if(i.app===e&&i.inspectorId===un){const s=i.nodeId===Pu?t:t._s.get(i.nodeId);if(!s)return Jt(`store "${i.nodeId}" not found`,"error");const{path:c}=i;Lh(s)?c.unshift("state"):(c.length!==1||!s._customProperties.has(c[0])||c[0]in s.$state)&&c.unshift("$state"),Ka=!1,i.set(s,c,i.state.value),Ka=!0}}),n.on.editComponentState(i=>{if(i.type.startsWith("🍍")){const o=i.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return Jt(`store "${o}" not found`,"error");const{path:c}=i;if(c[0]!=="state")return Jt(`Invalid path for store "${o}":
37
+ ${c}
38
+ Only state can be modified.`);c[0]="$state",Ka=!1,i.set(s,c,i.state.value),Ka=!0}})})}function Tk(e,t){Du.includes(xu(t.$id))||Du.push(xu(t.$id)),Sh({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Du,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const i=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:c,onError:f,name:d,args:p})=>{const _=ly++;n.addTimelineEvent({layerId:Lo,event:{time:i(),title:"🛫 "+d,subtitle:"start",data:{store:cr(t.$id),action:cr(d),args:p},groupId:_}}),c(v=>{Wi=void 0,n.addTimelineEvent({layerId:Lo,event:{time:i(),title:"🛬 "+d,subtitle:"end",data:{store:cr(t.$id),action:cr(d),args:p,result:v},groupId:_}})}),f(v=>{Wi=void 0,n.addTimelineEvent({layerId:Lo,event:{time:i(),logType:"error",title:"💥 "+d,subtitle:"end",data:{store:cr(t.$id),action:cr(d),args:p,error:v},groupId:_}})})},!0),t._customProperties.forEach(c=>{l.watch(()=>l.unref(t[c]),(f,d)=>{n.notifyComponentUpdate(),n.sendInspectorState(un),Ka&&n.addTimelineEvent({layerId:Lo,event:{time:i(),title:"Change",subtitle:c,data:{newValue:f,oldValue:d},groupId:Wi}})},{deep:!0})}),t.$subscribe(({events:c,type:f},d)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(un),!Ka)return;const p={time:i(),title:Sk(f),data:wk({store:cr(t.$id)},yk(c)),groupId:Wi};f===Cr.patchFunction?p.subtitle="⤵️":f===Cr.patchObject?p.subtitle="🧩":c&&!Array.isArray(c)&&(p.subtitle=c.type),c&&(p.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:Lo,event:p})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=l.markRaw(c=>{o(c),n.addTimelineEvent({layerId:Lo,event:{time:i(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:cr(t.$id),info:cr("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un),n.getSettings().logStoreChanges&&Jt(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(un),n.sendInspectorState(un),n.getSettings().logStoreChanges&&Jt(`"${t.$id}" store installed 🆕`)})}let ly=0,Wi;function cy(e,t,n){const i=t.reduce((o,s)=>(o[s]=l.toRaw(e)[s],o),{});for(const o in i)e[o]=function(){const s=ly,c=n?new Proxy(e,{get(...d){return Wi=s,Reflect.get(...d)},set(...d){return Wi=s,Reflect.set(...d)}}):e;Wi=s;const f=i[o].apply(c,arguments);return Wi=void 0,f}}function bk({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){cy(t,Object.keys(n.actions),t._isOptionsAPI);const i=t._hotUpdate;l.toRaw(t)._hotUpdate=function(o){i.apply(this,arguments),cy(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}Tk(e,t)}}function Nk(){const e=l.effectScope(!0),t=e.run(()=>l.ref({}));let n=[],i=[];const o=l.markRaw({install(s){Pl(o),o._a=s,s.provide(Qg,o),s.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Hi&&Ek(s,o),i.forEach(c=>n.push(c)),i=[]},use(s){return this._a?n.push(s):i.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Hi&&typeof Proxy<"u"&&o.use(bk),o}function uy(e,t){for(const n in t){const i=t[n];if(!(n in e))continue;const o=e[n];Ro(o)&&Ro(i)&&!l.isRef(i)&&!l.isReactive(i)?e[n]=uy(o,i):e[n]=i}return e}const fy=()=>{};function dy(e,t,n,i=fy){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),i())};return!n&&l.getCurrentScope()&&l.onScopeDispose(o),o}function Xa(e,...t){e.slice().forEach(n=>{n(...t)})}const kk=e=>e(),hy=Symbol(),Mh=Symbol();function Ah(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,i)=>e.set(i,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],o=e[n];Ro(o)&&Ro(i)&&e.hasOwnProperty(n)&&!l.isRef(i)&&!l.isReactive(i)?e[n]=Ah(o,i):e[n]=i}return e}const Ck=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Pk(e){return!Ro(e)||!e.hasOwnProperty(Ck)}const{assign:Wn}=Object;function py(e){return!!(l.isRef(e)&&e.effect)}function _y(e,t,n,i){const{state:o,actions:s,getters:c}=t,f=n.state.value[e];let d;function p(){!f&&(process.env.NODE_ENV==="production"||!i)&&(n.state.value[e]=o?o():{});const _=process.env.NODE_ENV!=="production"&&i?l.toRefs(l.ref(o?o():{}).value):l.toRefs(n.state.value[e]);return Wn(_,s,Object.keys(c||{}).reduce((v,y)=>(process.env.NODE_ENV!=="production"&&y in _&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`),v[y]=l.markRaw(l.computed(()=>{Pl(n);const g=n._s.get(e);return c[y].call(g,g)})),v),{}))}return d=Bh(e,p,t,n,i,!0),d}function Bh(e,t,n={},i,o,s){let c;const f=Wn({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!i._e.active)throw new Error("Pinia destroyed");const d={deep:!0};process.env.NODE_ENV!=="production"&&(d.onTrigger=A=>{p?g=A:p==!1&&!R._hotUpdating&&(Array.isArray(g)?g.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let p,_,v=[],y=[],g;const E=i.state.value[e];!s&&!E&&(process.env.NODE_ENV==="production"||!o)&&(i.state.value[e]={});const w=l.ref({});let T;function b(A){let B;p=_=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof A=="function"?(A(i.state.value[e]),B={type:Cr.patchFunction,storeId:e,events:g}):(Ah(i.state.value[e],A),B={type:Cr.patchObject,payload:A,storeId:e,events:g});const ae=T=Symbol();l.nextTick().then(()=>{T===ae&&(p=!0)}),_=!0,Xa(v,B,i.state.value[e])}const C=s?function(){const{state:B}=n,ae=B?B():{};this.$patch(he=>{Wn(he,ae)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:fy;function M(){c.stop(),v=[],y=[],i._s.delete(e)}const z=(A,B="")=>{if(hy in A)return A[Mh]=B,A;const ae=function(){Pl(i);const he=Array.from(arguments),P=[],V=[];function K(ve){P.push(ve)}function W(ve){V.push(ve)}Xa(y,{args:he,name:ae[Mh],store:R,after:K,onError:W});let x;try{x=A.apply(this&&this.$id===e?this:R,he)}catch(ve){throw Xa(V,ve),ve}return x instanceof Promise?x.then(ve=>(Xa(P,ve),ve)).catch(ve=>(Xa(V,ve),Promise.reject(ve))):(Xa(P,x),x)};return ae[hy]=!0,ae[Mh]=B,ae},G=l.markRaw({actions:{},getters:{},state:[],hotState:w}),oe={_p:i,$id:e,$onAction:dy.bind(null,y),$patch:b,$reset:C,$subscribe(A,B={}){const ae=dy(v,A,B.detached,()=>he()),he=c.run(()=>l.watch(()=>i.state.value[e],P=>{(B.flush==="sync"?_:p)&&A({storeId:e,type:Cr.direct,events:g},P)},Wn({},d,B)));return ae},$dispose:M},R=l.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Hi?Wn({_hmrPayload:G,_customProperties:l.markRaw(new Set)},oe):oe);i._s.set(e,R);const Q=(i._a&&i._a.runWithContext||kk)(()=>i._e.run(()=>(c=l.effectScope()).run(()=>t({action:z}))));for(const A in Q){const B=Q[A];if(l.isRef(B)&&!py(B)||l.isReactive(B))process.env.NODE_ENV!=="production"&&o?Nu(w.value,A,l.toRef(Q,A)):s||(E&&Pk(B)&&(l.isRef(B)?B.value=E[A]:Ah(B,E[A])),i.state.value[e][A]=B),process.env.NODE_ENV!=="production"&&G.state.push(A);else if(typeof B=="function"){const ae=process.env.NODE_ENV!=="production"&&o?B:z(B,A);Q[A]=ae,process.env.NODE_ENV!=="production"&&(G.actions[A]=B),f.actions[A]=B}else process.env.NODE_ENV!=="production"&&py(B)&&(G.getters[A]=s?n.getters[A]:B,Hi&&(Q._getters||(Q._getters=l.markRaw([]))).push(A))}if(Wn(R,Q),Wn(l.toRaw(R),Q),Object.defineProperty(R,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?w.value:i.state.value[e],set:A=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");b(B=>{Wn(B,A)})}}),process.env.NODE_ENV!=="production"&&(R._hotUpdate=l.markRaw(A=>{R._hotUpdating=!0,A._hmrPayload.state.forEach(B=>{if(B in R.$state){const ae=A.$state[B],he=R.$state[B];typeof ae=="object"&&Ro(ae)&&Ro(he)?uy(ae,he):A.$state[B]=he}Nu(R,B,l.toRef(A.$state,B))}),Object.keys(R.$state).forEach(B=>{B in A.$state||Ih(R,B)}),p=!1,_=!1,i.state.value[e]=l.toRef(A._hmrPayload,"hotState"),_=!0,l.nextTick().then(()=>{p=!0});for(const B in A._hmrPayload.actions){const ae=A[B];Nu(R,B,z(ae,B))}for(const B in A._hmrPayload.getters){const ae=A._hmrPayload.getters[B],he=s?l.computed(()=>(Pl(i),ae.call(R,R))):ae;Nu(R,B,he)}Object.keys(R._hmrPayload.getters).forEach(B=>{B in A._hmrPayload.getters||Ih(R,B)}),Object.keys(R._hmrPayload.actions).forEach(B=>{B in A._hmrPayload.actions||Ih(R,B)}),R._hmrPayload=A._hmrPayload,R._getters=A._getters,R._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Hi){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(B=>{Object.defineProperty(R,B,Wn({value:R[B]},A))})}return i._p.forEach(A=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Hi){const B=c.run(()=>A({store:R,app:i._a,pinia:i,options:f}));Object.keys(B||{}).forEach(ae=>R._customProperties.add(ae)),Wn(R,B)}else Wn(R,c.run(()=>A({store:R,app:i._a,pinia:i,options:f})))}),process.env.NODE_ENV!=="production"&&R.$state&&typeof R.$state=="object"&&typeof R.$state.constructor=="function"&&!R.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
39
39
  state: () => new MyClass()
40
- Found in store "${b.$id}".`),m&&a&&n.hydrate&&n.hydrate(b.$state,m),u=!0,f=!0,b}/*! #__NO_SIDE_EFFECTS__ */function Ja(e,t,n){let r,i;const a=typeof t=="function";if(typeof e=="string")r=e,i=a?n:t;else if(i=e,r=e.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function s(l,c){const u=o.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&gs&&gs._testing?null:l)||(u?o.inject(Gv,null):null),l&&ys(l),process.env.NODE_ENV!=="production"&&!gs)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
40
+ Found in store "${R.$id}".`),E&&s&&n.hydrate&&n.hydrate(R.$state,E),p=!0,_=!0,R}/*! #__NO_SIDE_EFFECTS__ */function Ja(e,t,n){let i,o;const s=typeof t=="function";if(typeof e=="string")i=e,o=s?n:t;else if(o=e,i=e.id,process.env.NODE_ENV!=="production"&&typeof i!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function c(f,d){const p=l.hasInjectionContext();if(f=(process.env.NODE_ENV==="test"&&Cl&&Cl._testing?null:f)||(p?l.inject(Qg,null):null),f&&Pl(f),process.env.NODE_ENV!=="production"&&!Cl)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
41
41
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
42
- This will fail in production.`);l=gs,l._s.has(r)||(a?Xf(r,t,i,l):o_(r,i,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const f=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const d="__hot:"+r,p=a?Xf(d,t,i,l,!0):o_(d,pn({},i),l,!0);c._hotUpdate(p),delete l.state.value[d],l._s.delete(d)}if(process.env.NODE_ENV!=="production"&&Zr){const d=o.getCurrentInstance();if(d&&d.proxy&&!c){const p=d.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[r]=f}}return f}return s.$id=r,s}function Jf(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const i=e(this.$pinia),a=t[r];return typeof a=="function"?a.call(this,i):i[a]},n),{})}class AN extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}class Qf{constructor(t,n,r,i){Pe(this,"id");Pe(this,"componentId");Pe(this,"displayPosition");Pe(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=i}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}const Kr=class Kr{static register(t){Kr.providers.push(t)}static clear(){Kr.providers=[]}static trackPageView(t){Kr.providers.forEach(n=>n.trackPageView(t))}static trackSearch(t){Kr.providers.forEach(n=>n.trackSearch(t))}static trackSort(t){Kr.providers.forEach(n=>n.trackSort(t))}static trackApplicationStart(){Kr.providers.forEach(t=>t.trackApplicationStart())}};Pe(Kr,"providers",[]);let Qa=Kr;class MN extends Error{constructor(t){super(`The record ${t} was not found.`)}}function s_(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function l_(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}class Zf extends Error{constructor(t){super(`The field ${t} was not found.`)}}const c_={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class u_ extends Error{constructor(n,r){super(n);Pe(this,"innerError");r&&(this.innerError=r)}}class xN{async getData(){try{const t=await fetch(c_.SourceDataFile);if(!t.ok)throw new u_(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new u_("Failed to read source data.",t)}}}function VN(e){const t={},n=Za();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Zf(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function LN(e){return e.map(t=>VN(t))}const ti=Ja("dataset",()=>{const e=o.ref(!1),t=o.ref(""),n=o.ref(!1),r=o.ref(),i=[];async function a(){try{n.value=!1,e.value=!0;const c=new xN;r.value=await c.getData(),Sr().set(LN(r.value.records)),e.value=!1,n.value=!0,i.forEach(u=>{u()})}catch(c){t.value=`Failed to fetch or process site-data.json from the website root. ${c}`}finally{e.value=!1}}const s=o.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:s,loadData:a,dataset:r,onLoaded:c=>{s.value=="OK"?c():i.push(c)},onLoadedEvents:i}}),Za=Ja("fields",()=>{const e=ti(),t=o.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=o.computed(()=>t.value.length);function r(i){const a=t.value.find(s=>s.id===i);if(a===void 0)throw new Zf(i);return a}return{all:t,count:n,byId:r}}),It=Ja("properties",()=>{const e=Za(),t=ti(),n=o.ref({}),r=o.computed(()=>{var _;return(_=t.dataset)==null?void 0:_.properties}),i=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.metadata)??void 0}),a=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.title)??"Loading..."}),s=o.computed(()=>{var _;return((_=r==null?void 0:r.value)==null?void 0:_.resultMode)??"filter"}),l=o.computed(()=>{var _,g;return(_=r==null?void 0:r.value)!=null&&_.sortableFields?(g=r==null?void 0:r.value)==null?void 0:g.sortableFields.map(S=>e.byId(S)):[]}),c=o.computed(()=>{var _,g;if((_=r==null?void 0:r.value)!=null&&_.idField)return e.byId((g=r==null?void 0:r.value)==null?void 0:g.idField);throw new Zf("UNDEFINED")});function u(_){n.value=_}const f=o.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),d=o.ref(!1),p=[],h=_=>{d.value?_():p.push(_)},m=o.computed(()=>d.value);return{pages:f,metadata:i,title:a,idField:c,sortableFields:l,resultMode:s,setOptions:u,options:n,areStoresReady:m,onStoresReady:h,setStoresReady:_=>{if(d.value=_,_)for(;p.length>0;){const g=p.shift();g&&g()}}}}),Sr=Ja("records",()=>{const e=o.ref([]),t=o.computed(()=>e.value.length),n=o.computed(()=>[...e.value]),r=It();function i(c){const u=e.value.find(f=>f[r.idField.id].value==c);if(u===void 0)throw new MN(c);return u}function a(c){e.value=c}function s(c){return s_(n.value,c)}function l(c){return l_(n.value,c)}return{all:n,count:t,byId:i,set:a,next:s,previous:l,records:e}});var ni=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(ni||{});function FN(e,t,n,r){var l,c;if(!n||!r)return 0;const i=(l=e[n])==null?void 0:l.value,a=(c=t[n])==null?void 0:c.value;if(!i&&!a)return 0;if(!i&&a)return r===ni.Ascending?1:-1;if(i&&!a)return r===ni.Ascending?-1:1;const s=i.toString().localeCompare(a.toString(),void 0,{numeric:!0});return s<0?r===ni.Ascending?-1:1:s>0?r===ni.Ascending?1:-1:0}const Bt=Ja("searchResults",()=>{const e=Sr(),t=It(),n=_t(),r=o.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((S,C)=>C.filterRecords(S),e.all)),i=o.computed(()=>{Qa.trackSort({SortField:f.value,SortDirection:d.value});const S=[...r.value];return u.value&&S.sort((C,A)=>FN(C,A,f.value,d.value)),S.slice()}),a=o.computed(()=>{let S=i.value;return S=p.value?S:S.slice(0,c_.ShortenedRecordCount),S}),s=o.computed(()=>r.value.length),l=o.computed(()=>a.value.length),c=o.computed(()=>l.value===s.value),u=o.computed(()=>t.sortableFields.length>0),f=o.ref(),d=o.ref(),p=o.ref(!1);function h(){f.value=g(),d.value=_()}function m(S){return s_(i.value,S)}function v(S){return l_(i.value,S)}function _(){return u.value?ni.Ascending:void 0}function g(){var S;return u.value?(S=t.sortableFields[0])==null?void 0:S.id:void 0}return{all:r,totalCount:s,visible:a,visibleCount:l,showAllResults:p,allResultsAreVisible:c,hasSortFields:u,sortFieldId:f,sortDirection:d,reset:h,next:m,previous:v}}),_t=Ja("filter",()=>{const e=o.ref(!1),t=o.ref([]),n=o.computed(()=>t.value),r=o.computed(()=>n.value.length),i=v=>{t.value.push(v)},a=()=>{t.value=[]};function s(){t.value.forEach(v=>v.reset())}const l=o.computed(()=>{const v=f.value.filter(_=>_.isActive());return Qa.trackSearch(v),v}),c=o.computed(()=>l.value.length>0),u=o.computed(()=>t.value.sort((v,_)=>v.displayPosition<_.displayPosition?-1:v.displayPosition>_.displayPosition?1:0)),f=o.computed(()=>e.value===!0?u.value:u.value.filter(v=>v.display==="quick")),d=v=>{const _=t.value.find(g=>g.id===v);if(_===void 0)throw new AN(v);return _},p=o.computed(()=>{const v=Bt(),_={};return e.value===!0&&(_.advanced="true"),v.sortFieldId&&(_.sort=v.sortFieldId.toString()),v.sortDirection&&(_["sort-dir"]=v.sortDirection.toString()),f.value.filter(S=>!S.isDefault()).forEach(S=>{const C=S.stateToQueryParameters();Object.keys(C).forEach(A=>{_[`${S.id}-${A}`]=C[A]})}),_});function h(v){const _={};for(const[g,S]of Object.entries(v))typeof S=="string"&&(_[g]=S);return _}return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:f,parameters:p,updateFromQuery:v=>{const _=h(v),g=Bt(),S=It();s(),e.value=_.advanced==="true",_.sort&&S.sortableFields.map(C=>C.id).includes(_.sort)&&(g.sortFieldId=_.sort),["Ascending","Descending"].includes(_["sort-dir"])&&(g.sortDirection=_["sort-dir"]),t.value.forEach(C=>{const A={};Object.keys(_).filter(V=>V.startsWith(`${C.id}-`)).forEach(V=>{A[V.substring(C.id.length+1)]=_[V]}),C.queryParametersToState(A)})},byId:d,reset:s,add:i,clear:a}});function YN(e,t){if(e!=="/")return;const n=Hv(),r=_t(),i=It();Object.keys(n.query).length>0?i.onStoresReady(()=>r.updateFromQuery(n.query)):Object.keys(r.parameters).length>0&&t.push({path:"/",query:r.parameters}).then()}async function $N(e){await e.isReady(),await o.nextTick(),await new Promise(n=>setTimeout(n,100));const t=document.querySelector(".cape-results");t&&t.scrollIntoView({behavior:"smooth"})}const ed=(e=>{const t=cN({history:e,routes:[],linkActiveClass:"active",linkExactActiveClass:"active"});return t.afterEach(n=>{YN(n.path,t),n.path==="/"&&n.query.jump&&$N(t)}),t})(ST("/"));function f_(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),r=function(a){return t[a.toUpperCase()]??a},i=n.replace(/\S/g,r);return new RegExp(i,"g")}function eo(e){return Array.isArray(e)?e:[e]}class BN extends Qf{constructor(n,r,i,a,s,l){super(n,r,i,a);Pe(this,"term");Pe(this,"defaultTerm");Pe(this,"placeholder");this.defaultTerm=s,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(i=>{const a=f_(i);return this.termRegexpMatchesRecord(a,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return eo(r).some(a=>`${a}`.match(n))}summariseStateAsText(){return`any field contains '${this.term}'`}summariseStateAsObject(){return{id:this.id,term:this.term}}stateToQueryParameters(){return{term:this.term}}queryParametersToState(n){this.term=n.term??""}}class sc extends Qf{constructor(n,r,i,a,s){super(n,r,i,a);Pe(this,"field");s.changeFilterMode||(s.changeFilterMode=!0),this.field=s}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function UN(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=eo(e);return n.every(i=>{const a=f_(i);return r.some(s=>`${s}`.match(a))})}function Ss(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function lc(e){return!Ss(e)}function td(e,t){return e===""||e===void 0?!1:eo(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class HN extends sc{constructor(n,r,i,a,s,l,c){super(n,r,i,a,s);Pe(this,"term");Pe(this,"defaultTerm");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=c,this.defaultTerm=l,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return UN(n,this.term);case"is":return td(n,this.term);case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.term}'`;case"contains":return`${this.id} contains '${this.term}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,term:this.term}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":case"contains":n.term=this.term??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.term=n.term;break;case"contains":this.mode="contains",this.term=n.term;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function d_(e,t){return e===""||e===void 0?!1:eo(e).find(i=>`${i}`===t)!==void 0}function GN(e,t){return t.find(r=>d_(e,r))!==void 0}class WN extends sc{constructor(n,r,i,a,s,l,c,u){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"oneOfTerms");Pe(this,"mode");Pe(this,"defaultIsTerm");Pe(this,"defaultOneOfTerms");Pe(this,"defaultMode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return GN(n,this.oneOfTerms);case"is":return d_(n,this.isTerm);case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"oneOf":return`${this.id} is one of '${this.oneOfTerms.join(", ")}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,oneOfTerms:this.oneOfTerms}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"oneOf":n.terms=this.oneOfTerms.join(";");break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"oneOf":this.mode="oneOf",this.oneOfTerms=(n.terms??"").split(/\s*;\s*/);break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function jN(e,t,n){return e===""||e===void 0?!1:eo(e).find(a=>a>=t&&a<=n)!==void 0}function Bi(e){if(e!="")return e}function h_(e,t){const n=Bi(e);return n??t}class zN extends sc{constructor(n,r,i,a,s,l,c,u,f){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"lowerBoundTerm");Pe(this,"upperBoundTerm");Pe(this,"defaultIsTerm");Pe(this,"defaultLowerBound");Pe(this,"defaultUpperBound");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=f,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Bi(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Bi(this.lowerBoundTerm)==this.defaultLowerBound&&Bi(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Bi(this.isTerm)!==void 0;case"between":return Bi(this.lowerBoundTerm)!==void 0||Bi(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return td(n,`${this.isTerm}`);case"between":{const r=h_(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=h_(this.upperBoundTerm,Number.POSITIVE_INFINITY);return jN(n,r,i)}case"set":return Ss(n);case"notSet":return lc(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=`${this.isTerm}`;break;case"between":n.upper=`${this.upperBoundTerm}`,n.lower=`${this.lowerBoundTerm}`;break}return n}queryParametersToState(n){switch(n.mode){case"is":{this.mode="is";const r=parseInt(n.term);this.isTerm=isNaN(r)?void 0:r}break;case"between":{this.mode="between";const r=parseInt(n.lower),i=parseInt(n.upper);this.lowerBoundTerm=isNaN(r)?void 0:r,this.upperBoundTerm=isNaN(i)?void 0:i;break}case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function KN(e,t,n){return e===""||e===void 0?!1:eo(e).find(a=>(t===void 0||a>=t)&&(n===void 0||a<=n))!==void 0}class qN extends sc{constructor(n,r,i,a,s,l,c,u,f){super(n,r,i,a,s);Pe(this,"isTerm");Pe(this,"lowerBoundTerm");Pe(this,"upperBoundTerm");Pe(this,"defaultIsTerm");Pe(this,"defaultLowerBound");Pe(this,"defaultUpperBound");Pe(this,"mode");Pe(this,"defaultMode");this.defaultMode=f,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&this.isTerm===this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&this.lowerBoundTerm===this.defaultLowerBound&&this.upperBoundTerm===this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"between":n.upper=this.upperBoundTerm??"",n.lower=this.lowerBoundTerm??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"between":this.mode="between",this.lowerBoundTerm=n.lower,this.upperBoundTerm=n.upper;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(i=>parseInt(i)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(i=>parseInt(i)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return td(n,this.termToISO(this.isTerm)??"");case"between":return KN(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Ss(n);case"notSet":return lc(n)}}}function XN({filterStore:e=_t(),fieldStore:t=Za(),propertyStore:n=It()}={}){JN(e),QN(e),ZN(t,e),iw(e,n)}function JN(e){e.clear()}function QN(e){e.add(new BN("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function ZN(e,t){let n=0;e.all.forEach(r=>{if(r.filterDisplay==="hide")return;const i=r.filterDisplay??"advanced";switch(n+=100,r.type){case"text":ew(n,r,i,t);break;case"enum":tw(n,r,i,t);break;case"integer":nw(n,r,i,t);break;case"date":rw(n,r,i,t);break}})}function ew(e,t,n,r){r.add(new HN("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function tw(e,t,n,r){r.add(new WN("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function nw(e,t,n,r){r.add(new zN("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function rw(e,t,n,r){r.add(new qN("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function iw(e,t){var n;((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}async function aw(){const e=ti(),t=Bt(),n=It();await e.loadData(),XN(),t.reset(),n.setStoresReady(!0)}const ow={key:2},sw=o.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=ti();return[t,n]=o.withAsyncContext(()=>aw()),await t,n(),(i,a)=>{const s=o.resolveComponent("cape-load-error"),l=o.resolveComponent("cape-navigation");return o.openBlock(),o.createElementBlock("div",null,[o.unref(r).status==="ERROR"?(o.openBlock(),o.createBlock(s,{key:0})):o.createCommentVNode("",!0),o.unref(r).status==="OK"?(o.openBlock(),o.createBlock(l,{key:1})):(o.openBlock(),o.createElementBlock("div",ow,"Unknown status ["+o.toDisplayString(o.unref(r).status)+"]",1))])}}}),lw={class:"cape-record-count"},cw=o.defineComponent({__name:"CapeRecordCount",setup(e){const t=Sr();return(n,r)=>(o.openBlock(),o.createElementBlock("span",lw,o.toDisplayString(o.unref(t).count),1))}}),uw={__name:"CapeAdvancedSearchToggle",setup(e){const t=_t();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAdvanced]])}},fw={class:"cape-filters"},dw=o.defineComponent({__name:"CapeFilters",setup(e){const t=_t();return(n,r)=>(o.openBlock(),o.createElementBlock("div",fw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).forDisplay,i=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),hw={__name:"CapeFormResetButton",setup(e){const t=_t(),n=Bt();function r(){t.reset(),n.reset()}return(i,a)=>(o.openBlock(),o.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[o.renderSlot(i.$slots,"default",{},()=>[a[0]||(a[0]=o.createTextVNode(" New search "))])]))}},pw={class:"cape-home-page"},mw=o.defineComponent({__name:"CapeHomePage",setup(e){const t=fN(),n=_t();return o.watch(()=>n.parameters,(r,i)=>{JSON.stringify(r)!==JSON.stringify(i)&&t.push({path:"/",query:r})}),(r,i)=>{const a=o.resolveComponent("cape-homepage-layout");return o.openBlock(),o.createElementBlock("form",pw,[o.createVNode(a)])}}}),vw={class:"cape-load-error cape-error"},_w={class:"cape-load-error-message"},gw=o.defineComponent({__name:"CapeLoadError",setup(e){const t=ti();return(n,r)=>(o.openBlock(),o.createElementBlock("div",vw,[r[2]||(r[2]=o.createElementVNode("h2",null,"Unable to load data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" An error has occurred. The error was: ")),o.createElementVNode("span",_w,o.toDisplayString(o.unref(t).errorMessage),1),r[1]||(r[1]=o.createTextVNode(". "))])]))}}),ri=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},yw={},Sw={class:"cape-loading"};function Ew(e,t){return o.openBlock(),o.createElementBlock("div",Sw,t[0]||(t[0]=[o.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[o.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),o.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)]))}const Tw=ri(yw,[["render",Ew]]),Nw=function(){var n;const e=It(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},ww={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},bw={class:"cape-non-prod-warning-environment"},Dw={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},kw=o.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Nw(),n=o.ref(!1),r=o.computed(()=>t!="PROD"&&!n.value),i=o.computed(()=>t==="UNKNOWN"),a=function(){n.value=!0};return(s,l)=>r.value?(o.openBlock(),o.createElementBlock("div",ww,[l[0]||(l[0]=o.createElementVNode("strong",null,"WARNING",-1)),l[1]||(l[1]=o.createTextVNode(': This is a "')),o.createElementVNode("span",bw,o.toDisplayString(o.unref(t)),1),l[2]||(l[2]=o.createTextVNode('" instance of this service. ')),i.value?(o.openBlock(),o.createElementBlock("div",Dw," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):o.createCommentVNode("",!0),o.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:a,onKeyup:o.withKeys(a,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):o.createCommentVNode("",!0)}}),Cw={key:0,class:"cape-record-page-record-not-found"},Iw={class:"cape-record-page-record-id"},Rw=o.defineComponent({__name:"CapeRecordPage",setup(e){const t=Hv(),n=Sr(),r=Bt(),i=o.computed(()=>t.params.id),a=o.computed(()=>{try{return n.byId(i.value)}catch{return}}),s=o.computed(()=>{if(a.value!==void 0)return r.previous(a.value)}),l=o.computed(()=>{if(a.value!==void 0)return r.next(a.value)}),c=o.computed(()=>{if(a.value!==void 0)return n.previous(a.value)}),u=o.computed(()=>{if(a.value!==void 0)return n.next(a.value)});return(f,d)=>{const p=o.resolveComponent("cape-record-card");return a.value===void 0?(o.openBlock(),o.createElementBlock("div",Cw,[d[0]||(d[0]=o.createTextVNode(" The record with Record ID ")),o.createElementVNode("span",Iw,o.toDisplayString(i.value),1),d[1]||(d[1]=o.createTextVNode(" does not exist. "))])):(o.openBlock(),o.createBlock(p,{key:1,class:"cape-record-card",record:a.value,previousInResults:s.value,nextInResults:l.value,previousInDataset:c.value,nextInDataset:u.value},null,8,["record","previousInResults","nextInResults","previousInDataset","nextInDataset"]))}}}),Ow={class:"cape-results"},Pw={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},Aw=o.defineComponent({__name:"CapeResults",setup(e){const t=Bt();return(n,r)=>{const i=o.resolveComponent("cape-results-controls"),a=o.resolveComponent("cape-summary-card"),s=o.resolveComponent("cape-go-top-results");return o.openBlock(),o.createElementBlock("div",Ow,[o.unref(t).totalCount===0?(o.openBlock(),o.createElementBlock("div",Pw," No matches ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(i,{class:"cape-results-controls-top","id-distinguisher":"top"}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).visible,(l,c)=>(o.openBlock(),o.createBlock(a,{key:c,record:l},null,8,["record"]))),128)),o.createVNode(i,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"}),o.unref(t).totalCount>1?(o.openBlock(),o.createBlock(s,{key:0})):o.createCommentVNode("",!0)],64))])}}}),Mw={key:0,class:"cape-error cape-value-error"},xw={key:1,class:"cape-value"},Vw={key:0,class:"cape-value-null"},Lw={key:0,class:"cape-value-multiple"},Fw=o.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=o.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.value}),r=o.computed(()=>{var a;return(a=t.fieldValue)==null?void 0:a.field}),i=o.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(a,s)=>{const l=o.resolveComponent("cape-single-value");return!a.fieldValue||!r.value?(o.openBlock(),o.createElementBlock("div",Mw," [Error: field value pair does not exist!] ")):!a.hideIfEmpty||!i.value?(o.openBlock(),o.createElementBlock("div",xw,[i.value?(o.openBlock(),o.createElementBlock("div",Vw,"undefined")):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(o.openBlock(),o.createElementBlock("ol",Lw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(c,u)=>(o.openBlock(),o.createElementBlock("li",{key:u},[o.createVNode(l,{"field-value-pair":{field:r.value,value:c},link:a.link},null,8,["field-value-pair","link"])]))),128))])):(o.openBlock(),o.createBlock(l,{key:1,"field-value-pair":a.fieldValue,link:a.link},null,8,["field-value-pair","link"]))],2))])):o.createCommentVNode("",!0)}}}),Yw=o.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=o.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=o.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>{const s=o.resolveComponent("cape-value"),l=o.resolveComponent("cape-labelled-content");return!i.hideIfEmpty||!r.value?(o.openBlock(),o.createBlock(l,{key:0,"field-value":i.fieldValue},{default:o.withCtx(()=>[o.createVNode(s,{link:i.link,"field-value":i.fieldValue},null,8,["link","field-value"])]),_:1},8,["field-value"])):o.createCommentVNode("",!0)}}});//! moment.js
42
+ This will fail in production.`);f=Cl,f._s.has(i)||(s?Bh(i,t,o,f):_y(i,o,f),process.env.NODE_ENV!=="production"&&(c._pinia=f));const _=f._s.get(i);if(process.env.NODE_ENV!=="production"&&d){const v="__hot:"+i,y=s?Bh(v,t,o,f,!0):_y(v,Wn({},o),f,!0);d._hotUpdate(y),delete f.state.value[v],f._s.delete(v)}if(process.env.NODE_ENV!=="production"&&Hi){const v=l.getCurrentInstance();if(v&&v.proxy&&!d){const y=v.proxy,g="_pStores"in y?y._pStores:y._pStores={};g[i]=_}}return _}return c.$id=i,c}function Vh(e,t){return Array.isArray(t)?t.reduce((n,i)=>(n[i]=function(){return e(this.$pinia)[i]},n),{}):Object.keys(t).reduce((n,i)=>(n[i]=function(){const o=e(this.$pinia),s=t[i];return typeof s=="function"?s.call(this,o):o[s]},n),{})}class Dk extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}class Fh{constructor(t,n,i,o){Ke(this,"id");Ke(this,"componentId");Ke(this,"displayPosition");Ke(this,"display");this.id=t,this.componentId=n,this.displayPosition=i,this.display=o}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}const Ri=class Ri{static register(t){Ri.providers.push(t)}static clear(){Ri.providers=[]}static trackPageView(t){Ri.providers.forEach(n=>n.trackPageView(t))}static trackSearch(t){Ri.providers.forEach(n=>n.trackSearch(t))}static trackSort(t){Ri.providers.forEach(n=>n.trackSort(t))}static trackApplicationStart(){Ri.providers.forEach(t=>t.trackApplicationStart())}};Ke(Ri,"providers",[]);let Qa=Ri;class xk extends Error{constructor(t){super(`The record ${t} was not found.`)}}function my(e,t){const n=e.indexOf(t);if(n==-1)return;const i=n+1;if(i<=e.length-1)return e[i]}function vy(e,t){const n=e.indexOf(t);if(n==-1)return;const i=n-1;if(i>=0)return e[i]}class Yh extends Error{constructor(t){super(`The field ${t} was not found.`)}}const gy={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class yy extends Error{constructor(n,i){super(n);Ke(this,"innerError");i&&(this.innerError=i)}}class Ok{async getData(){try{const t=await fetch(gy.SourceDataFile);if(!t.ok)throw new yy(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new yy("Failed to read source data.",t)}}}function Ik(e){const t={},n=es();return Object.keys(e).sort().forEach(i=>{if(n.byId(i)===void 0)throw new Yh(i)}),n.all.forEach(i=>{t[i.id]={value:e[i.id],field:i}}),t}function Rk(e){return e.map(t=>Ik(t))}const Zi=Ja("dataset",()=>{const e=l.ref(!1),t=l.ref(""),n=l.ref(!1),i=l.ref(),o=[];async function s(){try{n.value=!1,e.value=!0;const d=new Ok;i.value=await d.getData(),oi().set(Rk(i.value.records)),e.value=!1,n.value=!0,o.forEach(p=>{p()})}catch(d){t.value=`Failed to fetch or process site-data.json from the website root. ${d}`}finally{e.value=!1}}const c=l.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:c,loadData:s,dataset:i,onLoaded:d=>{c.value=="OK"?d():o.push(d)},onLoadedEvents:o}}),es=Ja("fields",()=>{const e=Zi(),t=l.computed(()=>{var o;return((o=e.dataset)==null?void 0:o.fields)??[]}),n=l.computed(()=>t.value.length);function i(o){const s=t.value.find(c=>c.id===o);if(s===void 0)throw new Yh(o);return s}return{all:t,count:n,byId:i}}),nn=Ja("properties",()=>{const e=es(),t=Zi(),n=l.ref({}),i=l.computed(()=>{var T;return(T=t.dataset)==null?void 0:T.properties}),o=l.computed(()=>{var T;return((T=i==null?void 0:i.value)==null?void 0:T.metadata)??void 0}),s=l.computed(()=>{var T;return((T=i==null?void 0:i.value)==null?void 0:T.title)??"Loading..."}),c=l.computed(()=>{var T;return((T=i==null?void 0:i.value)==null?void 0:T.resultMode)??"filter"}),f=l.computed(()=>{var T,b;return(T=i==null?void 0:i.value)!=null&&T.sortableFields?(b=i==null?void 0:i.value)==null?void 0:b.sortableFields.map(C=>e.byId(C)):[]}),d=l.computed(()=>{var T,b;if((T=i==null?void 0:i.value)!=null&&T.idField)return e.byId((b=i==null?void 0:i.value)==null?void 0:b.idField);throw new Yh("UNDEFINED")});function p(T){n.value=T}const _=l.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),v=l.ref(!1),y=[],g=T=>{v.value?T():y.push(T)},E=l.computed(()=>v.value);return{pages:_,metadata:o,title:s,idField:d,sortableFields:f,resultMode:c,setOptions:p,options:n,areStoresReady:E,onStoresReady:g,setStoresReady:T=>{if(v.value=T,T)for(;y.length>0;){const b=y.shift();b&&b()}}}}),oi=Ja("records",()=>{const e=l.ref([]),t=l.computed(()=>e.value.length),n=l.computed(()=>[...e.value]),i=nn();function o(d){const p=e.value.find(_=>_[i.idField.id].value==d);if(p===void 0)throw new xk(d);return p}function s(d){e.value=d}function c(d){return my(n.value,d)}function f(d){return vy(n.value,d)}return{all:n,count:t,byId:o,set:s,next:c,previous:f,records:e}});var Gi=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(Gi||{});function Lk(e,t,n,i){var f,d;if(!n||!i)return 0;const o=(f=e[n])==null?void 0:f.value,s=(d=t[n])==null?void 0:d.value;if(!o&&!s)return 0;if(!o&&s)return i===Gi.Ascending?1:-1;if(o&&!s)return i===Gi.Ascending?-1:1;const c=o.toString().localeCompare(s.toString(),void 0,{numeric:!0});return c<0?i===Gi.Ascending?-1:1:c>0?i===Gi.Ascending?1:-1:0}const mn=Ja("searchResults",()=>{const e=oi(),t=nn(),n=Yt(),i=l.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((C,M)=>M.filterRecords(C),e.all)),o=l.computed(()=>{Qa.trackSort({SortField:_.value,SortDirection:v.value});const C=[...i.value];return p.value&&C.sort((M,z)=>Lk(M,z,_.value,v.value)),C.slice()}),s=l.computed(()=>{let C=o.value;return C=y.value?C:C.slice(0,gy.ShortenedRecordCount),C}),c=l.computed(()=>i.value.length),f=l.computed(()=>s.value.length),d=l.computed(()=>f.value===c.value),p=l.computed(()=>t.sortableFields.length>0),_=l.ref(),v=l.ref(),y=l.ref(!1);function g(){_.value=b(),v.value=T()}function E(C){return my(o.value,C)}function w(C){return vy(o.value,C)}function T(){return p.value?Gi.Ascending:void 0}function b(){var C;return p.value?(C=t.sortableFields[0])==null?void 0:C.id:void 0}return{all:i,totalCount:c,visible:s,visibleCount:f,showAllResults:y,allResultsAreVisible:d,hasSortFields:p,sortFieldId:_,sortDirection:v,reset:g,next:E,previous:w}}),Yt=Ja("filter",()=>{const e=l.ref(!1),t=l.ref([]),n=l.computed(()=>t.value),i=l.computed(()=>n.value.length),o=w=>{t.value.push(w)},s=()=>{t.value=[]};function c(){t.value.forEach(w=>w.reset())}const f=l.computed(()=>{const w=_.value.filter(T=>T.isActive());return Qa.trackSearch(w),w}),d=l.computed(()=>f.value.length>0),p=l.computed(()=>t.value.sort((w,T)=>w.displayPosition<T.displayPosition?-1:w.displayPosition>T.displayPosition?1:0)),_=l.computed(()=>e.value===!0?p.value:p.value.filter(w=>w.display==="quick")),v=w=>{const T=t.value.find(b=>b.id===w);if(T===void 0)throw new Dk(w);return T},y=l.computed(()=>{const w=mn(),T={};return e.value===!0&&(T.advanced="true"),w.sortFieldId&&(T.sort=w.sortFieldId.toString()),w.sortDirection&&(T["sort-dir"]=w.sortDirection.toString()),_.value.filter(C=>!C.isDefault()).forEach(C=>{const M=C.stateToQueryParameters();Object.keys(M).forEach(z=>{T[`${C.id}-${z}`]=M[z]})}),T});function g(w){const T={};for(const[b,C]of Object.entries(w))typeof C=="string"&&(T[b]=C);return T}return{showAdvanced:e,filters:t,all:n,count:i,active:f,hasActive:d,forDisplay:_,parameters:y,updateFromQuery:w=>{const T=g(w),b=mn(),C=nn();c(),e.value=T.advanced==="true",T.sort&&C.sortableFields.map(M=>M.id).includes(T.sort)&&(b.sortFieldId=T.sort),["Ascending","Descending"].includes(T["sort-dir"])&&(b.sortDirection=T["sort-dir"]),t.value.forEach(M=>{const z={};Object.keys(T).filter(G=>G.startsWith(`${M.id}-`)).forEach(G=>{z[G.substring(M.id.length+1)]=T[G]}),M.queryParametersToState(z)})},byId:v,reset:c,add:o,clear:s}});function Mk(e,t){if(e!=="/")return;const n=Jg(),i=Yt(),o=nn();Object.keys(n.query).length>0?o.onStoresReady(()=>i.updateFromQuery(n.query)):Object.keys(i.parameters).length>0&&t.push({path:"/",query:i.parameters}).then()}async function Ak(e){await e.isReady(),await l.nextTick(),await new Promise(n=>setTimeout(n,100));const t=document.querySelector(".cape-results");t&&t.scrollIntoView({behavior:"smooth"})}const $h=(e=>{const t=ok({history:e,routes:[],linkActiveClass:"active",linkExactActiveClass:"active"});return t.afterEach(n=>{Mk(n.path,t),n.path==="/"&&n.query.jump&&Ak(t)}),t})(mN("/"));function Sy(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),i=function(s){return t[s.toUpperCase()]??s},o=n.replace(/\S/g,i);return new RegExp(o,"g")}function ts(e){return Array.isArray(e)?e:[e]}class Bk extends Fh{constructor(n,i,o,s,c,f){super(n,i,o,s);Ke(this,"term");Ke(this,"defaultTerm");Ke(this,"placeholder");this.defaultTerm=c,this.placeholder=f,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(o=>{const s=Sy(o);return this.termRegexpMatchesRecord(s,n)})}termRegexpMatchesRecord(n,i){return Object.values(i).some(o=>this.termRegexpMatchesValue(n,o.value))}termRegexpMatchesValue(n,i){return ts(i).some(s=>`${s}`.match(n))}summariseStateAsText(){return`any field contains '${this.term}'`}summariseStateAsObject(){return{id:this.id,term:this.term}}stateToQueryParameters(){return{term:this.term}}queryParametersToState(n){this.term=n.term??""}}class Ou extends Fh{constructor(n,i,o,s,c){super(n,i,o,s);Ke(this,"field");c.changeFilterMode||(c.changeFilterMode=!0),this.field=c}matchesRecord(n){const i=n[this.field.id].value;return this.matchesValue(i)}}function Vk(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),i=ts(e);return n.every(o=>{const s=Sy(o);return i.some(c=>`${c}`.match(s))})}function Dl(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function Iu(e){return!Dl(e)}function Uh(e,t){return e===""||e===void 0?!1:ts(e).find(o=>`${o}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class Fk extends Ou{constructor(n,i,o,s,c,f,d){super(n,i,o,s,c);Ke(this,"term");Ke(this,"defaultTerm");Ke(this,"mode");Ke(this,"defaultMode");this.defaultMode=d,this.defaultTerm=f,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return Vk(n,this.term);case"is":return Uh(n,this.term);case"set":return Dl(n);case"notSet":return Iu(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.term}'`;case"contains":return`${this.id} contains '${this.term}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,term:this.term}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":case"contains":n.term=this.term??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.term=n.term;break;case"contains":this.mode="contains",this.term=n.term;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function wy(e,t){return e===""||e===void 0?!1:ts(e).find(o=>`${o}`===t)!==void 0}function Yk(e,t){return t.find(i=>wy(e,i))!==void 0}class $k extends Ou{constructor(n,i,o,s,c,f,d,p){super(n,i,o,s,c);Ke(this,"isTerm");Ke(this,"oneOfTerms");Ke(this,"mode");Ke(this,"defaultIsTerm");Ke(this,"defaultOneOfTerms");Ke(this,"defaultMode");this.defaultIsTerm=f,this.defaultOneOfTerms=d,this.defaultMode=p,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return Yk(n,this.oneOfTerms);case"is":return wy(n,this.isTerm);case"set":return Dl(n);case"notSet":return Iu(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"oneOf":return`${this.id} is one of '${this.oneOfTerms.join(", ")}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,oneOfTerms:this.oneOfTerms}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"oneOf":n.terms=this.oneOfTerms.join(";");break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"oneOf":this.mode="oneOf",this.oneOfTerms=(n.terms??"").split(/\s*;\s*/);break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function Uk(e,t,n){return e===""||e===void 0?!1:ts(e).find(s=>s>=t&&s<=n)!==void 0}function Mo(e){if(e!="")return e}function Ey(e,t){const n=Mo(e);return n??t}class zk extends Ou{constructor(n,i,o,s,c,f,d,p,_){super(n,i,o,s,c);Ke(this,"isTerm");Ke(this,"lowerBoundTerm");Ke(this,"upperBoundTerm");Ke(this,"defaultIsTerm");Ke(this,"defaultLowerBound");Ke(this,"defaultUpperBound");Ke(this,"mode");Ke(this,"defaultMode");this.defaultMode=_,this.defaultIsTerm=f,this.defaultLowerBound=d,this.defaultUpperBound=p,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Mo(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Mo(this.lowerBoundTerm)==this.defaultLowerBound&&Mo(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Mo(this.isTerm)!==void 0;case"between":return Mo(this.lowerBoundTerm)!==void 0||Mo(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return Uh(n,`${this.isTerm}`);case"between":{const i=Ey(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),o=Ey(this.upperBoundTerm,Number.POSITIVE_INFINITY);return Uk(n,i,o)}case"set":return Dl(n);case"notSet":return Iu(n)}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=`${this.isTerm}`;break;case"between":n.upper=`${this.upperBoundTerm}`,n.lower=`${this.lowerBoundTerm}`;break}return n}queryParametersToState(n){switch(n.mode){case"is":{this.mode="is";const i=parseInt(n.term);this.isTerm=isNaN(i)?void 0:i}break;case"between":{this.mode="between";const i=parseInt(n.lower),o=parseInt(n.upper);this.lowerBoundTerm=isNaN(i)?void 0:i,this.upperBoundTerm=isNaN(o)?void 0:o;break}case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}}function Hk(e,t,n){return e===""||e===void 0?!1:ts(e).find(s=>(t===void 0||s>=t)&&(n===void 0||s<=n))!==void 0}class Wk extends Ou{constructor(n,i,o,s,c,f,d,p,_){super(n,i,o,s,c);Ke(this,"isTerm");Ke(this,"lowerBoundTerm");Ke(this,"upperBoundTerm");Ke(this,"defaultIsTerm");Ke(this,"defaultLowerBound");Ke(this,"defaultUpperBound");Ke(this,"mode");Ke(this,"defaultMode");this.defaultMode=_,this.defaultIsTerm=f,this.defaultLowerBound=d,this.defaultUpperBound=p,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&this.isTerm===this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&this.lowerBoundTerm===this.defaultLowerBound&&this.upperBoundTerm===this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}summariseStateAsText(){switch(this.mode){case"is":return`${this.id} is '${this.isTerm}'`;case"between":return`${this.id} is between '${this.lowerBoundTerm}' and '${this.upperBoundTerm}'`;case"set":return`${this.id} is present`;case"notSet":return`${this.id} is not present`}}summariseStateAsObject(){return{id:this.id,mode:this.mode,isTerm:this.isTerm,lowerBoundTerm:this.lowerBoundTerm,upperBoundTerm:this.upperBoundTerm}}stateToQueryParameters(){const n={mode:this.mode};switch(this.mode){case"is":n.term=this.isTerm??"";break;case"between":n.upper=this.upperBoundTerm??"",n.lower=this.lowerBoundTerm??"";break}return n}queryParametersToState(n){switch(n.mode){case"is":this.mode="is",this.isTerm=n.term;break;case"between":this.mode="between",this.lowerBoundTerm=n.lower,this.upperBoundTerm=n.upper;break;case"set":this.mode="set";break;case"notSet":this.mode="notSet";break}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(o=>parseInt(o)):[]}termToUpperBound(n){const i=this.dateParts(n);return i.length===0&&i.push(9999),i.length===1&&i.push(99),i.length===2&&i.push(99),this.partsToDateString(i)}termToLowerBound(n){const i=this.dateParts(n);return i.length===0&&i.push(0),i.length===1&&i.push(0),i.length===2&&i.push(0),this.partsToDateString(i)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let i;return this.validYMDTerm(n)?i=n.split(/-/):i=n.split(/\//).reverse(),this.partsToDateString(i.map(o=>parseInt(o)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return Uh(n,this.termToISO(this.isTerm)??"");case"between":return Hk(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Dl(n);case"notSet":return Iu(n)}}}function Zk({filterStore:e=Yt(),fieldStore:t=es(),propertyStore:n=nn()}={}){Gk(e),jk(e),qk(t,e),eC(e,n)}function Gk(e){e.clear()}function jk(e){e.add(new Bk("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function qk(e,t){let n=0;e.all.forEach(i=>{if(i.filterDisplay==="hide")return;const o=i.filterDisplay??"advanced";switch(n+=100,i.type){case"text":Kk(n,i,o,t);break;case"enum":Xk(n,i,o,t);break;case"integer":Jk(n,i,o,t);break;case"date":Qk(n,i,o,t);break}})}function Kk(e,t,n,i){i.add(new Fk("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function Xk(e,t,n,i){i.add(new $k("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function Jk(e,t,n,i){i.add(new zk("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function Qk(e,t,n,i){i.add(new Wk("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function eC(e,t){var n;((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(i=>e.add(i))}async function tC(){const e=Zi(),t=mn(),n=nn();await e.loadData(),Zk(),t.reset(),n.setStoresReady(!0)}const nC={key:2},rC=l.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const i=Zi();return[t,n]=l.withAsyncContext(()=>tC()),await t,n(),(o,s)=>{const c=l.resolveComponent("cape-load-error"),f=l.resolveComponent("cape-navigation");return l.openBlock(),l.createElementBlock("div",null,[l.unref(i).status==="ERROR"?(l.openBlock(),l.createBlock(c,{key:0})):l.createCommentVNode("",!0),l.unref(i).status==="OK"?(l.openBlock(),l.createBlock(f,{key:1})):(l.openBlock(),l.createElementBlock("div",nC,"Unknown status ["+l.toDisplayString(l.unref(i).status)+"]",1))])}}}),iC={class:"cape-record-count"},oC=l.defineComponent({__name:"CapeRecordCount",setup(e){const t=oi();return(n,i)=>(l.openBlock(),l.createElementBlock("span",iC,l.toDisplayString(l.unref(t).count),1))}}),aC={__name:"CapeAdvancedSearchToggle",setup(e){const t=Yt();return(n,i)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":i[0]||(i[0]=o=>l.unref(t).showAdvanced=o),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAdvanced]])}},sC={class:"cape-filters"},lC=l.defineComponent({__name:"CapeFilters",setup(e){const t=Yt();return(n,i)=>(l.openBlock(),l.createElementBlock("div",sC,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).forDisplay,o=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o.componentId),{key:o,filterId:o.id},null,8,["filterId"]))),128))]))}}),cC={__name:"CapeFormResetButton",setup(e){const t=Yt(),n=mn();function i(){t.reset(),n.reset()}return(o,s)=>(l.openBlock(),l.createElementBlock("button",{"data-test":"new-search-button",onClick:i,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[l.renderSlot(o.$slots,"default",{},()=>[s[0]||(s[0]=l.createTextVNode(" New search "))])]))}},uC={class:"cape-home-page"},fC=l.defineComponent({__name:"CapeHomePage",setup(e){const t=sk(),n=Yt();return l.watch(()=>n.parameters,(i,o)=>{JSON.stringify(i)!==JSON.stringify(o)&&t.push({path:"/",query:i})}),(i,o)=>{const s=l.resolveComponent("cape-homepage-layout");return l.openBlock(),l.createElementBlock("form",uC,[l.createVNode(s)])}}}),dC={class:"cape-load-error cape-error"},hC={class:"cape-load-error-message"},pC=l.defineComponent({__name:"CapeLoadError",setup(e){const t=Zi();return(n,i)=>(l.openBlock(),l.createElementBlock("div",dC,[i[2]||(i[2]=l.createElementVNode("h2",null,"Unable to load data",-1)),l.createElementVNode("p",null,[i[0]||(i[0]=l.createTextVNode(" An error has occurred. The error was: ")),l.createElementVNode("span",hC,l.toDisplayString(l.unref(t).errorMessage),1),i[1]||(i[1]=l.createTextVNode(". "))])]))}}),ji=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},_C={},mC={class:"cape-loading"};function vC(e,t){return l.openBlock(),l.createElementBlock("div",mC,t[0]||(t[0]=[l.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[l.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),l.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)]))}const gC=ji(_C,[["render",vC]]),yC=function(){var n;const e=nn(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},SC={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},wC={class:"cape-non-prod-warning-environment"},EC={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},TC=l.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=yC(),n=l.ref(!1),i=l.computed(()=>t!="PROD"&&!n.value),o=l.computed(()=>t==="UNKNOWN"),s=function(){n.value=!0};return(c,f)=>i.value?(l.openBlock(),l.createElementBlock("div",SC,[f[0]||(f[0]=l.createElementVNode("strong",null,"WARNING",-1)),f[1]||(f[1]=l.createTextVNode(': This is a "')),l.createElementVNode("span",wC,l.toDisplayString(l.unref(t)),1),f[2]||(f[2]=l.createTextVNode('" instance of this service. ')),o.value?(l.openBlock(),l.createElementBlock("div",EC," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):l.createCommentVNode("",!0),l.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:s,onKeyup:l.withKeys(s,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):l.createCommentVNode("",!0)}}),bC={key:0,class:"cape-record-page-record-not-found"},NC={class:"cape-record-page-record-id"},kC=l.defineComponent({__name:"CapeRecordPage",setup(e){const t=Jg(),n=oi(),i=mn(),o=l.computed(()=>t.params.id),s=l.computed(()=>{try{return n.byId(o.value)}catch{return}}),c=l.computed(()=>{if(s.value!==void 0)return i.previous(s.value)}),f=l.computed(()=>{if(s.value!==void 0)return i.next(s.value)}),d=l.computed(()=>{if(s.value!==void 0)return n.previous(s.value)}),p=l.computed(()=>{if(s.value!==void 0)return n.next(s.value)});return(_,v)=>{const y=l.resolveComponent("cape-record-card");return s.value===void 0?(l.openBlock(),l.createElementBlock("div",bC,[v[0]||(v[0]=l.createTextVNode(" The record with Record ID ")),l.createElementVNode("span",NC,l.toDisplayString(o.value),1),v[1]||(v[1]=l.createTextVNode(" does not exist. "))])):(l.openBlock(),l.createBlock(y,{key:1,class:"cape-record-card",record:s.value,previousInResults:c.value,nextInResults:f.value,previousInDataset:d.value,nextInDataset:p.value},null,8,["record","previousInResults","nextInResults","previousInDataset","nextInDataset"]))}}}),CC={class:"cape-results"},PC={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},DC=l.defineComponent({__name:"CapeResults",setup(e){const t=mn();return(n,i)=>{const o=l.resolveComponent("cape-results-controls"),s=l.resolveComponent("cape-summary-card"),c=l.resolveComponent("cape-go-top-results");return l.openBlock(),l.createElementBlock("div",CC,[l.unref(t).totalCount===0?(l.openBlock(),l.createElementBlock("div",PC," No matches ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(o,{class:"cape-results-controls-top","id-distinguisher":"top"}),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).visible,(f,d)=>(l.openBlock(),l.createBlock(s,{key:d,record:f},null,8,["record"]))),128)),l.createVNode(o,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"}),l.unref(t).totalCount>1?(l.openBlock(),l.createBlock(c,{key:0})):l.createCommentVNode("",!0)],64))])}}}),xC={key:0,class:"cape-error cape-value-error"},OC={key:1,class:"cape-value"},IC={key:0,class:"cape-value-null"},RC=["href"],LC={key:0,class:"cape-value-multiple"},MC=l.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},externalLink:{},hideIfEmpty:{},valueIfUndefined:{}},setup(e){const t=e,n=l.computed(()=>{var c;return(c=t.fieldValue)==null?void 0:c.value}),i=l.computed(()=>{var c;return(c=t.fieldValue)==null?void 0:c.field}),o=l.computed(()=>n.value===void 0||n.value===""||Array.isArray(n.value)&&n.value.length===0),s=l.computed(()=>{var f;const c=(f=t.fieldValue)==null?void 0:f.value;return typeof c!="string"?!1:c.startsWith("https://")||c.startsWith("http://")||c.startsWith("www.")});return(c,f)=>{var p,_;const d=l.resolveComponent("cape-single-value");return!c.fieldValue||!i.value?(l.openBlock(),l.createElementBlock("div",xC," [Error: field value pair does not exist!] ")):!c.hideIfEmpty||!o.value?(l.openBlock(),l.createElementBlock("div",OC,[o.value?(l.openBlock(),l.createElementBlock("div",IC,[l.renderSlot(c.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(c.valueIfUndefined||"undefined"),1)])])):s.value?(l.openBlock(),l.createElementBlock("a",{key:1,href:(p=c.fieldValue)==null?void 0:p.value,target:"_blank",rel:"noopener noreferrer",class:"external-link"},l.toDisplayString((_=c.fieldValue)==null?void 0:_.value),9,RC)):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass("cape-value cape-value-field-"+i.value.id)},[i.value.isMultiple?(l.openBlock(),l.createElementBlock("ol",LC,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(v,y)=>(l.openBlock(),l.createElementBlock("li",{key:y},[l.createVNode(d,{"field-value-pair":{field:i.value,value:v},link:c.link},null,8,["field-value-pair","link"])]))),128))])):(l.openBlock(),l.createBlock(d,{key:1,"field-value-pair":c.fieldValue,link:c.link},null,8,["field-value-pair","link"]))],2))])):l.createCommentVNode("",!0)}}}),AC=l.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},externalLink:{},hideIfEmpty:{},valueIfUndefined:{}},setup(e){const t=e,n=l.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),i=l.computed(()=>n.value===void 0||n.value===""||Array.isArray(n.value)&&n.value.length===0);return(o,s)=>{const c=l.resolveComponent("cape-value"),f=l.resolveComponent("cape-labelled-content");return!o.hideIfEmpty||!i.value?(l.openBlock(),l.createBlock(f,{key:0,"field-value":o.fieldValue},{default:l.withCtx(()=>[l.createVNode(c,{link:o.link,"external-link":o.externalLink,"field-value":o.fieldValue,"value-if-undefined":o.valueIfUndefined},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default")]),_:3},8,["link","external-link","field-value","value-if-undefined"])]),_:3},8,["field-value"])):l.createCommentVNode("",!0)}}});//! moment.js
43
43
  //! version : 2.30.1
44
44
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
45
45
  //! license : MIT
46
46
  //! momentjs.com
47
- var p_;function ae(){return p_.apply(null,arguments)}function $w(e){p_=e}function In(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ui(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ge(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ge(e,t))return!1;return!0}function Jt(e){return e===void 0}function Er(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Es(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function m_(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function ii(e,t){for(var n in t)Ge(t,n)&&(e[n]=t[n]);return Ge(t,"toString")&&(e.toString=t.toString),Ge(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Wn(e,t,n,r){return U_(e,t,n,r,!0).utc()}function Bw(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ce(e){return e._pf==null&&(e._pf=Bw()),e._pf}var rd;Array.prototype.some?rd=Array.prototype.some:rd=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function id(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Ce(e),n=rd.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function cc(e){var t=Wn(NaN);return e!=null?ii(Ce(t),e):Ce(t).userInvalidated=!0,t}var v_=ae.momentProperties=[],ad=!1;function od(e,t){var n,r,i,a=v_.length;if(Jt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Jt(t._i)||(e._i=t._i),Jt(t._f)||(e._f=t._f),Jt(t._l)||(e._l=t._l),Jt(t._strict)||(e._strict=t._strict),Jt(t._tzm)||(e._tzm=t._tzm),Jt(t._isUTC)||(e._isUTC=t._isUTC),Jt(t._offset)||(e._offset=t._offset),Jt(t._pf)||(e._pf=Ce(t)),Jt(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=v_[n],i=t[r],Jt(i)||(e[r]=i);return e}function Ts(e){od(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ad===!1&&(ad=!0,ae.updateOffset(this),ad=!1)}function Rn(e){return e instanceof Ts||e!=null&&e._isAMomentObject!=null}function __(e){ae.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function mn(e,t){var n=!0;return ii(function(){if(ae.deprecationHandler!=null&&ae.deprecationHandler(null,e),n){var r=[],i,a,s,l=arguments.length;for(a=0;a<l;a++){if(i="",typeof arguments[a]=="object"){i+=`
48
- [`+a+"] ";for(s in arguments[0])Ge(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}__(e+`
49
- Arguments: `+Array.prototype.slice.call(r).join("")+`
50
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var g_={};function y_(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),g_[e]||(__(t),g_[e]=!0)}ae.suppressDeprecationWarnings=!1,ae.deprecationHandler=null;function jn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Uw(e){var t,n;for(n in e)Ge(e,n)&&(t=e[n],jn(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function sd(e,t){var n=ii({},e),r;for(r in t)Ge(t,r)&&(Ui(e[r])&&Ui(t[r])?(n[r]={},ii(n[r],e[r]),ii(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Ge(e,r)&&!Ge(t,r)&&Ui(e[r])&&(n[r]=ii({},n[r]));return n}function ld(e){e!=null&&this.set(e)}var cd;Object.keys?cd=Object.keys:cd=function(e){var t,n=[];for(t in e)Ge(e,t)&&n.push(t);return n};var Hw={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Gw(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return jn(r)?r.call(t,n):r}function zn(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var ud=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,uc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fd={},to={};function ge(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(to[e]=i),t&&(to[t[0]]=function(){return zn(i.apply(this,arguments),t[1],t[2])}),n&&(to[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Ww(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function jw(e){var t=e.match(ud),n,r;for(n=0,r=t.length;n<r;n++)to[t[n]]?t[n]=to[t[n]]:t[n]=Ww(t[n]);return function(i){var a="",s;for(s=0;s<r;s++)a+=jn(t[s])?t[s].call(i,e):t[s];return a}}function fc(e,t){return e.isValid()?(t=S_(t,e.localeData()),fd[t]=fd[t]||jw(t),fd[t](e)):e.localeData().invalidDate()}function S_(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(uc.lastIndex=0;n>=0&&uc.test(e);)e=e.replace(uc,r),uc.lastIndex=0,n-=1;return e}var zw={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Kw(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ud).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var qw="Invalid date";function Xw(){return this._invalidDate}var Jw="%d",Qw=/\d{1,2}/;function Zw(e){return this._ordinal.replace("%d",e)}var eb={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tb(e,t,n,r){var i=this._relativeTime[n];return jn(i)?i(e,t,n,r):i.replace(/%d/i,e)}function nb(e,t){var n=this._relativeTime[e>0?"future":"past"];return jn(n)?n(t):n.replace(/%s/i,t)}var E_={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function vn(e){return typeof e=="string"?E_[e]||E_[e.toLowerCase()]:void 0}function dd(e){var t={},n,r;for(r in e)Ge(e,r)&&(n=vn(r),n&&(t[n]=e[r]));return t}var rb={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ib(e){var t=[],n;for(n in e)Ge(e,n)&&t.push({unit:n,priority:rb[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var T_=/\d/,an=/\d\d/,N_=/\d{3}/,hd=/\d{4}/,dc=/[+-]?\d{6}/,it=/\d\d?/,w_=/\d\d\d\d?/,b_=/\d\d\d\d\d\d?/,hc=/\d{1,3}/,pd=/\d{1,4}/,pc=/[+-]?\d{1,6}/,no=/\d+/,mc=/[+-]?\d+/,ab=/Z|[+-]\d\d:?\d\d/gi,vc=/Z|[+-]\d\d(?::?\d\d)?/gi,ob=/[+-]?\d+(\.\d{1,3})?/,Ns=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ro=/^[1-9]\d?/,md=/^([1-9]\d|\d)/,_c;_c={};function le(e,t,n){_c[e]=jn(t)?t:function(r,i){return r&&n?n:t}}function sb(e,t){return Ge(_c,e)?_c[e](t._strict,t._locale):new RegExp(lb(e))}function lb(e){return Tr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Tr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function _n(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ve(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=_n(t)),n}var vd={};function qe(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Er(t)&&(r=function(a,s){s[t]=Ve(a)}),i=e.length,n=0;n<i;n++)vd[e[n]]=r}function ws(e,t){qe(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function cb(e,t,n){t!=null&&Ge(vd,e)&&vd[e](t,n._a,n,e)}function gc(e){return e%4===0&&e%100!==0||e%400===0}var Lt=0,Nr=1,Kn=2,Tt=3,On=4,wr=5,Hi=6,ub=7,fb=8;ge("Y",0,0,function(){var e=this.year();return e<=9999?zn(e,4):"+"+e}),ge(0,["YY",2],0,function(){return this.year()%100}),ge(0,["YYYY",4],0,"year"),ge(0,["YYYYY",5],0,"year"),ge(0,["YYYYYY",6,!0],0,"year"),le("Y",mc),le("YY",it,an),le("YYYY",pd,hd),le("YYYYY",pc,dc),le("YYYYYY",pc,dc),qe(["YYYYY","YYYYYY"],Lt),qe("YYYY",function(e,t){t[Lt]=e.length===2?ae.parseTwoDigitYear(e):Ve(e)}),qe("YY",function(e,t){t[Lt]=ae.parseTwoDigitYear(e)}),qe("Y",function(e,t){t[Lt]=parseInt(e,10)});function bs(e){return gc(e)?366:365}ae.parseTwoDigitYear=function(e){return Ve(e)+(Ve(e)>68?1900:2e3)};var D_=io("FullYear",!0);function db(){return gc(this.year())}function io(e,t){return function(n){return n!=null?(k_(this,e,n),ae.updateOffset(this,t),this):Ds(this,e)}}function Ds(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function k_(e,t,n){var r,i,a,s,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),l=e.date(),l=l===29&&s===1&&!gc(a)?28:l,i?r.setUTCFullYear(a,s,l):r.setFullYear(a,s,l)}}function hb(e){return e=vn(e),jn(this[e])?this[e]():this}function pb(e,t){if(typeof e=="object"){e=dd(e);var n=ib(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=vn(e),jn(this[e]))return this[e](t);return this}function mb(e,t){return(e%t+t)%t}var pt;Array.prototype.indexOf?pt=Array.prototype.indexOf:pt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function _d(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=mb(t,12);return e+=(t-n)/12,n===1?gc(e)?29:28:31-n%7%2}ge("M",["MM",2],"Mo",function(){return this.month()+1}),ge("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),ge("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",it,ro),le("MM",it,an),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),qe(["M","MM"],function(e,t){t[Nr]=Ve(e)-1}),qe(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Nr]=i:Ce(n).invalidMonth=e});var vb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),C_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),I_=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_b=Ns,gb=Ns;function yb(e,t){return e?In(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||I_).test(t)?"format":"standalone"][e.month()]:In(this._months)?this._months:this._months.standalone}function Sb(e,t){return e?In(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[I_.test(t)?"format":"standalone"][e.month()]:In(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Eb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Wn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null):(i=pt.call(this._longMonthsParse,s),i!==-1?i:null):t==="MMM"?(i=pt.call(this._shortMonthsParse,s),i!==-1?i:(i=pt.call(this._longMonthsParse,s),i!==-1?i:null)):(i=pt.call(this._longMonthsParse,s),i!==-1?i:(i=pt.call(this._shortMonthsParse,s),i!==-1?i:null))}function Tb(e,t,n){var r,i,a;if(this._monthsParseExact)return Eb.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Wn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function R_(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ve(t);else if(t=e.localeData().monthsParse(t),!Er(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,_d(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function O_(e){return e!=null?(R_(this,e),ae.updateOffset(this,!0),this):Ds(this,"Month")}function Nb(){return _d(this.year(),this.month())}function wb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ge(this,"_monthsShortRegex")||(this._monthsShortRegex=_b),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bb(e){return this._monthsParseExact?(Ge(this,"_monthsRegex")||P_.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ge(this,"_monthsRegex")||(this._monthsRegex=gb),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function P_(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,a,s,l;for(i=0;i<12;i++)a=Wn([2e3,i]),s=Tr(this.monthsShort(a,"")),l=Tr(this.months(a,"")),t.push(s),n.push(l),r.push(l),r.push(s);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Db(e,t,n,r,i,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,a,s),l}function ks(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function yc(e,t,n){var r=7+t-n,i=(7+ks(e,0,r).getUTCDay()-t)%7;return-i+r-1}function A_(e,t,n,r,i){var a=(7+n-r)%7,s=yc(e,r,i),l=1+7*(t-1)+a+s,c,u;return l<=0?(c=e-1,u=bs(c)+l):l>bs(e)?(c=e+1,u=l-bs(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Cs(e,t,n){var r=yc(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+br(s,t,n)):i>br(e.year(),t,n)?(a=i-br(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function br(e,t,n){var r=yc(e,t,n),i=yc(e+1,t,n);return(bs(e)-r+i)/7}ge("w",["ww",2],"wo","week"),ge("W",["WW",2],"Wo","isoWeek"),le("w",it,ro),le("ww",it,an),le("W",it,ro),le("WW",it,an),ws(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ve(e)});function kb(e){return Cs(e,this._week.dow,this._week.doy).week}var Cb={dow:0,doy:6};function Ib(){return this._week.dow}function Rb(){return this._week.doy}function Ob(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pb(e){var t=Cs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ge("d",0,"do","day"),ge("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),ge("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),ge("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),ge("e",0,0,"weekday"),ge("E",0,0,"isoWeekday"),le("d",it),le("e",it),le("E",it),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),ws(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ce(n).invalidWeekday=e}),ws(["d","e","E"],function(e,t,n,r){t[r]=Ve(e)});function Ab(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Mb(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function gd(e,t){return e.slice(t,7).concat(e.slice(0,t))}var xb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),M_="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lb=Ns,Fb=Ns,Yb=Ns;function $b(e,t){var n=In(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?gd(n,this._week.dow):e?n[e.day()]:n}function Bb(e){return e===!0?gd(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ub(e){return e===!0?gd(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Hb(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Wn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=pt.call(this._weekdaysParse,s),i!==-1||(i=pt.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=pt.call(this._shortWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=pt.call(this._minWeekdaysParse,s),i!==-1||(i=pt.call(this._weekdaysParse,s),i!==-1)?i:(i=pt.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Gb(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Hb.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Wn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wb(e){if(!this.isValid())return e!=null?this:NaN;var t=Ds(this,"Day");return e!=null?(e=Ab(e,this.localeData()),this.add(e-t,"d")):t}function jb(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function zb(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Mb(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Kb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ge(this,"_weekdaysRegex")||(this._weekdaysRegex=Lb),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ge(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fb),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xb(e){return this._weekdaysParseExact?(Ge(this,"_weekdaysRegex")||yd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ge(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yb),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yd(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],i=[],a,s,l,c,u;for(a=0;a<7;a++)s=Wn([2e3,1]).day(a),l=Tr(this.weekdaysMin(s,"")),c=Tr(this.weekdaysShort(s,"")),u=Tr(this.weekdays(s,"")),t.push(l),n.push(c),r.push(u),i.push(l),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sd(){return this.hours()%12||12}function Jb(){return this.hours()||24}ge("H",["HH",2],0,"hour"),ge("h",["hh",2],0,Sd),ge("k",["kk",2],0,Jb),ge("hmm",0,0,function(){return""+Sd.apply(this)+zn(this.minutes(),2)}),ge("hmmss",0,0,function(){return""+Sd.apply(this)+zn(this.minutes(),2)+zn(this.seconds(),2)}),ge("Hmm",0,0,function(){return""+this.hours()+zn(this.minutes(),2)}),ge("Hmmss",0,0,function(){return""+this.hours()+zn(this.minutes(),2)+zn(this.seconds(),2)});function x_(e,t){ge(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}x_("a",!0),x_("A",!1);function V_(e,t){return t._meridiemParse}le("a",V_),le("A",V_),le("H",it,md),le("h",it,ro),le("k",it,ro),le("HH",it,an),le("hh",it,an),le("kk",it,an),le("hmm",w_),le("hmmss",b_),le("Hmm",w_),le("Hmmss",b_),qe(["H","HH"],Tt),qe(["k","kk"],function(e,t,n){var r=Ve(e);t[Tt]=r===24?0:r}),qe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),qe(["h","hh"],function(e,t,n){t[Tt]=Ve(e),Ce(n).bigHour=!0}),qe("hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r)),Ce(n).bigHour=!0}),qe("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[wr]=Ve(e.substr(i)),Ce(n).bigHour=!0}),qe("Hmm",function(e,t,n){var r=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r))}),qe("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Tt]=Ve(e.substr(0,r)),t[On]=Ve(e.substr(r,2)),t[wr]=Ve(e.substr(i))});function Qb(e){return(e+"").toLowerCase().charAt(0)==="p"}var Zb=/[ap]\.?m?\.?/i,eD=io("Hours",!0);function tD(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var L_={calendar:Hw,longDateFormat:zw,invalidDate:qw,ordinal:Jw,dayOfMonthOrdinalParse:Qw,relativeTime:eb,months:vb,monthsShort:C_,week:Cb,weekdays:xb,weekdaysMin:Vb,weekdaysShort:M_,meridiemParse:Zb},st={},Is={},Rs;function nD(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function F_(e){return e&&e.toLowerCase().replace("_","-")}function rD(e){for(var t=0,n,r,i,a;t<e.length;){for(a=F_(e[t]).split("-"),n=a.length,r=F_(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=Sc(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&nD(a,r)>=n-1)break;n--}t++}return Rs}function iD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sc(e){var t=null,n;if(st[e]===void 0&&typeof module<"u"&&module&&module.exports&&iD(e))try{t=Rs._abbr,n=require,n("./locale/"+e),ai(t)}catch{st[e]=null}return st[e]}function ai(e,t){var n;return e&&(Jt(t)?n=Dr(e):n=Ed(e,t),n?Rs=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rs._abbr}function Ed(e,t){if(t!==null){var n,r=L_;if(t.abbr=e,st[e]!=null)y_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(t.parentLocale!=null)if(st[t.parentLocale]!=null)r=st[t.parentLocale]._config;else if(n=Sc(t.parentLocale),n!=null)r=n._config;else return Is[t.parentLocale]||(Is[t.parentLocale]=[]),Is[t.parentLocale].push({name:e,config:t}),null;return st[e]=new ld(sd(r,t)),Is[e]&&Is[e].forEach(function(i){Ed(i.name,i.config)}),ai(e),st[e]}else return delete st[e],null}function aD(e,t){if(t!=null){var n,r,i=L_;st[e]!=null&&st[e].parentLocale!=null?st[e].set(sd(st[e]._config,t)):(r=Sc(e),r!=null&&(i=r._config),t=sd(i,t),r==null&&(t.abbr=e),n=new ld(t),n.parentLocale=st[e],st[e]=n),ai(e)}else st[e]!=null&&(st[e].parentLocale!=null?(st[e]=st[e].parentLocale,e===ai()&&ai(e)):st[e]!=null&&delete st[e]);return st[e]}function Dr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rs;if(!In(e)){if(t=Sc(e),t)return t;e=[e]}return rD(e)}function oD(){return cd(st)}function Td(e){var t,n=e._a;return n&&Ce(e).overflow===-2&&(t=n[Nr]<0||n[Nr]>11?Nr:n[Kn]<1||n[Kn]>_d(n[Lt],n[Nr])?Kn:n[Tt]<0||n[Tt]>24||n[Tt]===24&&(n[On]!==0||n[wr]!==0||n[Hi]!==0)?Tt:n[On]<0||n[On]>59?On:n[wr]<0||n[wr]>59?wr:n[Hi]<0||n[Hi]>999?Hi:-1,Ce(e)._overflowDayOfYear&&(t<Lt||t>Kn)&&(t=Kn),Ce(e)._overflowWeeks&&t===-1&&(t=ub),Ce(e)._overflowWeekday&&t===-1&&(t=fb),Ce(e).overflow=t),e}var sD=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lD=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cD=/Z|[+-]\d\d(?::?\d\d)?/,Ec=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Nd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uD=/^\/?Date\((-?\d+)/i,fD=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dD={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Y_(e){var t,n,r=e._i,i=sD.exec(r)||lD.exec(r),a,s,l,c,u=Ec.length,f=Nd.length;if(i){for(Ce(e).iso=!0,t=0,n=u;t<n;t++)if(Ec[t][1].exec(i[1])){s=Ec[t][0],a=Ec[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(i[3]){for(t=0,n=f;t<n;t++)if(Nd[t][1].exec(i[3])){l=(i[2]||" ")+Nd[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(i[4])if(cD.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),bd(e)}else e._isValid=!1}function hD(e,t,n,r,i,a){var s=[pD(e),C_.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function pD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function mD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vD(e,t,n){if(e){var r=M_.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Ce(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function _D(e,t,n){if(e)return dD[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function $_(e){var t=fD.exec(mD(e._i)),n;if(t){if(n=hD(t[4],t[3],t[2],t[5],t[6],t[7]),!vD(t[1],n,e))return;e._a=n,e._tzm=_D(t[8],t[9],t[10]),e._d=ks.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ce(e).rfc2822=!0}else e._isValid=!1}function gD(e){var t=uD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Y_(e),e._isValid===!1)delete e._isValid;else return;if($_(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ae.createFromInputFallback(e)}ae.createFromInputFallback=mn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ao(e,t,n){return e??t??n}function yD(e){var t=new Date(ae.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wd(e){var t,n,r=[],i,a,s;if(!e._d){for(i=yD(e),e._w&&e._a[Kn]==null&&e._a[Nr]==null&&SD(e),e._dayOfYear!=null&&(s=ao(e._a[Lt],i[Lt]),(e._dayOfYear>bs(s)||e._dayOfYear===0)&&(Ce(e)._overflowDayOfYear=!0),n=ks(s,0,e._dayOfYear),e._a[Nr]=n.getUTCMonth(),e._a[Kn]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Tt]===24&&e._a[On]===0&&e._a[wr]===0&&e._a[Hi]===0&&(e._nextDay=!0,e._a[Tt]=0),e._d=(e._useUTC?ks:Db).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Ce(e).weekdayMismatch=!0)}}function SD(e){var t,n,r,i,a,s,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=ao(t.GG,e._a[Lt],Cs(at(),1,4).year),r=ao(t.W,1),i=ao(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Cs(at(),a,s),n=ao(t.gg,e._a[Lt],u.year),r=ao(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):i=a),r<1||r>br(n,a,s)?Ce(e)._overflowWeeks=!0:c!=null?Ce(e)._overflowWeekday=!0:(l=A_(n,r,i,a,s),e._a[Lt]=l.year,e._dayOfYear=l.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function bd(e){if(e._f===ae.ISO_8601){Y_(e);return}if(e._f===ae.RFC_2822){$_(e);return}e._a=[],Ce(e).empty=!0;var t=""+e._i,n,r,i,a,s,l=t.length,c=0,u,f;for(i=S_(e._f,e._locale).match(ud)||[],f=i.length,n=0;n<f;n++)a=i[n],r=(t.match(sb(a,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&Ce(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),to[a]?(r?Ce(e).empty=!1:Ce(e).unusedTokens.push(a),cb(a,r,e)):e._strict&&!r&&Ce(e).unusedTokens.push(a);Ce(e).charsLeftOver=l-c,t.length>0&&Ce(e).unusedInput.push(t),e._a[Tt]<=12&&Ce(e).bigHour===!0&&e._a[Tt]>0&&(Ce(e).bigHour=void 0),Ce(e).parsedDateParts=e._a.slice(0),Ce(e).meridiem=e._meridiem,e._a[Tt]=ED(e._locale,e._a[Tt],e._meridiem),u=Ce(e).era,u!==null&&(e._a[Lt]=e._locale.erasConvertYear(u,e._a[Lt])),wd(e),Td(e)}function ED(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function TD(e){var t,n,r,i,a,s,l=!1,c=e._f.length;if(c===0){Ce(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,s=!1,t=od({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],bd(t),id(t)&&(s=!0),a+=Ce(t).charsLeftOver,a+=Ce(t).unusedTokens.length*10,Ce(t).score=a,l?a<r&&(r=a,n=t):(r==null||a<r||s)&&(r=a,n=t,s&&(l=!0));ii(e,n||t)}function ND(e){if(!e._d){var t=dd(e._i),n=t.day===void 0?t.date:t.day;e._a=m_([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wd(e)}}function wD(e){var t=new Ts(Td(B_(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function B_(e){var t=e._i,n=e._f;return e._locale=e._locale||Dr(e._l),t===null||n===void 0&&t===""?cc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Rn(t)?new Ts(Td(t)):(Es(t)?e._d=t:In(n)?TD(e):n?bd(e):bD(e),id(e)||(e._d=null),e))}function bD(e){var t=e._i;Jt(t)?e._d=new Date(ae.now()):Es(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gD(e):In(t)?(e._a=m_(t.slice(0),function(n){return parseInt(n,10)}),wd(e)):Ui(t)?ND(e):Er(t)?e._d=new Date(t):ae.createFromInputFallback(e)}function U_(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ui(e)&&nd(e)||In(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,wD(a)}function at(e,t,n,r){return U_(e,t,n,r,!1)}var DD=mn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cc()}),kD=mn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=at.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cc()});function H_(e,t){var n,r;if(t.length===1&&In(t[0])&&(t=t[0]),!t.length)return at();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function CD(){var e=[].slice.call(arguments,0);return H_("isBefore",e)}function ID(){var e=[].slice.call(arguments,0);return H_("isAfter",e)}var RD=function(){return Date.now?Date.now():+new Date},Os=["year","quarter","month","week","day","hour","minute","second","millisecond"];function OD(e){var t,n=!1,r,i=Os.length;for(t in e)if(Ge(e,t)&&!(pt.call(Os,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Os[r]]){if(n)return!1;parseFloat(e[Os[r]])!==Ve(e[Os[r]])&&(n=!0)}return!0}function PD(){return this._isValid}function AD(){return Pn(NaN)}function Tc(e){var t=dd(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=OD(t),this._milliseconds=+f+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Dr(),this._bubble()}function Nc(e){return e instanceof Tc}function Dd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function MD(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,s;for(s=0;s<r;s++)Ve(e[s])!==Ve(t[s])&&a++;return a+i}function G_(e,t){ge(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+zn(~~(n/60),2)+t+zn(~~n%60,2)})}G_("Z",":"),G_("ZZ",""),le("Z",vc),le("ZZ",vc),qe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=kd(vc,e)});var xD=/([\+\-]|\d\d)/gi;function kd(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(xD)||["-",0,0],a=+(i[1]*60)+Ve(i[2]),a===0?0:i[0]==="+"?a:-a)}function Cd(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Rn(e)||Es(e)?e.valueOf():at(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ae.updateOffset(n,!1),n):at(e).local()}function Id(e){return-Math.round(e._d.getTimezoneOffset())}ae.updateOffset=function(){};function VD(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=kd(vc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=Id(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?K_(this,Pn(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ae.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Id(this)}function LD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FD(e){return this.utcOffset(0,e)}function YD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Id(this),"m")),this}function $D(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kd(ab,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function BD(e){return this.isValid()?(e=e?at(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function UD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function HD(){if(!Jt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return od(e,this),e=B_(e),e._a?(t=e._isUTC?Wn(e._a):at(e._a),this._isDSTShifted=this.isValid()&&MD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GD(){return this.isValid()?!this._isUTC:!1}function WD(){return this.isValid()?this._isUTC:!1}function W_(){return this.isValid()?this._isUTC&&this._offset===0:!1}var jD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zD=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(e,t){var n=e,r=null,i,a,s;return Nc(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Er(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=jD.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Ve(r[Kn])*i,h:Ve(r[Tt])*i,m:Ve(r[On])*i,s:Ve(r[wr])*i,ms:Ve(Dd(r[Hi]*1e3))*i}):(r=zD.exec(e))?(i=r[1]==="-"?-1:1,n={y:Gi(r[2],i),M:Gi(r[3],i),w:Gi(r[4],i),d:Gi(r[5],i),h:Gi(r[6],i),m:Gi(r[7],i),s:Gi(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=KD(at(n.from),at(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new Tc(n),Nc(e)&&Ge(e,"_locale")&&(a._locale=e._locale),Nc(e)&&Ge(e,"_isValid")&&(a._isValid=e._isValid),a}Pn.fn=Tc.prototype,Pn.invalid=AD;function Gi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function j_(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function KD(e,t){var n;return e.isValid()&&t.isValid()?(t=Cd(t,e),e.isBefore(t)?n=j_(e,t):(n=j_(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function z_(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(y_(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Pn(n,r),K_(this,i,e),this}}function K_(e,t,n,r){var i=t._milliseconds,a=Dd(t._days),s=Dd(t._months);e.isValid()&&(r=r??!0,s&&R_(e,Ds(e,"Month")+s*n),a&&k_(e,"Date",Ds(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ae.updateOffset(e,a||s))}var qD=z_(1,"add"),XD=z_(-1,"subtract");function q_(e){return typeof e=="string"||e instanceof String}function JD(e){return Rn(e)||Es(e)||q_(e)||Er(e)||ZD(e)||QD(e)||e===null||e===void 0}function QD(e){var t=Ui(e)&&!nd(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;i<s;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function ZD(e){var t=In(e),n=!1;return t&&(n=e.filter(function(r){return!Er(r)&&q_(e)}).length===0),t&&n}function ek(e){var t=Ui(e)&&!nd(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||Ge(e,a);return t&&n}function tk(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function nk(e,t){arguments.length===1&&(arguments[0]?JD(arguments[0])?(e=arguments[0],t=void 0):ek(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||at(),r=Cd(n,this).startOf("day"),i=ae.calendarFormat(this,r)||"sameElse",a=t&&(jn(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,at(n)))}function rk(){return new Ts(this)}function ik(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ak(e,t){var n=Rn(e)?e:at(e);return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ok(e,t,n,r){var i=Rn(e)?e:at(e),a=Rn(t)?t:at(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function sk(e,t){var n=Rn(e)?e:at(e),r;return this.isValid()&&n.isValid()?(t=vn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function lk(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ck(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function uk(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=Cd(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=vn(t),t){case"year":a=wc(this,r)/12;break;case"month":a=wc(this,r);break;case"quarter":a=wc(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:_n(a)}function wc(e,t){if(e.date()<t.date())return-wc(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ae.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ae.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function fk(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dk(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?fc(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fc(n,"Z")):fc(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hk(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function pk(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=fc(this,e);return this.localeData().postformat(t)}function mk(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vk(e){return this.from(at(),e)}function _k(e,t){return this.isValid()&&(Rn(e)&&e.isValid()||at(e).isValid())?Pn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gk(e){return this.to(at(),e)}function X_(e){var t;return e===void 0?this._locale._abbr:(t=Dr(e),t!=null&&(this._locale=t),this)}var J_=mn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Q_(){return this._locale}var bc=1e3,oo=60*bc,Dc=60*oo,Z_=(365*400+97)*24*Dc;function so(e,t){return(e%t+t)%t}function eg(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Z_:new Date(e,t,n).valueOf()}function tg(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Z_:Date.UTC(e,t,n)}function yk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=so(t+(this._isUTC?0:this.utcOffset()*oo),Dc);break;case"minute":t=this._d.valueOf(),t-=so(t,oo);break;case"second":t=this._d.valueOf(),t-=so(t,bc);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Sk(e){var t,n;if(e=vn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?tg:eg,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Dc-so(t+(this._isUTC?0:this.utcOffset()*oo),Dc)-1;break;case"minute":t=this._d.valueOf(),t+=oo-so(t,oo)-1;break;case"second":t=this._d.valueOf(),t+=bc-so(t,bc)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Ek(){return this._d.valueOf()-(this._offset||0)*6e4}function Tk(){return Math.floor(this.valueOf()/1e3)}function Nk(){return new Date(this.valueOf())}function wk(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bk(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dk(){return this.isValid()?this.toISOString():null}function kk(){return id(this)}function Ck(){return ii({},Ce(this))}function Ik(){return Ce(this).overflow}function Rk(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ge("N",0,0,"eraAbbr"),ge("NN",0,0,"eraAbbr"),ge("NNN",0,0,"eraAbbr"),ge("NNNN",0,0,"eraName"),ge("NNNNN",0,0,"eraNarrow"),ge("y",["y",1],"yo","eraYear"),ge("y",["yy",2],0,"eraYear"),ge("y",["yyy",3],0,"eraYear"),ge("y",["yyyy",4],0,"eraYear"),le("N",Rd),le("NN",Rd),le("NNN",Rd),le("NNNN",Bk),le("NNNNN",Uk),qe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ce(n).era=i:Ce(n).invalidEra=e}),le("y",no),le("yy",no),le("yyy",no),le("yyyy",no),le("yo",Hk),qe(["y","yy","yyy","yyyy"],Lt),qe(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lt]=n._locale.eraYearOrdinalParse(e,i):t[Lt]=parseInt(e,10)});function Ok(e,t){var n,r,i,a=this._eras||Dr("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ae(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ae(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function Pk(e,t,n){var r,i,a=this.eras(),s,l,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(s=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(s===e)return a[r];break;case"NNNNN":if(c===e)return a[r];break}else if([s,l,c].indexOf(e)>=0)return a[r]}function Ak(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*n}function Mk(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function xk(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Vk(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Lk(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-ae(i[e].since).year())*n+i[e].offset;return this.year()}function Fk(e){return Ge(this,"_erasNameRegex")||Od.call(this),e?this._erasNameRegex:this._erasRegex}function Yk(e){return Ge(this,"_erasAbbrRegex")||Od.call(this),e?this._erasAbbrRegex:this._erasRegex}function $k(e){return Ge(this,"_erasNarrowRegex")||Od.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rd(e,t){return t.erasAbbrRegex(e)}function Bk(e,t){return t.erasNameRegex(e)}function Uk(e,t){return t.erasNarrowRegex(e)}function Hk(e,t){return t._eraYearOrdinalRegex||no}function Od(){var e=[],t=[],n=[],r=[],i,a,s,l,c,u=this.eras();for(i=0,a=u.length;i<a;++i)s=Tr(u[i].name),l=Tr(u[i].abbr),c=Tr(u[i].narrow),t.push(s),e.push(l),n.push(c),r.push(s),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ge(0,["gg",2],0,function(){return this.weekYear()%100}),ge(0,["GG",2],0,function(){return this.isoWeekYear()%100});function kc(e,t){ge(0,[e,e.length],0,t)}kc("gggg","weekYear"),kc("ggggg","weekYear"),kc("GGGG","isoWeekYear"),kc("GGGGG","isoWeekYear"),le("G",mc),le("g",mc),le("GG",it,an),le("gg",it,an),le("GGGG",pd,hd),le("gggg",pd,hd),le("GGGGG",pc,dc),le("ggggg",pc,dc),ws(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ve(e)}),ws(["gg","GG"],function(e,t,n,r){t[r]=ae.parseTwoDigitYear(e)});function Gk(e){return ng.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Wk(e){return ng.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function jk(){return br(this.year(),1,4)}function zk(){return br(this.isoWeekYear(),1,4)}function Kk(){var e=this.localeData()._week;return br(this.year(),e.dow,e.doy)}function qk(){var e=this.localeData()._week;return br(this.weekYear(),e.dow,e.doy)}function ng(e,t,n,r,i){var a;return e==null?Cs(this,r,i).year:(a=br(e,r,i),t>a&&(t=a),Xk.call(this,e,t,n,r,i))}function Xk(e,t,n,r,i){var a=A_(e,t,n,r,i),s=ks(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ge("Q",0,"Qo","quarter"),le("Q",T_),qe("Q",function(e,t){t[Nr]=(Ve(e)-1)*3});function Jk(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ge("D",["DD",2],"Do","date"),le("D",it,ro),le("DD",it,an),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),qe(["D","DD"],Kn),qe("Do",function(e,t){t[Kn]=Ve(e.match(it)[0])});var rg=io("Date",!0);ge("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",hc),le("DDDD",N_),qe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ve(e)});function Qk(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ge("m",["mm",2],0,"minute"),le("m",it,md),le("mm",it,an),qe(["m","mm"],On);var Zk=io("Minutes",!1);ge("s",["ss",2],0,"second"),le("s",it,md),le("ss",it,an),qe(["s","ss"],wr);var eC=io("Seconds",!1);ge("S",0,0,function(){return~~(this.millisecond()/100)}),ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ge(0,["SSS",3],0,"millisecond"),ge(0,["SSSS",4],0,function(){return this.millisecond()*10}),ge(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ge(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ge(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ge(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ge(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),le("S",hc,T_),le("SS",hc,an),le("SSS",hc,N_);var oi,ig;for(oi="SSSS";oi.length<=9;oi+="S")le(oi,no);function tC(e,t){t[Hi]=Ve(("0."+e)*1e3)}for(oi="S";oi.length<=9;oi+="S")qe(oi,tC);ig=io("Milliseconds",!1),ge("z",0,0,"zoneAbbr"),ge("zz",0,0,"zoneName");function nC(){return this._isUTC?"UTC":""}function rC(){return this._isUTC?"Coordinated Universal Time":""}var J=Ts.prototype;J.add=qD,J.calendar=nk,J.clone=rk,J.diff=uk,J.endOf=Sk,J.format=pk,J.from=mk,J.fromNow=vk,J.to=_k,J.toNow=gk,J.get=hb,J.invalidAt=Ik,J.isAfter=ik,J.isBefore=ak,J.isBetween=ok,J.isSame=sk,J.isSameOrAfter=lk,J.isSameOrBefore=ck,J.isValid=kk,J.lang=J_,J.locale=X_,J.localeData=Q_,J.max=kD,J.min=DD,J.parsingFlags=Ck,J.set=pb,J.startOf=yk,J.subtract=XD,J.toArray=wk,J.toObject=bk,J.toDate=Nk,J.toISOString=dk,J.inspect=hk,typeof Symbol<"u"&&Symbol.for!=null&&(J[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),J.toJSON=Dk,J.toString=fk,J.unix=Tk,J.valueOf=Ek,J.creationData=Rk,J.eraName=Mk,J.eraNarrow=xk,J.eraAbbr=Vk,J.eraYear=Lk,J.year=D_,J.isLeapYear=db,J.weekYear=Gk,J.isoWeekYear=Wk,J.quarter=J.quarters=Jk,J.month=O_,J.daysInMonth=Nb,J.week=J.weeks=Ob,J.isoWeek=J.isoWeeks=Pb,J.weeksInYear=Kk,J.weeksInWeekYear=qk,J.isoWeeksInYear=jk,J.isoWeeksInISOWeekYear=zk,J.date=rg,J.day=J.days=Wb,J.weekday=jb,J.isoWeekday=zb,J.dayOfYear=Qk,J.hour=J.hours=eD,J.minute=J.minutes=Zk,J.second=J.seconds=eC,J.millisecond=J.milliseconds=ig,J.utcOffset=VD,J.utc=FD,J.local=YD,J.parseZone=$D,J.hasAlignedHourOffset=BD,J.isDST=UD,J.isLocal=GD,J.isUtcOffset=WD,J.isUtc=W_,J.isUTC=W_,J.zoneAbbr=nC,J.zoneName=rC,J.dates=mn("dates accessor is deprecated. Use date instead.",rg),J.months=mn("months accessor is deprecated. Use month instead",O_),J.years=mn("years accessor is deprecated. Use year instead",D_),J.zone=mn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LD),J.isDSTShifted=mn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",HD);function iC(e){return at(e*1e3)}function aC(){return at.apply(null,arguments).parseZone()}function ag(e){return e}var We=ld.prototype;We.calendar=Gw,We.longDateFormat=Kw,We.invalidDate=Xw,We.ordinal=Zw,We.preparse=ag,We.postformat=ag,We.relativeTime=tb,We.pastFuture=nb,We.set=Uw,We.eras=Ok,We.erasParse=Pk,We.erasConvertYear=Ak,We.erasAbbrRegex=Yk,We.erasNameRegex=Fk,We.erasNarrowRegex=$k,We.months=yb,We.monthsShort=Sb,We.monthsParse=Tb,We.monthsRegex=bb,We.monthsShortRegex=wb,We.week=kb,We.firstDayOfYear=Rb,We.firstDayOfWeek=Ib,We.weekdays=$b,We.weekdaysMin=Ub,We.weekdaysShort=Bb,We.weekdaysParse=Gb,We.weekdaysRegex=Kb,We.weekdaysShortRegex=qb,We.weekdaysMinRegex=Xb,We.isPM=Qb,We.meridiem=tD;function Cc(e,t,n,r){var i=Dr(),a=Wn().set(r,t);return i[n](a,e)}function og(e,t,n){if(Er(e)&&(t=e,e=void 0),e=e||"",t!=null)return Cc(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Cc(e,r,n,"month");return i}function Pd(e,t,n,r){typeof e=="boolean"?(Er(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Er(t)&&(n=t,t=void 0),t=t||"");var i=Dr(),a=e?i._week.dow:0,s,l=[];if(n!=null)return Cc(t,(n+a)%7,r,"day");for(s=0;s<7;s++)l[s]=Cc(t,(s+a)%7,r,"day");return l}function oC(e,t){return og(e,t,"months")}function sC(e,t){return og(e,t,"monthsShort")}function lC(e,t,n){return Pd(e,t,n,"weekdays")}function cC(e,t,n){return Pd(e,t,n,"weekdaysShort")}function uC(e,t,n){return Pd(e,t,n,"weekdaysMin")}ai("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Ve(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ae.lang=mn("moment.lang is deprecated. Use moment.locale instead.",ai),ae.langData=mn("moment.langData is deprecated. Use moment.localeData instead.",Dr);var kr=Math.abs;function fC(){var e=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),e.milliseconds=kr(e.milliseconds),e.seconds=kr(e.seconds),e.minutes=kr(e.minutes),e.hours=kr(e.hours),e.months=kr(e.months),e.years=kr(e.years),this}function sg(e,t,n,r){var i=Pn(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dC(e,t){return sg(this,e,t,1)}function hC(e,t){return sg(this,e,t,-1)}function lg(e){return e<0?Math.floor(e):Math.ceil(e)}function pC(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=lg(Ad(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=_n(e/1e3),r.seconds=i%60,a=_n(i/60),r.minutes=a%60,s=_n(a/60),r.hours=s%24,t+=_n(s/24),c=_n(cg(t)),n+=c,t-=lg(Ad(c)),l=_n(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function cg(e){return e*4800/146097}function Ad(e){return e*146097/4800}function mC(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=vn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cg(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ad(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Cr(e){return function(){return this.as(e)}}var ug=Cr("ms"),vC=Cr("s"),_C=Cr("m"),gC=Cr("h"),yC=Cr("d"),SC=Cr("w"),EC=Cr("M"),TC=Cr("Q"),NC=Cr("y"),wC=ug;function bC(){return Pn(this)}function DC(e){return e=vn(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var kC=Wi("milliseconds"),CC=Wi("seconds"),IC=Wi("minutes"),RC=Wi("hours"),OC=Wi("days"),PC=Wi("months"),AC=Wi("years");function MC(){return _n(this.days()/7)}var Ir=Math.round,lo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function xC(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function VC(e,t,n,r){var i=Pn(e).abs(),a=Ir(i.as("s")),s=Ir(i.as("m")),l=Ir(i.as("h")),c=Ir(i.as("d")),u=Ir(i.as("M")),f=Ir(i.as("w")),d=Ir(i.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||f<=1&&["w"]||f<n.w&&["ww",f]),p=p||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,xC.apply(null,p)}function LC(e){return e===void 0?Ir:typeof e=="function"?(Ir=e,!0):!1}function FC(e,t){return lo[e]===void 0?!1:t===void 0?lo[e]:(lo[e]=t,e==="s"&&(lo.ss=t-1),!0)}function YC(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=lo,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},lo,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=VC(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var Md=Math.abs;function co(e){return(e>0)-(e<0)||+e}function Ic(){if(!this.isValid())return this.localeData().invalidDate();var e=Md(this._milliseconds)/1e3,t=Md(this._days),n=Md(this._months),r,i,a,s,l=this.asSeconds(),c,u,f,d;return l?(r=_n(e/60),i=_n(r/60),e%=60,r%=60,a=_n(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=co(this._months)!==co(l)?"-":"",f=co(this._days)!==co(l)?"-":"",d=co(this._milliseconds)!==co(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+s+"S":"")):"P0D"}var $e=Tc.prototype;$e.isValid=PD,$e.abs=fC,$e.add=dC,$e.subtract=hC,$e.as=mC,$e.asMilliseconds=ug,$e.asSeconds=vC,$e.asMinutes=_C,$e.asHours=gC,$e.asDays=yC,$e.asWeeks=SC,$e.asMonths=EC,$e.asQuarters=TC,$e.asYears=NC,$e.valueOf=wC,$e._bubble=pC,$e.clone=bC,$e.get=DC,$e.milliseconds=kC,$e.seconds=CC,$e.minutes=IC,$e.hours=RC,$e.days=OC,$e.weeks=MC,$e.months=PC,$e.years=AC,$e.humanize=YC,$e.toISOString=Ic,$e.toString=Ic,$e.toJSON=Ic,$e.locale=X_,$e.localeData=Q_,$e.toIsoString=mn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ic),$e.lang=J_,ge("X",0,0,"unix"),ge("x",0,0,"valueOf"),le("x",mc),le("X",ob),qe("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),qe("x",function(e,t,n){n._d=new Date(Ve(e))});//! moment.js
51
- ae.version="2.30.1",$w(at),ae.fn=J,ae.min=CD,ae.max=ID,ae.now=RD,ae.utc=Wn,ae.unix=iC,ae.months=oC,ae.isDate=Es,ae.locale=ai,ae.invalid=cc,ae.duration=Pn,ae.isMoment=Rn,ae.weekdays=lC,ae.parseZone=aC,ae.localeData=Dr,ae.isDuration=Nc,ae.monthsShort=sC,ae.weekdaysMin=uC,ae.defineLocale=Ed,ae.updateLocale=aD,ae.locales=oD,ae.weekdaysShort=cC,ae.normalizeUnits=vn,ae.relativeTimeRounding=LC,ae.relativeTimeThreshold=FC,ae.calendarFormat=tk,ae.prototype=J,ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const $C=["title"],BC=o.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=o.computed(()=>t.fieldValuePair.field),r=o.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=ae(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const s=o.resolveComponent("cape-link-value");return o.openBlock(),o.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[i.link?(o.openBlock(),o.createBlock(s,{key:0,"field-value-pair":i.fieldValuePair},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r.value),1)]),_:1},8,["field-value-pair"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(r.value),1)],64))],8,$C)}}}),UC={class:"cape-filter-label"},HC=["for"],GC={class:"cape-filter-mode"},WC={class:"cape-filter-term"},jC=["id","placeholder"],zC=["id","placeholder"],KC=o.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",UC,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,HC)]),o.createElementVNode("div",GC,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[3]||(s[3]=[o.createElementVNode("option",{value:"contains"},"contains",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",WC,[r.value.mode==="contains"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.term=l),placeholder:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,jC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.term=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,zC)),[[o.vModelText,r.value.term]]):o.createCommentVNode("",!0)])],64))}}),qC={class:"cape-filter-label"},XC=["for"],JC={class:"cape-filter-wide-term"},QC=["id","placeholder"],ZC=o.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId));return(i,a)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",qC,[o.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Search",8,XC)]),o.createElementVNode("div",JC,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.term=s),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,QC),[[o.vModelText,r.value.term]])])],64))}}),eI={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},tI=["for"],nI={class:"cape-sort-order-controls"},rI=["id"],iI=["value"],aI=["id"],oI=["value"],sI=["value"],lI=o.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=It(),n=Bt(),r=e,i=o.computed(()=>`cape-sort-order-${r.idDistinguisher}`),a=o.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(s,l)=>o.unref(n).hasSortFields&&o.unref(n).visibleCount>0?(o.openBlock(),o.createElementBlock("div",eI,[o.createElementVNode("label",{for:i.value},"Order results by: ",8,tI),o.createElementVNode("div",nI,[o.withDirectives(o.createElementVNode("select",{id:i.value,class:"cape-sort-order-field","onUpdate:modelValue":l[0]||(l[0]=c=>o.unref(n).sortFieldId=c)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).sortableFields,c=>(o.openBlock(),o.createElementBlock("option",{key:c.id,value:c.id},o.toDisplayString(c.label),9,iI))),128))],8,rI),[[o.vModelSelect,o.unref(n).sortFieldId]]),o.withDirectives(o.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":l[1]||(l[1]=c=>o.unref(n).sortDirection=c),"aria-label":"Sort direction",id:a.value},[o.createElementVNode("option",{value:o.unref(ni).Ascending},"Ascending",8,oI),o.createElementVNode("option",{value:o.unref(ni).Descending},"Descending",8,sI)],8,aI),[[o.vModelSelect,o.unref(n).sortDirection]])])])):o.createCommentVNode("",!0)}}),cI={class:"cape-filter-label"},uI=["for"],fI={class:"cape-filter-mode"},dI={class:"cape-filter-term"},hI=o.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>{const l=o.resolveComponent("cape-filter-field-enum-one-of-checkbox"),c=o.resolveComponent("cape-filter-field-enum-one-of-multiselect"),u=o.resolveComponent("cape-filter-field-enum-is-select"),f=o.resolveComponent("cape-filter-field-enum-is-radio");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",cI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id,"data-test":"filter-label"},o.toDisplayString(o.unref(r).field.label),9,uI)]),o.createElementVNode("div",fI,[o.unref(r).field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=d=>o.unref(r).mode=d),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[1]||(s[1]=[o.createElementVNode("option",{value:"oneOf"},"is one of",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,o.unref(r).mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",dI,[o.unref(r).mode==="oneOf"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.unref(i).filterInputStyleOnOneOf==="checkbox"?(o.openBlock(),o.createBlock(l,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(c,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0),o.unref(r).mode==="is"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.unref(i).filterInputStyleOnIs==="select"?(o.openBlock(),o.createBlock(u,{key:0,"filter-id":a.filterId},null,8,["filter-id"])):(o.openBlock(),o.createBlock(f,{key:1,"filter-id":a.filterId},null,8,["filter-id"]))],64)):o.createCommentVNode("",!0)])],64)}}}),pI={class:"cape-filter-label"},mI=["for"],vI={class:"cape-filter-mode"},_I={class:"cape-filter-term"},gI=["id","placeholder","min","max","step"],yI=["id","placeholder","min","max","step"],SI=["id","placeholder","min","max","step"],EI=o.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",pI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,mI)]),o.createElementVNode("div",vI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",_I,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,gI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,yI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":s[3]||(s[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,SI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),TI={class:"cape-filter-label"},NI=["for"],wI={class:"cape-filter-mode"},bI={class:"cape-filter-term"},DI=["id","placeholder"],kI=["id","placeholder"],CI=["id","placeholder"],II=o.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>n.byId(t.filterId)),i=o.computed(()=>r.value.field);return(a,s)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",TI,[o.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},o.toDisplayString(r.value.field.label),9,NI)]),o.createElementVNode("div",wI,[r.value.field.changeFilterMode?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},s[4]||(s[4]=[o.createElementVNode("option",{value:"between"},"is between",-1),o.createElementVNode("option",{value:"is"},"is",-1),o.createElementVNode("option",{value:"set"},"is present",-1),o.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[o.vModelSelect,r.value.mode]]):o.createCommentVNode("",!0)]),o.createElementVNode("div",bI,[r.value.mode==="between"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":s[1]||(s[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,DI),[[o.vModelText,r.value.lowerBoundTerm]]),s[5]||(s[5]=o.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":s[2]||(s[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,kI),[[o.vModelText,r.value.upperBoundTerm]])],64)):o.createCommentVNode("",!0),r.value.mode==="is"?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":s[3]||(s[3]=l=>r.value.isTerm=l),placeholder:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,CI)),[[o.vModelText,r.value.isTerm]]):o.createCommentVNode("",!0)])],64))}}),RI={class:"cape-results-controls flex justify-between"},OI={class:"flex justify-start"},PI={key:0,class:"cape-show-all-results-toggle switch switch-sm"},AI=["for"],MI=o.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Bt(),r=o.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=o.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(a,s)=>{const l=o.resolveComponent("cape-results-info"),c=o.resolveComponent("cape-show-all-results-toggle"),u=o.resolveComponent("cape-sort-order");return o.openBlock(),o.createElementBlock("div",RI,[o.createElementVNode("div",OI,[o.createVNode(l),r.value?(o.openBlock(),o.createElementBlock("div",PI,[o.createVNode(c,{class:"cape-results-toggle",id:i.value},null,8,["id"]),o.createElementVNode("label",{for:i.value},"Show All Results",8,AI)])):o.createCommentVNode("",!0)]),o.createVNode(u,{"id-distinguisher":a.idDistinguisher},null,8,["id-distinguisher"])])}}}),xI=ri(o.defineComponent({__name:"CapeGoTopResults",setup(e){function t(){const n=document.querySelector(".cape-results-controls-top");n&&n.scrollIntoView({behavior:"smooth"})}return(n,r)=>(o.openBlock(),o.createElementBlock("button",{class:"jump-to-results",onClick:t}," Jump to top results "))}}),[["__scopeId","data-v-bae5fe18"]]),VI=["href"],LI=o.defineComponent({__name:"CapeExternalLinkValue",props:{url:String},setup(e){const t=e,{url:n}=t,r=o.computed(()=>n?n.length<=80?n:n.slice(0,40)+"‥"+n.slice(-39):"");return(i,a)=>o.unref(n)?(o.openBlock(),o.createElementBlock("a",{key:0,href:o.unref(n),target:"_blank",rel:"noopener noreferrer"},o.toDisplayString(r.value),9,VI)):o.createCommentVNode("",!0)}});function FI(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const i=window.document.createElement("a");i.href=window.URL.createObjectURL(r),i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function YI(){const e=[[]],t=Za(),n=Sr();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(i=>{const a=r[i.id].value??"";return i.isMultiple&&Array.isArray(a)?a.join("; "):`${a}`}))}),e}function $I(e){return e.map(n=>'"'+n.map(i=>{let a="";return i!=null&&(a=i.toString()),a.replace(/"/g,'""').replace(/\r\n/g,`
47
+ var Ty;function ge(){return Ty.apply(null,arguments)}function BC(e){Ty=e}function ur(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ao(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ct(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zh(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ct(e,t))return!1;return!0}function Pn(e){return e===void 0}function ai(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function xl(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function by(e,t){var n=[],i,o=e.length;for(i=0;i<o;++i)n.push(t(e[i],i));return n}function qi(e,t){for(var n in t)ct(t,n)&&(e[n]=t[n]);return ct(t,"toString")&&(e.toString=t.toString),ct(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Pr(e,t,n,i){return Xy(e,t,n,i,!0).utc()}function VC(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ze(e){return e._pf==null&&(e._pf=VC()),e._pf}var Hh;Array.prototype.some?Hh=Array.prototype.some:Hh=function(e){var t=Object(this),n=t.length>>>0,i;for(i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Wh(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=Ze(e),n=Hh.call(t.parsedDateParts,function(o){return o!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function Ru(e){var t=Pr(NaN);return e!=null?qi(Ze(t),e):Ze(t).userInvalidated=!0,t}var Ny=ge.momentProperties=[],Zh=!1;function Gh(e,t){var n,i,o,s=Ny.length;if(Pn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Pn(t._i)||(e._i=t._i),Pn(t._f)||(e._f=t._f),Pn(t._l)||(e._l=t._l),Pn(t._strict)||(e._strict=t._strict),Pn(t._tzm)||(e._tzm=t._tzm),Pn(t._isUTC)||(e._isUTC=t._isUTC),Pn(t._offset)||(e._offset=t._offset),Pn(t._pf)||(e._pf=Ze(t)),Pn(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)i=Ny[n],o=t[i],Pn(o)||(e[i]=o);return e}function Ol(e){Gh(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Zh===!1&&(Zh=!0,ge.updateOffset(this),Zh=!1)}function fr(e){return e instanceof Ol||e!=null&&e._isAMomentObject!=null}function ky(e){ge.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Zn(e,t){var n=!0;return qi(function(){if(ge.deprecationHandler!=null&&ge.deprecationHandler(null,e),n){var i=[],o,s,c,f=arguments.length;for(s=0;s<f;s++){if(o="",typeof arguments[s]=="object"){o+=`
48
+ [`+s+"] ";for(c in arguments[0])ct(arguments[0],c)&&(o+=c+": "+arguments[0][c]+", ");o=o.slice(0,-2)}else o=arguments[s];i.push(o)}ky(e+`
49
+ Arguments: `+Array.prototype.slice.call(i).join("")+`
50
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Cy={};function Py(e,t){ge.deprecationHandler!=null&&ge.deprecationHandler(e,t),Cy[e]||(ky(t),Cy[e]=!0)}ge.suppressDeprecationWarnings=!1,ge.deprecationHandler=null;function Dr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function FC(e){var t,n;for(n in e)ct(e,n)&&(t=e[n],Dr(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function jh(e,t){var n=qi({},e),i;for(i in t)ct(t,i)&&(Ao(e[i])&&Ao(t[i])?(n[i]={},qi(n[i],e[i]),qi(n[i],t[i])):t[i]!=null?n[i]=t[i]:delete n[i]);for(i in e)ct(e,i)&&!ct(t,i)&&Ao(e[i])&&(n[i]=qi({},n[i]));return n}function qh(e){e!=null&&this.set(e)}var Kh;Object.keys?Kh=Object.keys:Kh=function(e){var t,n=[];for(t in e)ct(e,t)&&n.push(t);return n};var YC={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $C(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return Dr(i)?i.call(t,n):i}function xr(e,t,n){var i=""+Math.abs(e),o=t-i.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var Xh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lu=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Jh={},ns={};function Ie(e,t,n,i){var o=i;typeof i=="string"&&(o=function(){return this[i]()}),e&&(ns[e]=o),t&&(ns[t[0]]=function(){return xr(o.apply(this,arguments),t[1],t[2])}),n&&(ns[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function UC(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zC(e){var t=e.match(Xh),n,i;for(n=0,i=t.length;n<i;n++)ns[t[n]]?t[n]=ns[t[n]]:t[n]=UC(t[n]);return function(o){var s="",c;for(c=0;c<i;c++)s+=Dr(t[c])?t[c].call(o,e):t[c];return s}}function Mu(e,t){return e.isValid()?(t=Dy(t,e.localeData()),Jh[t]=Jh[t]||zC(t),Jh[t](e)):e.localeData().invalidDate()}function Dy(e,t){var n=5;function i(o){return t.longDateFormat(o)||o}for(Lu.lastIndex=0;n>=0&&Lu.test(e);)e=e.replace(Lu,i),Lu.lastIndex=0,n-=1;return e}var HC={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function WC(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Xh).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var ZC="Invalid date";function GC(){return this._invalidDate}var jC="%d",qC=/\d{1,2}/;function KC(e){return this._ordinal.replace("%d",e)}var XC={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function JC(e,t,n,i){var o=this._relativeTime[n];return Dr(o)?o(e,t,n,i):o.replace(/%d/i,e)}function QC(e,t){var n=this._relativeTime[e>0?"future":"past"];return Dr(n)?n(t):n.replace(/%s/i,t)}var xy={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Gn(e){return typeof e=="string"?xy[e]||xy[e.toLowerCase()]:void 0}function Qh(e){var t={},n,i;for(i in e)ct(e,i)&&(n=Gn(i),n&&(t[n]=e[i]));return t}var eP={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function tP(e){var t=[],n;for(n in e)ct(e,n)&&t.push({unit:n,priority:eP[n]});return t.sort(function(i,o){return i.priority-o.priority}),t}var Oy=/\d/,An=/\d\d/,Iy=/\d{3}/,ep=/\d{4}/,Au=/[+-]?\d{6}/,Nt=/\d\d?/,Ry=/\d\d\d\d?/,Ly=/\d\d\d\d\d\d?/,Bu=/\d{1,3}/,tp=/\d{1,4}/,Vu=/[+-]?\d{1,6}/,rs=/\d+/,Fu=/[+-]?\d+/,nP=/Z|[+-]\d\d:?\d\d/gi,Yu=/Z|[+-]\d\d(?::?\d\d)?/gi,rP=/[+-]?\d+(\.\d{1,3})?/,Il=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,is=/^[1-9]\d?/,np=/^([1-9]\d|\d)/,$u;$u={};function Ne(e,t,n){$u[e]=Dr(t)?t:function(i,o){return i&&n?n:t}}function iP(e,t){return ct($u,e)?$u[e](t._strict,t._locale):new RegExp(oP(e))}function oP(e){return si(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,i,o,s){return n||i||o||s}))}function si(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function jn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function et(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=jn(t)),n}var rp={};function _t(e,t){var n,i=t,o;for(typeof e=="string"&&(e=[e]),ai(t)&&(i=function(s,c){c[t]=et(s)}),o=e.length,n=0;n<o;n++)rp[e[n]]=i}function Rl(e,t){_t(e,function(n,i,o,s){o._w=o._w||{},t(n,o._w,o,s)})}function aP(e,t,n){t!=null&&ct(rp,e)&&rp[e](t,n._a,n,e)}function Uu(e){return e%4===0&&e%100!==0||e%400===0}var fn=0,li=1,Or=2,jt=3,dr=4,ci=5,Bo=6,sP=7,lP=8;Ie("Y",0,0,function(){var e=this.year();return e<=9999?xr(e,4):"+"+e}),Ie(0,["YY",2],0,function(){return this.year()%100}),Ie(0,["YYYY",4],0,"year"),Ie(0,["YYYYY",5],0,"year"),Ie(0,["YYYYYY",6,!0],0,"year"),Ne("Y",Fu),Ne("YY",Nt,An),Ne("YYYY",tp,ep),Ne("YYYYY",Vu,Au),Ne("YYYYYY",Vu,Au),_t(["YYYYY","YYYYYY"],fn),_t("YYYY",function(e,t){t[fn]=e.length===2?ge.parseTwoDigitYear(e):et(e)}),_t("YY",function(e,t){t[fn]=ge.parseTwoDigitYear(e)}),_t("Y",function(e,t){t[fn]=parseInt(e,10)});function Ll(e){return Uu(e)?366:365}ge.parseTwoDigitYear=function(e){return et(e)+(et(e)>68?1900:2e3)};var My=os("FullYear",!0);function cP(){return Uu(this.year())}function os(e,t){return function(n){return n!=null?(Ay(this,e,n),ge.updateOffset(this,t),this):Ml(this,e)}}function Ml(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ay(e,t,n){var i,o,s,c,f;if(!(!e.isValid()||isNaN(n))){switch(i=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(o?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(o?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(o?i.setUTCHours(n):i.setHours(n));case"Date":return void(o?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,c=e.month(),f=e.date(),f=f===29&&c===1&&!Uu(s)?28:f,o?i.setUTCFullYear(s,c,f):i.setFullYear(s,c,f)}}function uP(e){return e=Gn(e),Dr(this[e])?this[e]():this}function fP(e,t){if(typeof e=="object"){e=Qh(e);var n=tP(e),i,o=n.length;for(i=0;i<o;i++)this[n[i].unit](e[n[i].unit])}else if(e=Gn(e),Dr(this[e]))return this[e](t);return this}function dP(e,t){return(e%t+t)%t}var Mt;Array.prototype.indexOf?Mt=Array.prototype.indexOf:Mt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ip(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=dP(t,12);return e+=(t-n)/12,n===1?Uu(e)?29:28:31-n%7%2}Ie("M",["MM",2],"Mo",function(){return this.month()+1}),Ie("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Ie("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ne("M",Nt,is),Ne("MM",Nt,An),Ne("MMM",function(e,t){return t.monthsShortRegex(e)}),Ne("MMMM",function(e,t){return t.monthsRegex(e)}),_t(["M","MM"],function(e,t){t[li]=et(e)-1}),_t(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);o!=null?t[li]=o:Ze(n).invalidMonth=e});var hP="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),By="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vy=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pP=Il,_P=Il;function mP(e,t){return e?ur(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vy).test(t)?"format":"standalone"][e.month()]:ur(this._months)?this._months:this._months.standalone}function vP(e,t){return e?ur(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vy.test(t)?"format":"standalone"][e.month()]:ur(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gP(e,t,n){var i,o,s,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=Pr([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(o=Mt.call(this._shortMonthsParse,c),o!==-1?o:null):(o=Mt.call(this._longMonthsParse,c),o!==-1?o:null):t==="MMM"?(o=Mt.call(this._shortMonthsParse,c),o!==-1?o:(o=Mt.call(this._longMonthsParse,c),o!==-1?o:null)):(o=Mt.call(this._longMonthsParse,c),o!==-1?o:(o=Mt.call(this._shortMonthsParse,c),o!==-1?o:null))}function yP(e,t,n){var i,o,s;if(this._monthsParseExact)return gP.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=Pr([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[i]&&(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(n&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function Fy(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=et(t);else if(t=e.localeData().monthsParse(t),!ai(t))return e}var n=t,i=e.date();return i=i<29?i:Math.min(i,ip(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Yy(e){return e!=null?(Fy(this,e),ge.updateOffset(this,!0),this):Ml(this,"Month")}function SP(){return ip(this.year(),this.month())}function wP(e){return this._monthsParseExact?(ct(this,"_monthsRegex")||$y.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ct(this,"_monthsShortRegex")||(this._monthsShortRegex=pP),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function EP(e){return this._monthsParseExact?(ct(this,"_monthsRegex")||$y.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ct(this,"_monthsRegex")||(this._monthsRegex=_P),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function $y(){function e(d,p){return p.length-d.length}var t=[],n=[],i=[],o,s,c,f;for(o=0;o<12;o++)s=Pr([2e3,o]),c=si(this.monthsShort(s,"")),f=si(this.months(s,"")),t.push(c),n.push(f),i.push(f),i.push(c);t.sort(e),n.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TP(e,t,n,i,o,s,c){var f;return e<100&&e>=0?(f=new Date(e+400,t,n,i,o,s,c),isFinite(f.getFullYear())&&f.setFullYear(e)):f=new Date(e,t,n,i,o,s,c),f}function Al(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function zu(e,t,n){var i=7+t-n,o=(7+Al(e,0,i).getUTCDay()-t)%7;return-o+i-1}function Uy(e,t,n,i,o){var s=(7+n-i)%7,c=zu(e,i,o),f=1+7*(t-1)+s+c,d,p;return f<=0?(d=e-1,p=Ll(d)+f):f>Ll(e)?(d=e+1,p=f-Ll(e)):(d=e,p=f),{year:d,dayOfYear:p}}function Bl(e,t,n){var i=zu(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1,s,c;return o<1?(c=e.year()-1,s=o+ui(c,t,n)):o>ui(e.year(),t,n)?(s=o-ui(e.year(),t,n),c=e.year()+1):(c=e.year(),s=o),{week:s,year:c}}function ui(e,t,n){var i=zu(e,t,n),o=zu(e+1,t,n);return(Ll(e)-i+o)/7}Ie("w",["ww",2],"wo","week"),Ie("W",["WW",2],"Wo","isoWeek"),Ne("w",Nt,is),Ne("ww",Nt,An),Ne("W",Nt,is),Ne("WW",Nt,An),Rl(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=et(e)});function bP(e){return Bl(e,this._week.dow,this._week.doy).week}var NP={dow:0,doy:6};function kP(){return this._week.dow}function CP(){return this._week.doy}function PP(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function DP(e){var t=Bl(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Ie("d",0,"do","day"),Ie("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Ie("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Ie("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Ie("e",0,0,"weekday"),Ie("E",0,0,"isoWeekday"),Ne("d",Nt),Ne("e",Nt),Ne("E",Nt),Ne("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ne("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ne("dddd",function(e,t){return t.weekdaysRegex(e)}),Rl(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);o!=null?t.d=o:Ze(n).invalidWeekday=e}),Rl(["d","e","E"],function(e,t,n,i){t[i]=et(e)});function xP(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function OP(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function op(e,t){return e.slice(t,7).concat(e.slice(0,t))}var IP="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),RP="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),LP=Il,MP=Il,AP=Il;function BP(e,t){var n=ur(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?op(n,this._week.dow):e?n[e.day()]:n}function VP(e){return e===!0?op(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function FP(e){return e===!0?op(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function YP(e,t,n){var i,o,s,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=Pr([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(o=Mt.call(this._weekdaysParse,c),o!==-1?o:null):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,c),o!==-1?o:null):(o=Mt.call(this._minWeekdaysParse,c),o!==-1?o:null):t==="dddd"?(o=Mt.call(this._weekdaysParse,c),o!==-1||(o=Mt.call(this._shortWeekdaysParse,c),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,c),o!==-1?o:null)):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,c),o!==-1||(o=Mt.call(this._weekdaysParse,c),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,c),o!==-1?o:null)):(o=Mt.call(this._minWeekdaysParse,c),o!==-1||(o=Mt.call(this._weekdaysParse,c),o!==-1)?o:(o=Mt.call(this._shortWeekdaysParse,c),o!==-1?o:null))}function $P(e,t,n){var i,o,s;if(this._weekdaysParseExact)return YP.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=Pr([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(n&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(n&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function UP(e){if(!this.isValid())return e!=null?this:NaN;var t=Ml(this,"Day");return e!=null?(e=xP(e,this.localeData()),this.add(e-t,"d")):t}function zP(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function HP(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=OP(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function WP(e){return this._weekdaysParseExact?(ct(this,"_weekdaysRegex")||ap.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ct(this,"_weekdaysRegex")||(this._weekdaysRegex=LP),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ZP(e){return this._weekdaysParseExact?(ct(this,"_weekdaysRegex")||ap.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ct(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=MP),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function GP(e){return this._weekdaysParseExact?(ct(this,"_weekdaysRegex")||ap.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ct(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=AP),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ap(){function e(_,v){return v.length-_.length}var t=[],n=[],i=[],o=[],s,c,f,d,p;for(s=0;s<7;s++)c=Pr([2e3,1]).day(s),f=si(this.weekdaysMin(c,"")),d=si(this.weekdaysShort(c,"")),p=si(this.weekdays(c,"")),t.push(f),n.push(d),i.push(p),o.push(f),o.push(d),o.push(p);t.sort(e),n.sort(e),i.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function sp(){return this.hours()%12||12}function jP(){return this.hours()||24}Ie("H",["HH",2],0,"hour"),Ie("h",["hh",2],0,sp),Ie("k",["kk",2],0,jP),Ie("hmm",0,0,function(){return""+sp.apply(this)+xr(this.minutes(),2)}),Ie("hmmss",0,0,function(){return""+sp.apply(this)+xr(this.minutes(),2)+xr(this.seconds(),2)}),Ie("Hmm",0,0,function(){return""+this.hours()+xr(this.minutes(),2)}),Ie("Hmmss",0,0,function(){return""+this.hours()+xr(this.minutes(),2)+xr(this.seconds(),2)});function Hy(e,t){Ie(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Hy("a",!0),Hy("A",!1);function Wy(e,t){return t._meridiemParse}Ne("a",Wy),Ne("A",Wy),Ne("H",Nt,np),Ne("h",Nt,is),Ne("k",Nt,is),Ne("HH",Nt,An),Ne("hh",Nt,An),Ne("kk",Nt,An),Ne("hmm",Ry),Ne("hmmss",Ly),Ne("Hmm",Ry),Ne("Hmmss",Ly),_t(["H","HH"],jt),_t(["k","kk"],function(e,t,n){var i=et(e);t[jt]=i===24?0:i}),_t(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_t(["h","hh"],function(e,t,n){t[jt]=et(e),Ze(n).bigHour=!0}),_t("hmm",function(e,t,n){var i=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i)),Ze(n).bigHour=!0}),_t("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i,2)),t[ci]=et(e.substr(o)),Ze(n).bigHour=!0}),_t("Hmm",function(e,t,n){var i=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i))}),_t("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[jt]=et(e.substr(0,i)),t[dr]=et(e.substr(i,2)),t[ci]=et(e.substr(o))});function qP(e){return(e+"").toLowerCase().charAt(0)==="p"}var KP=/[ap]\.?m?\.?/i,XP=os("Hours",!0);function JP(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Zy={calendar:YC,longDateFormat:HC,invalidDate:ZC,ordinal:jC,dayOfMonthOrdinalParse:qC,relativeTime:XC,months:hP,monthsShort:By,week:NP,weekdays:IP,weekdaysMin:RP,weekdaysShort:zy,meridiemParse:KP},Pt={},Vl={},Fl;function QP(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function Gy(e){return e&&e.toLowerCase().replace("_","-")}function eD(e){for(var t=0,n,i,o,s;t<e.length;){for(s=Gy(e[t]).split("-"),n=s.length,i=Gy(e[t+1]),i=i?i.split("-"):null;n>0;){if(o=Hu(s.slice(0,n).join("-")),o)return o;if(i&&i.length>=n&&QP(s,i)>=n-1)break;n--}t++}return Fl}function tD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Hu(e){var t=null,n;if(Pt[e]===void 0&&typeof module<"u"&&module&&module.exports&&tD(e))try{t=Fl._abbr,n=require,n("./locale/"+e),Ki(t)}catch{Pt[e]=null}return Pt[e]}function Ki(e,t){var n;return e&&(Pn(t)?n=fi(e):n=lp(e,t),n?Fl=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Fl._abbr}function lp(e,t){if(t!==null){var n,i=Zy;if(t.abbr=e,Pt[e]!=null)Py("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Pt[e]._config;else if(t.parentLocale!=null)if(Pt[t.parentLocale]!=null)i=Pt[t.parentLocale]._config;else if(n=Hu(t.parentLocale),n!=null)i=n._config;else return Vl[t.parentLocale]||(Vl[t.parentLocale]=[]),Vl[t.parentLocale].push({name:e,config:t}),null;return Pt[e]=new qh(jh(i,t)),Vl[e]&&Vl[e].forEach(function(o){lp(o.name,o.config)}),Ki(e),Pt[e]}else return delete Pt[e],null}function nD(e,t){if(t!=null){var n,i,o=Zy;Pt[e]!=null&&Pt[e].parentLocale!=null?Pt[e].set(jh(Pt[e]._config,t)):(i=Hu(e),i!=null&&(o=i._config),t=jh(o,t),i==null&&(t.abbr=e),n=new qh(t),n.parentLocale=Pt[e],Pt[e]=n),Ki(e)}else Pt[e]!=null&&(Pt[e].parentLocale!=null?(Pt[e]=Pt[e].parentLocale,e===Ki()&&Ki(e)):Pt[e]!=null&&delete Pt[e]);return Pt[e]}function fi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Fl;if(!ur(e)){if(t=Hu(e),t)return t;e=[e]}return eD(e)}function rD(){return Kh(Pt)}function cp(e){var t,n=e._a;return n&&Ze(e).overflow===-2&&(t=n[li]<0||n[li]>11?li:n[Or]<1||n[Or]>ip(n[fn],n[li])?Or:n[jt]<0||n[jt]>24||n[jt]===24&&(n[dr]!==0||n[ci]!==0||n[Bo]!==0)?jt:n[dr]<0||n[dr]>59?dr:n[ci]<0||n[ci]>59?ci:n[Bo]<0||n[Bo]>999?Bo:-1,Ze(e)._overflowDayOfYear&&(t<fn||t>Or)&&(t=Or),Ze(e)._overflowWeeks&&t===-1&&(t=sP),Ze(e)._overflowWeekday&&t===-1&&(t=lP),Ze(e).overflow=t),e}var iD=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oD=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aD=/Z|[+-]\d\d(?::?\d\d)?/,Wu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],up=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],sD=/^\/?Date\((-?\d+)/i,lD=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,cD={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jy(e){var t,n,i=e._i,o=iD.exec(i)||oD.exec(i),s,c,f,d,p=Wu.length,_=up.length;if(o){for(Ze(e).iso=!0,t=0,n=p;t<n;t++)if(Wu[t][1].exec(o[1])){c=Wu[t][0],s=Wu[t][2]!==!1;break}if(c==null){e._isValid=!1;return}if(o[3]){for(t=0,n=_;t<n;t++)if(up[t][1].exec(o[3])){f=(o[2]||" ")+up[t][0];break}if(f==null){e._isValid=!1;return}}if(!s&&f!=null){e._isValid=!1;return}if(o[4])if(aD.exec(o[4]))d="Z";else{e._isValid=!1;return}e._f=c+(f||"")+(d||""),dp(e)}else e._isValid=!1}function uD(e,t,n,i,o,s){var c=[fD(e),By.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return s&&c.push(parseInt(s,10)),c}function fD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hD(e,t,n){if(e){var i=zy.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(i!==o)return Ze(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function pD(e,t,n){if(e)return cD[e];if(t)return 0;var i=parseInt(n,10),o=i%100,s=(i-o)/100;return s*60+o}function qy(e){var t=lD.exec(dD(e._i)),n;if(t){if(n=uD(t[4],t[3],t[2],t[5],t[6],t[7]),!hD(t[1],n,e))return;e._a=n,e._tzm=pD(t[8],t[9],t[10]),e._d=Al.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ze(e).rfc2822=!0}else e._isValid=!1}function _D(e){var t=sD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(jy(e),e._isValid===!1)delete e._isValid;else return;if(qy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ge.createFromInputFallback(e)}ge.createFromInputFallback=Zn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function as(e,t,n){return e??t??n}function mD(e){var t=new Date(ge.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function fp(e){var t,n,i=[],o,s,c;if(!e._d){for(o=mD(e),e._w&&e._a[Or]==null&&e._a[li]==null&&vD(e),e._dayOfYear!=null&&(c=as(e._a[fn],o[fn]),(e._dayOfYear>Ll(c)||e._dayOfYear===0)&&(Ze(e)._overflowDayOfYear=!0),n=Al(c,0,e._dayOfYear),e._a[li]=n.getUTCMonth(),e._a[Or]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=o[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[jt]===24&&e._a[dr]===0&&e._a[ci]===0&&e._a[Bo]===0&&(e._nextDay=!0,e._a[jt]=0),e._d=(e._useUTC?Al:TP).apply(null,i),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[jt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(Ze(e).weekdayMismatch=!0)}}function vD(e){var t,n,i,o,s,c,f,d,p;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,c=4,n=as(t.GG,e._a[fn],Bl(kt(),1,4).year),i=as(t.W,1),o=as(t.E,1),(o<1||o>7)&&(d=!0)):(s=e._locale._week.dow,c=e._locale._week.doy,p=Bl(kt(),s,c),n=as(t.gg,e._a[fn],p.year),i=as(t.w,p.week),t.d!=null?(o=t.d,(o<0||o>6)&&(d=!0)):t.e!=null?(o=t.e+s,(t.e<0||t.e>6)&&(d=!0)):o=s),i<1||i>ui(n,s,c)?Ze(e)._overflowWeeks=!0:d!=null?Ze(e)._overflowWeekday=!0:(f=Uy(n,i,o,s,c),e._a[fn]=f.year,e._dayOfYear=f.dayOfYear)}ge.ISO_8601=function(){},ge.RFC_2822=function(){};function dp(e){if(e._f===ge.ISO_8601){jy(e);return}if(e._f===ge.RFC_2822){qy(e);return}e._a=[],Ze(e).empty=!0;var t=""+e._i,n,i,o,s,c,f=t.length,d=0,p,_;for(o=Dy(e._f,e._locale).match(Xh)||[],_=o.length,n=0;n<_;n++)s=o[n],i=(t.match(iP(s,e))||[])[0],i&&(c=t.substr(0,t.indexOf(i)),c.length>0&&Ze(e).unusedInput.push(c),t=t.slice(t.indexOf(i)+i.length),d+=i.length),ns[s]?(i?Ze(e).empty=!1:Ze(e).unusedTokens.push(s),aP(s,i,e)):e._strict&&!i&&Ze(e).unusedTokens.push(s);Ze(e).charsLeftOver=f-d,t.length>0&&Ze(e).unusedInput.push(t),e._a[jt]<=12&&Ze(e).bigHour===!0&&e._a[jt]>0&&(Ze(e).bigHour=void 0),Ze(e).parsedDateParts=e._a.slice(0),Ze(e).meridiem=e._meridiem,e._a[jt]=gD(e._locale,e._a[jt],e._meridiem),p=Ze(e).era,p!==null&&(e._a[fn]=e._locale.erasConvertYear(p,e._a[fn])),fp(e),cp(e)}function gD(e,t,n){var i;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(i=e.isPM(n),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function yD(e){var t,n,i,o,s,c,f=!1,d=e._f.length;if(d===0){Ze(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<d;o++)s=0,c=!1,t=Gh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],dp(t),Wh(t)&&(c=!0),s+=Ze(t).charsLeftOver,s+=Ze(t).unusedTokens.length*10,Ze(t).score=s,f?s<i&&(i=s,n=t):(i==null||s<i||c)&&(i=s,n=t,c&&(f=!0));qi(e,n||t)}function SD(e){if(!e._d){var t=Qh(e._i),n=t.day===void 0?t.date:t.day;e._a=by([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),fp(e)}}function wD(e){var t=new Ol(cp(Ky(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ky(e){var t=e._i,n=e._f;return e._locale=e._locale||fi(e._l),t===null||n===void 0&&t===""?Ru({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),fr(t)?new Ol(cp(t)):(xl(t)?e._d=t:ur(n)?yD(e):n?dp(e):ED(e),Wh(e)||(e._d=null),e))}function ED(e){var t=e._i;Pn(t)?e._d=new Date(ge.now()):xl(t)?e._d=new Date(t.valueOf()):typeof t=="string"?_D(e):ur(t)?(e._a=by(t.slice(0),function(n){return parseInt(n,10)}),fp(e)):Ao(t)?SD(e):ai(t)?e._d=new Date(t):ge.createFromInputFallback(e)}function Xy(e,t,n,i,o){var s={};return(t===!0||t===!1)&&(i=t,t=void 0),(n===!0||n===!1)&&(i=n,n=void 0),(Ao(e)&&zh(e)||ur(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=i,wD(s)}function kt(e,t,n,i){return Xy(e,t,n,i,!1)}var TD=Zn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ru()}),bD=Zn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ru()});function Jy(e,t){var n,i;if(t.length===1&&ur(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](n))&&(n=t[i]);return n}function ND(){var e=[].slice.call(arguments,0);return Jy("isBefore",e)}function kD(){var e=[].slice.call(arguments,0);return Jy("isAfter",e)}var CD=function(){return Date.now?Date.now():+new Date},Yl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function PD(e){var t,n=!1,i,o=Yl.length;for(t in e)if(ct(e,t)&&!(Mt.call(Yl,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<o;++i)if(e[Yl[i]]){if(n)return!1;parseFloat(e[Yl[i]])!==et(e[Yl[i]])&&(n=!0)}return!0}function DD(){return this._isValid}function xD(){return hr(NaN)}function Zu(e){var t=Qh(e),n=t.year||0,i=t.quarter||0,o=t.month||0,s=t.week||t.isoWeek||0,c=t.day||0,f=t.hour||0,d=t.minute||0,p=t.second||0,_=t.millisecond||0;this._isValid=PD(t),this._milliseconds=+_+p*1e3+d*6e4+f*1e3*60*60,this._days=+c+s*7,this._months=+o+i*3+n*12,this._data={},this._locale=fi(),this._bubble()}function Gu(e){return e instanceof Zu}function hp(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function OD(e,t,n){var i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0,c;for(c=0;c<i;c++)et(e[c])!==et(t[c])&&s++;return s+o}function Qy(e,t){Ie(e,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+xr(~~(n/60),2)+t+xr(~~n%60,2)})}Qy("Z",":"),Qy("ZZ",""),Ne("Z",Yu),Ne("ZZ",Yu),_t(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=pp(Yu,e)});var ID=/([\+\-]|\d\d)/gi;function pp(e,t){var n=(t||"").match(e),i,o,s;return n===null?null:(i=n[n.length-1]||[],o=(i+"").match(ID)||["-",0,0],s=+(o[1]*60)+et(o[2]),s===0?0:o[0]==="+"?s:-s)}function _p(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(fr(e)||xl(e)?e.valueOf():kt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),ge.updateOffset(n,!1),n):kt(e).local()}function mp(e){return-Math.round(e._d.getTimezoneOffset())}ge.updateOffset=function(){};function RD(e,t,n){var i=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=pp(Yu,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=mp(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?r0(this,hr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ge.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:mp(this)}function LD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function MD(e){return this.utcOffset(0,e)}function AD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mp(this),"m")),this}function BD(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=pp(nP,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function VD(e){return this.isValid()?(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function FD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function YD(){if(!Pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Gh(e,this),e=Ky(e),e._a?(t=e._isUTC?Pr(e._a):kt(e._a),this._isDSTShifted=this.isValid()&&OD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $D(){return this.isValid()?!this._isUTC:!1}function UD(){return this.isValid()?this._isUTC:!1}function e0(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zD=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HD=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hr(e,t){var n=e,i=null,o,s,c;return Gu(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ai(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(i=zD.exec(e))?(o=i[1]==="-"?-1:1,n={y:0,d:et(i[Or])*o,h:et(i[jt])*o,m:et(i[dr])*o,s:et(i[ci])*o,ms:et(hp(i[Bo]*1e3))*o}):(i=HD.exec(e))?(o=i[1]==="-"?-1:1,n={y:Vo(i[2],o),M:Vo(i[3],o),w:Vo(i[4],o),d:Vo(i[5],o),h:Vo(i[6],o),m:Vo(i[7],o),s:Vo(i[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(c=WD(kt(n.from),kt(n.to)),n={},n.ms=c.milliseconds,n.M=c.months),s=new Zu(n),Gu(e)&&ct(e,"_locale")&&(s._locale=e._locale),Gu(e)&&ct(e,"_isValid")&&(s._isValid=e._isValid),s}hr.fn=Zu.prototype,hr.invalid=xD;function Vo(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function t0(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function WD(e,t){var n;return e.isValid()&&t.isValid()?(t=_p(t,e),e.isBefore(t)?n=t0(e,t):(n=t0(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function n0(e,t){return function(n,i){var o,s;return i!==null&&!isNaN(+i)&&(Py(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=i,i=s),o=hr(n,i),r0(this,o,e),this}}function r0(e,t,n,i){var o=t._milliseconds,s=hp(t._days),c=hp(t._months);e.isValid()&&(i=i??!0,c&&Fy(e,Ml(e,"Month")+c*n),s&&Ay(e,"Date",Ml(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&ge.updateOffset(e,s||c))}var ZD=n0(1,"add"),GD=n0(-1,"subtract");function i0(e){return typeof e=="string"||e instanceof String}function jD(e){return fr(e)||xl(e)||i0(e)||ai(e)||KD(e)||qD(e)||e===null||e===void 0}function qD(e){var t=Ao(e)&&!zh(e),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,s,c=i.length;for(o=0;o<c;o+=1)s=i[o],n=n||ct(e,s);return t&&n}function KD(e){var t=ur(e),n=!1;return t&&(n=e.filter(function(i){return!ai(i)&&i0(e)}).length===0),t&&n}function XD(e){var t=Ao(e)&&!zh(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,s;for(o=0;o<i.length;o+=1)s=i[o],n=n||ct(e,s);return t&&n}function JD(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function QD(e,t){arguments.length===1&&(arguments[0]?jD(arguments[0])?(e=arguments[0],t=void 0):XD(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||kt(),i=_p(n,this).startOf("day"),o=ge.calendarFormat(this,i)||"sameElse",s=t&&(Dr(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,kt(n)))}function ex(){return new Ol(this)}function tx(e,t){var n=fr(e)?e:kt(e);return this.isValid()&&n.isValid()?(t=Gn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function nx(e,t){var n=fr(e)?e:kt(e);return this.isValid()&&n.isValid()?(t=Gn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function rx(e,t,n,i){var o=fr(e)?e:kt(e),s=fr(t)?t:kt(t);return this.isValid()&&o.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(i[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function ix(e,t){var n=fr(e)?e:kt(e),i;return this.isValid()&&n.isValid()?(t=Gn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function ox(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ax(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function sx(e,t,n){var i,o,s;if(!this.isValid())return NaN;if(i=_p(e,this),!i.isValid())return NaN;switch(o=(i.utcOffset()-this.utcOffset())*6e4,t=Gn(t),t){case"year":s=ju(this,i)/12;break;case"month":s=ju(this,i);break;case"quarter":s=ju(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-o)/864e5;break;case"week":s=(this-i-o)/6048e5;break;default:s=this-i}return n?s:jn(s)}function ju(e,t){if(e.date()<t.date())return-ju(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(n,"months"),o,s;return t-i<0?(o=e.clone().add(n-1,"months"),s=(t-i)/(i-o)):(o=e.clone().add(n+1,"months"),s=(t-i)/(o-i)),-(n+s)||0}ge.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ge.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function lx(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cx(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Mu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mu(n,"Z")):Mu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ux(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,i,o,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+i+o+s)}function fx(e){e||(e=this.isUtc()?ge.defaultFormatUtc:ge.defaultFormat);var t=Mu(this,e);return this.localeData().postformat(t)}function dx(e,t){return this.isValid()&&(fr(e)&&e.isValid()||kt(e).isValid())?hr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hx(e){return this.from(kt(),e)}function px(e,t){return this.isValid()&&(fr(e)&&e.isValid()||kt(e).isValid())?hr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _x(e){return this.to(kt(),e)}function o0(e){var t;return e===void 0?this._locale._abbr:(t=fi(e),t!=null&&(this._locale=t),this)}var a0=Zn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function s0(){return this._locale}var qu=1e3,ss=60*qu,Ku=60*ss,l0=(365*400+97)*24*Ku;function ls(e,t){return(e%t+t)%t}function c0(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-l0:new Date(e,t,n).valueOf()}function u0(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-l0:Date.UTC(e,t,n)}function mx(e){var t,n;if(e=Gn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?u0:c0,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ls(t+(this._isUTC?0:this.utcOffset()*ss),Ku);break;case"minute":t=this._d.valueOf(),t-=ls(t,ss);break;case"second":t=this._d.valueOf(),t-=ls(t,qu);break}return this._d.setTime(t),ge.updateOffset(this,!0),this}function vx(e){var t,n;if(e=Gn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?u0:c0,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ku-ls(t+(this._isUTC?0:this.utcOffset()*ss),Ku)-1;break;case"minute":t=this._d.valueOf(),t+=ss-ls(t,ss)-1;break;case"second":t=this._d.valueOf(),t+=qu-ls(t,qu)-1;break}return this._d.setTime(t),ge.updateOffset(this,!0),this}function gx(){return this._d.valueOf()-(this._offset||0)*6e4}function yx(){return Math.floor(this.valueOf()/1e3)}function Sx(){return new Date(this.valueOf())}function wx(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ex(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tx(){return this.isValid()?this.toISOString():null}function bx(){return Wh(this)}function Nx(){return qi({},Ze(this))}function kx(){return Ze(this).overflow}function Cx(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ie("N",0,0,"eraAbbr"),Ie("NN",0,0,"eraAbbr"),Ie("NNN",0,0,"eraAbbr"),Ie("NNNN",0,0,"eraName"),Ie("NNNNN",0,0,"eraNarrow"),Ie("y",["y",1],"yo","eraYear"),Ie("y",["yy",2],0,"eraYear"),Ie("y",["yyy",3],0,"eraYear"),Ie("y",["yyyy",4],0,"eraYear"),Ne("N",vp),Ne("NN",vp),Ne("NNN",vp),Ne("NNNN",Vx),Ne("NNNNN",Fx),_t(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var o=n._locale.erasParse(e,i,n._strict);o?Ze(n).era=o:Ze(n).invalidEra=e}),Ne("y",rs),Ne("yy",rs),Ne("yyy",rs),Ne("yyyy",rs),Ne("yo",Yx),_t(["y","yy","yyy","yyyy"],fn),_t(["yo"],function(e,t,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[fn]=n._locale.eraYearOrdinalParse(e,o):t[fn]=parseInt(e,10)});function Px(e,t){var n,i,o,s=this._eras||fi("en")._eras;for(n=0,i=s.length;n<i;++n){switch(typeof s[n].since){case"string":o=ge(s[n].since).startOf("day"),s[n].since=o.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=ge(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf();break}}return s}function Dx(e,t,n){var i,o,s=this.eras(),c,f,d;for(e=e.toUpperCase(),i=0,o=s.length;i<o;++i)if(c=s[i].name.toUpperCase(),f=s[i].abbr.toUpperCase(),d=s[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(f===e)return s[i];break;case"NNNN":if(c===e)return s[i];break;case"NNNNN":if(d===e)return s[i];break}else if([c,f,d].indexOf(e)>=0)return s[i]}function xx(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ge(e.since).year():ge(e.since).year()+(t-e.offset)*n}function Ox(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].name;return""}function Ix(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].narrow;return""}function Rx(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until||i[e].until<=n&&n<=i[e].since)return i[e].abbr;return""}function Lx(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-ge(o[e].since).year())*n+o[e].offset;return this.year()}function Mx(e){return ct(this,"_erasNameRegex")||gp.call(this),e?this._erasNameRegex:this._erasRegex}function Ax(e){return ct(this,"_erasAbbrRegex")||gp.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bx(e){return ct(this,"_erasNarrowRegex")||gp.call(this),e?this._erasNarrowRegex:this._erasRegex}function vp(e,t){return t.erasAbbrRegex(e)}function Vx(e,t){return t.erasNameRegex(e)}function Fx(e,t){return t.erasNarrowRegex(e)}function Yx(e,t){return t._eraYearOrdinalRegex||rs}function gp(){var e=[],t=[],n=[],i=[],o,s,c,f,d,p=this.eras();for(o=0,s=p.length;o<s;++o)c=si(p[o].name),f=si(p[o].abbr),d=si(p[o].narrow),t.push(c),e.push(f),n.push(d),i.push(c),i.push(f),i.push(d);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Ie(0,["gg",2],0,function(){return this.weekYear()%100}),Ie(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xu(e,t){Ie(0,[e,e.length],0,t)}Xu("gggg","weekYear"),Xu("ggggg","weekYear"),Xu("GGGG","isoWeekYear"),Xu("GGGGG","isoWeekYear"),Ne("G",Fu),Ne("g",Fu),Ne("GG",Nt,An),Ne("gg",Nt,An),Ne("GGGG",tp,ep),Ne("gggg",tp,ep),Ne("GGGGG",Vu,Au),Ne("ggggg",Vu,Au),Rl(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=et(e)}),Rl(["gg","GG"],function(e,t,n,i){t[i]=ge.parseTwoDigitYear(e)});function $x(e){return f0.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ux(e){return f0.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zx(){return ui(this.year(),1,4)}function Hx(){return ui(this.isoWeekYear(),1,4)}function Wx(){var e=this.localeData()._week;return ui(this.year(),e.dow,e.doy)}function Zx(){var e=this.localeData()._week;return ui(this.weekYear(),e.dow,e.doy)}function f0(e,t,n,i,o){var s;return e==null?Bl(this,i,o).year:(s=ui(e,i,o),t>s&&(t=s),Gx.call(this,e,t,n,i,o))}function Gx(e,t,n,i,o){var s=Uy(e,t,n,i,o),c=Al(s.year,0,s.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}Ie("Q",0,"Qo","quarter"),Ne("Q",Oy),_t("Q",function(e,t){t[li]=(et(e)-1)*3});function jx(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Ie("D",["DD",2],"Do","date"),Ne("D",Nt,is),Ne("DD",Nt,An),Ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_t(["D","DD"],Or),_t("Do",function(e,t){t[Or]=et(e.match(Nt)[0])});var d0=os("Date",!0);Ie("DDD",["DDDD",3],"DDDo","dayOfYear"),Ne("DDD",Bu),Ne("DDDD",Iy),_t(["DDD","DDDD"],function(e,t,n){n._dayOfYear=et(e)});function qx(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Ie("m",["mm",2],0,"minute"),Ne("m",Nt,np),Ne("mm",Nt,An),_t(["m","mm"],dr);var Kx=os("Minutes",!1);Ie("s",["ss",2],0,"second"),Ne("s",Nt,np),Ne("ss",Nt,An),_t(["s","ss"],ci);var Xx=os("Seconds",!1);Ie("S",0,0,function(){return~~(this.millisecond()/100)}),Ie(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ie(0,["SSS",3],0,"millisecond"),Ie(0,["SSSS",4],0,function(){return this.millisecond()*10}),Ie(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Ie(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Ie(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Ie(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Ie(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ne("S",Bu,Oy),Ne("SS",Bu,An),Ne("SSS",Bu,Iy);var Xi,h0;for(Xi="SSSS";Xi.length<=9;Xi+="S")Ne(Xi,rs);function Jx(e,t){t[Bo]=et(("0."+e)*1e3)}for(Xi="S";Xi.length<=9;Xi+="S")_t(Xi,Jx);h0=os("Milliseconds",!1),Ie("z",0,0,"zoneAbbr"),Ie("zz",0,0,"zoneName");function Qx(){return this._isUTC?"UTC":""}function e1(){return this._isUTC?"Coordinated Universal Time":""}var ue=Ol.prototype;ue.add=ZD,ue.calendar=QD,ue.clone=ex,ue.diff=sx,ue.endOf=vx,ue.format=fx,ue.from=dx,ue.fromNow=hx,ue.to=px,ue.toNow=_x,ue.get=uP,ue.invalidAt=kx,ue.isAfter=tx,ue.isBefore=nx,ue.isBetween=rx,ue.isSame=ix,ue.isSameOrAfter=ox,ue.isSameOrBefore=ax,ue.isValid=bx,ue.lang=a0,ue.locale=o0,ue.localeData=s0,ue.max=bD,ue.min=TD,ue.parsingFlags=Nx,ue.set=fP,ue.startOf=mx,ue.subtract=GD,ue.toArray=wx,ue.toObject=Ex,ue.toDate=Sx,ue.toISOString=cx,ue.inspect=ux,typeof Symbol<"u"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ue.toJSON=Tx,ue.toString=lx,ue.unix=yx,ue.valueOf=gx,ue.creationData=Cx,ue.eraName=Ox,ue.eraNarrow=Ix,ue.eraAbbr=Rx,ue.eraYear=Lx,ue.year=My,ue.isLeapYear=cP,ue.weekYear=$x,ue.isoWeekYear=Ux,ue.quarter=ue.quarters=jx,ue.month=Yy,ue.daysInMonth=SP,ue.week=ue.weeks=PP,ue.isoWeek=ue.isoWeeks=DP,ue.weeksInYear=Wx,ue.weeksInWeekYear=Zx,ue.isoWeeksInYear=zx,ue.isoWeeksInISOWeekYear=Hx,ue.date=d0,ue.day=ue.days=UP,ue.weekday=zP,ue.isoWeekday=HP,ue.dayOfYear=qx,ue.hour=ue.hours=XP,ue.minute=ue.minutes=Kx,ue.second=ue.seconds=Xx,ue.millisecond=ue.milliseconds=h0,ue.utcOffset=RD,ue.utc=MD,ue.local=AD,ue.parseZone=BD,ue.hasAlignedHourOffset=VD,ue.isDST=FD,ue.isLocal=$D,ue.isUtcOffset=UD,ue.isUtc=e0,ue.isUTC=e0,ue.zoneAbbr=Qx,ue.zoneName=e1,ue.dates=Zn("dates accessor is deprecated. Use date instead.",d0),ue.months=Zn("months accessor is deprecated. Use month instead",Yy),ue.years=Zn("years accessor is deprecated. Use year instead",My),ue.zone=Zn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LD),ue.isDSTShifted=Zn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",YD);function t1(e){return kt(e*1e3)}function n1(){return kt.apply(null,arguments).parseZone()}function p0(e){return e}var ut=qh.prototype;ut.calendar=$C,ut.longDateFormat=WC,ut.invalidDate=GC,ut.ordinal=KC,ut.preparse=p0,ut.postformat=p0,ut.relativeTime=JC,ut.pastFuture=QC,ut.set=FC,ut.eras=Px,ut.erasParse=Dx,ut.erasConvertYear=xx,ut.erasAbbrRegex=Ax,ut.erasNameRegex=Mx,ut.erasNarrowRegex=Bx,ut.months=mP,ut.monthsShort=vP,ut.monthsParse=yP,ut.monthsRegex=EP,ut.monthsShortRegex=wP,ut.week=bP,ut.firstDayOfYear=CP,ut.firstDayOfWeek=kP,ut.weekdays=BP,ut.weekdaysMin=FP,ut.weekdaysShort=VP,ut.weekdaysParse=$P,ut.weekdaysRegex=WP,ut.weekdaysShortRegex=ZP,ut.weekdaysMinRegex=GP,ut.isPM=qP,ut.meridiem=JP;function Ju(e,t,n,i){var o=fi(),s=Pr().set(i,t);return o[n](s,e)}function _0(e,t,n){if(ai(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ju(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Ju(e,i,n,"month");return o}function yp(e,t,n,i){typeof e=="boolean"?(ai(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ai(t)&&(n=t,t=void 0),t=t||"");var o=fi(),s=e?o._week.dow:0,c,f=[];if(n!=null)return Ju(t,(n+s)%7,i,"day");for(c=0;c<7;c++)f[c]=Ju(t,(c+s)%7,i,"day");return f}function r1(e,t){return _0(e,t,"months")}function i1(e,t){return _0(e,t,"monthsShort")}function o1(e,t,n){return yp(e,t,n,"weekdays")}function a1(e,t,n){return yp(e,t,n,"weekdaysShort")}function s1(e,t,n){return yp(e,t,n,"weekdaysMin")}Ki("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=et(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ge.lang=Zn("moment.lang is deprecated. Use moment.locale instead.",Ki),ge.langData=Zn("moment.langData is deprecated. Use moment.localeData instead.",fi);var di=Math.abs;function l1(){var e=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),e.milliseconds=di(e.milliseconds),e.seconds=di(e.seconds),e.minutes=di(e.minutes),e.hours=di(e.hours),e.months=di(e.months),e.years=di(e.years),this}function m0(e,t,n,i){var o=hr(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function c1(e,t){return m0(this,e,t,1)}function u1(e,t){return m0(this,e,t,-1)}function v0(e){return e<0?Math.floor(e):Math.ceil(e)}function f1(){var e=this._milliseconds,t=this._days,n=this._months,i=this._data,o,s,c,f,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=v0(Sp(n)+t)*864e5,t=0,n=0),i.milliseconds=e%1e3,o=jn(e/1e3),i.seconds=o%60,s=jn(o/60),i.minutes=s%60,c=jn(s/60),i.hours=c%24,t+=jn(c/24),d=jn(g0(t)),n+=d,t-=v0(Sp(d)),f=jn(n/12),n%=12,i.days=t,i.months=n,i.years=f,this}function g0(e){return e*4800/146097}function Sp(e){return e*146097/4800}function d1(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=Gn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,n=this._months+g0(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sp(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function hi(e){return function(){return this.as(e)}}var y0=hi("ms"),h1=hi("s"),p1=hi("m"),_1=hi("h"),m1=hi("d"),v1=hi("w"),g1=hi("M"),y1=hi("Q"),S1=hi("y"),w1=y0;function E1(){return hr(this)}function T1(e){return e=Gn(e),this.isValid()?this[e+"s"]():NaN}function Fo(e){return function(){return this.isValid()?this._data[e]:NaN}}var b1=Fo("milliseconds"),N1=Fo("seconds"),k1=Fo("minutes"),C1=Fo("hours"),P1=Fo("days"),D1=Fo("months"),x1=Fo("years");function O1(){return jn(this.days()/7)}var pi=Math.round,cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function I1(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function R1(e,t,n,i){var o=hr(e).abs(),s=pi(o.as("s")),c=pi(o.as("m")),f=pi(o.as("h")),d=pi(o.as("d")),p=pi(o.as("M")),_=pi(o.as("w")),v=pi(o.as("y")),y=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||c<=1&&["m"]||c<n.m&&["mm",c]||f<=1&&["h"]||f<n.h&&["hh",f]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||_<=1&&["w"]||_<n.w&&["ww",_]),y=y||p<=1&&["M"]||p<n.M&&["MM",p]||v<=1&&["y"]||["yy",v],y[2]=t,y[3]=+e>0,y[4]=i,I1.apply(null,y)}function L1(e){return e===void 0?pi:typeof e=="function"?(pi=e,!0):!1}function M1(e,t){return cs[e]===void 0?!1:t===void 0?cs[e]:(cs[e]=t,e==="s"&&(cs.ss=t-1),!0)}function A1(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,i=cs,o,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(i=Object.assign({},cs,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),o=this.localeData(),s=R1(this,!n,i,o),n&&(s=o.pastFuture(+this,s)),o.postformat(s)}var wp=Math.abs;function us(e){return(e>0)-(e<0)||+e}function Qu(){if(!this.isValid())return this.localeData().invalidDate();var e=wp(this._milliseconds)/1e3,t=wp(this._days),n=wp(this._months),i,o,s,c,f=this.asSeconds(),d,p,_,v;return f?(i=jn(e/60),o=jn(i/60),e%=60,i%=60,s=jn(n/12),n%=12,c=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=f<0?"-":"",p=us(this._months)!==us(f)?"-":"",_=us(this._days)!==us(f)?"-":"",v=us(this._milliseconds)!==us(f)?"-":"",d+"P"+(s?p+s+"Y":"")+(n?p+n+"M":"")+(t?_+t+"D":"")+(o||i||e?"T":"")+(o?v+o+"H":"")+(i?v+i+"M":"")+(e?v+c+"S":"")):"P0D"}var it=Zu.prototype;it.isValid=DD,it.abs=l1,it.add=c1,it.subtract=u1,it.as=d1,it.asMilliseconds=y0,it.asSeconds=h1,it.asMinutes=p1,it.asHours=_1,it.asDays=m1,it.asWeeks=v1,it.asMonths=g1,it.asQuarters=y1,it.asYears=S1,it.valueOf=w1,it._bubble=f1,it.clone=E1,it.get=T1,it.milliseconds=b1,it.seconds=N1,it.minutes=k1,it.hours=C1,it.days=P1,it.weeks=O1,it.months=D1,it.years=x1,it.humanize=A1,it.toISOString=Qu,it.toString=Qu,it.toJSON=Qu,it.locale=o0,it.localeData=s0,it.toIsoString=Zn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qu),it.lang=a0,Ie("X",0,0,"unix"),Ie("x",0,0,"valueOf"),Ne("x",Fu),Ne("X",rP),_t("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),_t("x",function(e,t,n){n._d=new Date(et(e))});//! moment.js
51
+ ge.version="2.30.1",BC(kt),ge.fn=ue,ge.min=ND,ge.max=kD,ge.now=CD,ge.utc=Pr,ge.unix=t1,ge.months=r1,ge.isDate=xl,ge.locale=Ki,ge.invalid=Ru,ge.duration=hr,ge.isMoment=fr,ge.weekdays=o1,ge.parseZone=n1,ge.localeData=fi,ge.isDuration=Gu,ge.monthsShort=i1,ge.weekdaysMin=s1,ge.defineLocale=lp,ge.updateLocale=nD,ge.locales=rD,ge.weekdaysShort=a1,ge.normalizeUnits=Gn,ge.relativeTimeRounding=L1,ge.relativeTimeThreshold=M1,ge.calendarFormat=JD,ge.prototype=ue,ge.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const B1=["title"],V1=l.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=l.computed(()=>t.fieldValuePair.field),i=l.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=ge(o).format("dddd, D MMMM YYYY")),o});return(o,s)=>{const c=l.resolveComponent("cape-link-value");return l.openBlock(),l.createElementBlock("span",{class:"cape-single-value",title:n.value.description},[o.link?(l.openBlock(),l.createBlock(c,{key:0,"field-value-pair":o.fieldValuePair},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(i.value),1)]),_:1},8,["field-value-pair"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(i.value),1)],64))],8,B1)}}}),F1={class:"cape-filter-label"},Y1=["for"],$1={class:"cape-filter-mode"},U1={class:"cape-filter-term"},z1=["id","placeholder"],H1=["id","placeholder"],W1=l.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",F1,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,Y1)]),l.createElementVNode("div",$1,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[3]||(c[3]=[l.createElementVNode("option",{value:"contains"},"contains",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",U1,[i.value.mode==="contains"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.term=f),placeholder:o.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,z1)),[[l.vModelText,i.value.term]]):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.term=f),placeholder:o.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,H1)),[[l.vModelText,i.value.term]]):l.createCommentVNode("",!0)])],64))}}),Z1={class:"cape-filter-label"},G1=["for"],j1={class:"cape-filter-wide-term"},q1=["id","placeholder"],K1=l.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId));return(o,s)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Z1,[l.createElementVNode("label",{for:"cape-filter-input-"+i.value.id},"Search",8,G1)]),l.createElementVNode("div",j1,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-input-"+i.value.id,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value.term=c),placeholder:i.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,q1),[[l.vModelText,i.value.term]])])],64))}}),X1={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},J1=["for"],Q1={class:"cape-sort-order-controls"},eO=["id"],tO=["value"],nO=["id"],rO=["value"],iO=["value"],oO=l.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=nn(),n=mn(),i=e,o=l.computed(()=>`cape-sort-order-${i.idDistinguisher}`),s=l.computed(()=>`cape-sort-order-direction-${i.idDistinguisher}`);return(c,f)=>l.unref(n).hasSortFields&&l.unref(n).visibleCount>0?(l.openBlock(),l.createElementBlock("div",X1,[l.createElementVNode("label",{for:o.value},"Order results by: ",8,J1),l.createElementVNode("div",Q1,[l.withDirectives(l.createElementVNode("select",{id:o.value,class:"cape-sort-order-field","onUpdate:modelValue":f[0]||(f[0]=d=>l.unref(n).sortFieldId=d)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).sortableFields,d=>(l.openBlock(),l.createElementBlock("option",{key:d.id,value:d.id},l.toDisplayString(d.label),9,tO))),128))],8,eO),[[l.vModelSelect,l.unref(n).sortFieldId]]),l.withDirectives(l.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":f[1]||(f[1]=d=>l.unref(n).sortDirection=d),"aria-label":"Sort direction",id:s.value},[l.createElementVNode("option",{value:l.unref(Gi).Ascending},"Ascending",8,rO),l.createElementVNode("option",{value:l.unref(Gi).Descending},"Descending",8,iO)],8,nO),[[l.vModelSelect,l.unref(n).sortDirection]])])])):l.createCommentVNode("",!0)}}),aO={class:"cape-filter-label"},sO=["for"],lO={class:"cape-filter-mode"},cO={class:"cape-filter-term"},uO=l.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>{const f=l.resolveComponent("cape-filter-field-enum-one-of-checkbox"),d=l.resolveComponent("cape-filter-field-enum-one-of-multiselect"),p=l.resolveComponent("cape-filter-field-enum-is-select"),_=l.resolveComponent("cape-filter-field-enum-is-radio");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",aO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id,"data-test":"filter-label"},l.toDisplayString(l.unref(i).field.label),9,sO)]),l.createElementVNode("div",lO,[l.unref(i).field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=v=>l.unref(i).mode=v),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[1]||(c[1]=[l.createElementVNode("option",{value:"oneOf"},"is one of",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[l.vModelSelect,l.unref(i).mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",cO,[l.unref(i).mode==="oneOf"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.unref(o).filterInputStyleOnOneOf==="checkbox"?(l.openBlock(),l.createBlock(f,{key:0,"filter-id":s.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(d,{key:1,"filter-id":s.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0),l.unref(i).mode==="is"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.unref(o).filterInputStyleOnIs==="select"?(l.openBlock(),l.createBlock(p,{key:0,"filter-id":s.filterId},null,8,["filter-id"])):(l.openBlock(),l.createBlock(_,{key:1,"filter-id":s.filterId},null,8,["filter-id"]))],64)):l.createCommentVNode("",!0)])],64)}}}),fO={class:"cape-filter-label"},dO=["for"],hO={class:"cape-filter-mode"},pO={class:"cape-filter-term"},_O=["id","placeholder","min","max","step"],mO=["id","placeholder","min","max","step"],vO=["id","placeholder","min","max","step"],gO=l.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",fO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,dO)]),l.createElementVNode("div",hO,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[4]||(c[4]=[l.createElementVNode("option",{value:"between"},"is between",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",pO,[i.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.lowerBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,_O),[[l.vModelText,i.value.lowerBoundTerm]]),c[5]||(c[5]=l.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1)),l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.upperBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,mO),[[l.vModelText,i.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,"onUpdate:modelValue":c[3]||(c[3]=f=>i.value.isTerm=f),placeholder:o.value.placeholderIs,type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,vO)),[[l.vModelText,i.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),yO={class:"cape-filter-label"},SO=["for"],wO={class:"cape-filter-mode"},EO={class:"cape-filter-term"},TO=["id","placeholder"],bO=["id","placeholder"],NO=["id","placeholder"],kO=l.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>n.byId(t.filterId)),o=l.computed(()=>i.value.field);return(s,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",yO,[l.createElementVNode("label",{for:"cape-filter-field-input-"+i.value.id,"data-test":"filter-label"},l.toDisplayString(i.value.field.label),9,SO)]),l.createElementVNode("div",wO,[i.value.field.changeFilterMode?l.withDirectives((l.openBlock(),l.createElementBlock("select",{key:0,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value.mode=f),"data-test":"filter-mode-select","aria-label":"Filter mode"},c[4]||(c[4]=[l.createElementVNode("option",{value:"between"},"is between",-1),l.createElementVNode("option",{value:"is"},"is",-1),l.createElementVNode("option",{value:"set"},"is present",-1),l.createElementVNode("option",{value:"notSet"},"is not present",-1)]),512)),[[l.vModelSelect,i.value.mode]]):l.createCommentVNode("",!0)]),l.createElementVNode("div",EO,[i.value.mode==="between"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+i.value.id,"onUpdate:modelValue":c[1]||(c[1]=f=>i.value.lowerBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,TO),[[l.vModelText,i.value.lowerBoundTerm]]),c[5]||(c[5]=l.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1)),l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+i.value.id,"onUpdate:modelValue":c[2]||(c[2]=f=>i.value.upperBoundTerm=f),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,bO),[[l.vModelText,i.value.upperBoundTerm]])],64)):l.createCommentVNode("",!0),i.value.mode==="is"?l.withDirectives((l.openBlock(),l.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+i.value.id,type:"date","onUpdate:modelValue":c[3]||(c[3]=f=>i.value.isTerm=f),placeholder:o.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,NO)),[[l.vModelText,i.value.isTerm]]):l.createCommentVNode("",!0)])],64))}}),CO={class:"cape-results-controls flex justify-between"},PO={class:"flex justify-start"},DO={key:0,class:"cape-show-all-results-toggle switch switch-sm"},xO=["for"],OO=l.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=mn(),i=l.computed(()=>!n.allResultsAreVisible||n.showAllResults),o=l.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(s,c)=>{const f=l.resolveComponent("cape-results-info"),d=l.resolveComponent("cape-show-all-results-toggle"),p=l.resolveComponent("cape-sort-order");return l.openBlock(),l.createElementBlock("div",CO,[l.createElementVNode("div",PO,[l.createVNode(f),i.value?(l.openBlock(),l.createElementBlock("div",DO,[l.createVNode(d,{class:"cape-results-toggle",id:o.value},null,8,["id"]),l.createElementVNode("label",{for:o.value},"Show All Results",8,xO)])):l.createCommentVNode("",!0)]),l.createVNode(p,{"id-distinguisher":s.idDistinguisher},null,8,["id-distinguisher"])])}}}),IO=ji(l.defineComponent({__name:"CapeGoTopResults",setup(e){function t(){const n=document.querySelector(".cape-results-controls-top");n&&n.scrollIntoView({behavior:"smooth"})}return(n,i)=>(l.openBlock(),l.createElementBlock("button",{class:"jump-to-results",onClick:t}," Jump to top results "))}}),[["__scopeId","data-v-bae5fe18"]]),RO=["href"],LO=l.defineComponent({__name:"CapeExternalLinkValue",props:{url:String},setup(e){const t=e,{url:n}=t,i=l.computed(()=>n?n.length<=80?n:n.slice(0,40)+"‥"+n.slice(-39):"");return(o,s)=>l.unref(n)?(l.openBlock(),l.createElementBlock("a",{key:0,href:l.unref(n),target:"_blank",rel:"noopener noreferrer"},l.toDisplayString(i.value),9,RO)):l.createCommentVNode("",!0)}});function MO(e,t,n){const i=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,e);else{const o=window.document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function AO(){const e=[[]],t=es(),n=oi();return t.all.forEach(i=>e[0].push(i.label)),n.all.forEach(i=>{e.push(t.all.map(o=>{const s=i[o.id].value??"";return o.isMultiple&&Array.isArray(s)?s.join("; "):`${s}`}))}),e}function BO(e){return e.map(n=>'"'+n.map(o=>{let s="";return o!=null&&(s=o.toString()),s.replace(/"/g,'""').replace(/\r\n/g,`
52
52
  `)}).join('","')+`"
53
- `).join("")}const BI=o.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=YI(),r=$I(n);FI("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(o.openBlock(),o.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),UI={},HI={href:"/site-data.json",class:"cape-button"};function GI(e,t){return o.openBlock(),o.createElementBlock("a",HI,"Download JSON")}const WI=ri(UI,[["render",GI]]),jI={class:"cape-fields-table"},zI={key:0},KI=o.defineComponent({__name:"CapeFieldsTable",setup(e){const t=Za(),n=o.computed(()=>t.all);return(r,i)=>(o.openBlock(),o.createElementBlock("table",jI,[i[0]||(i[0]=o.createElementVNode("thead",null,[o.createElementVNode("tr",null,[o.createElementVNode("th",{scope:"col"},"Field id"),o.createElementVNode("th",{scope:"col"},"Field name"),o.createElementVNode("th",{scope:"col"},"Field type"),o.createElementVNode("th",{scope:"col"},"Description")])],-1)),o.createElementVNode("tbody",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,a=>(o.openBlock(),o.createElementBlock("tr",{key:a.id},[o.createElementVNode("td",null,o.toDisplayString(a.id),1),o.createElementVNode("td",null,o.toDisplayString(a.label),1),o.createElementVNode("td",null,[o.createTextVNode(o.toDisplayString(a.type)+" ",1),a.isMultiple?(o.openBlock(),o.createElementBlock("span",zI," list")):o.createCommentVNode("",!0)]),o.createElementVNode("td",null,o.toDisplayString(a.description),1)]))),128))])]))}});function qI(e){const n=It().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const XI=o.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=o.computed(()=>qI(t.record));return(r,i)=>{const a=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(a,{to:n.value},{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default")]),_:3},8,["to"])}}}),JI={key:0,class:"cape-next-result"},QI={key:1,class:"cape-next-result cape-next-result-null"},ZI=o.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",JI,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",QI,[o.renderSlot(i.$slots,"otherwise")]))}}}),e1={key:0,class:"cape-previous-result"},t1={key:1,class:"cape-previous-result cape-previous-result-null"},n1=o.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Bt(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",e1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",t1,[o.renderSlot(i.$slots,"otherwise")]))}}}),r1={key:0,class:"cape-previous-record"},i1={key:1,class:"cape-previous-record cape-previous-record-null"},a1=o.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",r1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",i1,[o.renderSlot(i.$slots,"otherwise")]))}}}),o1={key:0,class:"cape-next-record"},s1={key:1,class:"cape-next-record cape-next-record-null"},l1=o.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=Sr(),n=e,r=o.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(i,a)=>{const s=o.resolveComponent("cape-record-label"),l=o.resolveComponent("cape-record-link");return r.value!==void 0?(o.openBlock(),o.createElementBlock("div",o1,[o.renderSlot(i.$slots,"before"),o.createVNode(l,{record:r.value,title:e.linkTitle},{default:o.withCtx(()=>[o.renderSlot(i.$slots,"link",{},()=>[o.createVNode(s,{record:r.value},null,8,["record"])])]),_:3},8,["record","title"]),o.renderSlot(i.$slots,"after")])):(o.openBlock(),o.createElementBlock("div",s1,[o.renderSlot(i.$slots,"otherwise")]))}}}),us=class us{static add(t){us.functions.push(t)}static all(){return us.functions}static async execute(t,n){for(const r of us.all().sort((i,a)=>i.priority-a.priority))try{await r.action(t,n)}catch(i){console.error("Error executing action:",i);return}}};Pe(us,"functions",[]);let Ps=us;const fg={High:10,Low:1e3},Ha=class Ha{static async fetchIndexPageTitle(){if(Ha.indexHtmlTitle)return Ha.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),a=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ha.indexHtmlTitle=(a==null?void 0:a.text)||void 0,Ha.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:r,params:i,meta:a}=t;if(r==="record"&&n.recordPageTitleExpression){const c=i==null?void 0:i.id;if(!c)throw new Error("Record ID is required but not specified.");if(ti().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const d=Sr().byId(c);return n.recordPageTitleExpression(d)}if(a!=null&&a.title)return a.title;const s=await this.fetchIndexPageTitle();return s||It().title}};Pe(Ha,"indexHtmlTitle");let xd=Ha;const c1={class:"cape-labelled-value"},u1={key:0,class:"cape-error cape-labelled-value-error"},f1=["title"],d1={key:1,class:"cape-labelled-value-label"},h1=o.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=o.computed(()=>{var r;return(r=t.fieldValue)==null?void 0:r.field});return(r,i)=>(o.openBlock(),o.createElementBlock("div",c1,[!r.fieldValue||!n.value?(o.openBlock(),o.createElementBlock("div",u1," [Error, trying to render label for a non-existent field] ")):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(o.openBlock(),o.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},o.toDisplayString(n.value.label),9,f1)):(o.openBlock(),o.createElementBlock("div",d1,o.toDisplayString(n.value.label),1)),o.renderSlot(r.$slots,"default")],64))]))}}),p1=o.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=_t(),r=o.computed(()=>t.fieldValuePair.value),i=o.computed(()=>t.fieldValuePair.field),a=o.computed(()=>{const s="/",l={};try{n.byId(`field-${i.value.id}`).display==="advanced"&&(l.advanced="true"),l.jump="true",l[`field-${i.value.id}-mode`]="is",l[`field-${i.value.id}-term`]=`${r.value}`}catch{console.error(`Attempt to create link from field ${i.value.id} which has no related filter.`)}return{path:s,query:l}});return(s,l)=>{const c=o.resolveComponent("router-link");return o.openBlock(),o.createBlock(c,{to:a.value},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["to"])}}}),m1=o.defineComponent({__name:"CapePercentageValue",props:{value:String},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r*100+"%"});return(r,i)=>o.toDisplayString(n.value)}}),v1=o.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=o.computed(()=>{if(t.value===void 0)return"";const r=parseFloat(t.value);return isNaN(r)?"":r.toFixed(t.digits)});return(r,i)=>o.toDisplayString(n.value)}}),_1={__name:"CapeShowAllResultsToggle",setup(e){const t=Bt();return(n,r)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>o.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[o.vModelCheckbox,o.unref(t).showAllResults]])}},g1={key:0,class:"cape-results-info"},y1={key:0},S1={key:1},E1={key:1,class:"cape-results-count"},T1=o.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Bt();return(n,r)=>o.unref(t).allResultsAreVisible?(o.openBlock(),o.createElementBlock("div",g1,[o.unref(t).visibleCount==1?(o.openBlock(),o.createElementBlock("div",y1,"Showing 1 matching record.")):(o.openBlock(),o.createElementBlock("div",S1,"Showing all "+o.toDisplayString(o.unref(t).visibleCount)+" matching records.",1))])):(o.openBlock(),o.createElementBlock("div",E1," Showing first "+o.toDisplayString(o.unref(t).visibleCount)+" of "+o.toDisplayString(o.unref(t).totalCount)+" matching records. ",1))}}),N1={class:"cape-results-count"},w1=o.defineComponent({__name:"CapeResultsCount",setup(e){const t=Bt();return(n,r)=>(o.openBlock(),o.createElementBlock("span",N1,o.toDisplayString(o.unref(t).totalCount),1))}}),b1={class:"cape-filter-field-enum-is-radio"},D1={class:"form-check form-check-inline"},k1=["id"],C1=["for"],I1=["id","value"],R1=["for"],O1=o.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",b1,[o.createElementVNode("li",D1,[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),type:"radio",value:""},null,8,k1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"},s[2]||(s[2]=[o.createElementVNode("em",null,"any",-1)]),8,C1)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[1]||(s[1]=c=>o.unref(r).isTerm=c),value:l,type:"radio"},null,8,I1),[[o.vModelRadio,o.unref(r).isTerm]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,R1)]))),128))]))}}),P1=["aria-label"],A1=["value"],M1=o.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>o.withDirectives((o.openBlock(),o.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).isTerm=l),"aria-label":"Select "+o.unref(i).label+" value."},[s[1]||(s[1]=o.createElementVNode("option",{key:"",value:""},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("option",{key:l,value:l},o.toDisplayString(l),9,A1))),128))],8,P1)),[[o.vModelSelect,o.unref(r).isTerm]])}}),x1={class:"cape-filter-field-enum-one-of-checkbox"},V1=["id","value"],L1=["for"],F1=o.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createElementBlock("ul",x1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i).values,l=>(o.openBlock(),o.createElementBlock("li",{key:l},[o.withDirectives(o.createElementVNode("input",{id:"cape-filter-field-input-"+o.unref(r).id+"-"+l,"onUpdate:modelValue":s[0]||(s[0]=c=>o.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,V1),[[o.vModelCheckbox,o.unref(r).oneOfTerms]]),o.createElementVNode("label",{for:"cape-filter-field-input-"+o.unref(r).id+"-"+l},o.toDisplayString(l),9,L1)]))),128))]))}});function Vd(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Y1(e){return(...t)=>!e(...t)}function $1(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function B1(e){return e.filter(t=>!t.$isLabel)}function Ld(e,t){return n=>n.reduce((r,i)=>i[e]&&i[e].length?(r.push({$groupLabel:i[t],$isLabel:!0}),r.concat(i[e])):r,[])}const dg=(...e)=>t=>e.reduce((n,r)=>r(n),t);var U1={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Vd(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?Ld(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Y1(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return dg(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),Ld(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return dg(Ld(this.groupValues,this.groupLabel),B1)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Vd(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Vd(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(i=>i[this.trackBy]):t[this.groupValues],r=this.internalValue.filter(i=>n.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",r)}else{const n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,r){return t?e.filter(i=>$1(r(i,n),t)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):r(i,n).length-r(a,n).length):e},filterGroups(e,t,n,r,i){return a=>a.map(s=>{if(!s[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(s[n],e,t,i);return l.length?{[r]:s[r],[n]:l}:[]})}}},H1={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},hg={name:"vue-multiselect",mixins:[U1,H1],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const G1=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],W1={ref:"tags",class:"multiselect__tags"},j1={class:"multiselect__tags-wrap"},z1=["textContent"],K1=["onKeypress","onMousedown"],q1=["textContent"],X1={class:"multiselect__spinner"},J1=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],Q1=["id","aria-multiselectable"],Z1={key:0},eR={class:"multiselect__option"},tR=["aria-selected","id","role"],nR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],rR=["data-select","data-deselect","onMouseenter","onMousedown"],iR={class:"multiselect__option"},aR={class:"multiselect__option"};function oR(e,t,n,r,i,a){return o.openBlock(),o.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:o.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=s=>e.activate()),onBlur:t[15]||(t[15]=s=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=o.withKeys(s=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[o.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[o.createElementVNode("div",{onMousedown:t[0]||(t[0]=o.withModifiers(s=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o.renderSlot(e.$slots,"clear",{search:e.search}),o.createElementVNode("div",W1,[o.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[o.withDirectives(o.createElementVNode("div",j1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.visibleValues,(s,l)=>o.renderSlot(e.$slots,"tag",{option:s,search:e.search,remove:e.removeElement},()=>[(o.openBlock(),o.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:t[1]||(t[1]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("span",{textContent:o.toDisplayString(e.getOptionLabel(s))},null,8,z1),o.createElementVNode("i",{tabindex:"1",onKeypress:o.withKeys(o.withModifiers(c=>e.removeElement(s),["prevent"]),["enter"]),onMousedown:o.withModifiers(c=>e.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,K1)],32))])),256))],512),[[o.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?o.renderSlot(e.$slots,"limit",{key:0},()=>[o.createElementVNode("strong",{class:"multiselect__strong",textContent:o.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,q1)]):o.createCommentVNode("v-if",!0)]),o.createVNode(o.Transition,{name:"multiselect__loading"},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"loading",{},()=>[o.withDirectives(o.createElementVNode("div",X1,null,512),[[o.vShow,n.loading]])])]),_:3}),e.searchable?(o.openBlock(),o.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:o.normalizeStyle(a.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=s=>e.updateSearch(s.target.value)),onFocus:t[3]||(t[3]=o.withModifiers(s=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=o.withModifiers(s=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=o.withKeys(s=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=o.withKeys(o.withModifiers(s=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=o.withKeys(o.withModifiers(s=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=o.withKeys(o.withModifiers(s=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=o.withKeys(o.withModifiers(s=>e.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,J1)):o.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(o.openBlock(),o.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[o.createTextVNode(o.toDisplayString(e.currentOptionLabel),1)])],32)):o.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(o.openBlock(),o.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=o.withModifiers((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o.renderSlot(e.$slots,"placeholder",{},()=>[o.createTextVNode(o.toDisplayString(e.placeholder),1)])],32)):o.createCommentVNode("v-if",!0)],512),o.createVNode(o.Transition,{name:"multiselect",persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...s)=>e.activate&&e.activate(...s)),tabindex:"-1",onMousedown:t[13]||(t[13]=o.withModifiers(()=>{},["prevent"])),style:o.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[o.createElementVNode("ul",{class:"multiselect__content",style:o.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[o.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(o.openBlock(),o.createElementBlock("li",Z1,[o.createElementVNode("span",eR,[o.renderSlot(e.$slots,"maxElements",{},()=>[o.createTextVNode("Maximum of "+o.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):o.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.filteredOptions,(s,l)=>(o.openBlock(),o.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":e.isSelected(s),id:e.id+"-"+l,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass([e.optionHighlight(l,s),"multiselect__option"]),onClick:o.withModifiers(c=>e.select(s),["stop"]),onMouseenter:o.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":s&&s.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,nR)),s&&(s.$isLabel||s.$isDisabled)?(o.openBlock(),o.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:o.normalizeClass([e.groupHighlight(l,s),"multiselect__option"]),onMouseenter:o.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:o.withModifiers(c=>e.selectGroup(s),["prevent"])},[o.renderSlot(e.$slots,"option",{option:s,search:e.search,index:l},()=>[o.createElementVNode("span",null,o.toDisplayString(e.getOptionLabel(s)),1)])],42,rR)):o.createCommentVNode("v-if",!0)],8,tR))),128)):o.createCommentVNode("v-if",!0),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",iR,[o.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=o.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[o.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),o.withDirectives(o.createElementVNode("li",null,[o.createElementVNode("span",aR,[o.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=o.createTextVNode("List is empty."))])])],512),[[o.vShow,n.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),o.renderSlot(e.$slots,"afterList")],12,Q1)],36),[[o.vShow,e.isOpen]])]),_:3})],42,G1)}hg.render=oR;const sR=o.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=_t().byId(t.filterId),i=r.field;return(a,s)=>(o.openBlock(),o.createBlock(o.unref(hg),{id:"filter-multiselect-"+o.unref(i).id,modelValue:o.unref(r).oneOfTerms,"onUpdate:modelValue":s[0]||(s[0]=l=>o.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:o.unref(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),lR={};function cR(e,t){const n=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("p",null,[t[0]||(t[0]=o.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=o.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=o.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=o.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=o.createTextVNode(" team at the ")),t[5]||(t[5]=o.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=o.createTextVNode(", UK. This site uses Cape ")),o.createVNode(n),t[7]||(t[7]=o.createTextVNode(". "))])}const uR=ri(lR,[["render",cR]]),fR={},dR={class:"border border-black p-1 fixed right-1 top-1"};function hR(e,t){return o.openBlock(),o.createElementBlock("div",dR,t[0]||(t[0]=[o.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const pR=ri(fR,[["render",hR]]),mR="3.4.0",vR={class:"cape-plugin-version"},_R=o.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("span",vR,"v"+o.toDisplayString(o.unref(mR)),1))}}),gR={class:"cape-content-page"},yR=["href"],SR=["href"],ER={key:0},TR={key:0},NR=["href"],wR=o.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=It();return(n,r)=>{var u,f,d,p,h,m,v,_,g,S,C,A,V,z,b;const i=o.resolveComponent("cape-record-count"),a=o.resolveComponent("cape-download-json-button"),s=o.resolveComponent("cape-download-csv-button"),l=o.resolveComponent("cape-software"),c=o.resolveComponent("cape-fields-table");return o.openBlock(),o.createElementBlock("div",gR,[r[8]||(r[8]=o.createElementVNode("h2",null,"About the data",-1)),o.createElementVNode("p",null,[r[0]||(r[0]=o.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),o.createVNode(i),r[1]||(r[1]=o.createTextVNode(" records. The fields in the dataset are described below. "))]),o.createElementVNode("p",null,[r[2]||(r[2]=o.createTextVNode(" This data is copyright ")),o.createElementVNode("a",{href:(f=(u=o.unref(t))==null?void 0:u.copyright)==null?void 0:f.url},o.toDisplayString(((p=(d=o.unref(t))==null?void 0:d.copyright)==null?void 0:p.title)??"MISSING DATA"),9,yR),r[3]||(r[3]=o.createTextVNode(" and may be reused under the ")),o.createElementVNode("a",{href:(m=(h=o.unref(t))==null?void 0:h.license)==null?void 0:m.url},o.toDisplayString(((_=(v=o.unref(t))==null?void 0:v.license)==null?void 0:_.title)??"MISSING DATA"),9,SR),r[4]||(r[4]=o.createTextVNode(" license. "))]),(g=o.unref(t))!=null&&g.creators?(o.openBlock(),o.createElementBlock("p",ER,[r[5]||(r[5]=o.createTextVNode(" This dataset was created by ")),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t).creators,(I,B)=>{var k;return o.openBlock(),o.createElementBlock("span",{key:B},[o.createElementVNode("span",null,o.toDisplayString(I.name),1),B+1<((k=o.unref(t).creators)==null?void 0:k.length)?(o.openBlock(),o.createElementBlock("span",TR,", ")):o.createCommentVNode("",!0)])}),128)),r[6]||(r[6]=o.createTextVNode(". "))])):o.createCommentVNode("",!0),o.createElementVNode("p",null,[o.createTextVNode(' If using this data, please attribute it as "'+o.toDisplayString(((C=(S=o.unref(t))==null?void 0:S.attribution)==null?void 0:C.title)??"MISSING DATA")+'" with a link to ',1),o.createElementVNode("a",{href:(V=(A=o.unref(t))==null?void 0:A.attribution)==null?void 0:V.url},o.toDisplayString(((b=(z=o.unref(t))==null?void 0:z.attribution)==null?void 0:b.url)??"MISSING DATA"),9,NR),r[7]||(r[7]=o.createTextVNode(". "))]),o.createElementVNode("p",null,[o.createVNode(a,{style:{"margin-right":"1rem"}}),o.createVNode(s)]),r[9]||(r[9]=o.createElementVNode("h2",null,"About this software",-1)),o.createVNode(l),r[10]||(r[10]=o.createElementVNode("h2",null,"Schema",-1)),r[11]||(r[11]=o.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),o.createVNode(c)])}}}),bR=o.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value"),i=o.resolveComponent("cape-record-link");return o.openBlock(),o.createBlock(i,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:o.withCtx(()=>[o.createElementVNode("div",null,[o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=o.createTextVNode(" - ")),o.createVNode(r,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),DR={class:"cape-navigation"},kR={class:"cape-navigation-items"},CR={class:"cape-navigation-item"},IR=o.defineComponent({__name:"CapeNavigation",setup(e){const t=It(),n=o.computed(()=>t.pages);return(r,i)=>{const a=o.resolveComponent("router-link"),s=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",DR,[o.createElementVNode("nav",null,[o.createElementVNode("ul",kR,[o.createElementVNode("li",CR,[o.createVNode(a,{class:"cape-navigation-link",to:"/"},{default:o.withCtx(()=>i[0]||(i[0]=[o.createTextVNode("Search")])),_:1,__:[0]})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,l=>(o.openBlock(),o.createElementBlock("li",{class:"cape-navigation-item",key:l.path},[o.createVNode(a,{class:"cape-navigation-link",to:l.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(l.label),1)]),_:2},1032,["to"])]))),128))])]),o.createElementVNode("main",null,[o.createVNode(s)])])}}}),RR={class:"cape-record-card bg-blue-100 py-2 px-4"},OR={class:"text-xl border-black border-b mb-4"},PR={class:"border-b mb-4 pb-4 border-b-black"},AR={class:"md:grid md:grid-cols-2 md:gap-4"},MR={class:"border-b mb-4 pb-4 border-b-black"},xR={class:"md:grid md:grid-cols-2 md:gap-4"},VR={class:"md:grid md:grid-cols-2 md:gap-4"},LR={class:"mb-5"},FR=o.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-previous-result"),i=o.resolveComponent("cape-next-result"),a=o.resolveComponent("cape-previous-record"),s=o.resolveComponent("cape-next-record"),l=o.resolveComponent("cape-labelled-value");return o.openBlock(),o.createElementBlock("div",RR,[o.createElementVNode("h2",OR,"RecordCard Placeholder ID: "+o.toDisplayString(t.record.record_number.value),1),o.createElementVNode("div",PR,[o.createElementVNode("div",AR,[o.createVNode(r,{record:t.record},{before:o.withCtx(()=>n[0]||(n[0]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[1]||(n[1]=[o.createTextVNode("[start of results]")])),_:1},8,["record"]),o.createVNode(i,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[2]||(n[2]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[3]||(n[3]=[o.createTextVNode("[end of results]")])),_:1},8,["record"])])]),o.createElementVNode("div",MR,[o.createElementVNode("div",xR,[o.createVNode(a,{record:t.record},{before:o.withCtx(()=>n[4]||(n[4]=[o.createTextVNode("← ")])),otherwise:o.withCtx(()=>n[5]||(n[5]=[o.createTextVNode("[start of dataset]")])),_:1},8,["record"]),o.createVNode(s,{record:t.record,class:"text-right"},{after:o.withCtx(()=>n[6]||(n[6]=[o.createTextVNode(" →")])),otherwise:o.withCtx(()=>n[7]||(n[7]=[o.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),o.createElementVNode("div",VR,[o.createElementVNode("ul",LR,[o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),o.createElementVNode("li",null,[o.createVNode(l,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=o.createElementVNode("div",null," Column 2 ",-1))])])}}}),YR={};function $R(e,t){const n=o.resolveComponent("cape-page-width-indicator"),r=o.resolveComponent("cape-non-prod-warning");return o.openBlock(),o.createElementBlock("header",null,[o.createVNode(n),t[0]||(t[0]=o.createElementVNode("h1",{class:"text-4xl"},[o.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),o.createVNode(r)])}const BR=ri(YR,[["render",$R]]),UR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},HR={class:"text-left"},GR=["href"],WR={class:"text-right"},jR={__name:"CapeFooter",setup(e){const{metadata:t}=It();return(n,r)=>{var a,s,l,c;const i=o.resolveComponent("cape-version");return o.openBlock(),o.createElementBlock("footer",UR,[o.createElementVNode("div",HR,[r[0]||(r[0]=o.createTextVNode(" © ")),o.createElementVNode("a",{href:(s=(a=o.unref(t))==null?void 0:a.copyright)==null?void 0:s.url},o.toDisplayString(((c=(l=o.unref(t))==null?void 0:l.copyright)==null?void 0:c.title)??"MISSING COPYRIGHT METADATA"),9,GR)]),r[2]||(r[2]=o.createElementVNode("div",{class:"text-center"},null,-1)),o.createElementVNode("div",WR,[r[1]||(r[1]=o.createTextVNode(" Powered by Cape ")),o.createVNode(i)])])}}},zR={class:"cape-record-label"},KR=o.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const r=o.resolveComponent("cape-value");return o.openBlock(),o.createElementBlock("span",zR,[o.createVNode(r,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=o.createTextVNode(" # ")),o.createVNode(r,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),qR={class:"cape-filter-controls cape-filter-controls-top"},XR={class:"cape-advanced-search-toggle-control switch switch-sm"},JR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},QR={class:"cape-advanced-search-toggle-control switch switch-sm"},ZR=o.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=_t(),n=o.computed(()=>t.showAdvanced);return(r,i)=>{const a=o.resolveComponent("cape-intro"),s=o.resolveComponent("cape-advanced-search-toggle"),l=o.resolveComponent("cape-form-reset-button"),c=o.resolveComponent("cape-filters"),u=o.resolveComponent("cape-results");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(a),o.createElementVNode("div",qR,[o.createElementVNode("div",XR,[o.createVNode(s,{id:"cape-advanced-search-toggle-top"}),i[0]||(i[0]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),o.createVNode(l)]),o.createElementVNode("div",null,[o.createVNode(c)]),n.value?(o.openBlock(),o.createElementBlock("div",JR,[o.createElementVNode("div",QR,[o.createVNode(s,{id:"cape-advanced-search-toggle-bottom"}),i[1]||(i[1]=o.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),o.createVNode(l)])):o.createCommentVNode("",!0),o.createElementVNode("div",null,[o.createVNode(u)])],64)}}}),eO={},tO={class:"cape-intro mb-10"};function nO(e,t){const n=o.resolveComponent("cape-record-count");return o.openBlock(),o.createElementBlock("p",tO,[t[0]||(t[0]=o.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=o.createTextVNode(" This repository contains ")),o.createVNode(n),t[2]||(t[2]=o.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const rO=ri(eO,[["render",nO]]),iO=o.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return It().metadata}}}),aO={template:"#templateCapeSummaryCard",props:["record"]},oO={template:"#templateCapeNavigation",computed:{...Jf(It,["pages"])}},sO={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},lO={template:"#templateCapeHeader"},cO={template:"#templateCapeFooter"},uO={template:"#templateCapeRecordLabel",props:["record"]},fO={template:"#templateCapeHomepageLayout",computed:{...Jf(_t,["showAdvanced"]),...Jf(Bt,{hasMatches:e=>e.totalCount>0})}},pg={install:function(e,t){e.use(IN());const n=this.makeComponentMap(t);this.registerComponents(e,n),It().setOptions(t),this.registerRoutes(e,t.pages,ed);const i=async a=>{const s=await xd.getPageTitle(a,t);s&&(document.title=s)};Ps.add({priority:fg.High,action:i}),ed.afterEach(async(a,s)=>{ti().onLoaded(async()=>{await Ps.execute(a,s)})}),e.use(ed)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&o.toRaw(t).forEach(r=>{const i={path:r.path,component:e.component(r.component)};r.title&&(i.meta={title:r.title}),n.addRoute(i)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=iO,t.CapeFooter=cO,t.CapeHeader=lO,t.CapeHomepageLayout=fO,t.CapeNavigation=oO,t.CapeRecordCard=sO,t.CapeRecordLabel=uO,t.CapeSummaryCard=aO),e.additionalComponents!==void 0)for(const[n,r]of Object.entries(e.additionalComponents))t[n]=r;return t},builtInComponentsMap(){return{CapeFilterFieldDate:II,CapeFilterFieldEnum:hI,CapeFilterFieldEnumIsRadio:O1,CapeFilterFieldEnumIsSelect:M1,CapeFilterFieldEnumOneOfCheckbox:F1,CapeFilterFieldEnumOneOfMultiselect:sR,CapeFilterFieldInteger:EI,CapeFilterFieldText:KC,CapeFilterFreeText:ZC,CapeAboutPage:wR,CapeFooter:jR,CapeHeader:BR,CapeHomepageLayout:ZR,CapeIntro:rO,CapeNavigation:IR,CapeRecordCard:FR,CapeRecordLabel:KR,CapeSummaryCard:bR,CapeAdvancedSearchToggle:uw,CapeFilters:dw,CapeFormResetButton:hw,CapeResults:Aw,CapeResultsControls:MI,CapeGoTopResults:xI,CapeExternalLinkValue:LI,CapeResultsCount:w1,CapeResultsInfo:T1,CapeShowAllResultsToggle:_1,CapeSortOrder:lI,CapeDownloadCsvButton:BI,CapeDownloadJsonButton:WI,CapeFieldsTable:KI,CapeFixedNumericValue:v1,CapeLabelledContent:h1,CapeLabelledValue:Yw,CapeLinkValue:p1,CapeNextRecord:l1,CapeNextResult:ZI,CapePercentageValue:m1,CapePreviousRecord:a1,CapePreviousResult:n1,CapeRecordCount:cw,CapeRecordLink:XI,CapeSingleValue:BC,CapeSoftware:uR,CapeValue:Fw,CapeVersion:_R,CapeHomePage:mw,CapeLoadError:gw,CapeLoading:Tw,CapeNonProdWarning:kw,CapePageWidthIndicator:pR,CapeRecordPage:Rw,CapeRoot:sw}}},dO={};function hO(e,t){const n=o.resolveComponent("CapeHeader"),r=o.resolveComponent("CapeRoot"),i=o.resolveComponent("CapeLoading"),a=o.resolveComponent("CapeFooter");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(n),(o.openBlock(),o.createBlock(o.Suspense,null,{default:o.withCtx(()=>[o.createVNode(r)]),fallback:o.withCtx(()=>[o.createVNode(i)]),_:1})),o.createVNode(a)],64)}const pO=ri(dO,[["render",hO]]),mO=e=>{const t=o.createApp(pO);return t.use(pg,e),t},qr=class qr{static register(t){qr.loggers.push(t)}static clear(){qr.loggers=[]}static debug(t,n){qr.loggers.forEach(r=>r.debug(t,n))}static info(t,n){qr.loggers.forEach(r=>r.info(t,n))}static warn(t,n){qr.loggers.forEach(r=>r.warn(t,n))}static error(t,n){qr.loggers.forEach(r=>r.error(t,n))}};Pe(qr,"loggers",[]);let As=qr;var Qt=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Qt||{});class vO{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Qt.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Qt.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Qt.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Qt.Error&&console.error(t,n??"")}}const _O={install:function(e,t){const n=new vO(t.loggingLevel);As.register(n)}};class gO{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Qt.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Debug}})}info(t,n){this.loggingLevel>=Qt.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Info}})}warn(t,n){this.loggingLevel>=Qt.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Warn}})}error(t,n){this.loggingLevel>=Qt.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Qt.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function Zt(e,t){return e||t}function ut(e,t){return e[t]}var Ut=void 0,Nt=null,Fd="",Rc="function",Ms="object",Rr="prototype",Oc="__proto__",ji="undefined",Pc="constructor",Yd="Symbol",uo="length",Ac="name",Rt="call",xs="toString",$d="getOwnPropertyDescriptor",Ht=Zt(Object),Bd=ut(Ht,Rr),mg=Zt(String),zi=ut(mg,Rr),Vs=Zt(Math),vg=Zt(Array),Mc=ut(vg,Rr),Or=ut(Mc,"slice"),_g="_polyfill",gg="__nw21$polytype__";function ft(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function yO(e,t,n){var r=ft(e,n);return r.e?t:r.v}var Ud;function xc(e){return function(t){return typeof t===e}}function yg(e){var t="[object "+e+"]";return function(n){return!!(n&&SO(n)===t)}}function SO(e){return Bd[xs].call(e)}function dt(e){return typeof e===ji||e===ji}function EO(e){return e===Ut}function K(e){return e===Nt||dt(e)}function Hd(e){return e===Nt||e===Ut}function TO(e){return!!e||e!==Ut}function NO(e){return!Ud&&(Ud=["string","number","boolean",ji,"symbol","bigint"]),e!==Ms&&Ud.indexOf(e)!==-1}var ye=xc("string"),Se=xc(Rc);function en(e){return!e&&K(e)?!1:!!e&&typeof e===Ms}var ke=ut(vg,"isArray"),wO=yg("Date"),Ls=xc("number"),Sg=xc("boolean"),Gd=yg("Error");function si(e){return!!(e&&e.then&&Se(e.then))}function Vc(e){return!(!e||yO(function(){return!(e&&0+e)},!e))}function Wd(){}function bO(){return!1}var Gt=Zt(mg),DO="[object Error]";function se(e,t){var n=Fd,r=Bd[xs][Rt](e);r===DO&&(e={stack:Gt(e.stack),message:Gt(e.message),name:Gt(e.name)});try{n=JSON.stringify(e,Nt,t?typeof t=="number"?t:4:Ut),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Nt)||Gt(e)}catch(i){n=" - "+se(i,t)}return r+": "+n}function on(e){throw new Error(e)}function qn(e){throw new TypeError(e)}function Lc(e){Hd(e)&&qn("Cannot convert undefined or null to object")}function kO(e){ye(e)||qn("'"+se(e)+"' is not a string")}function gn(e,t){return!!e&&Bd.hasOwnProperty[Rt](e,t)}var CO=Zt(ut(Ht,$d),Wd),li=Zt(ut(Ht,"hasOwn"),IO);function IO(e,t){return Lc(e),gn(e,t)||!!CO(e,t)}function Me(e,t,n){if(e&&(en(e)||Se(e))){for(var r in e)if(li(e,r)&&t[Rt](e,r,e[r])===-1)break}}function oe(e,t,n){if(e)for(var r=e[uo]>>>0,i=0;i<r&&!(i in e&&t[Rt](e,e[i],i,e)===-1);i++);}var Ki=Fc;function Fc(e,t,n){var r=t?t[e]:Nt;return function(i){var a=(i?i[e]:Nt)||r;if(a||n){var s=arguments;return(a||n).apply(i,a?Or[Rt](s,1):s)}qn('"'+Gt(e)+'" not defined for '+se(i))}}function RO(e){return function(t){return t[e]}}var OO=Zt(ut(Ht,$d),Wd),Yc={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function PO(e){var t={};if(t[Yc.c]=!0,t[Yc.e]=!0,e.l){t.get=function(){return e.l.v};var n=OO(e.l,"v");n&&n.set&&(t.set=function(r){e.l.v=r})}return Me(e,function(r,i){t[Yc[r]]=EO(i)?t[Yc[r]]:i}),t}var Pr=ut(Ht,"defineProperty"),AO=ut(Ht,"defineProperties");function Le(e,t,n){return Pr(e,t,PO(n))}function Eg(e,t,n,r,i){var a={};return Me(e,function(s,l){$c(a,s,t?l:s),$c(a,l,s)}),r?r(a):a}function $c(e,t,n,r){Pr(e,t,{value:n,enumerable:!0,writable:!1})}var MO=Zt(ut(Ht,"isFrozen"),bO),Tg=ut(Ht,"freeze");function xO(e){return e}function VO(e){return Lc(e),e[Oc]||Nt}var jd=ut(Ht,"assign"),Ar=ut(Ht,"keys");function Ng(e,t){if((ke(e)||en(e)||Se(e))&&!MO(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Me(e,function(r,i){Ng(i,t)}),An(e)}return e}function Fs(e){return Tg?Ng(e,[]):e}var An=Zt(Tg,xO),zd=Zt(ut(Ht,"getPrototypeOf"),VO);function LO(e){return Eg(e,1,0,An)}function FO(e){return Eg(e,0,0,An)}function YO(e){var t={};return Me(e,function(n,r){$c(t,n,r[1]),$c(t,r[0],r[1])}),An(t)}function $O(e){return YO(e)}var wg=FO({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),bg="__tsUtils$gblCfg",Kd;function Dg(){var e;return typeof globalThis!==ji&&(e=globalThis),!e&&typeof self!==ji&&(e=self),!e&&typeof window!==ji&&(e=window),!e&&typeof global!==ji&&(e=global),e}function Bc(){if(!Kd){var e=ft(Dg).v||{};Kd=e[bg]=e[bg]||{}}return Kd}var kg=ut(Vs,"min"),Ys=ut(Vs,"max"),Cg=Ki("slice",zi),Xn=Ki("substring",zi),ci=Fc("substr",zi,BO);function BO(e,t,n){return Lc(e),n<0?Fd:(t=t||0,t<0&&(t=Ys(t+e[uo],0)),dt(n)?Cg(e,t):Cg(e,t,t+n))}function qd(e,t){return Xn(e,0,t)}function UO(e,t){return e&&(ft(function(){e[_g]=!0,e[gg]=t}),ft(Le,[e,_g,{v:!0,w:!1,e:!1}]),ft(Le,[e,gg,{v:t,w:!1,e:!1}])),e}var Mr=Zt(ut(Ht,"create"),HO);function HO(e,t){var n=null;function r(){}if(Hd(e))n={};else{var i=typeof e;i!==Ms&&i!==Rc&&qn("Prototype must be an Object or function: "+se(e)),r[Rr]=e,ft(function(){r[Oc]=e}),n=new r}return t&&ft(AO,[n,t]),n}function Mn(){return(Date.now||GO)()}function GO(){return new Date().getTime()}function qi(e,t,n){return e.apply(t,n)}var gt;function ui(){gt=Bc()}function Ig(e,t){var n={};return!gt&&ui(),n.b=gt.lzy,Pr(n,"v",{configurable:!0,get:function(){var r=qi(e,null,t);return gt.lzy||Pr(n,"v",{value:r}),n.b=gt.lzy,r}}),n}var WO=ut(Vs,"random"),jO=Ig(function(){for(var e=Mn().toString(36).slice(2);e.length<16;)e+=WO().toString(36).slice(2);return e=e.substring(0,16),e}),Rg="_urid",zO="$nw21sym",Xd,KO=0;function qO(){if(!Xd){var e=Bc();Xd=e.gblSym=e.gblSym||{k:{},s:{}}}return Xd}var Uc;function Jd(e){var t="_"+KO+++"_"+jO.v,n=Yd+"("+e+")";function r(a,s){Le(i,a,{v:s,e:!1,w:!1})}var i=Mr(null);return r("description",Gt(e)),r(xs,function(){return n+zO+t}),r("valueOf",function(){return i}),r("v",n),r("_uid",t),UO(i,"symbol")}function XO(e){var t=qO();if(!li(t.k,e)){var n=Jd(e),r=Ar(t.s).length;n[Rg]=function(){return r+"_"+n[xs]()},t.k[e]=n,t.s[n[Rg]()]=Gt(e)}return t.k[e]}function JO(e){!Uc&&(Uc={});var t,n=wg[e];return n&&(t=Uc[n]=Uc[n]||Jd(Yd+"."+n)),t}function yn(e){return Pr({toJSON:function(){return e}},"v",{value:e})}var Og="window",$s;function fo(e,t){var n;return function(){return!gt&&ui(),(!n||gt.lzy)&&(n=yn(ft(e,t).v)),n.v}}function Sn(e){return!gt&&ui(),(!$s||e===!1||gt.lzy)&&($s=yn(ft(Dg).v||Nt)),$s.v}function ot(e,t){var n;if(!$s||t===!1?n=Sn(t):n=$s.v,n&&n[e])return n[e];if(e===Og)try{return window}catch{}return Nt}function Pg(){return!!Ot()}var Ot=fo(ot,["document"]);function Hc(){return!!sn()}var sn=fo(ot,[Og]);function QO(){return!!Jn()}var Jn=fo(ot,["navigator"]);function ZO(){return!!Ag()}var Ag=fo(ot,["history"]),eP=fo(function(){return!!ft(function(){return process&&(process.versions||{}).node}).v}),Mg=fo(function(){return!!ft(function(){return self&&self instanceof WorkerGlobalScope}).v}),ho,Qd;function Gc(){return ho=yn(ft(ot,[Yd]).v),ho}function tP(e){var t=(gt.lzy?0:ho)||Gc();return t.v?t.v[e]:Ut}function nP(){return!!rP()}function rP(){return!gt&&ui(),((gt.lzy?0:ho)||Gc()).v}function Zd(e,t){var n=wg[e];!gt&&ui();var r=(gt.lzy?0:ho)||Gc();return r.v?r.v[n||e]:JO(e)}function Bs(e,t){!gt&&ui();var n=(gt.lzy?0:ho)||Gc();return n.v?n.v(e):Jd(e)}function eh(e){return!gt&&ui(),Qd=(gt.lzy?0:Qd)||yn(ft(tP,["for"]).v),(Qd.v||XO)(e)}function th(e){return!!e&&Se(e.next)}function xg(e){return!Hd(e)&&Se(e[Zd(3)])}var Wc;function nh(e,t,n){if(e&&(th(e)||(!Wc&&(Wc=yn(Zd(3))),e=e[Wc.v]?e[Wc.v]():Nt),th(e))){var r=Ut,i=Ut;try{for(var a=0;!(i=e.next()).done&&t[Rt](n||e,i.value,a,e)!==-1;)a++}catch(s){r={e:s},e.throw&&(i=Nt,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}function po(e,t){return!dt(t)&&e&&(ke(t)?qi(e.push,e,t):th(t)||xg(t)?nh(t,function(n){e.push(n)}):e.push(t)),e}var Ft=Ki("indexOf",Mc),Us=Ki("map",Mc);function jc(e,t,n){return((e?e.slice:Nt)||Or).apply(e,Or[Rt](arguments,1))}var iP=Ki("reduce",Mc),rh,Vg=Zt(ut(Ht,"setPrototypeOf"),aP);function aP(e,t){var n;return!rh&&(rh=yn((n={},n[Oc]=[],n instanceof Array))),rh.v?e[Oc]=t:Me(t,function(r,i){return e[r]=i}),e}function oP(e,t,n){ft(Le,[t,Ac,{v:e,c:!0,e:!1}]),t=Vg(t,n);function r(){this[Pc]=t,ft(Le,[this,Ac,{v:e,c:!0,e:!1}])}return t[Rr]=n===Nt?Mr(n):(r[Rr]=n[Rr],new r),t}function Lg(e,t){t&&(e[Ac]=t)}function Fg(e,t,n){var r=Error,i=r[Rr][Ac],a=Error.captureStackTrace;return oP(e,function(){var s=this,l=arguments;try{ft(Lg,[r,e]);var c=qi(r,s,Or[Rt](l))||s;if(c!==s){var u=zd(s);u!==zd(c)&&Vg(c,u)}return a&&a(c,s[Pc]),t&&t(c,l),c}finally{ft(Lg,[r,i])}},r)}var ih;function sP(e){throw ih||(ih=Fg("UnsupportedError")),new ih(e)}function lP(e){return function(n){return Lc(n),n&&n.replace&&(n=n.replace(e,Fd)),n}}var cP=lP(/^\s+|(?=\s)\s+$/g),Ze=Fc("trim",zi,cP),ln=ut(Vs,"floor"),ah,oh,sh;function Wt(e){if(!e||typeof e!==Ms)return!1;sh||(sh=Hc()?sn():!0);var t=!1;if(e!==sh){oh||(ah=Function[Rr][xs],oh=ah[Rt](Ht));try{var n=zd(e);t=!n,t||(gn(n,Pc)&&(n=n[Pc]),t=!!(n&&typeof n===Rc&&ah[Rt](n)===oh))}catch{}}return t}function uP(e){return e.value&&Bg(e),!0}var Yg=[pP,Bg,vP,mP];function fP(e,t,n,r){var i;return oe(e,function(a){if(a.k===t)return i=a,-1}),i||(i={k:t,v:t},e.push(i),r(i)),i.v}function lh(e,t,n,r){var i=n.handler,a=n.path?r?n.path.concat(r):n.path:[],s={handler:n.handler,src:n.src,path:a},l=typeof t,c=!1,u=t===Nt;u||(t&&l===Ms?c=Wt(t):u=NO(l));var f={type:l,isPrim:u,isPlain:c,value:t,result:t,path:a,origin:n.src,copy:function(d,p){return lh(e,d,p?s:n,p)},copyTo:function(d,p){return $g(e,d,p,s)}};return f.isPrim?i&&i[Rt](n,f)?f.result:t:fP(e,t,a,function(d){Le(f,"result",{g:function(){return d.v},s:function(m){d.v=m}});for(var p=0,h=i;!(h||(p<Yg.length?Yg[p++]:uP))[Rt](n,f);)h=Nt})}function $g(e,t,n,r){if(!K(n))for(var i in n)t[i]=lh(e,n[i],r,i);return t}function dP(e,t,n){var r={handler:n,src:t,path:[]};return $g([],e,t,r)}function hP(e,t){var n={handler:t,src:e};return lh([],e,n)}function pP(e){var t=e.value;if(ke(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function mP(e){var t=e.value;return wO(t)?(e.result=new Date(t.getTime()),!0):!1}function vP(e){return e.type===Rc}function Bg(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function Ug(e,t){return oe(t,function(n){dP(e,n)}),e}function Hg(e,t,n,r,i,a,s){return Ug(hP(e)||{},Or[Rt](arguments))}function _P(e,t,n,r,i,a,s){return Ug(e||{},Or[Rt](arguments))}var Gg=Ki("split",zi);function Wg(e,t,n){if(e&&t){var r=Gg(t,"."),i=r.pop();oe(r,function(a){K(e[a])&&(e[a]={}),e=e[a]}),e[i]=n}}var gP=RO(uo),ch;function xr(){return!gt&&ui(),(!ch||gt.lzy)&&(ch=yn(ft(ot,["performance"]).v)),ch.v}var jg=ut(Vs,"round"),yP=Zt(ut(Ht,$d),Wd),zg=Fc("endsWith",zi,SP);function SP(e,t,n){kO(e);var r=ye(t)?t:Gt(t),i=!dt(n)&&n<e[uo]?n:e[uo];return Xn(e,i-r[uo],i)===r}var jt=Ki("indexOf",zi),uh="ref",fh="unref",dh="hasRef",EP="enabled";function TP(e,t,n){var r=!0,i=e?t(Nt):Nt,a;function s(){return r=!1,i&&i[fh]&&i[fh](),a}function l(){i&&n(i),i=Nt}function c(){return i=t(i),r||s(),a}function u(f){!f&&i&&l(),f&&!i&&c()}return a={cancel:l,refresh:c},a[dh]=function(){return i&&i[dh]?i[dh]():r},a[uh]=function(){return r=!0,i&&i[uh]&&i[uh](),a},a[fh]=s,a=Pr(a,EP,{get:function(){return!!i},set:u}),{h:a,dn:function(){i=Nt}}}var NP,wP;function bP(e){var t=Se(e)?e:NP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>0&&Se(n[0])&&(t=n[0])}return t||setTimeout}function DP(e){var t=Se(e)?e:wP;if(!t){var n=Bc().tmOut||[];ke(n)&&n.length>1&&Se(n[1])&&(t=n[1])}return t||clearTimeout}function Kg(e,t,n){var r=ke(t),i=r?t.length:0,a=bP(i>0?t[0]:r?Ut:t),s=DP(i>1?t[1]:Ut),l=n[0];n[0]=function(){c.dn(),qi(l,Ut,Or[Rt](arguments))};var c=TP(e,function(u){if(u){if(u.refresh)return u.refresh(),u;qi(s,Ut,[u])}return qi(a,Ut,n)},function(u){qi(s,Ut,[u])});return c.h}function En(e,t){return Kg(!0,Ut,Or[Rt](arguments))}function kP(e,t){return Kg(!1,Ut,Or[Rt](arguments))}var zc,Kc="constructor",Vr="prototype",qc="function",Xc="_dynInstFuncs",hh="_isDynProxy",mo="_dynClass",CP="_dynCls$",ph="_dynInstChk",Hs=ph,qg="_dfOpts",Xg="_unknown_",mh="__proto__",Jc="_dyn"+mh,Jg="__dynProto$Gbl",vh="_dynInstProto",Qc="useBaseInst",_h="setInstFuncs",gh=Object,Gs=gh.getPrototypeOf,Qg=gh.getOwnPropertyNames,Zg=Sn(),yh=Zg[Jg]||(Zg[Jg]={o:(zc={},zc[_h]=!0,zc[Qc]=!0,zc),n:1e3});function Zc(e){return e&&(e===gh[Vr]||e===Array[Vr])}function Sh(e){return Zc(e)||e===Function[Vr]}function Xi(e){var t;if(e){if(Gs)return Gs(e);var n=e[mh]||e[Vr]||(e[Kc]?e[Kc][Vr]:null);t=e[Jc]||n,gn(e,Jc)||(delete e[vh],t=e[Jc]=e[vh]||e[Jc],e[vh]=n)}return t}function eu(e,t){var n=[];if(Qg)n=Qg(e);else for(var r in e)typeof r=="string"&&gn(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Eh(e,t,n){return t!==Kc&&typeof e[t]===qc&&(n||gn(e,t))&&t!==mh&&t!==Vr}function tu(e){qn("DynamicProto: "+e)}function IP(e){var t=Mr(null);return eu(e,function(n){!t[n]&&Eh(e,n,!1)&&(t[n]=e[n])}),t}function Th(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function RP(e,t,n,r){function i(c,u,f){var d=u[f];if(d[hh]&&r){var p=c[Xc]||{};p[Hs]!==!1&&(d=(p[u[mo]]||{})[f]||d)}return function(){return d.apply(c,arguments)}}var a=Mr(null);eu(n,function(c){a[c]=i(t,n,c)});for(var s=Xi(e),l=[];s&&!Sh(s)&&!Th(l,s);)eu(s,function(c){!a[c]&&Eh(s,c,!Gs)&&(a[c]=i(t,s,c))}),l.push(s),s=Xi(s);return a}function OP(e,t,n,r){var i=null;if(e&&gn(n,mo)){var a=e[Xc]||Mr(null);if(i=(a[n[mo]]||Mr(null))[t],i||tu("Missing ["+t+"] "+qc),!i[ph]&&a[Hs]!==!1){for(var s=!gn(e,t),l=Xi(e),c=[];s&&l&&!Sh(l)&&!Th(c,l);){var u=l[t];if(u){s=u===r;break}c.push(l),l=Xi(l)}try{s&&(e[t]=i),i[ph]=1}catch{a[Hs]=!1}}}return i}function PP(e,t,n){var r=t[e];return r===n&&(r=Xi(t)[e]),typeof r!==qc&&tu("["+e+"] is not a "+qc),r}function AP(e,t,n,r,i){function a(c,u){var f=function(){var d=OP(this,u,c,f)||PP(u,c,f);return d.apply(this,arguments)};return f[hh]=1,f}if(!Zc(e)){var s=n[Xc]=n[Xc]||Mr(null);if(!Zc(s)){var l=s[t]=s[t]||Mr(null);s[Hs]!==!1&&(s[Hs]=!!i),Zc(l)||eu(n,function(c){Eh(n,c,!1)&&n[c]!==r[c]&&(l[c]=n[c],delete n[c],(!gn(e,c)||e[c]&&!e[c][hh])&&(e[c]=a(e,c)))})}}}function MP(e,t){if(Gs){for(var n=[],r=Xi(t);r&&!Sh(r)&&!Th(n,r);){if(r===e)return!0;n.push(r),r=Xi(r)}return!1}return!0}function Nh(e,t){return gn(e,Vr)?e.name||t||Xg:((e||{})[Kc]||{}).name||t||Xg}function et(e,t,n,r){gn(e,Vr)||tu("theClass is an invalid class definition.");var i=e[Vr];MP(i,t)||tu("["+Nh(e)+"] not in hierarchy of ["+Nh(t)+"]");var a=null;gn(i,mo)?a=i[mo]:(a=CP+Nh(e,"_")+"$"+yh.n,yh.n++,i[mo]=a);var s=et[qg],l=!!s[Qc];l&&r&&r[Qc]!==void 0&&(l=!!r[Qc]);var c=IP(t),u=RP(i,t,c,l);n(t,u);var f=!!Gs&&!!s[_h];f&&r&&(f=!!r[_h]),AP(i,a,t,c,f!==!1)}et[qg]=yh.o;var ey="function",ty="object",wh="undefined",Qn="prototype",bh=Object,xP=bh[Qn];(Sn()||{}).Symbol,(Sn()||{}).Reflect;var ny="hasOwnProperty",VP=function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)xP[ny].call(t,i)&&(e[i]=t[i])}return e},zt=jd||VP,Dh=function(e,t){return Dh=bh.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r[ny](i)&&(n[i]=r[i])},Dh(e,t)};function Lr(e,t){typeof t!==ey&&t!==null&&qn("Class extends value "+String(t)+" is not a constructor or null"),Dh(e,t);function n(){this.constructor=e}e[Qn]=t===null?Mr(t):(n[Qn]=t[Qn],new n)}function ry(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var iy=LO,LP=$O,fi=iy({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),vo="toLowerCase",we="length",nu="warnToConsole",Ws="throwInternal",Ji="watch",Qi="apply",Be="push",_o="splice",yt="logger",Zi="cancel",js="initialize",di="identifier",ru="removeNotificationListener",iu="addNotificationListener",Zn="isInitialized",au="getNotifyMgr",zs="getPlugin",ea="name",Kt="processNext",ay="getProcessTelContext",ta="value",go="enabled",oy="stopPollingInternalLogs",na="unload",ou="onComplete",kh="version",sy="loggingLevelConsole",ra="createNew",Fr="teardown",su="messageId",ia="message",Yr="diagLog",lu="_doTeardown",Ks="update",er="getNext",qs="setNextPlugin",Ch="userAgent",yo="split",aa="replace",hi="type",ly="evtName",$r="status",FP="indexOf",cy="getAllResponseHeaders",Ih="isChildEvt",xn="data",So="getCtx",tr="setCtx",uy="itemsReceived",cu="headers",Xs="urlString",Eo="timeout",Rh="traceFlags",Oh="getAttribute",Ph;function YP(e,t){Ph||(Ph=Fg("AggregationError",function(r,i){i[we]>1&&(r.errors=i[1])}));var n=e;throw oe(t,function(r,i){n+=`
54
- `.concat(i," > ").concat(se(r))}),new Ph(n,t||[])}/*!
53
+ `).join("")}const VO=l.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=AO(),i=BO(n);MO("download.csv",i,"text/csv;charset=utf-8")}return(n,i)=>(l.openBlock(),l.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),FO={},YO={href:"/site-data.json",class:"cape-button"};function $O(e,t){return l.openBlock(),l.createElementBlock("a",YO,"Download JSON")}const UO=ji(FO,[["render",$O]]),zO={class:"cape-fields-table"},HO={key:0},WO=l.defineComponent({__name:"CapeFieldsTable",setup(e){const t=es(),n=l.computed(()=>t.all);return(i,o)=>(l.openBlock(),l.createElementBlock("table",zO,[o[0]||(o[0]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",{scope:"col"},"Field id"),l.createElementVNode("th",{scope:"col"},"Field name"),l.createElementVNode("th",{scope:"col"},"Field type"),l.createElementVNode("th",{scope:"col"},"Description")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,s=>(l.openBlock(),l.createElementBlock("tr",{key:s.id},[l.createElementVNode("td",null,l.toDisplayString(s.id),1),l.createElementVNode("td",null,l.toDisplayString(s.label),1),l.createElementVNode("td",null,[l.createTextVNode(l.toDisplayString(s.type)+" ",1),s.isMultiple?(l.openBlock(),l.createElementBlock("span",HO," list")):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(s.description),1)]))),128))])]))}});function ZO(e){const n=nn().idField.id;return"/record/"+encodeURIComponent(`${e[n].value}`)}const GO=l.defineComponent({__name:"CapeRecordLink",props:{record:{}},setup(e){const t=e,n=l.computed(()=>ZO(t.record));return(i,o)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(s,{to:n.value},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},8,["to"])}}});function jO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $l={exports:{}};/* @preserve
54
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
55
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
56
+ */var qO=$l.exports,S0;function KO(){return S0||(S0=1,function(e,t){(function(n,i){i(t)})(qO,function(n){var i="1.9.4";function o(r){var a,u,h,m;for(u=1,h=arguments.length;u<h;u++){m=arguments[u];for(a in m)r[a]=m[a]}return r}var s=Object.create||function(){function r(){}return function(a){return r.prototype=a,new r}}();function c(r,a){var u=Array.prototype.slice;if(r.bind)return r.bind.apply(r,u.call(arguments,1));var h=u.call(arguments,2);return function(){return r.apply(a,h.length?h.concat(u.call(arguments)):arguments)}}var f=0;function d(r){return"_leaflet_id"in r||(r._leaflet_id=++f),r._leaflet_id}function p(r,a,u){var h,m,S,D;return D=function(){h=!1,m&&(S.apply(u,m),m=!1)},S=function(){h?m=arguments:(r.apply(u,arguments),setTimeout(D,a),h=!0)},S}function _(r,a,u){var h=a[1],m=a[0],S=h-m;return r===h&&u?r:((r-m)%S+S)%S+m}function v(){return!1}function y(r,a){if(a===!1)return r;var u=Math.pow(10,a===void 0?6:a);return Math.round(r*u)/u}function g(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function E(r){return g(r).split(/\s+/)}function w(r,a){Object.prototype.hasOwnProperty.call(r,"options")||(r.options=r.options?s(r.options):{});for(var u in a)r.options[u]=a[u];return r.options}function T(r,a,u){var h=[];for(var m in r)h.push(encodeURIComponent(u?m.toUpperCase():m)+"="+encodeURIComponent(r[m]));return(!a||a.indexOf("?")===-1?"?":"&")+h.join("&")}var b=/\{ *([\w_ -]+) *\}/g;function C(r,a){return r.replace(b,function(u,h){var m=a[h];if(m===void 0)throw new Error("No value provided for variable "+u);return typeof m=="function"&&(m=m(a)),m})}var M=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};function z(r,a){for(var u=0;u<r.length;u++)if(r[u]===a)return u;return-1}var G="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function oe(r){return window["webkit"+r]||window["moz"+r]||window["ms"+r]}var R=0;function F(r){var a=+new Date,u=Math.max(0,16-(a-R));return R=a+u,window.setTimeout(r,u)}var Q=window.requestAnimationFrame||oe("RequestAnimationFrame")||F,A=window.cancelAnimationFrame||oe("CancelAnimationFrame")||oe("CancelRequestAnimationFrame")||function(r){window.clearTimeout(r)};function B(r,a,u){if(u&&Q===F)r.call(a);else return Q.call(window,c(r,a))}function ae(r){r&&A.call(window,r)}var he={__proto__:null,extend:o,create:s,bind:c,get lastId(){return f},stamp:d,throttle:p,wrapNum:_,falseFn:v,formatNum:y,trim:g,splitWords:E,setOptions:w,getParamString:T,template:C,isArray:M,indexOf:z,emptyImageUrl:G,requestFn:Q,cancelFn:A,requestAnimFrame:B,cancelAnimFrame:ae};function P(){}P.extend=function(r){var a=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=a.__super__=this.prototype,h=s(u);h.constructor=a,a.prototype=h;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(a[m]=this[m]);return r.statics&&o(a,r.statics),r.includes&&(V(r.includes),o.apply(null,[h].concat(r.includes))),o(h,r),delete h.statics,delete h.includes,h.options&&(h.options=u.options?s(u.options):{},o(h.options,r.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var S=0,D=h._initHooks.length;S<D;S++)h._initHooks[S].call(this)}},a},P.include=function(r){var a=this.prototype.options;return o(this.prototype,r),r.options&&(this.prototype.options=a,this.mergeOptions(r.options)),this},P.mergeOptions=function(r){return o(this.prototype.options,r),this},P.addInitHook=function(r){var a=Array.prototype.slice.call(arguments,1),u=typeof r=="function"?r:function(){this[r].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function V(r){if(!(typeof L>"u"||!L||!L.Mixin)){r=M(r)?r:[r];for(var a=0;a<r.length;a++)r[a]===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 K={on:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u)}return this},off:function(r,a,u){if(!arguments.length)delete this._events;else if(typeof r=="object")for(var h in r)this._off(h,r[h],a);else{r=E(r);for(var m=arguments.length===1,S=0,D=r.length;S<D;S++)m?this._off(r[S]):this._off(r[S],a,u)}return this},_on:function(r,a,u,h){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(r,a,u)===!1){u===this&&(u=void 0);var m={fn:a,ctx:u};h&&(m.once=!0),this._events=this._events||{},this._events[r]=this._events[r]||[],this._events[r].push(m)}},_off:function(r,a,u){var h,m,S;if(this._events&&(h=this._events[r],!!h)){if(arguments.length===1){if(this._firingCount)for(m=0,S=h.length;m<S;m++)h[m].fn=v;delete this._events[r];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var D=this._listens(r,a,u);if(D!==!1){var $=h[D];this._firingCount&&($.fn=v,this._events[r]=h=h.slice()),h.splice(D,1)}}},fire:function(r,a,u){if(!this.listens(r,u))return this;var h=o({},a,{type:r,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var m=this._events[r];if(m){this._firingCount=this._firingCount+1||1;for(var S=0,D=m.length;S<D;S++){var $=m[S],Z=$.fn;$.once&&this.off(r,Z,$.ctx),Z.call($.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(r,a,u,h){typeof r!="string"&&console.warn('"string" type argument expected');var m=a;typeof a!="function"&&(h=!!a,m=void 0,u=void 0);var S=this._events&&this._events[r];if(S&&S.length&&this._listens(r,m,u)!==!1)return!0;if(h){for(var D in this._eventParents)if(this._eventParents[D].listens(r,a,u,h))return!0}return!1},_listens:function(r,a,u){if(!this._events)return!1;var h=this._events[r]||[];if(!a)return!!h.length;u===this&&(u=void 0);for(var m=0,S=h.length;m<S;m++)if(h[m].fn===a&&h[m].ctx===u)return m;return!1},once:function(r,a,u){if(typeof r=="object")for(var h in r)this._on(h,r[h],a,!0);else{r=E(r);for(var m=0,S=r.length;m<S;m++)this._on(r[m],a,u,!0)}return this},addEventParent:function(r){return this._eventParents=this._eventParents||{},this._eventParents[d(r)]=r,this},removeEventParent:function(r){return this._eventParents&&delete this._eventParents[d(r)],this},_propagateEvent:function(r){for(var a in this._eventParents)this._eventParents[a].fire(r.type,o({layer:r.target,propagatedFrom:r.target},r),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var W=P.extend(K);function x(r,a,u){this.x=u?Math.round(r):r,this.y=u?Math.round(a):a}var ve=Math.trunc||function(r){return r>0?Math.floor(r):Math.ceil(r)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(r){return this.clone()._add(re(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(re(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new x(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new x(this.x/r.x,this.y/r.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=ve(this.x),this.y=ve(this.y),this},distanceTo:function(r){r=re(r);var a=r.x-this.x,u=r.y-this.y;return Math.sqrt(a*a+u*u)},equals:function(r){return r=re(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=re(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function re(r,a,u){return r instanceof x?r:M(r)?new x(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new x(r.x,r.y):new x(r,a,u)}function _e(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}_e.prototype={extend:function(r){var a,u;if(!r)return this;if(r instanceof x||typeof r[0]=="number"||"x"in r)a=u=re(r);else if(r=N(r),a=r.min,u=r.max,!a||!u)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=u.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(r){return re((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,r)},getBottomLeft:function(){return re(this.min.x,this.max.y)},getTopRight:function(){return re(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(r){var a,u;return typeof r[0]=="number"||r instanceof x?r=re(r):r=N(r),r instanceof _e?(a=r.min,u=r.max):a=u=r,a.x>=this.min.x&&u.x<=this.max.x&&a.y>=this.min.y&&u.y<=this.max.y},intersects:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>=a.x&&h.x<=u.x,D=m.y>=a.y&&h.y<=u.y;return S&&D},overlaps:function(r){r=N(r);var a=this.min,u=this.max,h=r.min,m=r.max,S=m.x>a.x&&h.x<u.x,D=m.y>a.y&&h.y<u.y;return S&&D},isValid:function(){return!!(this.min&&this.max)},pad:function(r){var a=this.min,u=this.max,h=Math.abs(a.x-u.x)*r,m=Math.abs(a.y-u.y)*r;return N(re(a.x-h,a.y-m),re(u.x+h,u.y+m))},equals:function(r){return r?(r=N(r),this.min.equals(r.getTopLeft())&&this.max.equals(r.getBottomRight())):!1}};function N(r,a){return!r||r instanceof _e?r:new _e(r,a)}function U(r,a){if(r)for(var u=a?[r,a]:r,h=0,m=u.length;h<m;h++)this.extend(u[h])}U.prototype={extend:function(r){var a=this._southWest,u=this._northEast,h,m;if(r instanceof H)h=r,m=r;else if(r instanceof U){if(h=r._southWest,m=r._northEast,!h||!m)return this}else return r?this.extend(ie(r)||k(r)):this;return!a&&!u?(this._southWest=new H(h.lat,h.lng),this._northEast=new H(m.lat,m.lng)):(a.lat=Math.min(h.lat,a.lat),a.lng=Math.min(h.lng,a.lng),u.lat=Math.max(m.lat,u.lat),u.lng=Math.max(m.lng,u.lng)),this},pad:function(r){var a=this._southWest,u=this._northEast,h=Math.abs(a.lat-u.lat)*r,m=Math.abs(a.lng-u.lng)*r;return new U(new H(a.lat-h,a.lng-m),new H(u.lat+h,u.lng+m))},getCenter:function(){return new H((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 H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(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(r){typeof r[0]=="number"||r instanceof H||"lat"in r?r=ie(r):r=k(r);var a=this._southWest,u=this._northEast,h,m;return r instanceof U?(h=r.getSouthWest(),m=r.getNorthEast()):h=m=r,h.lat>=a.lat&&m.lat<=u.lat&&h.lng>=a.lng&&m.lng<=u.lng},intersects:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>=a.lat&&h.lat<=u.lat,D=m.lng>=a.lng&&h.lng<=u.lng;return S&&D},overlaps:function(r){r=k(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),m=r.getNorthEast(),S=m.lat>a.lat&&h.lat<u.lat,D=m.lng>a.lng&&h.lng<u.lng;return S&&D},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(r,a){return r?(r=k(r),this._southWest.equals(r.getSouthWest(),a)&&this._northEast.equals(r.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function k(r,a){return r instanceof U?r:new U(r,a)}function H(r,a,u){if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+r+", "+a+")");this.lat=+r,this.lng=+a,u!==void 0&&(this.alt=+u)}H.prototype={equals:function(r,a){if(!r)return!1;r=ie(r);var u=Math.max(Math.abs(this.lat-r.lat),Math.abs(this.lng-r.lng));return u<=(a===void 0?1e-9:a)},toString:function(r){return"LatLng("+y(this.lat,r)+", "+y(this.lng,r)+")"},distanceTo:function(r){return X.distance(this,ie(r))},wrap:function(){return X.wrapLatLng(this)},toBounds:function(r){var a=180*r/40075017,u=a/Math.cos(Math.PI/180*this.lat);return k([this.lat-a,this.lng-u],[this.lat+a,this.lng+u])},clone:function(){return new H(this.lat,this.lng,this.alt)}};function ie(r,a,u){return r instanceof H?r:M(r)&&typeof r[0]!="object"?r.length===3?new H(r[0],r[1],r[2]):r.length===2?new H(r[0],r[1]):null:r==null?r:typeof r=="object"&&"lat"in r?new H(r.lat,"lng"in r?r.lng:r.lon,r.alt):a===void 0?null:new H(r,a,u)}var O={latLngToPoint:function(r,a){var u=this.projection.project(r),h=this.scale(a);return this.transformation._transform(u,h)},pointToLatLng:function(r,a){var u=this.scale(a),h=this.transformation.untransform(r,u);return this.projection.unproject(h)},project:function(r){return this.projection.project(r)},unproject:function(r){return this.projection.unproject(r)},scale:function(r){return 256*Math.pow(2,r)},zoom:function(r){return Math.log(r/256)/Math.LN2},getProjectedBounds:function(r){if(this.infinite)return null;var a=this.projection.bounds,u=this.scale(r),h=this.transformation.transform(a.min,u),m=this.transformation.transform(a.max,u);return new _e(h,m)},infinite:!1,wrapLatLng:function(r){var a=this.wrapLng?_(r.lng,this.wrapLng,!0):r.lng,u=this.wrapLat?_(r.lat,this.wrapLat,!0):r.lat,h=r.alt;return new H(u,a,h)},wrapLatLngBounds:function(r){var a=r.getCenter(),u=this.wrapLatLng(a),h=a.lat-u.lat,m=a.lng-u.lng;if(h===0&&m===0)return r;var S=r.getSouthWest(),D=r.getNorthEast(),$=new H(S.lat-h,S.lng-m),Z=new H(D.lat-h,D.lng-m);return new U($,Z)}},X=o({},O,{wrapLng:[-180,180],R:6371e3,distance:function(r,a){var u=Math.PI/180,h=r.lat*u,m=a.lat*u,S=Math.sin((a.lat-r.lat)*u/2),D=Math.sin((a.lng-r.lng)*u/2),$=S*S+Math.cos(h)*Math.cos(m)*D*D,Z=2*Math.atan2(Math.sqrt($),Math.sqrt(1-$));return this.R*Z}}),J=6378137,fe={R:J,MAX_LATITUDE:85.0511287798,project:function(r){var a=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,r.lat),-u),m=Math.sin(h*a);return new x(this.R*r.lng*a,this.R*Math.log((1+m)/(1-m))/2)},unproject:function(r){var a=180/Math.PI;return new H((2*Math.atan(Math.exp(r.y/this.R))-Math.PI/2)*a,r.x*a/this.R)},bounds:function(){var r=J*Math.PI;return new _e([-r,-r],[r,r])}()};function Oe(r,a,u,h){if(M(r)){this._a=r[0],this._b=r[1],this._c=r[2],this._d=r[3];return}this._a=r,this._b=a,this._c=u,this._d=h}Oe.prototype={transform:function(r,a){return this._transform(r.clone(),a)},_transform:function(r,a){return a=a||1,r.x=a*(this._a*r.x+this._b),r.y=a*(this._c*r.y+this._d),r},untransform:function(r,a){return a=a||1,new x((r.x/a-this._b)/this._a,(r.y/a-this._d)/this._c)}};function Ge(r,a,u,h){return new Oe(r,a,u,h)}var we=o({},X,{code:"EPSG:3857",projection:fe,transformation:function(){var r=.5/(Math.PI*fe.R);return Ge(r,.5,-r,.5)}()}),be=o({},we,{code:"EPSG:900913"});function ze(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function Wt(r,a){var u="",h,m,S,D,$,Z;for(h=0,S=r.length;h<S;h++){for($=r[h],m=0,D=$.length;m<D;m++)Z=$[m],u+=(m?"L":"M")+Z.x+" "+Z.y;u+=a?xe.svg?"z":"x":""}return u||"M0 0"}var dt=document.documentElement.style,q="ActiveXObject"in window,me=q&&!document.addEventListener,Pe="msLaunchUri"in navigator&&!("documentMode"in document),Ee=ln("webkit"),I=ln("android"),j=ln("android 2")||ln("android 3"),ne=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),te=I&&ln("Google")&&ne<537&&!("AudioNode"in window),le=!!window.opera,ke=!Pe&&ln("chrome"),De=ln("gecko")&&!Ee&&!le&&!q,He=!ke&&ln("safari"),Me=ln("phantom"),at="OTransition"in dt,vt=navigator.platform.indexOf("Win")===0,Vt=q&&"transition"in dt,Rn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!j,Hn="MozPerspective"in dt,_n=!window.L_DISABLE_3D&&(Vt||Rn||Hn)&&!at&&!Me,or=typeof orientation<"u"||ln("mobile"),fl=or&&Ee,Y=or&&Rn,ee=!window.PointerEvent&&window.MSPointerEvent,de=!!(window.PointerEvent||ee),Ce="ontouchstart"in window||!!window.TouchEvent,Be=!window.L_NO_TOUCH&&(Ce||de),Ae=or&&le,nt=or&&De,Tt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kn=function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",v,a),window.removeEventListener("testPassiveEventSupport",v,a)}catch{}return r}(),Ue=function(){return!!document.createElement("canvas").getContext}(),dl=!!(document.createElementNS&&ze("svg").createSVGRect),au=!!dl&&function(){var r=document.createElement("div");return r.innerHTML="<svg/>",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zv=!dl&&function(){try{var r=document.createElement("div");r.innerHTML='<v:shape adj="1"/>';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),Va=navigator.platform.indexOf("Mac")===0,su=navigator.platform.indexOf("Linux")===0;function ln(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var xe={ie:q,ielt9:me,edge:Pe,webkit:Ee,android:I,android23:j,androidStock:te,opera:le,chrome:ke,gecko:De,safari:He,phantom:Me,opera12:at,win:vt,ie3d:Vt,webkit3d:Rn,gecko3d:Hn,any3d:_n,mobile:or,mobileWebkit:fl,mobileWebkit3d:Y,msPointer:ee,pointer:de,touch:Be,touchNative:Ce,mobileOpera:Ae,mobileGecko:nt,retina:Tt,passiveEvents:kn,canvas:Ue,svg:dl,vml:zv,inlineSvg:au,mac:Va,linux:su},Qd=xe.msPointer?"MSPointerDown":"pointerdown",lu=xe.msPointer?"MSPointerMove":"pointermove",Fa=xe.msPointer?"MSPointerUp":"pointerup",Ya=xe.msPointer?"MSPointerCancel":"pointercancel",Mi={touchstart:Qd,touchmove:lu,touchend:Fa,touchcancel:Ya},eh={touchstart:Y2,touchmove:th,touchend:th,touchcancel:th},Jr={},hl=!1;function Xt(r,a,u){return a==="touchstart"&&F2(),eh[a]?(u=eh[a].bind(this,u),r.addEventListener(Mi[a],u,!1),u):(console.warn("wrong event specified:",a),v)}function Ai(r,a,u){if(!Mi[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Mi[a],u,!1)}function B2(r){Jr[r.pointerId]=r}function V2(r){Jr[r.pointerId]&&(Jr[r.pointerId]=r)}function WT(r){delete Jr[r.pointerId]}function F2(){hl||(document.addEventListener(Qd,B2,!0),document.addEventListener(lu,V2,!0),document.addEventListener(Fa,WT,!0),document.addEventListener(Ya,WT,!0),hl=!0)}function th(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var u in Jr)a.touches.push(Jr[u]);a.changedTouches=[a],r(a)}}function Y2(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&cn(a),th(r,a)}function $2(r){var a={},u,h;for(h in r)u=r[h],a[h]=u&&u.bind?u.bind(r):u;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var U2=200;function z2(r,a){r.addEventListener("dblclick",a);var u=0,h;function m(S){if(S.detail!==1){h=S.detail;return}if(!(S.pointerType==="mouse"||S.sourceCapabilities&&!S.sourceCapabilities.firesTouchEvents)){var D=KT(S);if(!(D.some(function(Z){return Z instanceof HTMLLabelElement&&Z.attributes.for})&&!D.some(function(Z){return Z instanceof HTMLInputElement||Z instanceof HTMLSelectElement}))){var $=Date.now();$-u<=U2?(h++,h===2&&a($2(S))):h=1,u=$}}}return r.addEventListener("click",m),{dblclick:a,simDblclick:m}}function H2(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var Hv=ih(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cu=ih(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ZT=cu==="webkitTransition"||cu==="OTransition"?cu+"End":"transitionend";function GT(r){return typeof r=="string"?document.getElementById(r):r}function uu(r,a){var u=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(r,null);u=h?h[a]:null}return u==="auto"?null:u}function ht(r,a,u){var h=document.createElement(r);return h.className=a||"",u&&u.appendChild(h),h}function Rt(r){var a=r.parentNode;a&&a.removeChild(r)}function nh(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function pl(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function _l(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function Wv(r,a){if(r.classList!==void 0)return r.classList.contains(a);var u=rh(r);return u.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(u)}function qe(r,a){if(r.classList!==void 0)for(var u=E(a),h=0,m=u.length;h<m;h++)r.classList.add(u[h]);else if(!Wv(r,a)){var S=rh(r);Zv(r,(S?S+" ":"")+a)}}function Ft(r,a){r.classList!==void 0?r.classList.remove(a):Zv(r,g((" "+rh(r)+" ").replace(" "+a+" "," ")))}function Zv(r,a){r.className.baseVal===void 0?r.className=a:r.className.baseVal=a}function rh(r){return r.correspondingElement&&(r=r.correspondingElement),r.className.baseVal===void 0?r.className:r.className.baseVal}function ar(r,a){"opacity"in r.style?r.style.opacity=a:"filter"in r.style&&W2(r,a)}function W2(r,a){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=r.filters.item(h)}catch{if(a===1)return}a=Math.round(a*100),u?(u.Enabled=a!==100,u.Opacity=a):r.style.filter+=" progid:"+h+"(opacity="+a+")"}function ih(r){for(var a=document.documentElement.style,u=0;u<r.length;u++)if(r[u]in a)return r[u];return!1}function $a(r,a,u){var h=a||new x(0,0);r.style[Hv]=(xe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Zt(r,a){r._leaflet_pos=a,xe.any3d?$a(r,a):(r.style.left=a.x+"px",r.style.top=a.y+"px")}function Ua(r){return r._leaflet_pos||new x(0,0)}var fu,du,Gv;if("onselectstart"in document)fu=function(){We(window,"selectstart",cn)},du=function(){bt(window,"selectstart",cn)};else{var hu=ih(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fu=function(){if(hu){var r=document.documentElement.style;Gv=r[hu],r[hu]="none"}},du=function(){hu&&(document.documentElement.style[hu]=Gv,Gv=void 0)}}function jv(){We(window,"dragstart",cn)}function qv(){bt(window,"dragstart",cn)}var oh,Kv;function Xv(r){for(;r.tabIndex===-1;)r=r.parentNode;r.style&&(ah(),oh=r,Kv=r.style.outlineStyle,r.style.outlineStyle="none",We(window,"keydown",ah))}function ah(){oh&&(oh.style.outlineStyle=Kv,oh=void 0,Kv=void 0,bt(window,"keydown",ah))}function jT(r){do r=r.parentNode;while((!r.offsetWidth||!r.offsetHeight)&&r!==document.body);return r}function Jv(r){var a=r.getBoundingClientRect();return{x:a.width/r.offsetWidth||1,y:a.height/r.offsetHeight||1,boundingClientRect:a}}var Z2={__proto__:null,TRANSFORM:Hv,TRANSITION:cu,TRANSITION_END:ZT,get:GT,getStyle:uu,create:ht,remove:Rt,empty:nh,toFront:pl,toBack:_l,hasClass:Wv,addClass:qe,removeClass:Ft,setClass:Zv,getClass:rh,setOpacity:ar,testProp:ih,setTransform:$a,setPosition:Zt,getPosition:Ua,get disableTextSelection(){return fu},get enableTextSelection(){return du},disableImageDrag:jv,enableImageDrag:qv,preventOutline:Xv,restoreOutline:ah,getSizedParentNode:jT,getScale:Jv};function We(r,a,u,h){if(a&&typeof a=="object")for(var m in a)eg(r,m,a[m],u);else{a=E(a);for(var S=0,D=a.length;S<D;S++)eg(r,a[S],u,h)}return this}var Qr="_leaflet_events";function bt(r,a,u,h){if(arguments.length===1)qT(r),delete r[Qr];else if(a&&typeof a=="object")for(var m in a)tg(r,m,a[m],u);else if(a=E(a),arguments.length===2)qT(r,function($){return z(a,$)!==-1});else for(var S=0,D=a.length;S<D;S++)tg(r,a[S],u,h);return this}function qT(r,a){for(var u in r[Qr]){var h=u.split(/\d/)[0];(!a||a(h))&&tg(r,h,null,null,u)}}var Qv={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function eg(r,a,u,h){var m=a+d(u)+(h?"_"+d(h):"");if(r[Qr]&&r[Qr][m])return this;var S=function($){return u.call(h||r,$||window.event)},D=S;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?S=Xt(r,a,S):xe.touch&&a==="dblclick"?S=z2(r,S):"addEventListener"in r?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?r.addEventListener(Qv[a]||a,S,xe.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(S=function($){$=$||window.event,rg(r,$)&&D($)},r.addEventListener(Qv[a],S,!1)):r.addEventListener(a,D,!1):r.attachEvent("on"+a,S),r[Qr]=r[Qr]||{},r[Qr][m]=S}function tg(r,a,u,h,m){m=m||a+d(u)+(h?"_"+d(h):"");var S=r[Qr]&&r[Qr][m];if(!S)return this;!xe.touchNative&&xe.pointer&&a.indexOf("touch")===0?Ai(r,a,S):xe.touch&&a==="dblclick"?H2(r,S):"removeEventListener"in r?r.removeEventListener(Qv[a]||a,S,!1):r.detachEvent("on"+a,S),r[Qr][m]=null}function za(r){return r.stopPropagation?r.stopPropagation():r.originalEvent?r.originalEvent._stopped=!0:r.cancelBubble=!0,this}function ng(r){return eg(r,"wheel",za),this}function pu(r){return We(r,"mousedown touchstart dblclick contextmenu",za),r._leaflet_disable_click=!0,this}function cn(r){return r.preventDefault?r.preventDefault():r.returnValue=!1,this}function Ha(r){return cn(r),za(r),this}function KT(r){if(r.composedPath)return r.composedPath();for(var a=[],u=r.target;u;)a.push(u),u=u.parentNode;return a}function XT(r,a){if(!a)return new x(r.clientX,r.clientY);var u=Jv(a),h=u.boundingClientRect;return new x((r.clientX-h.left)/u.x-a.clientLeft,(r.clientY-h.top)/u.y-a.clientTop)}var G2=xe.linux&&xe.chrome?window.devicePixelRatio:xe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function JT(r){return xe.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/G2:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function rg(r,a){var u=a.relatedTarget;if(!u)return!0;try{for(;u&&u!==r;)u=u.parentNode}catch{return!1}return u!==r}var j2={__proto__:null,on:We,off:bt,stopPropagation:za,disableScrollPropagation:ng,disableClickPropagation:pu,preventDefault:cn,stop:Ha,getPropagationPath:KT,getMousePosition:XT,getWheelDelta:JT,isExternalTarget:rg,addListener:We,removeListener:bt},QT=W.extend({run:function(r,a,u,h){this.stop(),this._el=r,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Ua(r),this._offset=a.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=B(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,u=this._duration*1e3;a<u?this._runFrame(this._easeOut(a/u),r):(this._runFrame(1),this._complete())},_runFrame:function(r,a){var u=this._startPos.add(this._offset.multiplyBy(r));a&&u._round(),Zt(this._el,u),this.fire("step")},_complete:function(){ae(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(r){return 1-Math.pow(1-r,this._easeOutPower)}}),st=W.extend({options:{crs:we,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(r,a){a=w(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(r),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(ie(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=cu&&xe.any3d&&!xe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),We(this._proxy,ZT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(r,a,u){if(a=a===void 0?this._zoom:this._limitZoom(a),r=this._limitCenter(ie(r),a,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=o({animate:u.animate},u.zoom),u.pan=o({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(r,a,u.zoom):this._tryAnimatedPan(r,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(r,a,u.pan&&u.pan.noMoveStart),this},setZoom:function(r,a){return this._loaded?this.setView(this.getCenter(),r,{zoom:a}):(this._zoom=r,this)},zoomIn:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+r,a)},zoomOut:function(r,a){return r=r||(xe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-r,a)},setZoomAround:function(r,a,u){var h=this.getZoomScale(a),m=this.getSize().divideBy(2),S=r instanceof x?r:this.latLngToContainerPoint(r),D=S.subtract(m).multiplyBy(1-1/h),$=this.containerPointToLatLng(m.add(D));return this.setView($,a,{zoom:u})},_getBoundsCenterZoom:function(r,a){a=a||{},r=r.getBounds?r.getBounds():k(r);var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.getBoundsZoom(r,!1,u.add(h));if(m=typeof a.maxZoom=="number"?Math.min(a.maxZoom,m):m,m===1/0)return{center:r.getCenter(),zoom:m};var S=h.subtract(u).divideBy(2),D=this.project(r.getSouthWest(),m),$=this.project(r.getNorthEast(),m),Z=this.unproject(D.add($).divideBy(2).add(S),m);return{center:Z,zoom:m}},fitBounds:function(r,a){if(r=k(r),!r.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(r,a);return this.setView(u.center,u.zoom,a)},fitWorld:function(r){return this.fitBounds([[-90,-180],[90,180]],r)},panTo:function(r,a){return this.setView(r,this._zoom,{pan:a})},panBy:function(r,a){if(r=re(r).round(),a=a||{},!r.x&&!r.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(r))return this._resetView(this.unproject(this.project(this.getCenter()).add(r)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new QT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){qe(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(r).round();this._panAnim.run(this._mapPane,u,a.duration||.25,a.easeLinearity)}else this._rawPanBy(r),this.fire("move").fire("moveend");return this},flyTo:function(r,a,u){if(u=u||{},u.animate===!1||!xe.any3d)return this.setView(r,a,u);this._stop();var h=this.project(this.getCenter()),m=this.project(r),S=this.getSize(),D=this._zoom;r=ie(r),a=a===void 0?D:a;var $=Math.max(S.x,S.y),Z=$*this.getZoomScale(D,a),se=m.distanceTo(h)||1,ye=1.42,Fe=ye*ye;function Qe(Gt){var gh=Gt?-1:1,AY=Gt?Z:$,BY=Z*Z-$*$+gh*Fe*Fe*se*se,VY=2*AY*Fe*se,pg=BY/VY,Rb=Math.sqrt(pg*pg+1)-pg,FY=Rb<1e-9?-18:Math.log(Rb);return FY}function Cn(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function tn(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function lr(Gt){return Cn(Gt)/tn(Gt)}var Ln=Qe(0);function wl(Gt){return $*(tn(Ln)/tn(Ln+ye*Gt))}function IY(Gt){return $*(tn(Ln)*lr(Ln+ye*Gt)-Cn(Ln))/Fe}function RY(Gt){return 1-Math.pow(1-Gt,1.5)}var LY=Date.now(),Ob=(Qe(1)-Ln)/ye,MY=u.duration?1e3*u.duration:1e3*Ob*.8;function Ib(){var Gt=(Date.now()-LY)/MY,gh=RY(Gt)*Ob;Gt<=1?(this._flyToFrame=B(Ib,this),this._move(this.unproject(h.add(m.subtract(h).multiplyBy(IY(gh)/se)),D),this.getScaleZoom($/wl(gh),D),{flyTo:!0})):this._move(r,a)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),Ib.call(this),this},flyToBounds:function(r,a){var u=this._getBoundsCenterZoom(r,a);return this.flyTo(u.center,u.zoom,a)},setMaxBounds:function(r){return r=k(r),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),r.isValid()?(this.options.maxBounds=r,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(r){var a=this.options.minZoom;return this.options.minZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(r):this},setMaxZoom:function(r){var a=this.options.maxZoom;return this.options.maxZoom=r,this._loaded&&a!==r&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,k(r));return u.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var u=re(a.paddingTopLeft||a.padding||[0,0]),h=re(a.paddingBottomRight||a.padding||[0,0]),m=this.project(this.getCenter()),S=this.project(r),D=this.getPixelBounds(),$=N([D.min.add(u),D.max.subtract(h)]),Z=$.getSize();if(!$.contains(S)){this._enforcingBounds=!0;var se=S.subtract($.getCenter()),ye=$.extend(S).getSize().subtract(Z);m.x+=se.x<0?-ye.x:ye.x,m.y+=se.y<0?-ye.y:ye.y,this.panTo(this.unproject(m),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=o({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=a.divideBy(2).round(),m=u.divideBy(2).round(),S=h.subtract(m);return!S.x&&!S.y?this:(r.animate&&r.pan?this.panBy(S):(r.pan&&this._rawPanBy(S),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=o({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=c(this._handleGeolocationResponse,this),u=c(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,u,r):navigator.geolocation.getCurrentPosition(a,u,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,u=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,u=r.coords.longitude,h=new H(a,u),m=h.toBounds(r.coords.accuracy*2),S=this._locateOptions;if(S.setView){var D=this.getBoundsZoom(m);this.setView(h,S.maxZoom?Math.min(D,S.maxZoom):D)}var $={latlng:h,bounds:m,timestamp:r.timestamp};for(var Z in r.coords)typeof r.coords[Z]=="number"&&($[Z]=r.coords[Z]);this.fire("locationfound",$)}},addHandler:function(r,a){if(!a)return this;var u=this[r]=new a(this);return this._handlers.push(u),this.options[r]&&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(),Rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ae(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Rt(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var u="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),h=ht("div",u,a||this._mapPane);return r&&(this._panes[r]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),u=this.unproject(r.getTopRight());return new U(a,u)},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(r,a,u){r=k(r),u=re(u||[0,0]);var h=this.getZoom()||0,m=this.getMinZoom(),S=this.getMaxZoom(),D=r.getNorthWest(),$=r.getSouthEast(),Z=this.getSize().subtract(u),se=N(this.project($,h),this.project(D,h)).getSize(),ye=xe.any3d?this.options.zoomSnap:1,Fe=Z.x/se.x,Qe=Z.y/se.y,Cn=a?Math.max(Fe,Qe):Math.min(Fe,Qe);return h=this.getScaleZoom(Cn,h),ye&&(h=Math.round(h/(ye/100))*(ye/100),h=a?Math.ceil(h/ye)*ye:Math.floor(h/ye)*ye),Math.max(m,Math.min(S,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var u=this._getTopLeftPoint(r,a);return new _e(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var u=this.options.crs;return a=a===void 0?this._zoom:a,u.scale(r)/u.scale(a)},getScaleZoom:function(r,a){var u=this.options.crs;a=a===void 0?this._zoom:a;var h=u.zoom(r*u.scale(a));return isNaN(h)?1/0:h},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(ie(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(re(r),a)},layerPointToLatLng:function(r){var a=re(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(ie(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(ie(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(k(r))},distance:function(r,a){return this.options.crs.distance(ie(r),ie(a))},containerPointToLayerPoint:function(r){return re(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return re(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(re(r));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(r)))},mouseEventToContainerPoint:function(r){return XT(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=GT(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");We(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&xe.any3d,qe(r,"leaflet-container"+(xe.touch?" leaflet-touch":"")+(xe.retina?" leaflet-retina":"")+(xe.ielt9?" leaflet-oldie":"")+(xe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=uu(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Zt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(qe(r.markerPane,"leaflet-zoom-hide"),qe(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,u){Zt(this._mapPane,new x(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var m=this._zoom!==a;this._moveStart(m,u)._move(r,a)._moveEnd(m),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,u,h){a===void 0&&(a=this._zoom);var m=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),h?u&&u.pinch&&this.fire("zoom",u):((m||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ae(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){Zt(this._mapPane,this._getMapPanePos().subtract(r))},_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(r){this._targets={},this._targets[d(this._container)]=this;var a=r?bt:We;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),xe.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ae(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var u=[],h,m=a==="mouseout"||a==="mouseover",S=r.target||r.srcElement,D=!1;S;){if(h=this._targets[d(S)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){D=!0;break}if(h&&h.listens(a,!0)&&(m&&!rg(S,r)||(u.push(h),m))||S===this._container)break;S=S.parentNode}return!u.length&&!D&&!m&&this.listens(a,!0)&&(u=[this]),u},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var u=r.type;u==="mousedown"&&Xv(a),this._fireDOMEvent(r,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,u){if(r.type==="click"){var h=o({},r);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var m=this._findEventTargets(r,a);if(u){for(var S=[],D=0;D<u.length;D++)u[D].listens(a,!0)&&S.push(u[D]);m=S.concat(m)}if(m.length){a==="contextmenu"&&cn(r);var $=m[0],Z={originalEvent:r};if(r.type!=="keypress"&&r.type!=="keydown"&&r.type!=="keyup"){var se=$.getLatLng&&(!$._radius||$._radius<=10);Z.containerPoint=se?this.latLngToContainerPoint($.getLatLng()):this.mouseEventToContainerPoint(r),Z.layerPoint=this.containerPointToLayerPoint(Z.containerPoint),Z.latlng=se?$.getLatLng():this.layerPointToLatLng(Z.layerPoint)}for(D=0;D<m.length;D++)if(m[D].fire(a,Z,!0),Z.originalEvent._stopped||m[D].options.bubblingMouseEvents===!1&&z(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(r){return r=r.dragging&&r.dragging.enabled()?r:this,r.dragging&&r.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var r=0,a=this._handlers.length;r<a;r++)this._handlers[r].disable()},whenReady:function(r,a){return this._loaded?r.call(a||this,{target:this}):this.on("load",r,a),this},_getMapPanePos:function(){return Ua(this._mapPane)||new x(0,0)},_moved:function(){var r=this._getMapPanePos();return r&&!r.equals([0,0])},_getTopLeftPoint:function(r,a){var u=r&&a!==void 0?this._getNewPixelOrigin(r,a):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(r,a){var u=this.getSize()._divideBy(2);return this.project(r,a)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return this.project(r,a)._subtract(h)},_latLngBoundsToNewLayerBounds:function(r,a,u){var h=this._getNewPixelOrigin(u,a);return N([this.project(r.getSouthWest(),a)._subtract(h),this.project(r.getNorthWest(),a)._subtract(h),this.project(r.getSouthEast(),a)._subtract(h),this.project(r.getNorthEast(),a)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(r){return this.latLngToLayerPoint(r).subtract(this._getCenterLayerPoint())},_limitCenter:function(r,a,u){if(!u)return r;var h=this.project(r,a),m=this.getSize().divideBy(2),S=new _e(h.subtract(m),h.add(m)),D=this._getBoundsOffset(S,u,a);return Math.abs(D.x)<=1&&Math.abs(D.y)<=1?r:this.unproject(h.add(D),a)},_limitOffset:function(r,a){if(!a)return r;var u=this.getPixelBounds(),h=new _e(u.min.add(r),u.max.add(r));return r.add(this._getBoundsOffset(h,a))},_getBoundsOffset:function(r,a,u){var h=N(this.project(a.getNorthEast(),u),this.project(a.getSouthWest(),u)),m=h.min.subtract(r.min),S=h.max.subtract(r.max),D=this._rebound(m.x,-S.x),$=this._rebound(m.y,-S.y);return new x(D,$)},_rebound:function(r,a){return r+a>0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),u=this.getMaxZoom(),h=xe.any3d?this.options.zoomSnap:1;return h&&(r=Math.round(r/h)*h),Math.max(a,Math.min(u,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var u=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,a),!0)},_createAnimProxy:function(){var r=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var u=Hv,h=this._proxy.style[u];$a(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();$a(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),m=this._getCenterOffset(r)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(m)?!1:(B(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ft(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 q2(r,a){return new st(r,a)}var Nr=P.extend({options:{position:"topright"},initialize:function(r){w(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),u=this.getPosition(),h=r._controlCorners[u];return qe(a,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Rt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),_u=function(r){return new Nr(r)};st.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",u=this._controlContainer=ht("div",a+"control-container",this._container);function h(m,S){var D=a+m+" "+a+S;r[m+S]=ht("div",D,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Rt(this._controlCorners[r]);Rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var eb=Nr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,u,h){return u<h?-1:h<u?1:0}},initialize:function(r,a,u){w(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in r)this._addLayer(r[h],h);for(h in a)this._addLayer(a[h],h,!0)},onAdd:function(r){this._initLayout(),this._update(),this._map=r,r.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(r){return Nr.prototype.addTo.call(this,r),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(r,a){return this._addLayer(r,a),this._map?this._update():this},addOverlay:function(r,a){return this._addLayer(r,a,!0),this._map?this._update():this},removeLayer:function(r){r.off("add remove",this._onLayerChange,this);var a=this._getLayer(d(r));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var r=this._map.getSize().y-(this._container.offsetTop+50);return r<this._section.clientHeight?(qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=r+"px"):Ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var r="leaflet-control-layers",a=this._container=ht("div",r),u=this.options.collapsed;a.setAttribute("aria-haspopup",!0),pu(a),ng(a);var h=this._section=ht("section",r+"-list");u&&(this._map.on("click",this.collapse,this),We(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=ht("a",r+"-toggle",a);m.href="#",m.title="Layers",m.setAttribute("role","button"),We(m,{keydown:function(S){S.keyCode===13&&this._expandSafely()},click:function(S){cn(S),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=ht("div",r+"-base",h),this._separator=ht("div",r+"-separator",h),this._overlaysList=ht("div",r+"-overlays",h),a.appendChild(h)},_getLayer:function(r){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&d(this._layers[a].layer)===r)return this._layers[a]},_addLayer:function(r,a,u){this._map&&r.on("add remove",this._onLayerChange,this),this._layers.push({layer:r,name:a,overlay:u}),this.options.sortLayers&&this._layers.sort(c(function(h,m){return this.options.sortFunction(h.layer,m.layer,h.name,m.name)},this)),this.options.autoZIndex&&r.setZIndex&&(this._lastZIndex++,r.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;nh(this._baseLayersList),nh(this._overlaysList),this._layerControlInputs=[];var r,a,u,h,m=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),a=a||h.overlay,r=r||!h.overlay,m+=h.overlay?0:1;return this.options.hideSingleBase&&(r=r&&m>1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(d(r.target)),u=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;u&&this._map.fire(u,a)},_createRadioElement:function(r,a){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+r+'"'+(a?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(r){var a=document.createElement("label"),u=this._map.hasLayer(r.layer),h;r.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(r.layer),We(h,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+r.name;var S=document.createElement("span");a.appendChild(S),S.appendChild(h),S.appendChild(m);var D=r.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,u,h=[],m=[];this._handlingClick=!0;for(var S=r.length-1;S>=0;S--)a=r[S],u=this._getLayer(a.layerId).layer,a.checked?h.push(u):a.checked||m.push(u);for(S=0;S<m.length;S++)this._map.hasLayer(m[S])&&this._map.removeLayer(m[S]);for(S=0;S<h.length;S++)this._map.hasLayer(h[S])||this._map.addLayer(h[S]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var r=this._layerControlInputs,a,u,h=this._map.getZoom(),m=r.length-1;m>=0;m--)a=r[m],u=this._getLayer(a.layerId).layer,a.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,We(r,"click",cn),this.expand();var a=this;setTimeout(function(){bt(r,"click",cn),a._preventClick=!1})}}),K2=function(r,a,u){return new eb(r,a,u)},ig=Nr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(r){var a="leaflet-control-zoom",u=ht("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",u,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(r){r.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(r){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(r.shiftKey?3:1))},_zoomOut:function(r){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,u,h,m){var S=ht("a",u,h);return S.innerHTML=r,S.href="#",S.title=a,S.setAttribute("role","button"),S.setAttribute("aria-label",a),pu(S),We(S,"click",Ha),We(S,"click",m,this),We(S,"click",this._refocusOnMap,this),S},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";Ft(this._zoomInButton,a),Ft(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(qe(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(qe(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ig,this.addControl(this.zoomControl))});var X2=function(r){return new ig(r)},tb=Nr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",u=ht("div",a),h=this.options;return this._addScales(h,a+"-line",u),r.on(h.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),u},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,u){r.metric&&(this._mScale=ht("div",a,u)),r.imperial&&(this._iScale=ht("div",a,u))},_update:function(){var r=this._map,a=r.getSize().y/2,u=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(u)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),u=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,u,a/r)},_updateImperial:function(r){var a=r*3.2808399,u,h,m;a>5280?(u=a/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(m=this._getRoundNum(a),this._updateScale(this._iScale,m+" ft",m/a))},_updateScale:function(r,a,u){r.style.width=Math.round(this.options.maxWidth*u)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),u=r/a;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,a*u}}),J2=function(r){return new tb(r)},Q2='<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>',og=Nr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(xe.inlineSvg?Q2+" ":"")+"Leaflet</a>"},initialize:function(r){w(this,r),this._attributions={}},onAdd:function(r){r.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),pu(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var u=[];this.options.prefix&&u.push(this.options.prefix),r.length&&u.push(r.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new og().addTo(this)});var eY=function(r){return new og(r)};Nr.Layers=eb,Nr.Zoom=ig,Nr.Scale=tb,Nr.Attribution=og,_u.layers=K2,_u.zoom=X2,_u.scale=J2,_u.attribution=eY;var ei=P.extend({initialize:function(r){this._map=r},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}});ei.addTo=function(r,a){return r.addHandler(a,this),this};var tY={Events:K},nb=xe.touch?"touchstart mousedown":"mousedown",Oo=W.extend({options:{clickTolerance:3},initialize:function(r,a,u,h){w(this,h),this._element=r,this._dragStartTarget=a||r,this._preventOutline=u},enable:function(){this._enabled||(We(this._dragStartTarget,nb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Oo._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,nb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Wv(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){Oo._dragging===this&&this.finishDrag();return}if(!(Oo._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(Oo._dragging=this,this._preventOutline&&Xv(this._element),jv(),fu(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,u=jT(this._element);this._startPoint=new x(a.clientX,a.clientY),this._startPos=Ua(this._element),this._parentScale=Jv(u);var h=r.type==="mousedown";We(document,h?"mousemove":"touchmove",this._onMove,this),We(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,u=new x(a.clientX,a.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,cn(r),this._moved||(this.fire("dragstart"),this._moved=!0,qe(document.body,"leaflet-dragging"),this._lastTarget=r.target||r.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=r,this._updatePosition())}},_updatePosition:function(){var r={originalEvent:this._lastEvent};this.fire("predrag",r),Zt(this._element,this._newPos),this.fire("drag",r)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(r){Ft(document.body,"leaflet-dragging"),this._lastTarget&&(Ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),qv(),du();var a=this._moved&&this._moving;this._moving=!1,Oo._dragging=!1,a&&this.fire("dragend",{noInertia:r,distance:this._newPos.distanceTo(this._startPos)})}});function rb(r,a,u){var h,m=[1,4,2,8],S,D,$,Z,se,ye,Fe,Qe;for(S=0,ye=r.length;S<ye;S++)r[S]._code=Wa(r[S],a);for($=0;$<4;$++){for(Fe=m[$],h=[],S=0,ye=r.length,D=ye-1;S<ye;D=S++)Z=r[S],se=r[D],Z._code&Fe?se._code&Fe||(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)):(se._code&Fe&&(Qe=sh(se,Z,Fe,a,u),Qe._code=Wa(Qe,a),h.push(Qe)),h.push(Z));r=h}return r}function ib(r,a){var u,h,m,S,D,$,Z,se,ye;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var Fe=ie([0,0]),Qe=k(r),Cn=Qe.getNorthWest().distanceTo(Qe.getSouthWest())*Qe.getNorthEast().distanceTo(Qe.getNorthWest());Cn<1700&&(Fe=ag(r));var tn=r.length,lr=[];for(u=0;u<tn;u++){var Ln=ie(r[u]);lr.push(a.project(ie([Ln.lat-Fe.lat,Ln.lng-Fe.lng])))}for($=Z=se=0,u=0,h=tn-1;u<tn;h=u++)m=lr[u],S=lr[h],D=m.y*S.x-S.y*m.x,Z+=(m.x+S.x)*D,se+=(m.y+S.y)*D,$+=D*3;$===0?ye=lr[0]:ye=[Z/$,se/$];var wl=a.unproject(re(ye));return ie([wl.lat+Fe.lat,wl.lng+Fe.lng])}function ag(r){for(var a=0,u=0,h=0,m=0;m<r.length;m++){var S=ie(r[m]);a+=S.lat,u+=S.lng,h++}return ie([a/h,u/h])}var nY={__proto__:null,clipPolygon:rb,polygonCenter:ib,centroid:ag};function ob(r,a){if(!a||!r.length)return r.slice();var u=a*a;return r=oY(r,u),r=iY(r,u),r}function ab(r,a,u){return Math.sqrt(mu(r,a,u,!0))}function rY(r,a,u){return mu(r,a,u)}function iY(r,a){var u=r.length,h=typeof Uint8Array<"u"?Uint8Array:Array,m=new h(u);m[0]=m[u-1]=1,sg(r,m,a,0,u-1);var S,D=[];for(S=0;S<u;S++)m[S]&&D.push(r[S]);return D}function sg(r,a,u,h,m){var S=0,D,$,Z;for($=h+1;$<=m-1;$++)Z=mu(r[$],r[h],r[m],!0),Z>S&&(D=$,S=Z);S>u&&(a[D]=1,sg(r,a,u,h,D),sg(r,a,u,D,m))}function oY(r,a){for(var u=[r[0]],h=1,m=0,S=r.length;h<S;h++)aY(r[h],r[m])>a&&(u.push(r[h]),m=h);return m<S-1&&u.push(r[S-1]),u}var sb;function lb(r,a,u,h,m){var S=h?sb:Wa(r,u),D=Wa(a,u),$,Z,se;for(sb=D;;){if(!(S|D))return[r,a];if(S&D)return!1;$=S||D,Z=sh(r,a,$,u,m),se=Wa(Z,u),$===S?(r=Z,S=se):(a=Z,D=se)}}function sh(r,a,u,h,m){var S=a.x-r.x,D=a.y-r.y,$=h.min,Z=h.max,se,ye;return u&8?(se=r.x+S*(Z.y-r.y)/D,ye=Z.y):u&4?(se=r.x+S*($.y-r.y)/D,ye=$.y):u&2?(se=Z.x,ye=r.y+D*(Z.x-r.x)/S):u&1&&(se=$.x,ye=r.y+D*($.x-r.x)/S),new x(se,ye,m)}function Wa(r,a){var u=0;return r.x<a.min.x?u|=1:r.x>a.max.x&&(u|=2),r.y<a.min.y?u|=4:r.y>a.max.y&&(u|=8),u}function aY(r,a){var u=a.x-r.x,h=a.y-r.y;return u*u+h*h}function mu(r,a,u,h){var m=a.x,S=a.y,D=u.x-m,$=u.y-S,Z=D*D+$*$,se;return Z>0&&(se=((r.x-m)*D+(r.y-S)*$)/Z,se>1?(m=u.x,S=u.y):se>0&&(m+=D*se,S+=$*se)),D=r.x-m,$=r.y-S,h?D*D+$*$:new x(m,S)}function sr(r){return!M(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function cb(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(r)}function ub(r,a){var u,h,m,S,D,$,Z,se;if(!r||r.length===0)throw new Error("latlngs not passed");sr(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var ye=ie([0,0]),Fe=k(r),Qe=Fe.getNorthWest().distanceTo(Fe.getSouthWest())*Fe.getNorthEast().distanceTo(Fe.getNorthWest());Qe<1700&&(ye=ag(r));var Cn=r.length,tn=[];for(u=0;u<Cn;u++){var lr=ie(r[u]);tn.push(a.project(ie([lr.lat-ye.lat,lr.lng-ye.lng])))}for(u=0,h=0;u<Cn-1;u++)h+=tn[u].distanceTo(tn[u+1])/2;if(h===0)se=tn[0];else for(u=0,S=0;u<Cn-1;u++)if(D=tn[u],$=tn[u+1],m=D.distanceTo($),S+=m,S>h){Z=(S-h)/m,se=[$.x-Z*($.x-D.x),$.y-Z*($.y-D.y)];break}var Ln=a.unproject(re(se));return ie([Ln.lat+ye.lat,Ln.lng+ye.lng])}var sY={__proto__:null,simplify:ob,pointToSegmentDistance:ab,closestPointOnSegment:rY,clipSegment:lb,_getEdgeIntersection:sh,_getBitCode:Wa,_sqClosestPointOnSegment:mu,isFlat:sr,_flat:cb,polylineCenter:ub},lg={project:function(r){return new x(r.lng,r.lat)},unproject:function(r){return new H(r.y,r.x)},bounds:new _e([-180,-90],[180,90])},cg={R:6378137,R_MINOR:6356752314245179e-9,bounds:new _e([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,u=this.R,h=r.lat*a,m=this.R_MINOR/u,S=Math.sqrt(1-m*m),D=S*Math.sin(h),$=Math.tan(Math.PI/4-h/2)/Math.pow((1-D)/(1+D),S/2);return h=-u*Math.log(Math.max($,1e-10)),new x(r.lng*a*u,h)},unproject:function(r){for(var a=180/Math.PI,u=this.R,h=this.R_MINOR/u,m=Math.sqrt(1-h*h),S=Math.exp(-r.y/u),D=Math.PI/2-2*Math.atan(S),$=0,Z=.1,se;$<15&&Math.abs(Z)>1e-7;$++)se=m*Math.sin(D),se=Math.pow((1-se)/(1+se),m/2),Z=Math.PI/2-2*Math.atan(S*se)-D,D+=Z;return new H(D*a,r.x*a/u)}},lY={__proto__:null,LonLat:lg,Mercator:cg,SphericalMercator:fe},cY=o({},X,{code:"EPSG:3395",projection:cg,transformation:function(){var r=.5/(Math.PI*cg.R);return Ge(r,.5,-r,.5)}()}),fb=o({},X,{code:"EPSG:4326",projection:lg,transformation:Ge(1/180,1,-1/180,.5)}),uY=o({},O,{projection:lg,transformation:Ge(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var u=a.lng-r.lng,h=a.lat-r.lat;return Math.sqrt(u*u+h*h)},infinite:!0});O.Earth=X,O.EPSG3395=cY,O.EPSG3857=we,O.EPSG900913=be,O.EPSG4326=fb,O.Simple=uY;var kr=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[d(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[d(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var u=this.getEvents();a.on(u,this),this.once("remove",function(){a.off(u,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});st.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=d(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return d(r)in this._layers},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},_addLayers:function(r){r=r?M(r)?r:[r]:[];for(var a=0,u=r.length;a<u;a++)this.addLayer(r[a])},_addZoomLimit:function(r){(!isNaN(r.options.maxZoom)||!isNaN(r.options.minZoom))&&(this._zoomBoundLayers[d(r)]=r,this._updateZoomLevels())},_removeZoomLimit:function(r){var a=d(r);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var r=1/0,a=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var m=this._zoomBoundLayers[h].options;r=m.minZoom===void 0?r:Math.min(r,m.minZoom),a=m.maxZoom===void 0?a:Math.max(a,m.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=r===1/0?void 0:r,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 ml=kr.extend({initialize:function(r,a){w(this,a),this._layers={};var u,h;if(r)for(u=0,h=r.length;u<h;u++)this.addLayer(r[u])},addLayer:function(r){var a=this.getLayerId(r);return this._layers[a]=r,this._map&&this._map.addLayer(r),this},removeLayer:function(r){var a=r in this._layers?r:this.getLayerId(r);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(r){var a=typeof r=="number"?r:this.getLayerId(r);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(r){var a=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[r]&&h[r].apply(h,a);return this},onAdd:function(r){this.eachLayer(r.addLayer,r)},onRemove:function(r){this.eachLayer(r.removeLayer,r)},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},getLayer:function(r){return this._layers[r]},getLayers:function(){var r=[];return this.eachLayer(r.push,r),r},setZIndex:function(r){return this.invoke("setZIndex",r)},getLayerId:function(r){return d(r)}}),fY=function(r,a){return new ml(r,a)},Bi=ml.extend({addLayer:function(r){return this.hasLayer(r)?this:(r.addEventParent(this),ml.prototype.addLayer.call(this,r),this.fire("layeradd",{layer:r}))},removeLayer:function(r){return this.hasLayer(r)?(r in this._layers&&(r=this._layers[r]),r.removeEventParent(this),ml.prototype.removeLayer.call(this,r),this.fire("layerremove",{layer:r})):this},setStyle:function(r){return this.invoke("setStyle",r)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var r=new U;for(var a in this._layers){var u=this._layers[a];r.extend(u.getBounds?u.getBounds():u.getLatLng())}return r}}),dY=function(r,a){return new Bi(r,a)},vl=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(r){w(this,r)},createIcon:function(r){return this._createIcon("icon",r)},createShadow:function(r){return this._createIcon("shadow",r)},_createIcon:function(r,a){var u=this._getIconUrl(r);if(!u){if(r==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(h,r),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(r,a){var u=this.options,h=u[a+"Size"];typeof h=="number"&&(h=[h,h]);var m=re(h),S=re(a==="shadow"&&u.shadowAnchor||u.iconAnchor||m&&m.divideBy(2,!0));r.className="leaflet-marker-"+a+" "+(u.className||""),S&&(r.style.marginLeft=-S.x+"px",r.style.marginTop=-S.y+"px"),m&&(r.style.width=m.x+"px",r.style.height=m.y+"px")},_createImg:function(r,a){return a=a||document.createElement("img"),a.src=r,a},_getIconUrl:function(r){return xe.retina&&this.options[r+"RetinaUrl"]||this.options[r+"Url"]}});function hY(r){return new vl(r)}var vu=vl.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(r){return typeof vu.imagePath!="string"&&(vu.imagePath=this._detectIconPath()),(this.options.imagePath||vu.imagePath)+vl.prototype._getIconUrl.call(this,r)},_stripUrl:function(r){var a=function(u,h,m){var S=h.exec(u);return S&&S[m]};return r=a(r,/^url\((['"])?(.+)\1\)$/,2),r&&a(r,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var r=ht("div","leaflet-default-icon-path",document.body),a=uu(r,"background-image")||uu(r,"backgroundImage");if(document.body.removeChild(r),a=this._stripUrl(a),a)return a;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),db=ei.extend({initialize:function(r){this._marker=r},addHooks:function(){var r=this._marker._icon;this._draggable||(this._draggable=new Oo(r,r,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),qe(r,"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&&Ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(r){var a=this._marker,u=a._map,h=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,S=Ua(a._icon),D=u.getPixelBounds(),$=u.getPixelOrigin(),Z=N(D.min._subtract($).add(m),D.max._subtract($).subtract(m));if(!Z.contains(S)){var se=re((Math.max(Z.max.x,S.x)-Z.max.x)/(D.max.x-Z.max.x)-(Math.min(Z.min.x,S.x)-Z.min.x)/(D.min.x-Z.min.x),(Math.max(Z.max.y,S.y)-Z.max.y)/(D.max.y-Z.max.y)-(Math.min(Z.min.y,S.y)-Z.min.y)/(D.min.y-Z.min.y)).multiplyBy(h);u.panBy(se,{animate:!1}),this._draggable._newPos._add(se),this._draggable._startPos._add(se),Zt(a._icon,this._draggable._newPos),this._onDrag(r),this._panRequest=B(this._adjustPan.bind(this,r))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(r){this._marker.options.autoPan&&(ae(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,r)))},_onDrag:function(r){var a=this._marker,u=a._shadow,h=Ua(a._icon),m=a._map.layerPointToLatLng(h);u&&Zt(u,h),a._latlng=m,r.latlng=m,r.oldLatLng=this._oldLatLng,a.fire("move",r).fire("drag",r)},_onDragEnd:function(r){ae(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",r)}}),lh=kr.extend({options:{icon:new vu,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(r,a){w(this,a),this._latlng=ie(r)},onAdd:function(r){this._zoomAnimated=this._zoomAnimated&&r.options.markerZoomAnimation,this._zoomAnimated&&r.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(r){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&r.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(r){var a=this._latlng;return this._latlng=ie(r),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(r){return this.options.zIndexOffset=r,this.update()},getIcon:function(){return this.options.icon},setIcon:function(r){return this.options.icon=r,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 r=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(r)}return this},_initIcon:function(){var r=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=r.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,r.title&&(u.title=r.title),u.tagName==="IMG"&&(u.alt=r.alt||"")),qe(u,a),r.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,r.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&We(u,"focus",this._panOnFocus,this);var m=r.icon.createShadow(this._shadow),S=!1;m!==this._shadow&&(this._removeShadow(),S=!0),m&&(qe(m,a),m.alt=""),this._shadow=m,r.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&S&&this.getPane(r.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Rt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Rt(this._shadow),this._shadow=null},_setPos:function(r){this._icon&&Zt(this._icon,r),this._shadow&&Zt(this._shadow,r),this._zIndex=r.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(r){this._icon&&(this._icon.style.zIndex=this._zIndex+r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),db)){var r=this.options.draggable;this.dragging&&(r=this.dragging.enabled(),this.dragging.disable()),this.dragging=new db(this),r&&this.dragging.enable()}},setOpacity:function(r){return this.options.opacity=r,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var r=this.options.opacity;this._icon&&ar(this._icon,r),this._shadow&&ar(this._shadow,r)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var r=this._map;if(r){var a=this.options.icon.options,u=a.iconSize?re(a.iconSize):re(0,0),h=a.iconAnchor?re(a.iconAnchor):re(0,0);r.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pY(r,a){return new lh(r,a)}var Io=kr.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(r){this._renderer=r.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(r){return w(this,r),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&r&&Object.prototype.hasOwnProperty.call(r,"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)}}),ch=Io.extend({options:{fill:!0,radius:10},initialize:function(r,a){w(this,a),this._latlng=ie(r),this._radius=this.options.radius},setLatLng:function(r){var a=this._latlng;return this._latlng=ie(r),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(r){return this.options.radius=this._radius=r,this.redraw()},getRadius:function(){return this._radius},setStyle:function(r){var a=r&&r.radius||this._radius;return Io.prototype.setStyle.call(this,r),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var r=this._radius,a=this._radiusY||r,u=this._clickTolerance(),h=[r+u,a+u];this._pxBounds=new _e(this._point.subtract(h),this._point.add(h))},_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(r){return r.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function _Y(r,a){return new ch(r,a)}var ug=ch.extend({initialize:function(r,a,u){if(typeof a=="number"&&(a=o({},u,{radius:a})),w(this,a),this._latlng=ie(r),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(r){return this._mRadius=r,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var r=[this._radius,this._radiusY||this._radius];return new U(this._map.layerPointToLatLng(this._point.subtract(r)),this._map.layerPointToLatLng(this._point.add(r)))},setStyle:Io.prototype.setStyle,_project:function(){var r=this._latlng.lng,a=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===X.distance){var m=Math.PI/180,S=this._mRadius/X.R/m,D=u.project([a+S,r]),$=u.project([a-S,r]),Z=D.add($).divideBy(2),se=u.unproject(Z).lat,ye=Math.acos((Math.cos(S*m)-Math.sin(a*m)*Math.sin(se*m))/(Math.cos(a*m)*Math.cos(se*m)))/m;(isNaN(ye)||ye===0)&&(ye=S/Math.cos(Math.PI/180*a)),this._point=Z.subtract(u.getPixelOrigin()),this._radius=isNaN(ye)?0:Z.x-u.project([se,r-ye]).x,this._radiusY=Z.y-D.y}else{var Fe=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(Fe).x}this._updateBounds()}});function mY(r,a,u){return new ug(r,a,u)}var Vi=Io.extend({options:{smoothFactor:1,noClip:!1},initialize:function(r,a){w(this,a),this._setLatLngs(r)},getLatLngs:function(){return this._latlngs},setLatLngs:function(r){return this._setLatLngs(r),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(r){for(var a=1/0,u=null,h=mu,m,S,D=0,$=this._parts.length;D<$;D++)for(var Z=this._parts[D],se=1,ye=Z.length;se<ye;se++){m=Z[se-1],S=Z[se];var Fe=h(r,m,S,!0);Fe<a&&(a=Fe,u=h(r,m,S))}return u&&(u.distance=Math.sqrt(a)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ub(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(r,a){return a=a||this._defaultShape(),r=ie(r),a.push(r),this._bounds.extend(r),this.redraw()},_setLatLngs:function(r){this._bounds=new U,this._latlngs=this._convertLatLngs(r)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(r){for(var a=[],u=sr(r),h=0,m=r.length;h<m;h++)u?(a[h]=ie(r[h]),this._bounds.extend(a[h])):a[h]=this._convertLatLngs(r[h]);return a},_project:function(){var r=new _e;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,r),this._bounds.isValid()&&r.isValid()&&(this._rawPxBounds=r,this._updateBounds())},_updateBounds:function(){var r=this._clickTolerance(),a=new x(r,r);this._rawPxBounds&&(this._pxBounds=new _e([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(r,a,u){var h=r[0]instanceof H,m=r.length,S,D;if(h){for(D=[],S=0;S<m;S++)D[S]=this._map.latLngToLayerPoint(r[S]),u.extend(D[S]);a.push(D)}else for(S=0;S<m;S++)this._projectLatlngs(r[S],a,u)},_clipPoints:function(){var r=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,u,h,m,S,D,$,Z;for(u=0,m=0,S=this._rings.length;u<S;u++)for(Z=this._rings[u],h=0,D=Z.length;h<D-1;h++)$=lb(Z[h],Z[h+1],r,h,!0),$&&(a[m]=a[m]||[],a[m].push($[0]),($[1]!==Z[h+1]||h===D-2)&&(a[m].push($[1]),m++))}},_simplifyPoints:function(){for(var r=this._parts,a=this.options.smoothFactor,u=0,h=r.length;u<h;u++)r[u]=ob(r[u],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(r,a){var u,h,m,S,D,$,Z=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(u=0,S=this._parts.length;u<S;u++)for($=this._parts[u],h=0,D=$.length,m=D-1;h<D;m=h++)if(!(!a&&h===0)&&ab(r,$[m],$[h])<=Z)return!0;return!1}});function vY(r,a){return new Vi(r,a)}Vi._flat=cb;var gl=Vi.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 ib(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(r){var a=Vi.prototype._convertLatLngs.call(this,r),u=a.length;return u>=2&&a[0]instanceof H&&a[0].equals(a[u-1])&&a.pop(),a},_setLatLngs:function(r){Vi.prototype._setLatLngs.call(this,r),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,u=new x(a,a);if(r=new _e(r.min.subtract(u),r.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,m=this._rings.length,S;h<m;h++)S=rb(this._rings[h],r,!0),S.length&&this._parts.push(S)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(r){var a=!1,u,h,m,S,D,$,Z,se;if(!this._pxBounds||!this._pxBounds.contains(r))return!1;for(S=0,Z=this._parts.length;S<Z;S++)for(u=this._parts[S],D=0,se=u.length,$=se-1;D<se;$=D++)h=u[D],m=u[$],h.y>r.y!=m.y>r.y&&r.x<(m.x-h.x)*(r.y-h.y)/(m.y-h.y)+h.x&&(a=!a);return a||Vi.prototype._containsPoint.call(this,r,!0)}});function gY(r,a){return new gl(r,a)}var Fi=Bi.extend({initialize:function(r,a){w(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=M(r)?r:r.features,u,h,m;if(a){for(u=0,h=a.length;u<h;u++)m=a[u],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var S=this.options;if(S.filter&&!S.filter(r))return this;var D=uh(r,S);return D?(D.feature=hh(r),D.defaultOptions=D.options,this.resetStyle(D),S.onEachFeature&&S.onEachFeature(r,D),this.addLayer(D)):this},resetStyle:function(r){return r===void 0?this.eachLayer(this.resetStyle,this):(r.options=o({},r.defaultOptions),this._setLayerStyle(r,this.options.style),this)},setStyle:function(r){return this.eachLayer(function(a){this._setLayerStyle(a,r)},this)},_setLayerStyle:function(r,a){r.setStyle&&(typeof a=="function"&&(a=a(r.feature)),r.setStyle(a))}});function uh(r,a){var u=r.type==="Feature"?r.geometry:r,h=u?u.coordinates:null,m=[],S=a&&a.pointToLayer,D=a&&a.coordsToLatLng||fg,$,Z,se,ye;if(!h&&!u)return null;switch(u.type){case"Point":return $=D(h),hb(S,r,$,a);case"MultiPoint":for(se=0,ye=h.length;se<ye;se++)$=D(h[se]),m.push(hb(S,r,$,a));return new Bi(m);case"LineString":case"MultiLineString":return Z=fh(h,u.type==="LineString"?0:1,D),new Vi(Z,a);case"Polygon":case"MultiPolygon":return Z=fh(h,u.type==="Polygon"?1:2,D),new gl(Z,a);case"GeometryCollection":for(se=0,ye=u.geometries.length;se<ye;se++){var Fe=uh({geometry:u.geometries[se],type:"Feature",properties:r.properties},a);Fe&&m.push(Fe)}return new Bi(m);case"FeatureCollection":for(se=0,ye=u.features.length;se<ye;se++){var Qe=uh(u.features[se],a);Qe&&m.push(Qe)}return new Bi(m);default:throw new Error("Invalid GeoJSON object.")}}function hb(r,a,u,h){return r?r(a,u):new lh(u,h&&h.markersInheritOptions&&h)}function fg(r){return new H(r[1],r[0],r[2])}function fh(r,a,u){for(var h=[],m=0,S=r.length,D;m<S;m++)D=a?fh(r[m],a-1,u):(u||fg)(r[m]),h.push(D);return h}function dg(r,a){return r=ie(r),r.alt!==void 0?[y(r.lng,a),y(r.lat,a),y(r.alt,a)]:[y(r.lng,a),y(r.lat,a)]}function dh(r,a,u,h){for(var m=[],S=0,D=r.length;S<D;S++)m.push(a?dh(r[S],sr(r[S])?0:a-1,u,h):dg(r[S],h));return!a&&u&&m.length>0&&m.push(m[0].slice()),m}function yl(r,a){return r.feature?o({},r.feature,{geometry:a}):hh(a)}function hh(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var hg={toGeoJSON:function(r){return yl(this,{type:"Point",coordinates:dg(this.getLatLng(),r)})}};lh.include(hg),ug.include(hg),ch.include(hg),Vi.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=dh(this._latlngs,a?1:0,!1,r);return yl(this,{type:(a?"Multi":"")+"LineString",coordinates:u})}}),gl.include({toGeoJSON:function(r){var a=!sr(this._latlngs),u=a&&!sr(this._latlngs[0]),h=dh(this._latlngs,u?2:a?1:0,!0,r);return a||(h=[h]),yl(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),ml.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(u){a.push(u.toGeoJSON(r).geometry.coordinates)}),yl(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var u=a==="GeometryCollection",h=[];return this.eachLayer(function(m){if(m.toGeoJSON){var S=m.toGeoJSON(r);if(u)h.push(S.geometry);else{var D=hh(S);D.type==="FeatureCollection"?h.push.apply(h,D.features):h.push(D)}}}),u?yl(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function pb(r,a){return new Fi(r,a)}var yY=pb,ph=kr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,u){this._url=r,this._bounds=k(a),w(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Rt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&pl(this._image),this},bringToBack:function(){return this._map&&_l(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=k(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:ht("img");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onload=c(this.fire,this,"load"),a.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;$a(this._image,u,a)},_reset:function(){var r=this._image,a=new _e(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=a.getSize();Zt(r,a.min),r.style.width=u.x+"px",r.style.height=u.y+"px"},_updateOpacity:function(){ar(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 r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),SY=function(r,a,u){return new ph(r,a,u)},_b=ph.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:ht("video");if(qe(a,"leaflet-image-layer"),this._zoomAnimated&&qe(a,"leaflet-zoom-animated"),this.options.className&&qe(a,this.options.className),a.onselectstart=v,a.onmousemove=v,a.onloadeddata=c(this.fire,this,"load"),r){for(var u=a.getElementsByTagName("source"),h=[],m=0;m<u.length;m++)h.push(u[m].src);this._url=u.length>0?h:[a.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var S=0;S<this._url.length;S++){var D=ht("source");D.src=this._url[S],a.appendChild(D)}}});function wY(r,a,u){return new _b(r,a,u)}var mb=ph.extend({_initImage:function(){var r=this._image=this._url;qe(r,"leaflet-image-layer"),this._zoomAnimated&&qe(r,"leaflet-zoom-animated"),this.options.className&&qe(r,this.options.className),r.onselectstart=v,r.onmousemove=v}});function EY(r,a,u){return new mb(r,a,u)}var ti=kr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(r,a){r&&(r instanceof H||M(r))?(this._latlng=ie(r),w(this,a)):(w(this,r),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(r){return r=arguments.length?r:this._source._map,r.hasLayer(this)||r.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(r){return this._map?this.close():(arguments.length?this._source=r:r=this._source,this._prepareOpen(),this.openOn(r._map)),this},onAdd:function(r){this._zoomAnimated=r._zoomAnimated,this._container||this._initLayout(),r._fadeAnimated&&ar(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),r._fadeAnimated&&ar(this._container,1),this.bringToFront(),this.options.interactive&&(qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(r){r._fadeAnimated?(ar(this._container,0),this._removeTimeout=setTimeout(c(Rt,void 0,this._container),200)):Rt(this._container),this.options.interactive&&(Ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(r){return this._latlng=ie(r),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(r){return this._content=r,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 r={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pl(this._container),this},bringToBack:function(){return this._map&&_l(this._container),this},_prepareOpen:function(r){var a=this._source;if(!a._map)return!1;if(a instanceof Bi){a=null;var u=this._source._layers;for(var h in u)if(u[h]._map){a=u[h];break}if(!a)return!1;this._source=a}if(!r)if(a.getCenter)r=a.getCenter();else if(a.getLatLng)r=a.getLatLng();else if(a.getBounds)r=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(r),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var r=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof a=="string")r.innerHTML=a;else{for(;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var r=this._map.latLngToLayerPoint(this._latlng),a=re(this.options.offset),u=this._getAnchor();this._zoomAnimated?Zt(this._container,r.add(u)):a=a.add(r).add(u);var h=this._containerBottom=-a.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=h+"px",this._container.style.left=m+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(r,a,u,h){var m=a;return m instanceof r||(m=new r(h).setContent(a)),u&&m.setLatLng(u),m}}),kr.include({_initOverlay:function(r,a,u,h){var m=u;return m instanceof r?(w(m,h),m._source=this):(m=a&&!h?a:new r(h,this),m.setContent(u)),m}});var _h=ti.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(r){return r=arguments.length?r:this._source._map,!r.hasLayer(this)&&r._popup&&r._popup.options.autoClose&&r.removeLayer(r._popup),r._popup=this,ti.prototype.openOn.call(this,r)},onAdd:function(r){ti.prototype.onAdd.call(this,r),r.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Io||this._source.on("preclick",za))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Io||this._source.off("preclick",za))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(r.preclick=this.close),this.options.keepInView&&(r.moveend=this._adjustPan),r},_initLayout:function(){var r="leaflet-popup",a=this._container=ht("div",r+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=ht("div",r+"-content-wrapper",a);if(this._contentNode=ht("div",r+"-content",u),pu(a),ng(this._contentNode),We(a,"contextmenu",za),this._tipContainer=ht("div",r+"-tip-container",a),this._tip=ht("div",r+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=ht("a",r+"-close-button",a);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',We(h,"click",function(m){cn(m),this.close()},this)}},_updateLayout:function(){var r=this._contentNode,a=r.style;a.width="",a.whiteSpace="nowrap";var u=r.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),a.width=u+1+"px",a.whiteSpace="",a.height="";var h=r.offsetHeight,m=this.options.maxHeight,S="leaflet-popup-scrolled";m&&h>m?(a.height=m+"px",qe(r,S)):Ft(r,S),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),u=this._getAnchor();Zt(this._container,a.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(uu(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+a,h=this._containerWidth,m=new x(this._containerLeft,-u-this._containerBottom);m._add(Ua(this._container));var S=r.layerPointToContainerPoint(m),D=re(this.options.autoPanPadding),$=re(this.options.autoPanPaddingTopLeft||D),Z=re(this.options.autoPanPaddingBottomRight||D),se=r.getSize(),ye=0,Fe=0;S.x+h+Z.x>se.x&&(ye=S.x+h-se.x+Z.x),S.x-ye-$.x<0&&(ye=S.x-$.x),S.y+u+Z.y>se.y&&(Fe=S.y+u-se.y+Z.y),S.y-Fe-$.y<0&&(Fe=S.y-$.y),(ye||Fe)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([ye,Fe]))}},_getAnchor:function(){return re(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),TY=function(r,a){return new _h(r,a)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(r,a,u){return this._initOverlay(_h,r,a,u).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),kr.include({bindPopup:function(r,a){return this._popup=this._initOverlay(_h,this._popup,r,a),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(r){return this._popup&&(this instanceof Bi||(this._popup._source=this),this._popup._prepareOpen(r||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(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){Ha(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var mh=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){ti.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){ti.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=ti.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,u,h=this._map,m=this._container,S=h.latLngToContainerPoint(h.getCenter()),D=h.layerPointToContainerPoint(r),$=this.options.direction,Z=m.offsetWidth,se=m.offsetHeight,ye=re(this.options.offset),Fe=this._getAnchor();$==="top"?(a=Z/2,u=se):$==="bottom"?(a=Z/2,u=0):$==="center"?(a=Z/2,u=se/2):$==="right"?(a=0,u=se/2):$==="left"?(a=Z,u=se/2):D.x<S.x?($="right",a=0,u=se/2):($="left",a=Z+(ye.x+Fe.x)*2,u=se/2),r=r.subtract(re(a,u,!0)).add(ye).add(Fe),Ft(m,"leaflet-tooltip-right"),Ft(m,"leaflet-tooltip-left"),Ft(m,"leaflet-tooltip-top"),Ft(m,"leaflet-tooltip-bottom"),qe(m,"leaflet-tooltip-"+$),Zt(m,r)},_updatePosition:function(){var r=this._map.latLngToLayerPoint(this._latlng);this._setPosition(r)},setOpacity:function(r){this.options.opacity=r,this._container&&ar(this._container,r)},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center);this._setPosition(a)},_getAnchor:function(){return re(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),bY=function(r,a){return new mh(r,a)};st.include({openTooltip:function(r,a,u){return this._initOverlay(mh,r,a,u).openOn(this),this},closeTooltip:function(r){return r.close(),this}}),kr.include({bindTooltip:function(r,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mh,this._tooltip,r,a),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(r){if(!(!r&&this._tooltipHandlersAdded)){var a=r?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[a](u),this._tooltipHandlersAdded=!r}},openTooltip:function(r){return this._tooltip&&(this instanceof Bi||(this._tooltip._source=this),this._tooltip._prepareOpen(r)&&(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(r){return this._tooltip&&this._tooltip.setContent(r),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&(We(a,"focus",function(){this._tooltip._source=r,this.openTooltip()},this),We(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(r){var a=typeof r.getElement=="function"&&r.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(r){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(r)});return}this._tooltip._source=r.layer||r.target,this.openTooltip(this._tooltip.options.sticky?r.latlng:void 0)}},_moveTooltip:function(r){var a=r.latlng,u,h;this._tooltip.options.sticky&&r.originalEvent&&(u=this._map.mouseEventToContainerPoint(r.originalEvent),h=this._map.containerPointToLayerPoint(u),a=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(a)}});var vb=vl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(r){var a=r&&r.tagName==="DIV"?r:document.createElement("div"),u=this.options;if(u.html instanceof Element?(nh(a),a.appendChild(u.html)):a.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=re(u.bgPos);a.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function NY(r){return new vb(r)}vl.Default=vu;var gu=kr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xe.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(r){w(this,r)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(r){r._addZoomLimit(this)},onRemove:function(r){this._removeAllTiles(),Rt(this._container),r._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_l(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(r){return this.options.opacity=r,this._updateOpacity(),this},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var r=this._clampZoom(this._map.getZoom());r!==this._tileZoom&&(this._tileZoom=r,this._updateLevels()),this._update()}return this},getEvents:function(){var r={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),r.move=this._onMove),this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},createTile:function(){return document.createElement("div")},getTileSize:function(){var r=this.options.tileSize;return r instanceof x?r:new x(r,r)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(r){for(var a=this.getPane().children,u=-r(-1/0,1/0),h=0,m=a.length,S;h<m;h++)S=a[h].style.zIndex,a[h]!==this._container&&S&&(u=r(u,+S));isFinite(u)&&(this.options.zIndex=u+r(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!xe.ielt9){ar(this._container,this.options.opacity);var r=+new Date,a=!1,u=!1;for(var h in this._tiles){var m=this._tiles[h];if(!(!m.current||!m.loaded)){var S=Math.min(1,(r-m.loaded)/200);ar(m.el,S),S<1?a=!0:(m.active?u=!0:this._onOpaqueTile(m),m.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),a&&(ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var r=this._tileZoom,a=this.options.maxZoom;if(r!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===r?(this._levels[u].el.style.zIndex=a-Math.abs(r-u),this._onUpdateLevel(u)):(Rt(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[r],m=this._map;return h||(h=this._levels[r]={},h.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=a,h.origin=m.project(m.unproject(m.getPixelOrigin()),r).round(),h.zoom=r,this._setZoomTransform(h,m.getCenter(),m.getZoom()),v(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var r,a,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(r in this._tiles)a=this._tiles[r],a.retain=a.current;for(r in this._tiles)if(a=this._tiles[r],a.current&&!a.active){var h=a.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(r in this._tiles)this._tiles[r].retain||this._removeTile(r)}},_removeTilesAtZoom:function(r){for(var a in this._tiles)this._tiles[a].coords.z===r&&this._removeTile(a)},_removeAllTiles:function(){for(var r in this._tiles)this._removeTile(r)},_invalidateAll:function(){for(var r in this._levels)Rt(this._levels[r].el),this._onRemoveLevel(Number(r)),delete this._levels[r];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(r,a,u,h){var m=Math.floor(r/2),S=Math.floor(a/2),D=u-1,$=new x(+m,+S);$.z=+D;var Z=this._tileCoordsToKey($),se=this._tiles[Z];return se&&se.active?(se.retain=!0,!0):(se&&se.loaded&&(se.retain=!0),D>h?this._retainParent(m,S,D,h):!1)},_retainChildren:function(r,a,u,h){for(var m=2*r;m<2*r+2;m++)for(var S=2*a;S<2*a+2;S++){var D=new x(m,S);D.z=u+1;var $=this._tileCoordsToKey(D),Z=this._tiles[$];if(Z&&Z.active){Z.retain=!0;continue}else Z&&Z.loaded&&(Z.retain=!0);u+1<h&&this._retainChildren(m,S,u+1,h)}},_resetView:function(r){var a=r&&(r.pinch||r.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(r){this._setView(r.center,r.zoom,!0,r.noUpdate)},_clampZoom:function(r){var a=this.options;return a.minNativeZoom!==void 0&&r<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<r?a.maxNativeZoom:r},_setView:function(r,a,u,h){var m=Math.round(a);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 S=this.options.updateWhenZooming&&m!==this._tileZoom;(!h||S)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(r),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(r,a)},_setZoomTransforms:function(r,a){for(var u in this._levels)this._setZoomTransform(this._levels[u],r,a)},_setZoomTransform:function(r,a,u){var h=this._map.getZoomScale(u,r.zoom),m=r.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(a,u)).round();xe.any3d?$a(r.el,m,h):Zt(r.el,m)},_resetGrid:function(){var r=this._map,a=r.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(r.project([0,a.wrapLng[0]],h).x/u.x),Math.ceil(r.project([0,a.wrapLng[1]],h).x/u.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(r.project([a.wrapLat[0],0],h).y/u.x),Math.ceil(r.project([a.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(r){var a=this._map,u=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),h=a.getZoomScale(u,this._tileZoom),m=a.project(r,this._tileZoom).floor(),S=a.getSize().divideBy(h*2);return new _e(m.subtract(S),m.add(S))},_update:function(r){var a=this._map;if(a){var u=this._clampZoom(a.getZoom());if(r===void 0&&(r=a.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(r),m=this._pxBoundsToTileRange(h),S=m.getCenter(),D=[],$=this.options.keepBuffer,Z=new _e(m.getBottomLeft().subtract([$,-$]),m.getTopRight().add([$,-$]));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 ye=this._tiles[se].coords;(ye.z!==this._tileZoom||!Z.contains(new x(ye.x,ye.y)))&&(this._tiles[se].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(r,u);return}for(var Fe=m.min.y;Fe<=m.max.y;Fe++)for(var Qe=m.min.x;Qe<=m.max.x;Qe++){var Cn=new x(Qe,Fe);if(Cn.z=this._tileZoom,!!this._isValidTile(Cn)){var tn=this._tiles[this._tileCoordsToKey(Cn)];tn?tn.current=!0:D.push(Cn)}}if(D.sort(function(Ln,wl){return Ln.distanceTo(S)-wl.distanceTo(S)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var lr=document.createDocumentFragment();for(Qe=0;Qe<D.length;Qe++)this._addTile(D[Qe],lr);this._level.el.appendChild(lr)}}}},_isValidTile:function(r){var a=this._map.options.crs;if(!a.infinite){var u=this._globalTileRange;if(!a.wrapLng&&(r.x<u.min.x||r.x>u.max.x)||!a.wrapLat&&(r.y<u.min.y||r.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(r);return k(this.options.bounds).overlaps(h)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,u=this.getTileSize(),h=r.scaleBy(u),m=h.add(u),S=a.unproject(h,r.z),D=a.unproject(m,r.z);return[S,D]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),u=new U(a[0],a[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),u=new x(+a[0],+a[1]);return u.z=+a[2],u},_removeTile:function(r){var a=this._tiles[r];a&&(Rt(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){qe(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=v,r.onmousemove=v,xe.ielt9&&this.options.opacity<1&&ar(r,this.options.opacity)},_addTile:function(r,a){var u=this._getTilePos(r),h=this._tileCoordsToKey(r),m=this.createTile(this._wrapCoords(r),c(this._tileReady,this,r));this._initTile(m),this.createTile.length<2&&B(c(this._tileReady,this,r,null,m)),Zt(m,u),this._tiles[h]={el:m,coords:r,current:!0},a.appendChild(m),this.fire("tileloadstart",{tile:m,coords:r})},_tileReady:function(r,a,u){a&&this.fire("tileerror",{error:a,tile:u,coords:r});var h=this._tileCoordsToKey(r);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(ar(u.el,0),ae(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),a||(qe(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xe.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new x(this._wrapX?_(r.x,this._wrapX):r.x,this._wrapY?_(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new _e(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function kY(r){return new gu(r)}var Sl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=w(this,a),a.detectRetina&&xe.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var u=document.createElement("img");return We(u,"load",c(this._tileOnLoad,this,a,u)),We(u,"error",c(this._tileOnError,this,a,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(r),u},getTileUrl:function(r){var a={r:xe.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=u),a["-y"]=u}return C(this._url,o(a,this.options))},_tileOnLoad:function(r,a){xe.ielt9?setTimeout(c(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,u){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),r(u,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(r=a-r),r+h},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=v,a.onerror=v,!a.complete)){a.src=G;var u=this._tiles[r].coords;Rt(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:u})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",G),gu.prototype._removeTile.call(this,r)},_tileReady:function(r,a,u){if(!(!this._map||u&&u.getAttribute("src")===G))return gu.prototype._tileReady.call(this,r,a,u)}});function gb(r,a){return new Sl(r,a)}var yb=Sl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var u=o({},this.defaultWmsParams);for(var h in a)h in this.options||(u[h]=a[h]);a=w(this,a);var m=a.detectRetina&&xe.retina?2:1,S=this.getTileSize();u.width=S.x*m,u.height=S.y*m,this.wmsParams=u},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Sl.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),u=this._crs,h=N(u.project(a[0]),u.project(a[1])),m=h.min,S=h.max,D=(this._wmsVersion>=1.3&&this._crs===fb?[m.y,m.x,S.y,S.x]:[m.x,m.y,S.x,S.y]).join(","),$=Sl.prototype.getTileUrl.call(this,r);return $+T(this.wmsParams,$,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(r,a){return o(this.wmsParams,r),a||this.redraw(),this}});function CY(r,a){return new yb(r,a)}Sl.WMS=yb,gb.wms=CY;var Yi=kr.extend({options:{padding:.1},initialize:function(r){w(this,r),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),qe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var u=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,a),S=h.multiplyBy(-u).add(m).subtract(this._map._getNewPixelOrigin(r,a));xe.any3d?$a(this._container,S,u):Zt(this._container,S)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),u=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new _e(u,u.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Sb=Yi.extend({options:{tolerance:0},getEvents:function(){var r=Yi.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");We(r,"mousemove",this._onMouseMove,this),We(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),We(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){ae(this._redrawRequest),delete this._ctx,Rt(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=this._container,u=r.getSize(),h=xe.retina?2:1;Zt(a,r.min),a.width=h*u.x,a.height=h*u.y,a.style.width=u.x+"px",a.style.height=u.y+"px",xe.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Yi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[d(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,u=a.next,h=a.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete r._order,delete this._layers[d(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),u=[],h,m;for(m=0;m<a.length;m++){if(h=Number(a[m]),isNaN(h))return;u.push(h)}r.options._dashArray=u}else r.options._dashArray=r.options.dashArray},_requestRedraw:function(r){this._map&&(this._extendRedrawBounds(r),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(r){if(r._pxBounds){var a=(r.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new _e,this._redrawBounds.extend(r._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(r._pxBounds.max.add([a,a]))}},_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 r=this._redrawBounds;if(r){var a=r.getSize();this._ctx.clearRect(r.min.x,r.min.y,a.x,a.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 r,a=this._redrawBounds;if(this._ctx.save(),a){var u=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)r=h.layer,(!a||r._pxBounds&&r._pxBounds.intersects(a))&&r._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(r,a){if(this._drawing){var u,h,m,S,D=r._parts,$=D.length,Z=this._ctx;if($){for(Z.beginPath(),u=0;u<$;u++){for(h=0,m=D[u].length;h<m;h++)S=D[u][h],Z[h?"lineTo":"moveTo"](S.x,S.y);a&&Z.closePath()}this._fillStroke(Z,r)}}},_updateCircle:function(r){if(!(!this._drawing||r._empty())){var a=r._point,u=this._ctx,h=Math.max(Math.round(r._radius),1),m=(Math.max(Math.round(r._radiusY),1)||h)/h;m!==1&&(u.save(),u.scale(1,m)),u.beginPath(),u.arc(a.x,a.y/m,h,0,Math.PI*2,!1),m!==1&&u.restore(),this._fillStroke(u,r)}},_fillStroke:function(r,a){var u=a.options;u.fill&&(r.globalAlpha=u.fillOpacity,r.fillStyle=u.fillColor||u.color,r.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(r.setLineDash&&r.setLineDash(a.options&&a.options._dashArray||[]),r.globalAlpha=u.opacity,r.lineWidth=u.weight,r.strokeStyle=u.color,r.lineCap=u.lineCap,r.lineJoin=u.lineJoin,r.stroke())},_onClick:function(r){for(var a=this._map.mouseEventToLayerPoint(r),u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(!(r.type==="click"||r.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,r)},_onMouseMove:function(r){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(r);this._handleMouseHover(r,a)}},_handleMouseOut:function(r){var a=this._hoveredLayer;a&&(Ft(this._container,"leaflet-interactive"),this._fireEvent([a],r,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(r,a){if(!this._mouseHoverThrottled){for(var u,h,m=this._drawFirst;m;m=m.next)u=m.layer,u.options.interactive&&u._containsPoint(a)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(r),h&&(qe(this._container,"leaflet-interactive"),this._fireEvent([h],r,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,r),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(r,a,u){this._map._fireDOMEvent(a,u||a.type,r)},_bringToFront:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(r)}},_bringToBack:function(r){var a=r._order;if(a){var u=a.next,h=a.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(r)}}});function wb(r){return xe.canvas?new Sb(r):null}var yu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(r){return document.createElement("<lvml:"+r+' class="lvml">')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),PY={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yi.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=yu("shape");qe(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=yu("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;Rt(a),r.removeInteractiveTarget(a),delete this._layers[d(r)]},_updateStyle:function(r){var a=r._stroke,u=r._fill,h=r.options,m=r._container;m.stroked=!!h.stroke,m.filled=!!h.fill,h.stroke?(a||(a=r._stroke=yu("stroke")),m.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=M(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(m.removeChild(a),r._stroke=null),h.fill?(u||(u=r._fill=yu("fill")),m.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(m.removeChild(u),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),u=Math.round(r._radius),h=Math.round(r._radiusY||u);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){pl(r._container)},_bringToBack:function(r){_l(r._container)}},vh=xe.vml?yu:ze,Su=Yi.extend({_initContainer:function(){this._container=vh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Rt(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Yi.prototype._update.call(this);var r=this._bounds,a=r.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,u.setAttribute("width",a.x),u.setAttribute("height",a.y)),Zt(u,r.min),u.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=vh("path");r.options.className&&qe(a,r.options.className),r.options.interactive&&qe(a,"leaflet-interactive"),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Rt(r._path),r.removeInteractiveTarget(r._path),delete this._layers[d(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,u=r.options;a&&(u.stroke?(a.setAttribute("stroke",u.color),a.setAttribute("stroke-opacity",u.opacity),a.setAttribute("stroke-width",u.weight),a.setAttribute("stroke-linecap",u.lineCap),a.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?a.setAttribute("stroke-dasharray",u.dashArray):a.removeAttribute("stroke-dasharray"),u.dashOffset?a.setAttribute("stroke-dashoffset",u.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),u.fill?(a.setAttribute("fill",u.fillColor||u.color),a.setAttribute("fill-opacity",u.fillOpacity),a.setAttribute("fill-rule",u.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,Wt(r._parts,a))},_updateCircle:function(r){var a=r._point,u=Math.max(Math.round(r._radius),1),h=Math.max(Math.round(r._radiusY),1)||u,m="a"+u+","+h+" 0 1,0 ",S=r._empty()?"M0 0":"M"+(a.x-u)+","+a.y+m+u*2+",0 "+m+-u*2+",0 ";this._setPath(r,S)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){pl(r._path)},_bringToBack:function(r){_l(r._path)}});xe.vml&&Su.include(PY);function Eb(r){return xe.svg||xe.vml?new Su(r):null}st.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&wb(r)||Eb(r)}});var Tb=gl.extend({initialize:function(r,a){gl.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))},_boundsToLatLngs:function(r){return r=k(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function DY(r,a){return new Tb(r,a)}Su.create=vh,Su.pointsToPath=Wt,Fi.geometryToLayer=uh,Fi.coordsToLatLng=fg,Fi.coordsToLatLngs=fh,Fi.latLngToCoords=dg,Fi.latLngsToCoords=dh,Fi.getFeature=yl,Fi.asFeature=hh,st.mergeOptions({boxZoom:!0});var bb=ei.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Rt(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(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),fu(),jv(),this._startPoint=this._map.mouseEventToContainerPoint(r),We(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new _e(this._point,this._startPoint),u=a.getSize();Zt(this._box,a.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Rt(this._box),Ft(this._container,"leaflet-crosshair")),du(),qv(),bt(document,{contextmenu:Ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var a=new U(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",bb),st.mergeOptions({doubleClickZoom:!0});var Nb=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,u=a.getZoom(),h=a.options.zoomDelta,m=r.originalEvent.shiftKey?u-h:u+h;a.options.doubleClickZoom==="center"?a.setZoom(m):a.setZoomAround(r.containerPoint,m)}});st.addInitHook("addHandler","doubleClickZoom",Nb),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var kb=ei.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new Oo(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ft(this._map._container,"leaflet-grab"),Ft(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 r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=k(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.x<a.min.x&&(r.x=this._viscousLimit(r.x,a.min.x)),r.y<a.min.y&&(r.y=this._viscousLimit(r.y,a.min.y)),r.x>a.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,m=(h-a+u)%r+a-u,S=(h+a+u)%r-a-u,D=Math.abs(m+u)<Math.abs(S+u)?m:S;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=D},_onDragEnd:function(r){var a=this._map,u=a.options,h=!u.inertia||r.noInertia||this._times.length<2;if(a.fire("dragend",r),h)a.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),S=(this._lastTime-this._times[0])/1e3,D=u.easeLinearity,$=m.multiplyBy(D/S),Z=$.distanceTo([0,0]),se=Math.min(u.inertiaMaxSpeed,Z),ye=$.multiplyBy(se/Z),Fe=se/(u.inertiaDeceleration*D),Qe=ye.multiplyBy(-Fe/2).round();!Qe.x&&!Qe.y?a.fire("moveend"):(Qe=a._limitOffset(Qe,a.options.maxBounds),B(function(){a.panBy(Qe,{duration:Fe,easeLinearity:D,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",kb),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cb=ei.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(r){this._map=r,this._setPanDelta(r.options.keyboardPanDelta),this._setZoomDelta(r.options.zoomDelta)},addHooks:function(){var r=this._map._container;r.tabIndex<=0&&(r.tabIndex="0"),We(r,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),bt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var r=document.body,a=document.documentElement,u=r.scrollTop||a.scrollTop,h=r.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(r){var a=this._panKeys={},u=this.keyCodes,h,m;for(h=0,m=u.left.length;h<m;h++)a[u.left[h]]=[-1*r,0];for(h=0,m=u.right.length;h<m;h++)a[u.right[h]]=[r,0];for(h=0,m=u.down.length;h<m;h++)a[u.down[h]]=[0,r];for(h=0,m=u.up.length;h<m;h++)a[u.up[h]]=[0,-1*r]},_setZoomDelta:function(r){var a=this._zoomKeys={},u=this.keyCodes,h,m;for(h=0,m=u.zoomIn.length;h<m;h++)a[u.zoomIn[h]]=r;for(h=0,m=u.zoomOut.length;h<m;h++)a[u.zoomOut[h]]=-r},_addHooks:function(){We(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(r){if(!(r.altKey||r.ctrlKey||r.metaKey)){var a=r.keyCode,u=this._map,h;if(a in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[a],r.shiftKey&&(h=re(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(re(h),u.options.maxBounds)),u.options.worldCopyJump){var m=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(m)}else u.panBy(h)}else if(a in this._zoomKeys)u.setZoom(u.getZoom()+(r.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;Ha(r)}}});st.addInitHook("addHandler","keyboard",Cb),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pb=ei.extend({addHooks:function(){We(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(r){var a=JT(r),u=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(r),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),h),Ha(r)},_performZoom:function(){var r=this._map,a=r.getZoom(),u=this._map.options.zoomSnap||0;r._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,S=u?Math.ceil(m/u)*u:m,D=r._limitZoom(a+(this._delta>0?S:-S))-a;this._delta=0,this._startTime=null,D&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+D):r.setZoomAround(this._lastMousePos,a+D))}});st.addInitHook("addHandler","scrollWheelZoom",Pb);var xY=600;st.mergeOptions({tapHold:xe.touchNative&&xe.safari&&xe.mobile,tapTolerance:15});var Db=ei.extend({addHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new x(a.clientX,a.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(We(document,"touchend",cn),We(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),xY),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){bt(document,"touchend",cn),bt(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new x(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var u=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});u._simulated=!0,a.target.dispatchEvent(u)}});st.addInitHook("addHandler","tapHold",Db),st.mergeOptions({touchZoom:xe.touch,bounceAtZoomLimits:!0});var xb=ei.extend({addHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ft(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),We(document,"touchmove",this._onTouchMove,this),We(document,"touchend touchcancel",this._onTouchEnd,this),cn(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]),m=u.distanceTo(h)/this._startDist;if(this._zoom=a.getScaleZoom(m,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&m<1||this._zoom>a.getMaxZoom()&&m>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var S=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(m===1&&S.x===0&&S.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(S),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),ae(this._animRequest);var D=c(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(D,this,!0),cn(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ae(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});st.addInitHook("addHandler","touchZoom",xb),st.BoxZoom=bb,st.DoubleClickZoom=Nb,st.Drag=kb,st.Keyboard=Cb,st.ScrollWheelZoom=Pb,st.TapHold=Db,st.TouchZoom=xb,n.Bounds=_e,n.Browser=xe,n.CRS=O,n.Canvas=Sb,n.Circle=ug,n.CircleMarker=ch,n.Class=P,n.Control=Nr,n.DivIcon=vb,n.DivOverlay=ti,n.DomEvent=j2,n.DomUtil=Z2,n.Draggable=Oo,n.Evented=W,n.FeatureGroup=Bi,n.GeoJSON=Fi,n.GridLayer=gu,n.Handler=ei,n.Icon=vl,n.ImageOverlay=ph,n.LatLng=H,n.LatLngBounds=U,n.Layer=kr,n.LayerGroup=ml,n.LineUtil=sY,n.Map=st,n.Marker=lh,n.Mixin=tY,n.Path=Io,n.Point=x,n.PolyUtil=nY,n.Polygon=gl,n.Polyline=Vi,n.Popup=_h,n.PosAnimation=QT,n.Projection=lY,n.Rectangle=Tb,n.Renderer=Yi,n.SVG=Su,n.SVGOverlay=mb,n.TileLayer=Sl,n.Tooltip=mh,n.Transformation=Oe,n.Util=he,n.VideoOverlay=_b,n.bind=c,n.bounds=N,n.canvas=wb,n.circle=mY,n.circleMarker=_Y,n.control=_u,n.divIcon=NY,n.extend=o,n.featureGroup=dY,n.geoJSON=pb,n.geoJson=yY,n.gridLayer=kY,n.icon=hY,n.imageOverlay=SY,n.latLng=ie,n.latLngBounds=k,n.layerGroup=fY,n.map=q2,n.marker=pY,n.point=re,n.polygon=gY,n.polyline=vY,n.popup=TY,n.rectangle=DY,n.setOptions=w,n.stamp=d,n.svg=Eb,n.svgOverlay=EY,n.tileLayer=gb,n.tooltip=bY,n.transformation=Ge,n.version=i,n.videoOverlay=wY;var OY=window.L;n.noConflict=function(){return window.L=OY,this},window.L=n})}($l,$l.exports)),$l.exports}var XO=KO();const Ul=jO(XO),JO=l.defineComponent({__name:"CapeRecordMap",props:{lat:{},long:{},zoom:{},icon:{}},setup(e){const t=e,n=l.ref(null);let i=null,o=null;function s(){if(i){i.setView([t.lat,t.long],t.zoom),o&&o.setLatLng([t.lat,t.long]);return}if(n.value){i=Ul.map(n.value).setView([t.lat,t.long],t.zoom),Ul.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors"}).addTo(i);const c=t.icon??new Ul.Icon.Default;o=Ul.marker([t.lat,t.long],{icon:c}).addTo(i)}}return l.onMounted(()=>{s()}),l.watch(()=>[t.lat,t.long,t.zoom,t.icon],()=>{if(i){if(i.setView([t.lat,t.long],t.zoom),o){o.setLatLng([t.lat,t.long]);const c=t.icon??new Ul.Icon.Default;o.setIcon(c)}}else s()}),(c,f)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"mapRef",ref:n,class:"leaflet-map"},null,512))}}),QO={key:0,class:"cape-next-result"},eI={key:1,class:"cape-next-result cape-next-result-null"},tI=l.defineComponent({__name:"CapeNextResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in search results"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",QO,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",eI,[l.renderSlot(o.$slots,"otherwise")]))}}}),nI={key:0,class:"cape-previous-result"},rI={key:1,class:"cape-previous-result cape-previous-result-null"},iI=l.defineComponent({__name:"CapePreviousResult",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=mn(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",nI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",rI,[l.renderSlot(o.$slots,"otherwise")]))}}}),oI={key:0,class:"cape-previous-record"},aI={key:1,class:"cape-previous-record cape-previous-record-null"},sI=l.defineComponent({__name:"CapePreviousRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Previous record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.previous(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",oI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",aI,[l.renderSlot(o.$slots,"otherwise")]))}}}),lI={key:0,class:"cape-next-record"},cI={key:1,class:"cape-next-record cape-next-record-null"},uI=l.defineComponent({__name:"CapeNextRecord",props:{record:{type:Object,required:!0},linkTitle:{type:String,required:!1,default:"Next record in dataset"}},setup(e){const t=oi(),n=e,i=l.computed(()=>{if(n.record!==void 0)return t.next(n.record)});return(o,s)=>{const c=l.resolveComponent("cape-record-label"),f=l.resolveComponent("cape-record-link");return i.value!==void 0?(l.openBlock(),l.createElementBlock("div",lI,[l.renderSlot(o.$slots,"before"),l.createVNode(f,{record:i.value,title:e.linkTitle},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"link",{},()=>[l.createVNode(c,{record:i.value},null,8,["record"])])]),_:3},8,["record","title"]),l.renderSlot(o.$slots,"after")])):(l.openBlock(),l.createElementBlock("div",cI,[l.renderSlot(o.$slots,"otherwise")]))}}}),ul=class ul{static add(t){ul.functions.push(t)}static all(){return ul.functions}static async execute(t,n){for(const i of ul.all().sort((o,s)=>o.priority-s.priority))try{await i.action(t,n)}catch(o){console.error("Error executing action:",o);return}}};Ke(ul,"functions",[]);let zl=ul;const w0={High:10,Low:1e3},Ba=class Ba{static async fetchIndexPageTitle(){if(Ba.indexHtmlTitle)return Ba.indexHtmlTitle;try{const t=await fetch("/index.html");if(!t.ok)return;const n=await t.text(),s=new DOMParser().parseFromString(n,"text/html").querySelector("title");return Ba.indexHtmlTitle=(s==null?void 0:s.text)||void 0,Ba.indexHtmlTitle}catch{return}}static async getPageTitle(t,n){const{name:i,params:o,meta:s}=t;if(i==="record"&&n.recordPageTitleExpression){const d=o==null?void 0:o.id;if(!d)throw new Error("Record ID is required but not specified.");if(Zi().status!=="OK")throw new Error("Dataset data not loaded. Cannot continue to build page title.");const v=oi().byId(d);return n.recordPageTitleExpression(v)}if(s!=null&&s.title)return s.title;const c=await this.fetchIndexPageTitle();return c||nn().title}};Ke(Ba,"indexHtmlTitle");let Ep=Ba;const fI={class:"cape-labelled-value"},dI={key:0,class:"cape-error cape-labelled-value-error"},hI=["title"],pI={key:1,class:"cape-labelled-value-label"},_I=l.defineComponent({__name:"CapeLabelledContent",props:{fieldValue:{},link:{}},setup(e){const t=e,n=l.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field});return(i,o)=>(l.openBlock(),l.createElementBlock("div",fI,[!i.fieldValue||!n.value?(l.openBlock(),l.createElementBlock("div",dI," [Error, trying to render label for a non-existent field] ")):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[n.value.description!==void 0&&n.value.description!==""?(l.openBlock(),l.createElementBlock("div",{key:0,title:n.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},l.toDisplayString(n.value.label),9,hI)):(l.openBlock(),l.createElementBlock("div",pI,l.toDisplayString(n.value.label),1)),l.renderSlot(i.$slots,"default")],64))]))}}),mI=l.defineComponent({__name:"CapeLinkValue",props:{fieldValuePair:{}},setup(e){const t=e,n=Yt(),i=l.computed(()=>t.fieldValuePair.value),o=l.computed(()=>t.fieldValuePair.field),s=l.computed(()=>{const c="/",f={};try{n.byId(`field-${o.value.id}`).display==="advanced"&&(f.advanced="true"),f.jump="true",f[`field-${o.value.id}-mode`]="is",f[`field-${o.value.id}-term`]=`${i.value}`}catch{console.error(`Attempt to create link from field ${o.value.id} which has no related filter.`)}return{path:c,query:f}});return(c,f)=>{const d=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(d,{to:s.value},{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default")]),_:3},8,["to"])}}}),vI=l.defineComponent({__name:"CapePercentageValue",props:{value:{type:String,required:!0},digits:{type:Number,required:!1}},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":t.digits===void 0?i*100+"%":(i*100).toFixed(t.digits)+"%"});return(i,o)=>l.toDisplayString(n.value)}}),gI=l.defineComponent({__name:"CapeFixedNumericValue",props:{value:String,digits:Number},setup(e){const t=e,n=l.computed(()=>{if(t.value===void 0)return"";const i=parseFloat(t.value);return isNaN(i)?"":i.toFixed(t.digits)});return(i,o)=>l.toDisplayString(n.value)}}),yI={__name:"CapeShowAllResultsToggle",setup(e){const t=mn();return(n,i)=>l.withDirectives((l.openBlock(),l.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":i[0]||(i[0]=o=>l.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[l.vModelCheckbox,l.unref(t).showAllResults]])}},SI={key:0,class:"cape-results-info"},wI={key:0},EI={key:1},TI={key:1,class:"cape-results-count"},bI=l.defineComponent({__name:"CapeResultsInfo",setup(e){const t=mn();return(n,i)=>l.unref(t).allResultsAreVisible?(l.openBlock(),l.createElementBlock("div",SI,[l.unref(t).visibleCount==1?(l.openBlock(),l.createElementBlock("div",wI,"Showing 1 matching record.")):(l.openBlock(),l.createElementBlock("div",EI,"Showing all "+l.toDisplayString(l.unref(t).visibleCount)+" matching records.",1))])):(l.openBlock(),l.createElementBlock("div",TI," Showing first "+l.toDisplayString(l.unref(t).visibleCount)+" of "+l.toDisplayString(l.unref(t).totalCount)+" matching records. ",1))}}),NI={class:"cape-results-count"},kI=l.defineComponent({__name:"CapeResultsCount",setup(e){const t=mn();return(n,i)=>(l.openBlock(),l.createElementBlock("span",NI,l.toDisplayString(l.unref(t).totalCount),1))}}),CI={class:"cape-filter-field-enum-is-radio"},PI={class:"form-check form-check-inline"},DI=["id"],xI=["for"],OI=["id","value"],II=["for"],RI=l.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",CI,[l.createElementVNode("li",PI,[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),type:"radio",value:""},null,8,DI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"},c[2]||(c[2]=[l.createElementVNode("em",null,"any",-1)]),8,xI)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[1]||(c[1]=d=>l.unref(i).isTerm=d),value:f,type:"radio"},null,8,OI),[[l.vModelRadio,l.unref(i).isTerm]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,II)]))),128))]))}}),LI=["aria-label"],MI=["value"],AI=l.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).isTerm=f),"aria-label":"Select "+l.unref(o).label+" value."},[c[1]||(c[1]=l.createElementVNode("option",{key:"",value:""},null,-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("option",{key:f,value:f},l.toDisplayString(f),9,MI))),128))],8,LI)),[[l.vModelSelect,l.unref(i).isTerm]])}}),BI={class:"cape-filter-field-enum-one-of-checkbox"},VI=["id","value"],FI=["for"],YI=l.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createElementBlock("ul",BI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o).values,f=>(l.openBlock(),l.createElementBlock("li",{key:f},[l.withDirectives(l.createElementVNode("input",{id:"cape-filter-field-input-"+l.unref(i).id+"-"+f,"onUpdate:modelValue":c[0]||(c[0]=d=>l.unref(i).oneOfTerms=d),value:f,type:"checkbox"},null,8,VI),[[l.vModelCheckbox,l.unref(i).oneOfTerms]]),l.createElementVNode("label",{for:"cape-filter-field-input-"+l.unref(i).id+"-"+f},l.toDisplayString(f),9,FI)]))),128))]))}});function Tp(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function $I(e){return(...t)=>!e(...t)}function UI(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function zI(e){return e.filter(t=>!t.$isLabel)}function bp(e,t){return n=>n.reduce((i,o)=>o[e]&&o[e].length?(i.push({$groupLabel:o[t],$isLabel:!0}),i.concat(o[e])):i,[])}const E0=(...e)=>t=>e.reduce((n,i)=>i(n),t);var HI={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Tp(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):this.filterOptions(n,t,this.label,this.customLabel):n=this.groupValues?bp(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter($I(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return E0(this.filterGroups(t,n,this.groupValues,this.groupLabel,this.customLabel),bp(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return E0(bp(this.groupValues,this.groupLabel),zI)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Tp(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Tp(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.trackBy?t[this.groupValues].map(o=>o[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(o=>n.indexOf(this.trackBy?o[this.trackBy]:o)===-1);this.$emit("update:modelValue",i)}else{const n=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const i=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,n,i){return t?e.filter(o=>UI(i(o,n),t)).sort((o,s)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(o,s):i(o,n).length-i(s,n).length):e},filterGroups(e,t,n,i,o){return s=>s.map(c=>{if(!c[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const f=this.filterOptions(c[n],e,t,o);return f.length?{[i]:c[i],[n]:f}:[]})}}},WI={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(i=>i[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},T0={name:"vue-multiselect",mixins:[HI,WI],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const ZI=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],GI={ref:"tags",class:"multiselect__tags"},jI={class:"multiselect__tags-wrap"},qI=["textContent"],KI=["onKeypress","onMousedown"],XI=["textContent"],JI={class:"multiselect__spinner"},QI=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],eR=["id","aria-multiselectable"],tR={key:0},nR={class:"multiselect__option"},rR=["aria-selected","id","role"],iR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],oR=["data-select","data-deselect","onMouseenter","onMousedown"],aR={class:"multiselect__option"},sR={class:"multiselect__option"};function lR(e,t,n,i,o,s){return l.openBlock(),l.createElementBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:l.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":s.isAbove,"multiselect--has-options-group":s.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=c=>e.activate()),onBlur:t[15]||(t[15]=c=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=l.withKeys(c=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[l.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[l.createElementVNode("div",{onMousedown:t[0]||(t[0]=l.withModifiers(c=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),l.renderSlot(e.$slots,"clear",{search:e.search}),l.createElementVNode("div",GI,[l.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:s.visibleValues,isOpen:e.isOpen},()=>[l.withDirectives(l.createElementVNode("div",jI,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.visibleValues,(c,f)=>l.renderSlot(e.$slots,"tag",{option:c,search:e.search,remove:e.removeElement},()=>[(l.openBlock(),l.createElementBlock("span",{class:"multiselect__tag",key:f,onMousedown:t[1]||(t[1]=l.withModifiers(()=>{},["prevent"]))},[l.createElementVNode("span",{textContent:l.toDisplayString(e.getOptionLabel(c))},null,8,qI),l.createElementVNode("i",{tabindex:"1",onKeypress:l.withKeys(l.withModifiers(d=>e.removeElement(c),["prevent"]),["enter"]),onMousedown:l.withModifiers(d=>e.removeElement(c),["prevent"]),class:"multiselect__tag-icon"},null,40,KI)],32))])),256))],512),[[l.vShow,s.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?l.renderSlot(e.$slots,"limit",{key:0},()=>[l.createElementVNode("strong",{class:"multiselect__strong",textContent:l.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,XI)]):l.createCommentVNode("v-if",!0)]),l.createVNode(l.Transition,{name:"multiselect__loading"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"loading",{},()=>[l.withDirectives(l.createElementVNode("div",JI,null,512),[[l.vShow,n.loading]])])]),_:3}),e.searchable?(l.openBlock(),l.createElementBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:n.spellcheck,placeholder:e.placeholder,required:s.isRequired,style:l.normalizeStyle(s.inputStyle),value:e.search,disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.name+"-searchbox",onInput:t[2]||(t[2]=c=>e.updateSearch(c.target.value)),onFocus:t[3]||(t[3]=l.withModifiers(c=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=l.withModifiers(c=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=l.withKeys(c=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=l.withKeys(l.withModifiers(c=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=l.withKeys(l.withModifiers(c=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=l.withKeys(l.withModifiers(c=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=l.withKeys(l.withModifiers(c=>e.addPointerElement(c),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,QI)):l.createCommentVNode("v-if",!0),s.isSingleLabelVisible?(l.openBlock(),l.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"singleLabel",{option:s.singleValue},()=>[l.createTextVNode(l.toDisplayString(e.currentOptionLabel),1)])],32)):l.createCommentVNode("v-if",!0),s.isPlaceholderVisible?(l.openBlock(),l.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=l.withModifiers((...c)=>e.toggle&&e.toggle(...c),["prevent"]))},[l.renderSlot(e.$slots,"placeholder",{},()=>[l.createTextVNode(l.toDisplayString(e.placeholder),1)])],32)):l.createCommentVNode("v-if",!0)],512),l.createVNode(l.Transition,{name:"multiselect",persisted:""},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...c)=>e.activate&&e.activate(...c)),tabindex:"-1",onMousedown:t[13]||(t[13]=l.withModifiers(()=>{},["prevent"])),style:l.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[l.createElementVNode("ul",{class:"multiselect__content",style:l.normalizeStyle(s.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[l.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(l.openBlock(),l.createElementBlock("li",tR,[l.createElementVNode("span",nR,[l.renderSlot(e.$slots,"maxElements",{},()=>[l.createTextVNode("Maximum of "+l.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):l.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.filteredOptions,(c,f)=>(l.openBlock(),l.createElementBlock("li",{class:"multiselect__element",key:f,"aria-selected":e.isSelected(c),id:e.id+"-"+f,role:c&&(c.$isLabel||c.$isDisabled)?null:"option"},[c&&(c.$isLabel||c.$isDisabled)?l.createCommentVNode("v-if",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass([e.optionHighlight(f,c),"multiselect__option"]),onClick:l.withModifiers(d=>e.select(c),["stop"]),onMouseenter:l.withModifiers(d=>e.pointerSet(f),["self"]),"data-select":c&&c.isTag?e.tagPlaceholder:s.selectLabelText,"data-selected":s.selectedLabelText,"data-deselect":s.deselectLabelText},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,iR)),c&&(c.$isLabel||c.$isDisabled)?(l.openBlock(),l.createElementBlock("span",{key:1,"data-select":e.groupSelect&&s.selectGroupLabelText,"data-deselect":e.groupSelect&&s.deselectGroupLabelText,class:l.normalizeClass([e.groupHighlight(f,c),"multiselect__option"]),onMouseenter:l.withModifiers(d=>e.groupSelect&&e.pointerSet(f),["self"]),onMousedown:l.withModifiers(d=>e.selectGroup(c),["prevent"])},[l.renderSlot(e.$slots,"option",{option:c,search:e.search,index:f},()=>[l.createElementVNode("span",null,l.toDisplayString(e.getOptionLabel(c)),1)])],42,oR)):l.createCommentVNode("v-if",!0)],8,rR))),128)):l.createCommentVNode("v-if",!0),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",aR,[l.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=l.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[l.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),l.withDirectives(l.createElementVNode("li",null,[l.createElementVNode("span",sR,[l.renderSlot(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=l.createTextVNode("List is empty."))])])],512),[[l.vShow,n.showNoOptions&&(e.options.length===0||s.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),l.renderSlot(e.$slots,"afterList")],12,eR)],36),[[l.vShow,e.isOpen]])]),_:3})],42,ZI)}T0.render=lR;const cR=l.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,i=Yt().byId(t.filterId),o=i.field;return(s,c)=>(l.openBlock(),l.createBlock(l.unref(T0),{id:"filter-multiselect-"+l.unref(o).id,modelValue:l.unref(i).oneOfTerms,"onUpdate:modelValue":c[0]||(c[0]=f=>l.unref(i).oneOfTerms=f),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:l.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),uR={};function fR(e,t){const n=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("p",null,[t[0]||(t[0]=l.createTextVNode(" This website uses pure Javascript to provide interaction with a JSON datafile which contains the records and site configuration. It does not require any database or PHP -- all the searching is done using javascript inside the single page. This toolkit is called ")),t[1]||(t[1]=l.createElementVNode("i",null,"CAPE",-1)),t[2]||(t[2]=l.createTextVNode(". CAPE will be reused for similar projects in future. CAPE was created by the ")),t[3]||(t[3]=l.createElementVNode("a",{href:"https://ras.soton.ac.uk/"},"Research Application Support",-1)),t[4]||(t[4]=l.createTextVNode(" team at the ")),t[5]||(t[5]=l.createElementVNode("a",{href:"https://www.southampton.ac.uk/"},"University of Southampton",-1)),t[6]||(t[6]=l.createTextVNode(", UK. This site uses Cape ")),l.createVNode(n),t[7]||(t[7]=l.createTextVNode(". "))])}const dR=ji(uR,[["render",fR]]),hR={},pR={class:"border border-black p-1 fixed right-1 top-1"};function _R(e,t){return l.openBlock(),l.createElementBlock("div",pR,t[0]||(t[0]=[l.createStaticVNode('<span class="block sm:hidden">&lt;sm</span><span class="hidden sm:block md:hidden">sm</span><span class="hidden md:block lg:hidden">md</span><span class="hidden lg:block xl:hidden">lg</span><span class="hidden xl:block 2xl:hidden">xl</span><span class="hidden 2xl:block">2xl+</span>',6)]))}const mR=ji(hR,[["render",_R]]),vR="3.6.0",gR={class:"cape-plugin-version"},yR=l.defineComponent({__name:"CapeVersion",setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("span",gR,"v"+l.toDisplayString(l.unref(vR)),1))}}),SR={class:"cape-content-page"},wR=["href"],ER=["href"],TR={key:0},bR={key:0},NR=["href"],kR=l.defineComponent({__name:"CapeAboutPage",setup(e){const{metadata:t}=nn();return(n,i)=>{var p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;const o=l.resolveComponent("cape-record-count"),s=l.resolveComponent("cape-download-json-button"),c=l.resolveComponent("cape-download-csv-button"),f=l.resolveComponent("cape-software"),d=l.resolveComponent("cape-fields-table");return l.openBlock(),l.createElementBlock("div",SR,[i[8]||(i[8]=l.createElementVNode("h2",null,"About the data",-1)),l.createElementVNode("p",null,[i[0]||(i[0]=l.createTextVNode(" This dataset has been created and shared with the intention it should be reused. The dataset contains ")),l.createVNode(o),i[1]||(i[1]=l.createTextVNode(" records. The fields in the dataset are described below. "))]),l.createElementVNode("p",null,[i[2]||(i[2]=l.createTextVNode(" This data is copyright ")),l.createElementVNode("a",{href:(_=(p=l.unref(t))==null?void 0:p.copyright)==null?void 0:_.url},l.toDisplayString(((y=(v=l.unref(t))==null?void 0:v.copyright)==null?void 0:y.title)??"MISSING DATA"),9,wR),i[3]||(i[3]=l.createTextVNode(" and may be reused under the ")),l.createElementVNode("a",{href:(E=(g=l.unref(t))==null?void 0:g.license)==null?void 0:E.url},l.toDisplayString(((T=(w=l.unref(t))==null?void 0:w.license)==null?void 0:T.title)??"MISSING DATA"),9,ER),i[4]||(i[4]=l.createTextVNode(" license. "))]),(b=l.unref(t))!=null&&b.creators?(l.openBlock(),l.createElementBlock("p",TR,[i[5]||(i[5]=l.createTextVNode(" This dataset was created by ")),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t).creators,(F,Q)=>{var A;return l.openBlock(),l.createElementBlock("span",{key:Q},[l.createElementVNode("span",null,l.toDisplayString(F.name),1),Q+1<((A=l.unref(t).creators)==null?void 0:A.length)?(l.openBlock(),l.createElementBlock("span",bR,", ")):l.createCommentVNode("",!0)])}),128)),i[6]||(i[6]=l.createTextVNode(". "))])):l.createCommentVNode("",!0),l.createElementVNode("p",null,[l.createTextVNode(' If using this data, please attribute it as "'+l.toDisplayString(((M=(C=l.unref(t))==null?void 0:C.attribution)==null?void 0:M.title)??"MISSING DATA")+'" with a link to ',1),l.createElementVNode("a",{href:(G=(z=l.unref(t))==null?void 0:z.attribution)==null?void 0:G.url},l.toDisplayString(((R=(oe=l.unref(t))==null?void 0:oe.attribution)==null?void 0:R.url)??"MISSING DATA"),9,NR),i[7]||(i[7]=l.createTextVNode(". "))]),l.createElementVNode("p",null,[l.createVNode(s,{style:{"margin-right":"1rem"}}),l.createVNode(c)]),i[9]||(i[9]=l.createElementVNode("h2",null,"About this software",-1)),l.createVNode(f),i[10]||(i[10]=l.createElementVNode("h2",null,"Schema",-1)),i[11]||(i[11]=l.createElementVNode("p",null," Field types may be text, date, integer or enum. An enum field is short for enumerated, which means a limited set of terms rather than free text. ",-1)),l.createVNode(d)])}}}),CR=l.defineComponent({__name:"CapeSummaryCard",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value"),o=l.resolveComponent("cape-record-link");return l.openBlock(),l.createBlock(o,{class:"cape-summary-card block bg-blue-100 py-2 px-4 my-1",record:t.record},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[1]||(n[1]=l.createTextVNode(" - ")),l.createVNode(i,{"field-value":t.record.date},null,8,["field-value"])])]),_:1},8,["record"])}}}),PR={class:"cape-navigation"},DR={class:"cape-navigation-items"},xR={class:"cape-navigation-item"},OR=l.defineComponent({__name:"CapeNavigation",setup(e){const t=nn(),n=l.computed(()=>t.pages);return(i,o)=>{const s=l.resolveComponent("router-link"),c=l.resolveComponent("router-view");return l.openBlock(),l.createElementBlock("div",PR,[l.createElementVNode("nav",null,[l.createElementVNode("ul",DR,[l.createElementVNode("li",xR,[l.createVNode(s,{class:"cape-navigation-link",to:"/"},{default:l.withCtx(()=>o[0]||(o[0]=[l.createTextVNode("Search")])),_:1,__:[0]})]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,f=>(l.openBlock(),l.createElementBlock("li",{class:"cape-navigation-item",key:f.path},[l.createVNode(s,{class:"cape-navigation-link",to:f.path},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(f.label),1)]),_:2},1032,["to"])]))),128))])]),l.createElementVNode("main",null,[l.createVNode(c)])])}}}),IR={class:"cape-record-card bg-blue-100 py-2 px-4"},RR={class:"text-xl border-black border-b mb-4"},LR={class:"border-b mb-4 pb-4 border-b-black"},MR={class:"md:grid md:grid-cols-2 md:gap-4"},AR={class:"border-b mb-4 pb-4 border-b-black"},BR={class:"md:grid md:grid-cols-2 md:gap-4"},VR={class:"md:grid md:grid-cols-2 md:gap-4"},FR={class:"mb-5"},YR=l.defineComponent({__name:"CapeRecordCard",props:{record:{},previousInDataset:{},nextInDataset:{},previousInResults:{},nextInResults:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-previous-result"),o=l.resolveComponent("cape-next-result"),s=l.resolveComponent("cape-previous-record"),c=l.resolveComponent("cape-next-record"),f=l.resolveComponent("cape-labelled-value");return l.openBlock(),l.createElementBlock("div",IR,[l.createElementVNode("h2",RR,"RecordCard Placeholder ID: "+l.toDisplayString(t.record.record_number.value),1),l.createElementVNode("div",LR,[l.createElementVNode("div",MR,[l.createVNode(i,{record:t.record},{before:l.withCtx(()=>n[0]||(n[0]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[1]||(n[1]=[l.createTextVNode("[start of results]")])),_:1},8,["record"]),l.createVNode(o,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[2]||(n[2]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[3]||(n[3]=[l.createTextVNode("[end of results]")])),_:1},8,["record"])])]),l.createElementVNode("div",AR,[l.createElementVNode("div",BR,[l.createVNode(s,{record:t.record},{before:l.withCtx(()=>n[4]||(n[4]=[l.createTextVNode("← ")])),otherwise:l.withCtx(()=>n[5]||(n[5]=[l.createTextVNode("[start of dataset]")])),_:1},8,["record"]),l.createVNode(c,{record:t.record,class:"text-right"},{after:l.withCtx(()=>n[6]||(n[6]=[l.createTextVNode(" →")])),otherwise:l.withCtx(()=>n[7]||(n[7]=[l.createTextVNode("[end of dataset]")])),_:1},8,["record"])])]),l.createElementVNode("div",VR,[l.createElementVNode("ul",FR,[l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.record_number},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.title},null,8,["field-value"])]),l.createElementVNode("li",null,[l.createVNode(f,{hideIfEmpty:!1,link:!1,"field-value":t.record.date},null,8,["field-value"])])]),n[8]||(n[8]=l.createElementVNode("div",null," Column 2 ",-1))])])}}}),$R={};function UR(e,t){const n=l.resolveComponent("cape-page-width-indicator"),i=l.resolveComponent("cape-non-prod-warning");return l.openBlock(),l.createElementBlock("header",null,[l.createVNode(n),t[0]||(t[0]=l.createElementVNode("h1",{class:"text-4xl"},[l.createElementVNode("a",{href:"/",id:"service-title"},"CAPE")],-1)),l.createVNode(i)])}const zR=ji($R,[["render",UR]]),HR={class:"mt-10 py-5 px-4 bg-gray-700 text-white flex items-center justify-between"},WR={class:"text-left"},ZR=["href"],GR={class:"text-right"},jR={__name:"CapeFooter",setup(e){const{metadata:t}=nn();return(n,i)=>{var s,c,f,d;const o=l.resolveComponent("cape-version");return l.openBlock(),l.createElementBlock("footer",HR,[l.createElementVNode("div",WR,[i[0]||(i[0]=l.createTextVNode(" © ")),l.createElementVNode("a",{href:(c=(s=l.unref(t))==null?void 0:s.copyright)==null?void 0:c.url},l.toDisplayString(((d=(f=l.unref(t))==null?void 0:f.copyright)==null?void 0:d.title)??"MISSING COPYRIGHT METADATA"),9,ZR)]),i[2]||(i[2]=l.createElementVNode("div",{class:"text-center"},null,-1)),l.createElementVNode("div",GR,[i[1]||(i[1]=l.createTextVNode(" Powered by Cape ")),l.createVNode(o)])])}}},qR={class:"cape-record-label"},KR=l.defineComponent({__name:"CapeRecordLabel",props:{record:{}},setup(e){return(t,n)=>{const i=l.resolveComponent("cape-value");return l.openBlock(),l.createElementBlock("span",qR,[l.createVNode(i,{"field-value":t.record.title},null,8,["field-value"]),n[0]||(n[0]=l.createTextVNode(" # ")),l.createVNode(i,{"field-value":t.record.record_number},null,8,["field-value"])])}}}),XR={class:"cape-filter-controls cape-filter-controls-top"},JR={class:"cape-advanced-search-toggle-control switch switch-sm"},QR={key:0,class:"cape-filter-controls cape-filter-controls-bottom"},eL={class:"cape-advanced-search-toggle-control switch switch-sm"},tL=l.defineComponent({__name:"CapeHomepageLayout",setup(e){const t=Yt(),n=l.computed(()=>t.showAdvanced);return(i,o)=>{const s=l.resolveComponent("cape-intro"),c=l.resolveComponent("cape-advanced-search-toggle"),f=l.resolveComponent("cape-form-reset-button"),d=l.resolveComponent("cape-filters"),p=l.resolveComponent("cape-results");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(s),l.createElementVNode("div",XR,[l.createElementVNode("div",JR,[l.createVNode(c,{id:"cape-advanced-search-toggle-top"}),o[0]||(o[0]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-top"},"Advanced Search",-1))]),l.createVNode(f)]),l.createElementVNode("div",null,[l.createVNode(d)]),n.value?(l.openBlock(),l.createElementBlock("div",QR,[l.createElementVNode("div",eL,[l.createVNode(c,{id:"cape-advanced-search-toggle-bottom"}),o[1]||(o[1]=l.createElementVNode("label",{for:"cape-advanced-search-toggle-bottom"},"Advanced Search",-1))]),l.createVNode(f)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[l.createVNode(p)])],64)}}}),nL={},rL={class:"cape-intro mb-10"};function iL(e,t){const n=l.resolveComponent("cape-record-count");return l.openBlock(),l.createElementBlock("p",rL,[t[0]||(t[0]=l.createElementVNode("strong",null,"Your intro text goes here.",-1)),t[1]||(t[1]=l.createTextVNode(" This repository contains ")),l.createVNode(n),t[2]||(t[2]=l.createTextVNode(" records. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas facilisis feugiat nunc vel interdum. Duis vehicula congue imperdiet. Vivamus sit amet lacus lectus. Proin nec placerat eros, nec eleifend sapien. Suspendisse in ante placerat, sodales arcu id, ornare odio. (component version) "))])}const oL=ji(nL,[["render",iL]]),aL=l.defineComponent({name:"CapeAboutPage",template:"#templateCapeAbout",computed:{metadata(){return nn().metadata}}}),sL={template:"#templateCapeSummaryCard",props:["record"]},lL={template:"#templateCapeNavigation",computed:{...Vh(nn,["pages"])}},cL={template:"#templateCapeRecordCard",props:["record","previousInDataset","nextInDataset","previousInResults","nextInResults"]},uL={template:"#templateCapeHeader"},fL={template:"#templateCapeFooter"},dL={template:"#templateCapeRecordLabel",props:["record"]},hL={template:"#templateCapeHomepageLayout",computed:{...Vh(Yt,["showAdvanced"]),...Vh(mn,{hasMatches:e=>e.totalCount>0})}},b0={install:function(e,t){e.use(Nk());const n=this.makeComponentMap(t);this.registerComponents(e,n),nn().setOptions(t),this.registerRoutes(e,t.pages,$h);const o=async s=>{const c=await Ep.getPageTitle(s,t);c&&(document.title=c)};zl.add({priority:w0.High,action:o}),$h.afterEach(async(s,c)=>{Zi().onLoaded(async()=>{await zl.execute(s,c)})}),e.use($h)},registerRoutes:function(e,t,n){n.addRoute({name:"root",path:"/",component:e.component("CapeHomePage")}),n.addRoute({name:"record",path:"/record/:id",component:e.component("CapeRecordPage")}),t!==void 0&&l.toRaw(t).forEach(i=>{const o={path:i.path,component:e.component(i.component)};i.title&&(o.meta={title:i.title}),n.addRoute(o)})},registerComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},makeComponentMap(e){const t=this.builtInComponentsMap();if(e.useInlineTemplate&&(t.CapeAboutPage=aL,t.CapeFooter=fL,t.CapeHeader=uL,t.CapeHomepageLayout=hL,t.CapeNavigation=lL,t.CapeRecordCard=cL,t.CapeRecordLabel=dL,t.CapeSummaryCard=sL),e.additionalComponents!==void 0)for(const[n,i]of Object.entries(e.additionalComponents))t[n]=i;return t},builtInComponentsMap(){return{CapeFilterFieldDate:kO,CapeFilterFieldEnum:uO,CapeFilterFieldEnumIsRadio:RI,CapeFilterFieldEnumIsSelect:AI,CapeFilterFieldEnumOneOfCheckbox:YI,CapeFilterFieldEnumOneOfMultiselect:cR,CapeFilterFieldInteger:gO,CapeFilterFieldText:W1,CapeFilterFreeText:K1,CapeAboutPage:kR,CapeFooter:jR,CapeHeader:zR,CapeHomepageLayout:tL,CapeIntro:oL,CapeNavigation:OR,CapeRecordCard:YR,CapeRecordLabel:KR,CapeSummaryCard:CR,CapeAdvancedSearchToggle:aC,CapeFilters:lC,CapeFormResetButton:cC,CapeResults:DC,CapeResultsControls:OO,CapeGoTopResults:IO,CapeExternalLinkValue:LO,CapeResultsCount:kI,CapeResultsInfo:bI,CapeShowAllResultsToggle:yI,CapeSortOrder:oO,CapeDownloadCsvButton:VO,CapeDownloadJsonButton:UO,CapeFieldsTable:WO,CapeFixedNumericValue:gI,CapeLabelledContent:_I,CapeLabelledValue:AC,CapeLinkValue:mI,CapeNextRecord:uI,CapeNextResult:tI,CapePercentageValue:vI,CapePreviousRecord:sI,CapePreviousResult:iI,CapeRecordCount:oC,CapeRecordLink:GO,CapeRecordMap:JO,CapeSingleValue:V1,CapeSoftware:dR,CapeValue:MC,CapeVersion:yR,CapeHomePage:fC,CapeLoadError:pC,CapeLoading:gC,CapeNonProdWarning:TC,CapePageWidthIndicator:mR,CapeRecordPage:kC,CapeRoot:rC}}},pL={};function _L(e,t){const n=l.resolveComponent("CapeHeader"),i=l.resolveComponent("CapeRoot"),o=l.resolveComponent("CapeLoading"),s=l.resolveComponent("CapeFooter");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(n),(l.openBlock(),l.createBlock(l.Suspense,null,{default:l.withCtx(()=>[l.createVNode(i)]),fallback:l.withCtx(()=>[l.createVNode(o)]),_:1})),l.createVNode(s)],64)}const mL=ji(pL,[["render",_L]]),vL=e=>{const t=l.createApp(mL);return t.use(b0,e),t},Li=class Li{static register(t){Li.loggers.push(t)}static clear(){Li.loggers=[]}static debug(t,n){Li.loggers.forEach(i=>i.debug(t,n))}static info(t,n){Li.loggers.forEach(i=>i.info(t,n))}static warn(t,n){Li.loggers.forEach(i=>i.warn(t,n))}static error(t,n){Li.loggers.forEach(i=>i.error(t,n))}};Ke(Li,"loggers",[]);let Hl=Li;var Dn=(e=>(e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e[e.Error=0]="Error",e))(Dn||{});class gL{constructor(t){this.loggingLevel=t}debug(t,n){this.loggingLevel>=Dn.Debug&&console.debug(t,n??"")}info(t,n){this.loggingLevel>=Dn.Info&&console.info(t,n??"")}warn(t,n){this.loggingLevel>=Dn.Warn&&console.warn(t,n??"")}error(t,n){this.loggingLevel>=Dn.Error&&console.error(t,n??"")}}const yL={install:function(e,t){const n=new gL(t.loggingLevel);Hl.register(n)}};class SL{constructor(t,n){this.loggingLevel=t,this.appInsights=n}debug(t,n){this.loggingLevel>=Dn.Debug&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Debug}})}info(t,n){this.loggingLevel>=Dn.Info&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Info}})}warn(t,n){this.loggingLevel>=Dn.Warn&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Warn}})}error(t,n){this.loggingLevel>=Dn.Error&&this.appInsights.trackEvent({name:t,properties:{data:n,severity:Dn.Error}})}}/*! https://github.com/nevware21/ts-utils v0.12.4 */function xn(e,t){return e||t}function xt(e,t){return e[t]}var vn=void 0,qt=null,Np="",ef="function",Wl="object",_i="prototype",tf="__proto__",Yo="undefined",nf="constructor",kp="Symbol",fs="length",rf="name",rn="call",Zl="toString",Cp="getOwnPropertyDescriptor",gn=xn(Object),Pp=xt(gn,_i),N0=xn(String),$o=xt(N0,_i),Gl=xn(Math),k0=xn(Array),of=xt(k0,_i),mi=xt(of,"slice"),C0="_polyfill",P0="__nw21$polytype__";function Ot(e,t){try{return{v:e.apply(this,t)}}catch(n){return{e:n}}}function wL(e,t,n){var i=Ot(e,n);return i.e?t:i.v}var Dp;function af(e){return function(t){return typeof t===e}}function D0(e){var t="[object "+e+"]";return function(n){return!!(n&&EL(n)===t)}}function EL(e){return Pp[Zl].call(e)}function It(e){return typeof e===Yo||e===Yo}function TL(e){return e===vn}function ce(e){return e===qt||It(e)}function xp(e){return e===qt||e===vn}function bL(e){return!!e||e!==vn}function NL(e){return!Dp&&(Dp=["string","number","boolean",Yo,"symbol","bigint"]),e!==Wl&&Dp.indexOf(e)!==-1}var Re=af("string"),Le=af(ef);function On(e){return!e&&ce(e)?!1:!!e&&typeof e===Wl}var $e=xt(k0,"isArray"),kL=D0("Date"),jl=af("number"),x0=af("boolean"),Op=D0("Error");function Ji(e){return!!(e&&e.then&&Le(e.then))}function sf(e){return!(!e||wL(function(){return!(e&&0+e)},!e))}function Ip(){}function CL(){return!1}var yn=xn(N0),PL="[object Error]";function Te(e,t){var n=Np,i=Pp[Zl][rn](e);i===PL&&(e={stack:yn(e.stack),message:yn(e.message),name:yn(e.name)});try{n=JSON.stringify(e,qt,t?typeof t=="number"?t:4:vn),n=(n?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):qt)||yn(e)}catch(o){n=" - "+Te(o,t)}return i+": "+n}function Bn(e){throw new Error(e)}function Ir(e){throw new TypeError(e)}function lf(e){xp(e)&&Ir("Cannot convert undefined or null to object")}function DL(e){Re(e)||Ir("'"+Te(e)+"' is not a string")}function qn(e,t){return!!e&&Pp.hasOwnProperty[rn](e,t)}var xL=xn(xt(gn,Cp),Ip),Qi=xn(xt(gn,"hasOwn"),OL);function OL(e,t){return lf(e),qn(e,t)||!!xL(e,t)}function Xe(e,t,n){if(e&&(On(e)||Le(e))){for(var i in e)if(Qi(e,i)&&t[rn](e,i,e[i])===-1)break}}function Se(e,t,n){if(e)for(var i=e[fs]>>>0,o=0;o<i&&!(o in e&&t[rn](e,e[o],o,e)===-1);o++);}var Uo=cf;function cf(e,t,n){var i=t?t[e]:qt;return function(o){var s=(o?o[e]:qt)||i;if(s||n){var c=arguments;return(s||n).apply(o,s?mi[rn](c,1):c)}Ir('"'+yn(e)+'" not defined for '+Te(o))}}function IL(e){return function(t){return t[e]}}var RL=xn(xt(gn,Cp),Ip),uf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function LL(e){var t={};if(t[uf.c]=!0,t[uf.e]=!0,e.l){t.get=function(){return e.l.v};var n=RL(e.l,"v");n&&n.set&&(t.set=function(i){e.l.v=i})}return Xe(e,function(i,o){t[uf[i]]=TL(o)?t[uf[i]]:o}),t}var vi=xt(gn,"defineProperty"),ML=xt(gn,"defineProperties");function tt(e,t,n){return vi(e,t,LL(n))}function O0(e,t,n,i,o){var s={};return Xe(e,function(c,f){ff(s,c,t?f:c),ff(s,f,c)}),i?i(s):s}function ff(e,t,n,i){vi(e,t,{value:n,enumerable:!0,writable:!1})}var AL=xn(xt(gn,"isFrozen"),CL),I0=xt(gn,"freeze");function BL(e){return e}function VL(e){return lf(e),e[tf]||qt}var Rp=xt(gn,"assign"),gi=xt(gn,"keys");function R0(e,t){if(($e(e)||On(e)||Le(e))&&!AL(e)){for(var n=0;n<t.length;n++)if(t[n]===e)return e;t.push(e),Xe(e,function(i,o){R0(o,t)}),pr(e)}return e}function ql(e){return I0?R0(e,[]):e}var pr=xn(I0,BL),Lp=xn(xt(gn,"getPrototypeOf"),VL);function FL(e){return O0(e,1,0,pr)}function YL(e){return O0(e,0,0,pr)}function $L(e){var t={};return Xe(e,function(n,i){ff(t,n,i[1]),ff(t,i[0],i[1])}),pr(t)}function UL(e){return $L(e)}var L0=YL({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),M0="__tsUtils$gblCfg",Mp;function A0(){var e;return typeof globalThis!==Yo&&(e=globalThis),!e&&typeof self!==Yo&&(e=self),!e&&typeof window!==Yo&&(e=window),!e&&typeof global!==Yo&&(e=global),e}function df(){if(!Mp){var e=Ot(A0).v||{};Mp=e[M0]=e[M0]||{}}return Mp}var B0=xt(Gl,"min"),Kl=xt(Gl,"max"),V0=Uo("slice",$o),Rr=Uo("substring",$o),eo=cf("substr",$o,zL);function zL(e,t,n){return lf(e),n<0?Np:(t=t||0,t<0&&(t=Kl(t+e[fs],0)),It(n)?V0(e,t):V0(e,t,t+n))}function Ap(e,t){return Rr(e,0,t)}function HL(e,t){return e&&(Ot(function(){e[C0]=!0,e[P0]=t}),Ot(tt,[e,C0,{v:!0,w:!1,e:!1}]),Ot(tt,[e,P0,{v:t,w:!1,e:!1}])),e}var yi=xn(xt(gn,"create"),WL);function WL(e,t){var n=null;function i(){}if(xp(e))n={};else{var o=typeof e;o!==Wl&&o!==ef&&Ir("Prototype must be an Object or function: "+Te(e)),i[_i]=e,Ot(function(){i[tf]=e}),n=new i}return t&&Ot(ML,[n,t]),n}function _r(){return(Date.now||ZL)()}function ZL(){return new Date().getTime()}function zo(e,t,n){return e.apply(t,n)}var $t;function to(){$t=df()}function F0(e,t){var n={};return!$t&&to(),n.b=$t.lzy,vi(n,"v",{configurable:!0,get:function(){var i=zo(e,null,t);return $t.lzy||vi(n,"v",{value:i}),n.b=$t.lzy,i}}),n}var GL=xt(Gl,"random"),jL=F0(function(){for(var e=_r().toString(36).slice(2);e.length<16;)e+=GL().toString(36).slice(2);return e=e.substring(0,16),e}),Y0="_urid",qL="$nw21sym",Bp,KL=0;function XL(){if(!Bp){var e=df();Bp=e.gblSym=e.gblSym||{k:{},s:{}}}return Bp}var hf;function Vp(e){var t="_"+KL+++"_"+jL.v,n=kp+"("+e+")";function i(s,c){tt(o,s,{v:c,e:!1,w:!1})}var o=yi(null);return i("description",yn(e)),i(Zl,function(){return n+qL+t}),i("valueOf",function(){return o}),i("v",n),i("_uid",t),HL(o,"symbol")}function JL(e){var t=XL();if(!Qi(t.k,e)){var n=Vp(e),i=gi(t.s).length;n[Y0]=function(){return i+"_"+n[Zl]()},t.k[e]=n,t.s[n[Y0]()]=yn(e)}return t.k[e]}function QL(e){!hf&&(hf={});var t,n=L0[e];return n&&(t=hf[n]=hf[n]||Vp(kp+"."+n)),t}function Kn(e){return vi({toJSON:function(){return e}},"v",{value:e})}var $0="window",Xl;function ds(e,t){var n;return function(){return!$t&&to(),(!n||$t.lzy)&&(n=Kn(Ot(e,t).v)),n.v}}function Xn(e){return!$t&&to(),(!Xl||e===!1||$t.lzy)&&(Xl=Kn(Ot(A0).v||qt)),Xl.v}function Ct(e,t){var n;if(!Xl||t===!1?n=Xn(t):n=Xl.v,n&&n[e])return n[e];if(e===$0)try{return window}catch{}return qt}function U0(){return!!on()}var on=ds(Ct,["document"]);function pf(){return!!Vn()}var Vn=ds(Ct,[$0]);function eM(){return!!Lr()}var Lr=ds(Ct,["navigator"]);function tM(){return!!z0()}var z0=ds(Ct,["history"]),nM=ds(function(){return!!Ot(function(){return process&&(process.versions||{}).node}).v}),H0=ds(function(){return!!Ot(function(){return self&&self instanceof WorkerGlobalScope}).v}),hs,Fp;function _f(){return hs=Kn(Ot(Ct,[kp]).v),hs}function rM(e){var t=($t.lzy?0:hs)||_f();return t.v?t.v[e]:vn}function iM(){return!!oM()}function oM(){return!$t&&to(),(($t.lzy?0:hs)||_f()).v}function Yp(e,t){var n=L0[e];!$t&&to();var i=($t.lzy?0:hs)||_f();return i.v?i.v[n||e]:QL(e)}function Jl(e,t){!$t&&to();var n=($t.lzy?0:hs)||_f();return n.v?n.v(e):Vp(e)}function $p(e){return!$t&&to(),Fp=($t.lzy?0:Fp)||Kn(Ot(rM,["for"]).v),(Fp.v||JL)(e)}function Up(e){return!!e&&Le(e.next)}function W0(e){return!xp(e)&&Le(e[Yp(3)])}var mf;function zp(e,t,n){if(e&&(Up(e)||(!mf&&(mf=Kn(Yp(3))),e=e[mf.v]?e[mf.v]():qt),Up(e))){var i=vn,o=vn;try{for(var s=0;!(o=e.next()).done&&t[rn](n||e,o.value,s,e)!==-1;)s++}catch(c){i={e:c},e.throw&&(o=qt,e.throw(i))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(i)throw i.e}}}}function ps(e,t){return!It(t)&&e&&($e(t)?zo(e.push,e,t):Up(t)||W0(t)?zp(t,function(n){e.push(n)}):e.push(t)),e}var dn=Uo("indexOf",of),Ql=Uo("map",of);function vf(e,t,n){return((e?e.slice:qt)||mi).apply(e,mi[rn](arguments,1))}var aM=Uo("reduce",of),Hp,Z0=xn(xt(gn,"setPrototypeOf"),sM);function sM(e,t){var n;return!Hp&&(Hp=Kn((n={},n[tf]=[],n instanceof Array))),Hp.v?e[tf]=t:Xe(t,function(i,o){return e[i]=o}),e}function lM(e,t,n){Ot(tt,[t,rf,{v:e,c:!0,e:!1}]),t=Z0(t,n);function i(){this[nf]=t,Ot(tt,[this,rf,{v:e,c:!0,e:!1}])}return t[_i]=n===qt?yi(n):(i[_i]=n[_i],new i),t}function G0(e,t){t&&(e[rf]=t)}function j0(e,t,n){var i=Error,o=i[_i][rf],s=Error.captureStackTrace;return lM(e,function(){var c=this,f=arguments;try{Ot(G0,[i,e]);var d=zo(i,c,mi[rn](f))||c;if(d!==c){var p=Lp(c);p!==Lp(d)&&Z0(d,p)}return s&&s(d,c[nf]),t&&t(d,f),d}finally{Ot(G0,[i,o])}},i)}var Wp;function cM(e){throw Wp||(Wp=j0("UnsupportedError")),new Wp(e)}function uM(e){return function(n){return lf(n),n&&n.replace&&(n=n.replace(e,Np)),n}}var fM=uM(/^\s+|(?=\s)\s+$/g),yt=cf("trim",$o,fM),Fn=xt(Gl,"floor"),Zp,Gp,jp;function Sn(e){if(!e||typeof e!==Wl)return!1;jp||(jp=pf()?Vn():!0);var t=!1;if(e!==jp){Gp||(Zp=Function[_i][Zl],Gp=Zp[rn](gn));try{var n=Lp(e);t=!n,t||(qn(n,nf)&&(n=n[nf]),t=!!(n&&typeof n===ef&&Zp[rn](n)===Gp))}catch{}}return t}function dM(e){return e.value&&X0(e),!0}var q0=[mM,X0,gM,vM];function hM(e,t,n,i){var o;return Se(e,function(s){if(s.k===t)return o=s,-1}),o||(o={k:t,v:t},e.push(o),i(o)),o.v}function qp(e,t,n,i){var o=n.handler,s=n.path?i?n.path.concat(i):n.path:[],c={handler:n.handler,src:n.src,path:s},f=typeof t,d=!1,p=t===qt;p||(t&&f===Wl?d=Sn(t):p=NL(f));var _={type:f,isPrim:p,isPlain:d,value:t,result:t,path:s,origin:n.src,copy:function(v,y){return qp(e,v,y?c:n,y)},copyTo:function(v,y){return K0(e,v,y,c)}};return _.isPrim?o&&o[rn](n,_)?_.result:t:hM(e,t,s,function(v){tt(_,"result",{g:function(){return v.v},s:function(E){v.v=E}});for(var y=0,g=o;!(g||(y<q0.length?q0[y++]:dM))[rn](n,_);)g=qt})}function K0(e,t,n,i){if(!ce(n))for(var o in n)t[o]=qp(e,n[o],i,o);return t}function pM(e,t,n){var i={handler:n,src:t,path:[]};return K0([],e,t,i)}function _M(e,t){var n={handler:t,src:e};return qp([],e,n)}function mM(e){var t=e.value;if($e(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1}function vM(e){var t=e.value;return kL(t)?(e.result=new Date(t.getTime()),!0):!1}function gM(e){return e.type===ef}function X0(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function J0(e,t){return Se(t,function(n){pM(e,n)}),e}function Q0(e,t,n,i,o,s,c){return J0(_M(e)||{},mi[rn](arguments))}function yM(e,t,n,i,o,s,c){return J0(e||{},mi[rn](arguments))}var eS=Uo("split",$o);function tS(e,t,n){if(e&&t){var i=eS(t,"."),o=i.pop();Se(i,function(s){ce(e[s])&&(e[s]={}),e=e[s]}),e[o]=n}}var SM=IL(fs),Kp;function Si(){return!$t&&to(),(!Kp||$t.lzy)&&(Kp=Kn(Ot(Ct,["performance"]).v)),Kp.v}var nS=xt(Gl,"round"),wM=xn(xt(gn,Cp),Ip),rS=cf("endsWith",$o,EM);function EM(e,t,n){DL(e);var i=Re(t)?t:yn(t),o=!It(n)&&n<e[fs]?n:e[fs];return Rr(e,o-i[fs],o)===i}var wn=Uo("indexOf",$o),Xp="ref",Jp="unref",Qp="hasRef",TM="enabled";function bM(e,t,n){var i=!0,o=e?t(qt):qt,s;function c(){return i=!1,o&&o[Jp]&&o[Jp](),s}function f(){o&&n(o),o=qt}function d(){return o=t(o),i||c(),s}function p(_){!_&&o&&f(),_&&!o&&d()}return s={cancel:f,refresh:d},s[Qp]=function(){return o&&o[Qp]?o[Qp]():i},s[Xp]=function(){return i=!0,o&&o[Xp]&&o[Xp](),s},s[Jp]=c,s=vi(s,TM,{get:function(){return!!o},set:p}),{h:s,dn:function(){o=qt}}}var NM,kM;function CM(e){var t=Le(e)?e:NM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>0&&Le(n[0])&&(t=n[0])}return t||setTimeout}function PM(e){var t=Le(e)?e:kM;if(!t){var n=df().tmOut||[];$e(n)&&n.length>1&&Le(n[1])&&(t=n[1])}return t||clearTimeout}function iS(e,t,n){var i=$e(t),o=i?t.length:0,s=CM(o>0?t[0]:i?vn:t),c=PM(o>1?t[1]:vn),f=n[0];n[0]=function(){d.dn(),zo(f,vn,mi[rn](arguments))};var d=bM(e,function(p){if(p){if(p.refresh)return p.refresh(),p;zo(c,vn,[p])}return zo(s,vn,n)},function(p){zo(c,vn,[p])});return d.h}function Jn(e,t){return iS(!0,vn,mi[rn](arguments))}function DM(e,t){return iS(!1,vn,mi[rn](arguments))}var gf,yf="constructor",wi="prototype",Sf="function",wf="_dynInstFuncs",e_="_isDynProxy",_s="_dynClass",xM="_dynCls$",t_="_dynInstChk",ec=t_,oS="_dfOpts",aS="_unknown_",n_="__proto__",Ef="_dyn"+n_,sS="__dynProto$Gbl",r_="_dynInstProto",Tf="useBaseInst",i_="setInstFuncs",o_=Object,tc=o_.getPrototypeOf,lS=o_.getOwnPropertyNames,cS=Xn(),a_=cS[sS]||(cS[sS]={o:(gf={},gf[i_]=!0,gf[Tf]=!0,gf),n:1e3});function bf(e){return e&&(e===o_[wi]||e===Array[wi])}function s_(e){return bf(e)||e===Function[wi]}function Ho(e){var t;if(e){if(tc)return tc(e);var n=e[n_]||e[wi]||(e[yf]?e[yf][wi]:null);t=e[Ef]||n,qn(e,Ef)||(delete e[r_],t=e[Ef]=e[r_]||e[Ef],e[r_]=n)}return t}function Nf(e,t){var n=[];if(lS)n=lS(e);else for(var i in e)typeof i=="string"&&qn(e,i)&&n.push(i);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function l_(e,t,n){return t!==yf&&typeof e[t]===Sf&&(n||qn(e,t))&&t!==n_&&t!==wi}function kf(e){Ir("DynamicProto: "+e)}function OM(e){var t=yi(null);return Nf(e,function(n){!t[n]&&l_(e,n,!1)&&(t[n]=e[n])}),t}function c_(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function IM(e,t,n,i){function o(d,p,_){var v=p[_];if(v[e_]&&i){var y=d[wf]||{};y[ec]!==!1&&(v=(y[p[_s]]||{})[_]||v)}return function(){return v.apply(d,arguments)}}var s=yi(null);Nf(n,function(d){s[d]=o(t,n,d)});for(var c=Ho(e),f=[];c&&!s_(c)&&!c_(f,c);)Nf(c,function(d){!s[d]&&l_(c,d,!tc)&&(s[d]=o(t,c,d))}),f.push(c),c=Ho(c);return s}function RM(e,t,n,i){var o=null;if(e&&qn(n,_s)){var s=e[wf]||yi(null);if(o=(s[n[_s]]||yi(null))[t],o||kf("Missing ["+t+"] "+Sf),!o[t_]&&s[ec]!==!1){for(var c=!qn(e,t),f=Ho(e),d=[];c&&f&&!s_(f)&&!c_(d,f);){var p=f[t];if(p){c=p===i;break}d.push(f),f=Ho(f)}try{c&&(e[t]=o),o[t_]=1}catch{s[ec]=!1}}}return o}function LM(e,t,n){var i=t[e];return i===n&&(i=Ho(t)[e]),typeof i!==Sf&&kf("["+e+"] is not a "+Sf),i}function MM(e,t,n,i,o){function s(d,p){var _=function(){var v=RM(this,p,d,_)||LM(p,d,_);return v.apply(this,arguments)};return _[e_]=1,_}if(!bf(e)){var c=n[wf]=n[wf]||yi(null);if(!bf(c)){var f=c[t]=c[t]||yi(null);c[ec]!==!1&&(c[ec]=!!o),bf(f)||Nf(n,function(d){l_(n,d,!1)&&n[d]!==i[d]&&(f[d]=n[d],delete n[d],(!qn(e,d)||e[d]&&!e[d][e_])&&(e[d]=s(e,d)))})}}}function AM(e,t){if(tc){for(var n=[],i=Ho(t);i&&!s_(i)&&!c_(n,i);){if(i===e)return!0;n.push(i),i=Ho(i)}return!1}return!0}function u_(e,t){return qn(e,wi)?e.name||t||aS:((e||{})[yf]||{}).name||t||aS}function St(e,t,n,i){qn(e,wi)||kf("theClass is an invalid class definition.");var o=e[wi];AM(o,t)||kf("["+u_(e)+"] not in hierarchy of ["+u_(t)+"]");var s=null;qn(o,_s)?s=o[_s]:(s=xM+u_(e,"_")+"$"+a_.n,a_.n++,o[_s]=s);var c=St[oS],f=!!c[Tf];f&&i&&i[Tf]!==void 0&&(f=!!i[Tf]);var d=OM(t),p=IM(o,t,d,f);n(t,p);var _=!!tc&&!!c[i_];_&&i&&(_=!!i[i_]),MM(o,s,t,d,_!==!1)}St[oS]=a_.o;var uS="function",fS="object",f_="undefined",Mr="prototype",d_=Object,BM=d_[Mr];(Xn()||{}).Symbol,(Xn()||{}).Reflect;var dS="hasOwnProperty",VM=function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)BM[dS].call(t,o)&&(e[o]=t[o])}return e},En=Rp||VM,h_=function(e,t){return h_=d_.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i[dS](o)&&(n[o]=i[o])},h_(e,t)};function Ei(e,t){typeof t!==uS&&t!==null&&Ir("Class extends value "+String(t)+" is not a constructor or null"),h_(e,t);function n(){this.constructor=e}e[Mr]=t===null?yi(t):(n[Mr]=t[Mr],new n)}function hS(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}var pS=FL,FM=UL,no=pS({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),ms="toLowerCase",Ve="length",Cf="warnToConsole",nc="throwInternal",Wo="watch",Zo="apply",ot="push",vs="splice",Ut="logger",Go="cancel",rc="initialize",ro="identifier",Pf="removeNotificationListener",Df="addNotificationListener",Ar="isInitialized",xf="getNotifyMgr",ic="getPlugin",jo="name",Tn="processNext",_S="getProcessTelContext",qo="value",gs="enabled",mS="stopPollingInternalLogs",Ko="unload",Of="onComplete",p_="version",vS="loggingLevelConsole",Xo="createNew",Ti="teardown",If="messageId",Jo="message",bi="diagLog",Rf="_doTeardown",oc="update",Br="getNext",ac="setNextPlugin",__="userAgent",ys="split",Qo="replace",io="type",gS="evtName",Ni="status",YM="indexOf",yS="getAllResponseHeaders",m_="isChildEvt",mr="data",Ss="getCtx",Vr="setCtx",SS="itemsReceived",Lf="headers",sc="urlString",ws="timeout",v_="traceFlags",g_="getAttribute",y_;function $M(e,t){y_||(y_=j0("AggregationError",function(i,o){o[Ve]>1&&(i.errors=o[1])}));var n=e;throw Se(t,function(i,o){n+=`
57
+ `.concat(o," > ").concat(Te(i))}),new y_(n,t||[])}/*!
55
58
  * NevWare21 Solutions LLC - ts-async, 0.5.4
56
59
  * https://github.com/nevware21/ts-async
57
60
  * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
58
61
  * Licensed under the MIT license.
59
- */var uu="Promise",Ah="rejected";function cn(e,t){return fy(e,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Ah,rejected:!0,reason:n}):n})}function fy(e,t,n,r){var i=e;try{if(si(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(a){if(n)i=n(a);else throw a}}finally{}return i}var dy=["pending","resolving","resolved",Ah],hy="dispatchEvent",fu;function $P(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}function BP(e,t,n,r){var i=Ot();!fu&&(fu=yn(!!ft($P,[i]).v));var a=fu.v?i.createEvent("Event"):r?new Event(t):{};if(n&&n(a),fu.v&&a.initEvent(t,!1,!0),a&&e[hy])e[hy](a);else{var s=e["on"+t];if(s)s(a);else{var l=ot("console");l&&(l.error||l.log)(t,se(a))}}}var py="unhandledRejection",UP=py.toLowerCase(),my=[],HP=0,GP=10,Mh;function vy(e){return Se(e)?e.toString():se(e)}function _y(e,t,n){var r=jc(arguments,3),i=0,a=!1,s,l=[],c=HP++,u=!1,f=null,d;function p(A,V){try{my.push(c),u=!0,f&&f.cancel(),f=null;var z=e(function(b,I){l.push(function(){try{var B=i===2?A:V,k=dt(B)?s:Se(B)?B(s):B;si(k)?k.then(b,I):B?b(k):i===3?I(k):b(k)}catch(P){I(P)}}),a&&_()},r);return z}finally{my.pop()}}function h(A){return p(void 0,A)}function m(A){var V=A,z=A;return Se(A)&&(V=function(b){return A&&A(),b},z=function(b){throw A&&A(),b}),p(V,z)}function v(){return dy[i]}function _(){if(l.length>0){var A=l.slice();l=[],u=!0,f&&f.cancel(),f=null,t(A)}}function g(A,V){return function(z){if(i===V){if(A===2&&si(z)){i=1,z.then(g(2,1),g(3,1));return}i=A,a=!0,s=z,_(),!u&&A===3&&!f&&(f=En(S,GP))}}}function S(){if(!u)if(u=!0,eP())process.emit(py,s,d);else{var A=sn()||Sn();!Mh&&(Mh=yn(ft(ot,[uu+"RejectionEvent"]).v)),BP(A,UP,function(V){return Le(V,"promise",{g:function(){return d}}),V.reason=s,V},!!Mh.v)}}d={then:p,catch:h,finally:m},Pr(d,"state",{get:v}),nP()&&(d[Zd(11)]="IPromise");function C(){return"IPromise "+v()+(a?" - "+vy(s):"")}return d.toString=C,function(){Se(n)||qn(uu+": executor is not a function - "+vy(n));var V=g(3,0);try{n.call(d,g(2,0),V)}catch(z){V(z)}}(),d}function WP(e){return function(t){var n=jc(arguments,1);return e(function(r,i){try{var a=[],s=1;nh(t,function(l,c){l&&(s++,fy(l,function(u){a[c]=u,--s===0&&r(a)},i))}),s--,s===0&&r(a)}catch(l){i(l)}},n)}}function jP(e){return yn(function(t){var n=jc(arguments,1);return e(function(r,i){var a=[],s=1;function l(c,u){s++,cn(c,function(f){f.rejected?a[u]={status:Ah,reason:f.reason}:a[u]={status:"fulfilled",value:f.value},--s===0&&r(a)})}try{ke(t)?oe(t,l):xg(t)?nh(t,l):qn("Input is not an iterable"),s--,s===0&&r(a)}catch(c){i(c)}},n)})}function gy(e){oe(e,function(t){try{t()}catch{}})}function zP(e){var t=Ls(e)?e:0;return function(n){En(function(){gy(n)},t)}}function yy(e,t){return _y(yy,zP(t),e,t)}var xh;function KP(e,t){!xh&&(xh=yn(ft(ot,[uu]).v||null));var n=xh.v;if(!n)return yy(e);Se(e)||qn(uu+": executor is not a function - "+se(e));var r=0;function i(){return dy[r]}var a=new n(function(s,l){function c(f){r=2,s(f)}function u(f){r=3,l(f)}e(c,u)});return Pr(a,"state",{get:i}),a}var Vh;function Js(e){return _y(Js,gy,e)}function qP(e,t){return!Vh&&(Vh=jP(Js)),Vh.v(e,t)}var Lh;function pi(e,t){return!Lh&&(Lh=yn(KP)),Lh.v.call(this,e,t)}var XP=WP(pi),nr=void 0,Fe="",To="channels",Dt="core",Fh="createPerfMgr",Yh="disabled",No="extensionConfig",wo="extensions",rr="processTelemetry",du="priority",hu="eventsSent",Qs="eventsDiscarded",pu="eventsSendRequest",oa="perfEvent",$h="offlineEventsStored",Bh="offlineBatchSent",Uh="offlineBatchDrop",mu="getPerfMgr",Hh="domain",Gh="path",JP="Not dynamic - ",QP="getPrototypeOf",ZP=/-([a-z])/g,eA=/([^\w\d_$])/g,tA=/^(\d+[\w\d_$])/,nA=Object[QP];function sa(e){return!K(e)}function vu(e){var t=e;return t&&ye(t)&&(t=t[aa](ZP,function(n,r){return r.toUpperCase()}),t=t[aa](eA,"_"),t=t[aa](tA,function(n,r){return"_"+r})),t}function Yt(e,t){return e&&t?jt(e,t)!==-1:!1}function bo(e){return e&&e.toISOString()||""}function je(e){return Gd(e)?e[ea]:Fe}function Qe(e,t,n,r,i){var a=n;return e&&(a=e[t],a!==n&&(!i||i(a))&&(!r||r(n))&&(a=n,e[t]=a)),a}function qt(e,t,n){var r;return e?(r=e[t],!r&&K(r)&&(r=dt(n)?{}:n,e[t]=r)):r=dt(n)?{}:n,r}function Sy(e,t){var n=null,r=null;return Se(e)?n=e:r=e,function(){var i=arguments;if(n&&(r=n()),r)return r[t][Qi](r,i)}}function rA(e,t,n){if(e&&t&&en(e)&&en(t)){var r=function(a){if(ye(a)){var s=t[a];Se(s)?(!n||n(a,!0,t,e))&&(e[a]=Sy(t,a)):(!n||n(a,!1,t,e))&&(li(e,a)&&delete e[a],Le(e,a,{g:function(){return t[a]},s:function(l){t[a]=l}}))}};for(var i in t)r(i)}return e}function _u(e,t,n,r,i){e&&t&&n&&(e[t]=Sy(n,r))}function Zs(e,t,n,r){return e&&t&&en(e)&&ke(n)&&oe(n,function(i){ye(i)&&_u(e,i,t,i)}),e}function iA(e){return function(){function t(){var n=this;e&&Me(e,function(r,i){n[r]=i})}return t}()}function Ey(e){return e&&jd&&(e=bh(jd({},e))),e}function Ty(e,t,n,r,i,a){var s=arguments,l=s[0]||{},c=s[we],u=!1,f=1;for(c>0&&Sg(l)&&(u=l,l=s[f]||{},f++),en(l)||(l={});f<c;f++){var d=s[f],p=ke(d),h=en(d);for(var m in d){var v=p&&m in d||h&&li(d,m);if(v){var _=d[m],g=void 0;if(u&&_&&((g=ke(_))||Wt(_))){var S=l[m];g?ke(S)||(S=[]):Wt(S)||(S={}),_=Ty(u,S,_)}_!==void 0&&(l[m]=_)}}}return l}function gu(e,t,n){var r=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&r){var i=r.mode;if(i===3)return!0;if(i===2)return!1}return n}function yu(e){try{return e.responseText}catch{}return null}function Ny(e,t){return e?"XDomainRequest,Response:"+yu(e)||"":t}function Su(e,t){return e?"XMLHttpRequest,Status:"+e[$r]+",Response:"+yu(e)||e.response||"":t}function wy(e,t){return t&&(Ls(t)?e=[t].concat(e):ke(t)&&(e=t.concat(e))),e}var aA="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",by="withCredentials",oA="timeout";function sA(e,t,n,r,i,a){i===void 0&&(i=!1);function s(c,u,f){try{c[u]=f}catch{}}var l=new XMLHttpRequest;return s(l,aA,r),n&&s(l,by,n),l.open(e,t,!i),n&&s(l,by,n),!i&&a&&s(l,oA,a),l}function lA(e){var t={};if(ye(e)){var n=Ze(e)[yo](/[\r\n]+/);oe(n,function(r){if(r){var i=r[FP](": ");if(i!==-1){var a=Ze(r.substring(0,i))[vo](),s=Ze(r.substring(i+1));t[a]=s}else t[Ze(r)]=1}})}return t}function Wh(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=Ze(r))}return e}var cA="kill-duration",uA="kill-duration-seconds",fA="time-delta-millis";function jh(e,t){var n={};return e[cy]?n=lA(e[cy]()):t&&(n=Wh(n,e,fA),n=Wh(n,e,cA),n=Wh(n,e,uA)),n}var dA="documentMode",hA="location",pA="console",Dy="JSON",mA="crypto",vA="msCrypto",_A="ReactNative",zh="msie",Kh="trident/",ky="XMLHttpRequest",qh=null,Xh=null,gA=!1,Do=null,Jh=null;function Cy(e,t){var n=!1;if(e){try{if(n=t in e,!n){var r=e[Qn];r&&(n=t in r)}}catch{}if(!n)try{var i=new e;n=!dt(i[t])}catch{}}return n}function ir(e){if(e&&gA){var t=ot("__mockLocation");if(t)return t}return typeof location===ty&&location?location:ot(hA)}function yA(){return typeof console!==wh?console:ot(pA)}function el(){return!!(typeof JSON===ty&&JSON||ot(Dy)!==null)}function Vn(){return el()?JSON||ot(Dy):null}function SA(){return ot(mA)}function EA(){return ot(vA)}function TA(){var e=Jn();return e&&e.product?e.product===_A:!1}function Qh(){var e=Jn();if(e&&(e[Ch]!==Xh||qh===null)){Xh=e[Ch];var t=(Xh||Fe)[vo]();qh=Yt(t,zh)||Yt(t,Kh)}return qh}function Iy(e){if(e===void 0&&(e=null),!e){var t=Jn()||{};e=t?(t.userAgent||Fe)[vo]():Fe}var n=(e||Fe)[vo]();if(Yt(n,zh)){var r=Ot()||{};return Ys(parseInt(n[yo](zh)[1]),r[dA]||0)}else if(Yt(n,Kh)){var i=parseInt(n[yo](Kh)[1]);if(i)return i+4}return null}function tl(e){return(Jh===null||e===!1)&&(Jh=QO()&&!!Jn().sendBeacon),Jh}function Zh(e){var t=!1;try{t=!!ot("fetch");var n=ot("Request");t&&e&&n&&(t=Cy(n,"keepalive"))}catch{}return t}function NA(){return Do===null&&(Do=typeof XDomainRequest!==wh,Do&&Eu()&&(Do=Do&&!Cy(ot(ky),"withCredentials"))),Do}function Eu(){var e=!1;try{var t=ot(ky);e=!!t}catch{}return e}function wA(e,t){return e&&e.dispatchEvent&&t?(e.dispatchEvent(t),!0):!1}function bA(e,t){var n=null,r={detail:t||null};if(Se(CustomEvent))n=new CustomEvent(e,r);else{var i=Ot();i&&i.createEvent&&(n=i.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,r))}return n}function DA(e,t,n){var r=Sn();if(r&&r.CustomEvent)try{var i={cfg:t||null,customDetails:n||null};return wA(r,bA(e,i))}catch{}return!1}var Ry=4294967296,mi=4294967295,Oy=123456789,Py=987654321,Ay=!1,nl=Oy,rl=Py;function kA(e){e<0&&(e>>>=0),nl=Oy+e&mi,rl=Py-e&mi,Ay=!0}function CA(){try{var e=Mn()&2147483647;kA((Math.random()*Ry^e)+e)}catch{}}function IA(e){return ln(il()/mi*(e+1))>>>0}function il(e){var t=0,n=SA()||EA();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&mi),t===0&&Qh()&&(Ay||CA(),t=RA()&mi),t===0&&(t=ln(Ry*Math.random()|0)),t>>>=0,t}function RA(e){rl=36969*(rl&65535)+(rl>>16)&mi,nl=18e3*(nl&65535)+(nl>>16)&mi;var t=(rl<<16)+(nl&65535)>>>0&mi|0;return t>>>=0,t}function ep(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=il()>>>0,r=0,i=Fe;i[we]<e;)r++,i+=t.charAt(n&63),n>>>=6,r===5&&(n=(il()<<2&4294967295|n&3)>>>0,r=0);return i}var My="3.3.7",OA="."+ep(6),PA=0;function xy(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function AA(e,t){var n=t[e.id];if(!n){n={};try{xy(t)&&Le(t,e.id,{e:!1,v:n})}catch{}}return n}function Tn(e,t){return t===void 0&&(t=!1),vu(e+PA+++(t?"."+My:Fe)+OA)}function Vy(e){var t={id:Tn("_aiData-"+(e||Fe)+"."+My),accept:function(n){return xy(n)},get:function(n,r,i,a){var s=n[t.id];return s?s[vu(r)]:(a&&(s=AA(t,n),s[vu(r)]=i),i)},kill:function(n,r){if(n&&n[r])try{delete n[r]}catch{}}};return t}function Tu(e){return e&&en(e)&&(e.isVal||e.fb||li(e,"v")||li(e,"mrg")||li(e,"ref")||e.set)}function Ly(e,t,n){var r,i=n.dfVal||TO;if(t&&n.fb){var a=n.fb;ke(a)||(a=[a]);for(var s=0;s<a[we];s++){var l=a[s],c=t[l];if(i(c)?r=c:e&&(c=e.cfg[l],i(c)&&(r=c),e.set(e.cfg,Gt(l),c)),i(r))break}}return!i(r)&&i(n.v)&&(r=n.v),r}function tp(e,t,n){var r=n;if(n&&Tu(n)&&(r=Ly(e,t,n)),r){Tu(r)&&(r=tp(e,t,r));var i;ke(r)?(i=[],i[we]=r[we]):Wt(r)&&(i={}),i&&(Me(r,function(a,s){s&&Tu(s)&&(s=tp(e,t,s)),i[a]=s}),r=i)}return r}function np(e,t,n,r){var i,a,s,l=r,c,u,f,d;Tu(l)?(i=l.isVal,a=l.set,f=l.rdOnly,d=l.blkVal,c=l.mrg,u=l.ref,!u&&dt(u)&&(u=!!c),s=Ly(e,t,l)):s=r,d&&e.blkVal(t,n);var p,h=!0,m=t[n];(m||!K(m))&&(p=m,h=!1,i&&p!==s&&!i(p)&&(p=s,h=!0),a&&(p=a(p,s,t),h=p===s)),h?s?p=tp(e,t,s):p=s:(Wt(p)||ke(s))&&c&&s&&(Wt(s)||ke(s))&&Me(s,function(v,_){np(e,p,v,_)}),e.set(t,n,p),u&&e.ref(t,n),f&&e.rdOnly(t,n)}var vi=eh("[[ai_dynCfg_1]]"),Fy=eh("[[ai_blkDynCfg_1]]"),MA=eh("[[ai_frcDynCfg_1]]");function Yy(e){if(e){var t;if(ke(e)?(t=[],t[we]=e[we]):Wt(e)&&(t={}),t)return Me(e,function(n,r){t[n]=Yy(r)}),t}return e}function xA(e){if(e){var t=e[vi]||e;if(t.cfg&&(t.cfg===e||t.cfg[vi]===t))return t}return null}function VA(e){if(e&&(Wt(e)||ke(e)))try{e[Fy]=!0}catch{}return e}function rp(e,t,n){var r=!1;return n&&!e[t.blkVal]&&(r=n[MA],!r&&!n[Fy]&&(r=Wt(n)||ke(n))),r}function $y(e){qn("InvalidAccess:"+e)}var LA=["push","pop","shift","unshift","splice"],al=function(e,t,n,r){e&&e[Ws](3,108,"".concat(n," [").concat(t,"] failed - ")+se(r))};function FA(e,t,n){ke(t)&&oe(LA,function(r){var i=t[r];t[r]=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=i[Qi](this,a);return bu(e,t,n,"Patching"),l}})}function Nu(e,t){var n=yP(e,t);return n&&n.get}function YA(e,t,n,r){var i={n,h:[],trk:function(u){u&&u.fn&&(Ft(i.h,u)===-1&&i.h[Be](u),e.trk(u,i))},clr:function(u){var f=Ft(i.h,u);f!==-1&&i.h[_o](f,1)}},a=!0,s=!1;function l(){a&&(s=s||rp(l,e,r),r&&!r[vi]&&s&&(r=bu(e,r,n,"Converting")),a=!1);var u=e.act;return u&&i.trk(u),r}l[e.prop]={chng:function(){e.add(i)}};function c(u){if(r!==u){l[e.ro]&&!e.upd&&$y("["+n+"] is read-only:"+se(t)),a&&(s=s||rp(l,e,r),a=!1);var f=s&&l[e.rf];if(s)if(f){Me(r,function(p){r[p]=u?u[p]:nr});try{Me(u,function(p,h){wu(e,r,p,h)}),u=r}catch(p){al((e.hdlr||{})[yt],n,"Assigning",p),s=!1}}else r&&r[vi]&&Me(r,function(p){var h=Nu(r,p);if(h){var m=h[e.prop];m&&m.chng()}});if(u!==r){var d=u&&rp(l,e,u);!f&&d&&(u=bu(e,u,n,"Converting")),r=u,s=d}e.add(i)}}Le(t,i.n,{g:l,s:c})}function wu(e,t,n,r){if(t){var i=Nu(t,n),a=i&&!!i[e.prop];a?t[n]=r:YA(e,t,n,r)}return t}function ip(e,t,n,r){if(t){var i=Nu(t,n),a=i&&!!i[e.prop],s=r&&r[0],l=r&&r[1],c=r&&r[2];if(!a){if(c)try{VA(t)}catch(u){al((e.hdlr||{})[yt],n,"Blocking",u)}try{wu(e,t,n,t[n]),i=Nu(t,n)}catch(u){al((e.hdlr||{})[yt],n,"State",u)}}s&&(i[e.rf]=s),l&&(i[e.ro]=l),c&&(i[e.blkVal]=!0)}return t}function bu(e,t,n,r){try{Me(t,function(i,a){wu(e,t,i,a)}),t[vi]||(Pr(t,vi,{get:function(){return e.hdlr}}),FA(e,t,n))}catch(i){al((e.hdlr||{})[yt],n,r,i)}return t}var ol="[[ai_",sl="]]";function $A(e){var t=Bs(ol+"get"+e.uid+sl),n=Bs(ol+"ro"+e.uid+sl),r=Bs(ol+"rf"+e.uid+sl),i=Bs(ol+"blkVal"+e.uid+sl),a=Bs(ol+"dtl"+e.uid+sl),s=null,l=null,c;function u(h,m){var v=c.act;try{c.act=h,h&&h[a]&&(oe(h[a],function(g){g.clr(h)}),h[a]=[]),m({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(g){var _=e[yt];throw _&&_[Ws](1,107,se(g)),g}finally{c.act=v||null}}function f(){if(s){var h=s;s=null,l&&l[Zi](),l=null;var m=[];if(oe(h,function(v){if(v&&(v[a]&&(oe(v[a],function(_){_.clr(v)}),v[a]=null),v.fn))try{u(v,v.fn)}catch(_){m[Be](_)}}),s)try{f()}catch(v){m[Be](v)}m[we]>0&&YP("Watcher error(s): ",m)}}function d(h){if(h&&h.h[we]>0){s||(s=[]),l||(l=En(function(){l=null,f()},0));for(var m=0;m<h.h[we];m++){var v=h.h[m];v&&Ft(s,v)===-1&&s[Be](v)}}}function p(h,m){if(h){var v=h[a]=h[a]||[];Ft(v,m)===-1&&v[Be](m)}}return c={prop:t,ro:n,rf:r,blkVal:i,hdlr:e,add:d,notify:f,use:u,trk:p},c}function BA(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return Le(n,"toJSON",{v:function(){return"WatcherHandler"+(n.fn?"":"[X]")}}),e.use(n,t),n}function UA(e,t,n){var r=xA(t);if(r)return r;var i=Tn("dyncfg",!0),a=t&&n!==!1?t:Yy(t),s;function l(){s.notify()}function c(_,g,S){try{_=wu(s,_,g,S)}catch(C){al(e,g,"Setting value",C)}return _[g]}function u(_){return BA(s,_)}function f(_,g){s.use(null,function(S){var C=s.upd;try{dt(g)||(s.upd=g),_(S)}finally{s.upd=C}})}function d(_,g){var S;return ip(s,_,g,(S={},S[0]=!0,S))[g]}function p(_,g){var S;return ip(s,_,g,(S={},S[1]=!0,S))[g]}function h(_,g){var S;return ip(s,_,g,(S={},S[2]=!0,S))[g]}function m(_,g){return g&&Me(g,function(S,C){np(v,_,S,C)}),_}var v={uid:null,cfg:a,logger:e,notify:l,set:c,setDf:m,watch:u,ref:d,rdOnly:p,blkVal:h,_block:f};return Le(v,"uid",{c:!1,e:!1,w:!1,v:i}),s=$A(v),bu(s,a,"config","Creating"),v}function HA(e,t){e?(e[nu](t),e[Ws](2,108,t)):$y(t)}function Nn(e,t,n,r){var i=UA(n,e||{},r);return t&&i.setDf(i.cfg,t),i}function mt(e,t,n){var r=e[vi]||e;return r.cfg&&(r.cfg===e||r.cfg[vi]===r)?r[Ji](t):(HA(n,JP+se(e)),Nn(e,null,n)[Ji](t))}function ko(e,t){if(e&&e[na])return e[na](t)}function By(e,t,n){var r;return n||(r=pi(function(i){n=i})),e&&gP(e)>0?cn(ko(e[0],t),function(){By(jc(e,1),t,n)}):n(),r}var GA=500,Uy="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function WA(e,t,n){return!e&&K(e)?t:Sg(e)?e:Gt(e)[vo]()==="true"}function Ln(e){return{mrg:!0,v:e}}function Hy(e,t){return{set:e,v:t}}function Du(e,t,n){return{fb:n,isVal:e,v:t}}function St(e,t){return{fb:t,set:WA,v:!!e}}function jA(e){return{isVal:ye,v:Gt(Fe)}}var ap=[hu,Qs,pu,oa],ku=null,Cu;function zA(e,t){return function(){var n=arguments,r=Gy(t);if(r){var i=r.listener;i&&i[e]&&i[e][Qi](i,n)}}}function KA(){var e=ot("Microsoft");return e&&(ku=e.ApplicationInsights),ku}function Gy(e){var t=ku;return!t&&e.disableDbgExt!==!0&&(t=ku||KA()),t?t.ChromeDbgExt:null}function qA(e){if(!Cu){Cu={};for(var t=0;t<ap[we];t++)Cu[ap[t]]=zA(ap[t],e)}return Cu}var Co,Wy="warnToConsole",XA="AI (Internal): ",JA="AI: ",QA="AITR_",ZA={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},eM=(Co={},Co[0]=null,Co[1]="errorToConsole",Co[2]=Wy,Co[3]="debugToConsole",Co);function jy(e){return e?'"'+e[aa](/\"/g,Fe)+'"':Fe}function op(e,t){var n=yA();if(n){var r="log";n[e]&&(r=e),Se(n[r])&&n[r](t)}}var ll=function(){function e(t,n,r,i){r===void 0&&(r=!1);var a=this;a[su]=t,a[ia]=(r?JA:XA)+t;var s=Fe;el()&&(s=Vn().stringify(i));var l=(n?" message:"+jy(n):Fe)+(i?" props:"+jy(s):Fe);a[ia]+=l}return e.dataType="MessageData",e}();function la(e,t){return(e||{})[yt]||new Iu(t)}var Iu=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={},i,a,s,l,c;et(e,this,function(u){c=d(t||{}),u.consoleLoggingLevel=function(){return i},u[Ws]=function(m,v,_,g,S){S===void 0&&(S=!1);var C=new ll(v,_,S,g);if(l)throw se(C);var A=eM[m]||Wy;if(dt(C[ia]))h("throw"+(m===1?"Critical":"Warning"),C);else{if(S){var V=+C[su];!r[V]&&i>=m&&(u[A](C[ia]),r[V]=!0)}else i>=m&&u[A](C[ia]);f(m,C)}},u.debugToConsole=function(m){op("debug",m),h("warning",m)},u[nu]=function(m){op("warn",m),h("warning",m)},u.errorToConsole=function(m){op("error",m),h("error",m)},u.resetInternalMessageCount=function(){n=0,r={}},u.logInternalMessage=f,u[na]=function(m){c&&c.rm(),c=null};function f(m,v){if(!p()){var _=!0,g=QA+v[su];if(r[g]?_=!1:r[g]=!0,_&&(m<=a&&(u.queue[Be](v),n++,h(m===1?"error":"warn",v)),n===s)){var S="Internal events throttle limit per PageView reached for this app.",C=new ll(23,S,!1);u.queue[Be](C),m===1?u.errorToConsole(S):u[nu](S)}}}function d(m){return mt(Nn(m,ZA,u).cfg,function(v){var _=v.cfg;i=_[sy],a=_.loggingLevelTelemetry,s=_.maxMessageLimit,l=_.enableDebug})}function p(){return n>=s}function h(m,v){var _=Gy(t||{});_&&_[Yr]&&_[Yr](m,v)}})}return e.__ieDyn=1,e}();function sp(e){return e||new Iu}function Z(e,t,n,r,i,a){a===void 0&&(a=!1),sp(e)[Ws](t,n,r,i,a)}function ca(e,t){sp(e)[nu](t)}function tM(e,t,n){sp(e).logInternalMessage(t,n)}var lp,ua,zy="toGMTString",Ky="toUTCString",cp="cookie",up="expires",qy="isCookieUseDisabled",fp="disableCookiesUsage",Io="_ckMgr",Ru=null,dp=null,Xy=null,ar,Jy={},Ou={},nM=(lp={cookieCfg:Ln((ua={},ua[Hh]={fb:"cookieDomain",dfVal:sa},ua.path={fb:"cookiePath",dfVal:sa},ua.enabled=nr,ua.ignoreCookies=nr,ua.blockedCookies=nr,ua)),cookieDomain:nr,cookiePath:nr},lp[fp]=nr,lp);function hp(){!ar&&(ar=Ig(function(){return Ot()}))}function rM(e,t){var n=Au[Io]||Ou[Io];return n||(n=Au[Io]=Au(e,t),Ou[Io]=n),n}function Pu(e){return e?e.isEnabled():!0}function Qy(e,t){return t&&e&&ke(e.ignoreCookies)?Ft(e.ignoreCookies,t)!==-1:!1}function iM(e,t){return t&&e&&ke(e.blockedCookies)&&Ft(e.blockedCookies,t)!==-1?!0:Qy(e,t)}function Zy(e,t){var n=t[go];if(K(n)){var r=void 0;dt(e[qy])||(r=!e[qy]),dt(e[fp])||(r=!e[fp]),n=r}return n}function pp(e,t){var n;return e&&(n=e.getCookieMgr()),n||(n=rM(t,(e||{})[yt])),n}function Au(e,t){var n,r,i,a,s,l,c,u;e=Nn(e||Ou,null,t).cfg,a=mt(e,function(d){d.setDf(d.cfg,nM),n=d.ref(d.cfg,"cookieCfg"),r=n[Gh]||"/",i=n[Hh],s=Zy(e,n)!==!1,l=n.getCookie||aM,c=n.setCookie||iS,u=n.delCookie||iS},t);var f={isEnabled:function(){var d=Zy(e,n)!==!1&&s&&eS(t),p=Ou[Io];return d&&p&&f!==p&&(d=Pu(p)),d},setEnabled:function(d){s=d!==!1,n[go]=d},set:function(d,p,h,m,v){var _=!1;if(Pu(f)&&!iM(n,d)){var g={},S=Ze(p||Fe),C=jt(S,";");if(C!==-1&&(S=Ze(qd(p,C)),g=tS(Xn(p,C+1))),Qe(g,Hh,m||i,Vc,dt),!K(h)){var A=Qh();if(dt(g[up])){var V=Mn(),z=V+h*1e3;if(z>0){var b=new Date;b.setTime(z),Qe(g,up,nS(b,A?zy:Ky)||nS(b,A?zy:Ky)||Fe,Vc)}}A||Qe(g,"max-age",Fe+h,null,dt)}var I=ir();I&&I.protocol==="https:"&&(Qe(g,"secure",null,null,dt),dp===null&&(dp=!oM((Jn()||{})[Ch])),dp&&Qe(g,"SameSite","None",null,dt)),Qe(g,Gh,v||r,null,dt),c(d,rS(S,g)),_=!0}return _},get:function(d){var p=Fe;return Pu(f)&&!Qy(n,d)&&(p=l(d)),p},del:function(d,p){var h=!1;return Pu(f)&&(h=f.purge(d,p)),h},purge:function(d,p){var h,m=!1;if(eS(t)){var v=(h={},h[Gh]=p||"/",h[up]="Thu, 01 Jan 1970 00:00:01 GMT",h);Qh()||(v["max-age"]="0"),u(d,rS(Fe,v)),m=!0}return m},unload:function(d){a&&a.rm(),a=null}};return f[Io]=f,f}function eS(e){if(Ru===null){Ru=!1,!ar&&hp();try{var t=ar.v||{};Ru=t[cp]!==void 0}catch(n){Z(e,2,68,"Cannot access document.cookie - "+je(n),{exception:se(n)})}}return Ru}function tS(e){var t={};if(e&&e[we]){var n=Ze(e)[yo](";");oe(n,function(r){if(r=Ze(r||Fe),r){var i=jt(r,"=");i===-1?t[r]=null:t[Ze(qd(r,i))]=Ze(Xn(r,i+1))}})}return t}function nS(e,t){return Se(e[t])?e[t]():null}function rS(e,t){var n=e||Fe;return Me(t,function(r,i){n+="; "+r+(K(i)?Fe:"="+i)}),n}function aM(e){var t=Fe;if(!ar&&hp(),ar.v){var n=ar.v[cp]||Fe;Xy!==n&&(Jy=tS(n),Xy=n),t=Ze(Jy[e]||Fe)}return t}function iS(e,t){!ar&&hp(),ar.v&&(ar.v[cp]=e+"="+t)}function oM(e){return ye(e)?!!(Yt(e,"CPU iPhone OS 12")||Yt(e,"iPad; CPU OS 12")||Yt(e,"Macintosh; Intel Mac OS X 10_14")&&Yt(e,"Version/")&&Yt(e,"Safari")||Yt(e,"Macintosh; Intel Mac OS X 10_14")&&zg(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Yt(e,"Chrome/5")||Yt(e,"Chrome/6")||Yt(e,"UnrealEngine")&&!Yt(e,"Chrome")||Yt(e,"UCBrowser/12")||Yt(e,"UCBrowser/11")):!1}var sM={perfEvtsSendAll:!1};function lM(e){e.h=null;var t=e.cb;e.cb=[],oe(t,function(n){ft(n.fn,[n.arg])})}function _i(e,t,n,r){oe(e,function(i){i&&i[t]&&(n?(n.cb[Be]({fn:r,arg:i}),n.h=n.h||En(lM,0,n)):ft(r,[i]))})}var cM=function(){function e(t){this.listeners=[];var n,r,i=[],a={h:null,cb:[]},s=Nn(t,sM);r=s[Ji](function(l){n=!!l.cfg.perfEvtsSendAll}),et(e,this,function(l){Le(l,"listeners",{g:function(){return i}}),l[iu]=function(c){i[Be](c)},l[ru]=function(c){for(var u=Ft(i,c);u>-1;)i[_o](u,1),u=Ft(i,c)},l[hu]=function(c){_i(i,hu,a,function(u){u[hu](c)})},l[Qs]=function(c,u){_i(i,Qs,a,function(f){f[Qs](c,u)})},l[pu]=function(c,u){_i(i,pu,u?a:null,function(f){f[pu](c,u)})},l[oa]=function(c){c&&(n||!c[Ih]())&&_i(i,oa,null,function(u){c.isAsync?En(function(){return u[oa](c)},0):u[oa](c)})},l[$h]=function(c){c&&c[we]&&_i(i,$h,a,function(u){u[$h](c)})},l[Bh]=function(c){c&&c[xn]&&_i(i,Bh,a,function(u){u[Bh](c)})},l[Uh]=function(c,u){if(c>0){var f=u||0;_i(i,Uh,a,function(d){d[Uh](c,f)})}},l[na]=function(c){var u=function(){r&&r.rm(),r=null,i=[],a.h&&a.h[Zi](),a.h=null,a.cb=[]},f;if(_i(i,"unload",null,function(d){var p=d[na](c);p&&(f||(f=[]),f[Be](p))}),f)return pi(function(d){return cn(XP(f),function(){u(),d()})});u()}})}return e.__ieDyn=1,e}(),Ro="ctx",mp="ParentContextKey",cl="ChildrenContextKey",uM=null,Mu=function(){function e(t,n,r){var i=this;if(i.start=Mn(),i[ea]=t,i.isAsync=r,i[Ih]=function(){return!1},Se(n)){var a;Le(i,"payload",{g:function(){return!a&&Se(n)&&(a=n(),n=null),a}})}i[So]=function(s){return s?s===e[mp]||s===e[cl]?i[s]:(i[Ro]||{})[s]:null},i[tr]=function(s,l){if(s)if(s===e[mp])i[s]||(i[Ih]=function(){return!0}),i[s]=l;else if(s===e[cl])i[s]=l;else{var c=i[Ro]=i[Ro]||{};c[s]=l}},i.complete=function(){var s=0,l=i[So](e[cl]);if(ke(l))for(var c=0;c<l[we];c++){var u=l[c];u&&(s+=u.time)}i.time=Mn()-i.start,i.exTime=i.time-s,i.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),fM=function(){function e(t){this.ctx={},et(e,this,function(n){n.create=function(r,i,a){return new Mu(r,i,a)},n.fire=function(r){r&&(r.complete(),t&&Se(t[oa])&&t[oa](r))},n[tr]=function(r,i){if(r){var a=n[Ro]=n[Ro]||{};a[r]=i}},n[So]=function(r){return(n[Ro]||{})[r]}})}return e.__ieDyn=1,e}(),vp="CoreUtils.doPerf";function xu(e,t,n,r,i){if(e){var a=e;if(a[mu]&&(a=a[mu]()),a){var s=void 0,l=a[So](vp);try{if(s=a.create(t(),r,i),s){if(l&&s[tr]&&(s[tr](Mu[mp],l),l[So]&&l[tr])){var c=l[So](Mu[cl]);c||(c=[],l[tr](Mu[cl],c)),c[Be](s)}return a[tr](vp,s),n(s)}}catch(u){s&&s[tr]&&s[tr]("exception",u)}finally{s&&a.fire(s),a[tr](vp,l)}}}return n()}function dM(){return uM}function gi(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=Fe,n,r=0;r<4;r++)n=il(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var i=e[8+(il()&3)|0];return ci(t,0,8)+ci(t,9,4)+"4"+ci(t,13,3)+i+ci(t,16,3)+ci(t,19,12)}var _p="00",hM="ff",aS="00000000000000000000000000000000",oS="0000000000000000";function ul(e,t,n){return e&&e[we]===t&&e!==n?!!e.match(/^[\da-f]*$/i):!1}function sS(e,t,n){return ul(e,t)?e:n}function pM(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[we]<2;)t="0"+t;return t}function lS(e,t,n,r){return{version:ul(r,2,hM)?r:_p,traceId:gp(e)?e:gi(),spanId:yp(t)?t:qd(gi(),16),traceFlags:n>=0&&n<=255?n:1}}function gp(e){return ul(e,32,aS)}function yp(e){return ul(e,16,oS)}function cS(e){if(e){var t=pM(e[Rh]);ul(t,2)||(t="01");var n=e[kh]||_p;return n!=="00"&&n!=="ff"&&(n=_p),"".concat(n.toLowerCase(),"-").concat(sS(e.traceId,32,aS).toLowerCase(),"-").concat(sS(e.spanId,16,oS).toLowerCase(),"-").concat(t.toLowerCase())}return""}function mM(e){var t=e.getElementsByTagName("script"),n=[];return oe(t,function(r){var i=r[Oh]("src");if(i){var a=r[Oh]("crossorigin"),s=r.hasAttribute("async")===!0,l=r.hasAttribute("defer")===!0,c=r[Oh]("referrerpolicy"),u={url:i};a&&(u.crossOrigin=a),s&&(u.async=s),l&&(u.defer=l),c&&(u.referrerPolicy=c),n[Be](u)}}),n}var vM=Vy("plugin");function fa(e){return vM.get(e,"state",{},!0)}function uS(e,t){for(var n=[],r=null,i=e[er](),a;i;){var s=i[zs]();if(s){r&&r[qs]&&s[rr]&&r[qs](s),a=fa(s);var l=!!a[Zn];s[Zn]&&(l=s[Zn]()),l||n[Be](s),r=s,i=i[er]()}}oe(n,function(c){var u=e[Dt]();c[js](e.getCfg(),u,t,e[er]()),a=fa(c),!c[Dt]&&!a[Dt]&&(a[Dt]=u),a[Zn]=!0,delete a[Fr]})}function Sp(e){return e.sort(function(t,n){var r=0;if(n){var i=n[rr];t[rr]?r=i?t[du]-n[du]:1:i&&(r=-1)}else r=t?1:-1;return r})}function _M(e){var t={};return{getName:function(){return t[ea]},setName:function(n){t[ea]=n},getTraceId:function(){return t.traceId},setTraceId:function(n){gp(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){yp(n)&&(t.spanId=n)},getTraceFlags:function(){return t[Rh]},setTraceFlags:function(n){t[Rh]=n}}}var gM="TelemetryPluginChain",fS="_hasRun",dS="_getTelCtx",hS=0;function yM(e,t,n){for(;e;){if(e[zs]()===n)return e;e=e[er]()}return da([n],t.config||{},t)}function Ep(e,t,n,r){var i=null,a=[];t||(t=Nn({},null,n[yt])),r!==null&&(i=r?yM(e,n,r):e);var s={_next:c,ctx:{core:function(){return n},diagLog:function(){return la(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:f,getConfig:d,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(h){i=h},iterate:p,onComplete:l}};function l(h,m){for(var v=[],_=2;_<arguments.length;_++)v[_-2]=arguments[_];h&&a[Be]({func:h,self:dt(m)?s.ctx:m,args:v})}function c(){var h=i;if(i=h?h[er]():null,!h){var m=a;m&&m[we]>0&&(oe(m,function(v){try{v.func.call(v.self,v.args)}catch(_){Z(n[yt],2,73,"Unexpected Exception during onComplete - "+se(_))}}),a=[])}return h}function u(h,m){var v=null,_=t.cfg;if(_&&h){var g=_[No];!g&&m&&(g={}),_[No]=g,g=t.ref(_,No),g&&(v=g[h],!v&&m&&(v={}),g[h]=v,v=t.ref(g,h))}return v}function f(h,m){var v=u(h,!0);return m&&Me(m,function(_,g){if(K(v[_])){var S=t.cfg[_];(S||!K(S))&&(v[_]=S)}np(t,v,_,g)}),t.setDf(v,m)}function d(h,m,v){v===void 0&&(v=!1);var _,g=u(h,!1),S=t.cfg;return g&&(g[m]||!K(g[m]))?_=g[m]:(S[m]||!K(S[m]))&&(_=S[m]),_||!K(_)?_:v}function p(h){for(var m;m=s._next();){var v=m[zs]();v&&h(v)}}return s}function Fn(e,t,n,r){var i=Nn(t),a=Ep(e,i,n,r),s=a.ctx;function l(u){var f=a._next();return f&&f[rr](u,s),!f}function c(u,f){return u===void 0&&(u=null),ke(u)&&(u=da(u,i.cfg,n,f)),Fn(u||s[er](),i.cfg,n,f)}return s[Kt]=l,s[ra]=c,s}function Vu(e,t,n){var r=Nn(t.config),i=Ep(e,r,t,n),a=i.ctx;function s(c){var u=i._next();return u&&u[na](a,c),!u}function l(c,u){return c===void 0&&(c=null),ke(c)&&(c=da(c,r.cfg,t,u)),Vu(c||a[er](),t,u)}return a[Kt]=s,a[ra]=l,a}function Tp(e,t,n){var r=Nn(t.config),i=Ep(e,r,t,n),a=i.ctx;function s(c){return a.iterate(function(u){Se(u[Ks])&&u[Ks](a,c)})}function l(c,u){return c===void 0&&(c=null),ke(c)&&(c=da(c,r.cfg,t,u)),Tp(c||a[er](),t,u)}return a[Kt]=s,a[ra]=l,a}function da(e,t,n,r){var i=null,a=!r;if(ke(e)&&e[we]>0){var s=null;oe(e,function(l){if(!a&&r===l&&(a=!0),a&&l&&Se(l[rr])){var c=SM(l,t,n);i||(i=c),s&&s._setNext(c),s=c}})}return r&&!i?da([r],t,n):i}function SM(e,t,n){var r=null,i=Se(e[rr]),a=Se(e[qs]),s;e?s=e[di]+"-"+e[du]+"-"+hS++:s="Unknown-0-"+hS++;var l={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:f,unload:d,update:p,_id:s,_setNext:function(h){r=h}};function c(){var h;return e&&Se(e[dS])&&(h=e[dS]()),h||(h=Fn(l,t,n)),h}function u(h,m,v,_,g){var S=!1,C=e?e[di]:gM,A=h[fS];return A||(A=h[fS]={}),h.setNext(r),e&&xu(h[Dt](),function(){return C+":"+v},function(){A[s]=!0;try{var V=r?r._id:Fe;V&&(A[V]=!1),S=m(h)}catch(b){var z=r?A[r._id]:!0;z&&(S=!0),(!r||!z)&&Z(h[Yr](),1,73,"Plugin ["+C+"] failed during "+v+" - "+se(b)+", run flags: "+se(A))}},_,g),S}function f(h,m){m=m||c();function v(_){if(!e||!i)return!1;var g=fa(e);return g[Fr]||g[Yh]?!1:(a&&e[qs](r),e[rr](h,_),!0)}u(m,v,"processTelemetry",function(){return{item:h}},!h.sync)||m[Kt](h)}function d(h,m){function v(){var _=!1;if(e){var g=fa(e),S=e[Dt]||g[Dt];e&&(!S||S===h.core())&&!g[Fr]&&(g[Dt]=null,g[Fr]=!0,g[Zn]=!1,e[Fr]&&e[Fr](h,m)===!0&&(_=!0))}return _}u(h,v,"unload",function(){},m.isAsync)||h[Kt](m)}function p(h,m){function v(){var _=!1;if(e){var g=fa(e),S=e[Dt]||g[Dt];e&&(!S||S===h.core())&&!g[Fr]&&e[Ks]&&e[Ks](h,m)===!0&&(_=!0)}return _}u(h,v,"update",function(){},!1)||h[Kt](m)}return An(l)}function pS(){var e=[];function t(r){r&&e[Be](r)}function n(r,i){oe(e,function(a){try{a(r,i)}catch(s){Z(r[Yr](),2,73,"Unexpected error calling unload handler - "+se(s))}}),e=[]}return{add:t,run:n}}function mS(){var e=[];function t(r){var i=e;e=[],oe(i,function(a){try{(a.rm||a.remove).call(a)}catch(s){Z(r,2,73,"Unloading:"+se(s))}})}function n(r){r&&po(e,r)}return{run:t,add:n}}var Np,yi="getPlugin",EM=(Np={},Np[No]={isVal:sa,v:{}},Np),Oo=function(){function e(){var t=this,n,r,i,a,s;u(),et(e,t,function(f){f[js]=function(d,p,h,m){c(d,p,m),n=!0},f[Fr]=function(d,p){var h=f[Dt];if(!h||d&&h!==d[Dt]())return;var m,v=!1,_=d||Vu(null,h,i&&i[yi]?i[yi]():i),g=p||{reason:0,isAsync:!1};function S(){v||(v=!0,a.run(_,p),s.run(_[Yr]()),m===!0&&_[Kt](g),u())}return!f[lu]||f[lu](_,g,S)!==!0?S():m=!0,m},f[Ks]=function(d,p){var h=f[Dt];if(!h||d&&h!==d[Dt]())return;var m,v=!1,_=d||Tp(null,h,i&&i[yi]?i[yi]():i),g=p||{reason:0};function S(){v||(v=!0,c(_.getCfg(),_.core(),_[er]()))}return!f._doUpdate||f._doUpdate(_,g,S)!==!0?S():m=!0,m},_u(f,"_addUnloadCb",function(){return a},"add"),_u(f,"_addHook",function(){return s},"add"),Le(f,"_unloadHooks",{g:function(){return s}})}),t[Yr]=function(f){return l(f)[Yr]()},t[Zn]=function(){return n},t.setInitialized=function(f){n=f},t[qs]=function(f){i=f},t[Kt]=function(f,d){d?d[Kt](f):i&&Se(i[rr])&&i[rr](f,null)},t._getTelCtx=l;function l(f){f===void 0&&(f=null);var d=f;if(!d){var p=r||Fn(null,{},t[Dt]);i&&i[yi]?d=p[ra](null,i[yi]):d=p[ra](null,i)}return d}function c(f,d,p){Nn(f,EM,la(d)),!p&&d&&(p=d[ay]()[er]());var h=i;i&&i[yi]&&(h=i[yi]()),t[Dt]=d,r=Fn(p,f,d,h)}function u(){n=!1,t[Dt]=null,r=null,i=null,s=mS(),a=pS()}}return e.__ieDyn=1,e}();function TM(e,t,n){var r={id:t,fn:n};po(e,r);var i={remove:function(){oe(e,function(a,s){if(a.id===r.id)return e[_o](s,1),-1})}};return i}function NM(e,t,n){for(var r=!1,i=e[we],a=0;a<i;++a){var s=e[a];if(s)try{if(s.fn[Qi](null,[t])===!1){r=!0;break}}catch(l){Z(n,2,64,"Telemetry initializer failed: "+je(l),{exception:se(l)},!0)}}return!r}var wM=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var r,i;a(),et(t,n,function(s,l){s.addTelemetryInitializer=function(c){return TM(i,r++,c)},s[rr]=function(c,u){NM(i,c,u?u[Yr]():s[Yr]())&&s[Kt](c,u)},s[lu]=function(){a()}});function a(){r=0,i=[]}return n}return t.__ieDyn=1,t}(Oo),Si,vS="Plugins must provide initialize method",bM="_notificationManager",_S="SDK is still unloading...",DM="SDK is not initialized",kM=100,CM=5e4,wp=Fs((Si={cookieCfg:{}},Si[wo]={rdOnly:!0,ref:!0,v:[]},Si[To]={rdOnly:!0,ref:!0,v:[]},Si[No]={ref:!0,v:{}},Si[Fh]=nr,Si.loggingLevelConsole=0,Si.diagnosticLogInterval=nr,Si));function IM(e,t){return new fM(t)}function RM(e,t,n){var r=[],i=[],a={};return oe(n,function(s){(K(s)||K(s[js]))&&on(vS);var l=s[du],c=s[di];s&&l&&(K(a[l])?a[l]=c:ca(e,"Two extensions have same priority #"+l+" - "+a[l]+", "+c)),!l||l<t?r[Be](s):i[Be](s)}),{core:r,channels:i}}function gS(e,t){var n=!1;return oe(t,function(r){if(r===e)return n=!0,-1}),n}function bp(e,t,n,r){n&&Me(n,function(i,a){r&&Wt(a)&&Wt(t[i])&&bp(e,t[i],a,r),r&&Wt(a)&&Wt(t[i])?bp(e,t[i],a,r):e.set(t,i,a)})}function yS(e,t){var n=null,r=-1;return oe(e,function(i,a){if(i.w===t)return n=i,r=a,-1}),{i:r,l:n}}function OM(e,t){var n=yS(e,t).l;return n||(n={w:t,rm:function(){var r=yS(e,t);r.i!==-1&&e[_o](r.i,1)}},e[Be](n)),n}function PM(e,t,n){oe(t,function(r){var i=mt(e,r.w,n);delete r.w,r.rm=function(){i.rm()}})}function AM(e,t,n,r){return t.add(e[Ji](function(i){var a=i.cfg.disableDbgExt;a===!0&&r&&(n[ru](r),r=null),n&&!r&&a!==!0&&(r=qA(i.cfg),n[iu](r))})),r}function MM(e){return Le({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}var xM=function(){function e(){var t,n,r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C,A,V,z,b,I,B,k,P,q,te,E,D,j,x;et(e,this,function(O){U(),O._getDbgPlgTargets=function(){return[b,i]},O[Zn]=function(){return n},O.activeStatus=function(){return k},O._setPendingStatus=function(){k=3},O[js]=function(F,ne,me,de){h&&on(_S),O[Zn]()&&on("Core cannot be initialized more than once"),t=Nn(F,wp,me||O[yt],!1),F=t.cfg,Je(t[Ji](function(W){var G=W.cfg;q=G.initInMemoMaxSize||kM,re(G);var X=W.ref(W.cfg,No);Me(X,function(he){W.ref(X,he)})})),a=de,C=AM(t,S,a&&O[au](),C),fe(),O[yt]=me;var N=F[wo];if(f=[],f[Be].apply(f,ry(ry([],ne,!1),N)),d=F[To],w(null),(!p||p[we]===0)&&on("No "+To+" available"),d&&d[we]>1){var L=O[zs]("TeeChannelController");(!L||!L.plugin)&&Z(r,1,28,"TeeChannel required")}PM(F,z,r),z=null,n=!0,k===fi.ACTIVE&&y()},O.getChannels=function(){var F=[];return p&&oe(p,function(ne){F[Be](ne)}),An(F)},O.track=function(F){xu(O[mu](),function(){return"AppInsightsCore:track"},function(){F===null&&(Mt(F),on("Invalid telemetry item")),!F[ea]&&K(F[ea])&&(Mt(F),on("telemetry name required")),F.iKey=F.iKey||V,F.time=F.time||bo(new Date),F.ver=F.ver||"4.0",!h&&O[Zn]()&&k===fi.ACTIVE?ie()[Kt](F):k!==fi.INACTIVE&&i[we]<=q&&i[Be](F)},function(){return{item:F}},!F.sync)},O[ay]=ie,O[au]=function(){return a||(a=new cM(t.cfg),O[bM]=a),a},O[iu]=function(F){O.getNotifyMgr()[iu](F)},O[ru]=function(F){a&&a[ru](F)},O.getCookieMgr=function(){return c||(c=Au(t.cfg,O[yt])),c},O.setCookieMgr=function(F){c!==F&&(ko(c,!1),c=F)},O[mu]=function(){return s||l||dM()},O.setPerfMgr=function(F){s=F},O.eventCnt=function(){return i[we]},O.releaseQueue=function(){if(n&&i[we]>0){var F=i;i=[],k===2?oe(F,function(ne){ne.iKey=ne.iKey||V,ie()[Kt](ne)}):Z(r,2,20,"core init status is not active")}},O.pollInternalLogs=function(F){return v=F||null,x=!1,D&&D[Zi](),M(!0)};function re(F){var ne=F.instrumentationKey,me=F.endpointUrl;if(k!==3){if(K(ne)){V=null,k=fi.INACTIVE;var de="Please provide instrumentation key";n?(Z(r,1,100,de),y()):on(de);return}var N=[];si(ne)?(N[Be](ne),V=null):V=ne,si(me)?(N[Be](me),P=null):P=me,N[we]?ue(F,N):ve()}}function ue(F,ne){te=!1,k=3;var me=sa(F.initTimeOut)?F.initTimeOut:CM,de=qP(ne);E&&E[Zi](),E=En(function(){E=null,te||ve()},me),cn(de,function(N){try{if(te)return;if(!N.rejected){var L=N[ta];if(L&&L[we]){var W=L[0];if(V=W&&W[ta],L[we]>1){var G=L[1];P=G&&G[ta]}}V&&(F.instrumentationKey=V,F.endpointUrl=P)}ve()}catch{te||ve()}})}function ve(){te=!0,K(V)?(k=fi.INACTIVE,Z(r,1,112,"ikey can't be resolved from promises")):k=fi.ACTIVE,y()}function y(){n&&(O.releaseQueue(),O.pollInternalLogs())}function M(F){if((!D||!D[go])&&!x){var ne=F||r&&r.queue[we]>0;ne&&(j||(j=!0,Je(t[Ji](function(me){var de=me.cfg.diagnosticLogInterval;(!de||!(de>0))&&(de=1e4);var N=!1;D&&(N=D[go],D[Zi]()),D=kP(Ee,de),D.unref(),D[go]=N}))),D[go]=!0)}return D}O[oy]=function(){x=!0,D&&D[Zi](),Ee()},Zs(O,function(){return m},["addTelemetryInitializer"]),O[na]=function(F,ne,me){F===void 0&&(F=!0),n||on(DM),h&&on(_S);var de={reason:50,isAsync:F,flushComplete:!1},N;F&&!ne&&(N=pi(function(G){ne=G}));var L=Vu(Y(),O);L[ou](function(){S.run(O[yt]),By([c,a,r],F,function(){U(),ne&&ne(de)})},O);function W(G){de.flushComplete=G,h=!0,g.run(L,de),O[oy](),L[Kt](de)}return Ee(),Ye(F,W,6,me),N},O[zs]=H,O.addPlugin=function(F,ne,me,de){if(!F){de&&de(!1),Ae(vS);return}var N=H(F[di]);if(N&&!ne){de&&de(!1),Ae("Plugin ["+F[di]+"] is already loaded!");return}var L={reason:16};function W(he){f[Be](F),L.added=[F],w(L),de&&de(!0)}if(N){var G=[N.plugin],X={reason:2,isAsync:!!me};Q(G,X,function(he){he?(L.removed=G,L.reason|=32,W()):de&&de(!1)})}else W()},O.updateCfg=function(F,ne){ne===void 0&&(ne=!0);var me;if(O[Zn]()){me={reason:1,cfg:t.cfg,oldCfg:Hg({},t.cfg),newConfig:Hg({},F),merge:ne},F=me.newConfig;var de=t.cfg;F[wo]=de[wo],F[To]=de[To]}t._block(function(N){var L=N.cfg;bp(N,L,F,ne),ne||Me(L,function(W){li(F,W)||N.set(L,W,nr)}),N.setDf(L,wp)},!0),t.notify(),me&&ce(me)},O.evtNamespace=function(){return _},O.flush=Ye,O.getTraceCtx=function(F){return A||(A=_M()),A},O.setTraceCtx=function(F){A=F||null},O.addUnloadHook=Je,_u(O,"addUnloadCb",function(){return g},"add"),O.onCfgChange=function(F){var ne;return n?ne=mt(t.cfg,F,O[yt]):ne=OM(z,F),MM(ne)},O.getWParam=function(){return Pg()||t.cfg.enableWParam?0:-1};function T(){var F={};I=[];var ne=function(me){me&&oe(me,function(de){if(de[di]&&de[kh]&&!F[de.identifier]){var N=de[di]+"="+de[kh];I[Be](N),F[de.identifier]=de}})};ne(p),d&&oe(d,function(me){ne(me)}),ne(f)}function U(){n=!1,t=Nn({},wp,O[yt]),t.cfg[sy]=1,Le(O,"config",{g:function(){return t.cfg},s:function(ne){O.updateCfg(ne,!1)}}),Le(O,"pluginVersionStringArr",{g:function(){return I||T(),I}}),Le(O,"pluginVersionString",{g:function(){return B||(I||T(),B=I.join(";")),B||Fe}}),Le(O,"logger",{g:function(){return r||(r=new Iu(t.cfg),t[yt]=r),r},s:function(ne){t[yt]=ne,r!==ne&&(ko(r,!1),r=ne)}}),O[yt]=new Iu(t.cfg),b=[];var F=O.config[wo]||[];F.splice(0,F[we]),po(F,b),m=new wM,i=[],ko(a,!1),a=null,s=null,l=null,ko(c,!1),c=null,u=null,f=[],d=null,p=null,h=!1,v=null,_=Tn("AIBaseCore",!0),g=pS(),A=null,V=null,S=mS(),z=[],B=null,I=null,x=!1,D=null,j=!1,k=0,P=null,q=null,te=!1,E=null}function ie(){var F=Fn(Y(),t.cfg,O);return F[ou](M),F}function w(F){var ne=RM(O[yt],GA,f);u=null,B=null,I=null,p=(d||[])[0]||[],p=Sp(po(p,ne[To]));var me=po(Sp(ne[Dt]),p);b=An(me);var de=O.config[wo]||[];de.splice(0,de[we]),po(de,b);var N=ie();p&&p[we]>0&&uS(N[ra](p),me),uS(N,me),F&&ce(F)}function H(F){var ne=null,me=null,de=[];return oe(b,function(N){if(N[di]===F&&N!==m)return me=N,-1;N.getChannel&&de[Be](N)}),!me&&de[we]>0&&oe(de,function(N){if(me=N.getChannel(F),!me)return-1}),me&&(ne={plugin:me,setEnabled:function(N){fa(me)[Yh]=!N},isEnabled:function(){var N=fa(me);return!N[Fr]&&!N[Yh]},remove:function(N,L){N===void 0&&(N=!0);var W=[me],G={reason:1,isAsync:N};Q(W,G,function(X){X&&w({reason:32,removed:W}),L&&L(X)})}}),ne}function Y(){if(!u){var F=(b||[]).slice();Ft(F,m)===-1&&F[Be](m),u=da(Sp(F),t.cfg,O)}return u}function Q(F,ne,me){if(F&&F[we]>0){var de=da(F,t.cfg,O),N=Vu(de,O);N[ou](function(){var L=!1,W=[];oe(f,function(X,he){gS(X,F)?L=!0:W[Be](X)}),f=W,B=null,I=null;var G=[];d&&(oe(d,function(X,he){var _e=[];oe(X,function(Oe){gS(Oe,F)?L=!0:_e[Be](Oe)}),G[Be](_e)}),d=G),me&&me(L),M()}),N[Kt](ne)}else me(!1)}function Ee(){if(r&&r.queue){var F=r.queue.slice(0);r.queue[we]=0,oe(F,function(ne){var me={name:v||"InternalMessageId: "+ne[su],iKey:V,time:bo(new Date),baseType:ll.dataType,baseData:{message:ne[ia]}};O.track(me)})}}function Ye(F,ne,me,de){var N=1,L=!1,W=null;de=de||5e3;function G(){N--,L&&N===0&&(W&&W[Zi](),W=null,ne&&ne(L),ne=null)}if(p&&p[we]>0){var X=ie()[ra](p);X.iterate(function(he){if(he.flush){N++;var _e=!1;he.flush(F,function(){_e=!0,G()},me)||_e||(F&&W==null?W=En(function(){W=null,G()},de):G())}})}return L=!0,G(),!0}function fe(){var F;Je(t[Ji](function(ne){var me=ne.cfg.enablePerfMgr;if(me){var de=ne.cfg[Fh];(F!==de||!F)&&(de||(de=IM),qt(ne.cfg,Fh,de),F=de,l=null),!s&&!l&&Se(de)&&(l=de(O,O[au]()))}else l=null,F=null}))}function ce(F){var ne=Tp(Y(),O);ne[ou](M),(!O._updateHook||O._updateHook(ne,F)!==!0)&&ne[Kt](F)}function Ae(F){var ne=O[yt];ne?(Z(ne,2,73,F),M()):on(F)}function Mt(F){var ne=O[au]();ne&&ne[Qs]([F],2)}function Je(F){S.add(F)}})}return e.__ieDyn=1,e}();function Dp(e,t){try{if(e&&e!==""){var n=Vn().parse(e);if(n&&n[uy]&&n[uy]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[we])return n}}catch(r){Z(t,1,43,"Cannot parse the response. "+(r[ea]||se(r)),{response:e})}return null}var Yn="",VM="NoResponseBody",SS="&"+VM+"=true",kp="POST",LM=function(){function e(){var t=0,n,r,i,a,s,l,c,u,f,d,p,h,m,v;et(e,this,function(_,g){var S=!0;te(),_[js]=function(E,D){i=D,r&&Z(i,1,28,"Sender is already initialized"),_.SetConfig(E),r=!0},_._getDbgPlgTargets=function(){return[r,a,l,n]},_.SetConfig=function(E){try{if(s=E.senderOnCompleteCallBack||{},l=!!E.disableCredentials,c=E.fetchCredentials,a=!!E.isOneDs,n=!!E.enableSendPromise,f=!!E.disableXhr,d=!!E.disableBeacon,p=!!E.disableBeaconSync,v=E.timeWrapper,m=!!E.addNoResponse,h=!!E.disableFetchKeepAlive,u={sendPOST:k},a||(S=!1),l){var D=ir();D&&D.protocol&&D.protocol[vo]()==="file:"&&(S=!1)}return!0}catch{}return!1},_.getSyncFetchPayload=function(){return t},_.getSenderInst=function(E,D){return E&&E[we]?z(E,D):null},_.getFallbackInst=function(){return u},_[lu]=function(E,D){te()},_.preparePayload=function(E,D,j,x){if(!D||x||!j[xn]){E(j);return}try{var O=ot("CompressionStream");if(!Se(O)){E(j);return}var re=new ReadableStream({start:function(U){U.enqueue(ye(j[xn])?new TextEncoder().encode(j[xn]):j[xn]),U.close()}}),ue=re.pipeThrough(new O("gzip")),ve=ue.getReader(),y=[],M=0,T=!1;return cn(ve.read(),function U(ie){if(!T&&!ie.rejected){var w=ie[ta];if(!w.done)return y[Be](w[ta]),M+=w.value[we],cn(ve.read(),U);for(var H=new Uint8Array(M),Y=0,Q=0,Ee=y;Q<Ee.length;Q++){var Ye=Ee[Q];H.set(Ye,Y),Y+=Ye[we]}j[xn]=H,j[cu]["Content-Encoding"]="gzip",j._chunkCount=y[we]}T||(T=!0,E(j))}),ve}catch{E(j);return}};function C(E,D){b(D,200,{},E)}function A(E,D){Z(i,2,26,"Failed to send telemetry.",{message:E}),b(D,400,{})}function V(E){A("No endpoint url is provided for the batch",E)}function z(E,D){for(var j=0,x=null,O=0;x==null&&O<E[we];)j=E[O],!f&&j===1?NA()?x=q:Eu()&&(x=k):j===2&&Zh(D)&&(!D||!h)?x=P:j===3&&tl()&&(D?!p:!d)&&(x=B),O++;return x?{_transport:j,_isSync:D,sendPOST:x}:null}function b(E,D,j,x){try{E&&E(D,j,x)}catch{}}function I(E,D){var j=Jn(),x=E[Xs];if(!x)return V(D),!0;x=E[Xs]+(m?SS:Yn);var O=E[xn],re=a?O:new Blob([O],{type:"text/plain;charset=UTF-8"}),ue=j.sendBeacon(x,re);return ue}function B(E,D,j){var x=E[xn];try{if(x)if(I(E,D))C(Yn,D);else{var O=s&&s.beaconOnRetry;O&&Se(O)?O(E,D,I):(u&&u.sendPOST(E,D,!0),Z(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(re){a&&ca(i,"Failed to send telemetry using sendBeacon API. Ex:"+se(re)),b(D,a?0:400,{},Yn)}}function k(E,D,j){var x,O,re,ue=E[cu]||{};!j&&n&&(x=pi(function(T,U){O=T,re=U})),a&&j&&E.disableXhrSync&&(j=!1);var ve=E[Xs];if(!ve){V(D),O&&O(!1);return}var y=sA(kp,ve,S,!0,j,E[Eo]);a||y.setRequestHeader("Content-type","application/json"),oe(Ar(ue),function(T){y.setRequestHeader(T,ue[T])}),y.onreadystatechange=function(){a||(M(y),y.readyState===4&&O&&O(!0))},y.onload=function(){a&&M(y)};function M(T){var U=s&&s.xhrOnComplete,ie=U&&Se(U);if(ie)U(T,D,E);else{var w=yu(T);b(D,T[$r],jh(T,a),w)}}return y.onerror=function(T){b(D,a?y[$r]:400,jh(y,a),a?Yn:Su(y)),re&&re(T)},y.ontimeout=function(){b(D,a?y[$r]:500,jh(y,a),a?Yn:Su(y)),O&&O(!1)},y.send(E[xn]),x}function P(E,D,j){var x,O=E[Xs],re=E[xn],ue=a?re:new Blob([re],{type:"application/json"}),ve,y,M,T=new Headers,U=re[we],ie=!1,w=!1,H=E[cu]||{},Y=(x={method:kp,body:ue},x[Uy]=!0,x);E.headers&&Ar(E.headers)[we]>0&&(oe(Ar(H),function(fe){T.append(fe,H[fe])}),Y[cu]=T),c?Y.credentials=c:S&&a&&(Y.credentials="include"),j&&(Y.keepalive=!0,t+=U,a?E._sendReason===2&&(ie=!0,m&&(O+=SS)):ie=!0);var Q=new Request(O,Y);try{Q[Uy]=!0}catch{}if(!j&&n&&(ve=pi(function(fe,ce){y=fe,M=ce})),!O){V(D),y&&y(!1);return}function Ee(fe,ce){ce?b(D,a?0:ce,{},a?Yn:fe):b(D,a?0:400,{},a?Yn:fe)}function Ye(fe,ce,Ae){var Mt=fe[$r],Je=s.fetchOnComplete;Je&&Se(Je)?Je(fe,D,Ae||Yn,ce):b(D,Mt,{},Ae||Yn)}try{cn(fetch(a?O:Q,a?Y:null),function(fe){if(j&&(t-=U,U=0),!w)if(w=!0,fe.rejected)Ee(fe.reason&&fe.reason[ia],499),M&&M(fe.reason);else{var ce=fe[ta];try{!a&&!ce.ok?(ce[$r]?Ee(ce.statusText,ce[$r]):Ee(ce.statusText,499),y&&y(!1)):a&&!ce.body?(Ye(ce,null,Yn),y&&y(!0)):cn(ce.text(),function(Ae){Ye(ce,E,Ae[ta]),y&&y(!0)})}catch(Ae){ce&&ce[$r]?Ee(se(Ae),ce[$r]):Ee(se(Ae),499),M&&M(Ae)}}})}catch(fe){w||(Ee(se(fe),499),M&&M(fe))}return ie&&!w&&(w=!0,b(D,200,{}),y&&y(!0)),a&&!w&&E[Eo]>0&&v&&v.set(function(){w||(w=!0,b(D,500,{}),y&&y(!0))},E[Eo]),ve}function q(E,D,j){var x=sn(),O=new XDomainRequest,re=E[xn];O.onload=function(){var T=yu(O),U=s&&s.xdrOnComplete;U&&Se(U)?U(O,D,E):b(D,200,{},T)},O.onerror=function(){b(D,400,{},a?Yn:Ny(O))},O.ontimeout=function(){b(D,500,{})},O.onprogress=function(){};var ue=x&&x.location&&x.location.protocol||"",ve=E[Xs];if(!ve){V(D);return}if(!a&&ve.lastIndexOf(ue,0)!==0){var y="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";Z(i,2,40,". "+y),A(y,D);return}var M=a?ve:ve[aa](/^(https?:)/,"");O.open(kp,M),E[Eo]&&(O[Eo]=E[Eo]),O.send(re),a&&j?v&&v.set(function(){O.send(re)},0):O.send(re)}function te(){t=0,r=!1,n=!1,i=null,a=null,s=null,l=null,c=null,u=null,f=!1,d=!1,p=!1,h=!1,m=!1,v=null}})}return e.__ieDyn=1,e}(),ES="on",TS="attachEvent",NS="addEventListener",wS="detachEvent",bS="removeEventListener",Cp="events",Ip="visibilitychange",Lu="pagehide",DS="unload",kS="beforeunload",CS=Tn("aiEvtPageHide");Tn("aiEvtPageShow");var FM=/\.[\.]+/g,YM=/[\.]+$/,$M=1,Fu=Vy("events"),BM=/^([^.]*)(?:\.(.+)|)/;function IS(e){return e&&e[aa]?e[aa](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Fe):e}function Rp(e,t){if(t){var n=Fe;ke(t)?(n=Fe,oe(t,function(i){i=IS(i),i&&(i[0]!=="."&&(i="."+i),n+=i)})):n=IS(t),n&&(n[0]!=="."&&(n="."+n),e=(e||Fe)+n)}var r=BM.exec(e||Fe)||[];return{type:r[1],ns:(r[2]||Fe).replace(FM,".").replace(YM,Fe)[yo](".").sort().join(".")}}function RS(e,t,n){n===void 0&&(n=!0);var r=Fu.get(e,Cp,{},n),i=r[t];return i||(i=r[t]=[]),i}function OS(e,t,n,r){e&&t&&t[hi]&&(e[bS]?e[bS](t[hi],n,r):e[wS]&&e[wS](ES+t[hi],n))}function UM(e,t,n,r){var i=!1;return e&&t&&t[hi]&&n&&(e[NS]?(e[NS](t[hi],n,r),i=!0):e[TS]&&(e[TS](ES+t[hi],n),i=!0)),i}function PS(e,t,n,r){for(var i=t[we];i--;){var a=t[i];a&&(!n.ns||n.ns===a[ly].ns)&&(!r||r(a))&&(OS(e,a[ly],a.handler,a.capture),t[_o](i,1))}}function HM(e,t,n){if(t[hi])PS(e,RS(e,t[hi]),t,n);else{var r=Fu.get(e,Cp,{});Me(r,function(i,a){PS(e,a,t,n)}),Ar(r)[we]===0&&Fu.kill(e,Cp)}}function Ei(e,t){var n;return t?(ke(t)?n=[e].concat(t):n=[e,t],n=Rp("xx",n).ns[yo](".")):n=e,n}function Br(e,t,n,r,i){i===void 0&&(i=!1);var a=!1;if(e)try{var s=Rp(t,r);if(a=UM(e,s,n,i),a&&Fu.accept(e)){var l={guid:$M++,evtName:s,handler:n,capture:i};RS(e,s.type)[Be](l)}}catch{}return a}function Po(e,t,n,r,i){if(i===void 0&&(i=!1),e)try{var a=Rp(t,r),s=!1;HM(e,a,function(l){return a.ns&&!n||l.handler===n?(s=!0,!0):!1}),s||OS(e,a,n,i)}catch{}}function GM(e,t,n){var r=!1,i=sn();i&&(r=Br(i,e,t,n),r=Br(i.body,e,t,n)||r);var a=Ot();return a&&(r=Br(a,e,t,n)||r),r}function WM(e,t,n){var r=sn();r&&(Po(r,e,t,n),Po(r.body,e,t,n));var i=Ot();i&&Po(i,e,t,n)}function Yu(e,t,n,r){var i=!1;return t&&e&&e[we]>0&&oe(e,function(a){a&&(!n||Ft(n,a)===-1)&&(i=GM(a,t,r)||i)}),i}function jM(e,t,n,r){var i=!1;return t&&e&&ke(e)&&(i=Yu(e,t,n,r),!i&&n&&n[we]>0&&(i=Yu(e,t,null,r))),i}function Op(e,t,n){e&&ke(e)&&oe(e,function(r){r&&WM(r,t,n)})}function zM(e,t,n){return jM([kS,DS,Lu],e,t,n)}function KM(e,t){Op([kS,DS,Lu],e,t)}function Pp(e,t,n){function r(s){var l=Ot();e&&l&&l.visibilityState==="hidden"&&e(s)}var i=Ei(CS,n),a=Yu([Lu],e,t,i);return(!t||Ft(t,Ip)===-1)&&(a=Yu([Ip],r,t,i)||a),!a&&t&&(a=Pp(e,null,n)),a}function qM(e,t){var n=Ei(CS,t);Op([Lu],e,n),Op([Ip],null,n)}var AS="_aiHooks",MS=["req","rsp","hkErr","fnErr"];function Ap(e,t){if(e)for(var n=0;n<e[we]&&!t(e[n],n);n++);}function Mp(e,t,n,r,i){i>=0&&i<=2&&Ap(e,function(a,s){var l=a.cbks,c=l[MS[i]];if(c){t.ctx=function(){var d=r[s]=r[s]||{};return d};try{c[Qi](t.inst,n)}catch(d){var u=t.err;try{var f=l[MS[2]];f&&(t.err=d,f[Qi](t.inst,n))}catch{}finally{t.err=u}}}})}function XM(e){return function(){var t=this,n=arguments,r=e.h,i={name:e.n,inst:t,ctx:null,set:c},a=[],s=l([i],n);i.evt=ot("event");function l(f,d){return Ap(d,function(p){f[Be](p)}),f}function c(f,d){n=l([],n),n[f]=d,s=l([i],n)}Mp(r,i,s,a,0);var u=e.f;if(u)try{i.rslt=u[Qi](t,n)}catch(f){throw i.err=f,Mp(r,i,s,a,3),f}return Mp(r,i,s,a,1),i.rslt}}function xp(e,t,n,r){var i=null;return e&&(gn(e,t)?i=e:n&&(i=xp(nA(e),t,r,!1))),i}function JM(e,t,n){return e?Vp(e[Qn],t,n,!1):null}function xS(e,t,n,r){var i=n&&n[AS];if(!i){i={i:0,n:t,f:n,h:[]};var a=XM(i);a[AS]=i,e[t]=a}var s={id:i.i,cbks:r,rm:function(){var l=this.id;Ap(i.h,function(c,u){if(c.id===l)return i.h[_o](u,1),1})}};return i.i++,i.h[Be](s),s}function Vp(e,t,n,r,i){if(r===void 0&&(r=!0),e&&t&&n){var a=xp(e,t,r,i);if(a){var s=a[t];if(typeof s===ey)return xS(a,t,s,n)}}return null}function $u(e,t,n,r,i){if(e&&t&&n){var a=xp(e,t,r,i)||e;if(a)return xS(a,t,a[t],n)}return null}var ha="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",VS="sampleRate",Lp="ProcessLegacy",LS="http.method",Fp="https://dc.services.visualstudio.com",Ao="/v2/track",or="not_specified",Yp="iKey",Xe=LP({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Mo="split",De="length",fl="toLowerCase",pa="ingestionendpoint",dl="toString",$p="removeItem",hl="message",xo="count",Bp="preTriggerDate",Up="getUTCDate",Bu="stringify",Hp="pathname",pl="match",FS="correlationHeaderExcludePatterns",sr="name",lr="properties",Ur="measurements",Uu="sizeInBytes",Hu="typeName",ml="exceptions",vl="severityLevel",Gp="problemGroup",Vo="parsedStack",Gu="hasFullStack",Wu="assembly",Hr="fileName",Lo="line",ju="aiDataContract",zu="duration";function YS(e,t,n){var r=t[De],i=QM(e,t);if(i[De]!==r){for(var a=0,s=i;n[s]!==void 0;)a++,s=Xn(i,0,147)+tx(a);i=s}return i}function QM(e,t){var n;return t&&(t=Ze(Gt(t)),t[De]>150&&(n=Xn(t,0,150),Z(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function Et(e,t,n){n===void 0&&(n=1024);var r;return t&&(n=n||1024,t=Ze(Gt(t)),t[De]>n&&(r=Xn(t,0,n),Z(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Ku(e,t){return BS(e,t,2048,66)}function $S(e,t){var n;return t&&t[De]>32768&&(n=Xn(t,0,32768),Z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function ZM(e,t){var n;if(t){var r=""+t;r[De]>32768&&(n=Xn(r,0,32768),Z(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function ma(e,t){if(t){var n={};Me(t,function(r,i){if(en(i)&&el())try{i=Vn()[Bu](i)}catch(a){Z(e,2,49,"custom property is not valid",{exception:a},!0)}i=Et(e,i,8192),r=YS(e,r,n),n[r]=i}),t=n}return t}function va(e,t){if(t){var n={};Me(t,function(r,i){r=YS(e,r,n),n[r]=i}),t=n}return t}function ex(e,t){return t&&BS(e,t,128,69)[dl]()}function BS(e,t,n,r){var i;return t&&(t=Ze(Gt(t)),t[De]>n&&(i=Xn(t,0,n),Z(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),i||t}function tx(e){var t="00"+e;return ci(t,t[De]-3)}var US=Ot()||{},HS=0,nx=[null,null,null,null,null];function Wp(e){var t=HS,n=nx,r=n[t];return US.createElement?n[t]||(r=n[t]=US.createElement("a")):r={host:ax(e)},r.href=e,t++,t>=n[De]&&(t=0),HS=t,r}function rx(e){var t,n=Wp(e);return n&&(t=n.href),t}function ix(e,t){return e?e.toUpperCase()+" "+t:t}function ax(e,t){var n=GS(e)||"";if(n){var r=n[pl](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[De]>3&&ye(r[2])&&r[2][De]>0)return r[2]+(r[3]||"")}return n}function GS(e,t){var n=null;if(e){var r=e[pl](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(r!=null&&r[De]>2&&ye(r[2])&&r[2][De]>0&&(n=r[2]||"",r[De]>2)){var i=(r[1]||"")[fl](),a=r[3]||"";(i==="http"&&a===":80"||i==="https"&&a===":443")&&(a=""),n+=a}}return n}var ox=[Fp+Ao,"https://breeze.aimon.applicationinsights.io"+Ao,"https://dc-int.services.visualstudio.com"+Ao],sx="cid-v1:";function jp(e){return Ft(ox,e[fl]())!==-1}function WS(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[FS]){for(var r=0;r<e.correlationHeaderExcludePatterns[De];r++)if(e[FS][r].test(t))return!1}var i=Wp(t).host[fl]();if(i&&(jt(i,":443")!==-1||jt(i,":80")!==-1)&&(i=(GS(t)||"")[fl]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a=e&&e.correlationHeaderDomains;if(a){var s;if(oe(a,function(u){var f=new RegExp(u.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));s=s||f.test(i)}),!s)return!1}var l=e&&e.correlationHeaderExcludedDomains;if(!l||l[De]===0)return!0;for(var r=0;r<l[De];r++){var c=new RegExp(l[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(c.test(i))return!1}return i&&i[De]>0}function jS(e){if(e){var t=lx(e,Xe[1]);if(t&&t!==sx)return t}}function lx(e,t){if(e)for(var n=e[Mo](","),r=0;r<n[De];++r){var i=n[r][Mo]("=");if(i[De]===2&&i[0]===t)return i[1]}}function cx(e,t,n,r){var i,a=r,s=r;if(t&&t[De]>0){var l=Wp(t);if(i=l.host,!a)if(l[Hp]!=null){var c=l.pathname[De]===0?"/":l[Hp];c.charAt(0)!=="/"&&(c="/"+c),s=l[Hp],a=Et(e,n?n+" "+c:c)}else a=Et(e,t)}else i=r,a=r;return{target:i,name:a,data:s}}function qu(){var e=xr();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return Mn()}function tn(e,t){var n=null;return e!==0&&t!==0&&!K(e)&&!K(t)&&(n=t-e),n}function zp(e,t){var n=e||{};return{getName:function(){return n[sr]},setName:function(r){t&&t.setName(r),n[sr]=r},getTraceId:function(){return n.traceID},setTraceId:function(r){t&&t.setTraceId(r),gp(r)&&(n.traceID=r)},getSpanId:function(){return n.parentID},setSpanId:function(r){t&&t.setSpanId(r),yp(r)&&(n.parentID=r)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(r){t&&t.setTraceFlags(r),n.traceFlags=r}}}var _l=iy({LocalStorage:0,SessionStorage:1}),Ti=void 0,Ni=void 0,zS="";function Kp(){return Ju()?Xu(_l.LocalStorage):null}function Xu(e){try{if(K(Sn()))return null;var t=new Date()[dl](),n=ot(e===_l.LocalStorage?"localStorage":"sessionStorage"),r=zS+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n[$p](r),!i)return n}catch{}return null}function qp(){return gl()?Xu(_l.SessionStorage):null}function ux(){Ti=!1,Ni=!1}function Xp(e){zS=e||""}function fx(){Ti=Ju(!0),Ni=gl(!0)}function Ju(e){return(e||Ti===void 0)&&(Ti=!!Xu(_l.LocalStorage)),Ti}function KS(e,t){var n=Kp();if(n!==null)try{return n.getItem(t)}catch(r){Ti=!1,Z(e,2,1,"Browser failed read of local storage. "+je(r),{exception:se(r)})}return null}function qS(e,t,n){var r=Kp();if(r!==null)try{return r.setItem(t,n),!0}catch(i){Ti=!1,Z(e,2,3,"Browser failed write to local storage. "+je(i),{exception:se(i)})}return!1}function dx(e,t){var n=Kp();if(n!==null)try{return n[$p](t),!0}catch(r){Ti=!1,Z(e,2,5,"Browser failed removal of local storage item. "+je(r),{exception:se(r)})}return!1}function gl(e){return(e||Ni===void 0)&&(Ni=!!Xu(_l.SessionStorage)),Ni}function Jp(e,t){var n=qp();if(n!==null)try{return n.getItem(t)}catch(r){Ni=!1,Z(e,2,2,"Browser failed read of session storage. "+je(r),{exception:se(r)})}return null}function XS(e,t,n){var r=qp();if(r!==null)try{return r.setItem(t,n),!0}catch(i){Ni=!1,Z(e,2,4,"Browser failed write to session storage. "+je(i),{exception:se(i)})}return!1}function JS(e,t){var n=qp();if(n!==null)try{return n[$p](t),!0}catch(r){Ni=!1,Z(e,2,6,"Browser failed removal of session storage item. "+je(r),{exception:se(r)})}return!1}var hx="appInsightsThrottle",px=function(){function e(t,n){var r=this,i,a,s,l,c,u,f,d=!1,p=!1;m(),r._getDbgPlgTargets=function(){return[f]},r.getConfig=function(){return s},r.canThrottle=function(E){var D=P(E),j=v(E);return S(j,i,D)},r.isTriggered=function(E){return q(E)},r.isReady=function(){return d},r.flush=function(E){try{var D=te(E);if(D&&D[De]>0){var j=D.slice(0);return f[E]=[],oe(j,function(x){h(x.msgID,x[hl],x.severity,!1)}),!0}}catch{}return!1},r.flushAll=function(){try{if(f){var E=!0;return Me(f,function(D){var j=r.flush(parseInt(D));E=E&&j}),E}}catch{}return!1},r.onReadyState=function(E,D){return D===void 0&&(D=!0),d=K(E)?!0:E,d&&D?r.flushAll():null},r.sendMessage=function(E,D,j){return h(E,D,j,!0)};function h(E,D,j,x){if(d){var O=k(E);if(!O)return;var re=v(E),ue=P(E),ve=S(re,i,ue),y=!1,M=0,T=q(E);try{ve&&!T?(M=kg(re.limit.maxSendNumber,ue[xo]+1),ue[xo]=0,y=!0,c[E]=!0,ue[Bp]=new Date):(c[E]=ve,ue[xo]+=1);var U=C(E);b(a,U,ue);for(var ie=0;ie<M;ie++)B(E,a,D,j)}catch{}return{isThrottled:y,throttleNum:M}}else if(x){var w=te(E);w.push({msgID:E,message:D,severity:j})}return null}function m(){a=la(t),c={},l={},f={},s={},_(109),u=sa(n)?n:"",t.addUnloadHook(mt(t.config,function(E){var D=E.cfg;i=Ju();var j=D.throttleMgrCfg||{};Me(j,function(x,O){_(parseInt(x),O)})}))}function v(E){return s[E]||s[109]}function _(E,D){var j,x;try{var O=D||{},re={};re.disabled=!!O.disabled;var ue=O.interval||{};p=(ue==null?void 0:ue.daysOfMonth)&&(ue==null?void 0:ue.daysOfMonth[De])>0,re.interval=g(ue);var ve={samplingRate:((j=O.limit)===null||j===void 0?void 0:j.samplingRate)||100,maxSendNumber:((x=O.limit)===null||x===void 0?void 0:x.maxSendNumber)||1};re.limit=ve,s[E]=re}catch{}}function g(E){E=E||{};var D=E==null?void 0:E.monthInterval,j=E==null?void 0:E.dayInterval;return K(D)&&K(j)&&(E.monthInterval=3,p||(E.daysOfMonth=[28],p=!0)),E={monthInterval:E==null?void 0:E.monthInterval,dayInterval:E==null?void 0:E.dayInterval,daysOfMonth:E==null?void 0:E.daysOfMonth},E}function S(E,D,j){if(E&&!E.disabled&&D&&sa(j)){var x=z(),O=j.date,re=E.interval,ue=1;if(re!=null&&re.monthInterval){var ve=(x.getUTCFullYear()-O.getUTCFullYear())*12+x.getUTCMonth()-O.getUTCMonth();ue=I(re.monthInterval,0,ve)}var y=1;if(p)y=Ft(re.daysOfMonth,x[Up]());else if(re!=null&&re.dayInterval){var M=ln((x.getTime()-O.getTime())/864e5);y=I(re.dayInterval,0,M)}return ue>=0&&y>=0}return!1}function C(E,D){var j=sa(D)?D:"";return E?hx+j+"-"+E:null}function A(E){try{if(E){var D=new Date;return E.getUTCFullYear()===D.getUTCFullYear()&&E.getUTCMonth()===D.getUTCMonth()&&E[Up]()===D[Up]()}}catch{}return!1}function V(E,D,j){try{var x={date:z(),count:0};if(E){var O=JSON.parse(E),re={date:z(O.date)||x.date,count:O[xo]||x[xo],preTriggerDate:O.preTriggerDate?z(O[Bp]):void 0};return re}else return b(D,j,x),x}catch{}return null}function z(E){try{if(E){var D=new Date(E);if(!isNaN(D.getDate()))return D}else return new Date}catch{}return null}function b(E,D,j){try{return qS(E,D,Ze(JSON[Bu](j)))}catch{}return!1}function I(E,D,j){return E<=0?1:j>=D&&(j-D)%E==0?ln((j-D)/E)+1:-1}function B(E,D,j,x){Z(D,x||1,E,j)}function k(E){try{var D=v(E);return IA(1e6)<=D.limit.samplingRate}catch{}return!1}function P(E){try{var D=l[E];if(!D){var j=C(E,u);D=V(KS(a,j),a,j),l[E]=D}return l[E]}catch{}return null}function q(E){var D=c[E];if(K(D)){D=!1;var j=P(E);j&&(D=A(j[Bp])),c[E]=D}return c[E]}function te(E){return f=f||{},K(f[E])&&(f[E]=[]),f[E]}}return e}(),mx=";",vx="=";function QS(e){if(!e)return{};var t=e[Mo](mx),n=iP(t,function(i,a){var s=a[Mo](vx);if(s[De]===2){var l=s[0][fl](),c=s[1];i[l]=c}return i},{});if(Ar(n)[De]>0){if(n.endpointsuffix){var r=n.location?n.location+".":"";n[pa]=n[pa]||"https://"+r+"dc."+n.endpointsuffix}n[pa]=n[pa]||Fp,zg(n[pa],"/")&&(n[pa]=n[pa].slice(0,-1))}return n}var _x=function(){function e(t,n,r){var i=this,a=this;a.ver=1,a.sampleRate=100,a.tags={},a[sr]=Et(t,r)||or,a.data=n,a.time=bo(new Date),a[ju]={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return e}(),wi=function(){function e(t,n,r,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var a=this;a.ver=2,a[sr]=Et(t,n)||or,a[lr]=ma(t,r),a[Ur]=va(t,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),gx=58,yx=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,Sx=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,Ex=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,Tx=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,Nx=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,wx=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,bx=/([^\(\s\n]+):([0-9]+)$/,ZS="<no_method>",Fo="error",wn="stack",Qp="stackDetails",e0="errorSrc",Zp="message",t0="description",n0=[{re:Sx,len:5,m:1,fn:2,ln:3,col:4},{chk:kx,pre:Dx,re:Ex,len:4,m:1,fn:2,ln:3},{re:Tx,len:3,m:1,fn:2,hdl:l0},{re:Nx,len:2,fn:1,hdl:l0}];function Dx(e){return e.replace(/(\(anonymous\))/,"<anonymous>")}function kx(e){return jt(e,"[native")<0}function em(e,t){var n=e;return n&&!ye(n)&&(JSON&&JSON[Bu]?(n=JSON[Bu](e),t&&(!n||n==="{}")&&(Se(e[dl])?n=e[dl]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function r0(e,t){var n=e;return e&&(n&&!ye(n)&&(n=e[Zp]||e[t0]||n),n&&!ye(n)&&(n=em(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&jt(n||"",t)===-1&&(n=t+": "+n),n||""}function Cx(e){try{if(en(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function Ix(e){try{if(en(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function i0(e){return e&&e.src&&ye(e.src)&&e.obj&&ke(e.obj)}function _a(e){var t=e||"";ye(t)||(ye(t[wn])?t=t[wn]:t=""+t);var n=t[Mo](`
60
- `);return{src:t,obj:n}}function Rx(e){for(var t=[],n=e[Mo](`
61
- `),r=0;r<n[De];r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}function a0(e){var t=null;if(e)try{if(e[wn])t=_a(e[wn]);else if(e[Fo]&&e[Fo][wn])t=_a(e[Fo][wn]);else if(e.exception&&e.exception[wn])t=_a(e.exception[wn]);else if(i0(e))t=e;else if(i0(e[Qp]))t=e[Qp];else if(sn()&&sn().opera&&e[Zp])t=Rx(e[hl]);else if(e.reason&&e.reason[wn])t=_a(e.reason[wn]);else if(ye(e))t=_a(e);else{var n=e[Zp]||e[t0]||"";ye(e[e0])&&(n&&(n+=`
62
- `),n+=" from "+e[e0]),n&&(t=_a(n))}}catch(r){t=_a(r)}return t||{src:"",obj:null}}function Ox(e){var t="";return e&&(e.obj?t=e.obj.join(`
63
- `):t=e.src||""),t}function Px(e){var t,n=e.obj;if(n&&n[De]>0){t=[];var r=0,i=!1,a=0;oe(n,function(v){if(i||Vx(v)){var _=Gt(v);i=!0;var g=Lx(_,r);g&&(a+=g[Uu],t.push(g),r++)}});var s=32*1024;if(a>s)for(var l=0,c=t[De]-1,u=0,f=l,d=c;l<c;){var p=t[l][Uu],h=t[c][Uu];if(u+=p+h,u>s){var m=d-f+1;t.splice(f,m);break}f=l,d=c,l++,c--}}return t}function Qu(e){var t="";if(e&&(t=e.typeName||e[sr]||"",!t))try{var n=/function (.{1,200})\(/,r=n.exec(e.constructor[dl]());t=r&&r[De]>1?r[1]:""}catch{}return t}function tm(e){if(e)try{if(!ye(e)){var t=Qu(e),n=em(e,!1);return(!n||n==="{}")&&(e[Fo]&&(e=e[Fo],t=Qu(e)),n=em(e,!0)),jt(n,t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var bn=function(){function e(t,n,r,i,a,s){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var l=this;l.ver=2,Ix(n)?(l[ml]=n[ml]||[],l[lr]=n[lr],l[Ur]=n[Ur],n[vl]&&(l[vl]=n[vl]),n.id&&(l.id=n.id,n[lr].id=n.id),n[Gp]&&(l[Gp]=n[Gp]),K(n.isManual)||(l.isManual=n.isManual)):(r||(r={}),s&&(r.id=s),l[ml]=[o0(t,n,r)],l[lr]=ma(t,r),l[Ur]=va(t,i),a&&(l[vl]=a),s&&(l.id=s))}return e.CreateAutoException=function(t,n,r,i,a,s,l,c){var u=Qu(a||s||t);return{message:r0(t,u),url:n,lineNumber:r,columnNumber:i,error:tm(a||s||t),evt:tm(s||t),typeName:u,stackDetails:a0(l||a||s),errorSrc:c}},e.CreateFromInterface=function(t,n,r,i){var a=n[ml]&&Us(n[ml],function(l){return xx(t,l)}),s=new e(t,zt(zt({},n),{exceptions:a}),r,i);return s},e.prototype.toInterface=function(){var t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,s=t.problemGroup,l=t.id,c=t.isManual,u=n instanceof Array&&Us(n,function(f){return f.toInterface()})||void 0;return{ver:"4.0",exceptions:u,severityLevel:a,properties:r,measurements:i,problemGroup:s,id:l,isManual:c}},e.CreateSimpleException=function(t,n,r,i,a,s){var l;return{exceptions:[(l={},l[Gu]=!0,l.message=t,l.stack=a,l.typeName=n,l)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=tm,e}(),Ax=An({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function Mx(){var e=this,t=ke(e[Vo])&&Us(e[Vo],function(r){return Yx(r)}),n={id:e.id,outerId:e.outerId,typeName:e[Hu],message:e[hl],hasFullStack:e[Gu],stack:e[wn],parsedStack:t||void 0};return n}function o0(e,t,n){var r,i,a,s,l,c,u,f;if(Cx(t))s=t[Hu],l=t[hl],u=t[wn],f=t[Vo]||[],c=t[Gu];else{var d=t,p=d&&d.evt;Gd(d)||(d=d[Fo]||p||d),s=Et(e,Qu(d))||or,l=$S(e,r0(t||d,s))||or;var h=t[Qp]||a0(t);f=Px(h),ke(f)&&Us(f,function(m){m[Wu]=Et(e,m[Wu]),m[Hr]=Et(e,m[Hr])}),u=ZM(e,Ox(h)),c=ke(f)&&f[De]>0,n&&(n[Hu]=n[Hu]||s)}return r={},r[ju]=Ax,r.id=i,r.outerId=a,r.typeName=s,r.message=l,r[Gu]=c,r.stack=u,r.parsedStack=f,r.toInterface=Mx,r}function xx(e,t){var n=ke(t[Vo])&&Us(t[Vo],function(i){return Fx(i)})||t[Vo],r=o0(e,zt(zt({},t),{parsedStack:n}));return r}function s0(e,t){var n=t[pl](wx);if(n&&n[De]>=4)e[Hr]=n[1],e[Lo]=parseInt(n[2]);else{var r=t[pl](bx);r&&r[De]>=3?(e[Hr]=r[1],e[Lo]=parseInt(r[2])):e[Hr]=t}}function l0(e,t,n){var r=e[Hr];t.fn&&n&&n[De]>t.fn&&(t.ln&&n[De]>t.ln?(r=Ze(n[t.fn]||""),e[Lo]=parseInt(Ze(n[t.ln]||""))||0):r=Ze(n[t.fn]||"")),r&&s0(e,r)}function Vx(e){var t=!1;if(e&&ye(e)){var n=Ze(e);n&&(t=yx.test(n))}return t}var c0=An({level:1,method:1,assembly:0,fileName:0,line:0});function Lx(e,t){var n,r;if(e&&ye(e)&&Ze(e)){r=(n={},n[ju]=c0,n.level=t,n.assembly=Ze(e),n.method=ZS,n.fileName="",n.line=0,n.sizeInBytes=0,n);for(var i=0;i<n0[De];){var a=n0[i];if(a.chk&&!a.chk(e))break;a.pre&&(e=a.pre(e));var s=e[pl](a.re);if(s&&s[De]>=a.len){a.m&&(r.method=Ze(s[a.m]||ZS)),a.hdl?a.hdl(r,a,s):a.fn&&(a.ln?(r[Hr]=Ze(s[a.fn]||""),r[Lo]=parseInt(Ze(s[a.ln]||""))||0):s0(r,s[a.fn]||""));break}i++}}return u0(r)}function Fx(e){var t,n=(t={},t[ju]=c0,t.level=e.level,t.method=e.method,t.assembly=e[Wu],t.fileName=e[Hr],t.line=e[Lo],t.sizeInBytes=0,t);return u0(n)}function u0(e){var t=gx;return e&&(t+=e.method[De],t+=e.assembly[De],t+=e.fileName[De],t+=e.level.toString()[De],t+=e.line.toString()[De],e[Uu]=t),e}function Yx(e){return{level:e.level,method:e.method,assembly:e[Wu],fileName:e[Hr],line:e[Lo]}}var $x=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}(),ga=function(){function e(t,n,r,i,a,s,l,c,u){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var d=new $x;d[xo]=i>0?i:void 0,d.max=isNaN(s)||s===null?void 0:s,d.min=isNaN(a)||a===null?void 0:a,d[sr]=Et(t,n)||or,d.value=r,d.stdDev=isNaN(l)||l===null?void 0:l,f.metrics=[d],f[lr]=ma(t,c),f[Ur]=va(t,u)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),yl="";function bi(e){(isNaN(e)||e<0)&&(e=0),e=jg(e);var t=yl+e%1e3,n=yl+ln(e/1e3)%60,r=yl+ln(e/(1e3*60))%60,i=yl+ln(e/(1e3*60*60))%24,a=ln(e/(1e3*60*60*24));return t=t[De]===1?"00"+t:t[De]===2?"0"+t:t,n=n[De]<2?"0"+n:n,r=r[De]<2?"0"+r:r,i=i[De]<2?"0"+i:i,(a>0?a+".":yl)+i+":"+r+":"+n+"."+t}function Bx(e,t,n,r,i){return!i&&ye(e)&&(e==="Script error."||e==="Script error")}var Di=function(){function e(t,n,r,i,a,s,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var c=this;c.ver=2,c.id=ex(t,l),c.url=Ku(t,r),c[sr]=Et(t,n)||or,isNaN(i)||(c[zu]=bi(i)),c[lr]=ma(t,a),c[Ur]=va(t,s)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),ya=function(){function e(t,n,r,i,a,s,l,c,u,f,d,p){u===void 0&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var h=this;h.ver=2,h.id=n,h[zu]=bi(a),h.success=s,h.resultCode=l+"",h.type=Et(t,u);var m=cx(t,r,c,i);h.data=Ku(t,i)||m.data,h.target=Et(t,m.target),f&&(h.target="".concat(h.target," | ").concat(f)),h[sr]=Et(t,m[sr]),h[lr]=ma(t,d),h[Ur]=va(t,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Yo=function(){function e(t,n,r,i,a){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var s=this;s.ver=2,n=n||or,s[hl]=$S(t,n),s[lr]=ma(t,i),s[Ur]=va(t,a),r&&(s[vl]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),$o=function(){function e(t,n,r,i,a,s,l){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var c=this;c.ver=2,c.url=Ku(t,r),c[sr]=Et(t,n)||or,c[lr]=ma(t,a),c[Ur]=va(t,s),l&&(c.domProcessing=l.domProcessing,c[zu]=l[zu],c.networkConnect=l.networkConnect,c.perfTotal=l.perfTotal,c.receivedResponse=l.receivedResponse,c.sentRequest=l.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),Sa=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function ki(e){var t="ai."+e+".";return function(n){return t+n}}var Sl=ki("application"),wt=ki("device"),Zu=ki("location"),Bo=ki("operation"),nm=ki("session"),Ci=ki("user"),Ea=ki("cloud"),El=ki("internal"),f0=function(e){Lr(t,e);function t(){return e.call(this)||this}return t}(iA({applicationVersion:Sl("ver"),applicationBuild:Sl("build"),applicationTypeId:Sl("typeId"),applicationId:Sl("applicationId"),applicationLayer:Sl("layer"),deviceId:wt("id"),deviceIp:wt("ip"),deviceLanguage:wt("language"),deviceLocale:wt("locale"),deviceModel:wt("model"),deviceFriendlyName:wt("friendlyName"),deviceNetwork:wt("network"),deviceNetworkName:wt("networkName"),deviceOEMName:wt("oemName"),deviceOS:wt("os"),deviceOSVersion:wt("osVersion"),deviceRoleInstance:wt("roleInstance"),deviceRoleName:wt("roleName"),deviceScreenResolution:wt("screenResolution"),deviceType:wt("type"),deviceMachineName:wt("machineName"),deviceVMName:wt("vmName"),deviceBrowser:wt("browser"),deviceBrowserVersion:wt("browserVersion"),locationIp:Zu("ip"),locationCountry:Zu("country"),locationProvince:Zu("province"),locationCity:Zu("city"),operationId:Bo("id"),operationName:Bo("name"),operationParentId:Bo("parentId"),operationRootId:Bo("rootId"),operationSyntheticSource:Bo("syntheticSource"),operationCorrelationVector:Bo("correlationVector"),sessionId:nm("id"),sessionIsFirst:nm("isFirst"),sessionIsNew:nm("isNew"),userAccountAcquisitionDate:Ci("accountAcquisitionDate"),userAccountId:Ci("accountId"),userAgent:Ci("userAgent"),userId:Ci("id"),userStoreRegion:Ci("storeRegion"),userAuthUserId:Ci("authUserId"),userAnonymousUserAcquisitionDate:Ci("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Ci("authUserAcquisitionDate"),cloudName:Ea("name"),cloudRole:Ea("role"),cloudRoleVer:Ea("roleVer"),cloudRoleInstance:Ea("roleInstance"),cloudEnvironment:Ea("environment"),cloudLocation:Ea("location"),cloudDeploymentUnit:Ea("deploymentUnit"),internalNodeName:El("nodeName"),internalSdkVersion:El("sdkVersion"),internalAgentVersion:El("agentVersion"),internalSnippet:El("snippet"),internalSdkSrc:El("sdkSrc")}));function Ii(e,t,n,r,i,a){n=Et(r,n)||or,(K(e)||K(t)||K(n))&&on("Input doesn't contain all required fields");var s="";e[Yp]&&(s=e[Yp],delete e[Yp]);var l={name:n,time:bo(new Date),iKey:s,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return K(i)||Me(i,function(c,u){l.data[c]=u}),l}var un={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},tt=new f0;function Tl(e){var t=null;if(Se(Event))t=new Event(e);else{var n=Ot();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}function d0(e,t){Po(e,null,null,t)}function Ux(e){var t=Ot(),n=Jn(),r=!1,i=[],a=1;n&&!K(n.onLine)&&!n.onLine&&(a=2);var s=0,l=p(),c=Ei(Tn("OfflineListener"),e);try{if(f(sn())&&(r=!0),t){var u=t.body||t;u.ononline&&f(u)&&(r=!0)}}catch{r=!1}function f(C){var A=!1;return C&&(A=Br(C,"online",v,c),A&&Br(C,"offline",_,c)),A}function d(){return l}function p(){return!(s===2||a===2)}function h(){var C=p();l!==C&&(l=C,oe(i,function(A){var V={isOnline:l,rState:a,uState:s};try{A(V)}catch{}}))}function m(C){s=C,h()}function v(){a=1,h()}function _(){a=2,h()}function g(){var C=sn();if(C&&r){if(d0(C,c),t){var A=t.body||t;dt(A.ononline)||d0(A,c)}r=!1}}function S(C){return i.push(C),{rm:function(){var A=i.indexOf(C);if(A>-1)return i.splice(A,1)}}}return{isOnline:d,isListening:function(){return r},unload:g,addListener:S,setOnlineState:m}}var ef="AppInsightsPropertiesPlugin",h0="AppInsightsChannelPlugin",p0="ApplicationInsightsAnalytics",tf="toString",rm="isStorageUseDisabled",Uo="_addHook",Pt="core",Ri="dataType",Ta="envelopeType",fn="diagLog",Na="track",nf="trackPageView",im="trackPreviousPageVisit",wa="sendPageViewInternal",Ho="startTime",Nl="properties",cr="duration",am="sendPageViewPerformanceInternal",om="populatePageViewPerformanceEvent",Go="href",m0="sendExceptionInternal",wl="error",sm="lineNumber",lm="columnNumber",cm="CreateAutoException",rf="addTelemetryInitializer",Hx="overridePageViewDuration",um="autoExceptionInstrumented",v0="autoTrackPageVisitTime",_0="isBrowserLinkTrackingEnabled",bl="length",g0="enableAutoRouteTracking",y0="enableUnhandledPromiseRejectionTracking",fm="autoUnhandledPromiseInstrumented",dm="getEntriesByType",S0="isPerformanceTimingSupported",E0="getPerformanceTiming",af="navigationStart",hm="shouldCollectDuration",T0="isPerformanceTimingDataReady",Dl="responseStart",Gx="requestStart",of="loadEventEnd",pm="responseEnd",sf="connectEnd",Wx=function(){function e(t,n,r,i){et(e,this,function(a){var s=null,l=[],c=!1,u=!1,f;r&&(f=r.logger);function d(m){r&&r.flush(m,function(){})}function p(){s||(s=En(function(){s=null;var m=l.slice(0),v=!1;l=[],oe(m,function(_){_()?v=!0:l.push(_)}),l[bl]>0&&p(),v&&d(!0)},100))}function h(m){l.push(m),p()}a[nf]=function(m,v){var _=m.name;if(K(_)||typeof _!="string"){var g=Ot();_=m.name=g&&g.title||""}var S=m.uri;if(K(S)||typeof S!="string"){var C=ir();S=m.uri=C&&C[Go]||""}if(!u){var A=xr(),V=A&&A[dm]&&A[dm]("navigation");if(V&&V[0]&&!dt(A.timeOrigin)){var z=V[0].loadEventStart;m[Ho]=new Date(A.timeOrigin+z)}else{var b=(v||m[Nl]||{})[cr]||0;m[Ho]=new Date(new Date().getTime()-b)}u=!0}if(!i[S0]()){t[wa](m,v),d(!0),Mg()||Z(f,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var I=!1,B,k=i[E0]()[af];k>0&&(B=tn(k,+new Date),i[hm](B)||(B=void 0));var P;!K(v)&&!K(v[cr])&&(P=v[cr]),(n||!isNaN(P))&&(isNaN(P)&&(v||(v={}),v[cr]=B),t[wa](m,v),d(!0),I=!0);var q=6e4;v||(v={}),h(function(){var te=!1;try{if(i[T0]()){te=!0;var E={name:_,uri:S};i[om](E),!E.isValid&&!I?(v[cr]=B,t[wa](m,v)):(I||(v[cr]=E.durationMs,t[wa](m,v)),c||(t[am](E,v),c=!0))}else k>0&&tn(k,+new Date)>q&&(te=!0,I||(v[cr]=q,t[wa](m,v)))}catch(D){Z(f,1,38,"trackPageView failed on page load calculation: "+je(D),{exception:se(D)})}return te})},a.teardown=function(m,v){if(s){s.cancel(),s=null;var _=l.slice(0);l=[],oe(_,function(g){g()})}}})}return e.__ieDyn=1,e}(),jx=36e5,N0=["googlebot","adsbot-google","apis-google","mediapartners-google"];function w0(){var e=xr();return e&&!!e.timing}function zx(){var e=xr();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[bl]>0}function Kx(){var e=xr(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[af]>0&&t[Dl]>0&&t[Gx]>0&&t[of]>0&&t[pm]>0&&t[sf]>0&&t.domLoading>0}function b0(){return w0()?xr().timing:null}function qx(){return zx()?xr()[dm]("navigation")[0]:null}function Xx(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Jn()||{},r=n.userAgent,i=!1;if(r)for(var a=0;a<N0[bl];a++)i=i||jt(r.toLowerCase(),N0[a])!==-1;if(i)return!1;for(var a=0;a<e[bl];a++)if(e[a]<0||e[a]>=jx)return!1;return!0}var Jx=function(){function e(t){var n=la(t);et(e,this,function(r){r[om]=function(i){i.isValid=!1;var a=qx(),s=b0(),l=0,c=0,u=0,f=0,d=0;(a||s)&&(a?(l=a[cr],c=a[Ho]===0?a[sf]:tn(a[Ho],a[sf]),u=tn(a.requestStart,a[Dl]),f=tn(a[Dl],a[pm]),d=tn(a.responseEnd,a[of])):(l=tn(s[af],s[of]),c=tn(s[af],s[sf]),u=tn(s.requestStart,s[Dl]),f=tn(s[Dl],s[pm]),d=tn(s.responseEnd,s[of])),l===0?Z(n,2,10,"error calculating page view performance.",{total:l,network:c,request:u,response:f,dom:d}):r[hm](l,c,u,f,d)?l<ln(c)+ln(u)+ln(f)+ln(d)?Z(n,2,8,"client performance math error.",{total:l,network:c,request:u,response:f,dom:d}):(i.durationMs=l,i.perfTotal=i[cr]=bi(l),i.networkConnect=bi(c),i.sentRequest=bi(u),i.receivedResponse=bi(f),i.domProcessing=bi(d),i.isValid=!0):Z(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:l,network:c,request:u,response:f,dom:d}))},r[E0]=b0,r[S0]=w0,r[T0]=Kx,r[hm]=Xx})}return e.__ieDyn=1,e}(),Qx=function(){function e(t,n){var r="prevPageVisitData";et(e,this,function(i){i[im]=function(l,c){try{var u=a(l,c);u&&n(u.pageName,u.pageUrl,u.pageVisitTime)}catch(f){ca(t,"Auto track page visit time failed, metric will not be collected: "+se(f))}};function a(l,c){var u=null;try{if(u=s(),gl()){Jp(t,r)!=null&&on("Cannot call startPageVisit consecutively without first calling stopPageVisit");var f=Vn().stringify(new Zx(l,c));XS(t,r,f)}}catch(d){ca(t,"Call to restart failed: "+se(d)),u=null}return u}function s(){var l=null;try{if(gl()){var c=Mn(),u=Jp(t,r);u&&el()&&(l=Vn().parse(u),l.pageVisitTime=c-l.pageVisitStartTime,JS(t,r))}}catch(f){ca(t,"Stop page visit timer failed: "+se(f)),l=null}return l}Le(i,"_logger",{g:function(){return t}}),Le(i,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),Zx=function(){function e(t,n){this.pageVisitStartTime=Mn(),this.pageName=t,this.pageUrl=n}return e}(),D0=function(){function e(t,n){var r=this,i={};r.start=function(a){typeof i[a]<"u"&&Z(t,2,62,"start was called more than once for this event without calling stop.",{name:a,key:a},!0),i[a]=+new Date},r.stop=function(a,s,l,c){var u=i[a];if(isNaN(u))Z(t,2,63,"stop was called without a corresponding start.",{name:a,key:a},!0);else{var f=+new Date,d=tn(u,f);r.action(a,s,d,l,c)}delete i[a],i[a]=void 0}}return e}(),Xt,eV="event";function kl(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function tV(e){if(e&&e.reason){var t=e.reason;return!ye(t)&&Se(t[tf])?t[tf]():se(t)}return e||""}var k0=6e4,nV=Fs((Xt={sessionRenewalMs:Hy(C0,30*60*1e3),sessionExpirationMs:Hy(C0,24*60*60*1e3),disableExceptionTracking:St()},Xt[v0]=St(),Xt[Hx]=St(),Xt[y0]=St(),Xt[fm]=!1,Xt.samplingPercentage=Du(rV,100),Xt[rm]=St(),Xt[_0]=St(),Xt[g0]=St(),Xt.namePrefix=jA(),Xt.enableDebug=St(),Xt.disableFlushOnBeforeUnload=St(),Xt.disableFlushOnUnload=St(!1,"disableFlushOnBeforeUnload"),Xt.expCfg=Ln({inclScripts:!1,expLog:void 0,maxLogs:50}),Xt));function C0(e,t){return e=e||t,e<k0&&(e=k0),+e}function rV(e){return!isNaN(e)&&e>0&&e<=100}function iV(e){dt(e[rm])||(e[rm]?ux():fx())}var aV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.identifier=p0,n.priority=180,n.autoRoutePVDelay=500;var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C,A,V,z,b;return et(t,n,function(I,B){var k=B[Uo];ve(),I.getCookieMgr=function(){return pp(I[Pt])},I.processTelemetry=function(y,M){I.processNext(y,M)},I.trackEvent=function(y,M){try{var T=Ii(y,wi[Ri],wi[Ta],I[fn](),M);I[Pt][Na](T)}catch(U){ue(2,39,"trackTrace failed, trace will not be collected: "+je(U),{exception:se(U)})}},I.startTrackEvent=function(y){try{r.start(y)}catch(M){ue(1,29,"startTrackEvent failed, event will not be collected: "+je(M),{exception:se(M)})}},I.stopTrackEvent=function(y,M,T){try{r.stop(y,void 0,M,T)}catch(U){ue(1,30,"stopTrackEvent failed, event will not be collected: "+je(U),{exception:se(U)})}},I.trackTrace=function(y,M){try{var T=Ii(y,Yo[Ri],Yo[Ta],I[fn](),M);I[Pt][Na](T)}catch(U){ue(2,39,"trackTrace failed, trace will not be collected: "+je(U),{exception:se(U)})}},I.trackMetric=function(y,M){try{var T=Ii(y,ga[Ri],ga[Ta],I[fn](),M);I[Pt][Na](T)}catch(U){ue(1,36,"trackMetric failed, metric will not be collected: "+je(U),{exception:se(U)})}},I[nf]=function(y,M){try{var T=y||{};a[nf](T,zt(zt(zt({},T.properties),T.measurements),M)),S&&l[im](T.name,T.uri)}catch(U){ue(1,37,"trackPageView failed, page view will not be collected: "+je(U),{exception:se(U)})}},I[wa]=function(y,M,T){var U=Ot();if(U&&(y.refUri=y.refUri===void 0?U.referrer:y.refUri),K(y[Ho])){var ie=(M||y[Nl]||{})[cr]||0;y[Ho]=new Date(new Date().getTime()-ie)}var w=Ii(y,Di[Ri],Di[Ta],I[fn](),M,T);I[Pt][Na](w)},I[am]=function(y,M,T){var U=Ii(y,$o[Ri],$o[Ta],I[fn](),M,T);I[Pt][Na](U)},I.trackPageViewPerformance=function(y,M){var T=y||{};try{s[om](T),I[am](T,M)}catch(U){ue(1,37,"trackPageViewPerformance failed, page view will not be collected: "+je(U),{exception:se(U)})}},I.startTrackPage=function(y){try{if(typeof y!="string"){var M=Ot();y=M&&M.title||""}i.start(y)}catch(T){ue(1,31,"startTrackPage failed, page view may not be collected: "+je(T),{exception:se(T)})}},I.stopTrackPage=function(y,M,T,U){try{if(typeof y!="string"){var ie=Ot();y=ie&&ie.title||""}if(typeof M!="string"){var w=ir();M=w&&w[Go]||""}i.stop(y,M,T,U),S&&l[im](y,M)}catch(H){ue(1,32,"stopTrackPage failed, page view will not be collected: "+je(H),{exception:se(H)})}},I[m0]=function(y,M,T){var U=y&&(y.exception||y[wl])||Gd(y)&&y||{name:y&&typeof y,message:y||or};y=y||{};var ie=new bn(I[fn](),U,y[Nl]||M,y.measurements,y.severityLevel,y.id).toInterface(),w=Ot();if(w&&(C!=null&&C.inclScripts)){var H=mM(w);ie[Nl].exceptionScripts=JSON.stringify(H)}if(C!=null&&C.expLog){var Y=C.expLog();Y&&Y.logs&&ke(Y.logs)&&(ie[Nl].exceptionLog=Y.logs.slice(0,C.maxLogs).join(`
64
- `))}var Q=Ii(ie,bn[Ri],bn[Ta],I[fn](),M,T);I[Pt][Na](Q)},I.trackException=function(y,M){y&&!y.exception&&y[wl]&&(y.exception=y[wl]);try{I[m0](y,M)}catch(T){ue(1,35,"trackException failed, exception will not be collected: "+je(T),{exception:se(T)})}},I._onerror=function(y){var M=y&&y[wl],T=y&&y.evt;try{if(!T){var U=sn();U&&(T=U[eV])}var ie=y&&y.url||(Ot()||{}).URL,w=y.errorSrc||"window.onerror@"+ie+":"+(y[sm]||0)+":"+(y[lm]||0),H={errorSrc:w,url:ie,lineNumber:y[sm]||0,columnNumber:y[lm]||0,message:y.message};Bx(y.message,y.url,y.lineNumber,y.columnNumber,y[wl])?E(bn[cm]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ie,y[sm]||0,y[lm]||0,M,T,null,w),H):(y.errorSrc||(y.errorSrc=w),I.trackException({exception:y,severityLevel:3},H))}catch(Q){var Y=M?M.name+", "+M.message:"null";ue(1,11,"_onError threw exception while logging error, error will not be collected: "+je(Q),{exception:se(Q),errorString:Y})}},I[rf]=function(y){if(I[Pt])return I[Pt][rf](y);c||(c=[]),c.push(y)},I.initialize=function(y,M,T,U){if(!I.isInitialized()){K(M)&&on("Error initializing"),B.initialize(y,M,T,U);try{z=Ei(Tn(I.identifier),M.evtNamespace&&M.evtNamespace()),c&&(oe(c,function(ie){M[rf](ie)}),c=null),P(y),s=new Jx(I[Pt]),a=new Wx(I,g.overridePageViewDuration,I[Pt],s),l=new Qx(I[fn](),function(ie,w,H){return q(ie,w,H)}),r=new D0(I[fn](),"trackEvent"),r.action=function(ie,w,H,Y,Q){Y||(Y={}),Q||(Q={}),Y.duration=H[tf](),I.trackEvent({name:ie,properties:Y,measurements:Q})},i=new D0(I[fn](),"trackPageView"),i.action=function(ie,w,H,Y,Q){K(Y)&&(Y={}),Y.duration=H[tf]();var Ee={name:ie,uri:w,properties:Y,measurements:Q};I[wa](Ee,Y)},Hc()&&(D(),j())}catch(ie){throw I.setInitialized(!1),ie}}},I._doTeardown=function(y,M){a&&a.teardown(y,M),Po(window,null,null,z),ve()},I._getDbgPlgTargets=function(){return[b,m]};function P(y){var M=I.identifier,T=I[Pt];I[Uo](mt(y,function(){var U=Fn(null,y,T);g=U.getExtCfg(M,nV),m=m||y[um]||g[um],C=g.expCfg,S=g[v0],y.storagePrefix&&Xp(y.storagePrefix),iV(g),u=g[_0],te()}))}function q(y,M,T){var U={PageName:y,PageUrl:M};I.trackMetric({name:"PageVisitTime",average:T,max:T,min:T,sampleCount:1},U)}function te(){if(!f&&u){var y=["/browserLinkSignalR/","/__browserLink/"],M=function(T){if(u&&T.baseType===ya[Ri]){var U=T.baseData;if(U){for(var ie=0;ie<y[bl];ie++)if(U.target&&jt(U.target,y[ie])>=0)return!1}}return!0};I[Uo](I[rf](M)),f=!0}}function E(y,M){var T=Ii(y,bn[Ri],bn[Ta],I[fn](),M);I[Pt][Na](T)}function D(){var y=sn(),M=ir(!0);I[Uo](mt(g,function(){h=g.disableExceptionTracking,!h&&!m&&!g[um]&&(k($u(y,"onerror",{ns:z,rsp:function(T,U,ie,w,H,Y){!h&&T.rslt!==!0&&I._onerror(bn[cm](U,ie,w,H,Y,T.evt))}},!1)),b++,m=!0)})),re(y,M)}function j(){var y=sn(),M=ir(!0);I[Uo](mt(g,function(){if(d=g[g0]===!0,y&&d&&!p&&ZO()){var T=Ag();Se(T.pushState)&&Se(T.replaceState)&&typeof Event!==wh&&O(y,T,M)}}))}function x(){var y=null;if(I[Pt]&&I[Pt].getTraceCtx&&(y=I[Pt].getTraceCtx(!1)),!y){var M=I[Pt].getPlugin(ef);if(M){var T=M.plugin.context;T&&(y=zp(T.telemetryTrace))}}return y}function O(y,M,T){if(p)return;var U=g.namePrefix||"";function ie(){d&&kl(y,Tl(U+"locationchange"))}function w(){if(V&&(A=V),V=T&&T[Go]||"",d){var H=x();if(H){H.setTraceId(gi());var Y="_unknown_";T&&T.pathname&&(Y=T.pathname+(T.hash||"")),H.setName(Et(I[fn](),Y))}En((function(Q){I[nf]({refUri:Q,properties:{duration:0}})}).bind(I,A),I.autoRoutePVDelay)}}k($u(M,"pushState",{ns:z,rsp:function(){d&&(kl(y,Tl(U+"pushState")),kl(y,Tl(U+"locationchange")))}},!0)),k($u(M,"replaceState",{ns:z,rsp:function(){d&&(kl(y,Tl(U+"replaceState")),kl(y,Tl(U+"locationchange")))}},!0)),Br(y,U+"popstate",ie,z),Br(y,U+"locationchange",w,z),p=!0}function re(y,M){I[Uo](mt(g,function(){v=g[y0]===!0,m=m||g[fm],v&&!_&&(k($u(y,"onunhandledrejection",{ns:z,rsp:function(T,U){v&&T.rslt!==!0&&I._onerror(bn[cm](tV(U),M?M[Go]:"",0,0,U,T.evt))}},!1)),b++,g[fm]=_=!0)}))}function ue(y,M,T,U,ie){I[fn]().throwInternal(y,M,T,U,ie)}function ve(){r=null,i=null,a=null,s=null,l=null,c=null,u=!1,f=!1,d=!1,p=!1,h=!1,m=!1,v=!1,_=!1,S=!1;var y=ir(!0);A=y&&y[Go]||"",V=null,z=null,g=null,b=0,Le(I,"config",{g:function(){return g}})}Le(I,"_pageViewManager",{g:function(){return a}}),Le(I,"_pageViewPerformanceManager",{g:function(){return s}}),Le(I,"_pageVisitTimeManager",{g:function(){return l}}),Le(I,"_evtNamespace",{g:function(){return"."+z}})}),n}return t.Version="3.3.7",t}(Oo),lf="featureOptIn",I0="scheduleFetchTimeout";function R0(e,t,n,r){try{var i=n>r;i&&(e=null);var a=n==0?_P({},e):e;return a&&t&&!i&&Me(a,function(s){var l=t[s];l&&(en(a[s])&&en(l)?a[s]=R0(a[s],l,++n,r):delete a[s])}),a}catch{}return e}var Wo="featureOptIn.",O0=".mode",P0=".onCfg",A0=".offCfg";function oV(e,t,n){var r;if(!t||!t.enabled)return null;var i=(t[lf]||{})[e]||{mode:1},a=i.mode,s=i.onCfg,l=i.offCfg,c=(n||{})[e]||{mode:2},u=c.mode,f=c.onCfg,d=c.offCfg,p=!!c.blockCdnCfg,h=Wo+e+O0,m=Wo+e+P0,v=Wo+e+A0,_=u,g=f,S=d;return p||(a===4||a===5?(_=a==4?3:2,g=s||f,S=l||d):a===2||u===2?(_=2,g=f||s,S=d||l):a===3?(_=3,g=f||s,S=d||l):a===1&&u===1&&(_=1)),r={},r[h]=_,r[m]=g,r[v]=S,r}function sV(e,t){try{if(!e||!e.enabled)return null;if(!e[lf])return e.config;var n=e[lf],r=e.config||{};return Me(n,function(i){var a=oV(i,e,t.config[lf]);K(a)||(Me(a,function(s,l){Wg(r,s,l)}),lV(i,a,r))}),r}catch{}return null}function lV(e,t,n){var r=t[Wo+e+O0],i=t[Wo+e+P0],a=t[Wo+e+A0],s=null;r===3&&(s=i),r===2&&(s=a),s&&Me(s,function(l,c){Wg(n,l,c)})}var Cl,cV="ai_cfgsync",M0="GET",uV=18e5,jo=void 0,fV={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},dV=Fs((Cl={syncMode:1,blkCdnCfg:jo,customEvtName:jo,cfgUrl:jo,overrideSyncFn:jo,overrideFetchFn:jo,onCfgChangeReceive:jo},Cl[I0]=uV,Cl.nonOverrideConfigs=fV,Cl.enableAjax=!1,Cl)),hV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C=!1,A;return et(t,n,function(V,z){b(),V.initialize=function(y,M,T,U){z.initialize(y,M,T,U),s=Ei(Tn(V.identifier),M.evtNamespace&&M.evtNamespace()),I(y)},V.getCfg=function(){return i},V.pause=function(){C=!0,ve()},V.resume=function(){C=!1,ue()},V.setCfg=function(y){return B(y)},V.sync=function(y){return P(y)},V.updateEventListenerName=function(y){return q(y)},V._doTeardown=function(y,M){k(),ve(),b()},V._getDbgPlgTargets=function(){return[f,u,a,d,v]};function b(){i=null,a=null,s=null,l=null,u=null,f=null,v=null,c=null,p=null,h=null,d=null,A=!1,g=null,S=null,m=null}function I(y){var M=V.identifier,T=V.core;V._addHook(mt(y,function(){var U=Fn(null,y,T);r=U.getExtCfg(M,dV);var ie=d;d=!!r.blkCdnCfg,A=!!r.enableAjax,!K(ie)&&ie!==d&&(!d&&l?_&&_(l,j,f):ve()),K(u)&&(u=r.syncMode===2),K(f)&&(f=r.syncMode===1);var w=r.customEvtName||cV;a!==w&&(u?q(w):(k(),a=w)),K(l)&&(l=r.cfgUrl),l||(i=y,f&&P())})),S=r.overrideSyncFn,g=r.overrideFetchFn,m=r.onCfgChangeReceive,v=r.nonOverrideConfigs,p=r[I0],_=te(),h=0,l&&!d&&_&&_(l,j,f)}function B(y,M){if(y){if(i=y,M&&!C)return P();if(u&&!C)return V.core.updateCfg(y),!0}return!1}function k(){try{var y=Sn();y&&Po(y,null,null,s)}catch{}}function P(y){try{return S&&Se(S)?S(i,y):DA(a,i,y)}catch{}return!1}function q(y){try{return k(),y&&(a=y,O()),!0}catch{}return!1}function te(){var y=g;return K(y)&&(Zh()?y=E:Eu()&&(y=D)),y}function E(y,M,T){var U=Sn(),ie=U&&U.fetch||null;if(y&&ie&&Se(ie))try{var w={method:M0};A||(w[ha]=!0);var H=new Request(y,w);if(!A)try{H[ha]=!0}catch{}cn(fetch(H),function(Y){var Q=Y.value;Y.rejected?x(M,400):Q.ok?cn(Q.text(),function(Ee){x(M,Q.status,Ee.value,T)}):x(M,Q.status,null,T)})}catch{}}function D(y,M,T){try{var U=new XMLHttpRequest;A||(U[ha]=!0),U.open(M0,y),U.onreadystatechange=function(){U.readyState===XMLHttpRequest.DONE&&x(M,U.status,U.responseText,T)},U.onerror=function(){x(M,400)},U.ontimeout=function(){x(M,400)},U.send()}catch{}}function j(y,M,T){try{if(y>=200&&y<400&&M){h=0;var U=Vn();if(U){var ie=U.parse(M),w=sV(ie,V.core),H=w&&Wt(w)&&re(w);H&&B(H,T)}}else h++;h<3&&ue()}catch{}}function x(y,M,T,U){try{y(M,T,U)}catch{}}function O(){if(u){var y=Sn();if(y)try{Br(y,a,function(M){var T=M&&M.detail;if(m&&T)m(T);else{var U=T&&T.cfg,ie=U&&Wt(U)&&re(U);ie&&B(ie)}},s,!0)}catch{}}}function re(y,M){var T=null;try{y&&(T=R0(y,v,0,5))}catch{}return T}function ue(){!c&&p&&(c=En(function(){c=null,_(l,j,f)},p),c.unref())}function ve(){c&&c.cancel(),c=null,h=0}V.processTelemetry=function(y,M){V.processNext(y,M)}}),n}return t.__ieDyn=1,t}(Oo),ba="duration",At="tags",mm="deviceType",dn="data",Gr="name",Il="traceID",xe="length",Rl="stringify",Da="measurements",ur="dataType",ka="envelopeType",Ca="toString",Ia="enqueue",Ra="count",Wr="push",vm="emitLineDelimitedJson",zo="clear",cf="markAsSent",Ol="clearSent",_m="bufferOverride",Pl="BUFFER_KEY",Oi="SENT_BUFFER_KEY",Ko="concat",Al="MAX_BUFFER_SIZE",Ml="triggerSend",$t="diagLog",gm="initialize",xl="_sender",Vl="endpointUrl",Ll="instrumentationKey",ym="customHeaders",x0="maxBatchSizeInBytes",Sm="onunloadDisableBeacon",Em="isBeaconApiDisabled",V0="alwaysUseXhrOverride",L0="enableSessionStorageBuffer",fr="_buffer",F0="onunloadDisableFetch",Y0="disableSendBeaconSplit",uf="getSenderInst",Oa="_onError",Tm="_onPartialSuccess",ff="_onSuccess",Nm="itemsReceived",wm="itemsAccepted",bm="baseType",df="sampleRate",pV="getHashCodeScore",Dm="baseType",lt="baseData",kt="properties",$0="true";function vt(e,t,n){return Qe(e,t,n,Vc)}function mV(e,t,n){var r=n[At]=n[At]||{},i=t.ext=t.ext||{},a=t[At]=t[At]||[],s=i.user;s&&(vt(r,tt.userAuthUserId,s.authId),vt(r,tt.userId,s.id||s.localId));var l=i.app;l&&vt(r,tt.sessionId,l.sesId);var c=i.device;c&&(vt(r,tt.deviceId,c.id||c.localId),vt(r,tt[mm],c.deviceClass),vt(r,tt.deviceIp,c.ip),vt(r,tt.deviceModel,c.model),vt(r,tt[mm],c[mm]));var u=t.ext.web;if(u){vt(r,tt.deviceLanguage,u.browserLang),vt(r,tt.deviceBrowserVersion,u.browserVer),vt(r,tt.deviceBrowser,u.browser);var f=n[dn]=n[dn]||{},d=f[lt]=f[lt]||{},p=d[kt]=d[kt]||{};vt(p,"domain",u.domain),vt(p,"isManual",u.isManual?$0:null),vt(p,"screenRes",u.screenRes),vt(p,"userConsent",u.userConsent?$0:null)}var h=i.os;h&&(vt(r,tt.deviceOS,h[Gr]),vt(r,tt.deviceOSVersion,h.osVer));var m=i.trace;m&&(vt(r,tt.operationParentId,m.parentID),vt(r,tt.operationName,Et(e,m[Gr])),vt(r,tt.operationId,m[Il]));for(var v={},_=a[xe]-1;_>=0;_--){var g=a[_];Me(g,function(C,A){v[C]=A}),a.splice(_,1)}Me(a,function(C,A){v[C]=A});var S=zt(zt({},r),v);S[tt.internalSdkVersion]||(S[tt.internalSdkVersion]=Et(e,"javascript:".concat(vV.Version),64)),n[At]=Ey(S)}function Pi(e,t,n){K(e)||Me(e,function(r,i){Ls(i)?n[r]=i:ye(i)?t[r]=i:el()&&(t[r]=Vn()[Rl](i))})}function Pa(e,t){K(e)||Me(e,function(n,r){e[n]=r||t})}function Aa(e,t,n,r){var i=new _x(e,r,t);vt(i,"sampleRate",n[VS]),(n[lt]||{}).startTime&&(i.time=bo(n[lt].startTime)),i.iKey=n.iKey;var a=n.iKey.replace(/-/g,"");return i[Gr]=i[Gr].replace("{0}",a),mV(e,n,i),n[At]=n[At]||[],Ey(i)}function Ma(e,t){K(t[lt])&&Z(e,1,46,"telemetryItem.baseData cannot be null.")}var vV={Version:"3.3.7"};function _V(e,t,n){Ma(e,t);var r=t[lt][Da]||{},i=t[lt][kt]||{};Pi(t[dn],i,r),K(n)||Pa(i,n);var a=t[lt];if(K(a))return ca(e,"Invalid input for dependency data"),null;var s=a[kt]&&a[kt][LS]?a[kt][LS]:"GET",l=new ya(e,a.id,a.target,a[Gr],a[ba],a.success,a.responseCode,s,a.type,a.correlationContext,i,r),c=new Sa(ya[ur],l);return Aa(e,ya[ka],t,c)}function B0(e,t,n){Ma(e,t);var r={},i={};t[Dm]!==wi[ur]&&(r.baseTypeSource=t[Dm]),t[Dm]===wi[ur]?(r=t[lt][kt]||{},i=t[lt][Da]||{}):t[lt]&&Pi(t[lt],r,i),Pi(t[dn],r,i),K(n)||Pa(r,n);var a=t[lt][Gr],s=new wi(e,a,r,i),l=new Sa(wi[ur],s);return Aa(e,wi[ka],t,l)}function gV(e,t,n){Ma(e,t);var r=t[lt][Da]||{},i=t[lt][kt]||{};Pi(t[dn],i,r),K(n)||Pa(i,n);var a=t[lt],s=bn.CreateFromInterface(e,a,i,r),l=new Sa(bn[ur],s);return Aa(e,bn[ka],t,l)}function yV(e,t,n){Ma(e,t);var r=t[lt],i=r[kt]||{},a=r[Da]||{};Pi(t[dn],i,a),K(n)||Pa(i,n);var s=new ga(e,r[Gr],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,a),l=new Sa(ga[ur],s);return Aa(e,ga[ka],t,l)}function SV(e,t,n){Ma(e,t);var r,i=t[lt];!K(i)&&!K(i[kt])&&!K(i[kt][ba])?(r=i[kt][ba],delete i[kt][ba]):!K(t[dn])&&!K(t[dn][ba])&&(r=t[dn][ba],delete t[dn][ba]);var a=t[lt],s;((t.ext||{}).trace||{})[Il]&&(s=t.ext.trace[Il]);var l=a.id||s,c=a[Gr],u=a.uri,f=a[kt]||{},d=a[Da]||{};if(K(a.refUri)||(f.refUri=a.refUri),K(a.pageType)||(f.pageType=a.pageType),K(a.isLoggedIn)||(f.isLoggedIn=a.isLoggedIn[Ca]()),!K(a[kt])){var p=a[kt];Me(p,function(v,_){f[v]=_})}Pi(t[dn],f,d),K(n)||Pa(f,n);var h=new Di(e,c,u,r,f,d,l),m=new Sa(Di[ur],h);return Aa(e,Di[ka],t,m)}function EV(e,t,n){Ma(e,t);var r=t[lt],i=r[Gr],a=r.uri||r.url,s=r[kt]||{},l=r[Da]||{};Pi(t[dn],s,l),K(n)||Pa(s,n);var c=new $o(e,i,a,void 0,s,l,r),u=new Sa($o[ur],c);return Aa(e,$o[ka],t,u)}function TV(e,t,n){Ma(e,t);var r=t[lt].message,i=t[lt].severityLevel,a=t[lt][kt]||{},s=t[lt][Da]||{};Pi(t[dn],a,s),K(n)||Pa(a,n);var l=new Yo(e,r,i,a,s),c=new Sa(Yo[ur],l);return Aa(e,Yo[ka],t,c)}var U0=function(){function e(t,n){var r=[],i=!1,a=n.maxRetryCnt;this._get=function(){return r},this._set=function(s){return r=s,r},et(e,this,function(s){s[Ia]=function(l){if(s[Ra]()>=n.eventsLimitInMem){i||(Z(t,2,105,"Maximum in-memory buffer size reached: "+s[Ra](),!0),i=!0);return}l.cnt=l.cnt||0,!(!K(a)&&l.cnt>a)&&r[Wr](l)},s[Ra]=function(){return r[xe]},s.size=function(){for(var l=r[xe],c=0;c<r[xe];c++)l+=r[c].item[xe];return n[vm]||(l+=2),l},s[zo]=function(){r=[],i=!1},s.getItems=function(){return r.slice(0)},s.batchPayloads=function(l){if(l&&l[xe]>0){var c=[];oe(l,function(f){c[Wr](f.item)});var u=n[vm]?c.join(`
65
- `):"["+c.join(",")+"]";return u}return null},s.createNew=function(l,c,u){var f=r.slice(0);l=l||t,c=c||{};var d=u?new H0(l,c):new km(l,c);return oe(f,function(p){d[Ia](p)}),d}})}return e.__ieDyn=1,e}(),km=function(e){Lr(t,e);function t(n,r){var i=e.call(this,n,r)||this;return et(t,i,function(a,s){a[cf]=function(l){s[zo]()},a[Ol]=function(l){}}),i}return t.__ieDyn=1,t}(U0),NV=["AI_buffer","AI_sentBuffer"],H0=function(e){Lr(t,e);function t(r,i){var a=e.call(this,r,i)||this,s=!1,l=i==null?void 0:i.namePrefix,c=i[_m]||{getItem:Jp,setItem:XS},u=c.getItem,f=c.setItem,d=i.maxRetryCnt;return et(t,a,function(p,h){var m=A(t[Pl]),v=A(t[Oi]),_=b(),g=v[Ko](_),S=p._set(m[Ko](g));S[xe]>t[Al]&&(S[xe]=t[Al]),z(t[Oi],[]),z(t[Pl],S),p[Ia]=function(B){if(p[Ra]()>=t[Al]){s||(Z(r,2,67,"Maximum buffer size reached: "+p[Ra](),!0),s=!0);return}B.cnt=B.cnt||0,!(!K(d)&&B.cnt>d)&&(h[Ia](B),z(t[Pl],p._get()))},p[zo]=function(){h[zo](),z(t[Pl],p._get()),z(t[Oi],[]),s=!1},p[cf]=function(B){z(t[Pl],p._set(C(B,p._get())));var k=A(t[Oi]);k instanceof Array&&B instanceof Array&&(k=k[Ko](B),k[xe]>t[Al]&&(Z(r,1,67,"Sent buffer reached its maximum size: "+k[xe],!0),k[xe]=t[Al]),z(t[Oi],k))},p[Ol]=function(B){var k=A(t[Oi]);k=C(B,k),z(t[Oi],k)},p.createNew=function(B,k,P){P=!!P;var q=p._get().slice(0),te=A(t[Oi]).slice(0);B=B||r,k=k||{},p[zo]();var E=P?new t(B,k):new km(B,k);return oe(q,function(D){E[Ia](D)}),P&&E[cf](te),E};function C(B,k){var P=[],q=[];return oe(B,function(te){q[Wr](te.item)}),oe(k,function(te){!Se(te)&&Ft(q,te.item)===-1&&P[Wr](te)}),P}function A(B){var k=B;return k=l?l+"_"+k:k,V(k)}function V(B){try{var k=u(r,B);if(k){var P=Vn().parse(k);if(ye(P)&&(P=Vn().parse(P)),P&&ke(P))return P}}catch(q){Z(r,1,42," storage key: "+B+", "+je(q),{exception:se(q)})}return[]}function z(B,k){var P=B;try{P=l?l+"_"+P:P;var q=JSON[Rl](k);f(r,P,q)}catch(te){f(r,P,JSON[Rl]([])),Z(r,2,41," storage key: "+P+", "+je(te)+". Buffer cleared",{exception:se(te)})}}function b(){var B=[];try{return oe(NV,function(k){var P=I(k);if(B=B[Ko](P),l){var q=l+"_"+k,te=I(q);B=B[Ko](te)}}),B}catch(k){Z(r,2,41,"Transfer events from previous buffers: "+je(k)+". previous Buffer items can not be removed",{exception:se(k)})}return[]}function I(B){try{var k=V(B),P=[];return oe(k,function(q){var te={item:q,cnt:0};P[Wr](te)}),JS(r,B),P}catch{}return[]}}),a}var n;return n=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+n.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(U0),wV=function(){function e(t){et(e,this,function(n){n.serialize=function(s){var l=r(s,"root");try{return Vn()[Rl](l)}catch(c){Z(t,1,48,c&&Se(c[Ca])?c[Ca]():"Error serializing object",null,!0)}};function r(s,l){var c="__aiCircularRefCheck",u={};if(!s)return Z(t,1,48,"cannot serialize object because it is null or undefined",{name:l},!0),u;if(s[c])return Z(t,2,50,"Circular reference detected while serializing object",{name:l},!0),u;if(!s.aiDataContract){if(l==="measurements")u=a(s,"number",l);else if(l==="properties")u=a(s,"string",l);else if(l==="tags")u=a(s,"string",l);else if(ke(s))u=i(s,l);else{Z(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:l},!0);try{Vn()[Rl](s),u=s}catch(f){Z(t,1,48,f&&Se(f[Ca])?f[Ca]():"Error serializing object",null,!0)}}return u}return s[c]=!0,Me(s.aiDataContract,function(f,d){var p=Se(d)?d()&1:d&1,h=Se(d)?d()&4:d&4,m=d&2,v=s[f]!==void 0,_=en(s[f])&&s[f]!==null;if(p&&!v&&!m)Z(t,1,24,"Missing required field specification. The field is required but not present on source",{field:f,name:l});else if(!h){var g=void 0;_?m?g=i(s[f],f):g=r(s[f],f):g=s[f],g!==void 0&&(u[f]=g)}}),delete s[c],u}function i(s,l){var c;if(s)if(!ke(s))Z(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r
66
- `,{name:l},!0);else{c=[];for(var u=0;u<s[xe];u++){var f=s[u],d=r(f,l+"["+u+"]");c[Wr](d)}}return c}function a(s,l,c){var u;return s&&(u={},Me(s,function(f,d){if(l==="string")d===void 0?u[f]="undefined":d===null?u[f]="null":d[Ca]?u[f]=d[Ca]():u[f]="invalid field: toString() is not defined.";else if(l==="number")if(d===void 0)u[f]="undefined";else if(d===null)u[f]="null";else{var p=parseFloat(d);u[f]=p}else u[f]="invalid field: "+c+" is of unknown type.",Z(t,1,u[f],null,!0)})),u}})}return e.__ieDyn=1,e}(),bV=8,DV=function(){function e(){}return e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100},e.prototype.getHashCode=function(t){if(t==="")return 0;for(;t[xe]<bV;)t=t[Ko](t);for(var n=5381,r=0;r<t[xe];++r)n=(n<<5)+n+t.charCodeAt(r),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),kV=function(){function e(){var t=this,n=new DV,r=new f0;t.getSamplingScore=function(i){var a=0;return i[At]&&i[At][r.userId]?a=n.getHashCodeScore(i[At][r.userId]):i.ext&&i.ext.user&&i.ext.user.id?a=n[pV](i.ext.user.id):i[At]&&i[At][r.operationId]?a=n.getHashCodeScore(i[At][r.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Il]?a=n.getHashCodeScore(i.ext.telemetryTrace[Il]):a=Math.random()*100,a}}return e}(),CV=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var r=n||la(null);(t>100||t<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[df]=t,this.samplingScoreGenerator=new kV}return e.prototype.isSampledIn=function(t){var n=this[df],r=!1;return n==null||n>=100||t.baseType===ga[ur]?!0:(r=this.samplingScoreGenerator.getSamplingScore(t)<n,r)},e}(),nt,jr,$n=void 0,G0="",IV=65e3;function W0(e){try{return e.responseText}catch{}return null}function RV(e){return e&&e.sendPOST}var j0=Fs((nt={endpointUrl:Du(Vc,Fp+Ao)},nt[vm]=St(),nt.maxBatchInterval=15e3,nt[x0]=102400,nt.disableTelemetry=St(),nt[L0]=St(!0),nt.isRetryDisabled=St(),nt[Em]=St(!0),nt[Y0]=St(!0),nt.disableXhr=St(),nt[F0]=St(),nt[Sm]=St(),nt[Ll]=$n,nt.namePrefix=$n,nt.samplingPercentage=Du(OV,100),nt[ym]=$n,nt.convertUndefined=$n,nt.eventsLimitInMem=1e4,nt[_m]=!1,nt.httpXHROverride={isVal:RV,v:$n},nt[V0]=St(),nt.transports=$n,nt.retryCodes=$n,nt.corsPolicy=$n,nt.maxRetryCnt={isVal:Ls,v:10},nt)),z0="X-Set-Cross-Origin-Resource-Policy";function OV(e){return!isNaN(e)&&e>0&&e<=100}var PV=(jr={},jr[wi.dataType]=B0,jr[Yo.dataType]=TV,jr[Di.dataType]=SV,jr[$o.dataType]=EV,jr[bn.dataType]=gV,jr[ga.dataType]=yV,jr[ya.dataType]=_V,jr),AV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=h0;var r,i,a,s,l,c,u,f,d=0,p,h,m,v,_,g,S,C,A,V,z,b,I,B,k,P,q,te,E,D,j,x,O,re,ue,ve,y,M;return et(t,n,function(T,U){If(),T.pause=function(){Ct(),s=!0},T.resume=function(){s&&(s=!1,i=null,L(),rt())},T.flush=function(R,$,ee){if(R===void 0&&(R=!0),!s){Ct();try{return T[Ml](R,null,ee||1)}catch(pe){Z(T[$t](),1,22,"flush failed, telemetry will not be collected: "+je(pe),{exception:se(pe)})}}},T.onunloadFlush=function(){if(!s)if(S||D)try{return T[Ml](!0,X,2)}catch(R){Z(T[$t](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+je(R),{exception:se(R)})}else T.flush(!1)},T.addHeader=function(R,$){f[R]=$},T[gm]=function(R,$,ee,pe){T.isInitialized()&&Z(T[$t](),1,28,"Sender is already initialized"),U[gm](R,$,ee,pe);var be=T.identifier;c=new wV($.logger),r=0,i=null,a=0,T[xl]=null,u=0;var Ne=T[$t]();m=Ei(Tn("Sender"),$.evtNamespace&&$.evtNamespace()),h=Ux(m),T._addHook(mt(R,function(Ue){var ct=Ue.cfg;ct.storagePrefix&&Xp(ct.storagePrefix);var hn=Fn(null,ct,$),Ie=hn.getExtCfg(be,j0),xE=Ie[Vl];if(v&&xE===v){var nv=ct[Vl];nv&&nv!==xE&&(Ie[Vl]=nv)}var xL=ot("CompressionStream");M=gu("zipPayload",ct,!1),Se(xL)||(M=!1);var ql=Ie.corsPolicy;ql?(ql==="same-origin"||ql==="same-site"||ql==="cross-origin")&&n.addHeader(z0,ql):delete f[z0],si(Ie[Ll])&&(Ie[Ll]=ct[Ll]),Le(T,"_senderConfig",{g:function(){return Ie}}),_!==Ie[Vl]&&(v=_=Ie[Vl]),$.activeStatus()===fi.PENDING?T.pause():$.activeStatus()===fi.ACTIVE&&T.resume(),V&&V!==Ie[ym]&&oe(V,function(xt){delete f[xt.header]}),g=Ie[x0],S=(Ie[Sm]===!1||Ie[Em]===!1)&&tl(),C=Ie[Sm]===!1&&tl(),A=Ie[Em]===!1&&tl(),D=Ie[V0],j=!!Ie.disableXhr,y=Ie.retryCodes;var rv=Ie[_m],ds=!!Ie[L0]&&(!!rv||gl()),VE=Ie.namePrefix,VL=ds!==P||ds&&te!==VE||ds&&q!==rv;if(T[fr]){if(VL)try{T[fr]=T[fr].createNew(Ne,Ie,ds)}catch(xt){Z(T[$t](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+je(xt),{exception:se(xt)})}L()}else T[fr]=ds?new H0(Ne,Ie):new km(Ne,Ie);te=VE,P=ds,q=rv,x=!Ie[F0]&&Zh(!0),ue=!!Ie[Y0],T._sample=new CV(Ie.samplingPercentage,Ne),b=Ie[Ll],!si(b)&&!fs(b,ct)&&Z(Ne,1,100,"Invalid Instrumentation key "+b),V=Ie[ym],ye(v)&&!jp(v)&&V&&V[xe]>0?oe(V,function(xt){n.addHeader(xt.header,xt.value)}):V=null,E=Ie.enableSendPromise;var LE=w();ve?ve.SetConfig(LE):(ve=new LM,ve[gm](LE,Ne));var Rf=Ie.httpXHROverride,Of=null,Xl=null,LL=wy([3,1,2],Ie.transports);Of=ve&&ve[uf](LL,!1);var iv=ve&&ve.getFallbackInst();O=function(xt,Ga){return me(iv,xt,Ga)},re=function(xt,Ga){return me(iv,xt,Ga,!1)},Of=D?Rf:Of||Rf||iv,T[xl]=function(xt,Ga){return me(Of,xt,Ga)},x&&(p=Oe);var av=wy([3,1],Ie.unloadTransports);x||(av=av.filter(function(xt){return xt!==2})),Xl=ve&&ve[uf](av,!0),Xl=D?Rf:Xl||Rf,(D||Ie.unloadTransports||!p)&&Xl&&(p=function(xt,Ga){return me(Xl,xt,Ga)}),p||(p=O),z=Ie.disableTelemetry,I=Ie.convertUndefined||$n,B=Ie.isRetryDisabled,k=Ie.maxBatchInterval}))},T.processTelemetry=function(R,$){$=T._getTelCtx($);var ee=$[$t]();try{var pe=fe(R,ee);if(!pe)return;var be=ce(R,ee);if(!be)return;var Ne=c.serialize(be),Ue=T[fr];L(Ne);var ct={item:Ne,cnt:0};Ue[Ia](ct),rt()}catch(hn){Z(ee,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+je(hn),{exception:se(hn)})}T.processNext(R,$)},T.isCompletelyIdle=function(){return!s&&d===0&&T._buffer[Ra]()===0},T.getOfflineListener=function(){return h},T._xhrReadyStateChange=function(R,$,ee){if(!_e($))return H(R,$,ee)},T[Ml]=function(R,$,ee){R===void 0&&(R=!0);var pe;if(!s)try{var be=T[fr];if(z)be[zo]();else{if(be[Ra]()>0){var Ne=be.getItems();nn(ee||0,R),$?pe=$.call(T,Ne,R):pe=T[xl](Ne,R)}a=+new Date}Ct()}catch(ct){var Ue=Iy();(!Ue||Ue>9)&&Z(T[$t](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+je(ct),{exception:se(ct)})}return pe},T.getOfflineSupport=function(){return{getUrl:function(){return v},createPayload:Je,serialize:Ae,batch:Mt,shouldProcess:function(R){return!!fe(R)}}},T._doTeardown=function(R,$){T.onunloadFlush(),ko(h,!1),If()},T[Oa]=function(R,$,ee){if(!_e(R))return Y(R,$)},T[Tm]=function(R,$){if(!_e(R))return Q(R,$)},T[ff]=function(R,$){if(!_e(R))return Ee(R)},T._xdrOnLoad=function(R,$){if(!_e($))return ie(R,$)};function ie(R,$){var ee=W0(R);if(R&&(ee+""=="200"||ee===""))r=0,T[ff]($,0);else{var pe=Dp(ee);pe&&pe[Nm]&&pe[Nm]>pe[wm]&&!B?T[Tm]($,pe):T[Oa]($,Ny(R))}}function w(){try{var R={xdrOnComplete:function(ee,pe,be){var Ne=Ye(be);if(Ne)return ie(ee,Ne)},fetchOnComplete:function(ee,pe,be,Ne){var Ue=Ye(Ne);if(Ue)return W(ee.status,Ue,ee.url,Ue[xe],ee.statusText,be||"")},xhrOnComplete:function(ee,pe,be){var Ne=Ye(be);if(Ne)return H(ee,Ne,Ne[xe])},beaconOnRetry:function(ee,pe,be){return he(ee,pe,be)}},$={enableSendPromise:E,isOneDs:!1,disableCredentials:!1,disableXhr:j,disableBeacon:!A,disableBeaconSync:!C,senderOnCompleteCallBack:R};return $}catch{}return null}function H(R,$,ee){R.readyState===4&&W(R.status,$,R.responseURL,ee,Su(R),W0(R)||R.response)}function Y(R,$,ee){Z(T[$t](),2,26,"Failed to send telemetry.",{message:$}),T._buffer&&T._buffer[Ol](R)}function Q(R,$){for(var ee=[],pe=[],be=$.errors.reverse(),Ne=0,Ue=be;Ne<Ue.length;Ne++){var ct=Ue[Ne],hn=R.splice(ct.index,1)[0];mr(ct.statusCode)?pe[Wr](hn):ee[Wr](hn)}R[xe]>0&&T[ff](R,$[wm]),ee[xe]>0&&T[Oa](ee,Su(null,["partial success",$[wm],"of",$.itemsReceived].join(" "))),pe[xe]>0&&(Te(pe),Z(T[$t](),2,40,"Partial success. Delivered: "+R[xe]+", Failed: "+ee[xe]+". Will retry to send "+pe[xe]+" our of "+$[Nm]+" items"))}function Ee(R,$){T._buffer&&T._buffer[Ol](R)}function Ye(R){try{if(R){var $=R,ee=$.oriPayload;return ee&&ee[xe]?ee:null}}catch{}return null}function fe(R,$){if(z)return!1;if(!R)return $&&Z($,1,7,"Cannot send empty telemetry"),!1;if(R.baseData&&!R[bm])return $&&Z($,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(R[bm]||(R[bm]="EventData"),!T[xl])return $&&Z($,1,28,"Sender was not initialized"),!1;if(F(R))R[VS]=T._sample[df];else return $&&Z($,2,33,"Telemetry item was sampled out and not sent",{SampleRate:T._sample[df]}),!1;return!0}function ce(R,$){var ee=R.iKey||b,pe=t.constructEnvelope(R,ee,$,I);if(!pe){Z($,1,47,"Unable to create an AppInsights envelope");return}var be=!1;if(R[At]&&R[At][Lp]&&(oe(R[At][Lp],function(Ne){try{Ne&&Ne(pe)===!1&&(be=!0,ca($,"Telemetry processor check returns false"))}catch(Ue){Z($,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+je(Ue),{exception:se(Ue)},!0)}}),delete R[At][Lp]),!be)return pe}function Ae(R){var $=G0,ee=T[$t]();try{var pe=fe(R,ee),be=null;pe&&(be=ce(R,ee)),be&&($=c.serialize(be))}catch{}return $}function Mt(R){var $=G0;return R&&R[xe]&&($="["+R.join(",")+"]"),$}function Je(R){var $=N();return{urlString:v,data:R,headers:$}}function F(R){return T._sample.isSampledIn(R)}function ne(R,$,ee,pe){$===200&&R?T._onSuccess(R,R[xe]):pe&&T[Oa](R,pe)}function me(R,$,ee,pe){pe===void 0&&(pe=!0);var be=function(ct,hn,Ie){return ne($,ct,hn,Ie)},Ne=de($),Ue=R&&R.sendPOST;return Ue&&Ne&&(pe&&T._buffer[cf]($),ve.preparePayload(function(ct){return Ue(ct,be,!ee)},M,Ne,!ee)),null}function de(R){if(ke(R)&&R[xe]>0){var $=T[fr].batchPayloads(R),ee=N(),pe={data:$,urlString:v,headers:ee,disableXhrSync:j,disableFetchKeepAlive:!x,oriPayload:R};return pe}return null}function N(){try{var R=f||{};return jp(v)&&(R[Xe[6]]=Xe[7]),R}catch{}return null}function L(R){var $=R?R[xe]:0;return T[fr].size()+$>g?((!h||h.isOnline())&&T[Ml](!0,null,10),!0):!1}function W(R,$,ee,pe,be,Ne){var Ue=null;if(T._appId||(Ue=Dp(Ne),Ue&&Ue.appId&&(T._appId=Ue.appId)),(R<200||R>=300)&&R!==0){if((R===301||R===307||R===308)&&!G(ee)){T[Oa]($,be);return}if(h&&!h.isOnline()){if(!B){var ct=10;Te($,ct),Z(T[$t](),2,40,". Offline - Response Code: ".concat(R,". Offline status: ").concat(!h.isOnline(),". Will retry to send ").concat($.length," items."))}return}!B&&mr(R)?(Te($),Z(T[$t](),2,40,". Response code "+R+". Will retry to send "+$[xe]+" items.")):T[Oa]($,be)}else G(ee),R===206?(Ue||(Ue=Dp(Ne)),Ue&&!B?T[Tm]($,Ue):T[Oa]($,be)):(r=0,T[ff]($,pe))}function G(R){return u>=10?!1:!K(R)&&R!==""&&R!==v?(v=R,++u,!0):!1}function X(R,$){if(p)p(R,!1);else{var ee=ve&&ve[uf]([3],!0);return me(ee,R,$)}}function he(R,$,ee){var pe=R,be=pe&&pe.oriPayload;if(ue)re&&re(be,!0),Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ne=[],Ue=0;Ue<be[xe];Ue++){var ct=be[Ue],hn=[ct],Ie=de(hn);ee(Ie,$)?T._onSuccess(hn,hn[xe]):Ne[Wr](ct)}Ne[xe]>0&&(re&&re(Ne,!0),Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function _e(R){try{if(R&&R[xe])return ye(R[0])}catch{}return null}function Oe(R,$){var ee=null;if(ke(R)){for(var pe=R[xe],be=0;be<R[xe];be++)pe+=R[be].item[xe];var Ne=ve.getSyncFetchPayload();Ne+pe<=IV?ee=2:tl()?ee=3:(ee=1,Z(T[$t](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var Ue=ve&&ve[uf]([ee],!0);return me(Ue,R,$)}return null}function Te(R,$){if($===void 0&&($=1),!(!R||R[xe]===0)){var ee=T[fr];ee[Ol](R),r++;for(var pe=0,be=R;pe<be.length;pe++){var Ne=be[pe];Ne.cnt=Ne.cnt||0,Ne.cnt++,ee[Ia](Ne)}ze($),rt()}}function ze(R){var $=10,ee;if(r<=1)ee=$;else{var pe=(Math.pow(2,r)-1)/2,be=ln(Math.random()*pe*$)+1;be=R*be,ee=Ys(kg(be,3600),$)}var Ne=Mn()+ee*1e3;i=Ne}function rt(){if(!l&&!s){var R=i?Ys(0,i-Mn()):0,$=Ys(k,R);l=En(function(){l=null,T[Ml](!0,null,1)},$)}}function Ct(){l&&l.cancel(),l=null,i=null}function mr(R){return K(y)?R===401||R===408||R===429||R===500||R===502||R===503||R===504:y[xe]&&y.indexOf(R)>-1}function vr(){var R="getNotifyMgr",$,ee=T.core;return ee&&(ee[R]?$=ee[R]():$=ee._notificationManager),$}function nn(R,$){var ee=vr();if(ee&&ee.eventsSendRequest)try{ee.eventsSendRequest(R,$)}catch(pe){Z(T[$t](),1,74,"send request notification failed: "+je(pe),{exception:se(pe)})}}function fs(R,$){var ee=$.disableInstrumentationKeyValidation,pe=K(ee)?!1:ee;if(pe)return!0;var be="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ne=new RegExp(be);return Ne.test(R)}function If(){T[xl]=null,T[fr]=null,T._appId=null,T._sample=null,f={},h=null,r=0,i=null,a=null,s=!1,l=null,c=null,u=0,d=0,p=null,m=null,v=null,_=null,g=0,S=!1,V=null,z=!1,b=null,I=$n,B=!1,P=null,te=$n,j=!1,x=!1,ue=!1,O=null,re=null,ve=null,Le(T,"_senderConfig",{g:function(){return Ty({},j0)}})}}),n}return t.constructEnvelope=function(n,r,i,a){var s;r!==n.iKey&&!K(r)?s=zt(zt({},n),{iKey:r}):s=n;var l=PV[s.baseType]||B0;return l(i,s,a)},t}(Oo),K0="duration",qo="properties",Bn="requestUrl",xa="length",Ai="traceID",Mi="spanID",Un="traceFlags",Fl="context",Xo="aborted",hf="_addHook",dr="core",Cm="includeCorrelationHeaders",Im="getAbsoluteUrl",Va="headers",Dn="requestHeaders",Rm="setRequestHeader",q0="trackDependencyDataInternal",Jo="startTime",Qo="toLowerCase",Om="enableRequestHeaderTracking",X0="enableAjaxErrorStatusText",J0="enableAjaxPerfTracking",Q0="maxAjaxCallsPerView",Z0="excludeRequestFromAutoTrackingPatterns",Pm="disableAjaxTracking",eE="ajaxPerfLookupDelay",tE="disableFetchTracking",nE="enableResponseHeaderTracking",Hn="status",La="statusText",pf="headerMap",Fa="requestSentTime",Am="getTraceId",Mm="getTraceFlags",xi="method",xm="errorStatusText",rE="stateChangeAttached",iE="responseText",Yl="responseFinishedTime",Vm="CreateTrackItem",aE="getAllResponseHeaders",Lm="getPartAProps",mf="perfMark",Fm="perfTiming",Ym="ajaxDiagnosticsMessage",$m="correlationContext",Bm="ajaxTotalDuration",Um="eventTraceCtx";function oE(e,t,n){var r=0,i=e[t],a=e[n];return i&&a&&(r=tn(i,a)),r}function Ya(e,t,n,r,i){var a=0,s=oE(n,r,i);return s&&(a=Vi(e,t,bi(s))),a}function Vi(e,t,n){var r="ajaxPerf",i=0;if(e&&t&&n){var a=e[r]=e[r]||{};a[t]=n,i=1}return i}function MV(e,t){var n=e[Fm],r=t[qo]||{},i=0,a="name",s="Start",l="End",c="domainLookup",u="connect",f="redirect",d="request",p="response",h="startTime",m=c+s,v=c+l,_=u+s,g=u+l,S=d+s,C=d+l,A=p+s,V=p+l,z=f+s,b=f=l,I="transferSize",B="encodedBodySize",k="decodedBodySize",P="serverTiming";if(n){i|=Ya(r,f,n,z,b),i|=Ya(r,c,n,m,v),i|=Ya(r,u,n,_,g),i|=Ya(r,d,n,S,C),i|=Ya(r,p,n,A,V),i|=Ya(r,"networkConnect",n,h,g),i|=Ya(r,"sentRequest",n,S,V);var q=n[K0];q||(q=oE(n,h,V)||0),i|=Vi(r,K0,q),i|=Vi(r,"perfTotal",q);var te=n[P];if(te){var E={};oe(te,function(D,j){var x=vu(D[a]||""+j),O=E[x]||{};Me(D,function(re,ue){(re!==a&&ye(ue)||Ls(ue))&&(O[re]&&(ue=O[re]+";"+ue),(ue||!ye(ue))&&(O[re]=ue))}),E[x]=O}),i|=Vi(r,P,E)}i|=Vi(r,I,n[I]),i|=Vi(r,B,n[B]),i|=Vi(r,k,n[k])}else e[mf]&&(i|=Vi(r,"missing",e.perfAttempts));i&&(t[qo]=r)}var xV=function(){function e(){var t=this;t.openDone=!1,t.setRequestHeaderDone=!1,t.sendDone=!1,t.abortDone=!1,t[rE]=!1}return e}(),sE=function(){function e(t,n,r,i){var a=this,s=r,l="responseText";a[mf]=null,a.completed=!1,a.requestHeadersSize=null,a[Dn]=null,a.responseReceivingDuration=null,a.callbackDuration=null,a[Bm]=null,a[Xo]=0,a.pageUrl=null,a[Bn]=null,a.requestSize=0,a[xi]=null,a[Hn]=null,a[Fa]=null,a.responseStartedTime=null,a[Yl]=null,a.callbackFinishedTime=null,a.endTime=null,a.xhrMonitoringState=new xV,a.clientFailure=0,a[Ai]=t,a[Mi]=n,a[Un]=i==null?void 0:i.getTraceFlags(),i?a[Um]={traceId:i[Am](),spanId:i.getSpanId(),traceFlags:i[Mm]()}:a[Um]=null,et(e,a,function(c){c.getAbsoluteUrl=function(){return c[Bn]?rx(c[Bn]):null},c.getPathName=function(){return c[Bn]?Ku(s,ix(c[xi],c[Bn])):null},c[Vm]=function(u,f,d){var p;if(c.ajaxTotalDuration=jg(tn(c.requestSentTime,c.responseFinishedTime)*1e3)/1e3,c[Bm]<0)return null;var h=(p={id:"|"+c[Ai]+"."+c[Mi],target:c[Im](),name:c.getPathName(),type:u,startTime:null,duration:c[Bm],success:+c[Hn]>=200&&+c[Hn]<400,responseCode:+c[Hn]},p[qo]={HttpMethod:c[xi]},p),m=h[qo];if(c[Xo]&&(m[Xo]=!0),c[Fa]&&(h[Jo]=new Date,h[Jo].setTime(c[Fa])),MV(c,h),f&&Ar(c.requestHeaders)[xa]>0&&(m[Dn]=c[Dn]),d){var v=d();if(v){var _=v[$m];if(_&&(h.correlationContext=_),v[pf]&&Ar(v.headerMap)[xa]>0&&(m.responseHeaders=v[pf]),c[xm])if(c[Hn]>=400){var g=v.type;(g===""||g==="text")&&(m.responseText=v.responseText?v[La]+" - "+v[l]:v[La]),g==="json"&&(m.responseText=v.response?v[La]+" - "+JSON.stringify(v.response):v[La])}else c[Hn]===0&&(m.responseText=v[La]||"")}}return h},c[Lm]=function(){var u=null,f=c[Um];if(f&&(f.traceId||f.spanId)){u={};var d=u[un.TraceExt]={traceID:f.traceId,parentID:f.spanId};K(f[Un])||(d[Un]=f[Un])}return u}})}return e.__ieDyn=1,e}(),ht,$l="diagLog",Li="_ajaxData",$a="fetch",Bl="Failed to monitor XMLHttpRequest",lE=", monitoring data for this ajax call ",Zo=lE+"may be incorrect.",cE=lE+"won't be sent.",uE="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",fE="Failed to add custom defined request context as configured call back may missing a null check.",dE="Failed to calculate the duration of the ",hE=0;function VV(){var e=Sn();return!e||K(e.Request)||K(e.Request[Qn])||K(e[$a])?null:e[$a]}function LV(e,t){var n,r=!1;if(Eu()){var i=XMLHttpRequest[Qn];r=!K(i)&&!K(i.open)&&!K(i.send)&&!K(i.abort)}var a=Iy();if(a&&a<9&&(r=!1),r)try{var s=new XMLHttpRequest,l={xh:[],i:(n={},n[t]={},n)};s[Li]=l;var c=XMLHttpRequest[Qn].open;XMLHttpRequest[Qn].open=c}catch(u){r=!1,Ul(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:se(u)})}return r}var es=function(e,t){return e&&t&&e[Li]?(e[Li].i||{})[t]:null},FV=function(e,t,n){if(e){var r=(e[Li]||{}).xh;r&&r.push({n:t,v:n})}},Hm=function(e,t){var n=!1;if(e){var r=(e[Li]||{}).xh;r&&oe(r,function(i){if(i.n===t)return n=!0,-1})}return n};function vf(e,t){var n="";try{var r=es(e,t);r&&r[Bn]&&(n+="(url: '"+r[Bn]+"')")}catch{}return n}function Ul(e,t,n,r,i){Z(e[$l](),1,t,n,r,i)}function zr(e,t,n,r,i){Z(e[$l](),2,t,n,r,i)}function Hl(e,t,n){return function(r){var i;Ul(e,t,n,(i={},i[Ym]=vf(r.inst,e._ajaxDataId),i.exception=se(r.err),i))}}function ts(e,t){return e&&t?jt(e,t):-1}function pE(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){oe(e,function(i,a){if(i.id===r.id)return e.splice(a,1),-1})}}}function mE(e,t,n,r){var i=!0;return oe(t,function(a,s){try{a.fn.call(null,n)===!1&&(i=!1)}catch(l){Z(e&&e.logger,1,64,"Dependency "+r+" [#"+s+"] failed: "+je(l),{exception:se(l)},!0)}}),i}function YV(e,t,n,r,i,a){var s=e[xa],l=!0;if(s>0){var c={core:t,xhr:r,input:i,init:a,traceId:n[Ai],spanId:n[Mi],traceFlags:n[Un],context:n[Fl]||{},aborted:!!n[Xo]};l=mE(t,e,c,"listener"),n[Ai]=c.traceId,n[Mi]=c.spanId,n[Un]=c[Un],n[Fl]=c[Fl]}return l}var _f="*.blob.core.",$V=An([_f+"windows.net",_f+"chinacloudapi.cn",_f+"cloudapi.de",_f+"usgovcloudapi.net"]),BV=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],UV=An((ht={},ht[Q0]=500,ht[Pm]=!1,ht[tE]=!1,ht[Z0]=void 0,ht.disableCorrelationHeaders=!1,ht.distributedTracingMode=1,ht.correlationHeaderExcludedDomains=$V,ht.correlationHeaderDomains=void 0,ht.correlationHeaderExcludePatterns=void 0,ht.appId=void 0,ht.enableCorsCorrelation=!1,ht[Om]=!1,ht[nE]=!1,ht[X0]=!1,ht[J0]=!1,ht.maxAjaxPerfLookupAttempts=3,ht[eE]=25,ht.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],ht.addRequestContext=void 0,ht.addIntEndpoints=!0,ht)),HV=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,a,s,l,c,u,f,d,p,h,m,v,_,g,S,C,A,V,z,b,I,B,k,P,q,te,E,D,j;return et(t,n,function(x,O){var re=O[hf];ue(),x.initialize=function(N,L,W,G){x.isInitialized()||(O.initialize(N,L,W,G),z=Ei(Tn("ajax"),L&&L.evtNamespace&&L.evtNamespace()),ve(N),ie(),T(),y())},x._doTeardown=function(){ue()},x.trackDependencyData=function(N,L){de(k,x[dr],null,N,L)},x[Cm]=function(N,L,W,G){var X=x._currentWindowHost||a;if(YV(B,x[dr],N,G,L,W)){if(L||L===""){if(WS(s,N[Im](),X)){W||(W={});var he=new Headers(W[Va]||(L instanceof Request?L[Va]||{}:{}));if(p){var _e="|"+N[Ai]+"."+N[Mi];he.set(Xe[3],_e),l&&(N[Dn][Xe[3]]=_e)}var Oe=D||f&&f.appId();if(Oe&&(he.set(Xe[0],Xe[2]+Oe),l&&(N[Dn][Xe[0]]=Xe[2]+Oe)),d){var Te=N[Un];K(Te)&&(Te=1);var ze=cS(lS(N[Ai],N[Mi],Te));he.set(Xe[4],ze),l&&(N[Dn][Xe[4]]=ze)}W[Va]=he}return W}else if(G){if(WS(s,N[Im](),X)){if(p)if(Hm(G,Xe[3]))zr(x,71,"Unable to set ["+Xe[3]+"] as it has already been set by another instance");else{var _e="|"+N[Ai]+"."+N[Mi];G[Rm](Xe[3],_e),l&&(N[Dn][Xe[3]]=_e)}var Oe=D||f&&f.appId();if(Oe&&(Hm(G,Xe[0])?zr(x,71,"Unable to set ["+Xe[0]+"] as it has already been set by another instance"):(G[Rm](Xe[0],Xe[2]+Oe),l&&(N[Dn][Xe[0]]=Xe[2]+Oe))),d){var Te=N[Un];if(K(Te)&&(Te=1),Hm(G,Xe[4]))zr(x,71,"Unable to set ["+Xe[4]+"] as it has already been set by another instance");else{var ze=cS(lS(N[Ai],N[Mi],Te));G[Rm](Xe[4],ze),l&&(N[Dn][Xe[4]]=ze)}}}return G}}},x[q0]=function(N,L,W){if(v===-1||u<v){(E===2||E===1)&&typeof N.id=="string"&&N.id[N.id[xa]-1]!=="."&&(N.id+="."),K(N[Jo])&&(N[Jo]=new Date);var G=Ii(N,ya.dataType,ya.envelopeType,x[$l](),L,W);x[dr].track(G)}else u===v&&Ul(x,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++u},x.addDependencyListener=function(N){return pE(B,I++,N)},x.addDependencyInitializer=function(N){return pE(k,I++,N)};function ue(){var N=ir();r=!1,i=!1,j=!1,a=N&&N.host&&N.host[Qo](),s=null,l=!1,c=!1,u=0,f=null,d=!1,p=!1,h=null,m=!1,v=0,_=!1,g={},S=!1,C=!1,A=null,V=null,z=null,I=0,B=[],k=[],b=Tn("ajaxData"),x._ajaxDataId=b,P=null,q=1,te=1,E=1,D=null}function ve(N){x[hf](mt(N,function(L){var W=L.cfg,G=Fn(null,W,x[dr]);s=G.getExtCfg(t.identifier,UV),E=s.distributedTracingMode,l=s[Om],c=s[X0],m=s[J0],v=s[Q0],A=[].concat(s[Z0]||[],s.addIntEndpoints!==!1?BV:[]),V=s.addRequestContext,p=E===0||E===1,d=E===1||E===2,m&&(h=b),S=!!s[Pm],q=s.maxAjaxPerfLookupAttempts,te=s[eE],P=s.ignoreHeaders,D=s.appId}))}function y(){var N=x[dr].getPlugin(ef);N&&(f=N.plugin[Fl])}function M(N){var L=!0;return(N||P)&&oe(P,function(W){if(W[Qo]()===N[Qo]())return L=!1,-1}),L}function T(){var N=VV();if(N){var L=Sn(),W=N.polyfill;x[hf](mt(s,function(){C=!!s[tE],_=s[nE],!C&&!r?(re(Vp(L,$a,{ns:z,req:function(G,X,he){var _e;if(!C&&r&&!w(null,X,he)&&!(W&&i)){var Oe=G.ctx();_e=Je(X,he);var Te=x[Cm](_e,X,he);Te!==he&&G.set(1,Te),Oe.data=_e}},rsp:function(G,X){if(!C){var he=G.ctx().data;he&&(G.rslt=G.rslt.then(function(_e){return ne(G,(_e||{})[Hn],X,_e,he,function(){var Oe,Te=(Oe={statusText:(_e||{})[La],headerMap:null},Oe[$m]=me(_e),Oe);if(_&&_e){var ze={};_e.headers.forEach(function(rt,Ct){M(Ct)&&(ze[Ct]=rt)}),Te[pf]=ze}return Te}),_e}).catch(function(_e){throw ne(G,0,X,null,he,null,{error:_e.message||se(_e)}),_e}))}},hkErr:Hl(x,15,"Failed to monitor Window.fetch"+Zo)},!0,Mg())),r=!0):W&&!j&&(re(Vp(L,$a,{ns:z,req:function(G,X,he){w(null,X,he)}})),j=!0)})),W&&(L[$a].polyfill=W)}}function U(N,L,W){re(JM(N,L,W))}function ie(){LV(x,b)&&x[hf](mt(s,function(){S=!!s[Pm],l=s[Om],!S&&!i&&(U(XMLHttpRequest,"open",{ns:z,req:function(N,L,W,G){if(!S){var X=N.inst,he=es(X,b);!w(X,W)&&H(X,he,!0)&&((!he||!he.xhrMonitoringState.openDone)&&(he=Q(X,L,W,G)),Ee(X,he))}},hkErr:Hl(x,15,Bl+".open"+Zo)}),U(XMLHttpRequest,"send",{ns:z,req:function(N,L){if(!S){var W=N.inst,G=es(W,b);H(W,G)&&!G.xhrMonitoringState.sendDone&&(Ae("xhr",G),G[Fa]=qu(),x[Cm](G,void 0,void 0,W),G.xhrMonitoringState.sendDone=!0)}},hkErr:Hl(x,17,Bl+Zo)}),U(XMLHttpRequest,"abort",{ns:z,req:function(N){if(!S){var L=N.inst,W=es(L,b);H(L,W)&&!W.xhrMonitoringState.abortDone&&(W[Xo]=1,W.xhrMonitoringState.abortDone=!0)}},hkErr:Hl(x,13,Bl+".abort"+Zo)}),U(XMLHttpRequest,"setRequestHeader",{ns:z,req:function(N,L,W){if(!S){var G=N.inst,X=es(G,b);X&&H(G,X)&&(FV(G,L,W),l&&M(L)&&(X[Dn][L]=W))}},hkErr:Hl(x,71,Bl+".setRequestHeader"+Zo)}),i=!0)}))}function w(N,L,W){var G=!1,X=((ye(L)?L:(L||{}).url||"")||"")[Qo]();if(oe(A,function(Oe){var Te=Oe;ye(Oe)&&(Te=new RegExp(Oe)),G||(G=Te.test(X))}),G)return G;var he=ts(X,"?"),_e=ts(X,"#");return(he===-1||_e!==-1&&_e<he)&&(he=_e),he!==-1&&(X=X.substring(0,he)),K(N)?K(L)||(G=(typeof L=="object"?L[ha]===!0:!1)||(W?W[ha]===!0:!1)):G=N[ha]===!0||X[ha]===!0,!G&&X&&jp(X)&&(G=!0),G?g[X]||(g[X]=1):g[X]&&(G=!0),G}function H(N,L,W){var G=!0,X=i;return K(N)||(G=W===!0||!K(L)),X&&G}function Y(){var N=null;return x[dr]&&x[dr].getTraceCtx&&(N=x[dr].getTraceCtx(!1)),!N&&f&&f.telemetryTrace&&(N=zp(f.telemetryTrace)),N}function Q(N,L,W,G){var X,he=Y(),_e=he&&he[Am]()||gi(),Oe=ci(gi(),0,16),Te=N[Li]=N[Li]||{xh:[],i:{}},ze=Te.i=Te.i||{},rt=ze[b]=ze[b]||new sE(_e,Oe,x[$l](),(X=x.core)===null||X===void 0?void 0:X.getTraceCtx());return rt[Un]=he&&he[Mm](),rt[xi]=L,rt[Bn]=W,rt.xhrMonitoringState.openDone=!0,rt[Dn]={},rt.async=G,rt[xm]=c,rt}function Ee(N,L){L.xhrMonitoringState[rE]=Br(N,"readystatechange",function(){var W;try{N&&N.readyState===4&&H(N,L)&&fe(N)}catch(X){var G=se(X);(!G||ts(G[Qo](),"c00c023f")===-1)&&Ul(x,16,Bl+" 'readystatechange' event handler"+Zo,(W={},W[Ym]=vf(N,b),W.exception=G,W))}},z)}function Ye(N){try{var L=N.responseType;if(L===""||L==="text")return N[iE]}catch{}return null}function fe(N){var L=es(N,b);L[Yl]=qu(),L[Hn]=N[Hn];function W(G,X){var he=X||{};he.ajaxDiagnosticsMessage=vf(N,b),G&&(he.exception=se(G)),zr(x,14,dE+"ajax call"+cE,he)}Mt("xmlhttprequest",L,function(){try{var G=L[Vm]("Ajax",l,function(){var Te,ze=(Te={statusText:N[La],headerMap:null},Te[$m]=ce(N),Te.type=N.responseType,Te[iE]=Ye(N),Te.response=N.response,Te);if(_){var rt=N[aE]();if(rt){var Ct=Ze(rt).split(/[\r\n]+/),mr={};oe(Ct,function(vr){var nn=vr.split(": "),fs=nn.shift(),If=nn.join(": ");M(fs)&&(mr[fs]=If)}),ze[pf]=mr}}return ze}),X=void 0;try{V&&(X=V({status:N[Hn],xhr:N}))}catch{zr(x,104,fE)}if(G){X!==void 0&&(G[qo]=zt(zt({},G.properties),X));var he=L[Lm]();de(k,x[dr],L,G,null,he)}else W(null,{requestSentTime:L[Fa],responseFinishedTime:L[Yl]})}finally{try{var _e=N[Li]||{i:{}},Oe=_e.i||{};Oe[b]&&(Oe[b]=null)}catch{}}},function(G){W(G,null)})}function ce(N){var L;try{var W=N[aE]();if(W!==null){var G=ts(W[Qo](),Xe[8]);if(G!==-1){var X=N.getResponseHeader(Xe[0]);return jS(X)}}}catch(he){zr(x,18,uE,(L={},L[Ym]=vf(N,b),L.exception=se(he),L))}}function Ae(N,L){if(L[Bn]&&h&&m){var W=xr();if(W&&Se(W.mark)){hE++;var G=h+N+"#"+hE;W.mark(G);var X=W.getEntriesByName(G);X&&X[xa]===1&&(L[mf]=X[0])}}}function Mt(N,L,W,G){var X=L[mf],he=xr(),_e=q,Oe=te,Te=L[Bn],ze=0;(function rt(){try{if(he&&X){ze++;for(var Ct=null,mr=he.getEntries(),vr=mr[xa]-1;vr>=0;vr--){var nn=mr[vr];if(nn){if(nn.entryType==="resource")nn.initiatorType===N&&(ts(nn.name,Te)!==-1||ts(Te,nn.name)!==-1)&&(Ct=nn);else if(nn.entryType==="mark"&&nn.name===X.name){L[Fm]=Ct;break}if(nn[Jo]<X[Jo]-1e3)break}}}!X||L[Fm]||ze>=_e||L.async===!1?(X&&Se(he.clearMarks)&&he.clearMarks(X.name),L.perfAttempts=ze,W()):En(rt,Oe)}catch(fs){G(fs)}})()}function Je(N,L){var W,G=Y(),X=G&&G[Am]()||gi(),he=ci(gi(),0,16),_e=new sE(X,he,x[$l](),(W=x.core)===null||W===void 0?void 0:W.getTraceCtx());_e[Un]=G&&G[Mm](),_e[Fa]=qu(),_e[xm]=c;var Oe;if(N instanceof Request?Oe=(N||{}).url||"":Oe=N,Oe===""){var Te=ir();Te&&Te.href&&(Oe=Gg(Te.href,"#")[0])}_e[Bn]=Oe;var ze="GET";L&&L[xi]?ze=L[xi]:N&&N instanceof Request&&(ze=N[xi]),_e[xi]=ze;var rt={};if(l){var Ct=new Headers((L?L[Va]:0)||(N instanceof Request?N[Va]||{}:{}));Ct.forEach(function(mr,vr){M(vr)&&(rt[vr]=mr)})}return _e[Dn]=rt,Ae($a,_e),_e}function F(N){var L="";try{K(N)||(typeof N=="string"?L+="(url: '".concat(N,"')"):L+="(url: '".concat(N.url,"')"))}catch(W){Ul(x,15,"Failed to grab failed fetch diagnostics message",{exception:se(W)})}return L}function ne(N,L,W,G,X,he,_e){if(!X)return;function Oe(Te,ze,rt){var Ct=rt||{};Ct.fetchDiagnosticsMessage=F(W),ze&&(Ct.exception=se(ze)),zr(x,Te,dE+"fetch call"+cE,Ct)}X[Yl]=qu(),X[Hn]=L,Mt($a,X,function(){var Te=X[Vm]("Fetch",l,he),ze;try{V&&(ze=V({status:L,request:W,response:G}))}catch{zr(x,104,fE)}if(Te){ze!==void 0&&(Te[qo]=zt(zt({},Te.properties),ze));var rt=X[Lm]();de(k,x[dr],X,Te,null,rt)}else Oe(14,null,{requestSentTime:X[Fa],responseFinishedTime:X[Yl]})},function(Te){Oe(18,Te,null)})}function me(N){if(N&&N[Va])try{var L=N[Va].get(Xe[0]);return jS(L)}catch(W){zr(x,18,uE,{fetchDiagnosticsMessage:F(N),exception:se(W)})}}function de(N,L,W,G,X,he){var _e=!0,Oe=N[xa];if(Oe>0){var Te={item:G,properties:X,sysProperties:he,context:W?W[Fl]:null,aborted:W?!!W[Xo]:!1};_e=mE(L,N,Te,"initializer")}_e&&x[q0](G,X,he)}}),n}return t.prototype.processTelemetry=function(n,r){this.processNext(n,r)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Oo),GV=function(){function e(){}return e}(),WV=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),jV="3.3.7",zV=function(){function e(t,n){var r=this,i=mt(t,function(){var a=t.sdkExtension;r.sdkVersion=(a?a+"_":"")+"javascript:"+jV});n&&n.add(i)}return e}(),KV=function(){function e(){}return e}(),gf="session",yf="sessionManager",Sf="isUserCookieSet",Ef="isNewUser",Gm="getTraceCtx",Wm="telemetryTrace",vE="applySessionContext",_E="applyApplicationContext",gE="applyOperationContext",yE="applyOperatingSystemContxt",SE="applyLocationContext",EE="applyInternalContext",Tf="getSessionId",TE="sessionCookiePostfix",Ba="automaticSession",ns="accountId",rs="authenticatedId",Gl="acquisitionDate",Nf="renewalDate",Wl="cookieSeparator",jm="authUserCookieName",qV="ai_session",XV=864e5,JV=18e5,QV=6e4,NE=function(){function e(){}return e}(),ZV=function(){function e(t,n,r){var i=this,a,s,l=la(n),c=pp(n),u,f;et(e,i,function(d){t||(t={});var p=mt(t,function(S){u=t.sessionExpirationMs||XV,f=t.sessionRenewalMs||JV;var C=t[TE]||t.namePrefix||"";a=qV+C});r&&r.add(p),d[Ba]=new NE,d.update=function(){var S=Mn(),C=!1,A=d[Ba];if(A.id||(C=!h(A)),!C&&u>0){var V=S-A[Gl],z=S-A[Nf];C=V<0||z<0,C=C||V>u,C=C||z>f}C?v(S):(!s||S-s>QV)&&_(A,S)},d.backup=function(){var S=d[Ba];g(S.id,S[Gl],S[Nf])};function h(S,C){var A=!1,V=c.get(a);if(V&&Se(V.split))A=m(S,V);else{var z=KS(l,a);z&&(A=m(S,z))}return A||!!S.id}function m(S,C){var A=!1,V=", session will be reset",z=C.split("|");if(z.length>=2)try{var b=+z[1]||0,I=+z[2]||0;isNaN(b)||b<=0?Z(l,2,27,"AI session acquisition date is 0"+V):isNaN(I)||I<=0?Z(l,2,27,"AI session renewal date is 0"+V):z[0]&&(S.id=z[0],S[Gl]=b,S[Nf]=I,A=!0)}catch(B){Z(l,1,9,"Error parsing ai_session value ["+(C||"")+"]"+V+" - "+je(B),{exception:se(B)})}return A}function v(S){var C=t.getNewId||ep;d[Ba].id=C(t.idLength||22),d[Ba][Gl]=S,_(d[Ba],S),Ju()||Z(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function _(S,C){var A=S[Gl];S[Nf]=C;var V=f,z=A+u-C,b=[S.id,A,C],I=0;z<V?I=z/1e3:I=V/1e3;var B=t.cookieDomain||null;c.set(a,b.join("|"),u>0?I:null,B),s=C}function g(S,C,A){qS(l,a,[S,C,A].join("|"))}})}return e.__ieDyn=1,e}(),eL=function(){function e(t,n,r,i){var a=this;a.traceID=t||gi(),a.parentID=n;var s=ir();!r&&s&&s.pathname&&(r=s.pathname),a.name=Et(i,r)}return e}();function wE(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var tL=function(){function e(t,n,r){this.isNewUser=!1,this.isUserCookieSet=!1;var i=la(n),a=pp(n),s;et(e,this,function(l){Le(l,"config",{g:function(){return t}});var c=mt(t,function(){var p=t.userCookiePostfix||"";s=e.userCookieName+p;var h=a.get(s);if(h){l[Ef]=!1;var m=h.split(e[Wl]);m.length>0&&(l.id=m[0],l[Sf]=!!l.id)}if(!l.id){l.id=u();var v=f(l.id);d(v.join(e[Wl]));var _=(t.namePrefix||"")+"ai_session";dx(i,_)}l[ns]=t[ns]||void 0;var g=a.get(e[jm]);if(g){g=decodeURI(g);var S=g.split(e[Wl]);S[0]&&(l[rs]=S[0]),S.length>1&&S[1]&&(l[ns]=S[1])}});r&&r.add(c);function u(){var p=t||{},h=p.getNewId||ep,m=h(p.idLength?t.idLength:22);return m}function f(p){var h=bo(new Date);l.accountAcquisitionDate=h,l[Ef]=!0;var m=[p,h];return m}function d(p){var h=31536e3;l[Sf]=a.set(s,p,h)}l.setAuthenticatedUserContext=function(p,h,m){m===void 0&&(m=!1);var v=!wE(p)||h&&!wE(h);if(v){Z(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}l[rs]=p;var _=l[rs];h&&(l[ns]=h,_=[l[rs],l.accountId].join(e[Wl])),m&&a.set(e[jm],encodeURI(_))},l.clearAuthenticatedUserContext=function(){l[rs]=null,l[ns]=null,a.del(e[jm])},l.update=function(p){if(l.id!==p||!l[Sf]){var h=p||u(),m=f(h);d(m.join(e[Wl]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),wf="ext",bf="tags";function is(e,t){e&&e[t]&&Ar(e[t]).length===0&&delete e[t]}function bE(){return null}var nL=function(){function e(t,n,r,i){var a=this,s=t.logger;et(e,this,function(l){if(l.appId=bE,l[Tf]=bE,l.application=new GV,l.internal=new zV(n,i),Hc()){l[yf]=new ZV(n,t,i),l.device=new WV,l.location=new KV,l.user=new tL(n,t,i);var c=void 0,u=void 0,f;r&&(c=r.getTraceId(),u=r.getSpanId(),f=r.getName()),l[Wm]=new eL(c,u,f,s),l[gf]=new NE}l[Tf]=function(){var d=l[gf],p=null;if(d&&ye(d.id))p=d.id;else{var h=(l[yf]||{})[Ba];p=h&&ye(h.id)?h.id:null}return p},l[vE]=function(d,p){Qe(qt(d.ext,un.AppExt),"sesId",l[Tf](),ye)},l[yE]=function(d,p){Qe(d.ext,un.OSExt,l.os)},l[_E]=function(d,p){var h=l.application;if(h){var m=qt(d,bf);Qe(m,tt.applicationVersion,h.ver,ye),Qe(m,tt.applicationBuild,h.build,ye)}},l.applyDeviceContext=function(d,p){var h=l.device;if(h){var m=qt(qt(d,wf),un.DeviceExt);Qe(m,"localId",h.id,ye),Qe(m,"ip",h.ip,ye),Qe(m,"model",h.model,ye),Qe(m,"deviceClass",h.deviceClass,ye)}},l[EE]=function(d,p){var h=l.internal;if(h){var m=qt(d,bf);Qe(m,tt.internalAgentVersion,h.agentVersion,ye),Qe(m,tt.internalSdkVersion,Et(s,h.sdkVersion,64),ye),(d.baseType===ll.dataType||d.baseType===Di.dataType)&&(Qe(m,tt.internalSnippet,h.snippetVer,ye),Qe(m,tt.internalSdkSrc,h.sdkSrc,ye))}},l[SE]=function(d,p){var h=a.location;h&&Qe(qt(d,bf,[]),tt.locationIp,h.ip,ye)},l[gE]=function(d,p){var h=l[Wm];if(h){var m=qt(qt(d,wf),un.TraceExt,{traceID:void 0,parentID:void 0});Qe(m,"traceID",h.traceID,ye,K),Qe(m,"name",h.name,ye,K),Qe(m,"parentID",h.parentID,ye,K)}},l.applyWebContext=function(d,p){var h=a.web;h&&Qe(qt(d,wf),un.WebExt,h)},l.applyUserContext=function(d,p){var h=l.user;if(h){var m=qt(d,bf,[]);Qe(m,tt.userAccountId,h[ns],ye);var v=qt(qt(d,wf),un.UserExt);Qe(v,"id",h.id,ye),Qe(v,"authId",h[rs],ye)}},l.cleanUp=function(d,p){var h=d.ext;h&&(is(h,un.DeviceExt),is(h,un.UserExt),is(h,un.WebExt),is(h,un.OSExt),is(h,un.AppExt),is(h,un.TraceExt))}})}return e.__ieDyn=1,e}(),Fi,zm,as=null,rL=Fs((Fi={accountId:as,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:as,sdkExtension:as,isBrowserLinkTrackingEnabled:!1,appId:as},Fi[Tf]=as,Fi.namePrefix=zm,Fi[TE]=zm,Fi.userCookiePostfix=zm,Fi.idLength=22,Fi.getNewId=as,Fi)),iL=function(e){Lr(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=ef;var r,i,a,s,l;return et(t,n,function(c,u){f(),Le(c,"context",{g:function(){return s}}),c.initialize=function(h,m,v,_){u.initialize(h,m,v,_),d(h)},c.processTelemetry=function(h,m){if(!K(h)){m=c._getTelCtx(m),h.name===Di.envelopeType&&m.diagLog().resetInternalMessageCount();var v=s||{};v[gf]&&typeof s[gf].id!="string"&&v[yf]&&v[yf].update();var _=v.user;if(_&&!_[Sf]&&_.update(v.user.id),p(h,m),_&&_[Ef]&&(_[Ef]=!1,!l)){var g=new ll(72,(Jn()||{}).userAgent||"");tM(m.diagLog(),1,g)}c.processNext(h,m)}},c._doTeardown=function(h,m){var v=(h||{}).core();if(v&&v[Gm]){var _=v[Gm](!1);_===i&&v.setTraceCtx(a)}f()};function f(){r=null,i=null,a=null,s=null,l=!0}function d(h){var m=c.identifier,v=c.core;c._addHook(mt(h,function(){var _=Fn(null,h,v);h.storagePrefix&&Xp(h.storagePrefix),l=h.disableUserInitMessage!==!1,r=_.getExtCfg(m,rL),c._extConfig=r})),a=v[Gm](!1),s=new nL(v,r,a,c._unloadHooks),i=zp(c.context[Wm],a),v.setTraceCtx(i),c.context.appId=function(){var _=v.getPlugin(h0);return _?_.plugin._appId:null}}function p(h,m){qt(h,"tags",[]),qt(h,"ext",{});var v=c.context;v[vE](h,m),v[_E](h,m),v.applyDeviceContext(h,m),v[gE](h,m),v.applyUserContext(h,m),v[yE](h,m),v.applyWebContext(h,m),v[SE](h,m),v[EE](h,m),v.cleanUp(h,m)}}),n}return t.__ieDyn=1,t}(Oo),DE="AuthenticatedUserContext",os="track",Km="snippet",aL="getCookieMgr",oL="startTrackPage",sL="stopTrackPage",qm="flush",lL="startTrackEvent",cL="stopTrackEvent",uL="addTelemetryInitializer",kE="pollInternalLogs",Xm="getPlugin",Jm="evtNamespace",fL=os+"Event",dL=os+"Trace",hL=os+"Metric",pL=os+"PageView",mL=os+"Exception",vL=os+"DependencyData",_L="set"+DE,gL="clear"+DE,yL="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Df="connectionString",Qm="version",Ua="queue",jl="instrumentationKey",ss="userOverrideEndpointUrl",Zm="endpointUrl",zl="onunloadFlush",kn="context",CE="addHousekeepingBeforeUnload",ev="sendMessage",SL="updateSnippetDefinitions",hr,ls,cs,tv,Kl,IE=[Km,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],RE="iKeyUsage",OE="CdnUsage",PE="SdkLoaderVer",EL="zipPayload",kf=void 0,TL={samplingRate:100,maxSendNumber:1},NL={monthInterval:3,daysOfMonth:[28]},Cf={disabled:!0,limit:Ln(TL),interval:Ln(NL)},wL=(hr={},hr[Df]=kf,hr.endpointUrl=kf,hr[jl]=kf,hr[ss]=kf,hr.diagnosticLogInterval=Du(bL,1e4),hr.featureOptIn=(ls={},ls[RE]={mode:3},ls[OE]={mode:2},ls[PE]={mode:2},ls[EL]={mode:1},ls),hr.throttleMgrCfg=Ln((cs={},cs[109]=Ln(Cf),cs[106]=Ln(Cf),cs[111]=Ln(Cf),cs[110]=Ln(Cf),cs)),hr.extensionConfig=Ln((tv={},tv.AppInsightsCfgSyncPlugin=Ln({cfgUrl:yL,syncMode:2}),tv)),hr);function bL(e){return e&&e>0}function AE(e,t){return Js(function(n,r){cn(t,function(i){var a=i&&i.value,s=null;!i.rejected&&a&&(e[Df]=a,s=QS(a)),n(s)})})}var DL=function(){function e(t){var n=this,r,i,a,s,l,c,u,f,d,p,h,m,v,_;et(e,this,function(g){A(),Le(g,"config",{g:function(){return f}}),oe(["pluginVersionStringArr","pluginVersionString"],function(b){Le(g,b,{g:function(){return u?u[b]:null}})}),s=""+(t.sv||t[Qm]||""),t[Ua]=t[Ua]||[],t[Qm]=t[Qm]||2;var S=Nn(t.config||{},wL);f=S.cfg,d=new aV,Le(g,"appInsights",{g:function(){return d}}),i=new iL,r=new HV,a=new AV,u=new xM,Le(g,"core",{g:function(){return u}}),z(mt(S,function(){var b=f[Df];if(si(b)){var I=Js(function(q,te){cn(AE(f,b),function(E){if(E.rejected)q(null);else{var D=f[jl],j=E.value;D=j&&j.instrumentationkey||D,q(D)}})}),B=f[ss];K(B)&&(B=Js(function(q,te){cn(AE(f,b),function(E){if(E.rejected)q(null);else{var D=f[Zm],j=E.value,x=j&&j.ingestionendpoint;D=x?x+Ao:D,q(D)}})})),f[jl]=I,f[Zm]=B}if(ye(b)&&b){var k=QS(b),P=k.ingestionendpoint;f.endpointUrl=f[ss]?f[ss]:P+Ao,f[jl]=k.instrumentationkey||f[jl]}f.endpointUrl=f[ss]?f[ss]:f[Zm]})),g[Km]=t,g[qm]=function(b,I){b===void 0&&(b=!0);var B;return xu(u,function(){return"AISKU.flush"},function(){b&&!I&&(B=pi(function(q){I=q}));var k=1,P=function(){k--,k===0&&I()};oe(u.getChannels(),function(q){q&&(k++,q[qm](b,P))}),P()},null,b),B},g[zl]=function(b){b===void 0&&(b=!0),oe(u.getChannels(),function(I){I[zl]?I[zl]():I[qm](b)})},g.loadAppInsights=function(b,I,B){b===void 0&&(b=!1),b&&sP("Legacy Mode is no longer supported");function k(P){if(P){var q="";K(s)||(q+=s),g[kn]&&g[kn].internal&&(g[kn].internal.snippetVer=q||"-"),Me(g,function(te,E){ye(te)&&!Se(E)&&te&&te[0]!=="_"&&Ft(IE,te)===-1&&P[te]!==E&&(P[te]=E)})}}return xu(g.core,function(){return"AISKU.loadAppInsights"},function(){u.initialize(f,[a,i,r,d,p],I,B),Le(g,"context",{g:function(){return i[kn]}}),h||(h=new px(u));var P=kL();P&&g[kn]&&(g[kn].internal.sdkSrc=P),k(g[Km]),g.emptyQueue(),g[kE](),g[CE](g),z(mt(S,function(){var q=!1;f.throttleMgrCfg[109]&&(q=!f.throttleMgrCfg[109].disabled),!h.isReady()&&f.extensionConfig&&f.extensionConfig[p.identifier]&&q&&h.onReadyState(!0),!m&&!f[Df]&&gu(RE,f,!0)&&(h[ev](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),m=!0),!v&&g[kn].internal.sdkSrc&&g[kn].internal.sdkSrc.indexOf("az416426")!=-1&&gu(OE,f,!0)&&(h[ev](110,"See Cdn support notice at aka.ms/JsActiveCdn"),v=!0),!_&&parseInt(s)<6&&gu(PE,f,!0)&&(h[ev](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),_=!0)}))}),g},g[SL]=function(b){rA(b,g,function(I){return I&&Ft(IE,I)===-1})},g.emptyQueue=function(){try{if(ke(g.snippet[Ua])){for(var b=g.snippet[Ua].length,I=0;I<b;I++){var B=g.snippet[Ua][I];B()}g.snippet[Ua]=void 0,delete g.snippet[Ua]}}catch(P){var k={};P&&Se(P.toString)&&(k.exception=P.toString())}},g[CE]=function(b){if(Hc()||Pg()){var I=function(){if(b[zl](!1),Se(g.core[Xm])){var k=n.core[Xm](ef);if(k){var P=k.plugin;P&&P[kn]&&P[kn]._sessionManager&&P[kn]._sessionManager.backup()}}},B=!1;c||(c=Ei(l,u[Jm]&&u[Jm]())),z(mt(f,function(k){var P=k.cfg,q=b.appInsights,te=Fn(null,P,q.core),E=te.getExtCfg(q.identifier||p0);V();var D=P.disablePageUnloadEvents;E.disableFlushOnBeforeUnload||(zM(I,D,c)&&(B=!0),Pp(I,D,c)&&(B=!0),!B&&!TA()&&Z(u.logger,1,19,"Could not add handler for beforeunload and pagehide")),!B&&!E.disableFlushOnUnload&&Pp(I,D,c)}))}},g.getSender=function(){return a},g.unload=function(b,I,B){var k=!1,P;b&&!I&&(P=pi(function(te){I=te}));function q(te){k||(k=!0,A(),I&&I(te))}return g[zl](b),V(),u.unload&&u.unload(b,q,B),P},Zs(g,d,[aL,fL,pL,"trackPageViewPerformance",mL,"_onerror",dL,hL,oL,sL,lL,cL]),Zs(g,C,[vL,"addDependencyListener","addDependencyInitializer"]),Zs(g,u,[uL,kE,"stopPollingInternalLogs",Xm,"addPlugin",Jm,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),Zs(g,function(){var b=i[kn];return b?b.user:null},[_L,gL]);function C(){return r}function A(){l=Tn("AISKU"),c=null,r=null,i=null,a=null,s=null,h=null,m=!1,v=!1,_=!1,p=new hV}function V(){c&&(KM(null,c),qM(null,c))}function z(b){u.addUnloadHook(b)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function kL(){if(Kl)return Kl;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var r=(document||{}).currentScript;r&&(e=r.src)}catch{}if(e){try{var i=e.toLowerCase();if(i){var a="";oe(n,function(s,l){if(jt(i,s)!==-1)return a="cdn"+(l+1),jt(i,"/scripts/")===-1&&(jt(i,"/next/")!==-1?a+="-next":jt(i,"/beta/")!==-1&&(a+="-beta")),Kl=a+(t?".mod":""),-1})}}catch{}Kl=e}return Kl}function ME(e){const t=new DL({config:{instrumentationKey:e,enableAutoRouteTracking:!1}});return t.loadAppInsights(),t}const CL={install:function(e,t){const n=ME(t.instrumentationKey),r=new gO(t.loggingLevel,n);As.register(r)}};var pr=(e=>(e[e.ApplicationStart=0]="ApplicationStart",e[e.PageView=1]="PageView",e[e.Search=2]="Search",e[e.Sort=3]="Sort",e))(pr||{});function IL(e){return e?`Field:'${e.SortField??"unspecified"}' Direction:'${e.SortDirection??"unspecified"}'`:"Sort: unspecified"}function RL(e){return!e||e.length===0?["No filters applied"]:e.sort(t=>t.displayPosition).map(t=>t.summariseStateAsText())}class OL{constructor(t){this.eventsToLog=t}trackPageView(t){this.eventShouldBeRecorded(pr.PageView)&&this.recordEvent("Page view",t)}trackSearch(t){if(this.eventShouldBeRecorded(pr.Search)){const n=RL(t);this.recordEvent("Search",n)}}trackSort(t){if(this.eventShouldBeRecorded(pr.Sort)){const n=IL(t);this.recordEvent("Sort",n)}}trackApplicationStart(){this.eventShouldBeRecorded(pr.ApplicationStart)&&this.recordEvent("Application start")}recordEvent(t,n){console.log(`${t}:`,n??"")}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const PL={install:function(e,t){const n=new OL(t.eventsToLog);e.config.globalProperties.$router.afterEach(i=>{var a;n.trackPageView({name:(a=i.name)==null?void 0:a.toString(),uri:i.fullPath})}),Qa.register(n)}};class AL{constructor(t,n){this.eventsToLog=t,this.appInsights=n}trackPageView(t){this.eventShouldBeRecorded(pr.PageView)&&this.appInsights.trackPageView()}trackSearch(t){if(this.eventShouldBeRecorded(pr.Search)){const n=t.map(i=>i.summariseStateAsObject()),r=t.map(i=>i.summariseStateAsText());this.appInsights.trackEvent({name:"Search",properties:{stateObject:n,stateText:r}})}}trackSort(t){this.eventShouldBeRecorded(pr.Sort)&&this.appInsights.trackEvent({name:"Sort",properties:{sortState:t}})}trackApplicationStart(){this.eventShouldBeRecorded(pr.ApplicationStart)&&this.appInsights.trackEvent({name:"Application start"})}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const ML={install:function(e,t){const n=ME(t.instrumentationKey),r=new AL(t.eventsToLog,n),i=a=>{var l;const s=(l=a.name)==null?void 0:l.valueOf();r.trackPageView({name:s,uri:a.path})};Ps.add({priority:fg.Low,action:i}),Qa.register(r)}};Ke.CapeApplicationInsightsAnalyticsPlugin=ML,Ke.CapeApplicationInsightsLoggingPlugin=CL,Ke.CapeConsoleAnalyticsPlugin=PL,Ke.CapeConsoleLoggingPlugin=_O,Ke.CapeEvent=pr,Ke.CapeLogger=As,Ke.CapePlugin=pg,Ke.Filter=Qf,Ke.LoggingLevel=Qt,Ke.createCapeApp=mO,Ke.useDatasetStore=ti,Ke.useFieldStore=Za,Ke.useFilterStore=_t,Ke.usePropertyStore=It,Ke.useRecordStore=Sr,Ke.useSearchResultsStore=Bt,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})});
62
+ */var Mf="Promise",S_="rejected";function Yn(e,t){return wS(e,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:S_,rejected:!0,reason:n}):n})}function wS(e,t,n,i){var o=e;try{if(Ji(e))(t||n)&&(o=e.then(t,n));else try{t&&(o=t(e))}catch(s){if(n)o=n(s);else throw s}}finally{}return o}var ES=["pending","resolving","resolved",S_],TS="dispatchEvent",Af;function UM(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}function zM(e,t,n,i){var o=on();!Af&&(Af=Kn(!!Ot(UM,[o]).v));var s=Af.v?o.createEvent("Event"):i?new Event(t):{};if(n&&n(s),Af.v&&s.initEvent(t,!1,!0),s&&e[TS])e[TS](s);else{var c=e["on"+t];if(c)c(s);else{var f=Ct("console");f&&(f.error||f.log)(t,Te(s))}}}var bS="unhandledRejection",HM=bS.toLowerCase(),NS=[],WM=0,ZM=10,w_;function kS(e){return Le(e)?e.toString():Te(e)}function CS(e,t,n){var i=vf(arguments,3),o=0,s=!1,c,f=[],d=WM++,p=!1,_=null,v;function y(z,G){try{NS.push(d),p=!0,_&&_.cancel(),_=null;var oe=e(function(R,F){f.push(function(){try{var Q=o===2?z:G,A=It(Q)?c:Le(Q)?Q(c):Q;Ji(A)?A.then(R,F):Q?R(A):o===3?F(A):R(A)}catch(B){F(B)}}),s&&T()},i);return oe}finally{NS.pop()}}function g(z){return y(void 0,z)}function E(z){var G=z,oe=z;return Le(z)&&(G=function(R){return z&&z(),R},oe=function(R){throw z&&z(),R}),y(G,oe)}function w(){return ES[o]}function T(){if(f.length>0){var z=f.slice();f=[],p=!0,_&&_.cancel(),_=null,t(z)}}function b(z,G){return function(oe){if(o===G){if(z===2&&Ji(oe)){o=1,oe.then(b(2,1),b(3,1));return}o=z,s=!0,c=oe,T(),!p&&z===3&&!_&&(_=Jn(C,ZM))}}}function C(){if(!p)if(p=!0,nM())process.emit(bS,c,v);else{var z=Vn()||Xn();!w_&&(w_=Kn(Ot(Ct,[Mf+"RejectionEvent"]).v)),zM(z,HM,function(G){return tt(G,"promise",{g:function(){return v}}),G.reason=c,G},!!w_.v)}}v={then:y,catch:g,finally:E},vi(v,"state",{get:w}),iM()&&(v[Yp(11)]="IPromise");function M(){return"IPromise "+w()+(s?" - "+kS(c):"")}return v.toString=M,function(){Le(n)||Ir(Mf+": executor is not a function - "+kS(n));var G=b(3,0);try{n.call(v,b(2,0),G)}catch(oe){G(oe)}}(),v}function GM(e){return function(t){var n=vf(arguments,1);return e(function(i,o){try{var s=[],c=1;zp(t,function(f,d){f&&(c++,wS(f,function(p){s[d]=p,--c===0&&i(s)},o))}),c--,c===0&&i(s)}catch(f){o(f)}},n)}}function jM(e){return Kn(function(t){var n=vf(arguments,1);return e(function(i,o){var s=[],c=1;function f(d,p){c++,Yn(d,function(_){_.rejected?s[p]={status:S_,reason:_.reason}:s[p]={status:"fulfilled",value:_.value},--c===0&&i(s)})}try{$e(t)?Se(t,f):W0(t)?zp(t,f):Ir("Input is not an iterable"),c--,c===0&&i(s)}catch(d){o(d)}},n)})}function PS(e){Se(e,function(t){try{t()}catch{}})}function qM(e){var t=jl(e)?e:0;return function(n){Jn(function(){PS(n)},t)}}function DS(e,t){return CS(DS,qM(t),e,t)}var E_;function KM(e,t){!E_&&(E_=Kn(Ot(Ct,[Mf]).v||null));var n=E_.v;if(!n)return DS(e);Le(e)||Ir(Mf+": executor is not a function - "+Te(e));var i=0;function o(){return ES[i]}var s=new n(function(c,f){function d(_){i=2,c(_)}function p(_){i=3,f(_)}e(d,p)});return vi(s,"state",{get:o}),s}var T_;function lc(e){return CS(lc,PS,e)}function XM(e,t){return!T_&&(T_=jM(lc)),T_.v(e,t)}var b_;function oo(e,t){return!b_&&(b_=Kn(KM)),b_.v.call(this,e,t)}var JM=GM(oo),Fr=void 0,rt="",Es="channels",Qt="core",N_="createPerfMgr",k_="disabled",Ts="extensionConfig",bs="extensions",Yr="processTelemetry",Bf="priority",Vf="eventsSent",cc="eventsDiscarded",Ff="eventsSendRequest",ea="perfEvent",C_="offlineEventsStored",P_="offlineBatchSent",D_="offlineBatchDrop",Yf="getPerfMgr",x_="domain",O_="path",QM="Not dynamic - ",eA="getPrototypeOf",tA=/-([a-z])/g,nA=/([^\w\d_$])/g,rA=/^(\d+[\w\d_$])/,iA=Object[eA];function ta(e){return!ce(e)}function $f(e){var t=e;return t&&Re(t)&&(t=t[Qo](tA,function(n,i){return i.toUpperCase()}),t=t[Qo](nA,"_"),t=t[Qo](rA,function(n,i){return"_"+i})),t}function hn(e,t){return e&&t?wn(e,t)!==-1:!1}function Ns(e){return e&&e.toISOString()||""}function ft(e){return Op(e)?e[jo]:rt}function gt(e,t,n,i,o){var s=n;return e&&(s=e[t],s!==n&&(!o||o(s))&&(!i||i(n))&&(s=n,e[t]=s)),s}function bn(e,t,n){var i;return e?(i=e[t],!i&&ce(i)&&(i=It(n)?{}:n,e[t]=i)):i=It(n)?{}:n,i}function xS(e,t){var n=null,i=null;return Le(e)?n=e:i=e,function(){var o=arguments;if(n&&(i=n()),i)return i[t][Zo](i,o)}}function oA(e,t,n){if(e&&t&&On(e)&&On(t)){var i=function(s){if(Re(s)){var c=t[s];Le(c)?(!n||n(s,!0,t,e))&&(e[s]=xS(t,s)):(!n||n(s,!1,t,e))&&(Qi(e,s)&&delete e[s],tt(e,s,{g:function(){return t[s]},s:function(f){t[s]=f}}))}};for(var o in t)i(o)}return e}function Uf(e,t,n,i,o){e&&t&&n&&(e[t]=xS(n,i))}function uc(e,t,n,i){return e&&t&&On(e)&&$e(n)&&Se(n,function(o){Re(o)&&Uf(e,o,t,o)}),e}function aA(e){return function(){function t(){var n=this;e&&Xe(e,function(i,o){n[i]=o})}return t}()}function OS(e){return e&&Rp&&(e=d_(Rp({},e))),e}function IS(e,t,n,i,o,s){var c=arguments,f=c[0]||{},d=c[Ve],p=!1,_=1;for(d>0&&x0(f)&&(p=f,f=c[_]||{},_++),On(f)||(f={});_<d;_++){var v=c[_],y=$e(v),g=On(v);for(var E in v){var w=y&&E in v||g&&Qi(v,E);if(w){var T=v[E],b=void 0;if(p&&T&&((b=$e(T))||Sn(T))){var C=f[E];b?$e(C)||(C=[]):Sn(C)||(C={}),T=IS(p,C,T)}T!==void 0&&(f[E]=T)}}}return f}function zf(e,t,n){var i=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&i){var o=i.mode;if(o===3)return!0;if(o===2)return!1}return n}function Hf(e){try{return e.responseText}catch{}return null}function RS(e,t){return e?"XDomainRequest,Response:"+Hf(e)||"":t}function Wf(e,t){return e?"XMLHttpRequest,Status:"+e[Ni]+",Response:"+Hf(e)||e.response||"":t}function LS(e,t){return t&&(jl(t)?e=[t].concat(e):$e(t)&&(e=t.concat(e))),e}var sA="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",MS="withCredentials",lA="timeout";function cA(e,t,n,i,o,s){o===void 0&&(o=!1);function c(d,p,_){try{d[p]=_}catch{}}var f=new XMLHttpRequest;return c(f,sA,i),n&&c(f,MS,n),f.open(e,t,!o),n&&c(f,MS,n),!o&&s&&c(f,lA,s),f}function uA(e){var t={};if(Re(e)){var n=yt(e)[ys](/[\r\n]+/);Se(n,function(i){if(i){var o=i[YM](": ");if(o!==-1){var s=yt(i.substring(0,o))[ms](),c=yt(i.substring(o+1));t[s]=c}else t[yt(i)]=1}})}return t}function I_(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var i=t.getResponseHeader(n);i&&(e[n]=yt(i))}return e}var fA="kill-duration",dA="kill-duration-seconds",hA="time-delta-millis";function R_(e,t){var n={};return e[yS]?n=uA(e[yS]()):t&&(n=I_(n,e,hA),n=I_(n,e,fA),n=I_(n,e,dA)),n}var pA="documentMode",_A="location",mA="console",AS="JSON",vA="crypto",gA="msCrypto",yA="ReactNative",L_="msie",M_="trident/",BS="XMLHttpRequest",A_=null,B_=null,SA=!1,ks=null,V_=null;function VS(e,t){var n=!1;if(e){try{if(n=t in e,!n){var i=e[Mr];i&&(n=t in i)}}catch{}if(!n)try{var o=new e;n=!It(o[t])}catch{}}return n}function $r(e){if(e&&SA){var t=Ct("__mockLocation");if(t)return t}return typeof location===fS&&location?location:Ct(_A)}function wA(){return typeof console!==f_?console:Ct(mA)}function fc(){return!!(typeof JSON===fS&&JSON||Ct(AS)!==null)}function vr(){return fc()?JSON||Ct(AS):null}function EA(){return Ct(vA)}function TA(){return Ct(gA)}function bA(){var e=Lr();return e&&e.product?e.product===yA:!1}function F_(){var e=Lr();if(e&&(e[__]!==B_||A_===null)){B_=e[__];var t=(B_||rt)[ms]();A_=hn(t,L_)||hn(t,M_)}return A_}function FS(e){if(e===void 0&&(e=null),!e){var t=Lr()||{};e=t?(t.userAgent||rt)[ms]():rt}var n=(e||rt)[ms]();if(hn(n,L_)){var i=on()||{};return Kl(parseInt(n[ys](L_)[1]),i[pA]||0)}else if(hn(n,M_)){var o=parseInt(n[ys](M_)[1]);if(o)return o+4}return null}function dc(e){return(V_===null||e===!1)&&(V_=eM()&&!!Lr().sendBeacon),V_}function Y_(e){var t=!1;try{t=!!Ct("fetch");var n=Ct("Request");t&&e&&n&&(t=VS(n,"keepalive"))}catch{}return t}function NA(){return ks===null&&(ks=typeof XDomainRequest!==f_,ks&&Zf()&&(ks=ks&&!VS(Ct(BS),"withCredentials"))),ks}function Zf(){var e=!1;try{var t=Ct(BS);e=!!t}catch{}return e}function kA(e,t){return e&&e.dispatchEvent&&t?(e.dispatchEvent(t),!0):!1}function CA(e,t){var n=null,i={detail:t||null};if(Le(CustomEvent))n=new CustomEvent(e,i);else{var o=on();o&&o.createEvent&&(n=o.createEvent("CustomEvent"),n.initCustomEvent(e,!0,!0,i))}return n}function PA(e,t,n){var i=Xn();if(i&&i.CustomEvent)try{var o={cfg:t||null,customDetails:n||null};return kA(i,CA(e,o))}catch{}return!1}var YS=4294967296,ao=4294967295,$S=123456789,US=987654321,zS=!1,hc=$S,pc=US;function DA(e){e<0&&(e>>>=0),hc=$S+e&ao,pc=US-e&ao,zS=!0}function xA(){try{var e=_r()&2147483647;DA((Math.random()*YS^e)+e)}catch{}}function OA(e){return Fn(_c()/ao*(e+1))>>>0}function _c(e){var t=0,n=EA()||TA();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&ao),t===0&&F_()&&(zS||xA(),t=IA()&ao),t===0&&(t=Fn(YS*Math.random()|0)),t>>>=0,t}function IA(e){pc=36969*(pc&65535)+(pc>>16)&ao,hc=18e3*(hc&65535)+(hc>>16)&ao;var t=(pc<<16)+(hc&65535)>>>0&ao|0;return t>>>=0,t}function $_(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=_c()>>>0,i=0,o=rt;o[Ve]<e;)i++,o+=t.charAt(n&63),n>>>=6,i===5&&(n=(_c()<<2&4294967295|n&3)>>>0,i=0);return o}var HS="3.3.7",RA="."+$_(6),LA=0;function WS(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType}function MA(e,t){var n=t[e.id];if(!n){n={};try{WS(t)&&tt(t,e.id,{e:!1,v:n})}catch{}}return n}function Qn(e,t){return t===void 0&&(t=!1),$f(e+LA+++(t?"."+HS:rt)+RA)}function ZS(e){var t={id:Qn("_aiData-"+(e||rt)+"."+HS),accept:function(n){return WS(n)},get:function(n,i,o,s){var c=n[t.id];return c?c[$f(i)]:(s&&(c=MA(t,n),c[$f(i)]=o),o)},kill:function(n,i){if(n&&n[i])try{delete n[i]}catch{}}};return t}function Gf(e){return e&&On(e)&&(e.isVal||e.fb||Qi(e,"v")||Qi(e,"mrg")||Qi(e,"ref")||e.set)}function GS(e,t,n){var i,o=n.dfVal||bL;if(t&&n.fb){var s=n.fb;$e(s)||(s=[s]);for(var c=0;c<s[Ve];c++){var f=s[c],d=t[f];if(o(d)?i=d:e&&(d=e.cfg[f],o(d)&&(i=d),e.set(e.cfg,yn(f),d)),o(i))break}}return!o(i)&&o(n.v)&&(i=n.v),i}function U_(e,t,n){var i=n;if(n&&Gf(n)&&(i=GS(e,t,n)),i){Gf(i)&&(i=U_(e,t,i));var o;$e(i)?(o=[],o[Ve]=i[Ve]):Sn(i)&&(o={}),o&&(Xe(i,function(s,c){c&&Gf(c)&&(c=U_(e,t,c)),o[s]=c}),i=o)}return i}function z_(e,t,n,i){var o,s,c,f=i,d,p,_,v;Gf(f)?(o=f.isVal,s=f.set,_=f.rdOnly,v=f.blkVal,d=f.mrg,p=f.ref,!p&&It(p)&&(p=!!d),c=GS(e,t,f)):c=i,v&&e.blkVal(t,n);var y,g=!0,E=t[n];(E||!ce(E))&&(y=E,g=!1,o&&y!==c&&!o(y)&&(y=c,g=!0),s&&(y=s(y,c,t),g=y===c)),g?c?y=U_(e,t,c):y=c:(Sn(y)||$e(c))&&d&&c&&(Sn(c)||$e(c))&&Xe(c,function(w,T){z_(e,y,w,T)}),e.set(t,n,y),p&&e.ref(t,n),_&&e.rdOnly(t,n)}var so=$p("[[ai_dynCfg_1]]"),jS=$p("[[ai_blkDynCfg_1]]"),AA=$p("[[ai_frcDynCfg_1]]");function qS(e){if(e){var t;if($e(e)?(t=[],t[Ve]=e[Ve]):Sn(e)&&(t={}),t)return Xe(e,function(n,i){t[n]=qS(i)}),t}return e}function BA(e){if(e){var t=e[so]||e;if(t.cfg&&(t.cfg===e||t.cfg[so]===t))return t}return null}function VA(e){if(e&&(Sn(e)||$e(e)))try{e[jS]=!0}catch{}return e}function H_(e,t,n){var i=!1;return n&&!e[t.blkVal]&&(i=n[AA],!i&&!n[jS]&&(i=Sn(n)||$e(n))),i}function KS(e){Ir("InvalidAccess:"+e)}var FA=["push","pop","shift","unshift","splice"],mc=function(e,t,n,i){e&&e[nc](3,108,"".concat(n," [").concat(t,"] failed - ")+Te(i))};function YA(e,t,n){$e(t)&&Se(FA,function(i){var o=t[i];t[i]=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var f=o[Zo](this,s);return Kf(e,t,n,"Patching"),f}})}function jf(e,t){var n=wM(e,t);return n&&n.get}function $A(e,t,n,i){var o={n,h:[],trk:function(p){p&&p.fn&&(dn(o.h,p)===-1&&o.h[ot](p),e.trk(p,o))},clr:function(p){var _=dn(o.h,p);_!==-1&&o.h[vs](_,1)}},s=!0,c=!1;function f(){s&&(c=c||H_(f,e,i),i&&!i[so]&&c&&(i=Kf(e,i,n,"Converting")),s=!1);var p=e.act;return p&&o.trk(p),i}f[e.prop]={chng:function(){e.add(o)}};function d(p){if(i!==p){f[e.ro]&&!e.upd&&KS("["+n+"] is read-only:"+Te(t)),s&&(c=c||H_(f,e,i),s=!1);var _=c&&f[e.rf];if(c)if(_){Xe(i,function(y){i[y]=p?p[y]:Fr});try{Xe(p,function(y,g){qf(e,i,y,g)}),p=i}catch(y){mc((e.hdlr||{})[Ut],n,"Assigning",y),c=!1}}else i&&i[so]&&Xe(i,function(y){var g=jf(i,y);if(g){var E=g[e.prop];E&&E.chng()}});if(p!==i){var v=p&&H_(f,e,p);!_&&v&&(p=Kf(e,p,n,"Converting")),i=p,c=v}e.add(o)}}tt(t,o.n,{g:f,s:d})}function qf(e,t,n,i){if(t){var o=jf(t,n),s=o&&!!o[e.prop];s?t[n]=i:$A(e,t,n,i)}return t}function W_(e,t,n,i){if(t){var o=jf(t,n),s=o&&!!o[e.prop],c=i&&i[0],f=i&&i[1],d=i&&i[2];if(!s){if(d)try{VA(t)}catch(p){mc((e.hdlr||{})[Ut],n,"Blocking",p)}try{qf(e,t,n,t[n]),o=jf(t,n)}catch(p){mc((e.hdlr||{})[Ut],n,"State",p)}}c&&(o[e.rf]=c),f&&(o[e.ro]=f),d&&(o[e.blkVal]=!0)}return t}function Kf(e,t,n,i){try{Xe(t,function(o,s){qf(e,t,o,s)}),t[so]||(vi(t,so,{get:function(){return e.hdlr}}),YA(e,t,n))}catch(o){mc((e.hdlr||{})[Ut],n,i,o)}return t}var vc="[[ai_",gc="]]";function UA(e){var t=Jl(vc+"get"+e.uid+gc),n=Jl(vc+"ro"+e.uid+gc),i=Jl(vc+"rf"+e.uid+gc),o=Jl(vc+"blkVal"+e.uid+gc),s=Jl(vc+"dtl"+e.uid+gc),c=null,f=null,d;function p(g,E){var w=d.act;try{d.act=g,g&&g[s]&&(Se(g[s],function(b){b.clr(g)}),g[s]=[]),E({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(b){var T=e[Ut];throw T&&T[nc](1,107,Te(b)),b}finally{d.act=w||null}}function _(){if(c){var g=c;c=null,f&&f[Go](),f=null;var E=[];if(Se(g,function(w){if(w&&(w[s]&&(Se(w[s],function(T){T.clr(w)}),w[s]=null),w.fn))try{p(w,w.fn)}catch(T){E[ot](T)}}),c)try{_()}catch(w){E[ot](w)}E[Ve]>0&&$M("Watcher error(s): ",E)}}function v(g){if(g&&g.h[Ve]>0){c||(c=[]),f||(f=Jn(function(){f=null,_()},0));for(var E=0;E<g.h[Ve];E++){var w=g.h[E];w&&dn(c,w)===-1&&c[ot](w)}}}function y(g,E){if(g){var w=g[s]=g[s]||[];dn(w,E)===-1&&w[ot](E)}}return d={prop:t,ro:n,rf:i,blkVal:o,hdlr:e,add:v,notify:_,use:p,trk:y},d}function zA(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return tt(n,"toJSON",{v:function(){return"WatcherHandler"+(n.fn?"":"[X]")}}),e.use(n,t),n}function HA(e,t,n){var i=BA(t);if(i)return i;var o=Qn("dyncfg",!0),s=t&&n!==!1?t:qS(t),c;function f(){c.notify()}function d(T,b,C){try{T=qf(c,T,b,C)}catch(M){mc(e,b,"Setting value",M)}return T[b]}function p(T){return zA(c,T)}function _(T,b){c.use(null,function(C){var M=c.upd;try{It(b)||(c.upd=b),T(C)}finally{c.upd=M}})}function v(T,b){var C;return W_(c,T,b,(C={},C[0]=!0,C))[b]}function y(T,b){var C;return W_(c,T,b,(C={},C[1]=!0,C))[b]}function g(T,b){var C;return W_(c,T,b,(C={},C[2]=!0,C))[b]}function E(T,b){return b&&Xe(b,function(C,M){z_(w,T,C,M)}),T}var w={uid:null,cfg:s,logger:e,notify:f,set:d,setDf:E,watch:p,ref:v,rdOnly:y,blkVal:g,_block:_};return tt(w,"uid",{c:!1,e:!1,w:!1,v:o}),c=UA(w),Kf(c,s,"config","Creating"),w}function WA(e,t){e?(e[Cf](t),e[nc](2,108,t)):KS(t)}function er(e,t,n,i){var o=HA(n,e||{},i);return t&&o.setDf(o.cfg,t),o}function At(e,t,n){var i=e[so]||e;return i.cfg&&(i.cfg===e||i.cfg[so]===i)?i[Wo](t):(WA(n,QM+Te(e)),er(e,null,n)[Wo](t))}function Cs(e,t){if(e&&e[Ko])return e[Ko](t)}function XS(e,t,n){var i;return n||(i=oo(function(o){n=o})),e&&SM(e)>0?Yn(Cs(e[0],t),function(){XS(vf(e,1),t,n)}):n(),i}var ZA=500,JS="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function GA(e,t,n){return!e&&ce(e)?t:x0(e)?e:yn(e)[ms]()==="true"}function gr(e){return{mrg:!0,v:e}}function QS(e,t){return{set:e,v:t}}function Xf(e,t,n){return{fb:n,isVal:e,v:t}}function zt(e,t){return{fb:t,set:GA,v:!!e}}function jA(e){return{isVal:Re,v:yn(rt)}}var Z_=[Vf,cc,Ff,ea],Jf=null,Qf;function qA(e,t){return function(){var n=arguments,i=ew(t);if(i){var o=i.listener;o&&o[e]&&o[e][Zo](o,n)}}}function KA(){var e=Ct("Microsoft");return e&&(Jf=e.ApplicationInsights),Jf}function ew(e){var t=Jf;return!t&&e.disableDbgExt!==!0&&(t=Jf||KA()),t?t.ChromeDbgExt:null}function XA(e){if(!Qf){Qf={};for(var t=0;t<Z_[Ve];t++)Qf[Z_[t]]=qA(Z_[t],e)}return Qf}var Ps,tw="warnToConsole",JA="AI (Internal): ",QA="AI: ",eB="AITR_",tB={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},nB=(Ps={},Ps[0]=null,Ps[1]="errorToConsole",Ps[2]=tw,Ps[3]="debugToConsole",Ps);function nw(e){return e?'"'+e[Qo](/\"/g,rt)+'"':rt}function G_(e,t){var n=wA();if(n){var i="log";n[e]&&(i=e),Le(n[i])&&n[i](t)}}var yc=function(){function e(t,n,i,o){i===void 0&&(i=!1);var s=this;s[If]=t,s[Jo]=(i?QA:JA)+t;var c=rt;fc()&&(c=vr().stringify(o));var f=(n?" message:"+nw(n):rt)+(o?" props:"+nw(c):rt);s[Jo]+=f}return e.dataType="MessageData",e}();function na(e,t){return(e||{})[Ut]||new ed(t)}var ed=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,i={},o,s,c,f,d;St(e,this,function(p){d=v(t||{}),p.consoleLoggingLevel=function(){return o},p[nc]=function(E,w,T,b,C){C===void 0&&(C=!1);var M=new yc(w,T,C,b);if(f)throw Te(M);var z=nB[E]||tw;if(It(M[Jo]))g("throw"+(E===1?"Critical":"Warning"),M);else{if(C){var G=+M[If];!i[G]&&o>=E&&(p[z](M[Jo]),i[G]=!0)}else o>=E&&p[z](M[Jo]);_(E,M)}},p.debugToConsole=function(E){G_("debug",E),g("warning",E)},p[Cf]=function(E){G_("warn",E),g("warning",E)},p.errorToConsole=function(E){G_("error",E),g("error",E)},p.resetInternalMessageCount=function(){n=0,i={}},p.logInternalMessage=_,p[Ko]=function(E){d&&d.rm(),d=null};function _(E,w){if(!y()){var T=!0,b=eB+w[If];if(i[b]?T=!1:i[b]=!0,T&&(E<=s&&(p.queue[ot](w),n++,g(E===1?"error":"warn",w)),n===c)){var C="Internal events throttle limit per PageView reached for this app.",M=new yc(23,C,!1);p.queue[ot](M),E===1?p.errorToConsole(C):p[Cf](C)}}}function v(E){return At(er(E,tB,p).cfg,function(w){var T=w.cfg;o=T[vS],s=T.loggingLevelTelemetry,c=T.maxMessageLimit,f=T.enableDebug})}function y(){return n>=c}function g(E,w){var T=ew(t||{});T&&T[bi]&&T[bi](E,w)}})}return e.__ieDyn=1,e}();function j_(e){return e||new ed}function pe(e,t,n,i,o,s){s===void 0&&(s=!1),j_(e)[nc](t,n,i,o,s)}function ra(e,t){j_(e)[Cf](t)}function rB(e,t,n){j_(e).logInternalMessage(t,n)}var q_,ia,rw="toGMTString",iw="toUTCString",K_="cookie",X_="expires",ow="isCookieUseDisabled",J_="disableCookiesUsage",Ds="_ckMgr",td=null,Q_=null,aw=null,Ur,sw={},nd={},iB=(q_={cookieCfg:gr((ia={},ia[x_]={fb:"cookieDomain",dfVal:ta},ia.path={fb:"cookiePath",dfVal:ta},ia.enabled=Fr,ia.ignoreCookies=Fr,ia.blockedCookies=Fr,ia)),cookieDomain:Fr,cookiePath:Fr},q_[J_]=Fr,q_);function em(){!Ur&&(Ur=F0(function(){return on()}))}function oB(e,t){var n=id[Ds]||nd[Ds];return n||(n=id[Ds]=id(e,t),nd[Ds]=n),n}function rd(e){return e?e.isEnabled():!0}function lw(e,t){return t&&e&&$e(e.ignoreCookies)?dn(e.ignoreCookies,t)!==-1:!1}function aB(e,t){return t&&e&&$e(e.blockedCookies)&&dn(e.blockedCookies,t)!==-1?!0:lw(e,t)}function cw(e,t){var n=t[gs];if(ce(n)){var i=void 0;It(e[ow])||(i=!e[ow]),It(e[J_])||(i=!e[J_]),n=i}return n}function tm(e,t){var n;return e&&(n=e.getCookieMgr()),n||(n=oB(t,(e||{})[Ut])),n}function id(e,t){var n,i,o,s,c,f,d,p;e=er(e||nd,null,t).cfg,s=At(e,function(v){v.setDf(v.cfg,iB),n=v.ref(v.cfg,"cookieCfg"),i=n[O_]||"/",o=n[x_],c=cw(e,n)!==!1,f=n.getCookie||sB,d=n.setCookie||pw,p=n.delCookie||pw},t);var _={isEnabled:function(){var v=cw(e,n)!==!1&&c&&uw(t),y=nd[Ds];return v&&y&&_!==y&&(v=rd(y)),v},setEnabled:function(v){c=v!==!1,n[gs]=v},set:function(v,y,g,E,w){var T=!1;if(rd(_)&&!aB(n,v)){var b={},C=yt(y||rt),M=wn(C,";");if(M!==-1&&(C=yt(Ap(y,M)),b=fw(Rr(y,M+1))),gt(b,x_,E||o,sf,It),!ce(g)){var z=F_();if(It(b[X_])){var G=_r(),oe=G+g*1e3;if(oe>0){var R=new Date;R.setTime(oe),gt(b,X_,dw(R,z?rw:iw)||dw(R,z?rw:iw)||rt,sf)}}z||gt(b,"max-age",rt+g,null,It)}var F=$r();F&&F.protocol==="https:"&&(gt(b,"secure",null,null,It),Q_===null&&(Q_=!lB((Lr()||{})[__])),Q_&&gt(b,"SameSite","None",null,It)),gt(b,O_,w||i,null,It),d(v,hw(C,b)),T=!0}return T},get:function(v){var y=rt;return rd(_)&&!lw(n,v)&&(y=f(v)),y},del:function(v,y){var g=!1;return rd(_)&&(g=_.purge(v,y)),g},purge:function(v,y){var g,E=!1;if(uw(t)){var w=(g={},g[O_]=y||"/",g[X_]="Thu, 01 Jan 1970 00:00:01 GMT",g);F_()||(w["max-age"]="0"),p(v,hw(rt,w)),E=!0}return E},unload:function(v){s&&s.rm(),s=null}};return _[Ds]=_,_}function uw(e){if(td===null){td=!1,!Ur&&em();try{var t=Ur.v||{};td=t[K_]!==void 0}catch(n){pe(e,2,68,"Cannot access document.cookie - "+ft(n),{exception:Te(n)})}}return td}function fw(e){var t={};if(e&&e[Ve]){var n=yt(e)[ys](";");Se(n,function(i){if(i=yt(i||rt),i){var o=wn(i,"=");o===-1?t[i]=null:t[yt(Ap(i,o))]=yt(Rr(i,o+1))}})}return t}function dw(e,t){return Le(e[t])?e[t]():null}function hw(e,t){var n=e||rt;return Xe(t,function(i,o){n+="; "+i+(ce(o)?rt:"="+o)}),n}function sB(e){var t=rt;if(!Ur&&em(),Ur.v){var n=Ur.v[K_]||rt;aw!==n&&(sw=fw(n),aw=n),t=yt(sw[e]||rt)}return t}function pw(e,t){!Ur&&em(),Ur.v&&(Ur.v[K_]=e+"="+t)}function lB(e){return Re(e)?!!(hn(e,"CPU iPhone OS 12")||hn(e,"iPad; CPU OS 12")||hn(e,"Macintosh; Intel Mac OS X 10_14")&&hn(e,"Version/")&&hn(e,"Safari")||hn(e,"Macintosh; Intel Mac OS X 10_14")&&rS(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||hn(e,"Chrome/5")||hn(e,"Chrome/6")||hn(e,"UnrealEngine")&&!hn(e,"Chrome")||hn(e,"UCBrowser/12")||hn(e,"UCBrowser/11")):!1}var cB={perfEvtsSendAll:!1};function uB(e){e.h=null;var t=e.cb;e.cb=[],Se(t,function(n){Ot(n.fn,[n.arg])})}function lo(e,t,n,i){Se(e,function(o){o&&o[t]&&(n?(n.cb[ot]({fn:i,arg:o}),n.h=n.h||Jn(uB,0,n)):Ot(i,[o]))})}var fB=function(){function e(t){this.listeners=[];var n,i,o=[],s={h:null,cb:[]},c=er(t,cB);i=c[Wo](function(f){n=!!f.cfg.perfEvtsSendAll}),St(e,this,function(f){tt(f,"listeners",{g:function(){return o}}),f[Df]=function(d){o[ot](d)},f[Pf]=function(d){for(var p=dn(o,d);p>-1;)o[vs](p,1),p=dn(o,d)},f[Vf]=function(d){lo(o,Vf,s,function(p){p[Vf](d)})},f[cc]=function(d,p){lo(o,cc,s,function(_){_[cc](d,p)})},f[Ff]=function(d,p){lo(o,Ff,p?s:null,function(_){_[Ff](d,p)})},f[ea]=function(d){d&&(n||!d[m_]())&&lo(o,ea,null,function(p){d.isAsync?Jn(function(){return p[ea](d)},0):p[ea](d)})},f[C_]=function(d){d&&d[Ve]&&lo(o,C_,s,function(p){p[C_](d)})},f[P_]=function(d){d&&d[mr]&&lo(o,P_,s,function(p){p[P_](d)})},f[D_]=function(d,p){if(d>0){var _=p||0;lo(o,D_,s,function(v){v[D_](d,_)})}},f[Ko]=function(d){var p=function(){i&&i.rm(),i=null,o=[],s.h&&s.h[Go](),s.h=null,s.cb=[]},_;if(lo(o,"unload",null,function(v){var y=v[Ko](d);y&&(_||(_=[]),_[ot](y))}),_)return oo(function(v){return Yn(JM(_),function(){p(),v()})});p()}})}return e.__ieDyn=1,e}(),xs="ctx",nm="ParentContextKey",Sc="ChildrenContextKey",dB=null,od=function(){function e(t,n,i){var o=this;if(o.start=_r(),o[jo]=t,o.isAsync=i,o[m_]=function(){return!1},Le(n)){var s;tt(o,"payload",{g:function(){return!s&&Le(n)&&(s=n(),n=null),s}})}o[Ss]=function(c){return c?c===e[nm]||c===e[Sc]?o[c]:(o[xs]||{})[c]:null},o[Vr]=function(c,f){if(c)if(c===e[nm])o[c]||(o[m_]=function(){return!0}),o[c]=f;else if(c===e[Sc])o[c]=f;else{var d=o[xs]=o[xs]||{};d[c]=f}},o.complete=function(){var c=0,f=o[Ss](e[Sc]);if($e(f))for(var d=0;d<f[Ve];d++){var p=f[d];p&&(c+=p.time)}o.time=_r()-o.start,o.exTime=o.time-c,o.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),hB=function(){function e(t){this.ctx={},St(e,this,function(n){n.create=function(i,o,s){return new od(i,o,s)},n.fire=function(i){i&&(i.complete(),t&&Le(t[ea])&&t[ea](i))},n[Vr]=function(i,o){if(i){var s=n[xs]=n[xs]||{};s[i]=o}},n[Ss]=function(i){return(n[xs]||{})[i]}})}return e.__ieDyn=1,e}(),rm="CoreUtils.doPerf";function ad(e,t,n,i,o){if(e){var s=e;if(s[Yf]&&(s=s[Yf]()),s){var c=void 0,f=s[Ss](rm);try{if(c=s.create(t(),i,o),c){if(f&&c[Vr]&&(c[Vr](od[nm],f),f[Ss]&&f[Vr])){var d=f[Ss](od[Sc]);d||(d=[],f[Vr](od[Sc],d)),d[ot](c)}return s[Vr](rm,c),n(c)}}catch(p){c&&c[Vr]&&c[Vr]("exception",p)}finally{c&&s.fire(c),s[Vr](rm,f)}}}return n()}function pB(){return dB}function co(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=rt,n,i=0;i<4;i++)n=_c(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var o=e[8+(_c()&3)|0];return eo(t,0,8)+eo(t,9,4)+"4"+eo(t,13,3)+o+eo(t,16,3)+eo(t,19,12)}var im="00",_B="ff",_w="00000000000000000000000000000000",mw="0000000000000000";function wc(e,t,n){return e&&e[Ve]===t&&e!==n?!!e.match(/^[\da-f]*$/i):!1}function vw(e,t,n){return wc(e,t)?e:n}function mB(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[Ve]<2;)t="0"+t;return t}function gw(e,t,n,i){return{version:wc(i,2,_B)?i:im,traceId:om(e)?e:co(),spanId:am(t)?t:Ap(co(),16),traceFlags:n>=0&&n<=255?n:1}}function om(e){return wc(e,32,_w)}function am(e){return wc(e,16,mw)}function yw(e){if(e){var t=mB(e[v_]);wc(t,2)||(t="01");var n=e[p_]||im;return n!=="00"&&n!=="ff"&&(n=im),"".concat(n.toLowerCase(),"-").concat(vw(e.traceId,32,_w).toLowerCase(),"-").concat(vw(e.spanId,16,mw).toLowerCase(),"-").concat(t.toLowerCase())}return""}function vB(e){var t=e.getElementsByTagName("script"),n=[];return Se(t,function(i){var o=i[g_]("src");if(o){var s=i[g_]("crossorigin"),c=i.hasAttribute("async")===!0,f=i.hasAttribute("defer")===!0,d=i[g_]("referrerpolicy"),p={url:o};s&&(p.crossOrigin=s),c&&(p.async=c),f&&(p.defer=f),d&&(p.referrerPolicy=d),n[ot](p)}}),n}var gB=ZS("plugin");function oa(e){return gB.get(e,"state",{},!0)}function Sw(e,t){for(var n=[],i=null,o=e[Br](),s;o;){var c=o[ic]();if(c){i&&i[ac]&&c[Yr]&&i[ac](c),s=oa(c);var f=!!s[Ar];c[Ar]&&(f=c[Ar]()),f||n[ot](c),i=c,o=o[Br]()}}Se(n,function(d){var p=e[Qt]();d[rc](e.getCfg(),p,t,e[Br]()),s=oa(d),!d[Qt]&&!s[Qt]&&(s[Qt]=p),s[Ar]=!0,delete s[Ti]})}function sm(e){return e.sort(function(t,n){var i=0;if(n){var o=n[Yr];t[Yr]?i=o?t[Bf]-n[Bf]:1:o&&(i=-1)}else i=t?1:-1;return i})}function yB(e){var t={};return{getName:function(){return t[jo]},setName:function(n){t[jo]=n},getTraceId:function(){return t.traceId},setTraceId:function(n){om(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){am(n)&&(t.spanId=n)},getTraceFlags:function(){return t[v_]},setTraceFlags:function(n){t[v_]=n}}}var SB="TelemetryPluginChain",ww="_hasRun",Ew="_getTelCtx",Tw=0;function wB(e,t,n){for(;e;){if(e[ic]()===n)return e;e=e[Br]()}return aa([n],t.config||{},t)}function lm(e,t,n,i){var o=null,s=[];t||(t=er({},null,n[Ut])),i!==null&&(o=i?wB(e,n,i):e);var c={_next:d,ctx:{core:function(){return n},diagLog:function(){return na(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:_,getConfig:v,hasNext:function(){return!!o},getNext:function(){return o},setNext:function(g){o=g},iterate:y,onComplete:f}};function f(g,E){for(var w=[],T=2;T<arguments.length;T++)w[T-2]=arguments[T];g&&s[ot]({func:g,self:It(E)?c.ctx:E,args:w})}function d(){var g=o;if(o=g?g[Br]():null,!g){var E=s;E&&E[Ve]>0&&(Se(E,function(w){try{w.func.call(w.self,w.args)}catch(T){pe(n[Ut],2,73,"Unexpected Exception during onComplete - "+Te(T))}}),s=[])}return g}function p(g,E){var w=null,T=t.cfg;if(T&&g){var b=T[Ts];!b&&E&&(b={}),T[Ts]=b,b=t.ref(T,Ts),b&&(w=b[g],!w&&E&&(w={}),b[g]=w,w=t.ref(b,g))}return w}function _(g,E){var w=p(g,!0);return E&&Xe(E,function(T,b){if(ce(w[T])){var C=t.cfg[T];(C||!ce(C))&&(w[T]=C)}z_(t,w,T,b)}),t.setDf(w,E)}function v(g,E,w){w===void 0&&(w=!1);var T,b=p(g,!1),C=t.cfg;return b&&(b[E]||!ce(b[E]))?T=b[E]:(C[E]||!ce(C[E]))&&(T=C[E]),T||!ce(T)?T:w}function y(g){for(var E;E=c._next();){var w=E[ic]();w&&g(w)}}return c}function yr(e,t,n,i){var o=er(t),s=lm(e,o,n,i),c=s.ctx;function f(p){var _=s._next();return _&&_[Yr](p,c),!_}function d(p,_){return p===void 0&&(p=null),$e(p)&&(p=aa(p,o.cfg,n,_)),yr(p||c[Br](),o.cfg,n,_)}return c[Tn]=f,c[Xo]=d,c}function sd(e,t,n){var i=er(t.config),o=lm(e,i,t,n),s=o.ctx;function c(d){var p=o._next();return p&&p[Ko](s,d),!p}function f(d,p){return d===void 0&&(d=null),$e(d)&&(d=aa(d,i.cfg,t,p)),sd(d||s[Br](),t,p)}return s[Tn]=c,s[Xo]=f,s}function cm(e,t,n){var i=er(t.config),o=lm(e,i,t,n),s=o.ctx;function c(d){return s.iterate(function(p){Le(p[oc])&&p[oc](s,d)})}function f(d,p){return d===void 0&&(d=null),$e(d)&&(d=aa(d,i.cfg,t,p)),cm(d||s[Br](),t,p)}return s[Tn]=c,s[Xo]=f,s}function aa(e,t,n,i){var o=null,s=!i;if($e(e)&&e[Ve]>0){var c=null;Se(e,function(f){if(!s&&i===f&&(s=!0),s&&f&&Le(f[Yr])){var d=EB(f,t,n);o||(o=d),c&&c._setNext(d),c=d}})}return i&&!o?aa([i],t,n):o}function EB(e,t,n){var i=null,o=Le(e[Yr]),s=Le(e[ac]),c;e?c=e[ro]+"-"+e[Bf]+"-"+Tw++:c="Unknown-0-"+Tw++;var f={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:_,unload:v,update:y,_id:c,_setNext:function(g){i=g}};function d(){var g;return e&&Le(e[Ew])&&(g=e[Ew]()),g||(g=yr(f,t,n)),g}function p(g,E,w,T,b){var C=!1,M=e?e[ro]:SB,z=g[ww];return z||(z=g[ww]={}),g.setNext(i),e&&ad(g[Qt](),function(){return M+":"+w},function(){z[c]=!0;try{var G=i?i._id:rt;G&&(z[G]=!1),C=E(g)}catch(R){var oe=i?z[i._id]:!0;oe&&(C=!0),(!i||!oe)&&pe(g[bi](),1,73,"Plugin ["+M+"] failed during "+w+" - "+Te(R)+", run flags: "+Te(z))}},T,b),C}function _(g,E){E=E||d();function w(T){if(!e||!o)return!1;var b=oa(e);return b[Ti]||b[k_]?!1:(s&&e[ac](i),e[Yr](g,T),!0)}p(E,w,"processTelemetry",function(){return{item:g}},!g.sync)||E[Tn](g)}function v(g,E){function w(){var T=!1;if(e){var b=oa(e),C=e[Qt]||b[Qt];e&&(!C||C===g.core())&&!b[Ti]&&(b[Qt]=null,b[Ti]=!0,b[Ar]=!1,e[Ti]&&e[Ti](g,E)===!0&&(T=!0))}return T}p(g,w,"unload",function(){},E.isAsync)||g[Tn](E)}function y(g,E){function w(){var T=!1;if(e){var b=oa(e),C=e[Qt]||b[Qt];e&&(!C||C===g.core())&&!b[Ti]&&e[oc]&&e[oc](g,E)===!0&&(T=!0)}return T}p(g,w,"update",function(){},!1)||g[Tn](E)}return pr(f)}function bw(){var e=[];function t(i){i&&e[ot](i)}function n(i,o){Se(e,function(s){try{s(i,o)}catch(c){pe(i[bi](),2,73,"Unexpected error calling unload handler - "+Te(c))}}),e=[]}return{add:t,run:n}}function Nw(){var e=[];function t(i){var o=e;e=[],Se(o,function(s){try{(s.rm||s.remove).call(s)}catch(c){pe(i,2,73,"Unloading:"+Te(c))}})}function n(i){i&&ps(e,i)}return{run:t,add:n}}var um,uo="getPlugin",TB=(um={},um[Ts]={isVal:ta,v:{}},um),Os=function(){function e(){var t=this,n,i,o,s,c;p(),St(e,t,function(_){_[rc]=function(v,y,g,E){d(v,y,E),n=!0},_[Ti]=function(v,y){var g=_[Qt];if(!g||v&&g!==v[Qt]())return;var E,w=!1,T=v||sd(null,g,o&&o[uo]?o[uo]():o),b=y||{reason:0,isAsync:!1};function C(){w||(w=!0,s.run(T,y),c.run(T[bi]()),E===!0&&T[Tn](b),p())}return!_[Rf]||_[Rf](T,b,C)!==!0?C():E=!0,E},_[oc]=function(v,y){var g=_[Qt];if(!g||v&&g!==v[Qt]())return;var E,w=!1,T=v||cm(null,g,o&&o[uo]?o[uo]():o),b=y||{reason:0};function C(){w||(w=!0,d(T.getCfg(),T.core(),T[Br]()))}return!_._doUpdate||_._doUpdate(T,b,C)!==!0?C():E=!0,E},Uf(_,"_addUnloadCb",function(){return s},"add"),Uf(_,"_addHook",function(){return c},"add"),tt(_,"_unloadHooks",{g:function(){return c}})}),t[bi]=function(_){return f(_)[bi]()},t[Ar]=function(){return n},t.setInitialized=function(_){n=_},t[ac]=function(_){o=_},t[Tn]=function(_,v){v?v[Tn](_):o&&Le(o[Yr])&&o[Yr](_,null)},t._getTelCtx=f;function f(_){_===void 0&&(_=null);var v=_;if(!v){var y=i||yr(null,{},t[Qt]);o&&o[uo]?v=y[Xo](null,o[uo]):v=y[Xo](null,o)}return v}function d(_,v,y){er(_,TB,na(v)),!y&&v&&(y=v[_S]()[Br]());var g=o;o&&o[uo]&&(g=o[uo]()),t[Qt]=v,i=yr(y,_,v,g)}function p(){n=!1,t[Qt]=null,i=null,o=null,c=Nw(),s=bw()}}return e.__ieDyn=1,e}();function bB(e,t,n){var i={id:t,fn:n};ps(e,i);var o={remove:function(){Se(e,function(s,c){if(s.id===i.id)return e[vs](c,1),-1})}};return o}function NB(e,t,n){for(var i=!1,o=e[Ve],s=0;s<o;++s){var c=e[s];if(c)try{if(c.fn[Zo](null,[t])===!1){i=!0;break}}catch(f){pe(n,2,64,"Telemetry initializer failed: "+ft(f),{exception:Te(f)},!0)}}return!i}var kB=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var i,o;s(),St(t,n,function(c,f){c.addTelemetryInitializer=function(d){return bB(o,i++,d)},c[Yr]=function(d,p){NB(o,d,p?p[bi]():c[bi]())&&c[Tn](d,p)},c[Rf]=function(){s()}});function s(){i=0,o=[]}return n}return t.__ieDyn=1,t}(Os),fo,kw="Plugins must provide initialize method",CB="_notificationManager",Cw="SDK is still unloading...",PB="SDK is not initialized",DB=100,xB=5e4,fm=ql((fo={cookieCfg:{}},fo[bs]={rdOnly:!0,ref:!0,v:[]},fo[Es]={rdOnly:!0,ref:!0,v:[]},fo[Ts]={ref:!0,v:{}},fo[N_]=Fr,fo.loggingLevelConsole=0,fo.diagnosticLogInterval=Fr,fo));function OB(e,t){return new hB(t)}function IB(e,t,n){var i=[],o=[],s={};return Se(n,function(c){(ce(c)||ce(c[rc]))&&Bn(kw);var f=c[Bf],d=c[ro];c&&f&&(ce(s[f])?s[f]=d:ra(e,"Two extensions have same priority #"+f+" - "+s[f]+", "+d)),!f||f<t?i[ot](c):o[ot](c)}),{core:i,channels:o}}function Pw(e,t){var n=!1;return Se(t,function(i){if(i===e)return n=!0,-1}),n}function dm(e,t,n,i){n&&Xe(n,function(o,s){i&&Sn(s)&&Sn(t[o])&&dm(e,t[o],s,i),i&&Sn(s)&&Sn(t[o])?dm(e,t[o],s,i):e.set(t,o,s)})}function Dw(e,t){var n=null,i=-1;return Se(e,function(o,s){if(o.w===t)return n=o,i=s,-1}),{i,l:n}}function RB(e,t){var n=Dw(e,t).l;return n||(n={w:t,rm:function(){var i=Dw(e,t);i.i!==-1&&e[vs](i.i,1)}},e[ot](n)),n}function LB(e,t,n){Se(t,function(i){var o=At(e,i.w,n);delete i.w,i.rm=function(){o.rm()}})}function MB(e,t,n,i){return t.add(e[Wo](function(o){var s=o.cfg.disableDbgExt;s===!0&&i&&(n[Pf](i),i=null),n&&!i&&s!==!0&&(i=XA(o.cfg),n[Df](i))})),i}function AB(e){return tt({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}var BB=function(){function e(){var t,n,i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K,W;St(e,this,function(x){H(),x._getDbgPlgTargets=function(){return[R,o]},x[Ar]=function(){return n},x.activeStatus=function(){return A},x._setPendingStatus=function(){A=3},x[rc]=function(q,me,Pe,Ee){g&&Bn(Cw),x[Ar]()&&Bn("Core cannot be initialized more than once"),t=er(q,fm,Pe||x[Ut],!1),q=t.cfg,dt(t[Wo](function(ne){var te=ne.cfg;ae=te.initInMemoMaxSize||DB,ve(te);var le=ne.ref(ne.cfg,Ts);Xe(le,function(ke){ne.ref(le,ke)})})),s=Ee,M=MB(t,C,s&&x[xf](),M),we(),x[Ut]=Pe;var I=q[bs];if(_=[],_[ot].apply(_,hS(hS([],me,!1),I)),v=q[Es],O(null),(!y||y[Ve]===0)&&Bn("No "+Es+" available"),v&&v[Ve]>1){var j=x[ic]("TeeChannelController");(!j||!j.plugin)&&pe(i,1,28,"TeeChannel required")}LB(q,oe,i),oe=null,n=!0,A===no.ACTIVE&&N()},x.getChannels=function(){var q=[];return y&&Se(y,function(me){q[ot](me)}),pr(q)},x.track=function(q){ad(x[Yf](),function(){return"AppInsightsCore:track"},function(){q===null&&(Wt(q),Bn("Invalid telemetry item")),!q[jo]&&ce(q[jo])&&(Wt(q),Bn("telemetry name required")),q.iKey=q.iKey||G,q.time=q.time||Ns(new Date),q.ver=q.ver||"4.0",!g&&x[Ar]()&&A===no.ACTIVE?ie()[Tn](q):A!==no.INACTIVE&&o[Ve]<=ae&&o[ot](q)},function(){return{item:q}},!q.sync)},x[_S]=ie,x[xf]=function(){return s||(s=new fB(t.cfg),x[CB]=s),s},x[Df]=function(q){x.getNotifyMgr()[Df](q)},x[Pf]=function(q){s&&s[Pf](q)},x.getCookieMgr=function(){return d||(d=id(t.cfg,x[Ut])),d},x.setCookieMgr=function(q){d!==q&&(Cs(d,!1),d=q)},x[Yf]=function(){return c||f||pB()},x.setPerfMgr=function(q){c=q},x.eventCnt=function(){return o[Ve]},x.releaseQueue=function(){if(n&&o[Ve]>0){var q=o;o=[],A===2?Se(q,function(me){me.iKey=me.iKey||G,ie()[Tn](me)}):pe(i,2,20,"core init status is not active")}},x.pollInternalLogs=function(q){return w=q||null,W=!1,V&&V[Go](),U(!0)};function ve(q){var me=q.instrumentationKey,Pe=q.endpointUrl;if(A!==3){if(ce(me)){G=null,A=no.INACTIVE;var Ee="Please provide instrumentation key";n?(pe(i,1,100,Ee),N()):Bn(Ee);return}var I=[];Ji(me)?(I[ot](me),G=null):G=me,Ji(Pe)?(I[ot](Pe),B=null):B=Pe,I[Ve]?re(q,I):_e()}}function re(q,me){he=!1,A=3;var Pe=ta(q.initTimeOut)?q.initTimeOut:xB,Ee=XM(me);P&&P[Go](),P=Jn(function(){P=null,he||_e()},Pe),Yn(Ee,function(I){try{if(he)return;if(!I.rejected){var j=I[qo];if(j&&j[Ve]){var ne=j[0];if(G=ne&&ne[qo],j[Ve]>1){var te=j[1];B=te&&te[qo]}}G&&(q.instrumentationKey=G,q.endpointUrl=B)}_e()}catch{he||_e()}})}function _e(){he=!0,ce(G)?(A=no.INACTIVE,pe(i,1,112,"ikey can't be resolved from promises")):A=no.ACTIVE,N()}function N(){n&&(x.releaseQueue(),x.pollInternalLogs())}function U(q){if((!V||!V[gs])&&!W){var me=q||i&&i.queue[Ve]>0;me&&(K||(K=!0,dt(t[Wo](function(Pe){var Ee=Pe.cfg.diagnosticLogInterval;(!Ee||!(Ee>0))&&(Ee=1e4);var I=!1;V&&(I=V[gs],V[Go]()),V=DM(Oe,Ee),V.unref(),V[gs]=I}))),V[gs]=!0)}return V}x[mS]=function(){W=!0,V&&V[Go](),Oe()},uc(x,function(){return E},["addTelemetryInitializer"]),x[Ko]=function(q,me,Pe){q===void 0&&(q=!0),n||Bn(PB),g&&Bn(Cw);var Ee={reason:50,isAsync:q,flushComplete:!1},I;q&&!me&&(I=oo(function(te){me=te}));var j=sd(J(),x);j[Of](function(){C.run(x[Ut]),XS([d,s,i],q,function(){H(),me&&me(Ee)})},x);function ne(te){Ee.flushComplete=te,g=!0,b.run(j,Ee),x[mS](),j[Tn](Ee)}return Oe(),Ge(q,ne,6,Pe),I},x[ic]=X,x.addPlugin=function(q,me,Pe,Ee){if(!q){Ee&&Ee(!1),ze(kw);return}var I=X(q[ro]);if(I&&!me){Ee&&Ee(!1),ze("Plugin ["+q[ro]+"] is already loaded!");return}var j={reason:16};function ne(ke){_[ot](q),j.added=[q],O(j),Ee&&Ee(!0)}if(I){var te=[I.plugin],le={reason:2,isAsync:!!Pe};fe(te,le,function(ke){ke?(j.removed=te,j.reason|=32,ne()):Ee&&Ee(!1)})}else ne()},x.updateCfg=function(q,me){me===void 0&&(me=!0);var Pe;if(x[Ar]()){Pe={reason:1,cfg:t.cfg,oldCfg:Q0({},t.cfg),newConfig:Q0({},q),merge:me},q=Pe.newConfig;var Ee=t.cfg;q[bs]=Ee[bs],q[Es]=Ee[Es]}t._block(function(I){var j=I.cfg;dm(I,j,q,me),me||Xe(j,function(ne){Qi(q,ne)||I.set(j,ne,Fr)}),I.setDf(j,fm)},!0),t.notify(),Pe&&be(Pe)},x.evtNamespace=function(){return T},x.flush=Ge,x.getTraceCtx=function(q){return z||(z=yB()),z},x.setTraceCtx=function(q){z=q||null},x.addUnloadHook=dt,Uf(x,"addUnloadCb",function(){return b},"add"),x.onCfgChange=function(q){var me;return n?me=At(t.cfg,q,x[Ut]):me=RB(oe,q),AB(me)},x.getWParam=function(){return U0()||t.cfg.enableWParam?0:-1};function k(){var q={};F=[];var me=function(Pe){Pe&&Se(Pe,function(Ee){if(Ee[ro]&&Ee[p_]&&!q[Ee.identifier]){var I=Ee[ro]+"="+Ee[p_];F[ot](I),q[Ee.identifier]=Ee}})};me(y),v&&Se(v,function(Pe){me(Pe)}),me(_)}function H(){n=!1,t=er({},fm,x[Ut]),t.cfg[vS]=1,tt(x,"config",{g:function(){return t.cfg},s:function(me){x.updateCfg(me,!1)}}),tt(x,"pluginVersionStringArr",{g:function(){return F||k(),F}}),tt(x,"pluginVersionString",{g:function(){return Q||(F||k(),Q=F.join(";")),Q||rt}}),tt(x,"logger",{g:function(){return i||(i=new ed(t.cfg),t[Ut]=i),i},s:function(me){t[Ut]=me,i!==me&&(Cs(i,!1),i=me)}}),x[Ut]=new ed(t.cfg),R=[];var q=x.config[bs]||[];q.splice(0,q[Ve]),ps(q,R),E=new kB,o=[],Cs(s,!1),s=null,c=null,f=null,Cs(d,!1),d=null,p=null,_=[],v=null,y=null,g=!1,w=null,T=Qn("AIBaseCore",!0),b=bw(),z=null,G=null,C=Nw(),oe=[],Q=null,F=null,W=!1,V=null,K=!1,A=0,B=null,ae=null,he=!1,P=null}function ie(){var q=yr(J(),t.cfg,x);return q[Of](U),q}function O(q){var me=IB(x[Ut],ZA,_);p=null,Q=null,F=null,y=(v||[])[0]||[],y=sm(ps(y,me[Es]));var Pe=ps(sm(me[Qt]),y);R=pr(Pe);var Ee=x.config[bs]||[];Ee.splice(0,Ee[Ve]),ps(Ee,R);var I=ie();y&&y[Ve]>0&&Sw(I[Xo](y),Pe),Sw(I,Pe),q&&be(q)}function X(q){var me=null,Pe=null,Ee=[];return Se(R,function(I){if(I[ro]===q&&I!==E)return Pe=I,-1;I.getChannel&&Ee[ot](I)}),!Pe&&Ee[Ve]>0&&Se(Ee,function(I){if(Pe=I.getChannel(q),!Pe)return-1}),Pe&&(me={plugin:Pe,setEnabled:function(I){oa(Pe)[k_]=!I},isEnabled:function(){var I=oa(Pe);return!I[Ti]&&!I[k_]},remove:function(I,j){I===void 0&&(I=!0);var ne=[Pe],te={reason:1,isAsync:I};fe(ne,te,function(le){le&&O({reason:32,removed:ne}),j&&j(le)})}}),me}function J(){if(!p){var q=(R||[]).slice();dn(q,E)===-1&&q[ot](E),p=aa(sm(q),t.cfg,x)}return p}function fe(q,me,Pe){if(q&&q[Ve]>0){var Ee=aa(q,t.cfg,x),I=sd(Ee,x);I[Of](function(){var j=!1,ne=[];Se(_,function(le,ke){Pw(le,q)?j=!0:ne[ot](le)}),_=ne,Q=null,F=null;var te=[];v&&(Se(v,function(le,ke){var De=[];Se(le,function(He){Pw(He,q)?j=!0:De[ot](He)}),te[ot](De)}),v=te),Pe&&Pe(j),U()}),I[Tn](me)}else Pe(!1)}function Oe(){if(i&&i.queue){var q=i.queue.slice(0);i.queue[Ve]=0,Se(q,function(me){var Pe={name:w||"InternalMessageId: "+me[If],iKey:G,time:Ns(new Date),baseType:yc.dataType,baseData:{message:me[Jo]}};x.track(Pe)})}}function Ge(q,me,Pe,Ee){var I=1,j=!1,ne=null;Ee=Ee||5e3;function te(){I--,j&&I===0&&(ne&&ne[Go](),ne=null,me&&me(j),me=null)}if(y&&y[Ve]>0){var le=ie()[Xo](y);le.iterate(function(ke){if(ke.flush){I++;var De=!1;ke.flush(q,function(){De=!0,te()},Pe)||De||(q&&ne==null?ne=Jn(function(){ne=null,te()},Ee):te())}})}return j=!0,te(),!0}function we(){var q;dt(t[Wo](function(me){var Pe=me.cfg.enablePerfMgr;if(Pe){var Ee=me.cfg[N_];(q!==Ee||!q)&&(Ee||(Ee=OB),bn(me.cfg,N_,Ee),q=Ee,f=null),!c&&!f&&Le(Ee)&&(f=Ee(x,x[xf]()))}else f=null,q=null}))}function be(q){var me=cm(J(),x);me[Of](U),(!x._updateHook||x._updateHook(me,q)!==!0)&&me[Tn](q)}function ze(q){var me=x[Ut];me?(pe(me,2,73,q),U()):Bn(q)}function Wt(q){var me=x[xf]();me&&me[cc]([q],2)}function dt(q){C.add(q)}})}return e.__ieDyn=1,e}();function hm(e,t){try{if(e&&e!==""){var n=vr().parse(e);if(n&&n[SS]&&n[SS]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[Ve])return n}}catch(i){pe(t,1,43,"Cannot parse the response. "+(i[jo]||Te(i)),{response:e})}return null}var Sr="",VB="NoResponseBody",xw="&"+VB+"=true",pm="POST",FB=function(){function e(){var t=0,n,i,o,s,c,f,d,p,_,v,y,g,E,w;St(e,this,function(T,b){var C=!0;he(),T[rc]=function(P,V){o=V,i&&pe(o,1,28,"Sender is already initialized"),T.SetConfig(P),i=!0},T._getDbgPlgTargets=function(){return[i,s,f,n]},T.SetConfig=function(P){try{if(c=P.senderOnCompleteCallBack||{},f=!!P.disableCredentials,d=P.fetchCredentials,s=!!P.isOneDs,n=!!P.enableSendPromise,_=!!P.disableXhr,v=!!P.disableBeacon,y=!!P.disableBeaconSync,w=P.timeWrapper,E=!!P.addNoResponse,g=!!P.disableFetchKeepAlive,p={sendPOST:A},s||(C=!1),f){var V=$r();V&&V.protocol&&V.protocol[ms]()==="file:"&&(C=!1)}return!0}catch{}return!1},T.getSyncFetchPayload=function(){return t},T.getSenderInst=function(P,V){return P&&P[Ve]?oe(P,V):null},T.getFallbackInst=function(){return p},T[Rf]=function(P,V){he()},T.preparePayload=function(P,V,K,W){if(!V||W||!K[mr]){P(K);return}try{var x=Ct("CompressionStream");if(!Le(x)){P(K);return}var ve=new ReadableStream({start:function(H){H.enqueue(Re(K[mr])?new TextEncoder().encode(K[mr]):K[mr]),H.close()}}),re=ve.pipeThrough(new x("gzip")),_e=re.getReader(),N=[],U=0,k=!1;return Yn(_e.read(),function H(ie){if(!k&&!ie.rejected){var O=ie[qo];if(!O.done)return N[ot](O[qo]),U+=O.value[Ve],Yn(_e.read(),H);for(var X=new Uint8Array(U),J=0,fe=0,Oe=N;fe<Oe.length;fe++){var Ge=Oe[fe];X.set(Ge,J),J+=Ge[Ve]}K[mr]=X,K[Lf]["Content-Encoding"]="gzip",K._chunkCount=N[Ve]}k||(k=!0,P(K))}),_e}catch{P(K);return}};function M(P,V){R(V,200,{},P)}function z(P,V){pe(o,2,26,"Failed to send telemetry.",{message:P}),R(V,400,{})}function G(P){z("No endpoint url is provided for the batch",P)}function oe(P,V){for(var K=0,W=null,x=0;W==null&&x<P[Ve];)K=P[x],!_&&K===1?NA()?W=ae:Zf()&&(W=A):K===2&&Y_(V)&&(!V||!g)?W=B:K===3&&dc()&&(V?!y:!v)&&(W=Q),x++;return W?{_transport:K,_isSync:V,sendPOST:W}:null}function R(P,V,K,W){try{P&&P(V,K,W)}catch{}}function F(P,V){var K=Lr(),W=P[sc];if(!W)return G(V),!0;W=P[sc]+(E?xw:Sr);var x=P[mr],ve=s?x:new Blob([x],{type:"text/plain;charset=UTF-8"}),re=K.sendBeacon(W,ve);return re}function Q(P,V,K){var W=P[mr];try{if(W)if(F(P,V))M(Sr,V);else{var x=c&&c.beaconOnRetry;x&&Le(x)?x(P,V,F):(p&&p.sendPOST(P,V,!0),pe(o,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(ve){s&&ra(o,"Failed to send telemetry using sendBeacon API. Ex:"+Te(ve)),R(V,s?0:400,{},Sr)}}function A(P,V,K){var W,x,ve,re=P[Lf]||{};!K&&n&&(W=oo(function(k,H){x=k,ve=H})),s&&K&&P.disableXhrSync&&(K=!1);var _e=P[sc];if(!_e){G(V),x&&x(!1);return}var N=cA(pm,_e,C,!0,K,P[ws]);s||N.setRequestHeader("Content-type","application/json"),Se(gi(re),function(k){N.setRequestHeader(k,re[k])}),N.onreadystatechange=function(){s||(U(N),N.readyState===4&&x&&x(!0))},N.onload=function(){s&&U(N)};function U(k){var H=c&&c.xhrOnComplete,ie=H&&Le(H);if(ie)H(k,V,P);else{var O=Hf(k);R(V,k[Ni],R_(k,s),O)}}return N.onerror=function(k){R(V,s?N[Ni]:400,R_(N,s),s?Sr:Wf(N)),ve&&ve(k)},N.ontimeout=function(){R(V,s?N[Ni]:500,R_(N,s),s?Sr:Wf(N)),x&&x(!1)},N.send(P[mr]),W}function B(P,V,K){var W,x=P[sc],ve=P[mr],re=s?ve:new Blob([ve],{type:"application/json"}),_e,N,U,k=new Headers,H=ve[Ve],ie=!1,O=!1,X=P[Lf]||{},J=(W={method:pm,body:re},W[JS]=!0,W);P.headers&&gi(P.headers)[Ve]>0&&(Se(gi(X),function(we){k.append(we,X[we])}),J[Lf]=k),d?J.credentials=d:C&&s&&(J.credentials="include"),K&&(J.keepalive=!0,t+=H,s?P._sendReason===2&&(ie=!0,E&&(x+=xw)):ie=!0);var fe=new Request(x,J);try{fe[JS]=!0}catch{}if(!K&&n&&(_e=oo(function(we,be){N=we,U=be})),!x){G(V),N&&N(!1);return}function Oe(we,be){be?R(V,s?0:be,{},s?Sr:we):R(V,s?0:400,{},s?Sr:we)}function Ge(we,be,ze){var Wt=we[Ni],dt=c.fetchOnComplete;dt&&Le(dt)?dt(we,V,ze||Sr,be):R(V,Wt,{},ze||Sr)}try{Yn(fetch(s?x:fe,s?J:null),function(we){if(K&&(t-=H,H=0),!O)if(O=!0,we.rejected)Oe(we.reason&&we.reason[Jo],499),U&&U(we.reason);else{var be=we[qo];try{!s&&!be.ok?(be[Ni]?Oe(be.statusText,be[Ni]):Oe(be.statusText,499),N&&N(!1)):s&&!be.body?(Ge(be,null,Sr),N&&N(!0)):Yn(be.text(),function(ze){Ge(be,P,ze[qo]),N&&N(!0)})}catch(ze){be&&be[Ni]?Oe(Te(ze),be[Ni]):Oe(Te(ze),499),U&&U(ze)}}})}catch(we){O||(Oe(Te(we),499),U&&U(we))}return ie&&!O&&(O=!0,R(V,200,{}),N&&N(!0)),s&&!O&&P[ws]>0&&w&&w.set(function(){O||(O=!0,R(V,500,{}),N&&N(!0))},P[ws]),_e}function ae(P,V,K){var W=Vn(),x=new XDomainRequest,ve=P[mr];x.onload=function(){var k=Hf(x),H=c&&c.xdrOnComplete;H&&Le(H)?H(x,V,P):R(V,200,{},k)},x.onerror=function(){R(V,400,{},s?Sr:RS(x))},x.ontimeout=function(){R(V,500,{})},x.onprogress=function(){};var re=W&&W.location&&W.location.protocol||"",_e=P[sc];if(!_e){G(V);return}if(!s&&_e.lastIndexOf(re,0)!==0){var N="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";pe(o,2,40,". "+N),z(N,V);return}var U=s?_e:_e[Qo](/^(https?:)/,"");x.open(pm,U),P[ws]&&(x[ws]=P[ws]),x.send(ve),s&&K?w&&w.set(function(){x.send(ve)},0):x.send(ve)}function he(){t=0,i=!1,n=!1,o=null,s=null,c=null,f=null,d=null,p=null,_=!1,v=!1,y=!1,g=!1,E=!1,w=null}})}return e.__ieDyn=1,e}(),Ow="on",Iw="attachEvent",Rw="addEventListener",Lw="detachEvent",Mw="removeEventListener",_m="events",mm="visibilitychange",ld="pagehide",Aw="unload",Bw="beforeunload",Vw=Qn("aiEvtPageHide");Qn("aiEvtPageShow");var YB=/\.[\.]+/g,$B=/[\.]+$/,UB=1,cd=ZS("events"),zB=/^([^.]*)(?:\.(.+)|)/;function Fw(e){return e&&e[Qo]?e[Qo](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,rt):e}function vm(e,t){if(t){var n=rt;$e(t)?(n=rt,Se(t,function(o){o=Fw(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=Fw(t),n&&(n[0]!=="."&&(n="."+n),e=(e||rt)+n)}var i=zB.exec(e||rt)||[];return{type:i[1],ns:(i[2]||rt).replace(YB,".").replace($B,rt)[ys](".").sort().join(".")}}function Yw(e,t,n){n===void 0&&(n=!0);var i=cd.get(e,_m,{},n),o=i[t];return o||(o=i[t]=[]),o}function $w(e,t,n,i){e&&t&&t[io]&&(e[Mw]?e[Mw](t[io],n,i):e[Lw]&&e[Lw](Ow+t[io],n))}function HB(e,t,n,i){var o=!1;return e&&t&&t[io]&&n&&(e[Rw]?(e[Rw](t[io],n,i),o=!0):e[Iw]&&(e[Iw](Ow+t[io],n),o=!0)),o}function Uw(e,t,n,i){for(var o=t[Ve];o--;){var s=t[o];s&&(!n.ns||n.ns===s[gS].ns)&&(!i||i(s))&&($w(e,s[gS],s.handler,s.capture),t[vs](o,1))}}function WB(e,t,n){if(t[io])Uw(e,Yw(e,t[io]),t,n);else{var i=cd.get(e,_m,{});Xe(i,function(o,s){Uw(e,s,t,n)}),gi(i)[Ve]===0&&cd.kill(e,_m)}}function ho(e,t){var n;return t?($e(t)?n=[e].concat(t):n=[e,t],n=vm("xx",n).ns[ys](".")):n=e,n}function ki(e,t,n,i,o){o===void 0&&(o=!1);var s=!1;if(e)try{var c=vm(t,i);if(s=HB(e,c,n,o),s&&cd.accept(e)){var f={guid:UB++,evtName:c,handler:n,capture:o};Yw(e,c.type)[ot](f)}}catch{}return s}function Is(e,t,n,i,o){if(o===void 0&&(o=!1),e)try{var s=vm(t,i),c=!1;WB(e,s,function(f){return s.ns&&!n||f.handler===n?(c=!0,!0):!1}),c||$w(e,s,n,o)}catch{}}function ZB(e,t,n){var i=!1,o=Vn();o&&(i=ki(o,e,t,n),i=ki(o.body,e,t,n)||i);var s=on();return s&&(i=ki(s,e,t,n)||i),i}function GB(e,t,n){var i=Vn();i&&(Is(i,e,t,n),Is(i.body,e,t,n));var o=on();o&&Is(o,e,t,n)}function ud(e,t,n,i){var o=!1;return t&&e&&e[Ve]>0&&Se(e,function(s){s&&(!n||dn(n,s)===-1)&&(o=ZB(s,t,i)||o)}),o}function jB(e,t,n,i){var o=!1;return t&&e&&$e(e)&&(o=ud(e,t,n,i),!o&&n&&n[Ve]>0&&(o=ud(e,t,null,i))),o}function gm(e,t,n){e&&$e(e)&&Se(e,function(i){i&&GB(i,t,n)})}function qB(e,t,n){return jB([Bw,Aw,ld],e,t,n)}function KB(e,t){gm([Bw,Aw,ld],e,t)}function ym(e,t,n){function i(c){var f=on();e&&f&&f.visibilityState==="hidden"&&e(c)}var o=ho(Vw,n),s=ud([ld],e,t,o);return(!t||dn(t,mm)===-1)&&(s=ud([mm],i,t,o)||s),!s&&t&&(s=ym(e,null,n)),s}function XB(e,t){var n=ho(Vw,t);gm([ld],e,n),gm([mm],null,n)}var zw="_aiHooks",Hw=["req","rsp","hkErr","fnErr"];function Sm(e,t){if(e)for(var n=0;n<e[Ve]&&!t(e[n],n);n++);}function wm(e,t,n,i,o){o>=0&&o<=2&&Sm(e,function(s,c){var f=s.cbks,d=f[Hw[o]];if(d){t.ctx=function(){var v=i[c]=i[c]||{};return v};try{d[Zo](t.inst,n)}catch(v){var p=t.err;try{var _=f[Hw[2]];_&&(t.err=v,_[Zo](t.inst,n))}catch{}finally{t.err=p}}}})}function JB(e){return function(){var t=this,n=arguments,i=e.h,o={name:e.n,inst:t,ctx:null,set:d},s=[],c=f([o],n);o.evt=Ct("event");function f(_,v){return Sm(v,function(y){_[ot](y)}),_}function d(_,v){n=f([],n),n[_]=v,c=f([o],n)}wm(i,o,c,s,0);var p=e.f;if(p)try{o.rslt=p[Zo](t,n)}catch(_){throw o.err=_,wm(i,o,c,s,3),_}return wm(i,o,c,s,1),o.rslt}}function Em(e,t,n,i){var o=null;return e&&(qn(e,t)?o=e:n&&(o=Em(iA(e),t,i,!1))),o}function QB(e,t,n){return e?Tm(e[Mr],t,n,!1):null}function Ww(e,t,n,i){var o=n&&n[zw];if(!o){o={i:0,n:t,f:n,h:[]};var s=JB(o);s[zw]=o,e[t]=s}var c={id:o.i,cbks:i,rm:function(){var f=this.id;Sm(o.h,function(d,p){if(d.id===f)return o.h[vs](p,1),1})}};return o.i++,o.h[ot](c),c}function Tm(e,t,n,i,o){if(i===void 0&&(i=!0),e&&t&&n){var s=Em(e,t,i,o);if(s){var c=s[t];if(typeof c===uS)return Ww(s,t,c,n)}}return null}function fd(e,t,n,i,o){if(e&&t&&n){var s=Em(e,t,i,o)||e;if(s)return Ww(s,t,s[t],n)}return null}var sa="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Zw="sampleRate",bm="ProcessLegacy",Gw="http.method",Nm="https://dc.services.visualstudio.com",Rs="/v2/track",zr="not_specified",km="iKey",mt=FM({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),Ls="split",Ye="length",Ec="toLowerCase",la="ingestionendpoint",Tc="toString",Cm="removeItem",bc="message",Ms="count",Pm="preTriggerDate",Dm="getUTCDate",dd="stringify",xm="pathname",Nc="match",jw="correlationHeaderExcludePatterns",Hr="name",Wr="properties",Ci="measurements",hd="sizeInBytes",pd="typeName",kc="exceptions",Cc="severityLevel",Om="problemGroup",As="parsedStack",_d="hasFullStack",md="assembly",Pi="fileName",Bs="line",vd="aiDataContract",gd="duration";function qw(e,t,n){var i=t[Ye],o=eV(e,t);if(o[Ye]!==i){for(var s=0,c=o;n[c]!==void 0;)s++,c=Rr(o,0,147)+rV(s);o=c}return o}function eV(e,t){var n;return t&&(t=yt(yn(t)),t[Ye]>150&&(n=Rr(t,0,150),pe(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function Ht(e,t,n){n===void 0&&(n=1024);var i;return t&&(n=n||1024,t=yt(yn(t)),t[Ye]>n&&(i=Rr(t,0,n),pe(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t}function yd(e,t){return Xw(e,t,2048,66)}function Kw(e,t){var n;return t&&t[Ye]>32768&&(n=Rr(t,0,32768),pe(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function tV(e,t){var n;if(t){var i=""+t;i[Ye]>32768&&(n=Rr(i,0,32768),pe(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function ca(e,t){if(t){var n={};Xe(t,function(i,o){if(On(o)&&fc())try{o=vr()[dd](o)}catch(s){pe(e,2,49,"custom property is not valid",{exception:s},!0)}o=Ht(e,o,8192),i=qw(e,i,n),n[i]=o}),t=n}return t}function ua(e,t){if(t){var n={};Xe(t,function(i,o){i=qw(e,i,n),n[i]=o}),t=n}return t}function nV(e,t){return t&&Xw(e,t,128,69)[Tc]()}function Xw(e,t,n,i){var o;return t&&(t=yt(yn(t)),t[Ye]>n&&(o=Rr(t,0,n),pe(e,2,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),o||t}function rV(e){var t="00"+e;return eo(t,t[Ye]-3)}var Jw=on()||{},Qw=0,iV=[null,null,null,null,null];function Im(e){var t=Qw,n=iV,i=n[t];return Jw.createElement?n[t]||(i=n[t]=Jw.createElement("a")):i={host:sV(e)},i.href=e,t++,t>=n[Ye]&&(t=0),Qw=t,i}function oV(e){var t,n=Im(e);return n&&(t=n.href),t}function aV(e,t){return e?e.toUpperCase()+" "+t:t}function sV(e,t){var n=eE(e)||"";if(n){var i=n[Nc](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(i!=null&&i[Ye]>3&&Re(i[2])&&i[2][Ye]>0)return i[2]+(i[3]||"")}return n}function eE(e,t){var n=null;if(e){var i=e[Nc](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(i!=null&&i[Ye]>2&&Re(i[2])&&i[2][Ye]>0&&(n=i[2]||"",i[Ye]>2)){var o=(i[1]||"")[Ec](),s=i[3]||"";(o==="http"&&s===":80"||o==="https"&&s===":443")&&(s=""),n+=s}}return n}var lV=[Nm+Rs,"https://breeze.aimon.applicationinsights.io"+Rs,"https://dc-int.services.visualstudio.com"+Rs],cV="cid-v1:";function Rm(e){return dn(lV,e[Ec]())!==-1}function tE(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[jw]){for(var i=0;i<e.correlationHeaderExcludePatterns[Ye];i++)if(e[jw][i].test(t))return!1}var o=Im(t).host[Ec]();if(o&&(wn(o,":443")!==-1||wn(o,":80")!==-1)&&(o=(eE(t)||"")[Ec]()),(!e||!e.enableCorsCorrelation)&&o&&o!==n)return!1;var s=e&&e.correlationHeaderDomains;if(s){var c;if(Se(s,function(p){var _=new RegExp(p.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));c=c||_.test(o)}),!c)return!1}var f=e&&e.correlationHeaderExcludedDomains;if(!f||f[Ye]===0)return!0;for(var i=0;i<f[Ye];i++){var d=new RegExp(f[i].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(d.test(o))return!1}return o&&o[Ye]>0}function nE(e){if(e){var t=uV(e,mt[1]);if(t&&t!==cV)return t}}function uV(e,t){if(e)for(var n=e[Ls](","),i=0;i<n[Ye];++i){var o=n[i][Ls]("=");if(o[Ye]===2&&o[0]===t)return o[1]}}function fV(e,t,n,i){var o,s=i,c=i;if(t&&t[Ye]>0){var f=Im(t);if(o=f.host,!s)if(f[xm]!=null){var d=f.pathname[Ye]===0?"/":f[xm];d.charAt(0)!=="/"&&(d="/"+d),c=f[xm],s=Ht(e,n?n+" "+d:d)}else s=Ht(e,t)}else o=i,s=i;return{target:o,name:s,data:c}}function Sd(){var e=Si();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return _r()}function In(e,t){var n=null;return e!==0&&t!==0&&!ce(e)&&!ce(t)&&(n=t-e),n}function Lm(e,t){var n=e||{};return{getName:function(){return n[Hr]},setName:function(i){t&&t.setName(i),n[Hr]=i},getTraceId:function(){return n.traceID},setTraceId:function(i){t&&t.setTraceId(i),om(i)&&(n.traceID=i)},getSpanId:function(){return n.parentID},setSpanId:function(i){t&&t.setSpanId(i),am(i)&&(n.parentID=i)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(i){t&&t.setTraceFlags(i),n.traceFlags=i}}}var Pc=pS({LocalStorage:0,SessionStorage:1}),po=void 0,_o=void 0,rE="";function Mm(){return Ed()?wd(Pc.LocalStorage):null}function wd(e){try{if(ce(Xn()))return null;var t=new Date()[Tc](),n=Ct(e===Pc.LocalStorage?"localStorage":"sessionStorage"),i=rE+t;n.setItem(i,t);var o=n.getItem(i)!==t;if(n[Cm](i),!o)return n}catch{}return null}function Am(){return Dc()?wd(Pc.SessionStorage):null}function dV(){po=!1,_o=!1}function Bm(e){rE=e||""}function hV(){po=Ed(!0),_o=Dc(!0)}function Ed(e){return(e||po===void 0)&&(po=!!wd(Pc.LocalStorage)),po}function iE(e,t){var n=Mm();if(n!==null)try{return n.getItem(t)}catch(i){po=!1,pe(e,2,1,"Browser failed read of local storage. "+ft(i),{exception:Te(i)})}return null}function oE(e,t,n){var i=Mm();if(i!==null)try{return i.setItem(t,n),!0}catch(o){po=!1,pe(e,2,3,"Browser failed write to local storage. "+ft(o),{exception:Te(o)})}return!1}function pV(e,t){var n=Mm();if(n!==null)try{return n[Cm](t),!0}catch(i){po=!1,pe(e,2,5,"Browser failed removal of local storage item. "+ft(i),{exception:Te(i)})}return!1}function Dc(e){return(e||_o===void 0)&&(_o=!!wd(Pc.SessionStorage)),_o}function Vm(e,t){var n=Am();if(n!==null)try{return n.getItem(t)}catch(i){_o=!1,pe(e,2,2,"Browser failed read of session storage. "+ft(i),{exception:Te(i)})}return null}function aE(e,t,n){var i=Am();if(i!==null)try{return i.setItem(t,n),!0}catch(o){_o=!1,pe(e,2,4,"Browser failed write to session storage. "+ft(o),{exception:Te(o)})}return!1}function sE(e,t){var n=Am();if(n!==null)try{return n[Cm](t),!0}catch(i){_o=!1,pe(e,2,6,"Browser failed removal of session storage item. "+ft(i),{exception:Te(i)})}return!1}var _V="appInsightsThrottle",mV=function(){function e(t,n){var i=this,o,s,c,f,d,p,_,v=!1,y=!1;E(),i._getDbgPlgTargets=function(){return[_]},i.getConfig=function(){return c},i.canThrottle=function(P){var V=B(P),K=w(P);return C(K,o,V)},i.isTriggered=function(P){return ae(P)},i.isReady=function(){return v},i.flush=function(P){try{var V=he(P);if(V&&V[Ye]>0){var K=V.slice(0);return _[P]=[],Se(K,function(W){g(W.msgID,W[bc],W.severity,!1)}),!0}}catch{}return!1},i.flushAll=function(){try{if(_){var P=!0;return Xe(_,function(V){var K=i.flush(parseInt(V));P=P&&K}),P}}catch{}return!1},i.onReadyState=function(P,V){return V===void 0&&(V=!0),v=ce(P)?!0:P,v&&V?i.flushAll():null},i.sendMessage=function(P,V,K){return g(P,V,K,!0)};function g(P,V,K,W){if(v){var x=A(P);if(!x)return;var ve=w(P),re=B(P),_e=C(ve,o,re),N=!1,U=0,k=ae(P);try{_e&&!k?(U=B0(ve.limit.maxSendNumber,re[Ms]+1),re[Ms]=0,N=!0,d[P]=!0,re[Pm]=new Date):(d[P]=_e,re[Ms]+=1);var H=M(P);R(s,H,re);for(var ie=0;ie<U;ie++)Q(P,s,V,K)}catch{}return{isThrottled:N,throttleNum:U}}else if(W){var O=he(P);O.push({msgID:P,message:V,severity:K})}return null}function E(){s=na(t),d={},f={},_={},c={},T(109),p=ta(n)?n:"",t.addUnloadHook(At(t.config,function(P){var V=P.cfg;o=Ed();var K=V.throttleMgrCfg||{};Xe(K,function(W,x){T(parseInt(W),x)})}))}function w(P){return c[P]||c[109]}function T(P,V){var K,W;try{var x=V||{},ve={};ve.disabled=!!x.disabled;var re=x.interval||{};y=(re==null?void 0:re.daysOfMonth)&&(re==null?void 0:re.daysOfMonth[Ye])>0,ve.interval=b(re);var _e={samplingRate:((K=x.limit)===null||K===void 0?void 0:K.samplingRate)||100,maxSendNumber:((W=x.limit)===null||W===void 0?void 0:W.maxSendNumber)||1};ve.limit=_e,c[P]=ve}catch{}}function b(P){P=P||{};var V=P==null?void 0:P.monthInterval,K=P==null?void 0:P.dayInterval;return ce(V)&&ce(K)&&(P.monthInterval=3,y||(P.daysOfMonth=[28],y=!0)),P={monthInterval:P==null?void 0:P.monthInterval,dayInterval:P==null?void 0:P.dayInterval,daysOfMonth:P==null?void 0:P.daysOfMonth},P}function C(P,V,K){if(P&&!P.disabled&&V&&ta(K)){var W=oe(),x=K.date,ve=P.interval,re=1;if(ve!=null&&ve.monthInterval){var _e=(W.getUTCFullYear()-x.getUTCFullYear())*12+W.getUTCMonth()-x.getUTCMonth();re=F(ve.monthInterval,0,_e)}var N=1;if(y)N=dn(ve.daysOfMonth,W[Dm]());else if(ve!=null&&ve.dayInterval){var U=Fn((W.getTime()-x.getTime())/864e5);N=F(ve.dayInterval,0,U)}return re>=0&&N>=0}return!1}function M(P,V){var K=ta(V)?V:"";return P?_V+K+"-"+P:null}function z(P){try{if(P){var V=new Date;return P.getUTCFullYear()===V.getUTCFullYear()&&P.getUTCMonth()===V.getUTCMonth()&&P[Dm]()===V[Dm]()}}catch{}return!1}function G(P,V,K){try{var W={date:oe(),count:0};if(P){var x=JSON.parse(P),ve={date:oe(x.date)||W.date,count:x[Ms]||W[Ms],preTriggerDate:x.preTriggerDate?oe(x[Pm]):void 0};return ve}else return R(V,K,W),W}catch{}return null}function oe(P){try{if(P){var V=new Date(P);if(!isNaN(V.getDate()))return V}else return new Date}catch{}return null}function R(P,V,K){try{return oE(P,V,yt(JSON[dd](K)))}catch{}return!1}function F(P,V,K){return P<=0?1:K>=V&&(K-V)%P==0?Fn((K-V)/P)+1:-1}function Q(P,V,K,W){pe(V,W||1,P,K)}function A(P){try{var V=w(P);return OA(1e6)<=V.limit.samplingRate}catch{}return!1}function B(P){try{var V=f[P];if(!V){var K=M(P,p);V=G(iE(s,K),s,K),f[P]=V}return f[P]}catch{}return null}function ae(P){var V=d[P];if(ce(V)){V=!1;var K=B(P);K&&(V=z(K[Pm])),d[P]=V}return d[P]}function he(P){return _=_||{},ce(_[P])&&(_[P]=[]),_[P]}}return e}(),vV=";",gV="=";function lE(e){if(!e)return{};var t=e[Ls](vV),n=aM(t,function(o,s){var c=s[Ls](gV);if(c[Ye]===2){var f=c[0][Ec](),d=c[1];o[f]=d}return o},{});if(gi(n)[Ye]>0){if(n.endpointsuffix){var i=n.location?n.location+".":"";n[la]=n[la]||"https://"+i+"dc."+n.endpointsuffix}n[la]=n[la]||Nm,rS(n[la],"/")&&(n[la]=n[la].slice(0,-1))}return n}var yV=function(){function e(t,n,i){var o=this,s=this;s.ver=1,s.sampleRate=100,s.tags={},s[Hr]=Ht(t,i)||zr,s.data=n,s.time=Ns(new Date),s[vd]={time:1,iKey:1,name:1,sampleRate:function(){return o.sampleRate===100?4:1},tags:1,data:1}}return e}(),mo=function(){function e(t,n,i,o){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var s=this;s.ver=2,s[Hr]=Ht(t,n)||zr,s[Wr]=ca(t,i),s[Ci]=ua(t,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),SV=58,wV=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,EV=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,TV=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,bV=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,NV=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,kV=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,CV=/([^\(\s\n]+):([0-9]+)$/,cE="<no_method>",Vs="error",tr="stack",Fm="stackDetails",uE="errorSrc",Ym="message",fE="description",dE=[{re:EV,len:5,m:1,fn:2,ln:3,col:4},{chk:DV,pre:PV,re:TV,len:4,m:1,fn:2,ln:3},{re:bV,len:3,m:1,fn:2,hdl:gE},{re:NV,len:2,fn:1,hdl:gE}];function PV(e){return e.replace(/(\(anonymous\))/,"<anonymous>")}function DV(e){return wn(e,"[native")<0}function $m(e,t){var n=e;return n&&!Re(n)&&(JSON&&JSON[dd]?(n=JSON[dd](e),t&&(!n||n==="{}")&&(Le(e[Tc])?n=e[Tc]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function hE(e,t){var n=e;return e&&(n&&!Re(n)&&(n=e[Ym]||e[fE]||n),n&&!Re(n)&&(n=$m(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&wn(n||"",t)===-1&&(n=t+": "+n),n||""}function xV(e){try{if(On(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function OV(e){try{if(On(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function pE(e){return e&&e.src&&Re(e.src)&&e.obj&&$e(e.obj)}function fa(e){var t=e||"";Re(t)||(Re(t[tr])?t=t[tr]:t=""+t);var n=t[Ls](`
63
+ `);return{src:t,obj:n}}function IV(e){for(var t=[],n=e[Ls](`
64
+ `),i=0;i<n[Ye];i++){var o=n[i];n[i+1]&&(o+="@"+n[i+1],i++),t.push(o)}return{src:e,obj:t}}function _E(e){var t=null;if(e)try{if(e[tr])t=fa(e[tr]);else if(e[Vs]&&e[Vs][tr])t=fa(e[Vs][tr]);else if(e.exception&&e.exception[tr])t=fa(e.exception[tr]);else if(pE(e))t=e;else if(pE(e[Fm]))t=e[Fm];else if(Vn()&&Vn().opera&&e[Ym])t=IV(e[bc]);else if(e.reason&&e.reason[tr])t=fa(e.reason[tr]);else if(Re(e))t=fa(e);else{var n=e[Ym]||e[fE]||"";Re(e[uE])&&(n&&(n+=`
65
+ `),n+=" from "+e[uE]),n&&(t=fa(n))}}catch(i){t=fa(i)}return t||{src:"",obj:null}}function RV(e){var t="";return e&&(e.obj?t=e.obj.join(`
66
+ `):t=e.src||""),t}function LV(e){var t,n=e.obj;if(n&&n[Ye]>0){t=[];var i=0,o=!1,s=0;Se(n,function(w){if(o||VV(w)){var T=yn(w);o=!0;var b=FV(T,i);b&&(s+=b[hd],t.push(b),i++)}});var c=32*1024;if(s>c)for(var f=0,d=t[Ye]-1,p=0,_=f,v=d;f<d;){var y=t[f][hd],g=t[d][hd];if(p+=y+g,p>c){var E=v-_+1;t.splice(_,E);break}_=f,v=d,f++,d--}}return t}function Td(e){var t="";if(e&&(t=e.typeName||e[Hr]||"",!t))try{var n=/function (.{1,200})\(/,i=n.exec(e.constructor[Tc]());t=i&&i[Ye]>1?i[1]:""}catch{}return t}function Um(e){if(e)try{if(!Re(e)){var t=Td(e),n=$m(e,!1);return(!n||n==="{}")&&(e[Vs]&&(e=e[Vs],t=Td(e)),n=$m(e,!0)),wn(n,t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var nr=function(){function e(t,n,i,o,s,c){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var f=this;f.ver=2,OV(n)?(f[kc]=n[kc]||[],f[Wr]=n[Wr],f[Ci]=n[Ci],n[Cc]&&(f[Cc]=n[Cc]),n.id&&(f.id=n.id,n[Wr].id=n.id),n[Om]&&(f[Om]=n[Om]),ce(n.isManual)||(f.isManual=n.isManual)):(i||(i={}),c&&(i.id=c),f[kc]=[mE(t,n,i)],f[Wr]=ca(t,i),f[Ci]=ua(t,o),s&&(f[Cc]=s),c&&(f.id=c))}return e.CreateAutoException=function(t,n,i,o,s,c,f,d){var p=Td(s||c||t);return{message:hE(t,p),url:n,lineNumber:i,columnNumber:o,error:Um(s||c||t),evt:Um(c||t),typeName:p,stackDetails:_E(f||s||c),errorSrc:d}},e.CreateFromInterface=function(t,n,i,o){var s=n[kc]&&Ql(n[kc],function(f){return BV(t,f)}),c=new e(t,En(En({},n),{exceptions:s}),i,o);return c},e.prototype.toInterface=function(){var t=this,n=t.exceptions,i=t.properties,o=t.measurements,s=t.severityLevel,c=t.problemGroup,f=t.id,d=t.isManual,p=n instanceof Array&&Ql(n,function(_){return _.toInterface()})||void 0;return{ver:"4.0",exceptions:p,severityLevel:s,properties:i,measurements:o,problemGroup:c,id:f,isManual:d}},e.CreateSimpleException=function(t,n,i,o,s,c){var f;return{exceptions:[(f={},f[_d]=!0,f.message=t,f.stack=s,f.typeName=n,f)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=Um,e}(),MV=pr({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function AV(){var e=this,t=$e(e[As])&&Ql(e[As],function(i){return $V(i)}),n={id:e.id,outerId:e.outerId,typeName:e[pd],message:e[bc],hasFullStack:e[_d],stack:e[tr],parsedStack:t||void 0};return n}function mE(e,t,n){var i,o,s,c,f,d,p,_;if(xV(t))c=t[pd],f=t[bc],p=t[tr],_=t[As]||[],d=t[_d];else{var v=t,y=v&&v.evt;Op(v)||(v=v[Vs]||y||v),c=Ht(e,Td(v))||zr,f=Kw(e,hE(t||v,c))||zr;var g=t[Fm]||_E(t);_=LV(g),$e(_)&&Ql(_,function(E){E[md]=Ht(e,E[md]),E[Pi]=Ht(e,E[Pi])}),p=tV(e,RV(g)),d=$e(_)&&_[Ye]>0,n&&(n[pd]=n[pd]||c)}return i={},i[vd]=MV,i.id=o,i.outerId=s,i.typeName=c,i.message=f,i[_d]=d,i.stack=p,i.parsedStack=_,i.toInterface=AV,i}function BV(e,t){var n=$e(t[As])&&Ql(t[As],function(o){return YV(o)})||t[As],i=mE(e,En(En({},t),{parsedStack:n}));return i}function vE(e,t){var n=t[Nc](kV);if(n&&n[Ye]>=4)e[Pi]=n[1],e[Bs]=parseInt(n[2]);else{var i=t[Nc](CV);i&&i[Ye]>=3?(e[Pi]=i[1],e[Bs]=parseInt(i[2])):e[Pi]=t}}function gE(e,t,n){var i=e[Pi];t.fn&&n&&n[Ye]>t.fn&&(t.ln&&n[Ye]>t.ln?(i=yt(n[t.fn]||""),e[Bs]=parseInt(yt(n[t.ln]||""))||0):i=yt(n[t.fn]||"")),i&&vE(e,i)}function VV(e){var t=!1;if(e&&Re(e)){var n=yt(e);n&&(t=wV.test(n))}return t}var yE=pr({level:1,method:1,assembly:0,fileName:0,line:0});function FV(e,t){var n,i;if(e&&Re(e)&&yt(e)){i=(n={},n[vd]=yE,n.level=t,n.assembly=yt(e),n.method=cE,n.fileName="",n.line=0,n.sizeInBytes=0,n);for(var o=0;o<dE[Ye];){var s=dE[o];if(s.chk&&!s.chk(e))break;s.pre&&(e=s.pre(e));var c=e[Nc](s.re);if(c&&c[Ye]>=s.len){s.m&&(i.method=yt(c[s.m]||cE)),s.hdl?s.hdl(i,s,c):s.fn&&(s.ln?(i[Pi]=yt(c[s.fn]||""),i[Bs]=parseInt(yt(c[s.ln]||""))||0):vE(i,c[s.fn]||""));break}o++}}return SE(i)}function YV(e){var t,n=(t={},t[vd]=yE,t.level=e.level,t.method=e.method,t.assembly=e[md],t.fileName=e[Pi],t.line=e[Bs],t.sizeInBytes=0,t);return SE(n)}function SE(e){var t=SV;return e&&(t+=e.method[Ye],t+=e.assembly[Ye],t+=e.fileName[Ye],t+=e.level.toString()[Ye],t+=e.line.toString()[Ye],e[hd]=t),e}function $V(e){return{level:e.level,method:e.method,assembly:e[md],fileName:e[Pi],line:e[Bs]}}var UV=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}(),da=function(){function e(t,n,i,o,s,c,f,d,p){this.aiDataContract={ver:1,metrics:1,properties:0};var _=this;_.ver=2;var v=new UV;v[Ms]=o>0?o:void 0,v.max=isNaN(c)||c===null?void 0:c,v.min=isNaN(s)||s===null?void 0:s,v[Hr]=Ht(t,n)||zr,v.value=i,v.stdDev=isNaN(f)||f===null?void 0:f,_.metrics=[v],_[Wr]=ca(t,d),_[Ci]=ua(t,p)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),xc="";function vo(e){(isNaN(e)||e<0)&&(e=0),e=nS(e);var t=xc+e%1e3,n=xc+Fn(e/1e3)%60,i=xc+Fn(e/(1e3*60))%60,o=xc+Fn(e/(1e3*60*60))%24,s=Fn(e/(1e3*60*60*24));return t=t[Ye]===1?"00"+t:t[Ye]===2?"0"+t:t,n=n[Ye]<2?"0"+n:n,i=i[Ye]<2?"0"+i:i,o=o[Ye]<2?"0"+o:o,(s>0?s+".":xc)+o+":"+i+":"+n+"."+t}function zV(e,t,n,i,o){return!o&&Re(e)&&(e==="Script error."||e==="Script error")}var go=function(){function e(t,n,i,o,s,c,f){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var d=this;d.ver=2,d.id=nV(t,f),d.url=yd(t,i),d[Hr]=Ht(t,n)||zr,isNaN(o)||(d[gd]=vo(o)),d[Wr]=ca(t,s),d[Ci]=ua(t,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),ha=function(){function e(t,n,i,o,s,c,f,d,p,_,v,y){p===void 0&&(p="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var g=this;g.ver=2,g.id=n,g[gd]=vo(s),g.success=c,g.resultCode=f+"",g.type=Ht(t,p);var E=fV(t,i,d,o);g.data=yd(t,o)||E.data,g.target=Ht(t,E.target),_&&(g.target="".concat(g.target," | ").concat(_)),g[Hr]=Ht(t,E[Hr]),g[Wr]=ca(t,v),g[Ci]=ua(t,y)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Fs=function(){function e(t,n,i,o,s){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var c=this;c.ver=2,n=n||zr,c[bc]=Kw(t,n),c[Wr]=ca(t,o),c[Ci]=ua(t,s),i&&(c[Cc]=i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Ys=function(){function e(t,n,i,o,s,c,f){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var d=this;d.ver=2,d.url=yd(t,i),d[Hr]=Ht(t,n)||zr,d[Wr]=ca(t,s),d[Ci]=ua(t,c),f&&(d.domProcessing=f.domProcessing,d[gd]=f[gd],d.networkConnect=f.networkConnect,d.perfTotal=f.perfTotal,d.receivedResponse=f.receivedResponse,d.sentRequest=f.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),pa=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function yo(e){var t="ai."+e+".";return function(n){return t+n}}var Oc=yo("application"),Kt=yo("device"),bd=yo("location"),$s=yo("operation"),zm=yo("session"),So=yo("user"),_a=yo("cloud"),Ic=yo("internal"),wE=function(e){Ei(t,e);function t(){return e.call(this)||this}return t}(aA({applicationVersion:Oc("ver"),applicationBuild:Oc("build"),applicationTypeId:Oc("typeId"),applicationId:Oc("applicationId"),applicationLayer:Oc("layer"),deviceId:Kt("id"),deviceIp:Kt("ip"),deviceLanguage:Kt("language"),deviceLocale:Kt("locale"),deviceModel:Kt("model"),deviceFriendlyName:Kt("friendlyName"),deviceNetwork:Kt("network"),deviceNetworkName:Kt("networkName"),deviceOEMName:Kt("oemName"),deviceOS:Kt("os"),deviceOSVersion:Kt("osVersion"),deviceRoleInstance:Kt("roleInstance"),deviceRoleName:Kt("roleName"),deviceScreenResolution:Kt("screenResolution"),deviceType:Kt("type"),deviceMachineName:Kt("machineName"),deviceVMName:Kt("vmName"),deviceBrowser:Kt("browser"),deviceBrowserVersion:Kt("browserVersion"),locationIp:bd("ip"),locationCountry:bd("country"),locationProvince:bd("province"),locationCity:bd("city"),operationId:$s("id"),operationName:$s("name"),operationParentId:$s("parentId"),operationRootId:$s("rootId"),operationSyntheticSource:$s("syntheticSource"),operationCorrelationVector:$s("correlationVector"),sessionId:zm("id"),sessionIsFirst:zm("isFirst"),sessionIsNew:zm("isNew"),userAccountAcquisitionDate:So("accountAcquisitionDate"),userAccountId:So("accountId"),userAgent:So("userAgent"),userId:So("id"),userStoreRegion:So("storeRegion"),userAuthUserId:So("authUserId"),userAnonymousUserAcquisitionDate:So("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:So("authUserAcquisitionDate"),cloudName:_a("name"),cloudRole:_a("role"),cloudRoleVer:_a("roleVer"),cloudRoleInstance:_a("roleInstance"),cloudEnvironment:_a("environment"),cloudLocation:_a("location"),cloudDeploymentUnit:_a("deploymentUnit"),internalNodeName:Ic("nodeName"),internalSdkVersion:Ic("sdkVersion"),internalAgentVersion:Ic("agentVersion"),internalSnippet:Ic("snippet"),internalSdkSrc:Ic("sdkSrc")}));function wo(e,t,n,i,o,s){n=Ht(i,n)||zr,(ce(e)||ce(t)||ce(n))&&Bn("Input doesn't contain all required fields");var c="";e[km]&&(c=e[km],delete e[km]);var f={name:n,time:Ns(new Date),iKey:c,ext:s||{},tags:[],data:{},baseType:t,baseData:e};return ce(o)||Xe(o,function(d,p){f.data[d]=p}),f}var $n={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},wt=new wE;function Rc(e){var t=null;if(Le(Event))t=new Event(e);else{var n=on();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}function EE(e,t){Is(e,null,null,t)}function HV(e){var t=on(),n=Lr(),i=!1,o=[],s=1;n&&!ce(n.onLine)&&!n.onLine&&(s=2);var c=0,f=y(),d=ho(Qn("OfflineListener"),e);try{if(_(Vn())&&(i=!0),t){var p=t.body||t;p.ononline&&_(p)&&(i=!0)}}catch{i=!1}function _(M){var z=!1;return M&&(z=ki(M,"online",w,d),z&&ki(M,"offline",T,d)),z}function v(){return f}function y(){return!(c===2||s===2)}function g(){var M=y();f!==M&&(f=M,Se(o,function(z){var G={isOnline:f,rState:s,uState:c};try{z(G)}catch{}}))}function E(M){c=M,g()}function w(){s=1,g()}function T(){s=2,g()}function b(){var M=Vn();if(M&&i){if(EE(M,d),t){var z=t.body||t;It(z.ononline)||EE(z,d)}i=!1}}function C(M){return o.push(M),{rm:function(){var z=o.indexOf(M);if(z>-1)return o.splice(z,1)}}}return{isOnline:v,isListening:function(){return i},unload:b,addListener:C,setOnlineState:E}}var Nd="AppInsightsPropertiesPlugin",TE="AppInsightsChannelPlugin",bE="ApplicationInsightsAnalytics",kd="toString",Hm="isStorageUseDisabled",Us="_addHook",an="core",Eo="dataType",ma="envelopeType",Un="diagLog",va="track",Cd="trackPageView",Wm="trackPreviousPageVisit",ga="sendPageViewInternal",zs="startTime",Lc="properties",Zr="duration",Zm="sendPageViewPerformanceInternal",Gm="populatePageViewPerformanceEvent",Hs="href",NE="sendExceptionInternal",Mc="error",jm="lineNumber",qm="columnNumber",Km="CreateAutoException",Pd="addTelemetryInitializer",WV="overridePageViewDuration",Xm="autoExceptionInstrumented",kE="autoTrackPageVisitTime",CE="isBrowserLinkTrackingEnabled",Ac="length",PE="enableAutoRouteTracking",DE="enableUnhandledPromiseRejectionTracking",Jm="autoUnhandledPromiseInstrumented",Qm="getEntriesByType",xE="isPerformanceTimingSupported",OE="getPerformanceTiming",Dd="navigationStart",ev="shouldCollectDuration",IE="isPerformanceTimingDataReady",Bc="responseStart",ZV="requestStart",xd="loadEventEnd",tv="responseEnd",Od="connectEnd",GV=function(){function e(t,n,i,o){St(e,this,function(s){var c=null,f=[],d=!1,p=!1,_;i&&(_=i.logger);function v(E){i&&i.flush(E,function(){})}function y(){c||(c=Jn(function(){c=null;var E=f.slice(0),w=!1;f=[],Se(E,function(T){T()?w=!0:f.push(T)}),f[Ac]>0&&y(),w&&v(!0)},100))}function g(E){f.push(E),y()}s[Cd]=function(E,w){var T=E.name;if(ce(T)||typeof T!="string"){var b=on();T=E.name=b&&b.title||""}var C=E.uri;if(ce(C)||typeof C!="string"){var M=$r();C=E.uri=M&&M[Hs]||""}if(!p){var z=Si(),G=z&&z[Qm]&&z[Qm]("navigation");if(G&&G[0]&&!It(z.timeOrigin)){var oe=G[0].loadEventStart;E[zs]=new Date(z.timeOrigin+oe)}else{var R=(w||E[Lc]||{})[Zr]||0;E[zs]=new Date(new Date().getTime()-R)}p=!0}if(!o[xE]()){t[ga](E,w),v(!0),H0()||pe(_,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var F=!1,Q,A=o[OE]()[Dd];A>0&&(Q=In(A,+new Date),o[ev](Q)||(Q=void 0));var B;!ce(w)&&!ce(w[Zr])&&(B=w[Zr]),(n||!isNaN(B))&&(isNaN(B)&&(w||(w={}),w[Zr]=Q),t[ga](E,w),v(!0),F=!0);var ae=6e4;w||(w={}),g(function(){var he=!1;try{if(o[IE]()){he=!0;var P={name:T,uri:C};o[Gm](P),!P.isValid&&!F?(w[Zr]=Q,t[ga](E,w)):(F||(w[Zr]=P.durationMs,t[ga](E,w)),d||(t[Zm](P,w),d=!0))}else A>0&&In(A,+new Date)>ae&&(he=!0,F||(w[Zr]=ae,t[ga](E,w)))}catch(V){pe(_,1,38,"trackPageView failed on page load calculation: "+ft(V),{exception:Te(V)})}return he})},s.teardown=function(E,w){if(c){c.cancel(),c=null;var T=f.slice(0);f=[],Se(T,function(b){b()})}}})}return e.__ieDyn=1,e}(),jV=36e5,RE=["googlebot","adsbot-google","apis-google","mediapartners-google"];function LE(){var e=Si();return e&&!!e.timing}function qV(){var e=Si();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[Ac]>0}function KV(){var e=Si(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[Dd]>0&&t[Bc]>0&&t[ZV]>0&&t[xd]>0&&t[tv]>0&&t[Od]>0&&t.domLoading>0}function ME(){return LE()?Si().timing:null}function XV(){return qV()?Si()[Qm]("navigation")[0]:null}function JV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Lr()||{},i=n.userAgent,o=!1;if(i)for(var s=0;s<RE[Ac];s++)o=o||wn(i.toLowerCase(),RE[s])!==-1;if(o)return!1;for(var s=0;s<e[Ac];s++)if(e[s]<0||e[s]>=jV)return!1;return!0}var QV=function(){function e(t){var n=na(t);St(e,this,function(i){i[Gm]=function(o){o.isValid=!1;var s=XV(),c=ME(),f=0,d=0,p=0,_=0,v=0;(s||c)&&(s?(f=s[Zr],d=s[zs]===0?s[Od]:In(s[zs],s[Od]),p=In(s.requestStart,s[Bc]),_=In(s[Bc],s[tv]),v=In(s.responseEnd,s[xd])):(f=In(c[Dd],c[xd]),d=In(c[Dd],c[Od]),p=In(c.requestStart,c[Bc]),_=In(c[Bc],c[tv]),v=In(c.responseEnd,c[xd])),f===0?pe(n,2,10,"error calculating page view performance.",{total:f,network:d,request:p,response:_,dom:v}):i[ev](f,d,p,_,v)?f<Fn(d)+Fn(p)+Fn(_)+Fn(v)?pe(n,2,8,"client performance math error.",{total:f,network:d,request:p,response:_,dom:v}):(o.durationMs=f,o.perfTotal=o[Zr]=vo(f),o.networkConnect=vo(d),o.sentRequest=vo(p),o.receivedResponse=vo(_),o.domProcessing=vo(v),o.isValid=!0):pe(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:f,network:d,request:p,response:_,dom:v}))},i[OE]=ME,i[xE]=LE,i[IE]=KV,i[ev]=JV})}return e.__ieDyn=1,e}(),eF=function(){function e(t,n){var i="prevPageVisitData";St(e,this,function(o){o[Wm]=function(f,d){try{var p=s(f,d);p&&n(p.pageName,p.pageUrl,p.pageVisitTime)}catch(_){ra(t,"Auto track page visit time failed, metric will not be collected: "+Te(_))}};function s(f,d){var p=null;try{if(p=c(),Dc()){Vm(t,i)!=null&&Bn("Cannot call startPageVisit consecutively without first calling stopPageVisit");var _=vr().stringify(new tF(f,d));aE(t,i,_)}}catch(v){ra(t,"Call to restart failed: "+Te(v)),p=null}return p}function c(){var f=null;try{if(Dc()){var d=_r(),p=Vm(t,i);p&&fc()&&(f=vr().parse(p),f.pageVisitTime=d-f.pageVisitStartTime,sE(t,i))}}catch(_){ra(t,"Stop page visit timer failed: "+Te(_)),f=null}return f}tt(o,"_logger",{g:function(){return t}}),tt(o,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),tF=function(){function e(t,n){this.pageVisitStartTime=_r(),this.pageName=t,this.pageUrl=n}return e}(),AE=function(){function e(t,n){var i=this,o={};i.start=function(s){typeof o[s]<"u"&&pe(t,2,62,"start was called more than once for this event without calling stop.",{name:s,key:s},!0),o[s]=+new Date},i.stop=function(s,c,f,d){var p=o[s];if(isNaN(p))pe(t,2,63,"stop was called without a corresponding start.",{name:s,key:s},!0);else{var _=+new Date,v=In(p,_);i.action(s,c,v,f,d)}delete o[s],o[s]=void 0}}return e}(),Nn,nF="event";function Vc(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function rF(e){if(e&&e.reason){var t=e.reason;return!Re(t)&&Le(t[kd])?t[kd]():Te(t)}return e||""}var BE=6e4,iF=ql((Nn={sessionRenewalMs:QS(VE,30*60*1e3),sessionExpirationMs:QS(VE,24*60*60*1e3),disableExceptionTracking:zt()},Nn[kE]=zt(),Nn[WV]=zt(),Nn[DE]=zt(),Nn[Jm]=!1,Nn.samplingPercentage=Xf(oF,100),Nn[Hm]=zt(),Nn[CE]=zt(),Nn[PE]=zt(),Nn.namePrefix=jA(),Nn.enableDebug=zt(),Nn.disableFlushOnBeforeUnload=zt(),Nn.disableFlushOnUnload=zt(!1,"disableFlushOnBeforeUnload"),Nn.expCfg=gr({inclScripts:!1,expLog:void 0,maxLogs:50}),Nn));function VE(e,t){return e=e||t,e<BE&&(e=BE),+e}function oF(e){return!isNaN(e)&&e>0&&e<=100}function aF(e){It(e[Hm])||(e[Hm]?dV():hV())}var sF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.identifier=bE,n.priority=180,n.autoRoutePVDelay=500;var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R;return St(t,n,function(F,Q){var A=Q[Us];_e(),F.getCookieMgr=function(){return tm(F[an])},F.processTelemetry=function(N,U){F.processNext(N,U)},F.trackEvent=function(N,U){try{var k=wo(N,mo[Eo],mo[ma],F[Un](),U);F[an][va](k)}catch(H){re(2,39,"trackTrace failed, trace will not be collected: "+ft(H),{exception:Te(H)})}},F.startTrackEvent=function(N){try{i.start(N)}catch(U){re(1,29,"startTrackEvent failed, event will not be collected: "+ft(U),{exception:Te(U)})}},F.stopTrackEvent=function(N,U,k){try{i.stop(N,void 0,U,k)}catch(H){re(1,30,"stopTrackEvent failed, event will not be collected: "+ft(H),{exception:Te(H)})}},F.trackTrace=function(N,U){try{var k=wo(N,Fs[Eo],Fs[ma],F[Un](),U);F[an][va](k)}catch(H){re(2,39,"trackTrace failed, trace will not be collected: "+ft(H),{exception:Te(H)})}},F.trackMetric=function(N,U){try{var k=wo(N,da[Eo],da[ma],F[Un](),U);F[an][va](k)}catch(H){re(1,36,"trackMetric failed, metric will not be collected: "+ft(H),{exception:Te(H)})}},F[Cd]=function(N,U){try{var k=N||{};s[Cd](k,En(En(En({},k.properties),k.measurements),U)),C&&f[Wm](k.name,k.uri)}catch(H){re(1,37,"trackPageView failed, page view will not be collected: "+ft(H),{exception:Te(H)})}},F[ga]=function(N,U,k){var H=on();if(H&&(N.refUri=N.refUri===void 0?H.referrer:N.refUri),ce(N[zs])){var ie=(U||N[Lc]||{})[Zr]||0;N[zs]=new Date(new Date().getTime()-ie)}var O=wo(N,go[Eo],go[ma],F[Un](),U,k);F[an][va](O)},F[Zm]=function(N,U,k){var H=wo(N,Ys[Eo],Ys[ma],F[Un](),U,k);F[an][va](H)},F.trackPageViewPerformance=function(N,U){var k=N||{};try{c[Gm](k),F[Zm](k,U)}catch(H){re(1,37,"trackPageViewPerformance failed, page view will not be collected: "+ft(H),{exception:Te(H)})}},F.startTrackPage=function(N){try{if(typeof N!="string"){var U=on();N=U&&U.title||""}o.start(N)}catch(k){re(1,31,"startTrackPage failed, page view may not be collected: "+ft(k),{exception:Te(k)})}},F.stopTrackPage=function(N,U,k,H){try{if(typeof N!="string"){var ie=on();N=ie&&ie.title||""}if(typeof U!="string"){var O=$r();U=O&&O[Hs]||""}o.stop(N,U,k,H),C&&f[Wm](N,U)}catch(X){re(1,32,"stopTrackPage failed, page view will not be collected: "+ft(X),{exception:Te(X)})}},F[NE]=function(N,U,k){var H=N&&(N.exception||N[Mc])||Op(N)&&N||{name:N&&typeof N,message:N||zr};N=N||{};var ie=new nr(F[Un](),H,N[Lc]||U,N.measurements,N.severityLevel,N.id).toInterface(),O=on();if(O&&(M!=null&&M.inclScripts)){var X=vB(O);ie[Lc].exceptionScripts=JSON.stringify(X)}if(M!=null&&M.expLog){var J=M.expLog();J&&J.logs&&$e(J.logs)&&(ie[Lc].exceptionLog=J.logs.slice(0,M.maxLogs).join(`
67
+ `))}var fe=wo(ie,nr[Eo],nr[ma],F[Un](),U,k);F[an][va](fe)},F.trackException=function(N,U){N&&!N.exception&&N[Mc]&&(N.exception=N[Mc]);try{F[NE](N,U)}catch(k){re(1,35,"trackException failed, exception will not be collected: "+ft(k),{exception:Te(k)})}},F._onerror=function(N){var U=N&&N[Mc],k=N&&N.evt;try{if(!k){var H=Vn();H&&(k=H[nF])}var ie=N&&N.url||(on()||{}).URL,O=N.errorSrc||"window.onerror@"+ie+":"+(N[jm]||0)+":"+(N[qm]||0),X={errorSrc:O,url:ie,lineNumber:N[jm]||0,columnNumber:N[qm]||0,message:N.message};zV(N.message,N.url,N.lineNumber,N.columnNumber,N[Mc])?P(nr[Km]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ie,N[jm]||0,N[qm]||0,U,k,null,O),X):(N.errorSrc||(N.errorSrc=O),F.trackException({exception:N,severityLevel:3},X))}catch(fe){var J=U?U.name+", "+U.message:"null";re(1,11,"_onError threw exception while logging error, error will not be collected: "+ft(fe),{exception:Te(fe),errorString:J})}},F[Pd]=function(N){if(F[an])return F[an][Pd](N);d||(d=[]),d.push(N)},F.initialize=function(N,U,k,H){if(!F.isInitialized()){ce(U)&&Bn("Error initializing"),Q.initialize(N,U,k,H);try{oe=ho(Qn(F.identifier),U.evtNamespace&&U.evtNamespace()),d&&(Se(d,function(ie){U[Pd](ie)}),d=null),B(N),c=new QV(F[an]),s=new GV(F,b.overridePageViewDuration,F[an],c),f=new eF(F[Un](),function(ie,O,X){return ae(ie,O,X)}),i=new AE(F[Un](),"trackEvent"),i.action=function(ie,O,X,J,fe){J||(J={}),fe||(fe={}),J.duration=X[kd](),F.trackEvent({name:ie,properties:J,measurements:fe})},o=new AE(F[Un](),"trackPageView"),o.action=function(ie,O,X,J,fe){ce(J)&&(J={}),J.duration=X[kd]();var Oe={name:ie,uri:O,properties:J,measurements:fe};F[ga](Oe,J)},pf()&&(V(),K())}catch(ie){throw F.setInitialized(!1),ie}}},F._doTeardown=function(N,U){s&&s.teardown(N,U),Is(window,null,null,oe),_e()},F._getDbgPlgTargets=function(){return[R,E]};function B(N){var U=F.identifier,k=F[an];F[Us](At(N,function(){var H=yr(null,N,k);b=H.getExtCfg(U,iF),E=E||N[Xm]||b[Xm],M=b.expCfg,C=b[kE],N.storagePrefix&&Bm(N.storagePrefix),aF(b),p=b[CE],he()}))}function ae(N,U,k){var H={PageName:N,PageUrl:U};F.trackMetric({name:"PageVisitTime",average:k,max:k,min:k,sampleCount:1},H)}function he(){if(!_&&p){var N=["/browserLinkSignalR/","/__browserLink/"],U=function(k){if(p&&k.baseType===ha[Eo]){var H=k.baseData;if(H){for(var ie=0;ie<N[Ac];ie++)if(H.target&&wn(H.target,N[ie])>=0)return!1}}return!0};F[Us](F[Pd](U)),_=!0}}function P(N,U){var k=wo(N,nr[Eo],nr[ma],F[Un](),U);F[an][va](k)}function V(){var N=Vn(),U=$r(!0);F[Us](At(b,function(){g=b.disableExceptionTracking,!g&&!E&&!b[Xm]&&(A(fd(N,"onerror",{ns:oe,rsp:function(k,H,ie,O,X,J){!g&&k.rslt!==!0&&F._onerror(nr[Km](H,ie,O,X,J,k.evt))}},!1)),R++,E=!0)})),ve(N,U)}function K(){var N=Vn(),U=$r(!0);F[Us](At(b,function(){if(v=b[PE]===!0,N&&v&&!y&&tM()){var k=z0();Le(k.pushState)&&Le(k.replaceState)&&typeof Event!==f_&&x(N,k,U)}}))}function W(){var N=null;if(F[an]&&F[an].getTraceCtx&&(N=F[an].getTraceCtx(!1)),!N){var U=F[an].getPlugin(Nd);if(U){var k=U.plugin.context;k&&(N=Lm(k.telemetryTrace))}}return N}function x(N,U,k){if(y)return;var H=b.namePrefix||"";function ie(){v&&Vc(N,Rc(H+"locationchange"))}function O(){if(G&&(z=G),G=k&&k[Hs]||"",v){var X=W();if(X){X.setTraceId(co());var J="_unknown_";k&&k.pathname&&(J=k.pathname+(k.hash||"")),X.setName(Ht(F[Un](),J))}Jn((function(fe){F[Cd]({refUri:fe,properties:{duration:0}})}).bind(F,z),F.autoRoutePVDelay)}}A(fd(U,"pushState",{ns:oe,rsp:function(){v&&(Vc(N,Rc(H+"pushState")),Vc(N,Rc(H+"locationchange")))}},!0)),A(fd(U,"replaceState",{ns:oe,rsp:function(){v&&(Vc(N,Rc(H+"replaceState")),Vc(N,Rc(H+"locationchange")))}},!0)),ki(N,H+"popstate",ie,oe),ki(N,H+"locationchange",O,oe),y=!0}function ve(N,U){F[Us](At(b,function(){w=b[DE]===!0,E=E||b[Jm],w&&!T&&(A(fd(N,"onunhandledrejection",{ns:oe,rsp:function(k,H){w&&k.rslt!==!0&&F._onerror(nr[Km](rF(H),U?U[Hs]:"",0,0,H,k.evt))}},!1)),R++,b[Jm]=T=!0)}))}function re(N,U,k,H,ie){F[Un]().throwInternal(N,U,k,H,ie)}function _e(){i=null,o=null,s=null,c=null,f=null,d=null,p=!1,_=!1,v=!1,y=!1,g=!1,E=!1,w=!1,T=!1,C=!1;var N=$r(!0);z=N&&N[Hs]||"",G=null,oe=null,b=null,R=0,tt(F,"config",{g:function(){return b}})}tt(F,"_pageViewManager",{g:function(){return s}}),tt(F,"_pageViewPerformanceManager",{g:function(){return c}}),tt(F,"_pageVisitTimeManager",{g:function(){return f}}),tt(F,"_evtNamespace",{g:function(){return"."+oe}})}),n}return t.Version="3.3.7",t}(Os),Id="featureOptIn",FE="scheduleFetchTimeout";function YE(e,t,n,i){try{var o=n>i;o&&(e=null);var s=n==0?yM({},e):e;return s&&t&&!o&&Xe(s,function(c){var f=t[c];f&&(On(s[c])&&On(f)?s[c]=YE(s[c],f,++n,i):delete s[c])}),s}catch{}return e}var Ws="featureOptIn.",$E=".mode",UE=".onCfg",zE=".offCfg";function lF(e,t,n){var i;if(!t||!t.enabled)return null;var o=(t[Id]||{})[e]||{mode:1},s=o.mode,c=o.onCfg,f=o.offCfg,d=(n||{})[e]||{mode:2},p=d.mode,_=d.onCfg,v=d.offCfg,y=!!d.blockCdnCfg,g=Ws+e+$E,E=Ws+e+UE,w=Ws+e+zE,T=p,b=_,C=v;return y||(s===4||s===5?(T=s==4?3:2,b=c||_,C=f||v):s===2||p===2?(T=2,b=_||c,C=v||f):s===3?(T=3,b=_||c,C=v||f):s===1&&p===1&&(T=1)),i={},i[g]=T,i[E]=b,i[w]=C,i}function cF(e,t){try{if(!e||!e.enabled)return null;if(!e[Id])return e.config;var n=e[Id],i=e.config||{};return Xe(n,function(o){var s=lF(o,e,t.config[Id]);ce(s)||(Xe(s,function(c,f){tS(i,c,f)}),uF(o,s,i))}),i}catch{}return null}function uF(e,t,n){var i=t[Ws+e+$E],o=t[Ws+e+UE],s=t[Ws+e+zE],c=null;i===3&&(c=o),i===2&&(c=s),c&&Xe(c,function(f,d){tS(n,f,d)})}var Fc,fF="ai_cfgsync",HE="GET",dF=18e5,Zs=void 0,hF={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},pF=ql((Fc={syncMode:1,blkCdnCfg:Zs,customEvtName:Zs,cfgUrl:Zs,overrideSyncFn:Zs,overrideFetchFn:Zs,onCfgChangeReceive:Zs},Fc[FE]=dF,Fc.nonOverrideConfigs=hF,Fc.enableAjax=!1,Fc)),_F=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=198,n.identifier="AppInsightsCfgSyncPlugin";var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M=!1,z;return St(t,n,function(G,oe){R(),G.initialize=function(N,U,k,H){oe.initialize(N,U,k,H),c=ho(Qn(G.identifier),U.evtNamespace&&U.evtNamespace()),F(N)},G.getCfg=function(){return o},G.pause=function(){M=!0,_e()},G.resume=function(){M=!1,re()},G.setCfg=function(N){return Q(N)},G.sync=function(N){return B(N)},G.updateEventListenerName=function(N){return ae(N)},G._doTeardown=function(N,U){A(),_e(),R()},G._getDbgPlgTargets=function(){return[_,p,s,v,w]};function R(){o=null,s=null,c=null,f=null,p=null,_=null,w=null,d=null,y=null,g=null,v=null,z=!1,b=null,C=null,E=null}function F(N){var U=G.identifier,k=G.core;G._addHook(At(N,function(){var H=yr(null,N,k);i=H.getExtCfg(U,pF);var ie=v;v=!!i.blkCdnCfg,z=!!i.enableAjax,!ce(ie)&&ie!==v&&(!v&&f?T&&T(f,K,_):_e()),ce(p)&&(p=i.syncMode===2),ce(_)&&(_=i.syncMode===1);var O=i.customEvtName||fF;s!==O&&(p?ae(O):(A(),s=O)),ce(f)&&(f=i.cfgUrl),f||(o=N,_&&B())})),C=i.overrideSyncFn,b=i.overrideFetchFn,E=i.onCfgChangeReceive,w=i.nonOverrideConfigs,y=i[FE],T=he(),g=0,f&&!v&&T&&T(f,K,_)}function Q(N,U){if(N){if(o=N,U&&!M)return B();if(p&&!M)return G.core.updateCfg(N),!0}return!1}function A(){try{var N=Xn();N&&Is(N,null,null,c)}catch{}}function B(N){try{return C&&Le(C)?C(o,N):PA(s,o,N)}catch{}return!1}function ae(N){try{return A(),N&&(s=N,x()),!0}catch{}return!1}function he(){var N=b;return ce(N)&&(Y_()?N=P:Zf()&&(N=V)),N}function P(N,U,k){var H=Xn(),ie=H&&H.fetch||null;if(N&&ie&&Le(ie))try{var O={method:HE};z||(O[sa]=!0);var X=new Request(N,O);if(!z)try{X[sa]=!0}catch{}Yn(fetch(X),function(J){var fe=J.value;J.rejected?W(U,400):fe.ok?Yn(fe.text(),function(Oe){W(U,fe.status,Oe.value,k)}):W(U,fe.status,null,k)})}catch{}}function V(N,U,k){try{var H=new XMLHttpRequest;z||(H[sa]=!0),H.open(HE,N),H.onreadystatechange=function(){H.readyState===XMLHttpRequest.DONE&&W(U,H.status,H.responseText,k)},H.onerror=function(){W(U,400)},H.ontimeout=function(){W(U,400)},H.send()}catch{}}function K(N,U,k){try{if(N>=200&&N<400&&U){g=0;var H=vr();if(H){var ie=H.parse(U),O=cF(ie,G.core),X=O&&Sn(O)&&ve(O);X&&Q(X,k)}}else g++;g<3&&re()}catch{}}function W(N,U,k,H){try{N(U,k,H)}catch{}}function x(){if(p){var N=Xn();if(N)try{ki(N,s,function(U){var k=U&&U.detail;if(E&&k)E(k);else{var H=k&&k.cfg,ie=H&&Sn(H)&&ve(H);ie&&Q(ie)}},c,!0)}catch{}}}function ve(N,U){var k=null;try{N&&(k=YE(N,w,0,5))}catch{}return k}function re(){!d&&y&&(d=Jn(function(){d=null,T(f,K,_)},y),d.unref())}function _e(){d&&d.cancel(),d=null,g=0}G.processTelemetry=function(N,U){G.processNext(N,U)}}),n}return t.__ieDyn=1,t}(Os),ya="duration",sn="tags",nv="deviceType",zn="data",Di="name",Yc="traceID",Je="length",$c="stringify",Sa="measurements",Gr="dataType",wa="envelopeType",Ea="toString",Ta="enqueue",ba="count",xi="push",rv="emitLineDelimitedJson",Gs="clear",Rd="markAsSent",Uc="clearSent",iv="bufferOverride",zc="BUFFER_KEY",To="SENT_BUFFER_KEY",js="concat",Hc="MAX_BUFFER_SIZE",Wc="triggerSend",pn="diagLog",ov="initialize",Zc="_sender",Gc="endpointUrl",jc="instrumentationKey",av="customHeaders",WE="maxBatchSizeInBytes",sv="onunloadDisableBeacon",lv="isBeaconApiDisabled",ZE="alwaysUseXhrOverride",GE="enableSessionStorageBuffer",jr="_buffer",jE="onunloadDisableFetch",qE="disableSendBeaconSplit",Ld="getSenderInst",Na="_onError",cv="_onPartialSuccess",Md="_onSuccess",uv="itemsReceived",fv="itemsAccepted",dv="baseType",Ad="sampleRate",mF="getHashCodeScore",hv="baseType",Dt="baseData",en="properties",KE="true";function Bt(e,t,n){return gt(e,t,n,sf)}function vF(e,t,n){var i=n[sn]=n[sn]||{},o=t.ext=t.ext||{},s=t[sn]=t[sn]||[],c=o.user;c&&(Bt(i,wt.userAuthUserId,c.authId),Bt(i,wt.userId,c.id||c.localId));var f=o.app;f&&Bt(i,wt.sessionId,f.sesId);var d=o.device;d&&(Bt(i,wt.deviceId,d.id||d.localId),Bt(i,wt[nv],d.deviceClass),Bt(i,wt.deviceIp,d.ip),Bt(i,wt.deviceModel,d.model),Bt(i,wt[nv],d[nv]));var p=t.ext.web;if(p){Bt(i,wt.deviceLanguage,p.browserLang),Bt(i,wt.deviceBrowserVersion,p.browserVer),Bt(i,wt.deviceBrowser,p.browser);var _=n[zn]=n[zn]||{},v=_[Dt]=_[Dt]||{},y=v[en]=v[en]||{};Bt(y,"domain",p.domain),Bt(y,"isManual",p.isManual?KE:null),Bt(y,"screenRes",p.screenRes),Bt(y,"userConsent",p.userConsent?KE:null)}var g=o.os;g&&(Bt(i,wt.deviceOS,g[Di]),Bt(i,wt.deviceOSVersion,g.osVer));var E=o.trace;E&&(Bt(i,wt.operationParentId,E.parentID),Bt(i,wt.operationName,Ht(e,E[Di])),Bt(i,wt.operationId,E[Yc]));for(var w={},T=s[Je]-1;T>=0;T--){var b=s[T];Xe(b,function(M,z){w[M]=z}),s.splice(T,1)}Xe(s,function(M,z){w[M]=z});var C=En(En({},i),w);C[wt.internalSdkVersion]||(C[wt.internalSdkVersion]=Ht(e,"javascript:".concat(gF.Version),64)),n[sn]=OS(C)}function bo(e,t,n){ce(e)||Xe(e,function(i,o){jl(o)?n[i]=o:Re(o)?t[i]=o:fc()&&(t[i]=vr()[$c](o))})}function ka(e,t){ce(e)||Xe(e,function(n,i){e[n]=i||t})}function Ca(e,t,n,i){var o=new yV(e,i,t);Bt(o,"sampleRate",n[Zw]),(n[Dt]||{}).startTime&&(o.time=Ns(n[Dt].startTime)),o.iKey=n.iKey;var s=n.iKey.replace(/-/g,"");return o[Di]=o[Di].replace("{0}",s),vF(e,n,o),n[sn]=n[sn]||[],OS(o)}function Pa(e,t){ce(t[Dt])&&pe(e,1,46,"telemetryItem.baseData cannot be null.")}var gF={Version:"3.3.7"};function yF(e,t,n){Pa(e,t);var i=t[Dt][Sa]||{},o=t[Dt][en]||{};bo(t[zn],o,i),ce(n)||ka(o,n);var s=t[Dt];if(ce(s))return ra(e,"Invalid input for dependency data"),null;var c=s[en]&&s[en][Gw]?s[en][Gw]:"GET",f=new ha(e,s.id,s.target,s[Di],s[ya],s.success,s.responseCode,c,s.type,s.correlationContext,o,i),d=new pa(ha[Gr],f);return Ca(e,ha[wa],t,d)}function XE(e,t,n){Pa(e,t);var i={},o={};t[hv]!==mo[Gr]&&(i.baseTypeSource=t[hv]),t[hv]===mo[Gr]?(i=t[Dt][en]||{},o=t[Dt][Sa]||{}):t[Dt]&&bo(t[Dt],i,o),bo(t[zn],i,o),ce(n)||ka(i,n);var s=t[Dt][Di],c=new mo(e,s,i,o),f=new pa(mo[Gr],c);return Ca(e,mo[wa],t,f)}function SF(e,t,n){Pa(e,t);var i=t[Dt][Sa]||{},o=t[Dt][en]||{};bo(t[zn],o,i),ce(n)||ka(o,n);var s=t[Dt],c=nr.CreateFromInterface(e,s,o,i),f=new pa(nr[Gr],c);return Ca(e,nr[wa],t,f)}function wF(e,t,n){Pa(e,t);var i=t[Dt],o=i[en]||{},s=i[Sa]||{};bo(t[zn],o,s),ce(n)||ka(o,n);var c=new da(e,i[Di],i.average,i.sampleCount,i.min,i.max,i.stdDev,o,s),f=new pa(da[Gr],c);return Ca(e,da[wa],t,f)}function EF(e,t,n){Pa(e,t);var i,o=t[Dt];!ce(o)&&!ce(o[en])&&!ce(o[en][ya])?(i=o[en][ya],delete o[en][ya]):!ce(t[zn])&&!ce(t[zn][ya])&&(i=t[zn][ya],delete t[zn][ya]);var s=t[Dt],c;((t.ext||{}).trace||{})[Yc]&&(c=t.ext.trace[Yc]);var f=s.id||c,d=s[Di],p=s.uri,_=s[en]||{},v=s[Sa]||{};if(ce(s.refUri)||(_.refUri=s.refUri),ce(s.pageType)||(_.pageType=s.pageType),ce(s.isLoggedIn)||(_.isLoggedIn=s.isLoggedIn[Ea]()),!ce(s[en])){var y=s[en];Xe(y,function(w,T){_[w]=T})}bo(t[zn],_,v),ce(n)||ka(_,n);var g=new go(e,d,p,i,_,v,f),E=new pa(go[Gr],g);return Ca(e,go[wa],t,E)}function TF(e,t,n){Pa(e,t);var i=t[Dt],o=i[Di],s=i.uri||i.url,c=i[en]||{},f=i[Sa]||{};bo(t[zn],c,f),ce(n)||ka(c,n);var d=new Ys(e,o,s,void 0,c,f,i),p=new pa(Ys[Gr],d);return Ca(e,Ys[wa],t,p)}function bF(e,t,n){Pa(e,t);var i=t[Dt].message,o=t[Dt].severityLevel,s=t[Dt][en]||{},c=t[Dt][Sa]||{};bo(t[zn],s,c),ce(n)||ka(s,n);var f=new Fs(e,i,o,s,c),d=new pa(Fs[Gr],f);return Ca(e,Fs[wa],t,d)}var JE=function(){function e(t,n){var i=[],o=!1,s=n.maxRetryCnt;this._get=function(){return i},this._set=function(c){return i=c,i},St(e,this,function(c){c[Ta]=function(f){if(c[ba]()>=n.eventsLimitInMem){o||(pe(t,2,105,"Maximum in-memory buffer size reached: "+c[ba](),!0),o=!0);return}f.cnt=f.cnt||0,!(!ce(s)&&f.cnt>s)&&i[xi](f)},c[ba]=function(){return i[Je]},c.size=function(){for(var f=i[Je],d=0;d<i[Je];d++)f+=i[d].item[Je];return n[rv]||(f+=2),f},c[Gs]=function(){i=[],o=!1},c.getItems=function(){return i.slice(0)},c.batchPayloads=function(f){if(f&&f[Je]>0){var d=[];Se(f,function(_){d[xi](_.item)});var p=n[rv]?d.join(`
68
+ `):"["+d.join(",")+"]";return p}return null},c.createNew=function(f,d,p){var _=i.slice(0);f=f||t,d=d||{};var v=p?new QE(f,d):new pv(f,d);return Se(_,function(y){v[Ta](y)}),v}})}return e.__ieDyn=1,e}(),pv=function(e){Ei(t,e);function t(n,i){var o=e.call(this,n,i)||this;return St(t,o,function(s,c){s[Rd]=function(f){c[Gs]()},s[Uc]=function(f){}}),o}return t.__ieDyn=1,t}(JE),NF=["AI_buffer","AI_sentBuffer"],QE=function(e){Ei(t,e);function t(i,o){var s=e.call(this,i,o)||this,c=!1,f=o==null?void 0:o.namePrefix,d=o[iv]||{getItem:Vm,setItem:aE},p=d.getItem,_=d.setItem,v=o.maxRetryCnt;return St(t,s,function(y,g){var E=z(t[zc]),w=z(t[To]),T=R(),b=w[js](T),C=y._set(E[js](b));C[Je]>t[Hc]&&(C[Je]=t[Hc]),oe(t[To],[]),oe(t[zc],C),y[Ta]=function(Q){if(y[ba]()>=t[Hc]){c||(pe(i,2,67,"Maximum buffer size reached: "+y[ba](),!0),c=!0);return}Q.cnt=Q.cnt||0,!(!ce(v)&&Q.cnt>v)&&(g[Ta](Q),oe(t[zc],y._get()))},y[Gs]=function(){g[Gs](),oe(t[zc],y._get()),oe(t[To],[]),c=!1},y[Rd]=function(Q){oe(t[zc],y._set(M(Q,y._get())));var A=z(t[To]);A instanceof Array&&Q instanceof Array&&(A=A[js](Q),A[Je]>t[Hc]&&(pe(i,1,67,"Sent buffer reached its maximum size: "+A[Je],!0),A[Je]=t[Hc]),oe(t[To],A))},y[Uc]=function(Q){var A=z(t[To]);A=M(Q,A),oe(t[To],A)},y.createNew=function(Q,A,B){B=!!B;var ae=y._get().slice(0),he=z(t[To]).slice(0);Q=Q||i,A=A||{},y[Gs]();var P=B?new t(Q,A):new pv(Q,A);return Se(ae,function(V){P[Ta](V)}),B&&P[Rd](he),P};function M(Q,A){var B=[],ae=[];return Se(Q,function(he){ae[xi](he.item)}),Se(A,function(he){!Le(he)&&dn(ae,he.item)===-1&&B[xi](he)}),B}function z(Q){var A=Q;return A=f?f+"_"+A:A,G(A)}function G(Q){try{var A=p(i,Q);if(A){var B=vr().parse(A);if(Re(B)&&(B=vr().parse(B)),B&&$e(B))return B}}catch(ae){pe(i,1,42," storage key: "+Q+", "+ft(ae),{exception:Te(ae)})}return[]}function oe(Q,A){var B=Q;try{B=f?f+"_"+B:B;var ae=JSON[$c](A);_(i,B,ae)}catch(he){_(i,B,JSON[$c]([])),pe(i,2,41," storage key: "+B+", "+ft(he)+". Buffer cleared",{exception:Te(he)})}}function R(){var Q=[];try{return Se(NF,function(A){var B=F(A);if(Q=Q[js](B),f){var ae=f+"_"+A,he=F(ae);Q=Q[js](he)}}),Q}catch(A){pe(i,2,41,"Transfer events from previous buffers: "+ft(A)+". previous Buffer items can not be removed",{exception:Te(A)})}return[]}function F(Q){try{var A=G(Q),B=[];return Se(A,function(ae){var he={item:ae,cnt:0};B[xi](he)}),sE(i,Q),B}catch{}return[]}}),s}var n;return n=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+n.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+n.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(JE),kF=function(){function e(t){St(e,this,function(n){n.serialize=function(c){var f=i(c,"root");try{return vr()[$c](f)}catch(d){pe(t,1,48,d&&Le(d[Ea])?d[Ea]():"Error serializing object",null,!0)}};function i(c,f){var d="__aiCircularRefCheck",p={};if(!c)return pe(t,1,48,"cannot serialize object because it is null or undefined",{name:f},!0),p;if(c[d])return pe(t,2,50,"Circular reference detected while serializing object",{name:f},!0),p;if(!c.aiDataContract){if(f==="measurements")p=s(c,"number",f);else if(f==="properties")p=s(c,"string",f);else if(f==="tags")p=s(c,"string",f);else if($e(c))p=o(c,f);else{pe(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:f},!0);try{vr()[$c](c),p=c}catch(_){pe(t,1,48,_&&Le(_[Ea])?_[Ea]():"Error serializing object",null,!0)}}return p}return c[d]=!0,Xe(c.aiDataContract,function(_,v){var y=Le(v)?v()&1:v&1,g=Le(v)?v()&4:v&4,E=v&2,w=c[_]!==void 0,T=On(c[_])&&c[_]!==null;if(y&&!w&&!E)pe(t,1,24,"Missing required field specification. The field is required but not present on source",{field:_,name:f});else if(!g){var b=void 0;T?E?b=o(c[_],_):b=i(c[_],_):b=c[_],b!==void 0&&(p[_]=b)}}),delete c[d],p}function o(c,f){var d;if(c)if(!$e(c))pe(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r
69
+ `,{name:f},!0);else{d=[];for(var p=0;p<c[Je];p++){var _=c[p],v=i(_,f+"["+p+"]");d[xi](v)}}return d}function s(c,f,d){var p;return c&&(p={},Xe(c,function(_,v){if(f==="string")v===void 0?p[_]="undefined":v===null?p[_]="null":v[Ea]?p[_]=v[Ea]():p[_]="invalid field: toString() is not defined.";else if(f==="number")if(v===void 0)p[_]="undefined";else if(v===null)p[_]="null";else{var y=parseFloat(v);p[_]=y}else p[_]="invalid field: "+d+" is of unknown type.",pe(t,1,p[_],null,!0)})),p}})}return e.__ieDyn=1,e}(),CF=8,PF=function(){function e(){}return e.prototype.getHashCodeScore=function(t){var n=this.getHashCode(t)/e.INT_MAX_VALUE;return n*100},e.prototype.getHashCode=function(t){if(t==="")return 0;for(;t[Je]<CF;)t=t[js](t);for(var n=5381,i=0;i<t[Je];++i)n=(n<<5)+n+t.charCodeAt(i),n=n&n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e}(),DF=function(){function e(){var t=this,n=new PF,i=new wE;t.getSamplingScore=function(o){var s=0;return o[sn]&&o[sn][i.userId]?s=n.getHashCodeScore(o[sn][i.userId]):o.ext&&o.ext.user&&o.ext.user.id?s=n[mF](o.ext.user.id):o[sn]&&o[sn][i.operationId]?s=n.getHashCodeScore(o[sn][i.operationId]):o.ext&&o.ext.telemetryTrace&&o.ext.telemetryTrace[Yc]?s=n.getHashCodeScore(o.ext.telemetryTrace[Yc]):s=Math.random()*100,s}}return e}(),xF=function(){function e(t,n){this.INT_MAX_VALUE=2147483647;var i=n||na(null);(t>100||t<0)&&(i.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[Ad]=t,this.samplingScoreGenerator=new DF}return e.prototype.isSampledIn=function(t){var n=this[Ad],i=!1;return n==null||n>=100||t.baseType===da[Gr]?!0:(i=this.samplingScoreGenerator.getSamplingScore(t)<n,i)},e}(),Et,Oi,wr=void 0,eT="",OF=65e3;function tT(e){try{return e.responseText}catch{}return null}function IF(e){return e&&e.sendPOST}var nT=ql((Et={endpointUrl:Xf(sf,Nm+Rs)},Et[rv]=zt(),Et.maxBatchInterval=15e3,Et[WE]=102400,Et.disableTelemetry=zt(),Et[GE]=zt(!0),Et.isRetryDisabled=zt(),Et[lv]=zt(!0),Et[qE]=zt(!0),Et.disableXhr=zt(),Et[jE]=zt(),Et[sv]=zt(),Et[jc]=wr,Et.namePrefix=wr,Et.samplingPercentage=Xf(RF,100),Et[av]=wr,Et.convertUndefined=wr,Et.eventsLimitInMem=1e4,Et[iv]=!1,Et.httpXHROverride={isVal:IF,v:wr},Et[ZE]=zt(),Et.transports=wr,Et.retryCodes=wr,Et.corsPolicy=wr,Et.maxRetryCnt={isVal:jl,v:10},Et)),rT="X-Set-Cross-Origin-Resource-Policy";function RF(e){return!isNaN(e)&&e>0&&e<=100}var LF=(Oi={},Oi[mo.dataType]=XE,Oi[Fs.dataType]=bF,Oi[go.dataType]=EF,Oi[Ys.dataType]=TF,Oi[nr.dataType]=SF,Oi[da.dataType]=wF,Oi[ha.dataType]=yF,Oi),MF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=TE;var i,o,s,c,f,d,p,_,v=0,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K,W,x,ve,re,_e,N,U;return St(t,n,function(k,H){fl(),k.pause=function(){Vt(),c=!0},k.resume=function(){c&&(c=!1,o=null,j(),vt())},k.flush=function(Y,ee,de){if(Y===void 0&&(Y=!0),!c){Vt();try{return k[Wc](Y,null,de||1)}catch(Ce){pe(k[pn](),1,22,"flush failed, telemetry will not be collected: "+ft(Ce),{exception:Te(Ce)})}}},k.onunloadFlush=function(){if(!c)if(C||V)try{return k[Wc](!0,le,2)}catch(Y){pe(k[pn](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ft(Y),{exception:Te(Y)})}else k.flush(!1)},k.addHeader=function(Y,ee){_[Y]=ee},k[ov]=function(Y,ee,de,Ce){k.isInitialized()&&pe(k[pn](),1,28,"Sender is already initialized"),H[ov](Y,ee,de,Ce);var Be=k.identifier;d=new kF(ee.logger),i=0,o=null,s=0,k[Zc]=null,p=0;var Ae=k[pn]();E=ho(Qn("Sender"),ee.evtNamespace&&ee.evtNamespace()),g=HV(E),k._addHook(At(Y,function(nt){var Tt=nt.cfg;Tt.storagePrefix&&Bm(Tt.storagePrefix);var kn=yr(null,Tt,ee),Ue=kn.getExtCfg(Be,nT),dl=Ue[Gc];if(w&&dl===w){var au=Tt[Gc];au&&au!==dl&&(Ue[Gc]=au)}var zv=Ct("CompressionStream");U=zf("zipPayload",Tt,!1),Le(zv)||(U=!1);var Va=Ue.corsPolicy;Va?(Va==="same-origin"||Va==="same-site"||Va==="cross-origin")&&n.addHeader(rT,Va):delete _[rT],Ji(Ue[jc])&&(Ue[jc]=Tt[jc]),tt(k,"_senderConfig",{g:function(){return Ue}}),T!==Ue[Gc]&&(w=T=Ue[Gc]),ee.activeStatus()===no.PENDING?k.pause():ee.activeStatus()===no.ACTIVE&&k.resume(),G&&G!==Ue[av]&&Se(G,function(Xt){delete _[Xt.header]}),b=Ue[WE],C=(Ue[sv]===!1||Ue[lv]===!1)&&dc(),M=Ue[sv]===!1&&dc(),z=Ue[lv]===!1&&dc(),V=Ue[ZE],K=!!Ue.disableXhr,N=Ue.retryCodes;var su=Ue[iv],ln=!!Ue[GE]&&(!!su||Dc()),xe=Ue.namePrefix,Qd=ln!==B||ln&&he!==xe||ln&&ae!==su;if(k[jr]){if(Qd)try{k[jr]=k[jr].createNew(Ae,Ue,ln)}catch(Xt){pe(k[pn](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ft(Xt),{exception:Te(Xt)})}j()}else k[jr]=ln?new QE(Ae,Ue):new pv(Ae,Ue);he=xe,B=ln,ae=su,W=!Ue[jE]&&Y_(!0),re=!!Ue[qE],k._sample=new xF(Ue.samplingPercentage,Ae),R=Ue[jc],!Ji(R)&&!or(R,Tt)&&pe(Ae,1,100,"Invalid Instrumentation key "+R),G=Ue[av],Re(w)&&!Rm(w)&&G&&G[Je]>0?Se(G,function(Xt){n.addHeader(Xt.header,Xt.value)}):G=null,P=Ue.enableSendPromise;var lu=O();_e?_e.SetConfig(lu):(_e=new FB,_e[ov](lu,Ae));var Fa=Ue.httpXHROverride,Ya=null,Mi=null,eh=LS([3,1,2],Ue.transports);Ya=_e&&_e[Ld](eh,!1);var Jr=_e&&_e.getFallbackInst();x=function(Xt,Ai){return Pe(Jr,Xt,Ai)},ve=function(Xt,Ai){return Pe(Jr,Xt,Ai,!1)},Ya=V?Fa:Ya||Fa||Jr,k[Zc]=function(Xt,Ai){return Pe(Ya,Xt,Ai)},W&&(y=He);var hl=LS([3,1],Ue.unloadTransports);W||(hl=hl.filter(function(Xt){return Xt!==2})),Mi=_e&&_e[Ld](hl,!0),Mi=V?Fa:Mi||Fa,(V||Ue.unloadTransports||!y)&&Mi&&(y=function(Xt,Ai){return Pe(Mi,Xt,Ai)}),y||(y=x),oe=Ue.disableTelemetry,F=Ue.convertUndefined||wr,Q=Ue.isRetryDisabled,A=Ue.maxBatchInterval}))},k.processTelemetry=function(Y,ee){ee=k._getTelCtx(ee);var de=ee[pn]();try{var Ce=we(Y,de);if(!Ce)return;var Be=be(Y,de);if(!Be)return;var Ae=d.serialize(Be),nt=k[jr];j(Ae);var Tt={item:Ae,cnt:0};nt[Ta](Tt),vt()}catch(kn){pe(de,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ft(kn),{exception:Te(kn)})}k.processNext(Y,ee)},k.isCompletelyIdle=function(){return!c&&v===0&&k._buffer[ba]()===0},k.getOfflineListener=function(){return g},k._xhrReadyStateChange=function(Y,ee,de){if(!De(ee))return X(Y,ee,de)},k[Wc]=function(Y,ee,de){Y===void 0&&(Y=!0);var Ce;if(!c)try{var Be=k[jr];if(oe)Be[Gs]();else{if(Be[ba]()>0){var Ae=Be.getItems();_n(de||0,Y),ee?Ce=ee.call(k,Ae,Y):Ce=k[Zc](Ae,Y)}s=+new Date}Vt()}catch(Tt){var nt=FS();(!nt||nt>9)&&pe(k[pn](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ft(Tt),{exception:Te(Tt)})}return Ce},k.getOfflineSupport=function(){return{getUrl:function(){return w},createPayload:dt,serialize:ze,batch:Wt,shouldProcess:function(Y){return!!we(Y)}}},k._doTeardown=function(Y,ee){k.onunloadFlush(),Cs(g,!1),fl()},k[Na]=function(Y,ee,de){if(!De(Y))return J(Y,ee)},k[cv]=function(Y,ee){if(!De(Y))return fe(Y,ee)},k[Md]=function(Y,ee){if(!De(Y))return Oe(Y)},k._xdrOnLoad=function(Y,ee){if(!De(ee))return ie(Y,ee)};function ie(Y,ee){var de=tT(Y);if(Y&&(de+""=="200"||de===""))i=0,k[Md](ee,0);else{var Ce=hm(de);Ce&&Ce[uv]&&Ce[uv]>Ce[fv]&&!Q?k[cv](ee,Ce):k[Na](ee,RS(Y))}}function O(){try{var Y={xdrOnComplete:function(de,Ce,Be){var Ae=Ge(Be);if(Ae)return ie(de,Ae)},fetchOnComplete:function(de,Ce,Be,Ae){var nt=Ge(Ae);if(nt)return ne(de.status,nt,de.url,nt[Je],de.statusText,Be||"")},xhrOnComplete:function(de,Ce,Be){var Ae=Ge(Be);if(Ae)return X(de,Ae,Ae[Je])},beaconOnRetry:function(de,Ce,Be){return ke(de,Ce,Be)}},ee={enableSendPromise:P,isOneDs:!1,disableCredentials:!1,disableXhr:K,disableBeacon:!z,disableBeaconSync:!M,senderOnCompleteCallBack:Y};return ee}catch{}return null}function X(Y,ee,de){Y.readyState===4&&ne(Y.status,ee,Y.responseURL,de,Wf(Y),tT(Y)||Y.response)}function J(Y,ee,de){pe(k[pn](),2,26,"Failed to send telemetry.",{message:ee}),k._buffer&&k._buffer[Uc](Y)}function fe(Y,ee){for(var de=[],Ce=[],Be=ee.errors.reverse(),Ae=0,nt=Be;Ae<nt.length;Ae++){var Tt=nt[Ae],kn=Y.splice(Tt.index,1)[0];Rn(Tt.statusCode)?Ce[xi](kn):de[xi](kn)}Y[Je]>0&&k[Md](Y,ee[fv]),de[Je]>0&&k[Na](de,Wf(null,["partial success",ee[fv],"of",ee.itemsReceived].join(" "))),Ce[Je]>0&&(Me(Ce),pe(k[pn](),2,40,"Partial success. Delivered: "+Y[Je]+", Failed: "+de[Je]+". Will retry to send "+Ce[Je]+" our of "+ee[uv]+" items"))}function Oe(Y,ee){k._buffer&&k._buffer[Uc](Y)}function Ge(Y){try{if(Y){var ee=Y,de=ee.oriPayload;return de&&de[Je]?de:null}}catch{}return null}function we(Y,ee){if(oe)return!1;if(!Y)return ee&&pe(ee,1,7,"Cannot send empty telemetry"),!1;if(Y.baseData&&!Y[dv])return ee&&pe(ee,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(Y[dv]||(Y[dv]="EventData"),!k[Zc])return ee&&pe(ee,1,28,"Sender was not initialized"),!1;if(q(Y))Y[Zw]=k._sample[Ad];else return ee&&pe(ee,2,33,"Telemetry item was sampled out and not sent",{SampleRate:k._sample[Ad]}),!1;return!0}function be(Y,ee){var de=Y.iKey||R,Ce=t.constructEnvelope(Y,de,ee,F);if(!Ce){pe(ee,1,47,"Unable to create an AppInsights envelope");return}var Be=!1;if(Y[sn]&&Y[sn][bm]&&(Se(Y[sn][bm],function(Ae){try{Ae&&Ae(Ce)===!1&&(Be=!0,ra(ee,"Telemetry processor check returns false"))}catch(nt){pe(ee,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ft(nt),{exception:Te(nt)},!0)}}),delete Y[sn][bm]),!Be)return Ce}function ze(Y){var ee=eT,de=k[pn]();try{var Ce=we(Y,de),Be=null;Ce&&(Be=be(Y,de)),Be&&(ee=d.serialize(Be))}catch{}return ee}function Wt(Y){var ee=eT;return Y&&Y[Je]&&(ee="["+Y.join(",")+"]"),ee}function dt(Y){var ee=I();return{urlString:w,data:Y,headers:ee}}function q(Y){return k._sample.isSampledIn(Y)}function me(Y,ee,de,Ce){ee===200&&Y?k._onSuccess(Y,Y[Je]):Ce&&k[Na](Y,Ce)}function Pe(Y,ee,de,Ce){Ce===void 0&&(Ce=!0);var Be=function(Tt,kn,Ue){return me(ee,Tt,kn,Ue)},Ae=Ee(ee),nt=Y&&Y.sendPOST;return nt&&Ae&&(Ce&&k._buffer[Rd](ee),_e.preparePayload(function(Tt){return nt(Tt,Be,!de)},U,Ae,!de)),null}function Ee(Y){if($e(Y)&&Y[Je]>0){var ee=k[jr].batchPayloads(Y),de=I(),Ce={data:ee,urlString:w,headers:de,disableXhrSync:K,disableFetchKeepAlive:!W,oriPayload:Y};return Ce}return null}function I(){try{var Y=_||{};return Rm(w)&&(Y[mt[6]]=mt[7]),Y}catch{}return null}function j(Y){var ee=Y?Y[Je]:0;return k[jr].size()+ee>b?((!g||g.isOnline())&&k[Wc](!0,null,10),!0):!1}function ne(Y,ee,de,Ce,Be,Ae){var nt=null;if(k._appId||(nt=hm(Ae),nt&&nt.appId&&(k._appId=nt.appId)),(Y<200||Y>=300)&&Y!==0){if((Y===301||Y===307||Y===308)&&!te(de)){k[Na](ee,Be);return}if(g&&!g.isOnline()){if(!Q){var Tt=10;Me(ee,Tt),pe(k[pn](),2,40,". Offline - Response Code: ".concat(Y,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(ee.length," items."))}return}!Q&&Rn(Y)?(Me(ee),pe(k[pn](),2,40,". Response code "+Y+". Will retry to send "+ee[Je]+" items.")):k[Na](ee,Be)}else te(de),Y===206?(nt||(nt=hm(Ae)),nt&&!Q?k[cv](ee,nt):k[Na](ee,Be)):(i=0,k[Md](ee,Ce))}function te(Y){return p>=10?!1:!ce(Y)&&Y!==""&&Y!==w?(w=Y,++p,!0):!1}function le(Y,ee){if(y)y(Y,!1);else{var de=_e&&_e[Ld]([3],!0);return Pe(de,Y,ee)}}function ke(Y,ee,de){var Ce=Y,Be=Ce&&Ce.oriPayload;if(re)ve&&ve(Be,!0),pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var Ae=[],nt=0;nt<Be[Je];nt++){var Tt=Be[nt],kn=[Tt],Ue=Ee(kn);de(Ue,ee)?k._onSuccess(kn,kn[Je]):Ae[xi](Tt)}Ae[Je]>0&&(ve&&ve(Ae,!0),pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function De(Y){try{if(Y&&Y[Je])return Re(Y[0])}catch{}return null}function He(Y,ee){var de=null;if($e(Y)){for(var Ce=Y[Je],Be=0;Be<Y[Je];Be++)Ce+=Y[Be].item[Je];var Ae=_e.getSyncFetchPayload();Ae+Ce<=OF?de=2:dc()?de=3:(de=1,pe(k[pn](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var nt=_e&&_e[Ld]([de],!0);return Pe(nt,Y,ee)}return null}function Me(Y,ee){if(ee===void 0&&(ee=1),!(!Y||Y[Je]===0)){var de=k[jr];de[Uc](Y),i++;for(var Ce=0,Be=Y;Ce<Be.length;Ce++){var Ae=Be[Ce];Ae.cnt=Ae.cnt||0,Ae.cnt++,de[Ta](Ae)}at(ee),vt()}}function at(Y){var ee=10,de;if(i<=1)de=ee;else{var Ce=(Math.pow(2,i)-1)/2,Be=Fn(Math.random()*Ce*ee)+1;Be=Y*Be,de=Kl(B0(Be,3600),ee)}var Ae=_r()+de*1e3;o=Ae}function vt(){if(!f&&!c){var Y=o?Kl(0,o-_r()):0,ee=Kl(A,Y);f=Jn(function(){f=null,k[Wc](!0,null,1)},ee)}}function Vt(){f&&f.cancel(),f=null,o=null}function Rn(Y){return ce(N)?Y===401||Y===408||Y===429||Y===500||Y===502||Y===503||Y===504:N[Je]&&N.indexOf(Y)>-1}function Hn(){var Y="getNotifyMgr",ee,de=k.core;return de&&(de[Y]?ee=de[Y]():ee=de._notificationManager),ee}function _n(Y,ee){var de=Hn();if(de&&de.eventsSendRequest)try{de.eventsSendRequest(Y,ee)}catch(Ce){pe(k[pn](),1,74,"send request notification failed: "+ft(Ce),{exception:Te(Ce)})}}function or(Y,ee){var de=ee.disableInstrumentationKeyValidation,Ce=ce(de)?!1:de;if(Ce)return!0;var Be="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",Ae=new RegExp(Be);return Ae.test(Y)}function fl(){k[Zc]=null,k[jr]=null,k._appId=null,k._sample=null,_={},g=null,i=0,o=null,s=null,c=!1,f=null,d=null,p=0,v=0,y=null,E=null,w=null,T=null,b=0,C=!1,G=null,oe=!1,R=null,F=wr,Q=!1,B=null,he=wr,K=!1,W=!1,re=!1,x=null,ve=null,_e=null,tt(k,"_senderConfig",{g:function(){return IS({},nT)}})}}),n}return t.constructEnvelope=function(n,i,o,s){var c;i!==n.iKey&&!ce(i)?c=En(En({},n),{iKey:i}):c=n;var f=LF[c.baseType]||XE;return f(o,c,s)},t}(Os),iT="duration",qs="properties",Er="requestUrl",Da="length",No="traceID",ko="spanID",Tr="traceFlags",qc="context",Ks="aborted",Bd="_addHook",qr="core",_v="includeCorrelationHeaders",mv="getAbsoluteUrl",xa="headers",rr="requestHeaders",vv="setRequestHeader",oT="trackDependencyDataInternal",Xs="startTime",Js="toLowerCase",gv="enableRequestHeaderTracking",aT="enableAjaxErrorStatusText",sT="enableAjaxPerfTracking",lT="maxAjaxCallsPerView",cT="excludeRequestFromAutoTrackingPatterns",yv="disableAjaxTracking",uT="ajaxPerfLookupDelay",fT="disableFetchTracking",dT="enableResponseHeaderTracking",br="status",Oa="statusText",Vd="headerMap",Ia="requestSentTime",Sv="getTraceId",wv="getTraceFlags",Co="method",Ev="errorStatusText",hT="stateChangeAttached",pT="responseText",Kc="responseFinishedTime",Tv="CreateTrackItem",_T="getAllResponseHeaders",bv="getPartAProps",Fd="perfMark",Nv="perfTiming",kv="ajaxDiagnosticsMessage",Cv="correlationContext",Pv="ajaxTotalDuration",Dv="eventTraceCtx";function mT(e,t,n){var i=0,o=e[t],s=e[n];return o&&s&&(i=In(o,s)),i}function Ra(e,t,n,i,o){var s=0,c=mT(n,i,o);return c&&(s=Po(e,t,vo(c))),s}function Po(e,t,n){var i="ajaxPerf",o=0;if(e&&t&&n){var s=e[i]=e[i]||{};s[t]=n,o=1}return o}function AF(e,t){var n=e[Nv],i=t[qs]||{},o=0,s="name",c="Start",f="End",d="domainLookup",p="connect",_="redirect",v="request",y="response",g="startTime",E=d+c,w=d+f,T=p+c,b=p+f,C=v+c,M=v+f,z=y+c,G=y+f,oe=_+c,R=_=f,F="transferSize",Q="encodedBodySize",A="decodedBodySize",B="serverTiming";if(n){o|=Ra(i,_,n,oe,R),o|=Ra(i,d,n,E,w),o|=Ra(i,p,n,T,b),o|=Ra(i,v,n,C,M),o|=Ra(i,y,n,z,G),o|=Ra(i,"networkConnect",n,g,b),o|=Ra(i,"sentRequest",n,C,G);var ae=n[iT];ae||(ae=mT(n,g,G)||0),o|=Po(i,iT,ae),o|=Po(i,"perfTotal",ae);var he=n[B];if(he){var P={};Se(he,function(V,K){var W=$f(V[s]||""+K),x=P[W]||{};Xe(V,function(ve,re){(ve!==s&&Re(re)||jl(re))&&(x[ve]&&(re=x[ve]+";"+re),(re||!Re(re))&&(x[ve]=re))}),P[W]=x}),o|=Po(i,B,P)}o|=Po(i,F,n[F]),o|=Po(i,Q,n[Q]),o|=Po(i,A,n[A])}else e[Fd]&&(o|=Po(i,"missing",e.perfAttempts));o&&(t[qs]=i)}var BF=function(){function e(){var t=this;t.openDone=!1,t.setRequestHeaderDone=!1,t.sendDone=!1,t.abortDone=!1,t[hT]=!1}return e}(),vT=function(){function e(t,n,i,o){var s=this,c=i,f="responseText";s[Fd]=null,s.completed=!1,s.requestHeadersSize=null,s[rr]=null,s.responseReceivingDuration=null,s.callbackDuration=null,s[Pv]=null,s[Ks]=0,s.pageUrl=null,s[Er]=null,s.requestSize=0,s[Co]=null,s[br]=null,s[Ia]=null,s.responseStartedTime=null,s[Kc]=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new BF,s.clientFailure=0,s[No]=t,s[ko]=n,s[Tr]=o==null?void 0:o.getTraceFlags(),o?s[Dv]={traceId:o[Sv](),spanId:o.getSpanId(),traceFlags:o[wv]()}:s[Dv]=null,St(e,s,function(d){d.getAbsoluteUrl=function(){return d[Er]?oV(d[Er]):null},d.getPathName=function(){return d[Er]?yd(c,aV(d[Co],d[Er])):null},d[Tv]=function(p,_,v){var y;if(d.ajaxTotalDuration=nS(In(d.requestSentTime,d.responseFinishedTime)*1e3)/1e3,d[Pv]<0)return null;var g=(y={id:"|"+d[No]+"."+d[ko],target:d[mv](),name:d.getPathName(),type:p,startTime:null,duration:d[Pv],success:+d[br]>=200&&+d[br]<400,responseCode:+d[br]},y[qs]={HttpMethod:d[Co]},y),E=g[qs];if(d[Ks]&&(E[Ks]=!0),d[Ia]&&(g[Xs]=new Date,g[Xs].setTime(d[Ia])),AF(d,g),_&&gi(d.requestHeaders)[Da]>0&&(E[rr]=d[rr]),v){var w=v();if(w){var T=w[Cv];if(T&&(g.correlationContext=T),w[Vd]&&gi(w.headerMap)[Da]>0&&(E.responseHeaders=w[Vd]),d[Ev])if(d[br]>=400){var b=w.type;(b===""||b==="text")&&(E.responseText=w.responseText?w[Oa]+" - "+w[f]:w[Oa]),b==="json"&&(E.responseText=w.response?w[Oa]+" - "+JSON.stringify(w.response):w[Oa])}else d[br]===0&&(E.responseText=w[Oa]||"")}}return g},d[bv]=function(){var p=null,_=d[Dv];if(_&&(_.traceId||_.spanId)){p={};var v=p[$n.TraceExt]={traceID:_.traceId,parentID:_.spanId};ce(_[Tr])||(v[Tr]=_[Tr])}return p}})}return e.__ieDyn=1,e}(),Lt,Xc="diagLog",Do="_ajaxData",La="fetch",Jc="Failed to monitor XMLHttpRequest",gT=", monitoring data for this ajax call ",Qs=gT+"may be incorrect.",yT=gT+"won't be sent.",ST="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",wT="Failed to add custom defined request context as configured call back may missing a null check.",ET="Failed to calculate the duration of the ",TT=0;function VF(){var e=Xn();return!e||ce(e.Request)||ce(e.Request[Mr])||ce(e[La])?null:e[La]}function FF(e,t){var n,i=!1;if(Zf()){var o=XMLHttpRequest[Mr];i=!ce(o)&&!ce(o.open)&&!ce(o.send)&&!ce(o.abort)}var s=FS();if(s&&s<9&&(i=!1),i)try{var c=new XMLHttpRequest,f={xh:[],i:(n={},n[t]={},n)};c[Do]=f;var d=XMLHttpRequest[Mr].open;XMLHttpRequest[Mr].open=d}catch(p){i=!1,Qc(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Te(p)})}return i}var el=function(e,t){return e&&t&&e[Do]?(e[Do].i||{})[t]:null},YF=function(e,t,n){if(e){var i=(e[Do]||{}).xh;i&&i.push({n:t,v:n})}},xv=function(e,t){var n=!1;if(e){var i=(e[Do]||{}).xh;i&&Se(i,function(o){if(o.n===t)return n=!0,-1})}return n};function Yd(e,t){var n="";try{var i=el(e,t);i&&i[Er]&&(n+="(url: '"+i[Er]+"')")}catch{}return n}function Qc(e,t,n,i,o){pe(e[Xc](),1,t,n,i,o)}function Ii(e,t,n,i,o){pe(e[Xc](),2,t,n,i,o)}function eu(e,t,n){return function(i){var o;Qc(e,t,n,(o={},o[kv]=Yd(i.inst,e._ajaxDataId),o.exception=Te(i.err),o))}}function tl(e,t){return e&&t?wn(e,t):-1}function bT(e,t,n){var i={id:t,fn:n};return e.push(i),{remove:function(){Se(e,function(o,s){if(o.id===i.id)return e.splice(s,1),-1})}}}function NT(e,t,n,i){var o=!0;return Se(t,function(s,c){try{s.fn.call(null,n)===!1&&(o=!1)}catch(f){pe(e&&e.logger,1,64,"Dependency "+i+" [#"+c+"] failed: "+ft(f),{exception:Te(f)},!0)}}),o}function $F(e,t,n,i,o,s){var c=e[Da],f=!0;if(c>0){var d={core:t,xhr:i,input:o,init:s,traceId:n[No],spanId:n[ko],traceFlags:n[Tr],context:n[qc]||{},aborted:!!n[Ks]};f=NT(t,e,d,"listener"),n[No]=d.traceId,n[ko]=d.spanId,n[Tr]=d[Tr],n[qc]=d[qc]}return f}var $d="*.blob.core.",UF=pr([$d+"windows.net",$d+"chinacloudapi.cn",$d+"cloudapi.de",$d+"usgovcloudapi.net"]),zF=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],HF=pr((Lt={},Lt[lT]=500,Lt[yv]=!1,Lt[fT]=!1,Lt[cT]=void 0,Lt.disableCorrelationHeaders=!1,Lt.distributedTracingMode=1,Lt.correlationHeaderExcludedDomains=UF,Lt.correlationHeaderDomains=void 0,Lt.correlationHeaderExcludePatterns=void 0,Lt.appId=void 0,Lt.enableCorsCorrelation=!1,Lt[gv]=!1,Lt[dT]=!1,Lt[aT]=!1,Lt[sT]=!1,Lt.maxAjaxPerfLookupAttempts=3,Lt[uT]=25,Lt.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Lt.addRequestContext=void 0,Lt.addIntEndpoints=!0,Lt)),WF=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var i,o,s,c,f,d,p,_,v,y,g,E,w,T,b,C,M,z,G,oe,R,F,Q,A,B,ae,he,P,V,K;return St(t,n,function(W,x){var ve=x[Bd];re(),W.initialize=function(I,j,ne,te){W.isInitialized()||(x.initialize(I,j,ne,te),oe=ho(Qn("ajax"),j&&j.evtNamespace&&j.evtNamespace()),_e(I),ie(),k(),N())},W._doTeardown=function(){re()},W.trackDependencyData=function(I,j){Ee(A,W[qr],null,I,j)},W[_v]=function(I,j,ne,te){var le=W._currentWindowHost||s;if($F(Q,W[qr],I,te,j,ne)){if(j||j===""){if(tE(c,I[mv](),le)){ne||(ne={});var ke=new Headers(ne[xa]||(j instanceof Request?j[xa]||{}:{}));if(y){var De="|"+I[No]+"."+I[ko];ke.set(mt[3],De),f&&(I[rr][mt[3]]=De)}var He=V||_&&_.appId();if(He&&(ke.set(mt[0],mt[2]+He),f&&(I[rr][mt[0]]=mt[2]+He)),v){var Me=I[Tr];ce(Me)&&(Me=1);var at=yw(gw(I[No],I[ko],Me));ke.set(mt[4],at),f&&(I[rr][mt[4]]=at)}ne[xa]=ke}return ne}else if(te){if(tE(c,I[mv](),le)){if(y)if(xv(te,mt[3]))Ii(W,71,"Unable to set ["+mt[3]+"] as it has already been set by another instance");else{var De="|"+I[No]+"."+I[ko];te[vv](mt[3],De),f&&(I[rr][mt[3]]=De)}var He=V||_&&_.appId();if(He&&(xv(te,mt[0])?Ii(W,71,"Unable to set ["+mt[0]+"] as it has already been set by another instance"):(te[vv](mt[0],mt[2]+He),f&&(I[rr][mt[0]]=mt[2]+He))),v){var Me=I[Tr];if(ce(Me)&&(Me=1),xv(te,mt[4]))Ii(W,71,"Unable to set ["+mt[4]+"] as it has already been set by another instance");else{var at=yw(gw(I[No],I[ko],Me));te[vv](mt[4],at),f&&(I[rr][mt[4]]=at)}}}return te}}},W[oT]=function(I,j,ne){if(w===-1||p<w){(P===2||P===1)&&typeof I.id=="string"&&I.id[I.id[Da]-1]!=="."&&(I.id+="."),ce(I[Xs])&&(I[Xs]=new Date);var te=wo(I,ha.dataType,ha.envelopeType,W[Xc](),j,ne);W[qr].track(te)}else p===w&&Qc(W,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++p},W.addDependencyListener=function(I){return bT(Q,F++,I)},W.addDependencyInitializer=function(I){return bT(A,F++,I)};function re(){var I=$r();i=!1,o=!1,K=!1,s=I&&I.host&&I.host[Js](),c=null,f=!1,d=!1,p=0,_=null,v=!1,y=!1,g=null,E=!1,w=0,T=!1,b={},C=!1,M=!1,z=null,G=null,oe=null,F=0,Q=[],A=[],R=Qn("ajaxData"),W._ajaxDataId=R,B=null,ae=1,he=1,P=1,V=null}function _e(I){W[Bd](At(I,function(j){var ne=j.cfg,te=yr(null,ne,W[qr]);c=te.getExtCfg(t.identifier,HF),P=c.distributedTracingMode,f=c[gv],d=c[aT],E=c[sT],w=c[lT],z=[].concat(c[cT]||[],c.addIntEndpoints!==!1?zF:[]),G=c.addRequestContext,y=P===0||P===1,v=P===1||P===2,E&&(g=R),C=!!c[yv],ae=c.maxAjaxPerfLookupAttempts,he=c[uT],B=c.ignoreHeaders,V=c.appId}))}function N(){var I=W[qr].getPlugin(Nd);I&&(_=I.plugin[qc])}function U(I){var j=!0;return(I||B)&&Se(B,function(ne){if(ne[Js]()===I[Js]())return j=!1,-1}),j}function k(){var I=VF();if(I){var j=Xn(),ne=I.polyfill;W[Bd](At(c,function(){M=!!c[fT],T=c[dT],!M&&!i?(ve(Tm(j,La,{ns:oe,req:function(te,le,ke){var De;if(!M&&i&&!O(null,le,ke)&&!(ne&&o)){var He=te.ctx();De=dt(le,ke);var Me=W[_v](De,le,ke);Me!==ke&&te.set(1,Me),He.data=De}},rsp:function(te,le){if(!M){var ke=te.ctx().data;ke&&(te.rslt=te.rslt.then(function(De){return me(te,(De||{})[br],le,De,ke,function(){var He,Me=(He={statusText:(De||{})[Oa],headerMap:null},He[Cv]=Pe(De),He);if(T&&De){var at={};De.headers.forEach(function(vt,Vt){U(Vt)&&(at[Vt]=vt)}),Me[Vd]=at}return Me}),De}).catch(function(De){throw me(te,0,le,null,ke,null,{error:De.message||Te(De)}),De}))}},hkErr:eu(W,15,"Failed to monitor Window.fetch"+Qs)},!0,H0())),i=!0):ne&&!K&&(ve(Tm(j,La,{ns:oe,req:function(te,le,ke){O(null,le,ke)}})),K=!0)})),ne&&(j[La].polyfill=ne)}}function H(I,j,ne){ve(QB(I,j,ne))}function ie(){FF(W,R)&&W[Bd](At(c,function(){C=!!c[yv],f=c[gv],!C&&!o&&(H(XMLHttpRequest,"open",{ns:oe,req:function(I,j,ne,te){if(!C){var le=I.inst,ke=el(le,R);!O(le,ne)&&X(le,ke,!0)&&((!ke||!ke.xhrMonitoringState.openDone)&&(ke=fe(le,j,ne,te)),Oe(le,ke))}},hkErr:eu(W,15,Jc+".open"+Qs)}),H(XMLHttpRequest,"send",{ns:oe,req:function(I,j){if(!C){var ne=I.inst,te=el(ne,R);X(ne,te)&&!te.xhrMonitoringState.sendDone&&(ze("xhr",te),te[Ia]=Sd(),W[_v](te,void 0,void 0,ne),te.xhrMonitoringState.sendDone=!0)}},hkErr:eu(W,17,Jc+Qs)}),H(XMLHttpRequest,"abort",{ns:oe,req:function(I){if(!C){var j=I.inst,ne=el(j,R);X(j,ne)&&!ne.xhrMonitoringState.abortDone&&(ne[Ks]=1,ne.xhrMonitoringState.abortDone=!0)}},hkErr:eu(W,13,Jc+".abort"+Qs)}),H(XMLHttpRequest,"setRequestHeader",{ns:oe,req:function(I,j,ne){if(!C){var te=I.inst,le=el(te,R);le&&X(te,le)&&(YF(te,j,ne),f&&U(j)&&(le[rr][j]=ne))}},hkErr:eu(W,71,Jc+".setRequestHeader"+Qs)}),o=!0)}))}function O(I,j,ne){var te=!1,le=((Re(j)?j:(j||{}).url||"")||"")[Js]();if(Se(z,function(He){var Me=He;Re(He)&&(Me=new RegExp(He)),te||(te=Me.test(le))}),te)return te;var ke=tl(le,"?"),De=tl(le,"#");return(ke===-1||De!==-1&&De<ke)&&(ke=De),ke!==-1&&(le=le.substring(0,ke)),ce(I)?ce(j)||(te=(typeof j=="object"?j[sa]===!0:!1)||(ne?ne[sa]===!0:!1)):te=I[sa]===!0||le[sa]===!0,!te&&le&&Rm(le)&&(te=!0),te?b[le]||(b[le]=1):b[le]&&(te=!0),te}function X(I,j,ne){var te=!0,le=o;return ce(I)||(te=ne===!0||!ce(j)),le&&te}function J(){var I=null;return W[qr]&&W[qr].getTraceCtx&&(I=W[qr].getTraceCtx(!1)),!I&&_&&_.telemetryTrace&&(I=Lm(_.telemetryTrace)),I}function fe(I,j,ne,te){var le,ke=J(),De=ke&&ke[Sv]()||co(),He=eo(co(),0,16),Me=I[Do]=I[Do]||{xh:[],i:{}},at=Me.i=Me.i||{},vt=at[R]=at[R]||new vT(De,He,W[Xc](),(le=W.core)===null||le===void 0?void 0:le.getTraceCtx());return vt[Tr]=ke&&ke[wv](),vt[Co]=j,vt[Er]=ne,vt.xhrMonitoringState.openDone=!0,vt[rr]={},vt.async=te,vt[Ev]=d,vt}function Oe(I,j){j.xhrMonitoringState[hT]=ki(I,"readystatechange",function(){var ne;try{I&&I.readyState===4&&X(I,j)&&we(I)}catch(le){var te=Te(le);(!te||tl(te[Js](),"c00c023f")===-1)&&Qc(W,16,Jc+" 'readystatechange' event handler"+Qs,(ne={},ne[kv]=Yd(I,R),ne.exception=te,ne))}},oe)}function Ge(I){try{var j=I.responseType;if(j===""||j==="text")return I[pT]}catch{}return null}function we(I){var j=el(I,R);j[Kc]=Sd(),j[br]=I[br];function ne(te,le){var ke=le||{};ke.ajaxDiagnosticsMessage=Yd(I,R),te&&(ke.exception=Te(te)),Ii(W,14,ET+"ajax call"+yT,ke)}Wt("xmlhttprequest",j,function(){try{var te=j[Tv]("Ajax",f,function(){var Me,at=(Me={statusText:I[Oa],headerMap:null},Me[Cv]=be(I),Me.type=I.responseType,Me[pT]=Ge(I),Me.response=I.response,Me);if(T){var vt=I[_T]();if(vt){var Vt=yt(vt).split(/[\r\n]+/),Rn={};Se(Vt,function(Hn){var _n=Hn.split(": "),or=_n.shift(),fl=_n.join(": ");U(or)&&(Rn[or]=fl)}),at[Vd]=Rn}}return at}),le=void 0;try{G&&(le=G({status:I[br],xhr:I}))}catch{Ii(W,104,wT)}if(te){le!==void 0&&(te[qs]=En(En({},te.properties),le));var ke=j[bv]();Ee(A,W[qr],j,te,null,ke)}else ne(null,{requestSentTime:j[Ia],responseFinishedTime:j[Kc]})}finally{try{var De=I[Do]||{i:{}},He=De.i||{};He[R]&&(He[R]=null)}catch{}}},function(te){ne(te,null)})}function be(I){var j;try{var ne=I[_T]();if(ne!==null){var te=tl(ne[Js](),mt[8]);if(te!==-1){var le=I.getResponseHeader(mt[0]);return nE(le)}}}catch(ke){Ii(W,18,ST,(j={},j[kv]=Yd(I,R),j.exception=Te(ke),j))}}function ze(I,j){if(j[Er]&&g&&E){var ne=Si();if(ne&&Le(ne.mark)){TT++;var te=g+I+"#"+TT;ne.mark(te);var le=ne.getEntriesByName(te);le&&le[Da]===1&&(j[Fd]=le[0])}}}function Wt(I,j,ne,te){var le=j[Fd],ke=Si(),De=ae,He=he,Me=j[Er],at=0;(function vt(){try{if(ke&&le){at++;for(var Vt=null,Rn=ke.getEntries(),Hn=Rn[Da]-1;Hn>=0;Hn--){var _n=Rn[Hn];if(_n){if(_n.entryType==="resource")_n.initiatorType===I&&(tl(_n.name,Me)!==-1||tl(Me,_n.name)!==-1)&&(Vt=_n);else if(_n.entryType==="mark"&&_n.name===le.name){j[Nv]=Vt;break}if(_n[Xs]<le[Xs]-1e3)break}}}!le||j[Nv]||at>=De||j.async===!1?(le&&Le(ke.clearMarks)&&ke.clearMarks(le.name),j.perfAttempts=at,ne()):Jn(vt,He)}catch(or){te(or)}})()}function dt(I,j){var ne,te=J(),le=te&&te[Sv]()||co(),ke=eo(co(),0,16),De=new vT(le,ke,W[Xc](),(ne=W.core)===null||ne===void 0?void 0:ne.getTraceCtx());De[Tr]=te&&te[wv](),De[Ia]=Sd(),De[Ev]=d;var He;if(I instanceof Request?He=(I||{}).url||"":He=I,He===""){var Me=$r();Me&&Me.href&&(He=eS(Me.href,"#")[0])}De[Er]=He;var at="GET";j&&j[Co]?at=j[Co]:I&&I instanceof Request&&(at=I[Co]),De[Co]=at;var vt={};if(f){var Vt=new Headers((j?j[xa]:0)||(I instanceof Request?I[xa]||{}:{}));Vt.forEach(function(Rn,Hn){U(Hn)&&(vt[Hn]=Rn)})}return De[rr]=vt,ze(La,De),De}function q(I){var j="";try{ce(I)||(typeof I=="string"?j+="(url: '".concat(I,"')"):j+="(url: '".concat(I.url,"')"))}catch(ne){Qc(W,15,"Failed to grab failed fetch diagnostics message",{exception:Te(ne)})}return j}function me(I,j,ne,te,le,ke,De){if(!le)return;function He(Me,at,vt){var Vt=vt||{};Vt.fetchDiagnosticsMessage=q(ne),at&&(Vt.exception=Te(at)),Ii(W,Me,ET+"fetch call"+yT,Vt)}le[Kc]=Sd(),le[br]=j,Wt(La,le,function(){var Me=le[Tv]("Fetch",f,ke),at;try{G&&(at=G({status:j,request:ne,response:te}))}catch{Ii(W,104,wT)}if(Me){at!==void 0&&(Me[qs]=En(En({},Me.properties),at));var vt=le[bv]();Ee(A,W[qr],le,Me,null,vt)}else He(14,null,{requestSentTime:le[Ia],responseFinishedTime:le[Kc]})},function(Me){He(18,Me,null)})}function Pe(I){if(I&&I[xa])try{var j=I[xa].get(mt[0]);return nE(j)}catch(ne){Ii(W,18,ST,{fetchDiagnosticsMessage:q(I),exception:Te(ne)})}}function Ee(I,j,ne,te,le,ke){var De=!0,He=I[Da];if(He>0){var Me={item:te,properties:le,sysProperties:ke,context:ne?ne[qc]:null,aborted:ne?!!ne[Ks]:!1};De=NT(j,I,Me,"initializer")}De&&W[oT](te,le,ke)}}),n}return t.prototype.processTelemetry=function(n,i){this.processNext(n,i)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t}(Os),ZF=function(){function e(){}return e}(),GF=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}(),jF="3.3.7",qF=function(){function e(t,n){var i=this,o=At(t,function(){var s=t.sdkExtension;i.sdkVersion=(s?s+"_":"")+"javascript:"+jF});n&&n.add(o)}return e}(),KF=function(){function e(){}return e}(),Ud="session",zd="sessionManager",Hd="isUserCookieSet",Wd="isNewUser",Ov="getTraceCtx",Iv="telemetryTrace",kT="applySessionContext",CT="applyApplicationContext",PT="applyOperationContext",DT="applyOperatingSystemContxt",xT="applyLocationContext",OT="applyInternalContext",Zd="getSessionId",IT="sessionCookiePostfix",Ma="automaticSession",nl="accountId",rl="authenticatedId",tu="acquisitionDate",Gd="renewalDate",nu="cookieSeparator",Rv="authUserCookieName",XF="ai_session",JF=864e5,QF=18e5,e2=6e4,RT=function(){function e(){}return e}(),t2=function(){function e(t,n,i){var o=this,s,c,f=na(n),d=tm(n),p,_;St(e,o,function(v){t||(t={});var y=At(t,function(C){p=t.sessionExpirationMs||JF,_=t.sessionRenewalMs||QF;var M=t[IT]||t.namePrefix||"";s=XF+M});i&&i.add(y),v[Ma]=new RT,v.update=function(){var C=_r(),M=!1,z=v[Ma];if(z.id||(M=!g(z)),!M&&p>0){var G=C-z[tu],oe=C-z[Gd];M=G<0||oe<0,M=M||G>p,M=M||oe>_}M?w(C):(!c||C-c>e2)&&T(z,C)},v.backup=function(){var C=v[Ma];b(C.id,C[tu],C[Gd])};function g(C,M){var z=!1,G=d.get(s);if(G&&Le(G.split))z=E(C,G);else{var oe=iE(f,s);oe&&(z=E(C,oe))}return z||!!C.id}function E(C,M){var z=!1,G=", session will be reset",oe=M.split("|");if(oe.length>=2)try{var R=+oe[1]||0,F=+oe[2]||0;isNaN(R)||R<=0?pe(f,2,27,"AI session acquisition date is 0"+G):isNaN(F)||F<=0?pe(f,2,27,"AI session renewal date is 0"+G):oe[0]&&(C.id=oe[0],C[tu]=R,C[Gd]=F,z=!0)}catch(Q){pe(f,1,9,"Error parsing ai_session value ["+(M||"")+"]"+G+" - "+ft(Q),{exception:Te(Q)})}return z}function w(C){var M=t.getNewId||$_;v[Ma].id=M(t.idLength||22),v[Ma][tu]=C,T(v[Ma],C),Ed()||pe(f,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function T(C,M){var z=C[tu];C[Gd]=M;var G=_,oe=z+p-M,R=[C.id,z,M],F=0;oe<G?F=oe/1e3:F=G/1e3;var Q=t.cookieDomain||null;d.set(s,R.join("|"),p>0?F:null,Q),c=M}function b(C,M,z){oE(f,s,[C,M,z].join("|"))}})}return e.__ieDyn=1,e}(),n2=function(){function e(t,n,i,o){var s=this;s.traceID=t||co(),s.parentID=n;var c=$r();!i&&c&&c.pathname&&(i=c.pathname),s.name=Ht(o,i)}return e}();function LT(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var r2=function(){function e(t,n,i){this.isNewUser=!1,this.isUserCookieSet=!1;var o=na(n),s=tm(n),c;St(e,this,function(f){tt(f,"config",{g:function(){return t}});var d=At(t,function(){var y=t.userCookiePostfix||"";c=e.userCookieName+y;var g=s.get(c);if(g){f[Wd]=!1;var E=g.split(e[nu]);E.length>0&&(f.id=E[0],f[Hd]=!!f.id)}if(!f.id){f.id=p();var w=_(f.id);v(w.join(e[nu]));var T=(t.namePrefix||"")+"ai_session";pV(o,T)}f[nl]=t[nl]||void 0;var b=s.get(e[Rv]);if(b){b=decodeURI(b);var C=b.split(e[nu]);C[0]&&(f[rl]=C[0]),C.length>1&&C[1]&&(f[nl]=C[1])}});i&&i.add(d);function p(){var y=t||{},g=y.getNewId||$_,E=g(y.idLength?t.idLength:22);return E}function _(y){var g=Ns(new Date);f.accountAcquisitionDate=g,f[Wd]=!0;var E=[y,g];return E}function v(y){var g=31536e3;f[Hd]=s.set(c,y,g)}f.setAuthenticatedUserContext=function(y,g,E){E===void 0&&(E=!1);var w=!LT(y)||g&&!LT(g);if(w){pe(o,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}f[rl]=y;var T=f[rl];g&&(f[nl]=g,T=[f[rl],f.accountId].join(e[nu])),E&&s.set(e[Rv],encodeURI(T))},f.clearAuthenticatedUserContext=function(){f[rl]=null,f[nl]=null,s.del(e[Rv])},f.update=function(y){if(f.id!==y||!f[Hd]){var g=y||p(),E=_(g);v(E.join(e[nu]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),jd="ext",qd="tags";function il(e,t){e&&e[t]&&gi(e[t]).length===0&&delete e[t]}function MT(){return null}var i2=function(){function e(t,n,i,o){var s=this,c=t.logger;St(e,this,function(f){if(f.appId=MT,f[Zd]=MT,f.application=new ZF,f.internal=new qF(n,o),pf()){f[zd]=new t2(n,t,o),f.device=new GF,f.location=new KF,f.user=new r2(n,t,o);var d=void 0,p=void 0,_;i&&(d=i.getTraceId(),p=i.getSpanId(),_=i.getName()),f[Iv]=new n2(d,p,_,c),f[Ud]=new RT}f[Zd]=function(){var v=f[Ud],y=null;if(v&&Re(v.id))y=v.id;else{var g=(f[zd]||{})[Ma];y=g&&Re(g.id)?g.id:null}return y},f[kT]=function(v,y){gt(bn(v.ext,$n.AppExt),"sesId",f[Zd](),Re)},f[DT]=function(v,y){gt(v.ext,$n.OSExt,f.os)},f[CT]=function(v,y){var g=f.application;if(g){var E=bn(v,qd);gt(E,wt.applicationVersion,g.ver,Re),gt(E,wt.applicationBuild,g.build,Re)}},f.applyDeviceContext=function(v,y){var g=f.device;if(g){var E=bn(bn(v,jd),$n.DeviceExt);gt(E,"localId",g.id,Re),gt(E,"ip",g.ip,Re),gt(E,"model",g.model,Re),gt(E,"deviceClass",g.deviceClass,Re)}},f[OT]=function(v,y){var g=f.internal;if(g){var E=bn(v,qd);gt(E,wt.internalAgentVersion,g.agentVersion,Re),gt(E,wt.internalSdkVersion,Ht(c,g.sdkVersion,64),Re),(v.baseType===yc.dataType||v.baseType===go.dataType)&&(gt(E,wt.internalSnippet,g.snippetVer,Re),gt(E,wt.internalSdkSrc,g.sdkSrc,Re))}},f[xT]=function(v,y){var g=s.location;g&&gt(bn(v,qd,[]),wt.locationIp,g.ip,Re)},f[PT]=function(v,y){var g=f[Iv];if(g){var E=bn(bn(v,jd),$n.TraceExt,{traceID:void 0,parentID:void 0});gt(E,"traceID",g.traceID,Re,ce),gt(E,"name",g.name,Re,ce),gt(E,"parentID",g.parentID,Re,ce)}},f.applyWebContext=function(v,y){var g=s.web;g&&gt(bn(v,jd),$n.WebExt,g)},f.applyUserContext=function(v,y){var g=f.user;if(g){var E=bn(v,qd,[]);gt(E,wt.userAccountId,g[nl],Re);var w=bn(bn(v,jd),$n.UserExt);gt(w,"id",g.id,Re),gt(w,"authId",g[rl],Re)}},f.cleanUp=function(v,y){var g=v.ext;g&&(il(g,$n.DeviceExt),il(g,$n.UserExt),il(g,$n.WebExt),il(g,$n.OSExt),il(g,$n.AppExt),il(g,$n.TraceExt))}})}return e.__ieDyn=1,e}(),xo,Lv,ol=null,o2=ql((xo={accountId:ol,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:ol,sdkExtension:ol,isBrowserLinkTrackingEnabled:!1,appId:ol},xo[Zd]=ol,xo.namePrefix=Lv,xo[IT]=Lv,xo.userCookiePostfix=Lv,xo.idLength=22,xo.getNewId=ol,xo)),a2=function(e){Ei(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=Nd;var i,o,s,c,f;return St(t,n,function(d,p){_(),tt(d,"context",{g:function(){return c}}),d.initialize=function(g,E,w,T){p.initialize(g,E,w,T),v(g)},d.processTelemetry=function(g,E){if(!ce(g)){E=d._getTelCtx(E),g.name===go.envelopeType&&E.diagLog().resetInternalMessageCount();var w=c||{};w[Ud]&&typeof c[Ud].id!="string"&&w[zd]&&w[zd].update();var T=w.user;if(T&&!T[Hd]&&T.update(w.user.id),y(g,E),T&&T[Wd]&&(T[Wd]=!1,!f)){var b=new yc(72,(Lr()||{}).userAgent||"");rB(E.diagLog(),1,b)}d.processNext(g,E)}},d._doTeardown=function(g,E){var w=(g||{}).core();if(w&&w[Ov]){var T=w[Ov](!1);T===o&&w.setTraceCtx(s)}_()};function _(){i=null,o=null,s=null,c=null,f=!0}function v(g){var E=d.identifier,w=d.core;d._addHook(At(g,function(){var T=yr(null,g,w);g.storagePrefix&&Bm(g.storagePrefix),f=g.disableUserInitMessage!==!1,i=T.getExtCfg(E,o2),d._extConfig=i})),s=w[Ov](!1),c=new i2(w,i,s,d._unloadHooks),o=Lm(d.context[Iv],s),w.setTraceCtx(o),d.context.appId=function(){var T=w.getPlugin(TE);return T?T.plugin._appId:null}}function y(g,E){bn(g,"tags",[]),bn(g,"ext",{});var w=d.context;w[kT](g,E),w[CT](g,E),w.applyDeviceContext(g,E),w[PT](g,E),w.applyUserContext(g,E),w[DT](g,E),w.applyWebContext(g,E),w[xT](g,E),w[OT](g,E),w.cleanUp(g,E)}}),n}return t.__ieDyn=1,t}(Os),AT="AuthenticatedUserContext",al="track",Mv="snippet",s2="getCookieMgr",l2="startTrackPage",c2="stopTrackPage",Av="flush",u2="startTrackEvent",f2="stopTrackEvent",d2="addTelemetryInitializer",BT="pollInternalLogs",Bv="getPlugin",Vv="evtNamespace",h2=al+"Event",p2=al+"Trace",_2=al+"Metric",m2=al+"PageView",v2=al+"Exception",g2=al+"DependencyData",y2="set"+AT,S2="clear"+AT,w2="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",Kd="connectionString",Fv="version",Aa="queue",ru="instrumentationKey",sl="userOverrideEndpointUrl",Yv="endpointUrl",iu="onunloadFlush",ir="context",VT="addHousekeepingBeforeUnload",$v="sendMessage",E2="updateSnippetDefinitions",Kr,ll,cl,Uv,ou,FT=[Mv,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],YT="iKeyUsage",$T="CdnUsage",UT="SdkLoaderVer",T2="zipPayload",Xd=void 0,b2={samplingRate:100,maxSendNumber:1},N2={monthInterval:3,daysOfMonth:[28]},Jd={disabled:!0,limit:gr(b2),interval:gr(N2)},k2=(Kr={},Kr[Kd]=Xd,Kr.endpointUrl=Xd,Kr[ru]=Xd,Kr[sl]=Xd,Kr.diagnosticLogInterval=Xf(C2,1e4),Kr.featureOptIn=(ll={},ll[YT]={mode:3},ll[$T]={mode:2},ll[UT]={mode:2},ll[T2]={mode:1},ll),Kr.throttleMgrCfg=gr((cl={},cl[109]=gr(Jd),cl[106]=gr(Jd),cl[111]=gr(Jd),cl[110]=gr(Jd),cl)),Kr.extensionConfig=gr((Uv={},Uv.AppInsightsCfgSyncPlugin=gr({cfgUrl:w2,syncMode:2}),Uv)),Kr);function C2(e){return e&&e>0}function zT(e,t){return lc(function(n,i){Yn(t,function(o){var s=o&&o.value,c=null;!o.rejected&&s&&(e[Kd]=s,c=lE(s)),n(c)})})}var P2=function(){function e(t){var n=this,i,o,s,c,f,d,p,_,v,y,g,E,w,T;St(e,this,function(b){z(),tt(b,"config",{g:function(){return _}}),Se(["pluginVersionStringArr","pluginVersionString"],function(R){tt(b,R,{g:function(){return p?p[R]:null}})}),c=""+(t.sv||t[Fv]||""),t[Aa]=t[Aa]||[],t[Fv]=t[Fv]||2;var C=er(t.config||{},k2);_=C.cfg,v=new sF,tt(b,"appInsights",{g:function(){return v}}),o=new a2,i=new WF,s=new MF,p=new BB,tt(b,"core",{g:function(){return p}}),oe(At(C,function(){var R=_[Kd];if(Ji(R)){var F=lc(function(ae,he){Yn(zT(_,R),function(P){if(P.rejected)ae(null);else{var V=_[ru],K=P.value;V=K&&K.instrumentationkey||V,ae(V)}})}),Q=_[sl];ce(Q)&&(Q=lc(function(ae,he){Yn(zT(_,R),function(P){if(P.rejected)ae(null);else{var V=_[Yv],K=P.value,W=K&&K.ingestionendpoint;V=W?W+Rs:V,ae(V)}})})),_[ru]=F,_[Yv]=Q}if(Re(R)&&R){var A=lE(R),B=A.ingestionendpoint;_.endpointUrl=_[sl]?_[sl]:B+Rs,_[ru]=A.instrumentationkey||_[ru]}_.endpointUrl=_[sl]?_[sl]:_[Yv]})),b[Mv]=t,b[Av]=function(R,F){R===void 0&&(R=!0);var Q;return ad(p,function(){return"AISKU.flush"},function(){R&&!F&&(Q=oo(function(ae){F=ae}));var A=1,B=function(){A--,A===0&&F()};Se(p.getChannels(),function(ae){ae&&(A++,ae[Av](R,B))}),B()},null,R),Q},b[iu]=function(R){R===void 0&&(R=!0),Se(p.getChannels(),function(F){F[iu]?F[iu]():F[Av](R)})},b.loadAppInsights=function(R,F,Q){R===void 0&&(R=!1),R&&cM("Legacy Mode is no longer supported");function A(B){if(B){var ae="";ce(c)||(ae+=c),b[ir]&&b[ir].internal&&(b[ir].internal.snippetVer=ae||"-"),Xe(b,function(he,P){Re(he)&&!Le(P)&&he&&he[0]!=="_"&&dn(FT,he)===-1&&B[he]!==P&&(B[he]=P)})}}return ad(b.core,function(){return"AISKU.loadAppInsights"},function(){p.initialize(_,[s,o,i,v,y],F,Q),tt(b,"context",{g:function(){return o[ir]}}),g||(g=new mV(p));var B=D2();B&&b[ir]&&(b[ir].internal.sdkSrc=B),A(b[Mv]),b.emptyQueue(),b[BT](),b[VT](b),oe(At(C,function(){var ae=!1;_.throttleMgrCfg[109]&&(ae=!_.throttleMgrCfg[109].disabled),!g.isReady()&&_.extensionConfig&&_.extensionConfig[y.identifier]&&ae&&g.onReadyState(!0),!E&&!_[Kd]&&zf(YT,_,!0)&&(g[$v](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),E=!0),!w&&b[ir].internal.sdkSrc&&b[ir].internal.sdkSrc.indexOf("az416426")!=-1&&zf($T,_,!0)&&(g[$v](110,"See Cdn support notice at aka.ms/JsActiveCdn"),w=!0),!T&&parseInt(c)<6&&zf(UT,_,!0)&&(g[$v](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),T=!0)}))}),b},b[E2]=function(R){oA(R,b,function(F){return F&&dn(FT,F)===-1})},b.emptyQueue=function(){try{if($e(b.snippet[Aa])){for(var R=b.snippet[Aa].length,F=0;F<R;F++){var Q=b.snippet[Aa][F];Q()}b.snippet[Aa]=void 0,delete b.snippet[Aa]}}catch(B){var A={};B&&Le(B.toString)&&(A.exception=B.toString())}},b[VT]=function(R){if(pf()||U0()){var F=function(){if(R[iu](!1),Le(b.core[Bv])){var A=n.core[Bv](Nd);if(A){var B=A.plugin;B&&B[ir]&&B[ir]._sessionManager&&B[ir]._sessionManager.backup()}}},Q=!1;d||(d=ho(f,p[Vv]&&p[Vv]())),oe(At(_,function(A){var B=A.cfg,ae=R.appInsights,he=yr(null,B,ae.core),P=he.getExtCfg(ae.identifier||bE);G();var V=B.disablePageUnloadEvents;P.disableFlushOnBeforeUnload||(qB(F,V,d)&&(Q=!0),ym(F,V,d)&&(Q=!0),!Q&&!bA()&&pe(p.logger,1,19,"Could not add handler for beforeunload and pagehide")),!Q&&!P.disableFlushOnUnload&&ym(F,V,d)}))}},b.getSender=function(){return s},b.unload=function(R,F,Q){var A=!1,B;R&&!F&&(B=oo(function(he){F=he}));function ae(he){A||(A=!0,z(),F&&F(he))}return b[iu](R),G(),p.unload&&p.unload(R,ae,Q),B},uc(b,v,[s2,h2,m2,"trackPageViewPerformance",v2,"_onerror",p2,_2,l2,c2,u2,f2]),uc(b,M,[g2,"addDependencyListener","addDependencyInitializer"]),uc(b,p,[d2,BT,"stopPollingInternalLogs",Bv,"addPlugin",Vv,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),uc(b,function(){var R=o[ir];return R?R.user:null},[y2,S2]);function M(){return i}function z(){f=Qn("AISKU"),d=null,i=null,o=null,s=null,c=null,g=null,E=!1,w=!1,T=!1,y=new _F}function G(){d&&(KB(null,d),XB(null,d))}function oe(R){p.addUnloadHook(R)}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();function D2(){if(ou)return ou;var e=null,t=!1,n=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var i=(document||{}).currentScript;i&&(e=i.src)}catch{}if(e){try{var o=e.toLowerCase();if(o){var s="";Se(n,function(c,f){if(wn(o,c)!==-1)return s="cdn"+(f+1),wn(o,"/scripts/")===-1&&(wn(o,"/next/")!==-1?s+="-next":wn(o,"/beta/")!==-1&&(s+="-beta")),ou=s+(t?".mod":""),-1})}}catch{}ou=e}return ou}function HT(e){const t=new P2({config:{instrumentationKey:e,enableAutoRouteTracking:!1}});return t.loadAppInsights(),t}const x2={install:function(e,t){const n=HT(t.instrumentationKey),i=new SL(t.loggingLevel,n);Hl.register(i)}};var Xr=(e=>(e[e.ApplicationStart=0]="ApplicationStart",e[e.PageView=1]="PageView",e[e.Search=2]="Search",e[e.Sort=3]="Sort",e))(Xr||{});function O2(e){return e?`Field:'${e.SortField??"unspecified"}' Direction:'${e.SortDirection??"unspecified"}'`:"Sort: unspecified"}function I2(e){return!e||e.length===0?["No filters applied"]:e.sort(t=>t.displayPosition).map(t=>t.summariseStateAsText())}class R2{constructor(t){this.eventsToLog=t}trackPageView(t){this.eventShouldBeRecorded(Xr.PageView)&&this.recordEvent("Page view",t)}trackSearch(t){if(this.eventShouldBeRecorded(Xr.Search)){const n=I2(t);this.recordEvent("Search",n)}}trackSort(t){if(this.eventShouldBeRecorded(Xr.Sort)){const n=O2(t);this.recordEvent("Sort",n)}}trackApplicationStart(){this.eventShouldBeRecorded(Xr.ApplicationStart)&&this.recordEvent("Application start")}recordEvent(t,n){console.log(`${t}:`,n??"")}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const L2={install:function(e,t){const n=new R2(t.eventsToLog);e.config.globalProperties.$router.afterEach(o=>{var s;n.trackPageView({name:(s=o.name)==null?void 0:s.toString(),uri:o.fullPath})}),Qa.register(n)}};class M2{constructor(t,n){this.eventsToLog=t,this.appInsights=n}trackPageView(t){this.eventShouldBeRecorded(Xr.PageView)&&this.appInsights.trackPageView()}trackSearch(t){if(this.eventShouldBeRecorded(Xr.Search)){const n=t.map(o=>o.summariseStateAsObject()),i=t.map(o=>o.summariseStateAsText());this.appInsights.trackEvent({name:"Search",properties:{stateObject:n,stateText:i}})}}trackSort(t){this.eventShouldBeRecorded(Xr.Sort)&&this.appInsights.trackEvent({name:"Sort",properties:{sortState:t}})}trackApplicationStart(){this.eventShouldBeRecorded(Xr.ApplicationStart)&&this.appInsights.trackEvent({name:"Application start"})}eventShouldBeRecorded(t){return this.eventsToLog.includes(t)}}const A2={install:function(e,t){const n=HT(t.instrumentationKey),i=new M2(t.eventsToLog,n),o=s=>{var f;const c=(f=s.name)==null?void 0:f.valueOf();i.trackPageView({name:c,uri:s.path})};zl.add({priority:w0.Low,action:o}),Qa.register(i)}};pt.CapeApplicationInsightsAnalyticsPlugin=A2,pt.CapeApplicationInsightsLoggingPlugin=x2,pt.CapeConsoleAnalyticsPlugin=L2,pt.CapeConsoleLoggingPlugin=yL,pt.CapeEvent=Xr,pt.CapeLogger=Hl,pt.CapePlugin=b0,pt.Filter=Fh,pt.LoggingLevel=Dn,pt.createCapeApp=vL,pt.useDatasetStore=Zi,pt.useFieldStore=es,pt.useFilterStore=Yt,pt.usePropertyStore=nn,pt.useRecordStore=oi,pt.useSearchResultsStore=mn,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});