code-server
Version:
Run VS Code on a remote server.
33 lines • 242 kB
JavaScript
"use strict";var by=Object.create;var Pf=Object.defineProperty;var Ay=Object.getOwnPropertyDescriptor;var Py=Object.getOwnPropertyNames;var Cy=Object.getPrototypeOf,Ry=Object.prototype.hasOwnProperty;var O=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var _r=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ou=(r,e)=>{for(var t in e)Pf(r,t,{get:e[t],enumerable:!0})},Ig=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Py(e))!Ry.call(r,i)&&i!==t&&Pf(r,i,{get:()=>e[i],enumerable:!(n=Ay(e,i))||n.enumerable});return r};var Pr=(r,e,t)=>(t=r!=null?by(Cy(r)):{},Ig(e||!r||!r.__esModule?Pf(t,"default",{value:r,enumerable:!0}):t,r)),Lu=r=>Ig(Pf({},"__esModule",{value:!0}),r);var cs,vi,Cn,fn,fs,Yu,s_=O(()=>{cs="function",vi="object",Cn="undefined",fn="prototype",fs=Object,Yu=fs[fn]});function ur(r,e){return r||e}function je(r,e){return r?.[e]}function Ee(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function Vy(r,e,t){var n=Ee(r,t);return n.e?e:n.v}function Ff(r){return function(e){return typeof e===r}}function Ug(r){var e="[object "+r+"]";return function(t){return!!(t&&Mf(t)===e)}}function Mf(r){return Gu[ku].call(r)}function I_(r,e){return typeof r===e}function Te(r){return typeof r===Jo||r===Jo}function Ky(r){return r===qr}function F(r){return r===tr||Te(r)}function ln(r){return r===tr||r===qr}function Fg(r){return!!r||r!==qr}function Wy(r){return!u_&&(u_=["string","number","boolean",Jo,"symbol","bigint"]),r!==Hu&&u_.indexOf(r)!==-1}function nr(r){return!r&&F(r)?!1:!!r&&typeof r===Hu}function _t(r){return!!(r&&r.then&&ue(r.then))}function x_(r){return!r||!dn(r)}function dn(r){return!(!r||Vy(function(){return!(r&&0+r)},!r))}function b_(){}function $y(){return[]}function qy(){return!1}function te(r,e){var t=T_,n=Gu[ku][mr](r);n===Xy&&(r={stack:pr(r.stack),message:pr(r.message),name:pr(r.name)});try{t=JSON.stringify(r,tr,e?typeof e=="number"?e:4:qr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):tr)||pr(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function cr(r){throw new Error(r)}function st(r){throw new TypeError(r)}function kf(r){ln(r)&&st("Cannot convert undefined or null to object")}function Mg(r){Se(r)||st("'"+te(r)+"' is not a string")}function Cr(r,e){return!!r&&Gu.hasOwnProperty[mr](r,e)}function Qy(r,e){return kf(r),Cr(r,e)||!!Jy(r,e)}function Zy(r){return r===Fu||r===Mu||r===Xr}function oe(r,e,t){if(r&&(nr(r)||ue(r))){for(var n in r)if(qt(r,n)&&e[mr](ln(t)?r:t,n,r[n])===-1)break}}function R(r,e,t){if(r)for(var n=r[Zo]>>>0,i=0;i<n&&!(i in r&&e[mr](ln(t)?r:t,r[i],i,r)===-1);i++);}function vs(r,e,t){var n=e?e[r]:tr;return function(i){var o=(i?i[r]:tr)||n;if(o||t){var a=arguments;return(o||t).apply(i,o?Rn[mr](a,1):a)}st('"'+pr(r)+'" not defined for '+te(i))}}function eI(r,e,t){var n=e?e[r]:tr;return function(i){var o=n;if(o||t){var a=arguments;return(o||t).apply(i,o?Rn[mr](a,1):a)}st('"'+pr(r)+'" not defined for '+te(i))}}function rI(r){return function(e){return e[r]}}function tI(r,e){var t,n=kr.getOwnPropertyDescriptor;return!ln(r)&&n&&(t=Ee(n,[r,e]).v||tr),!t&&!ln(r)&&(t=Ee(function(){for(var i in r)if(i==e)return{enumerable:Cr(r,i)}}).v),t&&t.enumerable||!1}function Hg(r){var e={};if(e[Cf.c]=!0,e[Cf.e]=!0,r.l){e.get=function(){return r.l.v};var t=iI(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return oe(r,function(n,i){e[Cf[n]]=Ky(i)?e[Cf[n]]:i}),e}function P_(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Nt(r,e,Hg(a))}function we(r,e,t){return Nt(r,e,Hg(t))}function kg(r,e,t,n,i){var o={};return oe(r,function(a,s){Lf(o,a,e?s:a),Lf(o,s,t?s:a)}),n?n(o):o}function Lf(r,e,t,n){Nt(r,e,{value:t,enumerable:!0,writable:!1})}function Bg(r){return r}function aI(r){return kf(r),r[Fu]||tr}function jg(r,e){if((re(r)||nr(r)||ue(r))&&!oI(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),oe(r,function(n,i){jg(i,e)}),Xt(r)}return r}function On(r){return Gg?jg(r,[]):r}function zg(r){return kg(r,1,0,Xt)}function sI(r){return kg(r,0,0,Xt)}function uI(r){var e={};return oe(r,function(t,n){Lf(e,t,n[1]),Lf(e,n[0],n[1])}),Xt(e)}function Vg(r){return uI(r)}function Wg(){var r;return typeof globalThis!==Jo&&(r=globalThis),!r&&typeof self!==Jo&&(r=self),!r&&typeof window!==Jo&&(r=window),!r&&typeof global!==Jo&&(r=global),r}function Gf(){if(!c_){var r=Ee(Wg).v||{};c_=r[Ag]=r[Ag]||{}}return c_}function fI(r,e,t){return kf(r),t<0?T_:(e=e||0,e<0&&(e=cI(e+r[Zo],0)),Te(t)?Pg(r,e):Pg(r,e,e+t))}function ta(r,e){return Rr(r,0,e)}function lI(r,e){return r&&(Ee(function(){r[xg]=!0,r[bg]=e}),Ee(we,[r,xg,{v:!0,w:!1,e:!1}]),Ee(we,[r,bg,{v:e,w:!1,e:!1}])),r}function dI(r,e){var t=null;function n(){}if(ln(r))t={};else{var i=typeof r;i!==Hu&&i!==Uf&&st("Prototype must be an Object or function: "+te(r)),n[Xr]=r,Ee(function(){n[Fu]=r}),t=new n}return e&&Ee(A_,[t,e]),t}function ir(){return(Date.now||vI)()}function vI(){return new Date().getTime()}function Qo(r,e,t){return r.apply(e,t)}function $i(){Sr=Gf()}function R_(r,e){var t={};return!Sr&&$i(),t.b=Sr.lzy,Nt(t,"v",{configurable:!0,get:function(){var n=Qo(r,null,e);return Sr.lzy||Nt(t,"v",{value:n}),t.b=Sr.lzy,n}}),t}function gI(){if(!f_){var r=Gf();f_=r.gblSym=r.gblSym||{k:{},s:{}}}return f_}function w_(r){var e="_"+hI+++"_"+pI.v,t=D_+"("+r+")";function n(o,a){we(i,o,{v:a,e:!1,w:!1})}var i=vn(null);return n("description",pr(r)),n(ku,function(){return t+mI+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),lI(i,"symbol")}function EI(r){var e=gI();if(!qt(e.k,r)){var t=w_(r),n=Qr(e.s).length;t[Cg]=function(){return n+"_"+t[ku]()},e.k[r]=t,e.s[t[Cg]()]=pr(r)}return e.k[r]}function SI(r){!Rf&&(Rf={});var e,t=Kg[r];return t&&(e=Rf[t]=Rf[t]||w_(D_+"."+t)),e}function Tt(r){return Nt({toJSON:function(){return r}},"v",{value:r})}function Bu(r,e){var t;return function(){return!Sr&&$i(),(!t||Sr.lzy)&&(t=Tt(Ee(r,e).v)),t.v}}function pt(r){return!Sr&&$i(),(!Uu||r===!1||Sr.lzy)&&(Uu=Tt(Ee(Wg).v||tr)),Uu.v}function le(r,e){var t;if(!Uu||e===!1?t=pt(e):t=Uu.v,t&&t[r])return t[r];if(r===$g)try{return window}catch{}return tr}function na(){return!!fr()}function ps(){return!!Nr()}function ju(){return!!wr()}function O_(){return!!Bf()}function jf(){return ls=Tt(Ee(le,[D_]).v),ls}function NI(r){var e=(Sr.lzy?0:ls)||jf();return e.v?e.v[r]:qr}function Xg(){return!!TI()}function TI(){return!Sr&&$i(),((Sr.lzy?0:ls)||jf()).v}function zu(r,e){var t=Kg[r];!Sr&&$i();var n=(Sr.lzy?0:ls)||jf();return n.v?n.v[t||r]:e?qr:SI(r)}function ms(r,e){!Sr&&$i();var t=(Sr.lzy?0:ls)||jf();return t.v?t.v(r):e?tr:w_(r)}function zf(r){return!Sr&&$i(),l_=(Sr.lzy?0:l_)||Tt(Ee(NI,["for"]).v),(l_.v||EI)(r)}function Yf(r){return!!r&&ue(r.next)}function L_(r){return!ln(r)&&ue(r[zu(3)])}function Vf(r,e,t){if(r&&(Yf(r)||(!wf&&(wf=Tt(zu(3))),r=r[wf.v]?r[wf.v]():tr),Yf(r))){var n=qr,i=qr;try{for(var o=0;!(i=r.next()).done&&e[mr](ln(t)?r:t,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=tr,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function _n(r,e){return!Te(e)&&r&&(re(e)?Qo(r.push,r,e):Yf(e)||L_(e)?Vf(e,function(t){r.push(t)}):r.push(e)),r}function hs(r,e,t){return((r?r.slice:tr)||Rn).apply(r,Rn[mr](arguments,1))}function DI(r,e,t){return Oe(r,e,t)!==-1}function yI(r,e){var t;return!d_&&(d_=Tt((t={},t[Fu]=[],t instanceof Array))),d_.v?r[Fu]=e:oe(e,function(n,i){return r[n]=i}),r}function II(r,e,t){Ee(we,[e,Of,{v:r,c:!0,e:!1}]),e=Jg(e,t);function n(){this[Mu]=e,Ee(we,[this,Of,{v:r,c:!0,e:!1}])}return e[Xr]=t===tr?vn(t):(n[Xr]=t[Xr],new n),e}function Rg(r,e){e&&(r[Of]=e)}function U_(r,e,t,n){var i=t||Error,o=i[Xr][Of],a=Error.captureStackTrace;return II(r,function(){var s=this,u=arguments;try{Ee(Rg,[i,r]);var c=Qo(i,s,n?n(u):Rn[mr](u))||s;if(c!==s){var f=N_(s);f!==N_(c)&&Jg(c,f)}return a&&a(c,s[Mu]),e&&e(c,u),c}finally{Ee(Rg,[i,o])}},i)}function bI(r){return function(t){return kf(t),t=pr(t),t&&(t=xI(t,r,T_)),t}}function CI(r,e,t){if(r!==tr&&r!==qr){for(var n in r)if(qt(r,n)&&e[mr](ln(t)?r:t,n,r[n])===-1)return;R(PI(r),function(i){if(nI(r,i)&&e[mr](ln(t)?r:t,i,r[i])===-1)return-1})}}function RI(r,e,t){CI(r,function(n,i){if(!Zy(n))return e[mr](ln(t)?r:t,n,i)},t)}function Zr(r){if(!r||typeof r!==Hu)return!1;p_||(p_=ps()?Nr():!0);var e=!1;if(r!==p_){__||(v_=Function[Xr][ku],__=v_[mr](kr));try{var t=N_(r);e=!t,e||(Cr(t,Mu)&&(t=t[Mu]),e=!!(t&&typeof t===Uf&&v_[mr](t)===__))}catch{}}return e}function wI(r,e){e&&r.push(e)}function sr(r,e){e&&e[Xr]}function OI(){var r=[Gu,_i,ds,Ly,Uy,My,ky,By,zy];return Ee(le,["Map"]).v,Ee(le,["Set"]).v,Ee(le,["WeakMap"]).v,Ee(le,["WeakSet"]).v,Ee(le,["Promise"]).v,Ee(le,["Symbol"]).v,Ee(le,["ArrayBuffer"]).v,Ee(le,["SharedArrayBuffer"]).v,Ee(le,["DataView"]).v,Ee(le,["Int8Array"]).v,Ee(le,["Uint8Array"]).v,Ee(le,["Uint8ClampedArray"]).v,Ee(le,["Int16Array"]).v,Ee(le,["Uint16Array"]).v,Ee(le,["Int32Array"]).v,Ee(le,["Uint32Array"]).v,Ee(le,["Float32Array"]).v,Ee(le,["Float64Array"]).v,Ee(le,["BigInt64Array"]).v,Ee(le,["BigUint64Array"]).v,Ee(le,["WeakRef"]).v,Ee(le,["FinalizationRegistry"]).v,r}function LI(r){return m_||(m_=Tt(OI())),Oe(m_.v,r)>=0}function YI(r){return r.value&&eE(r),!0}function UI(r,e,t,n){var i;return R(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function F_(r,e,t,n){var i=t.handler,o=t.path?n?t.path.concat(n):t.path:[],a={handler:t.handler,src:t.src,path:o},s=typeof e,u=!1,c=e===tr;c||(e&&s===Hu?u=Zr(e):c=Wy(s));var f={type:s,isPrim:c,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(v,d){return F_(r,v,d?a:t,d)},copyTo:function(v,d){return Zg(r,v,d,a)}};return f.isPrim?i&&i[mr](t,f)?f.result:e:UI(r,e,o,function(v){we(f,"result",{g:function(){return v.v},s:function(_){v.v=_}});for(var d=0,m=i;!(m||(d<wg.length?wg[d++]:YI))[mr](t,f);)m=tr})}function Zg(r,e,t,n){return LI(t)||RI(t,function(i,o){e[i]=F_(r,o,n,i)}),e}function FI(r,e,t){var n={handler:t,src:e,path:[]};return Zg([],r,e,n)}function MI(r,e){var t={handler:e,src:r};return F_([],r,t)}function HI(r){var e=r.value;if(re(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function kI(r){var e=r.value;return Hf(e)?(r.result=new Date(e.getTime()),!0):!1}function GI(r){return r.type===Uf}function eE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function BI(r,e){return R(e,function(t){FI(r,t)}),r}function M_(r,e,t,n,i,o,a){return BI(MI(r)||{},Rn[mr](arguments))}function qi(){return!Sr&&$i(),(!h_||Sr.lzy)&&(h_=Tt(Ee(le,["performance"]).v)),h_.v}function Ku(){var r=qi();return r&&r.now?r.now():ir()}function jI(r,e,t){Mg(r);var n=Se(e)?e:pr(e),i=!Te(t)&&t<r[Zo]?t:r[Zo];return Rr(r,i-n[Zo],i)===n}function zI(r,e,t){Mg(r);var n=Se(e)?e:pr(e),i=t>0?t:0;return Rr(r,i,i+n[Zo])===n}function KI(r,e,t){var n=!0,i=r?e(tr):tr,o;function a(){return n=!1,i&&i[E_]&&i[E_](),o}function s(){i&&t(i),i=tr}function u(){return i=e(i),n||a(),o}function c(f){!f&&i&&s(),f&&!i&&u()}return o={cancel:s,refresh:u},o[S_]=function(){return i&&i[S_]?i[S_]():n},o[g_]=function(){return n=!0,i&&i[g_]&&i[g_](),o},o[E_]=a,o=Nt(o,VI,{get:function(){return!!i},set:c}),{h:o,dn:function(){i=tr}}}function qI(r){var e=ue(r)?r:WI;if(!e){var t=Gf().tmOut||[];re(t)&&t.length>0&&ue(t[0])&&(e=t[0])}return e||setTimeout}function XI(r){var e=ue(r)?r:$I;if(!e){var t=Gf().tmOut||[];re(t)&&t.length>1&&ue(t[1])&&(e=t[1])}return e||clearTimeout}function H_(r,e,t){var n=re(e),i=n?e.length:0,o=qI(i>0?e[0]:n?qr:e),a=XI(i>1?e[1]:qr),s=t[0];t[0]=function(){u.dn(),Qo(s,qr,Rn[mr](arguments))};var u=KI(r,function(c){if(c){if(c.refresh)return c.refresh(),c;Qo(a,qr,[c])}return Qo(o,qr,t)},function(c){Qo(a,qr,[c])});return u.h}function Mt(r,e){return H_(!0,qr,Rn[mr](arguments))}function rE(r,e,t){return H_(!0,r,Rn[mr](arguments,1))}function tE(r,e){return H_(!1,qr,Rn[mr](arguments))}var qr,tr,T_,Uf,Hu,Xr,Fu,Jo,Mu,D_,Zo,Of,mr,ku,y_,wy,kr,Gu,Og,_i,Lg,Yg,ds,Rn,Oy,Ly,Yy,Uy,Fy,My,Hy,ky,Gy,By,jy,zy,xg,bg,u_,Se,ue,re,Hf,Jr,wn,ea,pr,Xy,Jy,qt,ra,nI,iI,Cf,Nt,A_,oI,Gg,_s,Qr,Xt,C_,N_,Kg,Ag,c_,cI,Pg,Rr,Ln,vn,Sr,_I,pI,Cg,mI,f_,hI,Rf,$g,Uu,fr,Nr,wr,Bf,qg,ls,l_,wf,Oe,pi,Y_,gs,Vu,d_,Jg,xI,AI,Ue,Qg,PI,v_,__,p_,m_,wg,h_,Dt,ia,Es,g_,E_,S_,VI,WI,$I,me=O(()=>{qr=void 0,tr=null,T_="",Uf="function",Hu="object",Xr="prototype",Fu="__proto__",Jo="undefined",Mu="constructor",D_="Symbol",Zo="length",Of="name",mr="call",ku="toString",y_="getOwnPropertyDescriptor",wy="getOwnPropertySymbols",kr=ur(Object),Gu=je(kr,Xr),Og=ur(String),_i=je(Og,Xr),Lg=ur(Math),Yg=ur(Array),ds=je(Yg,Xr),Rn=je(ds,"slice"),Oy=ur(Number),Ly=je(Oy,Xr),Yy=ur(Function),Uy=je(Yy,Xr),Fy=ur(Date),My=je(Fy,Xr),Hy=ur(RegExp),ky=je(Hy,Xr),Gy=ur(Boolean),By=je(Gy,Xr),jy=ur(Error),zy=je(jy,Xr),xg="_polyfill",bg="__nw21$polytype__";Se=Ff("string"),ue=Ff(Uf);re=je(Yg,"isArray"),Hf=Ug("Date"),Jr=Ff("number"),wn=Ff("boolean"),ea=Ug("Error");pr=ur(Og),Xy="[object Error]";Jy=ur(je(kr,y_),b_),qt=ur(je(kr,"hasOwn"),Qy);ra=vs;nI=eI("propertyIsEnumerable",Gu,tI),iI=ur(je(kr,y_),b_),Cf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Nt=je(kr,"defineProperty"),A_=je(kr,"defineProperties");oI=ur(je(kr,"isFrozen"),qy),Gg=je(kr,"freeze");_s=je(kr,"assign"),Qr=je(kr,"keys");Xt=ur(Gg,Bg),C_=ur(je(kr,"seal"),Bg),N_=ur(je(kr,"getPrototypeOf"),aI);Kg=sI({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}),Ag="__tsUtils$gblCfg";cI=je(Lg,"max"),Pg=ra("slice",_i),Rr=ra("substring",_i),Ln=vs("substr",_i,fI);vn=ur(je(kr,"create"),dI);_I=je(Lg,"random"),pI=R_(function(){for(var r=ir().toString(36).slice(2);r.length<16;)r+=_I().toString(36).slice(2);return r=r.substring(0,16),r}),Cg="_urid",mI="$nw21sym",hI=0;$g="window";fr=Bu(le,["document"]);Nr=Bu(le,[$g]);wr=Bu(le,["navigator"]);Bf=Bu(le,["history"]),qg=Bu(function(){return!!Ee(function(){return process&&(process.versions||{}).node}).v});Oe=ra("indexOf",ds),pi=ra("map",ds);Y_=vs("includes",ds,DI),gs=rI(Zo),Vu=ra("reduce",ds),Jg=ur(je(kr,"setPrototypeOf"),yI);xI=ra("replace",_i);AI=bI(/^\s+|(?=\s)\s+$/g),Ue=vs("trim",_i,AI),Qg=ur(je(kr,y_),b_),PI=ur(je(kr,wy),$y);wg=[HI,eE,GI,kI];Dt=ra("indexOf",_i),ia=vs("endsWith",_i,jI);Es=vs("startsWith",_i,zI);g_="ref",E_="unref",S_="hasRef",VI="enabled"});function yt(r,e){typeof e!==cs&&e!==null&&st("Class extends value "+String(e)+" is not a constructor or null"),k_(r,e);function t(){this.constructor=r}r[fn]=e===null?vn(e):(t[fn]=e[fn],new t)}function Kf(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var jA,zA,nE,QI,Jt,k_,iE=O(()=>{me();s_();jA=(pt()||{}).Symbol,zA=(pt()||{}).Reflect,nE="hasOwnProperty",QI=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Yu[nE].call(e,i)&&(r[i]=e[i])}return r},Jt=_s||QI,k_=function(r,e){return k_=fs.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[nE](i)&&(t[i]=n[i])},k_(r,e)}});var oE=O(()=>{});var It=O(()=>{s_();iE();oE();me()});function Xf(r){return r&&(r===$_[mi]||r===Array[mi])}function q_(r){return Xf(r)||r===Function[mi]}function oa(r){var e;if(r){if($u)return $u(r);var t=r[W_]||r[mi]||(r[Jf]?r[Jf][mi]:null);e=r[$f]||t,Cr(r,$f)||(delete r[G_],e=r[$f]=r[G_]||r[$f],r[G_]=t)}return e}function el(r,e){var t=[];if(uE)t=uE(r);else for(var n in r)typeof n=="string"&&Cr(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function X_(r,e,t){return e!==Jf&&typeof r[e]===Qf&&(t||Cr(r,e))&&e!==W_&&e!==mi}function rl(r){st("DynamicProto: "+r)}function ex(r){var e=vn(null);return el(r,function(t){!e[t]&&X_(r,t,!1)&&(e[t]=r[t])}),e}function J_(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function rx(r,e,t,n){function i(u,c,f){var v=c[f];if(v[j_]&&n){var d=u[Zf]||{};d[Wu]!==!1&&(v=(d[c[Ss]]||{})[f]||v)}return function(){return v.apply(u,arguments)}}var o=vn(null);el(t,function(u){o[u]=i(e,t,u)});for(var a=oa(r),s=[];a&&!q_(a)&&!J_(s,a);)el(a,function(u){!o[u]&&X_(a,u,!$u)&&(o[u]=i(e,a,u))}),s.push(a),a=oa(a);return o}function tx(r,e,t,n){var i=null;if(r&&Cr(t,Ss)){var o=r[Zf]||vn(null);if(i=(o[t[Ss]]||vn(null))[e],i||rl("Missing ["+e+"] "+Qf),!i[z_]&&o[Wu]!==!1){for(var a=!Cr(r,e),s=oa(r),u=[];a&&s&&!q_(s)&&!J_(u,s);){var c=s[e];if(c){a=c===n;break}u.push(s),s=oa(s)}try{a&&(r[e]=i),i[z_]=1}catch{o[Wu]=!1}}}return i}function nx(r,e,t){var n=e[r];return n===t&&(n=oa(e)[r]),typeof n!==Qf&&rl("["+r+"] is not a "+Qf),n}function ix(r,e,t,n,i){function o(u,c){var f=function(){var v=tx(this,c,u,f)||nx(c,u,f);return v.apply(this,arguments)};return f[j_]=1,f}if(!Xf(r)){var a=t[Zf]=t[Zf]||vn(null);if(!Xf(a)){var s=a[e]=a[e]||vn(null);a[Wu]!==!1&&(a[Wu]=!!i),Xf(s)||el(t,function(u){X_(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!Cr(r,u)||r[u]&&!r[u][j_])&&(r[u]=o(r,u)))})}}}function ox(r,e){if($u){for(var t=[],n=oa(e);n&&!q_(n)&&!J_(t,n);){if(n===r)return!0;t.push(n),n=oa(n)}return!1}return!0}function B_(r,e){return Cr(r,mi)?r.name||e||aE:((r||{})[Jf]||{}).name||e||aE}function be(r,e,t,n){Cr(r,mi)||rl("theClass is an invalid class definition.");var i=r[mi];ox(i,e)||rl("["+B_(r)+"] not in hierarchy of ["+B_(e)+"]");var o=null;Cr(i,Ss)?o=i[Ss]:(o=ZI+B_(r,"_")+"$"+K_.n,K_.n++,i[Ss]=o);var a=be[fE],s=!!a[qf];s&&n&&n[qf]!==void 0&&(s=!!n[qf]);var u=ex(e),c=rx(i,e,u,s);t(e,c);var f=!!$u&&!!a[V_];f&&n&&(f=!!n[V_]),ix(i,o,e,u,f!==!1)}var Wf,Jf,mi,Qf,Zf,j_,Ss,ZI,z_,Wu,fE,aE,W_,$f,sE,G_,qf,V_,$_,$u,uE,cE,K_,Gr=O(()=>{me();Jf="constructor",mi="prototype",Qf="function",Zf="_dynInstFuncs",j_="_isDynProxy",Ss="_dynClass",ZI="_dynCls$",z_="_dynInstChk",Wu=z_,fE="_dfOpts",aE="_unknown_",W_="__proto__",$f="_dyn"+W_,sE="__dynProto$Gbl",G_="_dynInstProto",qf="useBaseInst",V_="setInstFuncs",$_=Object,$u=$_.getPrototypeOf,uE=$_.getOwnPropertyNames,cE=pt(),K_=cE[sE]||(cE[sE]={o:(Wf={},Wf[V_]=!0,Wf[qf]=!0,Wf),n:1e3});be[fE]=K_.o});var Q_,lE=O(()=>{"use strict";Q_=100});var lr,Z_,qu=O(()=>{me();lr=zg,Z_=Vg});var pn,ax,dE=O(()=>{qu();pn=lr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),ax=lr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ht,ep=O(()=>{qu();Ht=lr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var xt,Xi,X,aa,sa,Ns,hi,mn,hn,ze,Ji,De,Yn,tl,gi,Ei,Un,Ts,Ds,bt,rp,nl,ua,Xu,Qi,Br,ys,Zi,Or,il,tp,eo,np,At,Ju,ca,ol,Fn,kt,Is,Mn,gn,Pt,ro,fa,Gt,to,al,Qu,Qt,sl,En,ip,Ct,Zu,la,op,ap,ec,no,da,Sn,ul,sp,xs,up,cl,va,cp,bs,As,io,fl,ke=O(()=>{xt="toLowerCase",Xi="blkVal",X="length",aa="rdOnly",sa="notify",Ns="warnToConsole",hi="throwInternal",mn="setDf",hn="watch",ze="logger",Ji="apply",De="push",Yn="splice",tl="hdlr",gi="cancel",Ei="initialize",Un="identifier",Ts="removeNotificationListener",Ds="addNotificationListener",bt="isInitialized",rp="instrumentationKey",nl="INACTIVE",ua="value",Xu="getNotifyMgr",Qi="getPlugin",Br="name",ys="iKey",Zi="time",Or="processNext",il="getProcessTelContext",tp="pollInternalLogs",eo="enabled",np="stopPollingInternalLogs",At="unload",Ju="onComplete",ca="version",ol="loggingLevelConsole",Fn="createNew",kt="teardown",Is="messageId",Mn="message",gn="isAsync",Pt="diagLog",ro="_doTeardown",fa="update",Gt="getNext",to="setNextPlugin",al="protocol",Qu="userAgent",Qt="split",sl="nodeType",En="replace",ip="logInternalMessage",Ct="type",Zu="handler",la="status",op="getResponseHeader",ap="getAllResponseHeaders",ec="isChildEvt",no="data",da="getCtx",Sn="setCtx",ul="complete",sp="itemsReceived",xs="urlString",up="sendPOST",cl="headers",va="timeout",cp="setRequestHeader",bs="traceId",As="spanId",io="traceFlags",fl="getAttribute"});function vE(r,e){fp||(fp=U_("AggregationError",function(n,i){i[X]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw R(e,function(n,i){t+=`
`.concat(i," > ").concat(te(n))}),new fp(t,e||[])}var fp,_E=O(()=>{me();ke()});function Bt(r,e){return gE(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:gp,rejected:!0,reason:t}):t})}function gE(r,e,t,n){var i=r;try{if(_t(r))(e||t)&&(i=r.then(e,t));else try{e&&(i=e(r))}catch(o){if(t)i=t(o);else throw o}}finally{n&&sx(i,n)}return i}function sx(r,e){var t=r;return e&&(_t(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function ux(r,e,t,n){lp=lp||{toString:function(){return"[[PromiseState]]"}},dp=dp||{toString:function(){return"[[PromiseResult]]"}},vp=vp||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[lp]={get:e},i[dp]={get:t},i[vp]={get:n},A_(r,i)}function cx(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function fx(r,e,t,n){var i=fr();!ll&&(ll=Tt(!!Ee(cx,[i]).v));var o=ll.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),ll.v&&o.initEvent(e,!1,!0),o&&r[mE])r[mE](o);else{var a=r["on"+e];if(a)a(o);else{var s=le("console");s&&(s.error||s.log)(e,te(o))}}}function hE(r){return ue(r)?r.toString():te(r)}function NE(r,e,t){var n=hs(arguments,3),i=0,o=!1,a,s=[],u=dx++,c=rc.length>0?rc[rc.length-1]:void 0,f=!1,v=null,d;function m(Y,B){try{rc.push(u),f=!0,v&&v.cancel(),v=null;var $=r(function(ie,V){s.push(function(){try{var G=i===2?Y:B,J=Te(G)?a:ue(G)?G(a):G;_t(J)?J.then(ie,V):G?ie(J):i===3?V(J):ie(J)}catch(ce){V(ce)}}),o&&b()},n);return $}finally{rc.pop()}}function _(Y){return m(void 0,Y)}function N(Y){var B=Y,$=Y;return ue(Y)&&(B=function(ie){return Y&&Y(),ie},$=function(ie){throw Y&&Y(),ie}),m(B,$)}function h(){return EE[i]}function b(){if(s.length>0){var Y=s.slice();s=[],f=!0,v&&v.cancel(),v=null,e(Y)}}function T(Y,B){return function($){if(i===B){if(Y===2&&_t($)){i=1,$.then(T(2,1),T(3,1));return}i=Y,o=!0,a=$,b(),!f&&Y===3&&!v&&(v=Mt(I,vx))}}}function I(){if(!f)if(f=!0,qg())process.emit(SE,a,d);else{var Y=Nr()||pt();!_p&&(_p=Tt(Ee(le,[dl+"RejectionEvent"]).v)),fx(Y,lx,function(B){return we(B,"promise",{g:function(){return d}}),B.reason=a,B},!!_p.v)}}d={then:m,catch:_,finally:N},Nt(d,"state",{get:h}),pE&&ux(d,h,function(){return Mf(a)},function(){return f}),Xg()&&(d[zu(11)]="IPromise");function w(){return"IPromise"+(pE?"["+u+(Te(c)?"":":"+c)+"]":"")+" "+h()+(o?" - "+hE(a):"")}return d.toString=w,(function(){ue(t)||st(dl+": executor is not a function - "+hE(t));var B=T(3,0);try{t.call(d,T(2,0),B)}catch($){B($)}})(),d}function _x(r){return function(e){var t=hs(arguments,1);return r(function(n,i){try{var o=[],a=1;Vf(e,function(s,u){s&&(a++,gE(s,function(c){o[u]=c,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function px(r){return Tt(function(e){var t=hs(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,c){a++,Bt(u,function(f){f.rejected?o[c]={status:gp,reason:f.reason}:o[c]={status:"fulfilled",value:f.value},--a===0&&n(o)})}try{re(e)?R(e,s):L_(e)?Vf(e,s):st("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function TE(r){R(r,function(e){try{e()}catch{}})}function mx(r){var e=Jr(r)?r:0;return function(t){Mt(function(){TE(t)},e)}}function DE(r,e){return NE(DE,mx(e),r,e)}function hx(r,e){!pp&&(pp=Tt(Ee(le,[dl]).v||null));var t=pp.v;if(!t)return DE(r);ue(r)||st(dl+": executor is not a function - "+te(r));var n=0;function i(){return EE[n]}var o=new t(function(a,s){function u(f){n=2,a(f)}function c(f){n=3,s(f)}r(u,c)});return Nt(o,"state",{get:i}),o}function tc(r){return NE(tc,TE,r)}function yE(r,e){return!mp&&(mp=px(tc)),mp.v(r,e)}function Zt(r,e){return!hp&&(hp=Tt(hx)),hp.v.call(this,r,e)}var dl,gp,lp,dp,vp,pE,EE,mE,ll,SE,lx,rc,dx,vx,_p,pp,mp,hp,IE,bP,_a=O(()=>{me();dl="Promise",gp="rejected";pE=!1;EE=["pending","resolving","resolved",gp],mE="dispatchEvent";SE="unhandledRejection",lx=SE.toLowerCase(),rc=[],dx=0,vx=10;IE=_x(Zt),bP=zu(11)});var jt,he,oo,or,vl,nc,Si,pa,Rt,ma,Ps,ao,Cs,Hn,_l,pl,ml,Rs,hl,gl,xE,Tr=O(()=>{jt=void 0,he="",oo="channels",or="core",vl="createPerfMgr",nc="disabled",Si="extensionConfig",pa="extensions",Rt="processTelemetry",ma="priority",Ps="eventsSent",ao="eventsDiscarded",Cs="eventsSendRequest",Hn="perfEvent",_l="offlineEventsStored",pl="offlineBatchSent",ml="offlineBatchDrop",Rs="getPerfMgr",hl="domain",gl="path",xE="Not dynamic - "});function en(r){return!F(r)}function ha(r){var e=r;return e&&Se(e)&&(e=e[En](Ex,function(t,n){return n.toUpperCase()}),e=e[En](Sx,"_"),e=e[En](Nx,function(t,n){return"_"+n})),e}function hr(r,e){return r&&e?Dt(r,e)!==-1:!1}function zt(r){return r&&r.toISOString()||""}function We(r){return ea(r)?r[Br]:he}function rn(r,e,t,n,i){var o=t;return r&&(o=r[e],o!==t&&(!i||i(o))&&(!n||n(t))&&(o=t,r[e]=o)),o}function ic(r,e,t){var n;return r?(n=r[e],!n&&F(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function AE(r,e){var t=null,n=null;return ue(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][Ji](n,i)}}function Ep(r,e,t){if(r&&e&&nr(r)&&nr(e)){var n=function(o){if(Se(o)){var a=e[o];ue(a)?(!t||t(o,!0,e,r))&&(r[o]=AE(e,o)):(!t||t(o,!1,e,r))&&(qt(r,o)&&delete r[o],we(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function Ni(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=AE(t,n))}function Vt(r,e,t,n){return r&&e&&nr(r)&&re(t)&&R(t,function(i){Se(i)&&Ni(r,i,e,i,n)}),r}function Sp(r){return(function(){function e(){var t=this;r&&oe(r,function(n,i){t[n]=i})}return e})()}function wt(r){return r&&_s&&(r=fs(_s({},r))),r}function El(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[X],c=!1,f=1;for(u>0&&wn(s)&&(c=s,s=a[f]||{},f++),nr(s)||(s={});f<u;f++){var v=a[f],d=re(v),m=nr(v);for(var _ in v){var N=d&&_ in v||m&&qt(v,_);if(N){var h=v[_],b=void 0;if(c&&h&&((b=re(h))||Zr(h))){var T=s[_];b?re(T)||(T=[]):Zr(T)||(T={}),h=El(c,T,h)}h!==void 0&&(s[_]=h)}}}return s}function Nn(r){try{return r.responseText}catch{}return null}function ga(r,e){return r?"XDomainRequest,Response:"+Nn(r)||"":e}function Ti(r,e){return r?"XMLHttpRequest,Status:"+r[la]+",Response:"+Nn(r)||r.response||"":e}function Di(r,e){return e&&(Jr(e)?r=[e].concat(r):re(e)&&(r=e.concat(r))),r}function Np(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,f){try{u[c]=f}catch{}}var s=new XMLHttpRequest;return n&&a(s,Tx,n),t&&a(s,bE,t),s.open(r,e,!i),t&&a(s,bE,t),!i&&o&&a(s,Dx,o),s}function Sl(r){var e={};if(Se(r)){var t=Ue(r)[Qt](/[\r\n]+/);R(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=Ue(n.substring(0,i))[xt](),a=Ue(n.substring(i+1));e[o]=a}else e[Ue(n)]=1}})}return e}function ws(r,e,t){if(!r[t]&&e&&e[op]){var n=e[op](t);n&&(r[t]=Ue(n))}return r}function yi(r,e){var t={};return r[ap]?t=Sl(r[ap]()):e&&(t=ws(t,r,xx),t=ws(t,r,yx),t=ws(t,r,Ix)),t}var gx,Ex,Sx,Nx,LP,Tx,bE,Dx,yx,Ix,xx,kn=O(()=>{It();me();ke();Tr();gx="getPrototypeOf",Ex=/-([a-z])/g,Sx=/([^\w\d_$])/g,Nx=/^(\d+[\w\d_$])/,LP=Object[gx];Tx="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",bE="withCredentials",Dx="timeout";yx="kill-duration",Ix="kill-duration-seconds",xx="time-delta-millis"});function wE(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[fn];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function bp(r){RE=r}function Ea(r){if(r&&RE){var e=le("__mockLocation");if(e)return e}return typeof location===vi&&location?location:le(Ax)}function oc(){return typeof console!==Cn?console:le(Px)}function Gn(){return!!(typeof JSON===vi&&JSON||le(PE)!==null)}function et(){return Gn()?JSON||le(PE):null}function ac(){return le(Cx)}function sc(){return le(Rx)}function so(){var r=wr();return r&&r.product?r.product===wx:!1}function uo(){var r=wr();if(r&&(r[Qu]!==Dp||Tp===null)){Dp=r[Qu];var e=(Dp||he)[xt]();Tp=hr(e,Ip)||hr(e,xp)}return Tp}function uc(r){if(r===void 0&&(r=null),!r){var e=wr()||{};r=e?(e.userAgent||he)[xt]():he}var t=(r||he)[xt]();if(hr(t,Ip)){var n=fr()||{};return Math.max(parseInt(t[Qt](Ip)[1]),n[bx]||0)}else if(hr(t,xp)){var i=parseInt(t[Qt](xp)[1]);if(i)return i+4}return null}function Ot(r){return(yp===null||r===!1)&&(yp=ju()&&!!wr().sendBeacon),yp}function Ii(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=wE(t,"keepalive"))}catch{}return e}function cc(){return Os===null&&(Os=typeof XDomainRequest!==Cn,Os&&Ls()&&(Os=Os&&!wE(le(CE),"withCredentials"))),Os}function Ls(){var r=!1;try{var e=le(CE);r=!!e}catch{}return r}function OE(r,e){if(r)for(var t=0;t<r[X];t++){var n=r[t];if(n[Br]&&n[Br]===e)return n}return{}}function Ap(r){var e=fr();return e&&r?OE(e.querySelectorAll("meta"),r).content:null}function Pp(r){var e,t=qi();if(t){var n=t.getEntriesByType("navigation")||[];e=OE((n[X]>0?n[0]:{}).serverTiming,r).description}return e}var bx,Ax,Px,PE,Cx,Rx,wx,Ip,xp,CE,Tp,Dp,RE,Os,yp,co=O(()=>{"use strict";It();me();ke();kn();Tr();bx="documentMode",Ax="location",Px="console",PE="JSON",Cx="crypto",Rx="msCrypto",wx="ReactNative",Ip="msie",xp="trident/",CE="XMLHttpRequest",Tp=null,Dp=null,RE=!1,Os=null,yp=null});function Ox(r){r<0&&(r>>>=0),fc=YE+r&fo,lc=UE-r&fo,FE=!0}function Lx(){try{var r=ir()&2147483647;Ox((Math.random()*LE^r)+r)}catch{}}function dc(r){return r>0?Math.floor(xi()/fo*(r+1))>>>0:0}function xi(r){var e=0,t=ac()||sc();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&fo),e===0&&uo()&&(FE||Lx(),e=ME()&fo),e===0&&(e=Math.floor(LE*Math.random()|0)),r||(e>>>=0),e}function ME(r){lc=36969*(lc&65535)+(lc>>16)&fo,fc=18e3*(fc&65535)+(fc>>16)&fo;var e=(lc<<16)+(fc&65535)>>>0&fo|0;return r||(e>>>=0),e}function vc(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=xi()>>>0,n=0,i=he;i[X]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(xi()<<2&4294967295|t&3)>>>0,n=0);return i}var LE,fo,YE,UE,FE,fc,lc,Nl=O(()=>{me();ke();co();Tr();LE=4294967296,fo=4294967295,YE=123456789,UE=987654321,FE=!1,fc=YE,lc=UE});function kE(r){return r[sl]===1||r[sl]===9||!+r[sl]}function Fx(r,e){var t=e[r.id];if(!t){t={};try{kE(e)&&we(e,r.id,{e:!1,v:t})}catch{}}return t}function rt(r,e){return e===void 0&&(e=!1),ha(r+Ux+++(e?"."+HE:he)+Yx)}function Tl(r){var e={id:rt("_aiData-"+(r||he)+"."+HE),accept:function(t){return kE(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[ha(n)]:(o&&(a=Fx(e,t),a[ha(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var HE,Yx,Ux,Ys=O(()=>{me();ke();kn();Tr();Nl();HE="3.3.4",Yx="."+vc(6),Ux=0});function Dl(r){return r&&nr(r)&&(r.isVal||r.fb||qt(r,"v")||qt(r,"mrg")||qt(r,"ref")||r.set)}function GE(r,e,t){var n,i=t.dfVal||Fg;if(e&&t.fb){var o=t.fb;re(o)||(o=[o]);for(var a=0;a<o[X];a++){var s=o[a],u=e[s];if(i(u)?n=u:r&&(u=r.cfg[s],i(u)&&(n=u),r.set(r.cfg,pr(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function Cp(r,e,t){var n=t;if(t&&Dl(t)&&(n=GE(r,e,t)),n){Dl(n)&&(n=Cp(r,e,n));var i;re(n)?(i=[],i[X]=n[X]):Zr(n)&&(i={}),i&&(oe(n,function(o,a){a&&Dl(a)&&(a=Cp(r,e,a)),i[o]=a}),n=i)}return n}function _c(r,e,t,n){var i,o,a,s=n,u,c,f,v;Dl(s)?(i=s.isVal,o=s.set,f=s[aa],v=s[Xi],u=s.mrg,c=s.ref,!c&&Te(c)&&(c=!!u),a=GE(r,e,s)):a=n,v&&r[Xi](e,t);var d,m=!0,_=e[t];(_||!F(_))&&(d=_,m=!1,i&&d!==a&&!i(d)&&(d=a,m=!0),o&&(d=o(d,a,e),m=d===a)),m?a?d=Cp(r,e,a):d=a:(Zr(d)||re(a))&&u&&a&&(Zr(a)||re(a))&&oe(a,function(N,h){_c(r,d,N,h)}),r.set(e,t,d),c&&r.ref(e,t),f&&r[aa](e,t)}var Rp=O(()=>{me();ke()});function wp(r){if(r){var e;if(re(r)?(e=[],e[X]=r[X]):Zr(r)&&(e={}),e)return oe(r,function(t,n){e[t]=wp(n)}),e}return r}function pc(r){if(r){var e=r[Bn]||r;if(e.cfg&&(e.cfg===r||e.cfg[Bn]===e))return e}return null}function mc(r){if(r&&(Zr(r)||re(r)))try{r[BE]=!0}catch{}return r}function Op(r){if(r)try{r[jE]=!0}catch{}return r}function yl(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[jE],!n&&!t[BE]&&(n=Zr(t)||re(t))),n}function Il(r){st("InvalidAccess:"+r)}var Bn,BE,jE,xl=O(()=>{me();ke();Bn=zf("[[ai_dynCfg_1]]"),BE=zf("[[ai_blkDynCfg_1]]"),jE=zf("[[ai_frcDynCfg_1]]")});function Hx(r,e,t){re(e)&&R(Mx,function(n){var i=e[n];e[n]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=i[Ji](this,o);return hc(r,e,t,"Patching"),s}})}function bl(r,e){var t=Qg(r,e);return t&&t.get}function kx(r,e,t,n){var i={n:t,h:[],trk:function(c){c&&c.fn&&(Oe(i.h,c)===-1&&i.h[De](c),r.trk(c,i))},clr:function(c){var f=Oe(i.h,c);f!==-1&&i.h[Yn](f,1)}},o=!0,a=!1;function s(){o&&(a=a||yl(s,r,n),n&&!n[Bn]&&a&&(n=hc(r,n,t,"Converting")),o=!1);var c=r.act;return c&&i.trk(c),n}s[r.prop]={chng:function(){r.add(i)}};function u(c){if(n!==c){s[r.ro]&&!r.upd&&Il("["+t+"] is read-only:"+te(e)),o&&(a=a||yl(s,r,n),o=!1);var f=a&&s[r.rf];if(a)if(f){oe(n,function(d){n[d]=c?c[d]:jt});try{oe(c,function(d,m){gc(r,n,d,m)}),c=n}catch(d){Us((r.hdlr||{})[ze],t,"Assigning",d),a=!1}}else n&&n[Bn]&&oe(n,function(d){var m=bl(n,d);if(m){var _=m[r.prop];_&&_.chng()}});if(c!==n){var v=c&&yl(s,r,c);!f&&v&&(c=hc(r,c,t,"Converting")),n=c,a=v}r.add(i)}}we(e,i.n,{g:s,s:u})}function gc(r,e,t,n){if(e){var i=bl(e,t),o=i&&!!i[r.prop];o?e[t]=n:kx(r,e,t,n)}return e}function Al(r,e,t,n){if(e){var i=bl(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{mc(e)}catch(c){Us((r.hdlr||{})[ze],t,"Blocking",c)}try{gc(r,e,t,e[t]),i=bl(e,t)}catch(c){Us((r.hdlr||{})[ze],t,"State",c)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function hc(r,e,t,n){try{oe(e,function(i,o){gc(r,e,i,o)}),e[Bn]||(Nt(e,Bn,{get:function(){return r[tl]}}),Hx(r,e,t))}catch(i){Us((r.hdlr||{})[ze],t,n,i)}return e}var Mx,Us,zE=O(()=>{me();Tr();ke();xl();Mx=["push","pop","shift","unshift","splice"],Us=function(r,e,t,n){r&&r[hi](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function VE(r){var e,t=ms(Ec+"get"+r.uid+Sc),n=ms(Ec+"ro"+r.uid+Sc),i=ms(Ec+"rf"+r.uid+Sc),o=ms(Ec+"blkVal"+r.uid+Sc),a=ms(Ec+"dtl"+r.uid+Sc),s=null,u=null,c;function f(_,N){var h=c.act;try{c.act=_,_&&_[a]&&(R(_[a],function(T){T.clr(_)}),_[a]=[]),N({cfg:r.cfg,set:r.set.bind(r),setDf:r[mn].bind(r),ref:r.ref.bind(r),rdOnly:r[aa].bind(r)})}catch(T){var b=r[ze];throw b&&b[hi](1,107,te(T)),T}finally{c.act=h||null}}function v(){if(s){var _=s;s=null,u&&u[gi](),u=null;var N=[];if(R(_,function(h){if(h&&(h[a]&&(R(h[a],function(b){b.clr(h)}),h[a]=null),h.fn))try{f(h,h.fn)}catch(b){N[De](b)}}),s)try{v()}catch(h){N[De](h)}N[X]>0&&vE("Watcher error(s): ",N)}}function d(_){if(_&&_.h[X]>0){s||(s=[]),u||(u=Mt(function(){u=null,v()},0));for(var N=0;N<_.h[X];N++){var h=_.h[N];h&&Oe(s,h)===-1&&s[De](h)}}}function m(_,N){if(_){var h=_[a]=_[a]||[];Oe(h,N)===-1&&h[De](N)}}return c=(e={prop:t,ro:n,rf:i},e[Xi]=o,e[tl]=r,e.add=d,e[sa]=v,e.use=f,e.trk=m,e),c}var Ec,Sc,KE=O(()=>{me();_E();ke();Ec="[[ai_",Sc="]]"});function Gx(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return we(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function Bx(r,e,t){var n,i=pc(e);if(i)return i;var o=rt("dyncfg",!0),a=e&&t!==!1?e:wp(e),s;function u(){s[sa]()}function c(b,T,I){try{b=gc(s,b,T,I)}catch(w){Us(r,T,"Setting value",w)}return b[T]}function f(b){return Gx(s,b)}function v(b,T){s.use(null,function(I){var w=s.upd;try{Te(T)||(s.upd=T),b(I)}finally{s.upd=w}})}function d(b,T){var I;return Al(s,b,T,(I={},I[0]=!0,I))[T]}function m(b,T){var I;return Al(s,b,T,(I={},I[1]=!0,I))[T]}function _(b,T){var I;return Al(s,b,T,(I={},I[2]=!0,I))[T]}function N(b,T){return T&&oe(T,function(I,w){_c(h,b,I,w)}),b}var h=(n={uid:null,cfg:a},n[ze]=r,n[sa]=u,n.set=c,n[mn]=N,n[hn]=f,n.ref=d,n[aa]=m,n[Xi]=_,n._block=v,n);return we(h,"uid",{c:!1,e:!1,w:!1,v:o}),s=VE(h),hc(s,a,"config","Creating"),h}function jx(r,e){r?(r[Ns](e),r[hi](2,108,e)):Il(e)}function Je(r,e,t,n){var i=Bx(t,r||{},n);return e&&i[mn](i.cfg,e),i}function Dr(r,e,t){var n=r[Bn]||r;return n.cfg&&(n.cfg===r||n.cfg[Bn]===n)?n[hn](e):(jx(t,xE+te(r)),Je(r,null,t)[hn](e))}var lo=O(()=>{me();Ys();Tr();ke();Rp();zE();KE();xl()});function bi(r,e){if(r&&r[At])return r[At](e)}function Pl(r,e,t){var n;return t||(n=Zt(function(i){t=i})),r&&gs(r)>0?Bt(bi(r[0],e),function(){Pl(hs(r,1),e,t)}):t(),n}var Lp=O(()=>{_a();me();ke()});var WE,Yp,Up=O(()=>{WE=500,Yp="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function zx(r,e,t){return!r&&F(r)?e:wn(r)?r:pr(r)[xt]()==="true"}function Fp(r){return{mrg:!0,v:r}}function Fs(r,e,t){return{fb:t,isVal:r,v:e}}function tn(r,e){return{fb:e,set:zx,v:!!r}}var Mp=O(()=>{me();ke()});function Vx(r,e){return function(){var t=arguments,n=kp(e);if(n){var i=n.listener;i&&i[r]&&i[r][Ji](i,t)}}}function Kx(){var r=le("Microsoft");return r&&(Rl=r.ApplicationInsights),Rl}function kp(r){var e=Rl;return!e&&r.disableDbgExt!==!0&&(e=Rl||Kx()),e?e.ChromeDbgExt:null}function $E(r){if(!Cl){Cl={};for(var e=0;e<Hp[X];e++)Cl[Hp[e]]=Vx(Hp[e],r)}return Cl}var Hp,Rl,Cl,Gp=O(()=>{me();ke();Tr();Hp=[Ps,ao,Cs,Hn],Rl=null});function qE(r){return r?'"'+r[En](/\"/g,he)+'"':he}function Bp(r,e){var t=oc();if(t){var n="log";t[r]&&(n=r),ue(t[n])&&t[n](e)}}function Tn(r,e){return(r||{})[ze]||new vo(e)}function jp(r){return r||new vo}function k(r,e,t,n,i,o){o===void 0&&(o=!1),jp(r)[hi](e,t,n,i,o)}function mt(r,e){jp(r)[Ns](e)}function zp(r,e,t){jp(r)[ip](e,t)}var Ms,XE,Wx,$x,qx,Xx,Jx,Sa,vo,Dn=O(()=>{"use strict";Gr();me();lo();ke();Gp();co();Tr();XE="warnToConsole",Wx="AI (Internal): ",$x="AI: ",qx="AITR_",Xx={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Jx=(Ms={},Ms[0]=null,Ms[1]="errorToConsole",Ms[2]=XE,Ms[3]="debugToConsole",Ms);Sa=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[Is]=e,o[Mn]=(n?$x:Wx)+e;var a=he;Gn()&&(a=et().stringify(i));var s=(t?" message:"+qE(t):he)+(i?" props:"+qE(a):he);o[Mn]+=s}return r.dataType="MessageData",r})();vo=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;be(r,this,function(c){u=v(e||{}),c.consoleLoggingLevel=function(){return i},c[hi]=function(_,N,h,b,T){T===void 0&&(T=!1);var I=new Sa(N,h,T,b);if(s)throw te(I);var w=Jx[_]||XE;if(Te(I[Mn]))m("throw"+(_===1?"Critical":"Warning"),I);else{if(T){var Y=+I[Is];!n[Y]&&i>=_&&(c[w](I[Mn]),n[Y]=!0)}else i>=_&&c[w](I[Mn]);f(_,I)}},c.debugToConsole=function(_){Bp("debug",_),m("warning",_)},c[Ns]=function(_){Bp("warn",_),m("warning",_)},c.errorToConsole=function(_){Bp("error",_),m("error",_)},c.resetInternalMessageCount=function(){t=0,n={}},c[ip]=f,c[At]=function(_){u&&u.rm(),u=null};function f(_,N){if(!d()){var h=!0,b=qx+N[Is];if(n[b]?h=!1:n[b]=!0,h&&(_<=o&&(c.queue[De](N),t++,m(_===1?"error":"warn",N)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",I=new Sa(23,T,!1);c.queue[De](I),_===1?c.errorToConsole(T):c[Ns](T)}}}function v(_){return Dr(Je(_,Xx,c).cfg,function(N){var h=N.cfg;i=h[ol],o=h.loggingLevelTelemetry,a=h.maxMessageLimit,s=h.enableDebug})}function d(){return t>=a}function m(_,N){var h=kp(e||{});h&&h[Pt]&&h[Pt](_,N)}})}return r.__ieDyn=1,r})()});function Xp(){!jn&&(jn=R_(function(){return fr()}))}function Zx(r,e){var t=Ai[_o]||Ll[_o];return t||(t=Ai[_o]=Ai(r,e),Ll[_o]=t),t}function Ol(r){return r?r.isEnabled():!0}function aS(r,e){return e&&r&&re(r.ignoreCookies)?Oe(r.ignoreCookies,e)!==-1:!1}function eb(r,e){return e&&r&&re(r.blockedCookies)&&Oe(r.blockedCookies,e)!==-1?!0:aS(r,e)}function tS(r,e){var t=e[eo];if(F(t)){var n=void 0;Te(r[ZE])||(n=!r[ZE]),Te(r[$p])||(n=!r[$p]),t=n}return t}function Jp(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[_o]?t=n[_o]:t=Ai(e)}return t||(t=Zx(e,(r||{})[ze])),t}function Ai(r,e){var t,n,i,o,a,s,u,c,f;r=Je(r||Ll,null,e).cfg,a=Dr(r,function(d){d[mn](d.cfg,Qx),n=d.ref(d.cfg,"cookieCfg"),i=n[gl]||"/",o=n[hl],s=tS(r,n)!==!1,u=n.getCookie||rb,c=n.setCookie||oS,f=n.delCookie||oS},e);var v=(t={isEnabled:function(){var d=tS(r,n)!==!1&&s&&Hs(e),m=Ll[_o];return d&&m&&v!==m&&(d=Ol(m)),d},setEnabled:function(d){s=d!==!1,n[eo]=d},set:function(d,m,_,N,h){var b=!1;if(Ol(v)&&!eb(n,d)){var T={},I=Ue(m||he),w=Dt(I,";");if(w!==-1&&(I=Ue(ta(m,w)),T=sS(Rr(m,w+1))),rn(T,hl,N||o,dn,Te),!F(_)){var Y=uo();if(Te(T[Kp])){var B=ir(),$=B+_*1e3;if($>0){var ie=new Date;ie.setTime($),rn(T,Kp,nS(ie,Y?JE:QE)||nS(ie,Y?JE:QE)||he,dn)}}Y||rn(T,"max-age",he+_,null,Te)}var V=Ea();V&&V[al]==="https:"&&(rn(T,"secure",null,null,Te),Wp===null&&(Wp=!Yl((wr()||{})[Qu])),Wp&&rn(T,"SameSite","None",null,Te)),rn(T,gl,h||i,null,Te),c(d,iS(I,T)),b=!0}return b},get:function(d){var m=he;return Ol(v)&&!aS(n,d)&&(m=u(d)),m},del:function(d,m){var _=!1;return Ol(v)&&(_=v.purge(d,m)),_},purge:function(d,m){var _,N=!1;if(Hs(e)){var h=(_={},_[gl]=m||"/",_[Kp]="Thu, 01 Jan 1970 00:00:01 GMT",_);uo()||(h["max-age"]="0"),f(d,iS(he,h)),N=!0}return N}},t[At]=function(d){a&&a.rm(),a=null},t);return v[_o]=v,v}function Hs(r){if(wl===null){wl=!1,!jn&&Xp();try{var e=jn.v||{};wl=e[qp]!==void 0}catch(t){k(r,2,68,"Cannot access document.cookie - "+We(t),{exception:te(t)})}}return wl}function sS(r){var e={};if(r&&r[X]){var t=Ue(r)[Qt](";");R(t,function(n){if(n=Ue(n||he),n){var i=Dt(n,"=");i===-1?e[n]=null:e[Ue(ta(n,i))]=Ue(Rr(n,i+1))}})}return e}function nS(r,e){return ue(r[e])?r[e]():null}function iS(r,e){var t=r||he;return oe(e,function(n,i){t+="; "+n+(F(i)?he:"="+i)}),t}function rb(r){var e=he;if(!jn&&Xp(),jn.v){var t=jn.v[qp]||he;eS!==t&&(rS=sS(t),eS=t),e=Ue(rS[r]||he)}return e}function oS(r,e){!jn&&Xp(),jn.v&&(jn.v[qp]=r+"="+e)}function Yl(r){return Se(r)?!!(hr(r,"CPU iPhone OS 12")||hr(r,"iPad; CPU OS 12")||hr(r,"Macintosh; Intel Mac OS X 10_14")&&hr(r,"Version/")&&hr(r,"Safari")||hr(r,"Macintosh; Intel Mac OS X 10_14")&&ia(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||hr(r,"Chrome/5")||hr(r,"Chrome/6")||hr(r,"UnrealEngine")&&!hr(r,"Chrome")||hr(r,"UCBrowser/12")||hr(r,"UCBrowser/11")):!1}var Vp,Na,JE,QE,qp,Kp,ZE,$p,_o,wl,Wp,eS,jn,rS,Ll,Qx,Qp=O(()=>{me();Mp();lo();ke();Dn();co();kn();Tr();JE="toGMTString",QE="toUTCString",qp="cookie",Kp="expires",ZE="isCookieUseDisabled",$p="disableCookiesUsage",_o="_ckMgr",wl=null,Wp=null,eS=null,rS={},Ll={},Qx=(Vp={cookieCfg:Fp((Na={},Na[hl]={fb:"cookieDomain",dfVal:en},Na.path={fb:"cookiePath",dfVal:en},Na.enabled=jt,Na.ignoreCookies=jt,Na.blockedCookies=jt,Na)),cookieDomain:jt,cookiePath:jt},Vp[$p]=jt,Vp)});function nb(r){r.h=null;var e=r.cb;r.cb=[],R(e,function(t){Ee(t.fn,[t.arg])})}function po(r,e,t,n){R(r,function(i){i&&i[e]&&(t?(t.cb[De]({fn:n,arg:i}),t.h=t.h||Mt(nb,0,t)):Ee(n,[i]))})}var tb,Nc,Zp=O(()=>{Gr();_a();me();lo();ke();Tr();tb={perfEvtsSendAll:!1};Nc=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Je(e,tb);n=a[hn](function(s){t=!!s.cfg.perfEvtsSendAll}),be(r,this,function(s){we(s,"listeners",{g:function(){return i}}),s[Ds]=function(u){i[De](u)},s[Ts]=function(u){for(var c=Oe(i,u);c>-1;)i[Yn](c,1),c=Oe(i,u)},s[Ps]=function(u){po(i,Ps,o,function(c){c[Ps](u)})},s[ao]=function(u,c){po(i,ao,o,function(f){f[ao](u,c)})},s[Cs]=function(u,c){po(i,Cs,c?o:null,function(f){f[Cs](u,c)})},s[Hn]=function(u){u&&(t||!u[ec]())&&po(i,Hn,null,function(c){u[gn]?Mt(function(){return c[Hn](u)},0):c[Hn](u)})},s[_l]=function(u){u&&u[X]&&po(i,_l,o,function(c){c[_l](u)})},s[pl]=function(u){u&&u[no]&&po(i,pl,o,function(c){c[pl](u)})},s[ml]=function(u,c){if(u>0){var f=c||0;po(i,ml,o,function(v){v[ml](u,f)})}},s[At]=function(u){var c=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[gi](),o.h=null,o.cb=[]},f;if(po(i,"unload",null,function(v){var d=v[At](u);d&&(f||(f=[]),f[De](d))}),f)return Zt(function(v){return Bt(IE(f),function(){c(),v()})});c()}})}return r.__ieDyn=1,r})()});function dr(r,e,t,n,i){if(r){var o=r;if(o[Rs]&&(o=o[Rs]()),o){var a=void 0,s=o[da](em);try{if(a=o.create(e(),n,i),a){if(s&&a[Sn]&&(a[Sn](Ta[rm],s),s[da]&&s[Sn])){var u=s[da](Ta[Tc]);u||(u=[],s[Sn](Ta[Tc],u)),u[De](a)}return o[Sn](em,a),t(a)}}catch(c){a&&a[Sn]&&a[Sn]("exception",c)}finally{a&&o.fire(a),o[Sn](em,s)}}}return t()}function tm(){return ib}var ks,rm,Tc,ib,Ta,Dc,em,Ul=O(()=>{Gr();me();ke();Tr();ks="ctx",rm="ParentContextKey",Tc="ChildrenContextKey",ib=null,Ta=(function(){function r(e,t,n){var i=this;if(i.start=ir(),i[Br]=e,i[gn]=n,i[ec]=function(){return!1},ue(t)){var o;we(i,"payload",{g:function(){return!o&&ue(t)&&(o=t(),t=null),o}})}i[da]=function(a){return a?a===r[rm]||a===r[Tc]?i[a]:(i[ks]||{})[a]:null},i[Sn]=function(a,s){if(a)if(a===r[rm])i[a]||(i[ec]=function(){return!0}),i[a]=s;else if(a===r[Tc])i[a]=s;else{var u=i[ks]=i[ks]||{};u[a]=s}},i[ul]=function(){var a=0,s=i[da](r[Tc]);if(re(s))for(var u=0;u<s[X];u++){var c=s[u];c&&(a+=c[Zi])}i[Zi]=ir()-i.start,i.exTime=i[Zi]-a,i[ul]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),Dc=(function(){function r(e){this.ctx={},be(r,this,function(t){t.create=function(n,i,o){return new Ta(n,i,o)},t.fire=function(n){n&&(n[ul](),e&&ue(e[Hn])&&e[Hn](n))},t[Sn]=function(n,i){if(n){var o=t[ks]=t[ks]||{};o[n]=i}},t[da]=function(n){return(t[ks]||{})[n]}})}return r.__ieDyn=1,r})(),em="CoreUtils.doPerf"});function yc(){var r=Da();return Rr(r,0,8)+"-"+Rr(r,8,12)+"-"+Rr(r,12,16)+"-"+Rr(r,16,20)+"-"+Rr(r,20)}function Da(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=he,t,n=0;n<4;n++)t=xi(),e+=r[t&15]+r[t>>4&15]+r[t>>8&15]+r[t>>12&15]+r[t>>16&15]+r[t>>20&15]+r[t>>24&15]+r[t>>28&15];var i=r[8+(xi()&3)|0];return Ln(e,0,8)+Ln(e,9,4)+"4"+Ln(e,13,3)+i+Ln(e,16,3)+Ln(e,19,12)}var nm=O(()=>{"use strict";me();Tr();Nl()});function Pi(r,e,t){return r&&r[X]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function cS(r,e,t){return Pi(r,e)?r:t}function fS(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[X]<2;)e="0"+e;return e}function Ic(r,e,t,n){var i;return i={},i[ca]=Pi(n,2,om)?n:im,i[bs]=zn(r)?r:Da(),i[As]=Vn(e)?e:ta(Da(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function ya(r,e){var t;if(!r||(re(r)&&(r=r[0]||""),!r||!Se(r)||r[X]>8192))return null;if(r.indexOf(",")!==-1){var n=r[Qt](",");r=n[e>0&&n[X]>e?e:0]}var i=ob.exec(Ue(r));return!i||i[1]===om||i[2]===Fl||i[3]===Ml?null:(t={version:(i[1]||he)[xt](),traceId:(i[2]||he)[xt](),spanId:(i[3]||he)[xt]()},t[io]=parseInt(i[4],16),t)}function zn(r){return Pi(r,32,Fl)}function Vn(r){return Pi(r,16,Ml)}function Gs(r){return!(!r||!Pi(r[ca],2,om)||!Pi(r[bs],32,Fl)||!Pi(r[As],16,Ml)||!Pi(fS(r[io]),2))}function xc(r){return Gs(r)?(r[io]&uS)===uS:!1}function bc(r){if(r){var e=fS(r[io]);Pi(e,2)||(e="01");var t=r[ca]||im;return t!=="00"&&t!=="ff"&&(t=im),"".concat(t.toLowerCase(),"-").concat(cS(r.traceId,32,Fl).toLowerCase(),"-").concat(cS(r.spanId,16,Ml).toLowerCase(),"-").concat(e.toLowerCase())}return""}function Ac(r){var e="traceparent",t=ya(Ap(e),r);return t||(t=ya(Pp(e),r)),t}function am(r){var e=r.getElementsByTagName("script"),t=[];return R(e,function(n){var i=n[fl]("src");if(i){var o=n[fl]("crossorigin"),a=n.hasAttribute("async")===!0,s=n.hasAttribute("defer")===!0,u=n[fl]("referrerpolicy"),c={url:i};o&&(c.crossOrigin=o),a&&(c.async=a),s&&(c.defer=s),u&&(c.referrerPolicy=u),t[De](c)}}),t}var ob,im,om,Fl,Ml,uS,sm=O(()=>{me();ke();nm();co();Tr();ob=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,im="00",om="ff",Fl="00000000000000000000000000000000",Ml="0000000000000000",uS=1});function Ci(r){return ab.get(r,"state",{},!0)}function um(r,e){for(var t=[],n=null,i=r[Gt](),o;i;){var a=i[Qi]();if(a){n&&n[to]&&a[Rt]&&n[to](a),o=Ci(a);var s=!!o[bt];a[bt]&&(s=a[bt]()),s||t[De](a),n=a,i=i[Gt]()}}R(t,function(u){var c=r[or]();u[Ei](r.getCfg(),c,e,r[Gt]()),o=Ci(u),!u[or]&&!o[or]&&(o[or]=c),o[bt]=!0,delete o[kt]})}function Hl(r){return r.sort(function(e,t){var n=0;if(t){var i=t[Rt];e[Rt]?n=i?e[ma]-t[ma]:1:i&&(n=-1)}else n=e?1:-1;return n})}function lS(r){var e={};return{getName:function(){return e[Br]},setName:function(t){r&&r.setName(t),e[Br]=t},getTraceId:function(){return e[bs]},setTraceId:function(t){r&&r.setTraceId(t),zn(t)&&(e[bs]=t)},getSpanId:function(){return e[As]},setSpanId:function(t){r&&r.setSpanId(t),Vn(t)&&(e[As]=t)},getTraceFlags:function(){return e[io]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[io]=t}}}var ab,cm=O(()=>{"use strict";me();ke();Ys();Tr();sm();ab=Tl("plugin")});function ub(r,e,t){for(;r;){if(r[Qi]()===t)return r;r=r[Gt]()}return mo([t],e.config||{},e)}function fm(r,e,t,n){var i=null,o=[];e||(e=Je({},null,t[ze])),n!==null&&(i=n?ub(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return Tn(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:f,getConfig:v,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(m){i=m},iterate:d,onComplete:s}};function s(m,_){for(var N=[],h=2;h<arguments.length;h++)N[h-2]=arguments[h];m&&o[De]({func:m,self:Te(_)?a.ctx:_,args:N})}function u(){var m=i;if(i=m?m[Gt]():null,!m){var _=o;_&&_[X]>0&&(R(_,function(N){try{N.func.call(N.self,N.args)}catch(h){k(t[ze],2,73,"Unexpected Exception during onComplete - "+te(h))}}),o=[])}return m}function c(m,_){var N=null,h=e.cfg;if(h&&m){var b=h[Si];!b&&_&&(b={}),h[Si]=b,b=e.ref(h,Si),b&&(N=b[m],!N&&_&&(N={}),b[m]=N,N=e.ref(b,m))}return N}function f(m,_){var N=c(m,!0);return _&&oe(_,function(h,b){if(F(N[h])){var T=e.cfg[h];(T||!F(T))&&(N[h]=T)}_c(e,N,h,b)}),e[mn](N,_)}function v(m,_,N){N===void 0&&(N=!1);var h,b=c(m,!1),T=e.cfg;return b&&(b[_]||!F(b[_]))?h=b[_]:(T[_]||!F(T[_]))&&(h=T[_]),h||!F(h)?h:N}function d(m){for(var _;_=a._next();){var N=_[Qi]();N&&m(N)}}return a}function ht(r,e,t,n){var i=Je(e),o=fm(r,i,t,n),a=o.ctx;function s(c){var f=o._next();return f&&f[Rt](c,a),!f}function u(c,f){return c===void 0&&(c=null),re(c)&&(c=mo(c,i.cfg,t,f)),ht(c||a[Gt](),i.cfg,t,f)}return a[Or]=s,a[Fn]=u,a}function Bs(r,e,t){var n=Je(e.config),i=fm(r,n,e,t),o=i.ctx;function a(u){var c=i._next();return c&&c[At](o,u),!c}function s(u,c){return u===void 0&&(u=null),re(u)&&(u=mo(u,n.cfg,e,c)),Bs(u||o[Gt](),e,c)}return o[Or]=a,o[Fn]=s,o}function Pc(r,e,t){var n=Je(e.config),i=fm(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(c){ue(c[fa])&&c[fa](o,u)})}function s(u,c){return u===void 0&&(u=null),re(u)&&(u=mo(u,n.cfg,e,c)),Pc(u||o[Gt](),e,c)}return o[Or]=a,o[Fn]=s,o}function mo(r,e,t,n){var i=null,o=!n;if(re(r)&&r[X]>0){var a=null;R(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&ue(s[Rt])){var u=cb(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?mo([n],e,t):i}function cb(r,e,t){var n=null,i=ue(r[Rt]),o=ue(r[to]),a;r?a=r[Un]+"-"+r[ma]+"-"+_S++:a="Unknown-0-"+_S++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:f,unload:v,update:d,_id:a,_setNext:function(m){n=m}};function u(){var m;return r&&ue(r[vS])&&(m=r[vS]()),m||(m=ht(s,e,t)),m}function c(m,_,N,h,b){var T=!1,I=r?r[Un]:sb,w=m[dS];return w||(w=m[dS]={}),m.setNext(n),r&&dr(m[or](),function(){return I+":"+N},function(){w[a]=!0;try{var Y=n?n._id:he;Y&&(w[Y]=!1),T=_(m)}catch($){var B=n?w[n._id]:!0;B&&(T=!0),(!n||!B)&&k(m[Pt](),1,73,"Plugin ["+I+"] failed during "+N+" - "+te($)+", run flags: "+te(w))}},h,b),T}function f(m,_){_=_||u();function N(h){if(!r||!i)return!1;var b=Ci(r);return b[kt]||b[nc]?!1:(o&&r[to](n),r[Rt](m,h),!0)}c(_,N,"processTelemetry",function(){return{item:m}},!m.sync)||_[Or](m)}function v(m,_){function N(){var h=!1;if(r){var b=Ci(r),T=r[or]||b[or];r&&(!T||T===m.core())&&!b[kt]&&(b[or]=null,b[kt]=!0,b[bt]=!1,r[kt]&&r[kt](m,_)===!0&&(h=!0))}return h}c(m,N,"unload",function(){},_[gn])||m[Or](_)}function d(m,_){function N(){var h=!1;if(r){var b=Ci(r),T=r[or]||b[or];r&&(!T||T===m.core())&&!b[kt]&&r[fa]&&r[fa](m,_)===!0&&(h=!0)}return h}c(m,N,"update",function(){},!1)||m[Or](_)}return Xt(s)}var sb,dS,vS,_S,lm,kl=O(()=>{"use strict";me();Rp();lo();ke();Dn();kn();Tr();Ul();cm();sb="TelemetryPluginChain",dS="_hasRun",vS="_getTelCtx",_S=0;lm=(function(){function r(e,t,n,i){var o=this,a=ht(e,t,n,i);Vt(o,a,Qr(a))}return r})()});function Ia(){var r=[];function e(n){n&&r[De](n)}function t(n,i){R(r,function(o){try{o(n,i)}catch(a){k(n[Pt](),2,73,"Unexpected error calling unload handler - "+te(a))}}),r=[]}return{add:e,run:t}}var Gl=O(()=>{me();ke();Dn()});function dm(r,e){Cc=r,Rc=e}function wc(){var r=[];function e(n){var i=r;r=[],R(i,function(o){try{(o.rm||o.remove).call(o)}catch(a){k(n,2,73,"Unloading:"+te(a))}}),Cc&&i[X]>Cc&&(Rc?Rc("doUnload",i):k(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(_n(r,n),Cc&&r[X]>Cc&&(Rc?Rc("Add",r):k(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var Cc,Rc,Bl=O(()=>{me();ke();Dn()});var vm,ho,fb,Ri,_m=O(()=>{"use strict";Gr();me();lo();ke();Dn();kn();Tr();kl();Gl();Bl();ho="getPlugin",fb=(vm={},vm[Si]={isVal:en,v:{}},vm),Ri=(function(){function r(){var e=this,t,n,i,o,a;c(),be(r,e,function(f){f[Ei]=function(v,d,m,_){u(v,d,_),t=!0},f[kt]=function(v,d){var m,_=f[or];if(!_||v&&_!==v[or]())return;var N,h=!1,b=v||Bs(null,_,i&&i[ho]?i[ho]():i),T=d||(m={reason:0},m[gn]=!1,m);function I(){h||(h=!0,o.run(b,d),a.run(b[Pt]()),N===!0&&b[Or](T),c())}return!f[ro]||f[ro](b,T,I)!==!0?I():N=!0,N},f[fa]=function(v,d){var m=f[or];if(!m||v&&m!==v[or]())return;var _,N=!1,h=v||Pc(null,m,i&&i[ho]?i[ho]():i),b=d||{reason:0};function T(){N||(N=!0,u(h.getCfg(),h.core(),h[Gt]()))}return!f._doUpdate||f._doUpdate(h,b,T)!==!0?T():_=!0,_},Ni(f,"_addUnloadCb",function(){return o},"add"),Ni(f,"_addHook",function(){return a},"add"),we(f,"_unloadHooks",{g:function(){return a}})}),e[Pt]=function(f){return s(f)[Pt]()},e[bt]=function(){return t},e.setInitialized=function(f){t=f},e[to]=function(f){i=f},e[Or]=function(f,v){v?v[Or](f):i&&ue(i[Rt])&&i[Rt](f,null)},e._getTelCtx=s;function s(f){f===void 0&&(f=null);var v=f;if(!v){var d=n||ht(null,{},e[or]);i&&i[ho]?v=d[Fn](null,i[ho]):v=d[Fn](null,i)}return v}function u(f,v,d){Je(f,fb,Tn(v)),!d&&v&&(d=v[il]()[Gt]());var m=i;i&&i[ho]&&(m=i[ho]()),e[or]=v,n=ht(d,f,v,m)}function c(){t=!1,e[or]=null,n=null,i=null,a=wc(),o=Ia()}}return r.__ieDyn=1,r})()});function lb(r,e,t){var n={id:e,fn:t};_n(r,n);var i={remove:function(){R(r,function(o,a){if(o.id===n.id)return r[Yn](a,1),-1})}};return i}function db(r,e,t){for(var n=!1,i=r[X],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[Ji](null,[e])===!1){n=!0;break}}catch(s){k(t,2,64,"Telemetry initializer failed: "+We(s),{exception:te(s)},!0)}}return!n}var pS,mS=O(()=>{It();Gr();me();ke();_m();Dn();kn();Tr();pS=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),be(e,t,function(a,s){a.addTelemetryInitializer=function(u){return lb(i,n++,u)},a[Rt]=function(u,c){db(i,u,c?c[Pt]():a[Pt]())&&a[Or](u,c)},a[ro]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(Ri)});function hb(r,e){return new Dc(e)}function gb(r,e,t){var n,i=[],o=[],a={};return R(t,function(s){(F(s)||F(s[Ei]))&&cr(SS);var u=s[ma],c=s[Un];s&&u&&(F(a[u])?a[u]=c:mt(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+c)),!u||u<e?i[De](s):o[De](s)}),n={},n[or]=i,n[oo]=o,n}function gS(r,e){var t=!1;return R(e,function(n){if(n===r)return t=!0,-1}),t}function mm(r,e,t,n){t&&oe(t,function(i,o){n&&Zr(o)&&Zr(e[i])&&mm(r,e[i],o,n),n&&Zr(o)&&Zr(e[i])?mm(r,e[i],o,n):r.set(e,i,o)})}function ES(r,e){var t=null,n=-1;return R(r,function(i,o){if(i.w===e)return t=i,n=o,-1}),{i:n,l:t}}function Eb(r,e){var t=ES(r,e).l;return t||(t={w:e,rm:function(){var n=ES(r,e);n.i!==-1&&r[Yn](n.i,1)}},r[De](t)),t}function Sb(r,e,t){R(e,function(n){var i=Dr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function Nb(r,e,t,n){return e.add(r[hn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[Ts](n),n=null),t&&!n&&o!==!0&&(n=$E(i.cfg),t[Ds](n))})),n}function Tb(r){return we({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var go,SS,vb,hS,_b,pb,mb,pm,wi,NS=O(()=>{"use strict";It();Gr();_a();me();lo();ep();ke();Lp();Up();Qp();Ys();Gp();Dn();kn();Tr();Zp();Ul();kl();cm();mS();Gl();Bl();SS="Plugins must provide initialize method",vb="_notificationManager",hS="SDK is still unloading...",_b="SDK is not initialized",pb=100,mb=5e4,pm=On((go={cookieCfg:{}},go[pa]={rdOnly:!0,ref:!0,v:[]},go[oo]={rdOnly:!0,ref:!0,v:[]},go[Si]={ref:!0,v:{}},go[vl]=jt,go.loggingLevelConsole=0,go.diagnosticLogInterval=jt,go));wi=(function(){function r(){var e,t,n,i,o,a,s,u,c,f,v,d,m,_,N,h,b,T,I,w,Y,B,$,ie,V,G,J,ce,_e,g,y,M,z;be(r,this,function(D){A(),D._getDbgPlgTargets=function(){return[$,i]},D[bt]=function(){return t},D.activeStatus=function(){return G},D._setPendingStatus=function(){G=3},D[Ei]=function(P,q,ae,Z){m&&cr(hS),D[bt]()&&cr("Core cannot be initialized more than once"),e=Je(P,pm,ae||D[ze],!1),P=e.cfg,Ke(e[hn](function(Ae){var Fe=Ae.cfg,Xe=G===3;if(!Xe){ce=Fe.initInMemoMaxSize||pb;var ar=Fe[rp],ot=Fe.endpointUrl;if(F(ar)){Y=null,G=Ht[nl];var at="Please provide instrumentation key";t?(k(n,1,100,at),j()):cr(at);return}var $t=[];if(_t(ar)?($t[De](ar),Y=null):Y=ar,_t(ot)?($t[De](ot),J=null):J=ot,$t[X]){_e=!1,G=3;var Hr=en(Fe.initTimeOut)?Fe.initTimeOut:mb,li=yE($t);g=Mt(function(){g=null,_e||Q()},Hr),Bt(li,function(L){try{if(_e)return;if(!L.rejected){var H=L[ua];if(H&&H[X]){var ee=H[0];if(Y=ee&&ee[ua],H[X]>1){var de=H[1];J=de&&de[ua]}}Y&&(P[rp]=Y,P.endpointUrl=J)}Q()}catch{_e||Q()}})}else Q();var E=Ae.ref(Ae.cfg,Si);oe(E,function(L){Ae.ref(E,L)})}})),o=Z,I=Nb(e,T,o&&D[Xu](),I),vt(),D[ze]=ae;var se=P[pa];if(f=[],f[De].apply(f,Kf(Kf([],q,!1),se,!1)),v=P[oo],Ve(null),(!d||d[X]===0)&&cr("No "+oo+" available"),v&&v[X]>1){var Re=D[Qi]("TeeChannelController");(!Re||!Re.plugin)&&k(n,1,28,"TeeChannel required")}Sb(P,B,n),B=null,t=!0,G===Ht.ACTIVE&&j()},D.getChannels=function(){var P=[];return d&&R(d,function(q){P[De](q)}),Xt(P)},D.track=function(P){dr(D[Rs](),function(){return"AppInsightsCore:track"},function(){P===null&&(qe(P),cr("Invalid telemetry item")),!P[Br]&&F(P[Br])&&(qe(P),cr("telemetry name required")),P[ys]=P[ys]||Y,P[Zi]=P[Zi]||zt(new Date),P.ver=P.ver||"4.0",!m&&D[bt]()&&G===Ht.ACTIVE?Ce()[Or](P):G!==Ht[nl]&&i[X]<=ce&&i[De](P)},function(){return{item:P}},!P.sync)},D[il]=Ce,D[Xu]=function(){return o||(o=new Nc(e.cfg),D[vb]=o),o},D[Ds]=function(P){D.getNotifyMgr()[Ds](P)},D[Ts]=function(P){o&&o[Ts](P)},D.getCookieMgr=function(){return u||(u=Ai(e.cfg,D[ze])),u},D.setCookieMgr=function(P){u!==P&&(bi(u,!1),u=P)},D[Rs]=function(){return a||s||tm()},D.setPerfMgr=function(P){a=P},D.eventCnt=function(){return i[X]},D.releaseQueue=function(){if(t&&i[X]>0){var P=i;i=[],G===2?R(P,function(q){q[ys]=q[ys]||Y,Ce()[Or](q)}):k(n,2,20,"core init status is not active")}},D[tp]=function(P){return N=P||null,z=!1,y&&y[gi](),pe(!0)};function Q(){_e=!0,F(Y)?(G=Ht[nl],k(n,1,112,"ikey can't be resolved from promises")):G=Ht.ACTIVE,j()}function j(){t&&(D.releaseQueue(),D[tp]())}function pe(P){if((!y||!y[eo])&&!z){var q=P||n&&n.queue[X]>0;q&&(M||(M=!0,Ke(e[hn](function(ae){var Z=ae.cfg.diagnosticLogInterval;(!Z||!(Z>0))&&(Z=1e4);var se=!1;y&&(se=y[eo],y[gi]()),y=tE(Wr,Z),y.unref(),y[eo]=se}))),y[eo]=!0)}return y}D[np]=function(){z=!0,y&&y[gi](),Wr()},Vt(D,function(){return _},["addTelemetryInitializer"]),D[At]=function(P,q,ae){var Z;P===void 0&&(P=!0),t||cr(_b),m&&cr(hS);var se=(Z={reason:50},Z[gn]=P,Z.flushComplete=!1,Z),Re;P&&!q&&(Re=Zt(function(Xe){q=Xe}));var Ae=Bs(rr(),D);Ae[Ju](function(){T.run(D[ze]),Pl([u,o,n],P,function(){A(),q&&q(se)})},D);function Fe(Xe){se.flushComplete=Xe,m=!0,b.run(Ae,se),D[np](),Ae[Or](se)}return Wr(),Ar(P,Fe,6,ae)||Fe(!1),Re},D[Qi]=Mr,D.addPlugin=function(P,q,ae,Z){if(!P){Z&&Z(!1),Ye(SS);return}var se=Mr(P[Un]);if(se&&!q){Z&&Z(!1),Ye("Plugin ["+P[Un]+"] is already loaded!");return}var Re={reason:16};function Ae(ar){f[De](P),Re.added=[P],Ve(Re),Z&&Z(!0)}if(se){var Fe=[se.plugin],Xe={reason:2,isAsync:!!ae};Ft(Fe,Xe,function(ar){ar?(Re.removed=Fe,Re.reason|=32,Ae(!0)):Z&&Z(!1)})}else Ae(!1)},D.updateCfg=function(P,q){q===void 0&&(q=!0);var ae;if(D[bt]()){ae={reason:1,cfg:e.cfg,oldCfg:M_({},e.cfg),newConfig:M_({},P),merge:q},P=ae.newConfig;var Z=e.cfg;P[pa]=Z[pa],P[oo]=Z[oo]}e._block(function(se){var Re=se.cfg;mm(se,Re,P,q),q||oe(Re,function(Ae){qt(P,Ae)||se.set(Re,Ae,jt)}),se[mn](Re,pm)},!0),e[sa](),ae&&Be(ae)},D.evtNamespace=function(){return h},D.flush=Ar,D.getTraceCtx=function(P){return w||(w=lS()),w},D.setTraceCtx=function(P){w=P||null},D.addUnloadHook=Ke,Ni(D,"addUnloadCb",function(){return b},"add"),D.onCfgChange=function(P){var q;return t?q=Dr(e.cfg,P,D[ze]):q=Eb(B,P),Tb(q)},D.getWParam=function(){return na()||e.cfg.enableWParam?0:-1};function K(){var P={};ie=[];var q=function(ae){ae&&R(ae,function(Z){if(Z[Un]&&Z[ca]&&!P[Z.identifier]){var se=Z[Un]+"="+Z[ca];ie[De](se),P[Z.identifier]=Z}})};q(d),v&&R(v,function(ae){q(ae)}),q(f)}function A(){t=!1,e=Je({},pm,D[ze]),e.cfg[ol]=1,we(D,"config",{g:function(){return e.cfg},s:function(q){D.updateCfg(q,!1)}}),we(D,"pluginVersionStringArr",{g:function(){return ie||K(),ie}}),we(D,"pluginVersionString",{g:function(){return V||(ie||K(),V=ie.join(";")),V||he}}),we(D,"logger",{g:function(){return n||(n=new vo(e.cfg),e[ze]=n),n},s:function(q){e[ze]=q,n!==q&&(bi(n,!1),n=q)}}),D[ze]=new vo(e.cfg),$=[];var P=D.config[pa]||[];P.splice(0,P[X]),_n(P,$),_=new pS,i=[],bi(o,!1),o=null,a=null,s=null,bi(u,!1),u=null,c=null,f=[],v=null,d=null,m=!1,N=null,h=rt("AIBaseCore",!0),b=Ia(),w=null,Y=null,T=wc(),B=[],V=null,ie=null,z=!1,y=null,M=!1,G=0,J=null,ce=null,_e=!1,g=null}function Ce(){var P=ht(rr(),e.cfg,D);return P[Ju](pe),P}function Ve(P){var q=gb(D[ze],WE,f);c=null,V=null,ie=null,d=(v||[])[0]||[],d=Hl(_n(d,q[oo]));var ae=_n(Hl(q[or]),d);$=Xt(ae);var Z=D.config[pa]||[];Z.splice(0,Z[X]),_n(Z,$);var se=Ce();d&&d[X]>0&&um(se[Fn](d),ae),um(se,ae),P&&Be(P)}function Mr(P){var q=null,ae=null,Z=[];return R($,function(se){if(se[Un]===P&&se!==_)return ae=se,-1;se.getChannel&&Z[De](se)}),!ae&&Z[X]>0&&R(Z,function(se){if(ae=se.getChannel(P),!ae)return-1}),ae&&(q={plugin:ae,setEnabled:function(se){Ci(ae)[nc]=!se},isEnabled:function(){var se=Ci(ae);return!se[kt]&&!se[nc]},remove:function(se,Re){var Ae;se===void 0&&(se=!0);var Fe=[ae],Xe=(Ae={reason:1},Ae[gn]=se,Ae);Ft(Fe,Xe,function(ar){ar&&Ve({reason:32,removed:Fe}),Re&&Re(ar)})}}),q}function rr(){if(!c){var P=($||[]).slice();Oe(P,_)===-1&&P[De](_),c=mo(Hl(P),e.cfg,D)}return c}function Ft(P,q,ae){if(P&&P[X]>0){var Z=mo(P,e.cfg,D),se=Bs(Z,D);se[Ju](function(){var Re=!1,Ae=[];R(f,function(Xe,ar){gS(Xe,P)?Re=!0:Ae[De](Xe)}),f=Ae,V=null,ie=null;var Fe=[];v&&(R(v,function(Xe,ar){var ot=[];R(Xe,function(at){gS(at,P)?Re=!0:ot[De](at)}),Fe[De](ot)}),v=Fe),ae&&ae(Re),pe()}),se[Or](q)}else ae(!1)}function Wr(){if(n&&n.queue){var P=n.queue.slice(0);n.queue[X]=0,R(P,function(q){var ae,Z=(ae={},ae[Br]=N||"InternalMessageId: "+q[Is],ae[ys]=Y,ae[Zi]=zt(new Date),ae.baseType=Sa.dataType,ae.baseData={message:q[Mn]},ae);D.track(Z)})}}function Ar(P,q,ae,Z){var se=1,Re=!1,Ae=null;Z=Z||5e3;function Fe(){se--,Re&&se===0&&(Ae&&Ae[gi](),Ae=null,q&&q(Re),q=null)}if(d&&d[X]>0){var Xe=Ce()[Fn](d);Xe.iterate(function(ar){if(ar.flush){se++;var ot=!1;ar.flush(P,function(){ot=!0,Fe()},ae)||ot||(P&&Ae==null?Ae=Mt(function(){Ae=null,Fe()},Z):Fe())}})}return Re=!0,Fe(),!0}function vt(){var P;Ke(e[hn](function(q){var ae=q.cfg.enablePerfMgr;if(ae){var Z=q.cfg[vl];(P!==Z||!P)&&(Z||(Z=hb),ic(q.cfg,vl,Z),P=Z,s=null),!a&&!s&&ue(Z)&&(s=Z(D,D[Xu]()))}else s=null,P=null}))}function Be(P){var q=Pc(rr(),D);q[Ju](pe),(!D._updateHook||D._updateHook(q,P)!==!0)&&q[Or](P)}function Ye(P){var q=D[ze];q?(k(q,2,73,P),pe()):cr(P)}function qe(P){var q=D[Xu]();q&&q[ao]([P],2)}function Ke(P){T.add(P)}})}return r.__ieDyn=1,r})()});function xa(r,e){try{if(r&&r!==""){var t=et().parse(r);if(t&&t[sp]&&t[sp]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[X])return t}}catch(n){k(e,1,43,"Cannot parse the response. "+(n[Br]||te(n)),{response:r})}return null}var TS=O(()=>{me();ke();Dn();co()});var Kn,Db,DS,hm,ba,yS=O(()=>{Gr();_a();me();ke();Up();Dn();co();kn();Kn="",Db="NoResponseBody",DS="&"+Db+"=true",hm="POST",ba=(function(){function r(){var e=0,t,n,i,o,a,s,u,c,f,v,d,m,_,N;be(r,this,function(h,b){var T=!0;_e(),h[Ei]=function(g,y){i=y,n&&k(i,1,28,"Sender is already initialized"),h.SetConfig(g),n=!0},h._getDbgPlgTargets=function(){return[n,o,s,t]},h.SetConfig=function(g){try{if(a=g.senderOnCompleteCallBack||{},s=!!g.disableCredentials,u=g.fetchCredentials,o=!!g.isOneDs,t=!!g.enableSendPromise,f=!!g.disableXhr,v=!!g.disableBeacon,d=!!g.disableBeaconSync,N=g.timeWrapper,_=!!g.addNoResponse,m=!!g.disableFetchKeepAlive,c={sendPOST:G},o||(T=!1),s){var y=Ea();y&&y.protocol&&y.protocol[xt]()==="file:"&&(T=!1)}return!0}catch{}return!1},h.getSyncFetchPayload=function(){return e},h.getSenderInst=function(g,y){return g&&g[X]?B(g,y):null},h.getFallbackInst=function(){return c},h[ro]=function(g,y){_e()};function I(g,y){$(y,200,{},g)}function w(g,y){k(i,2,26,"Failed to send telemetry.",{message:g}),$(y,400,{})}function Y(g){w("No endpoint url is provided for the batch",g)}function B(g,y){for(var M,z=0,D=null,Q=0;D==null&&Q<g[X];)z=g[Q],!f&&z===1?cc()?D=ce:Ls()&&(D=G):z===2&&Ii(y)&&(!y||!m)?D=J:z===3&&Ot()&&(y?!d:!v)&&(D=V),Q++;return D?(M={_transport:z,_isSync:y},M[up]=D,M):null}function $(g,y,M,z){try{g&&g(y,M,z)}catch{}}function ie(g,y){var M=wr(),z=g[xs];if(!z)return Y(y),!0;z=g[xs]+(_?DS:Kn);var D=g[no],Q=o?D:new Blob([D],{type:"text/plain;charset=UTF-8"}),j=M.sendBeacon(z,Q);return j}function V(g,y,M){var z=g[no];try{if(z)if(ie(g,y))I(Kn,y);else{var D=a&&a.beaconOnRetry;D&&ue(D)?D(g,y,ie):(c&&c[up](g,y,!0),k(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(Q){o&&mt(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(Q)),$(y,o?0:400,{},Kn)}}function G(g,y,M){var z,D,Q,j=g[cl]||{};!M&&t&&(z=Zt(function(Ce,Ve){D=Ce,Q=Ve})),o&&M&&g.disableXhrSync&&(M=!1);var pe=g[xs];if(!pe){Y(y),D&&D(!1);return}var K=Np(hm,pe,T,!0,M,g[va]);o||K[cp]("Content-type","application/json"),R(Qr(j),function(Ce){K[cp](Ce,j[Ce])}),K.onreadystatechange=function(){o||(A(K),K.readyState===4&&D&&D(!0))},K.onload=function(){o&&A(K)};function A(Ce){var Ve=a&&a.xhrOnComplete,Mr=Ve&&ue(Ve);if(Mr)Ve(Ce,y,g);else{var rr=Nn(Ce);$(y,Ce[la],yi(Ce,o),rr)}}return K.onerror=function(Ce){$(y,o?K[la]:400,yi(K,o),o?Kn:Ti(K)),Q&&Q(Ce)},K.ontimeout=function(){$(y,o?K[la]:500,yi(K,o),o?Kn:Ti(K)),D&&D(!1)},K.send(g[no]),z}function J(g,y,M){var z,D=g[xs],Q=g[no],j=o?Q:new Blob([Q],{type:"application/json"}),pe,K,A,Ce=new Headers,Ve=Q[X],Mr=!1,rr=!1,Ft=g[cl]||{},Wr=(z={method:hm,body:j},z[Yp]=!0,z);g.headers&&Qr(g.headers)[X]>0&&(R(Qr(Ft),function(Ye){Ce.append(Ye,Ft[Ye])}),Wr[cl]=Ce),u?Wr.credentials=u:T&&o&&(Wr.credentials="include"),M&&(Wr.keepalive=!0,e+=Ve,o?g._sendReason===2&&(Mr=!0,_&&(D+=DS)):Mr=!0);var Ar=new Request(D,Wr);try{Ar[Yp]=!0}catch{}if(!M&&t&&(pe=Zt(function(Ye,qe){K=Ye,A=qe})),!D){Y(y),K&&K(!1);return}function vt(Ye){$(y,o?0:400,{},o?Kn:Ye)}function Be(Ye,qe,Ke){var P=Ye[la],q=a.fetchOnComplete;q&&ue(q)?q(Ye,y,Ke||Kn,qe):$(y,P,{},Ke||Kn)}try{Bt(fetch(o?D:Ar,o?Wr:null),function(Ye){if(M&&(e-=Ve,Ve=0),!rr)if(rr=!0,Ye.rejected)vt(Ye.reason&&Ye.reason[Mn]),A&&A(Ye.reason);else{var qe=Ye[ua];try{!o&&!qe.ok?(vt(qe.statusText),K&&K(!1)):o&&!qe.body?(Be(qe,null,Kn),K&&K(!0)):Bt(qe.text(),function(Ke){Be(qe,g,Ke[ua]),K&&K(!0)})}catch(Ke){vt(te(Ke)),A&&A(Ke)}}})}catch(Ye){rr||(vt(te(Ye)),A&&A(Ye))}return Mr&&!rr&&(rr=!0,$(y,200,{}),K&&K(!0)),o&&!rr&&g[va]>0&&N&&N.set(function(){rr||(rr=!0,$(y,500,{}),K&&K(!0))},g[va]),pe}function ce(g,y,M){var z=Nr(),D=new XDomainRequest,Q=g[no];D.onload=function(){var Ce=Nn(D),Ve=a&&a.xdrOnComplete;Ve&&ue(Ve)?Ve(D,y,g):$(y,200,{},Ce)},D.onerror=function(){$(y,400,{},o?Kn:ga(D))},D.ontimeout=function(){$(y,500,{})},D.onprogress=function(){};var j=z&&z.location&&z.location[al]||"",pe=g[xs];if(!pe){Y(y);return}if(!o&&pe.lastIndexOf(j,0)!==0){var K="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";k(i,2,40,". "+K),w(K,y);return}var A=o?pe:pe[En](/^(https?:)/,"");D.open(hm,A),g[va]&&(D[va]=g[va]),D.send(Q),o&&M?N&&N.set(function(){D.send(Q)},0):D.send(Q)}function _e(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,c=null,f=!1,v=!1,d=!1,m=!1,_=!1,N=null}})}return r.__ieDyn=1,r})()});function PS(r){return r&&r[En]?r[En](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,he):r}function Vl(r,e){var t;if(e){var n=he;re(e)?(n=he,R(e,function(o){o=PS(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=PS(e),n&&(n[0]!=="."&&(n="."+n),r=(r||he)+n)}var i=bb.exec(r||he)||[];return t={},t[Ct]=i[1],t.ns=(i[2]||he).replace(yb,".").replace(Ib,he)[Qt](".").sort().join("."),t}function gm(r,e,t){var n=[],i=Lc.get(r,jl,{},!1),o=Vl(e,t);return oe(i,function(a,s){R(s,function(u){var c;(!o[Ct]||o[Ct]===u.evtName[Ct])&&(!o.ns||o.ns===o.ns)&&n[De]((c={},c[Br]=u.evtName[Ct]+(u.evtName.ns?"."+u.evtName.ns:he),c.handler=u[Zu],c))})}),n}function FS(r,e,t){t===void 0&&(t=!0);var n=Lc.get(r,jl,{},t),i=n[e];return i||(i=n[e]=[]),i}function MS(r,e,t,n){r&&e&&e[Ct]&&(r[AS]?r[AS](e[Ct],t,n):r[bS]&&r[bS](RS+e[Ct],t))}function Ab(r,e,t,n){var i=!1;return r&&e&&e[Ct]&&t&&(r[xS]?(r[xS](e[Ct],t,n),i=!0):r[IS]&&(r[IS](RS+e[Ct],t),i=!0)),i}function CS(r,e,t,n){for(var i=e[X];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&(MS(r,o.evtName,o[Zu],o.capture),e[Yn](i,1))}}function Pb(r,e,t){if(e[Ct])CS(r,FS(r,e[Ct]),e,t);else{var n=Lc.get(r,jl,{});oe(n,function(i,o){CS(r,o,e,t)}),Qr(n)[X]===0&&Lc.kill(r,jl)}}function Kt(r,e){var t;return e?(re(e)?t=[r].concat(e):t=[r,e],t=Vl("xx",t).ns[Qt](".")):t=r,t}function Wn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=Vl(e,n);if(a=Ab(r,s,t,i),a&&Lc.accept(r)){var u=(o={guid:xb++,evtName:s},o[Zu]=t,o.capture=i,o);FS(r,s.type)[De](u)}}catch{}return a}function Oi(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=Vl(e,n),a=!1;Pb(r,o,function(s){return o.ns&&!t||s[Zu]===t?(a=!0,!0):!1}),a||MS(r,o,t,i)}catch{}}function Em(r,e,t,n){return n===void 0&&(n=!1),Wn(r,e,t,null,n)}function Sm(r,e,t,n){n===void 0&&(n=!1),Oi(r,e,t,null,n)}function Kl(r,e,t){var n=!1,i=Nr();i&&(n=Wn(i,r,e,t),n=Wn(i.body,r,e,t)||n);var o=fr();return o&&(n=Wn(o,r,e,t)||n),n}function Wl(r,e,t){var n=Nr();n&&(Oi(n,r,e,t),Oi(n.body,r,e,t));var i=fr();i&&Oi(i,r,e,t)}function js(r,e,t,n){var i=!1;return e&&r&&r[X]>0&&R(r,function(o){o&&(!t||Oe(t,o)===-1)&&(i=Kl(o,e,n)||i)}),i}function $l(r,e,t,n){var i=!1;return e&&r&&re(r)&&(i=js(r,e,t,n),!i&&t&&t[X]>0&&(i=js(r,e,null,n))),i}function Eo(r,e,t){r&&re(r)&&R(r,function(n){n&&Wl(n,e,t)})}function Yc(r,e,t){return $l([LS,OS,zl],r,e,t)}function Uc(r,e){Eo([LS,OS,zl],r,e)}function zs(r,e,t){function n(a){var s=fr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=Kt(YS,t),o=js([zl],r,e,i);return(!e||Oe(e,Oc)===-1)&&(o=js([Oc],n,e,i)||o),!o&&e&&(o=zs(r,null,t)),o}function Fc(r,e){var t=Kt(YS,e);Eo([zl],r,t),Eo([Oc],null,t)}function Vs(r,e,t){function n(a){var s=fr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=Kt(US,t),o=js([wS],r,e,i);return o=js([Oc],n,e,i)||o,!o&&e&&(o=Vs(r,null,t)),o}function Mc(r,e){var t=Kt(US,e);Eo([wS],r,t),Eo([Oc],null,t)}var RS,IS,xS,bS,AS,jl,Oc,zl,wS,OS,LS,YS,US,yb,Ib,xb,Lc,bb,HS=O(()=>{me();ke();Ys();Tr();RS="on",IS="attachEvent",xS="addEventListener",bS="detachEvent",AS="removeEventListener",jl="events",Oc="visibilitychange",zl="pagehide",wS="pageshow",OS="unload",LS="beforeunload",YS=rt("aiEvtPageHide"),US=rt("aiEvtPageShow"),yb=/\.[\.]+/g,Ib=/[\.]+$/,xb=1,Lc=Tl("events"),bb=/^([^.]*)(?:\.(.+)|)/});var Nm,kS=O(()=>{qu();Nm=lr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var Me=O(()=>{lE();dE();ep();NS();_m();Nl();nm();Lp();kn();TS();yS();me();qu();HS();co();It();Zp();Ul();Dn();kl();kS();Qp();Ys();Gl();Bl();sm();lo();xl();Mp()});var $n,GS,Tm,ql,Xl=O(()=>{$n="",GS="https://browser.events.data.microsoft.com/OneCollector/1.0/",Tm="version",ql="properties"});var Dm,ym,Ks,qn,Im,Qe,Aa,Li,Jl,Ql,Zl,ed,Hc,rd=O(()=>{Dm="initialize",ym="logger",Ks="indexOf",qn="timings",Im="pollInternalLogs",Qe="value",Aa="kind",Li="length",Jl="processTelemetryStart",Ql="handleField",Zl="rmSanitizer",ed="rmFieldSanitizer",Hc="canHandle"});function jr(r){return!(r===$n||F(r))}function td(r){if(r){var e=Dt(r,"-");if(e>-1)return ta(r,e)}return $n}function KS(){return xm===null&&(xm=!Te(Uint8Array)&&!Lb()&&!so()),xm}function nd(r){return!!(r&&Jr(r)&&r>=1&&r<=4)}function id(r,e,t){if(!e&&!jr(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||re(e))e={value:e};else if(n==="object"&&!jS.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(F(e[Qe])||e[Qe]===$n||!Se(e[Qe])&&!Jr(e[Qe])&&!wn(e[Qe])&&!re(e[Qe]))return null;if(re(e[Qe])&&!Am(e[Qe]))return null;if(!F(e[Aa])){if(re(e[Qe])||!kc(e[Aa]))return null;e[Qe]=e[Qe].toString()}return e}function $s(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),Ob(t))n===-1&&(n=0),n|=t;else{var i=wb[Xn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function WS(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||$n}function $S(r){r===void 0&&(r="D");var e=yc();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,$n)),e}function Pa(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[Li],c=arguments;for(wn(c[0])&&(a=c[0],s++);s<u;s++){var r=c[s];oe(r,function(v,d){a&&d&&nr(d)?re(d)?(o[v]=o[v]||[],R(d,function(m,_){m&&nr(m)?o[v][_]=Pa(!0,o[v][_],m):o[v][_]=m})):o[v]=Pa(!0,o[v],d):o[v]=d})}return o}function kc(r){return r===0||r>0&&r<=13||r===32}function Ob(r){return r>=0&&r<=9}function Lb(){var r=wr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Ks]("safari")>=0||e[Ks]("firefox")>=0)&&e[Ks]("chrome")<0)return!0}return!1}function Am(r){return r[Li]>0}function Gc(r,e){var t=r;t[qn]=t[qn]||{},t[qn][Jl]=t[qn][Jl]||{},t[qn][Jl][e]=Lt()}function Xn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===vi&&(e=4,re(r)?(e=4096,r[Li]>0&&(e|=Xn(r[0]))):jS.call(r,"value")&&(e=8192|Xn(r[Qe])))}return e}function od(){return!!le("chrome")}function qS(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,f){try{u[c]=f}catch{}}var s=new XMLHttpRequest;return n&&a(s,Cb,n),t&&a(s,BS,t),s.open(r,e,!i),t&&a(s,BS,t),!i&&o&&a(s,Rb,o),s}function So(r){return r>0}var Yi,bm,Ws,jS,Cb,BS,Rb,wb,xm,zS,VS,Lt,ad=O(()=>{Me();It();me();Xl();rd();bm="4.3.4",Ws="1DS-Web-JS-"+bm,jS=Yu.hasOwnProperty,Cb="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",BS="withCredentials",Rb="timeout",wb=(Yi={},Yi[0]=0,Yi[2]=6,Yi[1]=1,Yi[3]=7,Yi[4098]=6,Yi[4097]=1,Yi[4099]=7,Yi),xm=null,zS=na(),VS=ps();Lt=Ku});function Ub(r){return r&&(!r.getProperty||!r.setProperty)&&cr("Invalid property storage override passed."),!0}var Yb,XS,JS=O(()=>{It();Gr();Me();me();Xl();ad();rd();Yb=On({endpointUrl:GS,propertyStorageOverride:{isVal:Ub}});XS=(function(r){yt(e,r);function e(){var t=r.call(this)||this;return be(e,t,function(n,i){n[Dm]=function(o,a,s,u){dr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Dm](Je(o,Yb,s||n[ym],!1).cfg,a,s,u)}catch(v){var c=n[ym],f=te(v);f[Ks]("channels")!==-1&&(f+=`
- Channels must be provided through config.channels only!`),k(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+f)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){dr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[qn]=a[qn]||{},a[qn].trackStart=Lt(),nd(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=Ws;var u=a.baseData=a.baseData||{};u[ql]=u[ql]||{};var c=u[ql];c[Tm]=c[Tm]||n.pluginVersionString||$n}i.track(a)},function(){return{item:o}},!o.sync)},n[Im]=function(o){return i[Im](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(wi)});var QS,ZS,eN,rN,tN,nN=O(()=>{Me();QS=lr({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,Pii_IPv6ScrubLastHextets:14,Pii_DropValue:15,CustomerContent_GenericContent:32}),ZS=lr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),eN=lr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),rN=lr({Normal:1,Critical:2}),tN=lr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var iN,oN=O(()=>{Me();me();Xl();ad();rd();iN=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(f,v){var d,m=n[f];if(m&&(d=m[v]),!d&&d!==null){if(Se(f)&&Se(v))if(o[Li]>0){for(var _=0;_<o[Li];_++)if(o[_][Ql](f,v)){d={canHandle:!0,fieldHandler:o[_]};break}}else i[Li]===0&&(d={canHandle:!0});if(!d&&d!==null){d=null;for(var _=0;_<i[Li];_++)if(i[_][Ql](f,v)){d={canHandle:!0,handler:i[_],fieldHandler:null};break}}m||(m=n[f]={}),m[v]=d}return d}t.clearCache=function(){n={}},t.addSanitizer=function(f){f&&(Y_(i,f)||i.push(f),n={})},t.addFieldSanitizer=function(f){f&&(Y_(o,f)||o.push(f),n={})},t[Zl]=function(f){if(f){var v=Oe(i,f);v!==-1&&(i.splice(v,1),n={}),R(i,function(d){d&&d[Zl]&&d[Zl](f)})}},t[ed]=function(f){if(f){var v=Oe(o,f);v!==-1&&(o.splice(v,1),n={}),R(i,function(d){d&&d[ed]&&d[ed](f)})}},t.isEmpty=function(){return gs(i)+gs(o)===0},t[Ql]=function(f,v){var d=a(f,v);return d?d[Hc]:!1},t[Qe]=function(f,v,d,m){var _=a(f,v);if(_&&_[Hc]){if(!_||!_[Hc])return null;if(_.handler)return _.handler[Qe](f,v,d,m);if(!Se(v)||F(d)||d===$n)return null;var N=null,h=Xn(d);if((h&8192)===8192){var b=h&-8193;if(N=d,!jr(N[Qe])||b!==1&&b!==2&&b!==3&&(b&4096)!==4096)return null}else h===1||h===2||h===3||(h&4096)===4096?N=u(f,v,d):h===4&&(N=u(f,v,m?JSON.stringify(d):d));if(N)return s(_,f,v,h,N,m)}return null},t.property=function(f,v,d,m){var _=a(f,v);if(!_||!_[Hc]||!Se(v)||F(d)||!jr(d[Qe]))return null;var N=Xn(d[Qe]);return N===0?null:s(_,f,v,N,d,m)};function s(f,v,d,m,_,N){if(f.handler)return f.handler.property(v,d,_,N);if(!F(_[Aa])){if((m&4096)===4096||!kc(_[Aa]))return null;_[Qe]=_[Qe].toString()}return c(f.fieldHandler,v,d,m,_)}function u(f,v,d){return jr(d)?{value:d}:null}function c(f,v,d,m,_){if(_&&f){var N=f.getSanitizer(v,d,m,_[Aa],_.propertyType);if(N)if(m===4){var h={},b=_[Qe];oe(b,function(I,w){var Y=v+"."+d;if(jr(w)){var B=u(Y,I,w);B=c(f,Y,I,Xn(w),B),B&&(h[I]=B[Qe])}}),_[Qe]=h}else{var T={path:v,name:d,type:m,prop:_,sanitizer:t};_=N.call(t,T)}}return _}}return r.getFieldType=Xn,r})()});var aN={};Ou(aN,{ActiveStatus:()=>Ht,AppInsightsCore:()=>XS,BaseTelemetryPlugin:()=>Ri,DiagnosticLogger:()=>vo,EventLatency:()=>ZS,EventPersistence:()=>rN,EventPropertyType:()=>eN,EventsDiscardedReason:()=>pn,FullVersionString:()=>Ws,InternalAppInsightsCore:()=>wi,LoggingSeverity:()=>Nm,MinChannelPriorty:()=>Q_,NotificationManager:()=>Nc,PerfEvent:()=>Ta,PerfManager:()=>Dc,ProcessTelemetryContext:()=>lm,SenderPostManager:()=>ba,TraceLevel:()=>tN,Undefined:()=>Cn,ValueKind:()=>QS,ValueSanitizer:()=>iN,Version:()=>bm,_InternalLogMessage:()=>Sa,__getRegisteredEvents:()=>gm,_appendHeader:()=>ws,_getAllResponseHeaders:()=>yi,_logInternalMessage:()=>zp,_testHookMaxUnloadHooksCb:()=>dm,_throwInternal:()=>k,_warnToConsole:()=>mt,addEventHandler:()=>Kl,addEventListeners:()=>$l,addPageHideEventListener:()=>zs,addPageShowEventListener:()=>Vs,addPageUnloadEventListener:()=>Yc,areCookiesSupported:()=>Hs,arrForEach:()=>R,arrIndexOf:()=>Oe,arrMap:()=>pi,arrReduce:()=>Vu,attachEvent:()=>Em,blockDynamicConversion:()=>mc,convertAllHeadersToMap:()=>Sl,cookieAvailable:()=>Hs,createCookieMgr:()=>Ai,createDynamicConfig:()=>Je,createEnumStyle:()=>lr,createGuid:()=>$S,createProcessTelemetryContext:()=>ht,createTraceParent:()=>Ic,createUniqueNamespace:()=>rt,createUnloadHandlerContainer:()=>Ia,dateNow:()=>ir,detachEvent:()=>Sm,disallowsSameSiteNone:()=>Yl,doPerf:()=>dr,dumpObj:()=>te,eventOff:()=>Oi,eventOn:()=>Wn,extend:()=>Pa,findW3cTraceParent:()=>Ac,forceDynamicConversion:()=>Op,formatErrorMessageXdr:()=>ga,formatErrorMessageXhr:()=>Ti,formatTraceParent:()=>bc,generateW3CId:()=>Da,getCommonSchemaMetaData:()=>$s,getConsole:()=>oc,getCookieValue:()=>WS,getCrypto:()=>ac,getDocument:()=>fr,getDynamicConfigHandler:()=>pc,getExceptionName:()=>We,getFieldValueType:()=>Xn,getGlobal:()=>pt,getGlobalInst:()=>le,getHistory:()=>Bf,getIEVersion:()=>uc,getISOString:()=>zt,getJSON:()=>et,getLocation:()=>Ea,getMsCrypto:()=>sc,getNavigator:()=>wr,getPerformance:()=>qi,getResponseText:()=>Nn,getSetValue:()=>ic,getTenantId:()=>td,getTime:()=>Lt,getWindow:()=>Nr,hasDocument:()=>na,hasHistory:()=>O_,hasJSON:()=>Gn,hasNavigator:()=>ju,hasOwnProperty:()=>Cr,hasWindow:()=>ps,isArray:()=>re,isArrayValid:()=>Am,isBeaconsSupported:()=>Ot,isBoolean:()=>wn,isChromium:()=>od,isDate:()=>Hf,isDocumentObjectAvailable:()=>zS,isError:()=>ea,isFetchSupported:()=>Ii,isFunction:()=>ue,isGreaterThanZero:()=>So,isIE:()=>uo,isLatency:()=>nd,isNotTruthy:()=>x_,isNullOrUndefined:()=>F,isNumber:()=>Jr,isObject:()=>nr,isReactNative:()=>so,isSampledFlag:()=>xc,isString:()=>Se,isTruthy:()=>dn,isTypeof:()=>I_,isUint8ArrayAvailable:()=>KS,isUndefined:()=>Te,isValidSpanId:()=>Vn,isValidTraceId:()=>zn,isValidTraceParent:()=>Gs,isValueAssigned:()=>jr,isValueKind:()=>kc,isWindowObjectAvailable:()=>VS,isXhrSupported:()=>Ls,mergeEvtNamespace:()=>Kt,newGuid:()=>yc,newId:()=>vc,normalizeJsName:()=>ha,objDefineAccessors:()=>P_,objForEachKey:()=>oe,objFreeze:()=>Xt,objKeys:()=>Qr,objSeal:()=>C_,onConfigChange:()=>Dr,openXhr:()=>qS,optimizeObject:()=>wt,parseResponse:()=>xa,parseTraceParent:()=>ya,perfNow:()=>Ku,prependTransports:()=>Di,proxyAssign:()=>Ep,proxyFunctionAs:()=>Ni,proxyFunctions:()=>Vt,random32:()=>xi,randomValue:()=>dc,removeEventHandler:()=>Wl,removeEventListeners:()=>Eo,removePageHideEventListener:()=>Fc,removePageShowEventListener:()=>Mc,removePageUnloadEventListener:()=>Uc,safeGetCookieMgr:()=>Jp,safeGetLogger:()=>Tn,sanitizeProperty:()=>id,setEnableEnvMocks:()=>bp,setProcessTelemetryTimings:()=>Gc,setValue:()=>rn,strContains:()=>hr,strEndsWith:()=>ia,strFunction:()=>cs,strObject:()=>vi,strPrototype:()=>fn,strStartsWith:()=>Es,strTrim:()=>Ue,strUndefined:()=>Cn,throwError:()=>cr,toISOString:()=>zt,useXDomainRequest:()=>cc});var Ca=O(()=>{JS();nN();oN();Me();ad()});var Ra,sd,ud,Pm=O(()=>{Ra="REAL_TIME",sd="NEAR_REAL_TIME",ud="BEST_EFFORT"});var yn,cd,sN,Cm,uN,cN,Rm,fd,Bc,qs,fN,lN,dN,ld,wm,dd,vd,_d,jc,Om,Lm,vN,Xs,Ym,pd,zc=O(()=>{yn="",cd="drop",sN="send",Cm="requeue",uN="rspFail",cN="oth",Rm="no-cache, no-store",fd="application/x-json-stream",Bc="cache-control",qs="content-type",fN="kill-tokens",lN="kill-duration",dN="time-delta-millis",ld="client-version",wm="client-id",dd="time-delta-to-apply-millis",vd="upload-time",_d="apikey",jc="AuthMsaDeviceTicket",Om="WebAuthToken",Lm="AuthXToken",vN="NoResponseBody",Xs="msfpc",Ym="trace",pd="user"});var Vc,md,hd,gd,Kc,xe,Jn,Wt,vr,Qn,Lr,Zn,wa,Ed,Oa,Sd,La,Nd,Td,_N,Um,Fm,pN,mN,Dd,Mm,Hm,hN,gN,km,Gm,Bm,EN,yd,Id,xd,Wc,jm,In,Js,zm,ut,Yt,$c,qc,Qs,bd,Xc,SN,Zs,Ad,Pd,eu,Vm,Jc,Cd,Rd,ru,NN,wd,Od,Ld,Qc,TN,DN,Km,Wm,yN,IN,xN,Yd,Zc,No,Ya,tu=O(()=>{Vc="allowRequestSending",md="firstRequestSent",hd="shouldAddClockSkewHeaders",gd="getClockSkewHeaderValue",Kc="setClockSkew",xe="length",Jn="concat",Wt="iKey",vr="count",Qn="events",Lr="push",Zn="split",wa="splice",Ed="toLowerCase",Oa="hdrs",Sd="useHdrs",La="initialize",Nd="setTimeoutOverride",Td="clearTimeoutOverride",_N="payloadPreprocessor",Um="overrideEndpointUrl",Fm="avoidOptions",pN="disableEventTimings",mN="stringifyObjects",Dd="enableCompoundKey",Mm="disableXhrSync",Hm="disableFetchKeepAlive",hN="addNoResponse",gN="excludeCsMetaData",km="useSendBeacon",Gm="fetchCredentials",Bm="alwaysUseXhrOverride",EN="unloadTransports",yd="serializeOfflineEvt",Id="getOfflineRequestDetails",xd="createPayload",Wc="createOneDSPayload",jm="payloadBlob",In="headers",Js="_thePayload",zm="urlString",ut="batches",Yt="sendType",$c="addHeader",qc="canSendRequest",Qs="sendQueuedRequests",bd="isCompletelyIdle",Xc="setUnloading",SN="isTenantKilled",Zs="resume",Ad="sendSynchronousBatch",Pd="_transport",eu="getWParam",Vm="isBeacon",Jc="timings",Cd="isTeardown",Rd="isSync",ru="data",NN="timeout",wd="_sendReason",Od="setKillSwitchTenants",Ld="_backOffTransmission",Qc="identifier",TN="disableOptimizeObj",DN="ignoreMc1Ms0CookieProcessing",Km="eventsLimitInMem",Wm="autoFlushEventsLimit",yN="disableAutoBatchFlushLimit",IN="overrideInstrumentationKey",xN="disableTelemetry",Yd="baseData",Zc="sendAttempt",No="latency",Ya="sync"});function AN(r){var e=(r.ext||{}).intweb;return e&&jr(e[Xs])?e[Xs]:null}function bN(r){for(var e=null,t=0;e===null&&t<r[xe];t++)e=AN(r[t]);return e}var To,Ud=O(()=>{Ca();zc();tu();To=(function(){function r(e,t){var n=t?[][Jn](t):[],i=this,o=bN(n);i[Wt]=function(){return e},i.Msfpc=function(){return o||yn},i[vr]=function(){return n[xe]},i[Qn]=function(){return n},i.addEvent=function(a){return a?(n[Lr](a),o||(o=AN(a)),!0):!1},i[Zn]=function(a,s){var u;if(a<n[xe]){var c=n[xe]-a;F(s)||(c=s<c?s:c),u=n[wa](a,c),o=bN(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var PN,CN=O(()=>{Gr();tu();PN=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;be(r,this,function(a){a[Vc]=function(){return e},a[md]=function(){n&&(n=!1,o||(e=!1))},a[hd]=function(){return t},a[gd]=function(){return i},a[Kc]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var Fb,RN,wN=O(()=>{Gr();Ca();tu();Fb=1e3,RN=(function(){function r(){var e={};function t(n){var i=[];return n&&R(n,function(o){i[Lr](Ue(o))}),i}be(r,this,function(n){n[Od]=function(i,o){if(i&&o)try{var a=t(i[Zn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*Fb,u=0;u<a[xe];++u)e[a[u]]=ir()+s}catch{return[]}return[]},n[SN]=function(i){var o=e,a=Ue(i);return o[a]!==void 0&&o[a]>ir()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function LN(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function Fd(r){var e=0,t=ON*Mb,n=ON*Hb,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,kb)}var Mb,Hb,ON,kb,$m=O(()=>{Mb=.8,Hb=1.2,ON=3e3,kb=6e5});function Vb(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[YN];a||(a=e[YN]={f:{}});var s=a[Md];if(s||(s=a[Md]={}),t)for(var u=0;u<t.length;u++){var c=t[u];s[c]||(s[c]={f:{}});var f=s[c][Md];f||(f=s[c][Md]={}),s=f}s=s[n]={},re(i.value)?s.a={t:o}:s.t=o}}}var Gb,Bb,UN,FN,jb,YN,Md,zb,MN,HN=O(()=>{Gr();Ca();Ud();zc();me();Gb=20,Bb=3984588,UN=65e3,FN=2e6,jb=Math.min(FN,UN),YN="metadata",Md="f",zb=/\./,MN=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",c="ext",f=!!i,v=!0,d=t,m={},_=!!a,N=o||$s;be(r,this,function(h){h.createPayload=function(I,w,Y,B,$,ie){return{apiKeys:[],payloadBlob:yn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:I,isTeardown:w,isSync:Y,isBeacon:B,sendType:ie,sendReason:$}},h.appendPayload=function(I,w,Y){var B=I&&w&&!I.overflow;return B&&dr(e,function(){return"Serializer:appendPayload"},function(){for(var $=w.events(),ie=I.payloadBlob,V=I.numEvents,G=!1,J=[],ce=[],_e=I.isBeacon,g=_e?UN:Bb,y=_e?jb:FN,M=0,z=0;M<$.length;){var D=$[M];if(D){if(V>=Y){I.overflow=w.split(M);break}var Q=h.getEventBlob(D);if(Q&&Q.length<=y){var j=Q.length,pe=ie.length;if(pe+j>g){I.overflow=w.split(M);break}ie&&(ie+=`
`),ie+=Q,z++,z>Gb&&(Ln(ie,0,1),z=0),G=!0,V++}else Q?J.push(D):ce.push(D),$.splice(M,1),M--}M++}if(J.length>0&&I.sizeExceed.push(To.create(w.iKey(),J)),ce.length>0&&I.failedEvts.push(To.create(w.iKey(),ce)),G){I.batches.push(w),I.payloadBlob=ie,I.numEvents=V;var K=w.iKey();Oe(I.apiKeys,K)===-1&&I.apiKeys.push(K)}},function(){return{payload:I,theBatch:{iKey:w.iKey(),evts:w.events()},max:Y}}),B},h.getEventBlob=function(I){try{return dr(e,function(){return"Serializer.getEventBlob"},function(){var w={};w.name=I.name,w.time=I.time,w.ver=I.ver,w.iKey="o:"+td(I.iKey);var Y={},B;_||(B=function(G,J,ce){Vb(N,Y,G,J,ce)});var $=I[c];$&&(w[c]=Y,oe($,function(G,J){var ce=Y[G]={};T(J,ce,"ext."+G,!0,null,null,!0)}));var ie=w[s]={};ie.baseType=I.baseType;var V=ie[u]={};return T(I.baseData,V,u,!1,[u],B,v),T(I.data,ie,s,!1,[],B,v),JSON.stringify(w)},function(){return{item:I}})}catch{return null}};function b(I,w){var Y=m[I];return Y===void 0&&(I.length>=7&&(Y=Es(I,"ext.metadata")||Es(I,"ext.web")),m[I]=Y),Y}function T(I,w,Y,B,$,ie,V){oe(I,function(G,J){var ce=null;if(J||jr(J)){var _e=Y,g=G,y=$,M=w;if(f&&!B&&zb.test(G)){var z=G.split("."),D=z.length;if(D>1){y&&(y=y.slice());for(var Q=0;Q<D-1;Q++){var j=z[Q];M=M[j]=M[j]||{},_e+="."+j,y&&y.push(j)}g=z[D-1]}}var pe=B&&b(_e,g);if(!pe&&d&&d.handleField(_e,g)?ce=d.value(_e,g,J,n):ce=id(g,J,n),ce){var K=ce.value;if(M[g]=K,ie&&ie(y,g,ce),V&&typeof K=="object"&&!re(K)){var A=y;A&&(A=A.slice(),A.push(g)),T(J,K,_e+"."+g,B,A,ie,V)}}}})}})}return r.__ieDyn=1,r})()});function nu(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return rE([r,e],t,n,i)}}}var qm=O(()=>{me()});function Fa(r,e,t){Jm[r]=e,t!==!1&&(Qm[e]=r)}function Hd(r,e){var t=!1;if(r&&e){var n=Qr(r);if(n&&n[xe]>0)for(var i=e[Ed](),o=0;o<n[xe];o++){var a=n[o];if(a&&Cr(e,a)&&a[Ed]()===i){t=!0;break}}}return t}function iu(r,e,t,n){e&&t&&t[xe]>0&&(n&&Jm[e]?(r[Oa][Jm[e]]=t,r[Sd]=!0):r.url+="&"+e+"="+t)}function qb(r,e,t){for(var n=0;n<r[xe];n++)if(r[n].name===e){r[n].value=t;return}r[Lr]({name:e,value:t})}function Xb(r,e){for(var t=0;t<r[xe];t++)if(r[t].name===e){r[wa](t,1);return}}var Ua,Xm,Kb,Wb,$b,Jm,Qm,kN,GN=O(()=>{Gr();Ca();me();CN();Ud();zc();wN();$m();HN();qm();tu();Xm="sendAttempt",Kb="&"+vN+"=true",Wb="?cors=true&"+qs[Ed]()+"="+fd,$b=(Ua={},Ua[1]=Cm,Ua[100]=Cm,Ua[200]="sent",Ua[8004]=cd,Ua[8003]=cd,Ua),Jm={},Qm={};Fa(jc,jc,!1);Fa(ld,ld);Fa(wm,"Client-Id");Fa(_d,_d);Fa(dd,dd);Fa(vd,vd);Fa(Lm,Lm);kN=(function(){function r(e,t,n,i){var o,a,s,u,c=!1,f,v,d,m,_,N,h,b,T,I,w,Y,B,$,ie,V,G,J,ce,_e,g,y,M,z,D,Q,j,pe;be(r,this,function(K){rr();var A=!0;K[La]=function(E,L,H){z||(_=L,Y=L.getCookieMgr(),v=H,d=v.diagLog(),_n(_e,Dr(E,function(ee){var de,Ie=ee.cfg,ne=ee.cfg.extensionConfig[H.identifier];D=nu(ne[Nd],ne[Td]),jr(Ie.anonCookieName)?qb(h,"anoncknm",Ie.anonCookieName):Xb(h,"anoncknm"),g=ne[_N],y=ne.payloadListener;var l=ne.httpXHROverride,p=ne[Um]?ne[Um]:Ie.endpointUrl;o=p+Wb,$=Te(ne[Fm])?!0:!ne[Fm],w=!ne[pN];var S=ne.valueSanitizer,x=ne[mN],C=!!Ie[Dd];Te(ne[Dd])||(C=!!ne[Dd]),ie=ne.xhrTimeout,V=!!ne[Mm],G=!!ne[Hm],ce=ne[hN]!==!1,Q=!!ne[gN],L.getPlugin("LocalStorage")&&(G=!0),c=!so(),I=new MN(_,S,x,C,$s,Q),F(ne[km])||(c=!!ne[km]),ne[Gm]&&(pe=ne[Gm]);var U=Ve();j?j.SetConfig(U):(j=new ba,j[La](U,d));var W=l,ve=ne[Bm]?l:null,Pe=ne[Bm]?l:null,fe=[3,2];if(!l){N=!1;var Et=[];so()?(Et=[2,1],fe=[2,1,3]):Et=[1,2,3],Et=Di(Et,ne.transports),l=Ce(Et,!1),l||mt(d,"No available transport to send events"),W=Ce(Et,!0)}ve||(fe=Di(fe,ne[EN]),ve=Ce(fe,!0)),J=!N&&(c&&Ot()||!G&&Ii(!0)),m=(de={},de[0]=l,de[1]=W||Ce([1,2,3],!0),de[2]=ve||W||Ce([1],!0),de[3]=Pe||Ce([2,3],!0)||W||Ce([1],!0),de)})),z=!0)},K.addResponseHandler=function(E){return M[Lr](E),{rm:function(){var L=M.indexOf(E);L>=0&&M[wa](L,1)}}},K[yd]=function(E){try{if(I)return I.getEventBlob(E)}catch{}return yn},K[Id]=function(){try{var E=I&&I[xd](0,!1,!1,!1,1,0);return Z(E,$)}catch{}return null},K[Wc]=function(E,L){try{var H=[];R(E,function(l){L&&(l=wt(l));var p=To.create(l[Wt],[l]);H[Lr](p)});for(var ee=null;H[xe]>0&&I;){var de=H.shift();de&&de[vr]()>0&&(ee=ee||I[xd](0,!1,!1,!1,1,0),I.appendPayload(ee,de,e))}var Ie=Z(ee,$),ne={data:ee[jm],urlString:Ie.url,headers:Ie[Oa],timeout:ie,disableXhrSync:V,disableFetchKeepAlive:G};return $&&(Hd(ne[In],Bc)||(ne[In][Bc]=Rm),Hd(ne[In],qs)||(ne[In][qs]=fd)),ne}catch{}return null};function Ce(E,L){try{return j&&j.getSenderInst(E,L)}catch{}return null}K._getDbgPlgTargets=function(){return[m[0],a,I,m,Ve(),o]};function Ve(){try{var E={xdrOnComplete:Mr,fetchOnComplete:Ft,xhrOnComplete:Wr,beaconOnRetry:vt},L={enableSendPromise:!1,isOneDs:!0,disableCredentials:!A,fetchCredentials:pe,disableXhr:!1,disableBeacon:!c,disableBeaconSync:!c,disableFetchKeepAlive:G,timeWrapper:D,addNoResponse:ce,senderOnCompleteCallBack:E};return L}catch{}return null}function Mr(E,L,H){var ee=Nn(E);Ar(L,200,{},ee),$t(ee)}function rr(){var E;o=null,a=new RN,s=!1,u=new PN,c=!1,f=0,v=null,d=null,m=null,_=null,N=!0,h=[],b={},T=[],I=null,w=!1,Y=null,B=!1,$=!1,ie=E,V=E,G=E,J=E,ce=E,_e=[],g=E,y=E,M=[],z=!1,D=nu(),Q=!1,j=null}function Ft(E,L,H,ee){var de=function(l,p,S){Ar(L,l,p,S),$t(S)},Ie={},ne=E[In];ne&&ne.forEach(function(l,p){Ie[p]=l}),de(E.status,Ie,H||yn)}function Wr(E,L,H){var ee=Nn(E);Ar(L,E.status,yi(E,!0),ee),$t(ee)}function Ar(E,L,H,ee){try{E(L,H,ee)}catch(de){k(d,2,518,te(de))}}function vt(E,L,H){var ee=E,de=200,Ie=ee[Js],ne=E[zm]+(ce?Kb:yn);try{var l=wr();if(Ie){var p=!!_.getPlugin("LocalStorage"),S=[],x=[];R(Ie[ut],function(C){if(S&&C&&C[vr]()>0)for(var U=C[Qn](),W=0;W<U[xe];W++)if(l.sendBeacon(ne,I.getEventBlob(U[W])))x[Lr](C[W]);else{S[Lr](C[Zn](W));break}else S[Lr](C[Zn](0))}),x[xe]>0&&(Ie.sentEvts=x),p||Hr(S,8003,Ie[Yt],!0)}else de=0}catch(C){mt(d,"Failed to send telemetry using sendBeacon API. Ex:"+te(C)),de=0}finally{Ar(L,de,{},yn)}}function Be(E){return E===2||E===3}function Ye(E){return B&&Be(E)&&(E=2),E}K[$c]=function(E,L){b[E]=L},K.removeHeader=function(E){delete b[E]},K[qc]=function(){return qe()&&u[Vc]()},K[Qs]=function(E,L){Te(E)&&(E=0),B&&(E=Ye(E),L=2),P(T,E,0)&&ae(Ke(),0,!1,E,L||0)},K[bd]=function(){return!s&&f===0&&T[xe]===0},K[Xc]=function(E){B=E},K.addBatch=function(E){if(E&&E[vr]()>0){if(a.isTenantKilled(E[Wt]()))return!1;T[Lr](E)}return!0},K.teardown=function(){T[xe]>0&&ae(Ke(),0,!0,2,2),R(_e,function(E){E&&E.rm&&E.rm()}),_e=[]},K.pause=function(){s=!0},K[Zs]=function(){s=!1,K[Qs](0,4)},K[Ad]=function(E,L,H){E&&E[vr]()>0&&(F(L)&&(L=1),B&&(L=Ye(L),H=2),ae([E],0,!1,L,H||0))};function qe(){return!s&&f<t}function Ke(){var E=T;return T=[],E}function P(E,L,H){var ee=!1;return E&&E[xe]>0&&!s&&m[L]&&I&&(ee=L!==0||qe()&&(H>0||u[Vc]())),ee}function q(E){var L={};return E&&R(E,function(H,ee){L[ee]={iKey:H[Wt](),evts:H[Qn]()}}),L}function ae(E,L,H,ee,de){if(!(!E||E[xe]===0)){if(s){Hr(E,1,ee);return}ee=Ye(ee);try{var Ie=E,ne=ee!==0;dr(_,function(){return"HttpManager:_sendBatches"},function(l){l&&(E=E.slice(0));for(var p=[],S=null,x=Lt(),C=m[ee]||(ne?m[1]:m[0]),U=C&&C[Pd],W=J&&(B||Be(ee)||U===3||C._isSync&&U===2);P(E,ee,L);){var ve=E.shift();ve&&ve[vr]()>0&&(a.isTenantKilled(ve[Wt]())?p[Lr](ve):(S=S||I[xd](L,H,ne,W,de,ee),I.appendPayload(S,ve,e)?S.overflow!==null&&(E=[S.overflow][Jn](E),S.overflow=null,Re(S,x,Lt(),de),x=Lt(),S=null):(Re(S,x,Lt(),de),x=Lt(),E=[ve][Jn](E),S=null)))}S&&Re(S,x,Lt(),de),E[xe]>0&&(T=E[Jn](T)),Hr(p,8004,ee)},function(){return{batches:q(Ie),retryCount:L,isTeardown:H,isSynchronous:ne,sendReason:de,useSendBeacon:Be(ee),sendType:ee}},!ne)}catch(l){k(d,2,48,"Unexpected Exception sending batch: "+te(l))}}}function Z(E,L){var H={url:o,hdrs:{},useHdrs:!1};L?(H[Oa]=Pa(H[Oa],b),H.useHdrs=Qr(H.hdrs)[xe]>0):oe(b,function(l,p){Qm[l]?iu(H,Qm[l],p,!1):(H[Oa][l]=p,H[Sd]=!0)}),iu(H,wm,"NO_AUTH",L),iu(H,ld,Ws,L);var ee=yn;R(E.apiKeys,function(l){ee[xe]>0&&(ee+=","),ee+=l}),iu(H,_d,ee,L),iu(H,vd,ir().toString(),L);var de=at(E);if(jr(de)&&(H.url+="&ext.intweb.msfpc="+de),u[hd]()&&iu(H,dd,u[gd](),L),_[eu]){var Ie=_[eu]();Ie>=0&&(H.url+="&w="+Ie)}for(var ne=0;ne<h[xe];ne++)H.url+="&"+h[ne].name+"="+h[ne].value;return H}function se(E,L,H){E[L]=E[L]||{},E[L][v.identifier]=H}function Re(E,L,H,ee){if(E&&E.payloadBlob&&E.payloadBlob[xe]>0){var de=!!g,Ie=m[E.sendType];!Be(E[Yt])&&E[Vm]&&E.sendReason===2&&(Ie=m[2]||m[3]||Ie);var ne=$;(E.isBeacon||Ie[Pd]===3)&&(ne=!1);var l=Z(E,ne);ne=ne||l[Sd];var p=Lt();dr(_,function(){return"HttpManager:_doPayloadSend"},function(){for(var S=0;S<E.batches[xe];S++)for(var x=E[ut][S],C=x[Qn](),U=0;U<C[xe];U++){var W=C[U];if(w){var ve=W[Jc]=W[Jc]||{};se(ve,"sendEventStart",p),se(ve,"serializationStart",L),se(ve,"serializationCompleted",H)}W[Xm]>0?W[Xm]++:W[Xm]=1}Hr(E[ut],1e3+(ee||0),E[Yt],!0);var Pe={data:E[jm],urlString:l.url,headers:l[Oa],_thePayload:E,_sendReason:ee,timeout:ie,disableXhrSync:V,disableFetchKeepAlive:G};ne&&(Hd(Pe[In],Bc)||(Pe[In][Bc]=Rm),Hd(Pe[In],qs)||(Pe[In][qs]=fd));var fe=null;Ie&&(fe=function(Et){u[md]();var di=function(Pn,xf){Fe(Pn,xf,E,ee)},St=E[Cd]||E[Rd];try{Ie.sendPOST(Et,di,St),y&&y(Pe,Et,St,E[Vm])}catch(Pn){mt(d,"Unexpected exception sending payload. Ex:"+te(Pn)),Ar(di,0,{})}}),dr(_,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(fe)if(E[Yt]===0&&f++,de&&!E.isBeacon&&Ie[Pd]!==3){var Et={data:Pe[ru],urlString:Pe[zm],headers:Pa({},Pe[In]),timeout:Pe[NN],disableXhrSync:Pe[Mm],disableFetchKeepAlive:Pe[Hm]},di=!1;dr(_,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{g(Et,function(St){di=!0,!N&&!St[Js]&&(St[Js]=St[Js]||Pe[Js],St[wd]=St[wd]||Pe[wd]),fe(St)},E.isSync||E[Cd])}catch{di||fe(Pe)}})}else fe(Pe)})},function(){return{thePayload:E,serializationStart:L,serializationCompleted:H,sendReason:ee}},E[Rd])}E.sizeExceed&&E.sizeExceed[xe]>0&&Hr(E.sizeExceed,8003,E[Yt]),E.failedEvts&&E.failedEvts[xe]>0&&Hr(E.failedEvts,8002,E[Yt])}function Ae(E,L){w&&R(E,function(H){var ee=H[Jc]=H[Jc]||{};se(ee,"sendEventCompleted",L)})}function Fe(E,L,H,ee){var de=9e3,Ie=null,ne=!1,l=!1;try{var p=!0;if(typeof E!==Cn){if(L){u[Kc](L[dN]);var S=L[lN]||L["kill-duration-seconds"];R(a[Od](L[fN],S),function(C){R(H[ut],function(U){if(U[Wt]()===C){Ie=Ie||[];var W=U[Zn](0);H.numEvents-=W[vr](),Ie[Lr](W)}})})}if(E==200||E==204){de=200;return}(!LN(E)||H.numEvents<=0)&&(p=!1),de=9e3+E%1e3}if(p){de=100;var x=H.retryCnt;H[Yt]===0&&(x<n?(ne=!0,ot(function(){H[Yt]===0&&f--,ae(H[ut],x+1,H[Cd],B?2:H[Yt],5)},B,Fd(x))):(l=!0,B&&(de=8001)))}}finally{ne||(u[Kc](),Xe(H,de,ee,l)),Hr(Ie,8004,H[Yt])}}function Xe(E,L,H,ee){try{ee&&v[Ld]();var de=E[ut];L===200&&(de=E.sentEvts||E[ut],!ee&&!E[Rd]&&v._clearBackOff(),ar(de)),Hr(de,L,E[Yt],!0)}finally{E[Yt]===0&&(f--,H!==5&&K.sendQueuedRequests(E[Yt],H))}}function ar(E){if(w){var L=Lt();R(E,function(H){H&&H[vr]()>0&&Ae(H[Qn](),L)})}}function ot(E,L,H){L?E():D.set(E,H)}function at(E){for(var L=0;L<E.batches[xe];L++){var H=E[ut][L].Msfpc();if(H)return encodeURIComponent(H)}return yn}function $t(E){var L=M;try{for(var H=0;H<L[xe];H++)try{L[H](E)}catch(de){k(d,1,519,"Response handler failed: "+de)}if(E){var ee=JSON.parse(E);jr(ee.webResult)&&jr(ee.webResult[Xs])&&Y.set("MSFPC",ee.webResult[Xs],365*86400)}}catch{}}function Hr(E,L,H,ee){if(E&&E[xe]>0&&i){var de=i[li(L)];if(de){var Ie=H!==0;dr(_,function(){return"HttpManager:_sendBatchesNotification"},function(){ot(function(){try{de.call(i,E,L,Ie,H)}catch(ne){k(d,1,74,"send request notification failed: "+ne)}},ee||Ie,0)},function(){return{batches:q(E),reason:L,isSync:Ie,sendSync:ee,sendType:H}},!Ie)}}}function li(E){var L=$b[E];return jr(L)||(L=cN,E>=9e3&&E<=9999?L=uN:E>=8e3&&E<=8999?L=cd:E>=1e3&&E<=1999&&(L=sN)),L}})}return r.__ieDyn=1,r})()});function t0(r){return r&&r.sendPOST}var Jb,BN,Qb,VN,KN,Zb,jN,e0,Zm,Ma,zN,yr,r0,WN,$N=O(()=>{It();Gr();Ca();_a();me();Pm();Ud();GN();zc();$m();qm();tu();Jb=.25,BN=500,Qb=20,VN=6,KN=2,Zb=4,jN=2,e0=1,Zm=1e4,Ma="eventsDiscarded",zN="",yr=void 0,r0=On({eventsLimitInMem:{isVal:So,v:Zm},immediateEventLimit:{isVal:So,v:500},autoFlushEventsLimit:{isVal:So,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:t0,v:yr},overrideInstrumentationKey:yr,overrideEndpointUrl:yr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:yr,clearTimeoutOverride:yr,payloadPreprocessor:yr,payloadListener:yr,disableEventTimings:yr,valueSanitizer:yr,stringifyObjects:yr,enableCompoundKey:yr,disableOptimizeObj:!1,fetchCredentials:yr,transports:yr,unloadTransports:yr,useSendBeacon:yr,disableFetchKeepAlive:yr,avoidOptions:!1,xhrTimeout:yr,disableXhrSync:yr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:Jr,v:VN},maxUnloadEventRetryAttempts:{isVal:Jr,v:KN},addNoResponse:yr,excludeCsMetaData:yr});WN=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="4.3.4";var n,i=!1,o=[],a,s=!1,u=0,c,f=0,v,d={},m=Ra,_,N,h,b,T,I,w,Y,B,$,ie,V,G,J,ce,_e,g,y,M,z,D,Q;return be(e,t,function(j,pe){Ye(),j._getDbgPlgTargets=function(){return[T,n]},j[La]=function(l,p,S){dr(p,function(){return"PostChannel:initialize"},function(){pe[La](l,p,S),M=p.getNotifyMgr();try{ce=Kt(rt(j[Qc]),p.evtNamespace&&p.evtNamespace()),j._addHook(Dr(l,function(x){var C=x.cfg,U=ht(null,C,p);n=U.getExtCfg(j[Qc],r0),_e=nu(n[Nd],n[Td]),ie=!n[TN]&&od(),g=n[DN],A(p),v=n[Km],c=n.immediateEventLimit,w=n[Wm],G=n.maxEventRetryAttempts,J=n.maxUnloadEventRetryAttempts,y=n[yN],_t(C.endpointUrl)?j.pause():s&&j[Zs](),ne(),D=n[IN],Q=!!n[xN],z&&K();var W=C.disablePageUnloadEvents||[];z=Yc(Mr,W,ce),z=zs(Mr,W,ce)||z,z=Vs(rr,C.disablePageShowEvents,ce)||z})),T[La](l,j.core,j)}catch(x){throw j.setInitialized(!1),x}},function(){return{theConfig:l,core:p,extensions:S}})},j.processTelemetry=function(l,p){Gc(l,j[Qc]),p=p||j._getTelCtx(p);var S=l;!Q&&!i&&(D&&(S[Wt]=D),Wr(S,!0),V?P(2,2):Be()),j.processNext(S,p)},j.getOfflineSupport=function(){try{var l=T&&T[Id]();if(T)return{getUrl:function(){return l?l.url:null},serialize:Ve,batch:Ce,shouldProcess:function(p){return!Q},createPayload:function(p){return null},createOneDSPayload:function(p){if(T[Wc])return T[Wc](p,ie)}}}catch{}return null},j._doTeardown=function(l,p){P(2,2),i=!0,T.teardown(),K(),Ye()};function K(){Uc(null,ce),Fc(null,ce),Mc(null,ce)}function A(l){var p=l[eu];l[eu]=function(){var S=0;return g&&(S=S|2),S|p.call(l)}}function Ce(l){var p=zN;return l&&l[xe]&&R(l,function(S){p&&(p+=`
`),p+=S}),p}function Ve(l){var p=zN;try{Ft(l),p=T[yd](l)}catch{}return p}function Mr(l){var p=l||Nr().event;p.type!=="beforeunload"&&(V=!0,T[Xc](V)),P(2,2)}function rr(l){V=!1,T[Xc](V)}function Ft(l){l.ext&&l.ext[Ym]&&delete l.ext[Ym],l.ext&&l.ext[pd]&&l.ext[pd].id&&delete l.ext[pd].id,ie&&(l.ext=wt(l.ext),l[Yd]&&(l[Yd]=wt(l[Yd])),l[ru]&&(l[ru]=wt(l[ru])))}function Wr(l,p){if(l[Zc]||(l[Zc]=0),l[No]||(l[No]=1),Ft(l),l[Ya]){if(h||s)l[No]=3,l[Ya]=!1;else if(T){ie&&(l=wt(l)),T[Ad](To.create(l[Wt],[l]),l[Ya]===!0?1:l[Ya],3);return}}var S=l[No],x=f,C=v;S===4&&(x=u,C=c);var U=!1;if(x<C)U=!se(l,p);else{var W=1,ve=Qb;S===4&&(W=4,ve=1),U=!0,Re(l[Wt],l[No],W,ve)&&(U=!se(l,p))}U&&li(Ma,[l],pn.QueueFull)}j.setEventQueueLimits=function(l,p){n[Km]=v=So(l)?l:Zm,n[Wm]=w=So(p)?p:0,ne();var S=f>l;if(!S&&Y>0)for(var x=1;!S&&x<=3;x++){var C=I[x];C&&C[ut]&&R(C[ut],function(U){U&&U[vr]()>=Y&&(S=!0)})}Z(!0,S)},j.pause=function(){Ke(),s=!0,T&&T.pause()},j[Zs]=function(){s=!1,T&&T[Zs](),Be()},j._loadTransmitProfiles=function(l){ot(),oe(l,function(p,S){var x=S[xe];if(x>=2){var C=x>2?S[2]:0;if(S[wa](0,x-2),S[1]<0&&(S[0]=-1),S[1]>0&&S[0]>0){var U=S[0]/S[1];S[0]=Math.ceil(U)*S[1]}C>=0&&S[1]>=0&&C>S[1]&&(C=S[1]),S[Lr](C),d[p]=S}})},j.flush=function(l,p,S){l===void 0&&(l=!0);var x;if(!s)if(S=S||1,l)p||(x=Zt(function(U){p=U})),a==null?(Ke(),Fe(1,0,S),a=qe(function(){a=null,Xe(p,S)},0)):o[Lr](p);else{var C=Ke();Ar(1,1,S),p&&p(),C&&Be()}return x},j.setMsaAuthTicket=function(l){T[$c](jc,l)},j.setAuthPluginHeader=function(l){T[$c](Om,l)},j.removeAuthPluginHeader=function(){T.removeHeader(Om)},j.hasEvents=vt,j._setTransmitProfile=function(l){m!==l&&d[l]!==void 0&&(Ke(),m=l,Be())},Vt(j,function(){return T},["addResponseHandler"]);function Ar(l,p,S){var x=Fe(l,p,S);return T[Qs](p,S),x}function vt(){return f>0}function Be(){if(B>=0&&Fe(B,0,$)&&T[Qs](0,$),u>0&&!N&&!s){var l=d[m][2];l>=0&&(N=qe(function(){N=null,Ar(4,0,1),Be()},l))}var p=d[m][1];!_&&!a&&p>=0&&!s&&(vt()?_=qe(function(){_=null,Ar(b===0?3:1,0,1),b++,b%=2,Be()},p):b=0)}j[Ld]=function(){h<Zb&&(h++,Ke(),Be())},j._clearBackOff=function(){h&&(h=0,Ke(),Be())};function Ye(){n=null,i=!1,o=[],a=null,s=!1,u=0,c=500,f=0,v=Zm,d={},m=Ra,_=null,N=null,h=0,b=0,I={},w=0,z=!1,Y=0,B=-1,$=null,ie=!0,V=!1,G=VN,J=KN,ce=null,D=null,Q=!1,_e=nu(),T=new kN(BN,jN,e0,{requeue:$t,send:L,sent:H,drop:ee,rspFail:de,oth:Ie}),at(),q(),ne()}function qe(l,p){p===0&&h&&(p=1);var S=1e3;return h&&(S=Fd(h-1)),_e.set(l,p*S)}function Ke(){return _!==null?(_.cancel(),_=null,b=0,!0):!1}function P(l,p){Ke(),a&&(a.cancel(),a=null),s||Ar(1,l,p)}function q(){I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}}}function ae(l,p,S){var x=I[p];x||(p=1,x=I[p]);var C=x.iKeyMap[l];return!C&&S&&(C=To.create(l),x.batches[Lr](C),x.iKeyMap[l]=C),C}function Z(l,p){T[qc]()&&!h&&(w>0&&f>w&&(p=!0),p&&a==null&&j.flush(l,function(){},20))}function se(l,p){ie&&(l=wt(l));var S=l[No],x=ae(l[Wt],S,!0);return x.addEvent(l)?(S!==4?(f++,p&&l[Zc]===0&&Z(!l.sync,Y>0&&x[vr]()>=Y)):u++,!0):!1}function Re(l,p,S,x){for(;S<=p;){var C=ae(l,p,!0);if(C&&C[vr]()>0){var U=C[Zn](0,x),W=U[vr]();if(W>0)return S===4?u-=W:f-=W,E(Ma,[U],pn.QueueFull),!0}S++}return Ae(),!1}function Ae(){for(var l=0,p=0,S=function(C){var U=I[C];U&&U[ut]&&R(U[ut],function(W){C===4?l+=W[vr]():p+=W[vr]()})},x=1;x<=4;x++)S(x);f=p,u=l}function Fe(l,p,S){var x=!1,C=p===0;return!C||T[qc]()?dr(j.core,function(){return"PostChannel._queueBatches"},function(){for(var U=[],W=4;W>=l;){var ve=I[W];ve&&ve.batches&&ve.batches[xe]>0&&(R(ve[ut],function(Pe){T.addBatch(Pe)?x=x||Pe&&Pe[vr]()>0:U=U[Jn](Pe[Qn]()),W===4?u-=Pe[vr]():f-=Pe[vr]()}),ve[ut]=[],ve.iKeyMap={}),W--}U[xe]>0&&li(Ma,U,pn.KillSwitch),x&&B>=l&&(B=-1,$=0)},function(){return{latency:l,sendType:p,sendReason:S}},!C):(B=B>=0?Math.min(B,l):l,$=Math.max($,S)),x}function Xe(l,p){Ar(1,0,p),Ae(),ar(function(){l&&l(),o[xe]>0?a=qe(function(){a=null,Xe(o.shift(),p)},0):(a=null,Be())})}function ar(l){T[bd]()?l():a=qe(function(){a=null,ar(l)},Jb)}function ot(){Ke(),at(),m=Ra,Be()}function at(){d={},d[Ra]=[2,1,0],d[sd]=[6,3,0],d[ud]=[18,9,0]}function $t(l,p){var S=[],x=G;V&&(x=J),R(l,function(C){C&&C[vr]()>0&&R(C[Qn](),function(U){U&&(U[Ya]&&(U[No]=4,U[Ya]=!1),U[Zc]<x?(Gc(U,j[Qc]),Wr(U,!1)):S[Lr](U))})}),S[xe]>0&&li(Ma,S,pn.NonRetryableStatus),V&&P(2,2)}function Hr(l,p){var S=M||{},x=S[l];if(x)try{x.apply(S,p)}catch(C){k(j.diagLog(),1,74,l+" notification failed: "+C)}}function li(l,p){for(var S=[],x=2;x<arguments.length;x++)S[x-2]=arguments[x];p&&p[xe]>0&&Hr(l,[p][Jn](S))}function E(l,p){for(var S=[],x=2;x<arguments.length;x++)S[x-2]=arguments[x];p&&p[xe]>0&&R(p,function(C){C&&C[vr]()>0&&Hr(l,[C.events()][Jn](S))})}function L(l,p,S){l&&l[xe]>0&&Hr("eventsSendRequest",[p>=1e3&&p<=1999?p-1e3:0,S!==!0])}function H(l,p){E("eventsSent",l,p),Be()}function ee(l,p){E(Ma,l,p>=8e3&&p<=8999?p-8e3:pn.Unknown)}function de(l){E(Ma,l,pn.NonRetryableStatus),Be()}function Ie(l,p){E(Ma,l,pn.Unknown),Be()}function ne(){y?Y=0:Y=Math.max(BN*(jN+1),v/6)}}),t}return e.__ieDyn=1,e})(Ri)});var qN={};Ou(qN,{BE_PROFILE:()=>ud,NRT_PROFILE:()=>sd,PostChannel:()=>WN,RT_PROFILE:()=>Ra});var XN=O(()=>{Pm();$N()});var QN=_r(ei=>{"use strict";var n0=ei&&ei.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),i0=ei&&ei.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),JN=ei&&ei.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&n0(e,r,t);return i0(e,r),e};Object.defineProperty(ei,"__esModule",{value:!0});ei.oneDataSystemClientFactory=void 0;var o0=async(r,e,t)=>{let n=await Promise.resolve().then(()=>JN((Ca(),Lu(aN)))),i=await Promise.resolve().then(()=>JN((XN(),Lu(qN)))),o=new n.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:r,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(t){s.extensionConfig={};let f={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=f}let c=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(f=>{f.ext=f.ext??{},f.ext.web=f.ext.web??{},f.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',c&&(f.ext.utc=f.ext.utc??{},f.ext.utc.flags=8462029)}),o},a0=async(r,e,t)=>{let n=await o0(r,e,t);return{logEvent:(a,s)=>{try{n?.track({name:a,baseData:{name:a,properties:s?.properties,measurements:s?.measurements}})}catch(u){throw new Error(`Failed to log event to app insights!
`+u.message)}},flush:async()=>{try{return new Promise((s,u)=>{if(!n){s();return}n.flush(!0,c=>{if(!c){u("Failed to flush app 1DS!");return}})})}catch(a){throw new Error(`Failed to flush 1DS!
`+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};ei.oneDataSystemClientFactory=a0});var ZN,ou,au,ef,Do,xn,Yr,kd,nn=O(()=>{ZN="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ou="sampleRate",au="ProcessLegacy",ef="http.method",Do="https://dc.services.visualstudio.com",xn="/v2/track",Yr="not_specified",kd="iKey"});var Ha,eh=O(()=>{Me();Ha=Z_({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"]})});var Ui,ge,ri,yo,Fi,Mi,Gd,Ir,bn,Io,Bd,jd,zd,rh,Vd,Kd,ka,su,th,rf,Ga,on,tt,ct,Ba,ti,ja,Wd,$d,nh,za,xo,tf,nf,Va,uu,Ka,ih,Ur=O(()=>{Ui="split",ge="length",ri="toLowerCase",yo="ingestionendpoint",Fi="toString",Mi="push",Gd="removeItem",Ir="name",bn="message",Io="count",Bd="preTriggerDate",jd="disabled",zd="interval",rh="daysOfMonth",Vd="date",Kd="getUTCDate",ka="stringify",su="pathname",th="correlationHeaderExcludePatterns",rf="extensionConfig",Ga="exceptions",on="parsedStack",tt="properties",ct="measurements",Ba="sizeInBytes",ti="typeName",ja="severityLevel",Wd="problemGroup",$d="isManual",nh="CreateFromInterface",za="assembly",xo="fileName",tf="hasFullStack",nf="level",Va="method",uu="line",Ka="duration",ih="receivedResponse"});function qd(r,e,t){var n=e[ge],i=oh(r,e);if(i[ge]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Rr(i,0,147)+ah(o);i=a}return i}function oh(r,e){var t;return e&&(e=Ue(pr(e)),e[ge]>150&&(t=Rr(e,0,150),k(r,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),t||e}function Ge(r,e,t){t===void 0&&(t=1024);var n;return e&&(t=t||1024,e=Ue(pr(e)),e[ge]>t&&(n=Rr(e,0,t),k(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),n||e}function bo(r,e){return Qd(r,e,2048,66)}function cu(r,e){var t;return e&&e[ge]>32768&&(t=Rr(e,0,32768),k(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function Xd(r,e){var t;if(e){var n=""+e;n[ge]>32768&&(t=Rr(n,0,32768),k(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function ft(r,e){if(e){var t={};oe(e,function(n,i){if(nr(i)&&Gn())try{i=et()[ka](i)}catch(o){k(r,2,49,"custom property is not valid",{exception:o},!0)}i=Ge(r,i,8192),n=qd(r,n,t),t[n]=i}),e=t}return e}function lt(r,e){if(e){var t={};oe(e,function(n,i){n=qd(r,n,t),t[n]=i}),e=t}return e}function Jd(r,e){return e&&Qd(r,e,128,69)[Fi]()}function Qd(r,e,t,n){var i;return e&&(e=Ue(pr(e)),e[ge]>t&&(i=Rr(e,0,t),k(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function ah(r){var e="00"+r;return Ln(e,e[ge]-3)}var an=O(()=>{Me();me();Ur()});function Wa(r){var e=rT,t=s0,n=t[e];return eT.createElement?t[e]||(n=t[e]=eT.createElement("a")):n={host:sh(r,!0)},n.href=r,e++,e>=t[ge]&&(e=0),rT=e,n}function tT(r){var e,t=Wa(r);return t&&(e=t.href),e}function nT(r){var e,t=Wa(r);return t&&(e=t[su]),e}function iT(r,e){return r?r.toUpperCase()+" "+e:e}function sh(r,e){var t=of(r,e)||"";if(t){var n=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[ge]>3&&Se(n[2])&&n[2][ge]>0)return n[2]+(n[3]||"")}return t}function of(r,e){var t=null;if(r){var n=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[ge]>2&&Se(n[2])&&n[2][ge]>0&&(t=n[2]||"",e&&n[ge]>2)){var i=(n[1]||"")[ri](),o=n[3]||"";(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=""),t+=o}}return t}var eT,rT,s0,uh=O(()=>{Me();Ur();eT=fr()||{},rT=0,s0=[null,null,null,null,null]});function af(r){return Oe(u0,r[ri]())!==-1}function oT(r){ch=r}function aT(){return ch}function sT(r,e,t){if(!e||r&&r.disableCorrelationHeaders)return!1;if(r&&r[th]){for(var n=0;n<r.correlationHeaderExcludePatterns[ge];n++)if(r[th][n].test(e))return!1}var i=Wa(e).host[ri]();if(i&&(Dt(i,":443")!==-1||Dt(i,":80")!==-1)&&(i=(of(e,!0)||"")[ri]()),(!r||!r.enableCorsCorrelation)&&i&&i!==t)return!1;var o=r&&r.correlationHeaderDomains;if(o){var a;if(R(o,function(c){var f=new RegExp(c.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));a=a||f.test(i)}),!a)return!1}var s=r&&r.correlationHeaderExcludedDomains;if(!s||s[ge]===0)return!0;for(var n=0;n<s[ge];n++){var u=new RegExp(s[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(u.test(i))return!1}return i&&i[ge]>0}function uT(r){if(r){var e=fh(r,Ha[1]);if(e&&e!==ch)return e}}function fh(r,e){if(r)for(var t=r[Ui](","),n=0;n<t[ge];++n){var i=t[n][Ui]("=");if(i[ge]===2&&i[0]===e)return i[1]}}function cT(r,e,t,n){var i,o=n,a=n;if(e&&e[ge]>0){var s=Wa(e);if(i=s.host,!o)if(s[su]!=null){var u=s.pathname[ge]===0?"/":s[su];u.charAt(0)!=="/"&&(u="/"+u),a=s[su],o=Ge(r,t?t+" "+u:u)}else o=Ge(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}function fT(){var r=qi();if(r&&r.now&&r.timing){var e=r.now()+r.timing.navigationStart;if(e>0)return e}return ir()}function lT(r,e){var t=null;return r!==0&&e!==0&&!F(r)&&!F(e)&&(t=e-r),t}function dT(r,e){var t=r||{};return{getName:function(){return t[Ir]},setName:function(n){e&&e.setName(n),t[Ir]=n},getTraceId:function(){return t.traceID},setTraceId:function(n){e&&e.setTraceId(n),zn(n)&&(t.traceID=n)},getSpanId:function(){return t.parentID},setSpanId:function(n){e&&e.setSpanId(n),Vn(n)&&(t.parentID=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}var u0,ch,lh=O(()=>{Me();me();nn();eh();an();uh();Ur();u0=[Do+xn,"https://breeze.aimon.applicationinsights.io"+xn,"https://dc-int.services.visualstudio.com"+xn],ch="cid-v1:"});var fu,vT,_T,dh=O(()=>{Me();fu=lr({LocalStorage:0,SessionStorage:1}),vT=lr({AI:0,AI_AND_W3C:1,W3C:2}),_T=lr({Normal:1,Critical:2})});function vh(){return lu()?Zd(fu.LocalStorage):null}function Zd(r){try{if(F(pt()))return null;var e=new Date()[Fi](),t=le(r===fu.LocalStorage?"localStorage":"sessionStorage"),n=pT+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[Gd](n),!i)return t}catch{}return null}function _h(){return $a()?Zd(fu.SessionStorage):null}function mT(){Ao=!1,Po=!1}function ev(r){pT=r||""}function hT(){Ao=lu(!0),Po=$a(!0)}function lu(r){return(r||Ao===void 0)&&(Ao=!!Zd(fu.LocalStorage)),Ao}function rv(r,e){var t=vh();if(t!==null)try{return t.getItem(e)}catch(n){Ao=!1,k(r,2,1,"Browser failed read of local storage. "+We(n),{exception:te(n)})}return null}function tv(r,e,t){var n=vh();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Ao=!1,k(r,2,3,"Browser failed write to local storage. "+We(i),{exception:te(i)})}return!1}function gT(r,e){var t=vh();if(t!==null)try{return t[Gd](e),!0}catch(n){Ao=!1,k(r,2,5,"Browser failed removal of local storage item. "+We(n),{exception:te(n)})}return!1}function $a(r){return(r||Po===void 0)&&(Po=!!Zd(fu.SessionStorage)),Po}function ET(){var r=[];return $a()&&oe(le("sessionStorage"),function(e){r[Mi](e)}),r}function nv(r,e){var t=_h();if(t!==null)try{return t.getItem(e)}catch(n){Po=!1,k(r,2,2,"Browser failed read of session storage. "+We(n),{exception:te(n)})}return null}function iv(r,e,t){var n=_h();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Po=!1,k(r,2,4,"Browser failed write to session storage. "+We(i),{exception:te(i)})}return!1}function ov(r,e){var t=_h();if(t!==null)try{return t[Gd](e),!0}catch(n){Po=!1,k(r,2,6,"Browser failed removal of session storage item. "+We(n),{exception:te(n)})}return!1}var Ao,Po,pT,ph=O(()=>{Me();dh();Ur();Ao=void 0,Po=void 0,pT=""});var c0,ST,NT=O(()=>{Me();me();ph();Ur();c0="appInsightsThrottle",ST=(function(){function r(e,t){var n=this,i,o,a,s,u,c,f,v=!1,d=!1;_(),n._getDbgPlgTargets=function(){return[f]},n.getConfig=function(){return a},n.canThrottle=function(g){var y=J(g),M=N(g);return T(M,i,y)},n.isTriggered=function(g){return ce(g)},n.isReady=function(){return v},n.flush=function(g){try{var y=_e(g);if(y&&y[ge]>0){var M=y.slice(0);return f[g]=[],R(M,function(z){m(z.msgID,z[bn],z.severity,!1)}),!0}}catch{}return!1},n.flushAll=function(){try{if(f){var g=!0;return oe(f,function(y){var M=n.flush(parseInt(y));g=g&&M}),g}}catch{}return!1},n.onReadyState=function(g,y){return y===void 0&&(y=!0),v=F(g)?!0:g,v&&y?n.flushAll():null},n.sendMessage=function(g,y,M){return m(g,y,M,!0)};function m(g,y,M,z){if(v){var D=G(g);if(!D)return;var Q=N(g),j=J(g),pe=T(Q,i,j),K=!1,A=0,Ce=ce(g);try{pe&&!Ce?(A=Math.min(Q.limit.maxSendNumber,j[Io]+1),j[Io]=0,K=!0,u[g]=!0,j[Bd]=new Date):(u[g]=pe,j[Io]+=1);var Ve=I(g);$(o,Ve,j);for(var Mr=0;Mr<A;Mr++)V(g,o,y,M)}catch{}return{isThrottled:K,throttleNum:A}}else if(z){var rr=_e(g);rr[Mi]({msgID:g,message:y,severity:M})}return null}function _(){o=Tn(e),u={},s={},f={},a={},h(109),c=en(t)?t:"",e.addUnloadHook(Dr(e.config,function(g){var y=g.cfg;i=lu();var M=y.throttleMgrCfg||{};oe(M,function(z,D){h(parseInt(z),D)})}))}function N(g){return a[g]||a[109]}function h(g,y){var M,z;try{var D=y||{},Q={};Q[jd]=!!D[jd];var j=D[zd]||{};d=j?.daysOfMonth&&j?.daysOfMonth[ge]>0,Q[zd]=b(j);var pe={samplingRate:((M=D.limit)===null||M===void 0?void 0:M.samplingRate)||100,maxSendNumber:((z=D.limit)===null||z===void 0?void 0:z.maxSendNumber)||1};Q.limit=pe,a[g]=Q}catch{}}function b(g){g=g||{};var y=g?.monthInterval,M=g?.dayInterval;return F(y)&&F(M)&&(g.monthInterval=3,d||(g[rh]=[28],d=!0)),g={monthInterval:g?.monthInterval,dayInterval:g?.dayInterval,daysOfMonth:g?.daysOfMonth},g}function T(g,y,M){if(g&&!g[jd]&&y&&en(M)){var z=B(),D=M[Vd],Q=g[zd],j=1;if(Q?.monthInterval){var pe=(z.getUTCFullYear()-D.getUTCFullYear())*12+z.getUTCMonth()-D.getUTCMonth();j=ie(Q.monthInterval,0,pe)}var K=1;if(d)K=Oe(Q[rh],z[Kd]());else if(Q?.dayInterval){var A=Math.floor((z.getTime()-D.getTime())/864e5);K=ie(Q.dayInterval,0,A)}return j>=0&&K>=0}return!1}function I(g,y){var M=en(y)?y:"";return g?c0+M+"-"+g:null}function w(g){try{if(g){var y=new Date;return g.getUTCFullYear()===y.getUTCFullYear()&&g.getUTCMonth()===y.getUTCMonth()&&g[Kd]()===y[Kd]()}}catch{}return!1}function Y(g,y,M){try{var z={date:B(),count:0};if(g){var D=JSON.parse(g),Q={date:B(D[Vd])||z[Vd],count:D[Io]||z[Io],preTriggerDate:D.preTriggerDate?B(D[Bd]):void 0};return Q}else return $(y,M,z),z}catch{}return null}function B(g){try{if(g){var y=new Date(g);if(!isNaN(y.getDate()))return y}else return new Date}catch{}return null}function $(g,y,M){try{return tv(g,y,Ue(JSON[ka](M)))}catch{}return!1}function ie(g,y,M){return g<=0?1:M>=y&&(M-y)%g==0?Math.floor((M-y)/g)+1:-1}function V(g,y,M,z){k(y,z||1,g,M)}function G(g){try{var y=N(g);return dc(1e6)<=y.limit.samplingRate}catch{}return!1}function J(g){try{var y=s[g];if(!y){var M=I(g,c);y=Y(rv(o,M),o,M),s[g]=y}return s[g]}catch{}return null}function ce(g){var y=u[g];if(F(y)){y=!1;var M=J(g);M&&(y=w(M[Bd])),u[g]=y}return u[g]}function _e(g){return f=f||{},F(f[g])&&(f[g]=[]),f[g]}}return r})()});function qa(r){if(!r)return{};var e=r[Ui](f0),t=Vu(e,function(i,o){var a=o[Ui](l0);if(a[ge]===2){var s=a[0][ri](),u=a[1];i[s]=u}return i},{});if(Qr(t)[ge]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[yo]=t[yo]||"https://"+n+"dc."+t.endpointsuffix}t[yo]=t[yo]||Do,ia(t[yo],"/")&&(t[yo]=t[yo].slice(0,-1))}return t}var f0,l0,TT,DT=O(()=>{Me();nn();Ur();f0=";",l0="=";TT={parse:qa}});var av,yT=O(()=>{Me();nn();Ur();an();av=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[Ir]=Ge(e,n)||Yr,o.data=t,o.time=zt(new Date),o.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return r})()});var ni,IT=O(()=>{nn();Ur();an();ni=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[Ir]=Ge(e,t)||Yr,o[tt]=ft(e,n),o[ct]=lt(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})()});function Eh(r,e){var t=r;return t&&!Se(t)&&(JSON&&JSON[ka]?(t=JSON[ka](r),e&&(!t||t==="{}")&&(ue(r[Fi])?t=r[Fi]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function CT(r,e){var t=r;return r&&(t&&!Se(t)&&(t=r[gh]||r[PT]||t),t&&!Se(t)&&(t=Eh(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&Dt(t||"",e)===-1&&(t=e+": "+t),t||""}function v0(r){try{if(nr(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function _0(r){try{if(nr(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function bT(r){return r&&r.src&&Se(r.src)&&r.obj&&re(r.obj)}function Xa(r){var e=r||"";Se(e)||(Se(e[Ut])?e=e[Ut]:e=""+e);var t=e[Ui](`
`);return{src:e,obj:t}}function p0(r){for(var e=[],t=r[Ui](`
`),n=0;n<t[ge];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[Mi](i)}return{src:r,obj:e}}function RT(r){var e=null;if(r)try{if(r[Ut])e=Xa(r[Ut]);else if(r[du]&&r[du][Ut])e=Xa(r[du][Ut]);else if(r.exception&&r.exception[Ut])e=Xa(r.exception[Ut]);else if(bT(r))e=r;else if(bT(r[hh]))e=r[hh];else if(Nr()&&Nr().opera&&r[gh])e=p0(r[bn]);else if(r.reason&&r.reason[Ut])e=Xa(r.reason[Ut]);else if(Se(r))e=Xa(r);else{var t=r[gh]||r[PT]||"";Se(r[xT])&&(t&&(t+=`
`),t+=" from "+r[xT]),t&&(e=Xa(t))}}catch(n){e=Xa(n)}return e||{src:"",obj:null}}function m0(r){var e="";return r&&(r.obj?R(r.obj,function(t){e+=t+`
`}):e=r.src||""),e}function h0(r){var e,t=r.obj;if(t&&t[ge]>0){e=[];var n=0,i=0;R(t,function(_){var N=_[Fi]();if(Sh.regex.test(N)){var h=new Sh(N,n++);i+=h[Ba],e[Mi](h)}});var o=32*1024;if(i>o)for(var a=0,s=e[ge]-1,u=0,c=a,f=s;a<s;){var v=e[a][Ba],d=e[s][Ba];if(u+=v+d,u>o){var m=f-c+1;e.splice(c,m);break}c=a,f=s,a++,s--}}return e}function sv(r){var e="";if(r&&(e=r.typeName||r[Ir]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[Fi]());e=n&&n[ge]>1?n[1]:""}catch{}return e}function mh(r){if(r)try{if(!Se(r)){var e=sv(r),t=Eh(r,!1);return(!t||t==="{}")&&(r[du]&&(r=r[du],e=sv(r)),t=Eh(r,!0)),Dt(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var d0,du,Ut,hh,xT,gh,PT,Co,AT,Sh,wT=O(()=>{It();Me();me();nn();Ur();an();d0="<no_method>",du="error",Ut="stack",hh="stackDetails",xT="errorSrc",gh="message",PT="description";Co=(function(){function r(e,t,n,i,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,_0(t)?(s[Ga]=t[Ga]||[],s[tt]=t[tt],s[ct]=t[ct],t[ja]&&(s[ja]=t[ja]),t.id&&(s.id=t.id,t[tt].id=t.id),t[Wd]&&(s[Wd]=t[Wd]),F(t[$d])||(s[$d]=t[$d])):(n||(n={}),a&&(n.id=a),s[Ga]=[new AT(e,t,n)],s[tt]=ft(e,n),s[ct]=lt(e,i),o&&(s[ja]=o),a&&(s.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,s,u){var c,f=sv(o||a||e);return c={},c[bn]=CT(e,f),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=mh(o||a||e),c.evt=mh(a||e),c[ti]=f,c.stackDetails=RT(s||o||a),c.errorSrc=u,c},r.CreateFromInterface=function(e,t,n,i){var o=t[Ga]&&pi(t[Ga],function(s){return AT[nh](e,s)}),a=new r(e,Jt(Jt({},t),{exceptions:o}),n,i);return a},r.prototype.toInterface=function(){var e,t=this,n=t.exceptions,i=t.properties,o=t.measurements,a=t.severityLevel,s=t.problemGroup,u=t.id,c=t.isManual,f=n instanceof Array&&pi(n,function(v){return v.toInterface()})||void 0;return e={ver:"4.0"},e[Ga]=f,e.severityLevel=a,e.properties=i,e.measurements=o,e.problemGroup=s,e.id=u,e.isManual=c,e},r.CreateSimpleException=function(e,t,n,i,o,a){var s;return{exceptions:[(s={},s[tf]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=mh,r})(),AT=(function(){function r(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(v0(t))i[ti]=t[ti],i[bn]=t[bn],i[Ut]=t[Ut],i[on]=t[on]||[],i[tf]=t[tf];else{var o=t,a=o&&o.evt;ea(o)||(o=o[du]||a||o),i[ti]=Ge(e,sv(o))||Yr,i[bn]=cu(e,CT(t||o,i[ti]))||Yr;var s=t[hh]||RT(t);i[on]=h0(s),re(i[on])&&pi(i[on],function(u){u[za]=Ge(e,u[za]),u[xo]=Ge(e,u[xo])}),i[Ut]=Xd(e,m0(s)),i.hasFullStack=re(i.parsedStack)&&i.parsedStack[ge]>0,n&&(n[ti]=n[ti]||i[ti])}}return r.prototype.toInterface=function(){var e,t=this,n=t[on]instanceof Array&&pi(t[on],function(o){return o.toInterface()}),i=(e={id:t.id,outerId:t.outerId,typeName:t[ti],message:t[bn],hasFullStack:t[tf],stack:t[Ut]},e[on]=n||void 0,e);return i},r.CreateFromInterface=function(e,t){var n=t[on]instanceof Array&&pi(t[on],function(o){return Sh[nh](o)})||t[on],i=new r(e,Jt(Jt({},t),{parsedStack:n}));return i},r})(),Sh=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n=this;if(n[Ba]=0,typeof e=="string"){var i=e;n[nf]=t,n[Va]=d0,n[za]=Ue(i),n[xo]="",n[uu]=0;var o=i.match(r.regex);o&&o[ge]>=5&&(n[Va]=Ue(o[2])||n[Va],n[xo]=Ue(o[4]),n[uu]=parseInt(o[5])||0)}else n[nf]=e[nf],n[Va]=e[Va],n[za]=e[za],n[xo]=e[xo],n[uu]=e[uu],n[Ba]=0;n.sizeInBytes+=n.method[ge],n.sizeInBytes+=n.fileName[ge],n.sizeInBytes+=n.assembly[ge],n[Ba]+=r.baseSize,n.sizeInBytes+=n.level.toString()[ge],n.sizeInBytes+=n.line.toString()[ge]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){var e=this;return{level:e[nf],method:e[Va],assembly:e[za],fileName:e[xo],line:e[uu]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})()});var OT,LT=O(()=>{OT=(function(){function r(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return r})()});var ii,YT=O(()=>{nn();Ur();LT();an();ii=(function(){function r(e,t,n,i,o,a,s,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var v=new OT;v[Io]=i>0?i:void 0,v.max=isNaN(a)||a===null?void 0:a,v.min=isNaN(o)||o===null?void 0:o,v[Ir]=Ge(e,t)||Yr,v.value=n,v.stdDev=isNaN(s)||s===null?void 0:s,f.metrics=[v],f[tt]=ft(e,u),f[ct]=lt(e,c)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})()});function UT(r,e){return e===void 0&&(e=!1),r==null?e:r.toString()[ri]()==="true"}function vu(r){(isNaN(r)||r<0)&&(r=0),r=Math.round(r);var e=sf+r%1e3,t=sf+Math.floor(r/1e3)%60,n=sf+Math.floor(r/(1e3*60))%60,i=sf+Math.floor(r/(1e3*60*60))%24,o=Math.floor(r/(1e3*60*60*24));return e=e[ge]===1?"00"+e:e[ge]===2?"0"+e:e,t=t[ge]<2?"0"+t:t,n=n[ge]<2?"0"+n:n,i=i[ge]<2?"0"+i:i,(o>0?o+".":sf)+i+":"+n+":"+t+"."+e}function FT(r,e){var t=null;return R(r,function(n){if(n.identifier===e)return t=n,-1}),t}function MT(r,e,t,n,i){return!i&&Se(r)&&(r==="Script error."||r==="Script error")}var sf,uv=O(()=>{Me();Ur();sf=""});var Ro,HT=O(()=>{nn();uv();Ur();an();Ro=(function(){function r(e,t,n,i,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=Jd(e,s),u.url=bo(e,n),u[Ir]=Ge(e,t)||Yr,isNaN(i)||(u[Ka]=vu(i)),u[tt]=ft(e,o),u[ct]=lt(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})()});var wo,kT=O(()=>{uv();lh();Ur();an();wo=(function(){function r(e,t,n,i,o,a,s,u,c,f,v,d){c===void 0&&(c="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 m=this;m.ver=2,m.id=t,m[Ka]=vu(o),m.success=a,m.resultCode=s+"",m.type=Ge(e,c);var _=cT(e,n,u,i);m.data=bo(e,i)||_.data,m.target=Ge(e,_.target),f&&(m.target="".concat(m.target," | ").concat(f)),m[Ir]=Ge(e,_[Ir]),m[tt]=ft(e,v),m[ct]=lt(e,d)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})()});var Oo,GT=O(()=>{nn();Ur();an();Oo=(function(){function r(e,t,n,i,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||Yr,a[bn]=cu(e,t),a[tt]=ft(e,i),a[ct]=lt(e,o),n&&(a[ja]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})()});var Lo,BT=O(()=>{nn();Ur();an();Lo=(function(){function r(e,t,n,i,o,a,s){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 u=this;u.ver=2,u.url=bo(e,n),u[Ir]=Ge(e,t)||Yr,u[tt]=ft(e,o),u[ct]=lt(e,a),s&&(u.domProcessing=s.domProcessing,u[Ka]=s[Ka],u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u[ih]=s[ih],u.sentRequest=s.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})()});var oi,jT=O(()=>{oi=(function(){function r(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return r})()});var cv,zT=O(()=>{Me();cv=lr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})});var VT,KT=O(()=>{Me();Ur();VT=(function(){function r(){}return r.getConfig=function(e,t,n,i){i===void 0&&(i=!1);var o;return n&&e[rf]&&e[rf][n]&&!F(e[rf][n][t])?o=e[rf][n][t]:o=e[t],F(o)?i:o},r})()});function Uo(r){var e="ai."+r+".";return function(t){return e+t}}var uf,Fr,fv,_u,Nh,Yo,Ja,cf,pu,Th=O(()=>{It();Me();uf=Uo("application"),Fr=Uo("device"),fv=Uo("location"),_u=Uo("operation"),Nh=Uo("session"),Yo=Uo("user"),Ja=Uo("cloud"),cf=Uo("internal"),pu=(function(r){yt(e,r);function e(){return r.call(this)||this}return e})(Sp({applicationVersion:uf("ver"),applicationBuild:uf("build"),applicationTypeId:uf("typeId"),applicationId:uf("applicationId"),applicationLayer:uf("layer"),deviceId:Fr("id"),deviceIp:Fr("ip"),deviceLanguage:Fr("language"),deviceLocale:Fr("locale"),deviceModel:Fr("model"),deviceFriendlyName:Fr("friendlyName"),deviceNetwork:Fr("network"),deviceNetworkName:Fr("networkName"),deviceOEMName:Fr("oemName"),deviceOS:Fr("os"),deviceOSVersion:Fr("osVersion"),deviceRoleInstance:Fr("roleInstance"),deviceRoleName:Fr("roleName"),deviceScreenResolution:Fr("screenResolution"),deviceType:Fr("type"),deviceMachineName:Fr("machineName"),deviceVMName:Fr("vmName"),deviceBrowser:Fr("browser"),deviceBrowserVersion:Fr("browserVersion"),locationIp:fv("ip"),locationCountry:fv("country"),locationProvince:fv("province"),locationCity:fv("city"),operationId:_u("id"),operationName:_u("name"),operationParentId:_u("parentId"),operationRootId:_u("rootId"),operationSyntheticSource:_u("syntheticSource"),operationCorrelationVector:_u("correlationVector"),sessionId:Nh("id"),sessionIsFirst:Nh("isFirst"),sessionIsNew:Nh("isNew"),userAccountAcquisitionDate:Yo("accountAcquisitionDate"),userAccountId:Yo("accountId"),userAgent:Yo("userAgent"),userId:Yo("id"),userStoreRegion:Yo("storeRegion"),userAuthUserId:Yo("authUserId"),userAnonymousUserAcquisitionDate:Yo("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Yo("authUserAcquisitionDate"),cloudName:Ja("name"),cloudRole:Ja("role"),cloudRoleVer:Ja("roleVer"),cloudRoleInstance:Ja("roleInstance"),cloudEnvironment:Ja("environment"),cloudLocation:Ja("location"),cloudDeploymentUnit:Ja("deploymentUnit"),internalNodeName:cf("nodeName"),internalSdkVersion:cf("sdkVersion"),internalAgentVersion:cf("agentVersion"),internalSnippet:cf("snippet"),internalSdkSrc:cf("sdkSrc")}))});function Dh(r,e,t,n,i,o){var a;t=Ge(n,t)||Yr,(F(r)||F(e)||F(t))&&cr("Input doesn't contain all required fields");var s="";r[kd]&&(s=r[kd],delete r[kd]);var u=(a={},a[Ir]=t,a.time=zt(new Date),a.iKey=s,a.ext=o||{},a.tags=[],a.data={},a.baseType=e,a.baseData=r,a);return F(i)||oe(i,function(c,f){u.data[c]=f}),u}var WT,$T=O(()=>{Me();nn();an();Ur();WT=(function(){function r(){}return r.create=Dh,r})()});var qT,gr,XT=O(()=>{Th();qT={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},gr=new pu});function JT(r){var e=null;if(ue(Event))e=new Event(r);else{var t=fr();t&&t.createEvent&&(e=t.createEvent("Event"),e.initEvent(r,!0,!0))}return e}var QT=O(()=>{Me()});function ZT(r,e){Oi(r,null,null,e)}function lv(r){var e=fr(),t=wr(),n=!1,i=[],o=1;t&&!F(t.onLine)&&!t.onLine&&(o=2);var a=0,s=d(),u=Kt(rt("OfflineListener"),r);try{if(f(Nr())&&(n=!0),e){var c=e.body||e;c.ononline&&f(c)&&(n=!0)}}catch{n=!1}function f(I){var w=!1;return I&&(w=Wn(I,"online",N,u),w&&Wn(I,"offline",h,u)),w}function v(){return s}function d(){return!(a===2||o===2)}function m(){var I=d();s!==I&&(s=I,R(i,function(w){var Y={isOnline:s,rState:o,uState:a};try{w(Y)}catch{}}))}function _(I){a=I,m()}function N(){o=1,m()}function h(){o=2,m()}function b(){var I=Nr();if(I&&n){if(ZT(I,u),e){var w=e.body||e;Te(w.ononline)||ZT(w,u)}n=!1}}function T(I){return i[Mi](I),{rm:function(){var w=i.indexOf(I);if(w>-1)return i.splice(w,1)}}}return{isOnline:v,isListening:function(){return n},unload:b,addListener:T,setOnlineState:_}}var eD=O(()=>{Me();Ur()});var rD={};Ou(rD,{AnalyticsPluginIdentifier:()=>E0,BreezeChannelIdentifier:()=>yh,ConfigurationManager:()=>VT,ConnectionStringParser:()=>TT,ContextTagKeys:()=>pu,CtxTagKeys:()=>gr,DEFAULT_BREEZE_ENDPOINT:()=>Do,DEFAULT_BREEZE_PATH:()=>xn,Data:()=>oi,DisabledPropertyName:()=>ZN,DistributedTracingModes:()=>vT,Envelope:()=>av,Event:()=>ni,EventPersistence:()=>_T,Exception:()=>Co,Extensions:()=>qT,HttpMethod:()=>ef,Metric:()=>ii,PageView:()=>Ro,PageViewPerformance:()=>Lo,ProcessLegacy:()=>au,PropertiesPluginIdentifier:()=>g0,RemoteDependencyData:()=>wo,RequestHeaders:()=>Ha,SampleRate:()=>ou,SeverityLevel:()=>cv,TelemetryItemCreator:()=>WT,ThrottleMgr:()=>ST,Trace:()=>Oo,correlationIdCanIncludeCorrelationHeader:()=>sT,correlationIdGetCorrelationContext:()=>uT,correlationIdGetCorrelationContextValue:()=>fh,correlationIdGetPrefix:()=>aT,correlationIdSetPrefix:()=>oT,createDistributedTraceContextFromTrace:()=>dT,createDomEvent:()=>JT,createOfflineListener:()=>lv,createTelemetryItem:()=>Dh,createTraceParent:()=>Ic,dataSanitizeException:()=>Xd,dataSanitizeId:()=>Jd,dataSanitizeInput:()=>Qd,dataSanitizeKey:()=>oh,dataSanitizeKeyAndAddUniqueness:()=>qd,dataSanitizeMeasurements:()=>lt,dataSanitizeMessage:()=>cu,dataSanitizeProperties:()=>ft,dataSanitizeString:()=>Ge,dataSanitizeUrl:()=>bo,dateTimeUtilsDuration:()=>lT,dateTimeUtilsNow:()=>fT,dsPadNumber:()=>ah,findAllScripts:()=>am,findW3cTraceParent:()=>Ac,formatTraceParent:()=>bc,getExtensionByName:()=>FT,isBeaconApiSupported:()=>Ot,isCrossOriginError:()=>MT,isInternalApplicationInsightsEndpoint:()=>af,isSampledFlag:()=>xc,isValidSpanId:()=>Vn,isValidTraceId:()=>zn,isValidTraceParent:()=>Gs,msToTimeSpan:()=>vu,parseConnectionString:()=>qa,parseTraceParent:()=>ya,strNotSpecified:()=>Yr,stringToBoolOrDefault:()=>UT,urlGetAbsoluteUrl:()=>tT,urlGetCompleteUrl:()=>iT,urlGetPathName:()=>nT,urlParseFullHost:()=>of,urlParseHost:()=>sh,urlParseUrl:()=>Wa,utlCanUseLocalStorage:()=>lu,utlCanUseSessionStorage:()=>$a,utlDisableStorage:()=>mT,utlEnableStorage:()=>hT,utlGetLocalStorage:()=>rv,utlGetSessionStorage:()=>nv,utlGetSessionStorageKeys:()=>ET,utlRemoveSessionStorage:()=>ov,utlRemoveStorage:()=>gT,utlSetLocalStorage:()=>tv,utlSetSessionStorage:()=>iv,utlSetStoragePrefix:()=>ev});var g0,yh,E0,Hi=O(()=>{lh();NT();DT();eh();nn();yT();IT();wT();YT();HT();kT();GT();BT();jT();zT();KT();Th();an();$T();XT();dh();uv();Me();QT();ph();uh();eD();g0="AppInsightsPropertiesPlugin",yh="AppInsightsChannelPlugin",E0="ApplicationInsightsAnalytics"});var xh=_r(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});dv.TelemetryUtil=void 0;var Ih=class r{static applyReplacements(e,t){for(let n of Object.keys(e))for(let i of t)i.lookup.test(n)&&(i.replacementString!==void 0?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return e.length===74&&e[32]==="-"&&e[41]==="-"&&e[46]==="-"&&e[51]==="-"&&e[56]==="-"&&e[69]==="-"}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.9.8"}}static getInstance(){return r._instance||(r._instance=new r),r._instance}};dv.TelemetryUtil=Ih});var Fo,tD=O(()=>{Fo="duration"});var xr,vv,nt,ai,Qa,ye,Mo,Ho,sn,ko,ki,mu,Gi,Bi,_v,un,hu,ff,Go,lf,gu,Za,df,pv,ji,Bo,Eu,Su,it,mv,Nu,Tu,Du,hv,bh,gv,Ev,Ah,Sv,Ph,zi,Ch,Rh,wh,vf,Oh,Lh,Yh,yu,jo,Nv,_f,Tv,Dv,yv,Iv,Iu,Uh,xv,nD,zo=O(()=>{xr="tags",vv="deviceType",nt="data",ai="name",Qa="traceID",ye="length",Mo="stringify",Ho="measurements",sn="dataType",ko="envelopeType",ki="toString",mu="_get",Gi="enqueue",Bi="count",_v="eventsLimitInMem",un="push",hu="item",ff="emitLineDelimitedJson",Go="clear",lf="createNew",gu="markAsSent",Za="clearSent",df="bufferOverride",pv="BUFFER_KEY",ji="SENT_BUFFER_KEY",Bo="concat",Eu="MAX_BUFFER_SIZE",Su="triggerSend",it="diagLog",mv="initialize",Nu="_sender",Tu="endpointUrl",Du="instrumentationKey",hv="customHeaders",bh="maxBatchSizeInBytes",gv="onunloadDisableBeacon",Ev="isBeaconApiDisabled",Ah="alwaysUseXhrOverride",Sv="disableXhr",Ph="enableSessionStorageBuffer",zi="_buffer",Ch="onunloadDisableFetch",Rh="disableSendBeaconSplit",wh="enableSendPromise",vf="getSenderInst",Oh="unloadTransports",Lh="convertUndefined",Yh="maxBatchInterval",yu="serialize",jo="_onError",Nv="_onPartialSuccess",_f="_onSuccess",Tv="itemsReceived",Dv="itemsAccepted",yv="oriPayload",Iv="baseType",Iu="sampleRate",Uh="eventsSendRequest",xv="getSamplingScore",nD="getHashCodeScore"});function Er(r,e,t){return rn(r,e,t,dn)}function S0(r,e,t){var n=t[xr]=t[xr]||{},i=e.ext=e.ext||{},o=e[xr]=e[xr]||[],a=i.user;a&&(Er(n,gr.userAuthUserId,a.authId),Er(n,gr.userId,a.id||a.localId));var s=i.app;s&&Er(n,gr.sessionId,s.sesId);var u=i.device;u&&(Er(n,gr.deviceId,u.id||u.localId),Er(n,gr[vv],u.deviceClass),Er(n,gr.deviceIp,u.ip),Er(n,gr.deviceModel,u.model),Er(n,gr[vv],u[vv]));var c=e.ext.web;if(c){Er(n,gr.deviceLanguage,c.browserLang),Er(n,gr.deviceBrowserVersion,c.browserVer),Er(n,gr.deviceBrowser,c.browser);var f=t[nt]=t[nt]||{},v=f[Ze]=f[Ze]||{},d=v[zr]=v[zr]||{};Er(d,"domain",c.domain),Er(d,"isManual",c.isManual?iD:null),Er(d,"screenRes",c.screenRes),Er(d,"userConsent",c.userConsent?iD:null)}var m=i.os;m&&(Er(n,gr.deviceOS,m[ai]),Er(n,gr.deviceOSVersion,m.osVer));var _=i.trace;_&&(Er(n,gr.operationParentId,_.parentID),Er(n,gr.operationName,Ge(r,_[ai])),Er(n,gr.operationId,_[Qa]));for(var N={},h=o[ye]-1;h>=0;h--){var b=o[h];oe(b,function(I,w){N[I]=w}),o.splice(h,1)}oe(o,function(I,w){N[I]=w});var T=Jt(Jt({},n),N);T[gr.internalSdkVersion]||(T[gr.internalSdkVersion]=Ge(r,"javascript:".concat(N0.Version),64)),t[xr]=wt(T)}function Vo(r,e,t){F(r)||oe(r,function(n,i){Jr(i)?t[n]=i:Se(i)?e[n]=i:Gn()&&(e[n]=et()[Mo](i))})}function es(r,e){F(r)||oe(r,function(t,n){r[t]=n||e})}function rs(r,e,t,n){var i=new av(r,n,e);Er(i,"sampleRate",t[ou]),(t[Ze]||{}).startTime&&(i.time=zt(t[Ze].startTime)),i.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return i[ai]=i[ai].replace("{0}",o),S0(r,t,i),t[xr]=t[xr]||[],wt(i)}function ts(r,e){F(e[Ze])&&k(r,1,46,"telemetryItem.baseData cannot be null.")}function oD(r,e,t){ts(r,e);var n=e[Ze][Ho]||{},i=e[Ze][zr]||{};Vo(e[nt],i,n),F(t)||es(i,t);var o=e[Ze];if(F(o))return mt(r,"Invalid input for dependency data"),null;var a=o[zr]&&o[zr][ef]?o[zr][ef]:"GET",s=new wo(r,o.id,o.target,o[ai],o[Fo],o.success,o.responseCode,a,o.type,o.correlationContext,i,n),u=new oi(wo[sn],s);return rs(r,wo[ko],e,u)}function Mh(r,e,t){ts(r,e);var n={},i={};e[Fh]!==ni[sn]&&(n.baseTypeSource=e[Fh]),e[Fh]===ni[sn]?(n=e[Ze][zr]||{},i=e[Ze][Ho]||{}):e[Ze]&&Vo(e[Ze],n,i),Vo(e[nt],n,i),F(t)||es(n,t);var o=e[Ze][ai],a=new ni(r,o,n,i),s=new oi(ni[sn],a);return rs(r,ni[ko],e,s)}function aD(r,e,t){ts(r,e);var n=e[Ze][Ho]||{},i=e[Ze][zr]||{};Vo(e[nt],i,n),F(t)||es(i,t);var o=e[Ze],a=Co.CreateFromInterface(r,o,i,n),s=new oi(Co[sn],a);return rs(r,Co[ko],e,s)}function sD(r,e,t){ts(r,e);var n=e[Ze],i=n[zr]||{},o=n[Ho]||{};Vo(e[nt],i,o),F(t)||es(i,t);var a=new ii(r,n[ai],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),s=new oi(ii[sn],a);return rs(r,ii[ko],e,s)}function uD(r,e,t){ts(r,e);var n,i=e[Ze];!F(i)&&!F(i[zr])&&!F(i[zr][Fo])?(n=i[zr][Fo],delete i[zr][Fo]):!F(e[nt])&&!F(e[nt][Fo])&&(n=e[nt][Fo],delete e[nt][Fo]);var o=e[Ze],a;((e.ext||{}).trace||{})[Qa]&&(a=e.ext.trace[Qa]);var s=o.id||a,u=o[ai],c=o.uri,f=o[zr]||{},v=o[Ho]||{};if(F(o.refUri)||(f.refUri=o.refUri),F(o.pageType)||(f.pageType=o.pageType),F(o.isLoggedIn)||(f.isLoggedIn=o.isLoggedIn[ki]()),!F(o[zr])){var d=o[zr];oe(d,function(N,h){f[N]=h})}Vo(e[nt],f,v),F(t)||es(f,t);var m=new Ro(r,u,c,n,f,v,s),_=new oi(Ro[sn],m);return rs(r,Ro[ko],e,_)}function cD(r,e,t){ts(r,e);var n=e[Ze],i=n[ai],o=n.uri||n.url,a=n[zr]||{},s=n[Ho]||{};Vo(e[nt],a,s),F(t)||es(a,t);var u=new Lo(r,i,o,void 0,a,s,n),c=new oi(Lo[sn],u);return rs(r,Lo[ko],e,c)}function fD(r,e,t){ts(r,e);var n=e[Ze].message,i=e[Ze].severityLevel,o=e[Ze][zr]||{},a=e[Ze][Ho]||{};Vo(e[nt],o,a),F(t)||es(o,t);var s=new Oo(r,n,i,o,a),u=new oi(Oo[sn],s);return rs(r,Oo[ko],e,u)}var Fh,Ze,zr,iD,N0,lD=O(()=>{It();Hi();Me();tD();zo();Fh="baseType",Ze="baseData",zr="properties",iD="true";N0={Version:"3.3.4"}});var dD,bv,T0,Hh,vD=O(()=>{It();Gr();Hi();Me();zo();dD=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[mu]=function(){return n},this._set=function(a){return n=a,n},be(r,this,function(a){a[Gi]=function(s){if(a[Bi]()>=t[_v]){i||(k(e,2,105,"Maximum in-memory buffer size reached: "+a[Bi](),!0),i=!0);return}s.cnt=s.cnt||0,!(!F(o)&&s.cnt>o)&&n[un](s)},a[Bi]=function(){return n[ye]},a.size=function(){for(var s=n[ye],u=0;u<n[ye];u++)s+=n[u].item[ye];return t[ff]||(s+=2),s},a[Go]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(s){if(s&&s[ye]>0){var u=[];R(s,function(f){u[un](f[hu])});var c=t[ff]?u.join(`
`):"["+u.join(",")+"]";return c}return null},a[lf]=function(s,u,c){var f=n.slice(0);s=s||e,u=u||{};var v=c?new Hh(s,u):new bv(s,u);return R(f,function(d){v[Gi](d)}),v}})}return r.__ieDyn=1,r})(),bv=(function(r){yt(e,r);function e(t,n){var i=r.call(this,t,n)||this;return be(e,i,function(o,a){o[gu]=function(s){a[Go]()},o[Za]=function(s){}}),i}return e.__ieDyn=1,e})(dD),T0=["AI_buffer","AI_sentBuffer"],Hh=(function(r){yt(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[df]||{getItem:nv,setItem:iv},c=u.getItem,f=u.setItem,v=i.maxRetryCnt;return be(e,o,function(d,m){var _=w(e[pv]),N=w(e[ji]),h=$(),b=N[Bo](h),T=d._set(_[Bo](b));T[ye]>e[Eu]&&(T[ye]=e[Eu]),B(e[ji],[]),B(e[pv],T),d[Gi]=function(V){if(d[Bi]()>=e[Eu]){a||(k(n,2,67,"Maximum buffer size reached: "+d[Bi](),!0),a=!0);return}V.cnt=V.cnt||0,!(!F(v)&&V.cnt>v)&&(m[Gi](V),B(e.BUFFER_KEY,d[mu]()))},d[Go]=function(){m[Go](),B(e.BUFFER_KEY,d[mu]()),B(e[ji],[]),a=!1},d[gu]=function(V){B(e[pv],d._set(I(V,d[mu]())));var G=w(e[ji]);G instanceof Array&&V instanceof Array&&(G=G[Bo](V),G[ye]>e[Eu]&&(k(n,1,67,"Sent buffer reached its maximum size: "+G[ye],!0),G[ye]=e[Eu]),B(e[ji],G))},d[Za]=function(V){var G=w(e[ji]);G=I(V,G),B(e[ji],G)},d[lf]=function(V,G,J){J=!!J;var ce=d[mu]().slice(0),_e=w(e[ji]).slice(0);V=V||n,G=G||{},d[Go]();var g=J?new e(V,G):new bv(V,G);return R(ce,function(y){g[Gi](y)}),J&&g[gu](_e),g};function I(V,G){var J=[],ce=[];return R(V,function(_e){ce[un](_e[hu])}),R(G,function(_e){!ue(_e)&&Oe(ce,_e[hu])===-1&&J[un](_e)}),J}function w(V){var G=V;return G=s?s+"_"+G:G,Y(G)}function Y(V){try{var G=c(n,V);if(G){var J=et().parse(G);if(Se(J)&&(J=et().parse(J)),J&&re(J))return J}}catch(ce){k(n,1,42," storage key: "+V+", "+We(ce),{exception:te(ce)})}return[]}function B(V,G){var J=V;try{J=s?s+"_"+J:J;var ce=JSON[Mo](G);f(n,J,ce)}catch(_e){f(n,J,JSON[Mo]([])),k(n,2,41," storage key: "+J+", "+We(_e)+". Buffer cleared",{exception:te(_e)})}}function $(){var V=[];try{return R(T0,function(G){var J=ie(G);if(V=V[Bo](J),s){var ce=s+"_"+G,_e=ie(ce);V=V[Bo](_e)}}),V}catch(G){k(n,2,41,"Transfer events from previous buffers: "+We(G)+". previous Buffer items can not be removed",{exception:te(G)})}return[]}function ie(V){try{var G=Y(V),J=[];return R(G,function(ce){var _e={item:ce,cnt:0};J[un](_e)}),ov(n,V),J}catch{}return[]}}),o}var t;return t=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e})(dD)});var _D,pD=O(()=>{Gr();Me();zo();_D=(function(){function r(e){be(r,this,function(t){t[yu]=function(a){var s=n(a,"root");try{return et()[Mo](s)}catch(u){k(e,1,48,u&&ue(u[ki])?u[ki]():"Error serializing object",null,!0)}};function n(a,s){var u="__aiCircularRefCheck",c={};if(!a)return k(e,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),c;if(a[u])return k(e,2,50,"Circular reference detected while serializing object",{name:s},!0),c;if(!a.aiDataContract){if(s==="measurements")c=o(a,"number",s);else if(s==="properties")c=o(a,"string",s);else if(s==="tags")c=o(a,"string",s);else if(re(a))c=i(a,s);else{k(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{et()[Mo](a),c=a}catch(f){k(e,1,48,f&&ue(f[ki])?f[ki]():"Error serializing object",null,!0)}}return c}return a[u]=!0,oe(a.aiDataContract,function(f,v){var d=ue(v)?v()&1:v&1,m=ue(v)?v()&4:v&4,_=v&2,N=a[f]!==void 0,h=nr(a[f])&&a[f]!==null;if(d&&!N&&!_)k(e,1,24,"Missing required field specification. The field is required but not present on source",{field:f,name:s});else if(!m){var b=void 0;h?_?b=i(a[f],f):b=n(a[f],f):b=a[f],b!==void 0&&(c[f]=b)}}),delete a[u],c}function i(a,s){var u;if(a)if(!re(a))k(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
`,{name:s},!0);else{u=[];for(var c=0;c<a[ye];c++){var f=a[c],v=n(f,s+"["+c+"]");u[un](v)}}return u}function o(a,s,u){var c;return a&&(c={},oe(a,function(f,v){if(s==="string")v===void 0?c[f]="undefined":v===null?c[f]="null":v[ki]?c[f]=v[ki]():c[f]="invalid field: toString() is not defined.";else if(s==="number")if(v===void 0)c[f]="undefined";else if(v===null)c[f]="null";else{var d=parseFloat(v);c[f]=d}else c[f]="invalid field: "+u+" is of unknown type.",k(e,1,c[f],null,!0)})),c}})}return r.__ieDyn=1,r})()});var D0,mD,hD=O(()=>{zo();D0=8,mD=(function(){function r(){}return r.prototype.getHashCodeScore=function(e){var t=this.getHashCode(e)/r.INT_MAX_VALUE;return t*100},r.prototype.getHashCode=function(e){if(e==="")return 0;for(;e[ye]<D0;)e=e[Bo](e);for(var t=5381,n=0;n<e[ye];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var gD,ED=O(()=>{Hi();zo();hD();gD=(function(){function r(){var e=this,t=new mD,n=new pu;e[xv]=function(i){var o=0;return i[xr]&&i[xr][n.userId]?o=t.getHashCodeScore(i[xr][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[nD](i.ext.user.id):i[xr]&&i[xr][n.operationId]?o=t.getHashCodeScore(i[xr][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Qa]?o=t.getHashCodeScore(i.ext.telemetryTrace[Qa]):o=Math.random()*100,o}}return r})()});var SD,ND=O(()=>{Hi();Me();zo();ED();SD=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Tn(null);(e>100||e<0)&&(n.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:e},!0),e=100),this[Iu]=e,this.samplingScoreGenerator=new gD}return r.prototype.isSampledIn=function(e){var t=this[Iu],n=!1;return t==null||t>=100||e.baseType===ii[sn]?!0:(n=this.samplingScoreGenerator[xv](e)<t,n)},r})()});function DD(r){try{return r.responseText}catch{}return null}function I0(r){return r&&r.sendPOST}function x0(r){return!isNaN(r)&&r>0&&r<=100}var $e,Vi,si,TD,y0,yD,b0,pf,ID=O(()=>{It();Gr();Hi();Me();me();lD();vD();pD();ND();zo();si=void 0,TD="",y0=65e3;yD=On(($e={endpointUrl:Fs(dn,Do+xn)},$e[ff]=tn(),$e[Yh]=15e3,$e[bh]=102400,$e.disableTelemetry=tn(),$e[Ph]=tn(!0),$e.isRetryDisabled=tn(),$e[Ev]=tn(!0),$e[Rh]=tn(!0),$e[Sv]=tn(),$e[Ch]=tn(),$e[gv]=tn(),$e[Du]=si,$e.namePrefix=si,$e.samplingPercentage=Fs(x0,100),$e[hv]=si,$e[Lh]=si,$e[_v]=1e4,$e[df]=!1,$e.httpXHROverride={isVal:I0,v:si},$e[Ah]=tn(),$e.transports=si,$e.retryCodes=si,$e.maxRetryCnt={isVal:Jr,v:10},$e));b0=(Vi={},Vi[ni.dataType]=Mh,Vi[Oo.dataType]=fD,Vi[Ro.dataType]=uD,Vi[Lo.dataType]=cD,Vi[Co.dataType]=aD,Vi[ii.dataType]=sD,Vi[wo.dataType]=oD,Vi),pf=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=yh;var n,i,o,a,s,u,c,f,v=0,d,m,_,N,h,b,T,I,w,Y,B,$,ie,V,G,J,ce,_e,g,y,M,z,D,Q,j,pe,K;return be(e,t,function(A,Ce){ne(),A.pause=function(){L(),a=!0},A.resume=function(){a&&(a=!1,i=null,Ae(),E())},A.flush=function(l,p,S){if(l===void 0&&(l=!0),!a){L();try{return A[Su](l,null,S||1)}catch(x){k(A[it](),1,22,"flush failed, telemetry will not be collected: "+We(x),{exception:te(x)})}}},A.onunloadFlush=function(){if(!a)if(T||y)try{return A[Su](!0,ar,2)}catch(l){k(A[it](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+We(l),{exception:te(l)})}else A.flush(!1)},A.addHeader=function(l,p){f[l]=p},A[mv]=function(l,p,S,x){A.isInitialized()&&k(A[it](),1,28,"Sender is already initialized"),Ce[mv](l,p,S,x);var C=A.identifier;u=new _D(p.logger),n=0,i=null,o=0,A[Nu]=null,c=0;var U=A[it]();_=Kt(rt("Sender"),p.evtNamespace&&p.evtNamespace()),m=lv(_),A._addHook(Dr(l,function(W){var ve=W.cfg;ve.storagePrefix&&ev(ve.storagePrefix);var Pe=ht(null,ve,p),fe=Pe.getExtCfg(C,yD),Et=fe[Tu];if(N&&Et===N){var di=ve[Tu];di&&di!==Et&&(fe[Tu]=di)}_t(fe[Du])&&(fe[Du]=ve[Du]),we(A,"_senderConfig",{g:function(){return fe}}),h!==fe[Tu]&&(N=h=fe[Tu]),p.activeStatus()===Ht.PENDING?A.pause():p.activeStatus()===Ht.ACTIVE&&A.resume(),Y&&Y!==fe[hv]&&R(Y,function($r){delete f[$r.header]}),b=fe[bh],T=(fe[gv]===!1||fe[Ev]===!1)&&Ot(),I=fe[gv]===!1&&Ot(),w=fe[Ev]===!1&&Ot(),y=fe[Ah],M=!!fe[Sv],K=fe.retryCodes;var St=fe[df],Pn=!!fe[Ph]&&(!!St||$a()),xf=fe.namePrefix,Iy=Pn!==J||Pn&&_e!==xf||Pn&&ce!==St;if(A[zi]){if(Iy)try{A._buffer=A._buffer[lf](U,fe,Pn)}catch($r){k(A[it](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+We($r),{exception:te($r)})}Ae()}else A[zi]=Pn?new Hh(U,fe):new bv(U,fe);_e=xf,J=Pn,ce=St,z=!fe[Ch]&&Ii(!0),j=!!fe[Rh],A._sample=new SD(fe.samplingPercentage,U),$=fe[Du],!_t($)&&!Ie($,ve)&&k(U,1,100,"Invalid Instrumentation key "+$),Y=fe[hv],Se(N)&&!af(N)&&Y&&Y[ye]>0?R(Y,function($r){t.addHeader($r.header,$r.value)}):Y=null,g=fe[wh];var yg=Mr();pe?pe.SetConfig(yg):(pe=new ba,pe[mv](yg,U));var bf=fe.httpXHROverride,Af=null,wu=null,xy=Di([3,1,2],fe.transports);Af=pe&&pe[vf](xy,!1);var o_=pe&&pe.getFallbackInst();D=function($r,Xo){return Z(o_,$r,Xo)},Q=function($r,Xo){return Z(o_,$r,Xo,!1)},Af=y?bf:Af||bf||o_,A[Nu]=function($r,Xo){return Z(Af,$r,Xo)},z&&(d=$t);var a_=Di([3,1],fe[Oh]);z||(a_=a_.filter(function($r){return $r!==2})),wu=pe&&pe[vf](a_,!0),wu=y?bf:wu||bf,(y||fe[Oh]||!d)&&wu&&(d=function($r,Xo){return Z(wu,$r,Xo)}),d||(d=D),B=fe.disableTelemetry,ie=fe[Lh]||si,V=fe.isRetryDisabled,G=fe[Yh]}))},A.processTelemetry=function(l,p){var S;p=A._getTelCtx(p);var x=p[it]();try{var C=Be(l,x);if(!C)return;var U=Ye(l,x);if(!U)return;var W=u[yu](U),ve=A[zi];Ae(W);var Pe=(S={},S[hu]=W,S.cnt=0,S);ve[Gi](Pe),E()}catch(fe){k(x,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+We(fe),{exception:te(fe)})}A.processNext(l,p)},A.isCompletelyIdle=function(){return!a&&v===0&&A._buffer[Bi]()===0},A.getOfflineListener=function(){return m},A._xhrReadyStateChange=function(l,p,S){if(!at(p))return rr(l,p,S)},A[Su]=function(l,p,S){l===void 0&&(l=!0);var x;if(!a)try{var C=A[zi];if(B)C[Go]();else{if(C[Bi]()>0){var U=C.getItems();de(S||0,l),p?x=p.call(A,U,l):x=A[Nu](U,l)}o=+new Date}L()}catch(ve){var W=uc();(!W||W>9)&&k(A[it](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+We(ve),{exception:te(ve)})}return x},A.getOfflineSupport=function(){var l;return l={getUrl:function(){return N},createPayload:P},l[yu]=qe,l.batch=Ke,l.shouldProcess=function(p){return!!Be(p)},l},A._doTeardown=function(l,p){A.onunloadFlush(),bi(m,!1),ne()},A[jo]=function(l,p,S){if(!at(l))return Ft(l,p,S)},A[Nv]=function(l,p){if(!at(l))return Wr(l,p)},A[_f]=function(l,p){if(!at(l))return Ar(l,p)},A._xdrOnLoad=function(l,p){if(!at(p))return Ve(l,p)};function Ve(l,p){var S=DD(l);if(l&&(S+""=="200"||S===""))n=0,A[_f](p,0);else{var x=xa(S);x&&x[Tv]&&x[Tv]>x[Dv]&&!V?A[Nv](p,x):A[jo](p,ga(l))}}function Mr(){var l;try{var p={xdrOnComplete:function(x,C,U){var W=vt(U);if(W)return Ve(x,W)},fetchOnComplete:function(x,C,U,W){var ve=vt(W);if(ve)return Fe(x.status,ve,x.url,ve[ye],x.statusText,U||"")},xhrOnComplete:function(x,C,U){var W=vt(U);if(W)return rr(x,W,W[ye])},beaconOnRetry:function(x,C,U){return ot(x,C,U)}},S=(l={},l[wh]=g,l.isOneDs=!1,l.disableCredentials=!1,l[Sv]=M,l.disableBeacon=!w,l.disableBeaconSync=!I,l.senderOnCompleteCallBack=p,l);return S}catch{}return null}function rr(l,p,S){l.readyState===4&&Fe(l.status,p,l.responseURL,S,Ti(l),DD(l)||l.response)}function Ft(l,p,S){k(A[it](),2,26,"Failed to send telemetry.",{message:p}),A._buffer&&A._buffer[Za](l)}function Wr(l,p){for(var S=[],x=[],C=p.errors.reverse(),U=0,W=C;U<W.length;U++){var ve=W[U],Pe=l.splice(ve.index,1)[0];H(ve.statusCode)?x[un](Pe):S[un](Pe)}l[ye]>0&&A[_f](l,p[Dv]),S[ye]>0&&A[jo](S,Ti(null,["partial success",p[Dv],"of",p.itemsReceived].join(" "))),x[ye]>0&&(Hr(x),k(A[it](),2,40,"Partial success. Delivered: "+l[ye]+", Failed: "+S[ye]+". Will retry to send "+x[ye]+" our of "+p[Tv]+" items"))}function Ar(l,p){A._buffer&&A._buffer[Za](l)}function vt(l){try{if(l){var p=l,S=p[yv];return S&&S[ye]?S:null}}catch{}return null}function Be(l,p){if(B)return!1;if(!l)return p&&k(p,1,7,"Cannot send empty telemetry"),!1;if(l.baseData&&!l[Iv])return p&&k(p,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(l[Iv]||(l[Iv]="EventData"),!A[Nu])return p&&k(p,1,28,"Sender was not initialized"),!1;if(q(l))l[ou]=A._sample[Iu];else return p&&k(p,2,33,"Telemetry item was sampled out and not sent",{SampleRate:A._sample[Iu]}),!1;return!0}function Ye(l,p){var S=l.iKey||$,x=e.constructEnvelope(l,S,p,ie);if(!x){k(p,1,47,"Unable to create an AppInsights envelope");return}var C=!1;if(l[xr]&&l[xr][au]&&(R(l[xr][au],function(U){try{U&&U(x)===!1&&(C=!0,mt(p,"Telemetry processor check returns false"))}catch(W){k(p,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+We(W),{exception:te(W)},!0)}}),delete l[xr][au]),!C)return x}function qe(l){var p=TD,S=A[it]();try{var x=Be(l,S),C=null;x&&(C=Ye(l,S)),C&&(p=u[yu](C))}catch{}return p}function Ke(l){var p=TD;return l&&l[ye]&&(p="["+l.join(",")+"]"),p}function P(l){var p,S=Re();return p={urlString:N},p[nt]=l,p.headers=S,p}function q(l){return A._sample.isSampledIn(l)}function ae(l,p,S,x){p===200&&l?A._onSuccess(l,l[ye]):x&&A[jo](l,x)}function Z(l,p,S,x){x===void 0&&(x=!0);var C=function(ve,Pe,fe){return ae(p,ve,Pe,fe)},U=se(p),W=l&&l.sendPOST;return W&&U?(x&&A._buffer[gu](p),W(U,C,!S)):null}function se(l){var p;if(re(l)&&l[ye]>0){var S=A[zi].batchPayloads(l),x=Re(),C=(p={},p[nt]=S,p.urlString=N,p.headers=x,p.disableXhrSync=M,p.disableFetchKeepAlive=!z,p[yv]=l,p);return C}return null}function Re(){try{var l=f||{};return af(N)&&(l[Ha[6]]=Ha[7]),l}catch{}return null}function Ae(l){var p=l?l[ye]:0;return A[zi].size()+p>b?((!m||m.isOnline())&&A[Su](!0,null,10),!0):!1}function Fe(l,p,S,x,C,U){var W=null;if(A._appId||(W=xa(U),W&&W.appId&&(A._appId=W.appId)),(l<200||l>=300)&&l!==0){if((l===301||l===307||l===308)&&!Xe(S)){A[jo](p,C);return}if(m&&!m.isOnline()){if(!V){var ve=10;Hr(p,ve),k(A[it](),2,40,". Offline - Response Code: ".concat(l,". Offline status: ").concat(!m.isOnline(),". Will retry to send ").concat(p.length," items."))}return}!V&&H(l)?(Hr(p),k(A[it](),2,40,". Response code "+l+". Will retry to send "+p[ye]+" items.")):A[jo](p,C)}else Xe(S),l===206?(W||(W=xa(U)),W&&!V?A[Nv](p,W):A[jo](p,C)):(n=0,A[_f](p,x))}function Xe(l){return c>=10?!1:!F(l)&&l!==""&&l!==N?(N=l,++c,!0):!1}function ar(l,p){if(d)d(l,!1);else{var S=pe&&pe[vf]([3],!0);return Z(S,l,p)}}function ot(l,p,S){var x=l,C=x&&x[yv];if(j)Q&&Q(C,!0),k(A[it](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var U=[],W=0;W<C[ye];W++){var ve=C[W],Pe=[ve],fe=se(Pe);S(fe,p)?A._onSuccess(Pe,Pe[ye]):U[un](ve)}U[ye]>0&&(Q&&Q(U,!0),k(A[it](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function at(l){try{if(l&&l[ye])return Se(l[0])}catch{}return null}function $t(l,p){var S=null;if(re(l)){for(var x=l[ye],C=0;C<l[ye];C++)x+=l[C].item[ye];var U=pe.getSyncFetchPayload();U+x<=y0?S=2:Ot()?S=3:(S=1,k(A[it](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var W=pe&&pe[vf]([S],!0);return Z(W,l,p)}return null}function Hr(l,p){if(p===void 0&&(p=1),!(!l||l[ye]===0)){var S=A[zi];S[Za](l),n++;for(var x=0,C=l;x<C.length;x++){var U=C[x];U.cnt=U.cnt||0,U.cnt++,S[Gi](U)}li(p),E()}}function li(l){var p=10,S;if(n<=1)S=p;else{var x=(Math.pow(2,n)-1)/2,C=Math.floor(Math.random()*x*p)+1;C=l*C,S=Math.max(Math.min(C,3600),p)}var U=ir()+S*1e3;i=U}function E(){if(!s&&!a){var l=i?Math.max(0,i-ir()):0,p=Math.max(G,l);s=Mt(function(){s=null,A[Su](!0,null,1)},p)}}function L(){s&&s.cancel(),s=null,i=null}function H(l){return F(K)?l===401||l===408||l===429||l===500||l===502||l===503||l===504:K[ye]&&K.indexOf(l)>-1}function ee(){var l="getNotifyMgr";return A.core[l]?A.core[l]():A.core._notificationManager}function de(l,p){var S=ee();if(S&&S[Uh])try{S[Uh](l,p)}catch(x){k(A[it](),1,74,"send request notification failed: "+We(x),{exception:te(x)})}}function Ie(l,p){var S=p.disableInstrumentationKeyValidation,x=F(S)?!1:S;if(x)return!0;var C="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",U=new RegExp(C);return U.test(l)}function ne(){A[Nu]=null,A[zi]=null,A._appId=null,A._sample=null,f={},m=null,n=0,i=null,o=null,a=!1,s=null,u=null,c=0,v=0,d=null,_=null,N=null,h=null,b=0,T=!1,Y=null,B=!1,$=null,ie=si,V=!1,J=null,_e=si,M=!1,z=!1,j=!1,D=null,Q=null,pe=null,we(A,"_senderConfig",{g:function(){return El({},yD)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!F(n)?a=Jt(Jt({},t),{iKey:n}):a=t;var s=b0[a.baseType]||Mh;return s(i,a,o)},e})(Ri)});var kh=O(()=>{ID()});var ns,mf,Gh,is,Bh,xu,xD=O(()=>{ns="instrumentationKey",mf="connectionString",Gh="instrumentationkey",is="endpointUrl",Bh="ingestionendpoint",xu="userOverrideEndpointUrl"});var bD={};Ou(bD,{AppInsightsCore:()=>wi,ApplicationInsights:()=>C0,Sender:()=>pf,SeverityLevel:()=>cv,arrForEach:()=>R,isNullOrUndefined:()=>F,proxyFunctions:()=>Vt,throwError:()=>cr});function P0(r){return r&&r>0}var bu,jh,A0,C0,AD=O(()=>{Gr();kh();Hi();Me();_a();me();xD();Me();Hi();kh();jh=void 0,A0=(bu={diagnosticLogInterval:Fs(P0,1e4)},bu[mf]=jh,bu[is]=jh,bu[ns]=jh,bu.extensionConfig={},bu);C0=(function(){function r(e){var t=new wi,n;(F(e)||F(e[ns])&&F(e[mf]))&&cr("Invalid input configuration"),be(r,this,function(o){we(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,Vt(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Je(e||{},A0);n=s.cfg,t.addUnloadHook(Dr(s,function(){var u=n[mf];if(_t(u)){var c=tc(function(m,_){Bt(u,function(N){var h=N.value,b=n[ns];if(!N.rejected&&h){n[mf]=h;var T=qa(h);b=T[Gh]||b}m(b)})}),f=tc(function(m,_){Bt(u,function(N){var h=N.value,b=n[is];if(!N.rejected&&h){var T=qa(h),I=T[Bh];b=I?I+xn:b}m(b)})});n[ns]=c,n[is]=n[xu]||f}if(Se(u)){var v=qa(u),d=v[Bh];n[is]=n[xu]?n[xu]:d+xn,n[ns]=v[Gh]||n[ns]}n[is]=n[xu]?n[xu]:n[is]})),t.initialize(n,[new pf])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var PD=_r(ui=>{"use strict";var R0=ui&&ui.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),w0=ui&&ui.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),O0=ui&&ui.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&R0(e,r,t);return w0(e,r),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.appInsightsClientFactory=void 0;var L0=(Hi(),Lu(rD)),Y0=xh(),U0=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>O0((AD(),Lu(bD)))),u={};if(n){let v={alwaysUseXhrOverride:!0,httpXHROverride:n};u[L0.BreezeChannelIdentifier]=v}let c;r.startsWith("InstrumentationKey=")||(c=r);let f=c?{instrumentationKey:c}:{connectionString:r};o=new s.ApplicationInsights({...f,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0,extensionConfig:u})}catch(s){return Promise.reject(s)}return{logEvent:(s,u)=>{let c={...u?.properties,...u?.measurements};i?.length&&Y0.TelemetryUtil.applyReplacements(c,i),o?.track({name:s,data:c,baseType:"EventData",ext:{user:{id:e,authId:e},app:{sesId:t}},baseData:{name:s,properties:u?.properties,measurements:u?.measurements}})},flush:async()=>{o?.flush(!1)},dispose:async()=>new Promise(u=>{o?.unload(!0,()=>{u(),o=void 0},1e3)})}};ui.appInsightsClientFactory=U0});var CD=_r(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.BaseTelemetryReporter=void 0;var zh=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates(()=>{this.updateUserOptIn()})}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){let i={...t};for(let o of Object.keys(i??{})){let a=i[o];typeof o=="string"&&a!==void 0&&(i[o]=new this.vscodeAPI.TelemetryTrustedValue(typeof a=="string"?a:a.value))}this.sendTelemetryEvent(e,i,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map(e=>e.dispose()))}};Av.BaseTelemetryReporter=zh});var RD=_r(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.BaseTelemetrySender=void 0;var Ki;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Ki||(Ki={}));var Vh=class{constructor(e,t){this._instantiationStatus=Ki.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Ki.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Ki.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t});return}let n={stack:e.stack,message:e.message,name:e.name};if(t){let i=t.properties||t;t.properties={...i,...n}}else t={properties:n};this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:e,data:t})=>this.sendEventData(e,t)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:e,data:t})=>this.sendErrorData(e,t)),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===Ki.NOT_INSTANTIATED&&(this._instantiationStatus=Ki.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Ki.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Ki.INSTANTIATED}))}};Pv.BaseTelemetrySender=Vh});var LD=_r(Wi=>{"use strict";var F0=Wi&&Wi.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),M0=Wi&&Wi.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),$h=Wi&&Wi.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&F0(e,r,t);return M0(e,r),e};Object.defineProperty(Wi,"__esModule",{value:!0});var H0=$h(require("https")),Kh=$h(require("os")),Cv=$h(require("vscode")),k0=QN(),G0=PD(),B0=CD(),j0=RD(),wD=xh();function OD(){return{sendPOST:(e,t)=>{let n={method:"POST",headers:{...e.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)}};try{let i=H0.request(e.urlString,n,o=>{o.on("data",function(a){t(o.statusCode??200,o.headers,a.toString())}),o.on("error",function(){t(0,{})})});i.write(e.data,o=>{o&&t(0,{})}),i.end()}catch{t(0,{})}}}}var Wh=class extends B0.BaseTelemetryReporter{constructor(e,t){let n=a=>(0,G0.appInsightsClientFactory)(a,Cv.env.machineId,Cv.env.sessionId,OD(),t);wD.TelemetryUtil.shouldUseOneDataSystemSDK(e)&&(n=a=>(0,k0.oneDataSystemClientFactory)(a,Cv,OD()));let i={release:Kh.release(),platform:Kh.platform(),architecture:Kh.arch()},o=new j0.BaseTelemetrySender(e,n);if(e&&e.indexOf("AIF-")===0)throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(o,Cv,{additionalCommonProperties:wD.TelemetryUtil.getAdditionalCommonProperties(i)})}};Wi.default=Wh});var ug=_r(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.TargetPopulation=Ko.Filters=Ko.VSCodeFilterProvider=void 0;var Hv=require("vscode"),sg=class r{constructor(e,t,n){this.extensionName=e,this.extensionVersion=t,this.targetPopulation=n}static trimVersionSuffix(e){let t=/\-[a-zA-Z0-9]+$/;return e.split(t)[0]}getFilterValue(e){switch(e){case fi.ApplicationVersion:return r.trimVersionSuffix(Hv.version);case fi.Build:return Hv.env.appName;case fi.ClientId:return Hv.env.machineId;case fi.ExtensionName:return this.extensionName;case fi.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case fi.Language:return Hv.env.language;case fi.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(fi);for(let n of t)e.set(n,this.getFilterValue(n));return e}};Ko.VSCodeFilterProvider=sg;var fi;(function(r){r.Market="X-MSEdge-Market",r.CorpNet="X-FD-Corpnet",r.ApplicationVersion="X-VSCode-AppVersion",r.Build="X-VSCode-Build",r.ClientId="X-MSEdge-ClientId",r.ExtensionName="X-VSCode-ExtensionName",r.ExtensionVersion="X-VSCode-ExtensionVersion",r.Language="X-VSCode-Language",r.TargetPopulation="X-VSCode-TargetPopulation"})(fi||(Ko.Filters=fi={}));var ry;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(ry||(Ko.TargetPopulation=ry={}))});var ty=_r(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});kv.BaseFeatureProvider=void 0;var cg=class{constructor(e){this.telemetry=e,this.isFetching=!1}async getFeatures(){if(this.isFetching&&this.fetchPromise)return this.fetchPromise;this.fetchPromise=this.fetch();let e=await this.fetchPromise;return this.isFetching=!1,this.fetchPromise=void 0,e}};kv.BaseFeatureProvider=cg});var ny=_r(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});Gv.FilteredFeatureProvider=void 0;var aA=ty(),fg=class extends aA.BaseFeatureProvider{constructor(e,t){super(e),this.telemetry=e,this.filterProviders=t,this.cachedTelemetryEvents=[]}getFilters(){let e=new Map;for(let t of this.filterProviders){let n=t.getFilters();for(let i of n.keys()){let o=n.get(i);e.set(i,o)}}return e}PostEventToTelemetry(e){if(this.cachedTelemetryEvents.includes(e))return;let t=JSON.stringify(e);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",t]])),this.cachedTelemetryEvents.push(e)}};Gv.FilteredFeatureProvider=fg});var iy=_r(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TasApiFeatureProvider=Wo.TASAPI_FETCHERROR_EVENTNAME=void 0;var sA=ny();Wo.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var lg="ErrorType",dg=class extends sA.FilteredFeatureProvider{constructor(e,t,n){super(t,n),this.httpClient=e,this.telemetry=t,this.filterProviders=n}async fetch(){let e=this.getFilters(),t={};for(let s of e.keys()){let u=e.get(s);t[s]=u}let n;try{n=await this.httpClient.get({headers:t})}catch(s){let u=s,c=new Map;u.responseReceived&&!u.responseOk?c.set(lg,"ServerError"):u.responseReceived===!1?c.set(lg,"NoResponse"):c.set(lg,"GenericError"),this.telemetry.postEvent(Wo.TASAPI_FETCHERROR_EVENTNAME,c)}if(!n)throw Error(Wo.TASAPI_FETCHERROR_EVENTNAME);e.keys.length>0&&this.PostEventToTelemetry(t);let i=n.data,o=i.Configs,a=[];for(let s of o)if(s.Parameters)for(let u of Object.keys(s.Parameters)){let c=u+(s.Parameters[u]?"":"cf");a.includes(c)||a.push(c)}return{features:a,assignmentContext:i.AssignmentContext,configs:o}}};Wo.TasApiFeatureProvider=dg});var oy=_r(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.HttpClient=Pu.FetchError=void 0;var Au=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};Pu.FetchError=Au;var vg=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new Au("No response received",!1);if(!t.ok)throw new Au("Response not ok",!0,!1);let n=await t.json();if(!n)throw new Au("No data received",!1);return{data:n}}};Pu.HttpClient=vg});var ay=_r(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.MemoryKeyValueStorage=void 0;var _g=class{constructor(){this.storage=new Map}async getValue(e,t){return this.storage.has(e)?await Promise.resolve(this.storage.get(e)):await Promise.resolve(t||void 0)}setValue(e,t){this.storage.set(e,t)}};Bv.MemoryKeyValueStorage=_g});var sy=_r(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.ExperimentationServiceBase=void 0;var uA=ay(),pg=class{get features(){return this._features}set features(e){this._features=e,this.telemetry&&this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext)}constructor(e,t,n,i,o){this.telemetry=e,this.assignmentContextTelemetryPropertyName=t,this.telemetryEventName=n,this.storageKey=i,this.storage=o,this.featuresConsumed=!1,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(o=new uA.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData(),this.initializePromise=this.loadCachePromise,this.initialFetch=new Promise((a,s)=>{this.resolveInitialFetchPromise=a})}async getFeaturesAsync(e=!1){if(this.fetchPromise!=null){try{await this.fetchPromise}catch{}return this.features}if(!this.featureProviders||this.featureProviders.length===0)return Promise.resolve({features:[],assignmentContext:"",configs:[]});try{this.fetchPromise=Promise.all(this.featureProviders.map(async n=>await n.getFeatures()));let t=await this.fetchPromise;this.updateFeatures(t,e)}catch{}return this.fetchPromise=void 0,this.resolveInitialFetchPromise&&(this.resolveInitialFetchPromise(),this.resolveInitialFetchPromise=void 0),this.features}updateFeatures(e,t=!1){let n={features:[],assignmentContext:"",configs:[]};for(let i of e){for(let o of i.features)n.features.includes(o)||n.features.push(o);for(let o of i.configs){let a=n.configs.find(s=>s.Id===o.Id);a?a.Parameters=Object.assign(Object.assign({},a.Parameters),o.Parameters):n.configs.push(o)}n.assignmentContext+=i.assignmentContext}(t||!this.featuresConsumed)&&(this.features=n),this.storage&&this.storage.setValue(this.storageKey,n)}async loadCachedFeatureData(){let e;this.storage&&(e=await this.storage.getValue(this.storageKey),e!==void 0&&e.configs===void 0&&(e.configs=[])),this.features.features.length===0&&(this.features=e||{features:[],assignmentContext:"",configs:[]})}isFlightEnabled(e){return this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isCachedFlightEnabled(e){return await this.loadCachePromise,this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isFlightEnabledAsync(e){let t=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(e),t.features.includes(e)}getTreatmentVariable(e,t){this.featuresConsumed=!0,this.PostEventToTelemetry(`${e}.${t}`);let n=this.features.configs.find(i=>i.Id===e);return n?.Parameters[t]}async getTreatmentVariableAsync(e,t,n){if(n){let i=this.featuresConsumed,o=this.getTreatmentVariable(e,t);if(o===void 0)this.featuresConsumed=i;else return o}return await this.getFeaturesAsync(!0),this.getTreatmentVariable(e,t)}PostEventToTelemetry(e){this.cachedTelemetryEvents.includes(e)||(this.telemetry.postEvent(this.telemetryEventName,new Map([["ABExp.queriedFeature",e]])),this.cachedTelemetryEvents.push(e))}invokeInit(){this.init()}addFeatureProvider(...e){if(!(e==null||this.featureProviders==null))for(let t of e)this.featureProviders.push(t)}};jv.ExperimentationServiceBase=pg});var uy=_r(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});zv.PollingService=void 0;var mg=class{constructor(e){this.fetchInterval=e}StopPolling(){clearInterval(this.intervalHandle),this.intervalHandle=void 0}OnPollTick(e){this.onTick=e}StartPolling(e=!1){this.intervalHandle&&this.StopPolling(),this.onTick!=null&&(e&&this.onTick().then(()=>{}).catch(()=>{}),this.intervalHandle=setInterval(async()=>{await this.onTick()},this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}};zv.PollingService=mg});var cy=_r(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});Vv.ExperimentationServiceAutoPolling=void 0;var cA=sy(),fA=uy(),hg=class extends cA.ExperimentationServiceBase{constructor(e,t,n,i,o,a,s){if(super(e,i,o,a,s),this.telemetry=e,this.filterProviders=t,this.refreshRateMs=n,this.assignmentContextTelemetryPropertyName=i,this.telemetryEventName=o,this.storageKey=a,this.storage=s,n<1e3&&n!==0)throw new Error("The minimum refresh rate for polling is 1000 ms (1 second). If you wish to deactivate this auto-polling use value of 0.");n>0&&(this.pollingService=new fA.PollingService(n),this.pollingService.OnPollTick(async()=>{await super.getFeaturesAsync()}))}init(){this.pollingService?this.pollingService.StartPolling(!0):super.getFeaturesAsync()}async getFeaturesAsync(e=!1){if(this.pollingService){this.pollingService.StopPolling();let t=await super.getFeaturesAsync(e);return this.pollingService.StartPolling(),t}else return await super.getFeaturesAsync(e)}};Vv.ExperimentationServiceAutoPolling=hg});var fy=_r(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.ExperimentationService=void 0;var lA=iy(),dA=oy(),vA=cy(),Kv=class extends vA.ExperimentationServiceAutoPolling{constructor(e){super(e.telemetry,e.filterProviders||[],e.refetchInterval!=null?e.refetchInterval:0,e.assignmentContextTelemetryPropertyName,e.telemetryEventName,e.storageKey,e.keyValueStorage),this.options=e,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new lA.TasApiFeatureProvider(new dA.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};Wv.ExperimentationService=Kv;Kv.REFRESH_RATE_IN_MINUTES=30});var ly=_r($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});$v.ExperimentationService=void 0;var _A=fy();Object.defineProperty($v,"ExperimentationService",{enumerable:!0,get:function(){return _A.ExperimentationService}})});var dy=_r(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.MementoKeyValueStorage=void 0;var gg=class{constructor(e){this.mementoGlobalStorage=e}async getValue(e,t){return await this.mementoGlobalStorage.get(e)||t}setValue(e,t){this.mementoGlobalStorage.update(e,t)}};qv.MementoKeyValueStorage=gg});var vy=_r(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});var Eg=class{constructor(){this.initializePromise=Promise.resolve(),this.initialFetch=Promise.resolve()}isFlightEnabled(e){return!1}isCachedFlightEnabled(e){return Promise.resolve(!1)}isFlightEnabledAsync(e){return Promise.resolve(!1)}getTreatmentVariable(e,t){}getTreatmentVariableAsync(e,t){return Promise.resolve(void 0)}};Sg.default=Eg});var py=_r(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.getExperimentationServiceAsync=Cu.getExperimentationService=void 0;var pA=ug(),mA=ly(),Ng=require("vscode"),hA=dy(),gA=vy(),EA="https://default.exp-tas.com/vscode/ab",SA="query-expfeature",NA="abexp.assignmentcontext",TA="VSCode.ABExp.FeatureData",DA=1e3*60*30;function _y(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=Ng.workspace.getConfiguration("telemetry");if(!(Ng.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):Ng.env.isTelemetryEnabled))return new gA.default;let c=[new pA.VSCodeFilterProvider(r,e,t),...o],f=new hA.MementoKeyValueStorage(i);return new mA.ExperimentationService({filterProviders:c,telemetry:n,storageKey:TA,keyValueStorage:f,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:NA,telemetryEventName:SA,endpoint:EA,refetchInterval:DA})}Cu.getExperimentationService=_y;async function yA(r,e,t,n,i,...o){let a=_y(r,e,t,n,i,...o);return await a.initializePromise,a}Cu.getExperimentationServiceAsync=yA});var hy=_r($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.TargetPopulation=$o.getExperimentationServiceAsync=$o.getExperimentationService=void 0;var my=py();Object.defineProperty($o,"getExperimentationService",{enumerable:!0,get:function(){return my.getExperimentationService}});Object.defineProperty($o,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return my.getExperimentationServiceAsync}});var IA=ug();Object.defineProperty($o,"TargetPopulation",{enumerable:!0,get:function(){return IA.TargetPopulation}})});var FA={};Ou(FA,{activate:()=>UA});module.exports=Lu(FA);var He=Pr(require("vscode"));var br=Pr(require("vscode")),Dy=Pr(LD());var Rv=class{constructor(e,t,n){this.context=e;this.serviceId=t;this.Logger=n}context;serviceId;Logger;async setToken(e){try{return await this.context.secrets.store(this.serviceId,e)}catch(t){this.Logger.error(`Setting token failed: ${t}`)}}async getToken(){try{let e=await this.context.secrets.get(this.serviceId);return e&&e!=="[]"&&this.Logger.trace("Token acquired from secret storage."),e}catch(e){return this.Logger.error(`Getting token failed: ${e}`),Promise.resolve(void 0)}}async deleteToken(){try{return await this.context.secrets.delete(this.serviceId)}catch(e){return this.Logger.error(`Deleting token failed: ${e}`),Promise.resolve(void 0)}}};var Le=Pr(require("vscode"));var z0=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function YD(r){return z0.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function os(r,e){return r==="github"||qh(e)}function qh(r){return/\.ghe\.com$/.test(r.authority)}var Xh=Pr(require("vscode"));var hf="Timed out",ci="User Cancelled",wv="network error",cn="Cancelled";async function Ov(r,e,t,n){let i;try{n.info("Getting user info..."),i=await r.send({url:e,method:"GET",retryFallbacks:!0,headers:{Authorization:`token ${t}`,"User-Agent":`${Xh.env.appName} (${Xh.env.appHost})`}})}catch(a){throw n.error(a.message),new Error(wv)}if(i.ok)try{let a=await i.json();return n.info("Got account info!"),{id:`${a.id}`,accountName:a.login,avatarUrl:a.avatar_url}}catch(a){throw n.error(`Unexpected error parsing response from GitHub: ${a.message??a}`),a}let o=i.statusText;try{let a=await i.json();a.message&&(o=a.message)}catch{}throw n.error(`Getting account info failed: ${o}`),new Error(o)}var V0=Pr(require("http")),K0=Pr(require("https")),HD=require("vscode"),Jh=require("stream"),gf=[];try{gf.push({name:"Electron fetch",fetch:require("electron").net.fetch})}catch{}var FD={name:"Node fetch",fetch},W0=HD.workspace.getConfiguration("github-authentication").get("useElectronFetch",!0);W0?gf.push(FD):gf.unshift(FD);gf.push({name:"Node http/s",fetch:J0});function $0(){let r=gf;return async(e,t)=>{let n=await X0(r,e,t,t.logger);return n.updatedFetchers&&(r=n.updatedFetchers),n.response}}function q0(r){return r===429||r===401||r===403||r===404}async function X0(r,e,t,n){if(t.retryFallbacks&&r.length>1){let i;for(let o of r){let a=await MD(o,e,t,n);if(o===r[0]&&(i=a),!a.ok){if("response"in a&&q0(a.response.status))return{response:a.response};continue}if(o!==r[0]){let s=await MD(r[0],e,t,n);if(s.ok)return{response:s.response};n.info(`FetcherService: using ${o.name} from now on`);let u=r.slice();return u.splice(u.indexOf(o),1),u.unshift(o),{response:a.response,updatedFetchers:u}}return{response:a.response}}if("response"in i)return{response:i.response};throw i.err}return{response:await r[0].fetch(e,t)}}async function MD(r,e,t,n){try{n.debug(`FetcherService: trying fetcher ${r.name} for ${e}`);let i=await r.fetch(e,t);if(!i.ok)return n.info(`FetcherService: ${r.name} failed with status: ${i.status} ${i.statusText}`),{ok:!1,response:i};if(!t.expectJSON)return n.debug(`FetcherService: ${r.name} succeeded (not JSON)`),{ok:i.ok,response:i};let o=await i.text();try{let a=JSON.parse(o);return n.debug(`FetcherService: ${r.name} succeeded (JSON)`),{ok:!0,response:new Ef(i.status,i.statusText,i.headers,async()=>o,async()=>a,async()=>Jh.Readable.from([o]))}}catch(a){return n.info(`FetcherService: ${r.name} failed to parse JSON: ${a.message}`),{ok:!1,err:a,response:new Ef(i.status,i.statusText,i.headers,async()=>o,async()=>{throw a},async()=>Jh.Readable.from([o]))}}}catch(i){return n.info(`FetcherService: ${r.name} failed with error: ${i.message}`),{ok:!1,err:i}}}var An=$0(),Ef=class{constructor(e,t,n,i,o,a){this.status=e;this.statusText=t;this.headers=n;this.text=i;this.json=o;this.body=a;this.ok=this.status>=200&&this.status<300}status;statusText;headers;text;json;body;ok};async function J0(r,e){return new Promise((t,n)=>{let{method:i,headers:o,body:a,signal:s}=e,c=(r.startsWith("https:")?K0:V0).request(r,{method:i,headers:o},f=>{if(s?.aborted){f.destroy(),c.destroy(),n(Zh(s));return}let v=new Qh(c,f,s);t(new Ef(f.statusCode||0,f.statusMessage||"",v.headers,async()=>v.text(),async()=>v.json(),async()=>v.body()))});c.setTimeout(60*1e3),c.on("error",n),a&&c.write(a),c.end()})}var Qh=class{constructor(e,t,n){this.req=e;this.res=t;this.signal=n;this.headers=new class{get(i){let o=t.headers[i];return Array.isArray(o)?o[0]:o??null}[Symbol.iterator](){let i=Object.keys(t.headers),o=0;return{next:()=>{if(o>=i.length)return{done:!0,value:void 0};let a=i[o++];return{done:!1,value:[a,this.get(a)]}}}}}}req;res;signal;headers;text(){return new Promise((e,t)=>{let n=[];this.res.on("data",i=>n.push(i)),this.res.on("end",()=>e(Buffer.concat(n).toString())),this.res.on("error",t),this.signal?.addEventListener("abort",()=>{this.res.destroy(),this.req.destroy(),t(Zh(this.signal))})})}async json(){let e=await this.text();return JSON.parse(e)}async body(){return this.signal?.addEventListener("abort",()=>{this.res.emit("error",Zh(this.signal)),this.res.destroy(),this.req.destroy()}),this.res}};function Zh(r){return r.reason}var Lv=class{constructor(e){this._logger=e}_logger;async send({url:e,method:t,headers:n,body:i,retryFallbacks:o}){let a=await An(e,{logger:this._logger,retryFallbacks:o,expectJSON:!0,method:t,headers:n,body:i});return{ok:a.ok,status:a.status,statusText:a.statusText,json:()=>a.json()}}};var kD=require("crypto"),as=kD.webcrypto;var KD=Pr(require("path")),Ne=require("vscode");var Vr={gitHubClientId:"01ab8ac9400c4e429b23"};var BD=Pr(require("http")),eg=require("url"),jD=Pr(require("fs")),rg=Pr(require("path")),zD=require("crypto"),tg=require("vscode");function GD(r,e){let t=e.endsWith(".svg");jD.readFile(e,(n,i)=>{n?(console.error(n),r.writeHead(404),r.end()):(t&&r.setHeader("Content-Type","image/svg+xml"),r.setHeader("content-length",i.length),r.writeHead(200),r.end(i))})}var Yv=class{_server;_resultPromise;_startingRedirect;nonce=(0,zD.randomBytes)(16).toString("base64");port;set state(e){e?this._startingRedirect.searchParams.set("state",e):this._startingRedirect.searchParams.delete("state")}get state(){return this._startingRedirect.searchParams.get("state")??void 0}constructor(e,t,n,i){if(!e)throw new Error("serveRoot must be defined");if(!t)throw new Error("startingRedirect must be defined");this._startingRedirect=new eg.URL(t);let o;this._resultPromise=new Promise((s,u)=>o={resolve:s,reject:u});let a=`&app_name=${encodeURIComponent(tg.env.appName)}`;this._server=BD.createServer((s,u)=>{let c=new eg.URL(s.url,`http://${s.headers.host}`);switch(c.pathname){case"/signin":{(c.searchParams.get("nonce")??"").replace(/ /g,"+")!==this.nonce&&(u.writeHead(302,{location:`/?error=${encodeURIComponent("Nonce does not match.")}${a}`}),u.end()),u.writeHead(302,{location:this._startingRedirect.toString()}),u.end();break}case"/callback":{let f=c.searchParams.get("code")??void 0,v=c.searchParams.get("state")??void 0,d=(c.searchParams.get("nonce")??"").replace(/ /g,"+");if(!f||!v||!d){u.writeHead(400),u.end();return}if(this.state!==v)throw u.writeHead(302,{location:`/?error=${encodeURIComponent("State does not match.")}${a}`}),u.end(),new Error("State does not match.");if(this.nonce!==d)throw u.writeHead(302,{location:`/?error=${encodeURIComponent("Nonce does not match.")}${a}`}),u.end(),new Error("Nonce does not match.");o.resolve({code:f,state:v}),i?u.writeHead(302,{location:`/?app_name=${encodeURIComponent(tg.env.appName)}`}):u.writeHead(302,{location:`/?redirect_uri=${encodeURIComponent(n)}${a}`}),u.end();break}case"/":GD(u,rg.join(e,"index.html"));break;default:GD(u,rg.join(e,c.pathname.substring(1)));break}})}start(){return new Promise((e,t)=>{if(this._server.listening)throw new Error("Server is already started");let n=setTimeout(()=>{t(new Error("Timeout waiting for port"))},5e3);this._server.on("listening",()=>{let i=this._server.address();if(typeof i=="string")this.port=parseInt(i);else if(i instanceof Object)this.port=i.port;else throw new Error("Unable to determine port");clearTimeout(n),this.state=`http://127.0.0.1:${this.port}/callback?nonce=${encodeURIComponent(this.nonce)}`,e(this.port)}),this._server.on("error",i=>{t(new Error(`Error listening to server: ${i}`))}),this._server.on("close",()=>{t(new Error("Closed"))}),this._server.listen(0,"127.0.0.1")})}stop(){return new Promise((e,t)=>{if(!this._server.listening)throw new Error("Server is not started");this._server.close(n=>{n?t(n):e()})})}waitForOAuthResponse(){return this._resultPromise}};var VD=require("vscode"),Q0=(r,e)=>e(r);function Sf(r,e=Q0){let t,n=new VD.EventEmitter;return{promise:new Promise((i,o)=>{n.event(a=>o("Cancelled")),t=r(a=>{try{Promise.resolve(e(a,i,o)).catch(o)}catch(s){o(s)}})}).then(i=>(t.dispose(),i),i=>{throw t.dispose(),i}),cancel:n}}function ng(r,e,t=(n,i)=>n===i){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,i=r.length;n<i;n++)if(!t(r[n],e[n]))return!1;return!0}function WD(r){let e=new Uint8Array(r);return as.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function $D(r){let t=new TextEncoder().encode(r),n=await as.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function qD(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=Vr.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",Vr.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await An(e.toString(!0),{logger:r,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:s.toString()});if(u.ok){let c=await u.json();return r.info("Token exchange success!"),c.access_token}else{let c=await u.text(),f=new Error(c);throw f.name="GitHubTokenExchangeError",f}}var ig=class{label=Ne.l10n.t("url handler");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!1};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,nonce:a,signInProvider:s,extraAuthorizeParameters:u,uriHandler:c,existingLogin:f,logger:v}){return v.info(`Trying without local server... (${e})`),await Ne.window.withProgress({location:Ne.ProgressLocation.Notification,notificationId:"githubAuthentication.signIn.browser",title:Ne.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(d,m)=>{let _=WD(64),N=await $D(_),h=c.waitForCode(v,e,a,m,t),b=new URLSearchParams([["client_id",Vr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",N],["code_challenge_method","S256"]]);if(f?b.append("login",f):b.append("prompt","select_account"),s&&b.append("provider",s),u)for(let[$,ie]of Object.entries(u))b.append($,ie);let T=Ne.Uri.parse(t.with({path:"/login/oauth/authorize",query:b.toString()}).toString(!0));await Ne.env.openExternal(T);let I=await h,w=await Ne.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),Y=w?.github?Ne.Uri.parse(`${w.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await qD(v,Y,n,I,_,o)})}},og=class{label=Ne.l10n.t("local server");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!1,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,signInProvider:a,extraAuthorizeParameters:s,existingLogin:u,logger:c}){return c.info(`Trying with local server... (${e})`),await Ne.window.withProgress({location:Ne.ProgressLocation.Notification,notificationId:"githubAuthentication.signIn.browser",title:Ne.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(f,v)=>{let d=WD(64),m=await $D(d),_=new URLSearchParams([["client_id",Vr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",m],["code_challenge_method","S256"]]);if(u?_.append("login",u):_.append("prompt","select_account"),a&&_.append("provider",a),s)for(let[w,Y]of Object.entries(s))_.append(w,Y);let N=t.with({path:"/login/oauth/authorize",query:_.toString()}),h=new Yv(KD.join(__dirname,"../media"),N.toString(!0),i.toString(!0),Ne.env.isAppPortable),b=await h.start(),T;try{Ne.env.openExternal(Ne.Uri.parse(`http://127.0.0.1:${b}/signin?nonce=${encodeURIComponent(h.nonce)}`));let{code:w}=await Promise.race([h.waitForOAuthResponse(),new Promise((Y,B)=>setTimeout(()=>B(hf),3e5)),Sf(v.onCancellationRequested,(Y,B,$)=>{$(ci)}).promise]);T=w}finally{setTimeout(()=>{h.stop()},5e3)}return await qD(c,t.with({path:"/login/oauth/access_token"}),n,T,d,o)})}},Nf=class{label=Ne.l10n.t("device code");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!0,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,signInProvider:n,extraAuthorizeParameters:i,logger:o}){o.info(`Trying device code flow... (${e})`);let a=t.with({path:"/login/device/code",query:`client_id=${Vr.gitHubClientId}&scope=${e}`}),s=await An(a.toString(!0),{logger:o,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`Failed to get one-time code: ${await s.text()}`);let u=await s.json(),c=Ne.l10n.t("Copy & Continue to Browser");if(await Ne.window.showInformationMessage(Ne.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Ne.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},c)!==c)throw new Error(ci);await Ne.env.clipboard.writeText(u.user_code);let v=Ne.Uri.parse(u.verification_uri),d=new URLSearchParams(v.query);if(n&&d.set("provider",n),i)for(let[_,N]of Object.entries(i))d.set(_,N);(n||i)&&(v=v.with({query:d.toString()}));let m=await Ne.env.asExternalUri(v);return await Ne.env.openExternal(m),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Ne.window.withProgress({location:Ne.ProgressLocation.Notification,notificationId:"githubAuthentication.signIn.deviceCode",cancellable:!0,title:Ne.l10n.t({message:"Open [{0}]({0}) in a new tab and paste your one-time code: {1}",args:[n.verification_uri,n.user_code],comment:["The [{0}]({0}) will be a url and the {1} will be a code, e.g. 123-456",'{Locked="[{0}]({0})"}']})},async(i,o)=>{let a=t.with({path:"/login/oauth/access_token",query:`client_id=${Vr.gitHubClientId}&device_code=${n.device_code}&grant_type=urn:ietf:params:oauth:grant-type:device_code`}),s=120/n.interval;for(let u=0;u<s;u++){if(await new Promise(v=>setTimeout(v,n.interval*1e3)),o.isCancellationRequested)throw new Error(ci);let c;try{c=await An(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!c.ok)continue;let f=await c.json();if(f.error!=="authorization_pending"){if(f.error)throw new Error(f.error_description);return f.access_token}}throw new Error(hf)})}},ag=class{label=Ne.l10n.t("personal access token");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!0,supportsSupportedClients:!1,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,logger:n,enterpriseUri:i}){n.info(`Trying to retrieve PAT... (${e})`);let o=Ne.l10n.t("Continue to GitHub");if(await Ne.window.showInformationMessage(Ne.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Ne.l10n.t("To finish authenticating, navigate to GitHub to create a PAT then paste the PAT into the input box.")},o)!==o)throw new Error(ci);let s=`${Ne.env.appName} (${e})`,u=await Ne.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Ne.env.openExternal(u);let c=await Ne.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!c)throw new Error(ci);let f=!i||qh(i)?Ne.Uri.parse(`${t.scheme}://api.${t.authority}`):Ne.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),v=await this.getScopes(c,f,n);if(!e.split(" ").every(m=>{let _=v.includes(m);return _||!m.includes(":")?_:m.split(":").some(N=>v.includes(N))}))throw new Error(`The provided token does not match the requested scopes: ${e}`);return c}async getScopes(e,t,n){try{n.info("Getting token scopes...");let i=await An(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Ne.env.appName} (${Ne.env.appHost})`}});if(i.ok){let o=i.headers.get("X-OAuth-Scopes");return o?o.split(",").map(a=>a.trim()):[]}else throw n.error(`Getting scopes failed: ${i.statusText}`),new Error(i.statusText)}catch(i){throw n.error(i.message),new Error(wv)}}},Z0=[new og,new ig,new Nf,new ag];function XD(r){let e=Z0.filter(n=>{let i=!0;switch(r.target){case 0:i&&=n.options.supportsGitHubDotCom;break;case 1:i&&=n.options.supportsGitHubEnterpriseServer;break;case 2:i&&=n.options.supportsHostedGitHubEnterprise;break}switch(r.extensionHost){case 1:i&&=n.options.supportsRemoteExtensionHost;break;case 0:i&&=n.options.supportsWebWorkerExtensionHost;break}return Vr.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Ne.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof Nf),...e.filter(n=>!(n instanceof Nf))]:e}function JD(r){return r==="google"||r==="apple"||r==="microsoft"}function QD(r){return Buffer.from(r,"binary").toString("base64")}var dt=Pr(require("vscode"));var eA="urn:ietf:params:oauth:grant-type:token-exchange",ZD="urn:ietf:params:oauth:token-type:access_token",ey=["read:user"];var gt=class extends Error{constructor(t,n){super(n);this.failure=t}failure},Uv=class{async show(e,...t){return await dt.window.showInformationMessage(e,{modal:!0},...t)}},Fv=class{constructor(e,t,n,i,o,a){this._logger=e;this._endpoints=t;this._microsoft=n;this._accountLinks=i;this._http=o;this._confirmation=a}_logger;_endpoints;_microsoft;_accountLinks;_http;_confirmation;async login(e,t){let n=this.resolveEndpoint(),i=t?.microsoftAccount,o=!1;for(;;){let a=await this.getMicrosoftToken(o,i),s=await this.exchange(n,a.token,ey),u=await this.discoverAccount(s.token),c=await this.confirmAccount(u);if(c===1){i=void 0,o=!0;continue}if(c===2)throw this._logger.info("User cancelled the Microsoft sign in at the account confirmation."),new Error(cn);let f=await this.exchange(n,a.token,e),v=await this.verifyAccount(f.token,u.id);return await this.linkAccounts(a.account.label,v),{token:f.token,expiresAfter:f.expiresAfter,account:v}}}async renew({scopes:e,gitHubAccountId:t,microsoftAccount:n}){let i=this.resolveEndpoint(),o=await this._microsoft.getToken({silent:!0,account:n});if(!o)throw this._logger.info("No Microsoft token was available without asking the user, so the session cannot renew itself."),new gt("microsoftSignIn",dt.l10n.t("Signing in to Microsoft again is required."));let a=await this.exchange(i,o.token,e),s=await this.verifyAccount(a.token,t);return{token:a.token,expiresAfter:a.expiresAfter,account:s,scopes:e??a.grantedScopes??[]}}async probe(e){let t;try{let n=this.resolveEndpoint();return t=(await this.exchange(n,e,ey)).token,await this.discoverAccount(t)}catch(n){let i=n instanceof gt?n.failure:n?.message??n;this._logger.info(`No GitHub account is linked to the probed Microsoft identity: ${i}`);return}finally{t&&this.revoke(t)}}async revoke(e){let t=this._endpoints.tokenRevocation,n=Vr.gitHubClientSecret;if(!t||!n){this._logger.info("The token minted to check for a Microsoft link cannot be revoked here. It expires on its own.");return}try{let i=await this._http.send({url:t,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:`Basic ${btoa(`${Vr.gitHubClientId}:${n}`)}`,"X-GitHub-Api-Version":"2022-11-28","Content-Type":"application/json"},body:JSON.stringify({access_token:e}),retryFallbacks:!1});i.status!==204&&this._logger.warn(`Could not revoke the token minted to check for a Microsoft link (HTTP ${i.status}). It expires on its own.`)}catch(i){this._logger.warn(`Could not revoke the token minted to check for a Microsoft link: ${i?.message??i}. It expires on its own.`)}}async verifyAccount(e,t){let n=await this.discoverAccount(e);if(n.id!==t)throw this._logger.error("The GitHub token is for a different account than the one that was asked for. Discarding it."),new gt("accountMismatch",dt.l10n.t("Your Microsoft account is now linked to a different GitHub account."));return n}resolveEndpoint(){let e=this._endpoints.tokenExchange;if(!e)throw this._logger.error("This GitHub host does not accept a Microsoft token exchange."),new gt("configuration",dt.l10n.t("This GitHub host does not support signing in with Microsoft."));return e}async getMicrosoftToken(e,t){let n;try{n=await this._microsoft.getToken({forceNewSession:e,account:t})}catch(i){throw nA(i)?new Error(cn):(this._logger.error(`Could not acquire a Microsoft access token: ${i?.message??i}`),new gt("microsoftSignIn",dt.l10n.t("Could not sign in to Microsoft. Try again or choose a different way to sign in.")))}if(!n)throw new Error(cn);return n}async linkAccounts(e,t){await this._accountLinks.link(e,{id:t.id,label:t.accountName})}async discoverAccount(e){try{return await Ov(this._http,this._endpoints.userInfo,e,this._logger)}catch(t){throw this._logger.error(`Could not resolve the GitHub account for the Microsoft sign in: ${t?.message??t}`),new gt("identity",dt.l10n.t("Could not read the GitHub account linked to your Microsoft account."))}}async confirmAccount(e){let t=`@${e.accountName}`,n=dt.l10n.t("Sign in with SSO"),i=dt.l10n.t("Use a Different Microsoft Account");switch(await this._confirmation.show(dt.l10n.t(`Your organization's Microsoft sign-in is linked to this GitHub account:
{0}
Sign in to GitHub with this account?`,t),n,i)){case n:return 0;case i:return 1;default:return 2}}async exchange(e,t,n){let i=n&&[...n],o=new URLSearchParams({client_id:Vr.gitHubClientId,grant_type:eA,subject_token:t,subject_token_type:ZD,...i&&{scope:i.join(" ")}}).toString();this._logger.debug(`Exchanging a Microsoft token for the GitHub scopes: ${i?i.join(" "):"whichever GitHub grants"}`),this._logger.trace(`The subject token of the exchange describes itself as: ${tA(t)}`);let a;try{a=await this._http.send({url:e,method:"POST",retryFallbacks:!1,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:o})}catch(h){throw this._logger.error(`Could not reach GitHub to exchange the Microsoft token: ${h?.message??h}`),new gt("network",dt.l10n.t("Could not reach GitHub to finish signing in with Microsoft. Check your connection and try again."))}let s;try{s=await a.json()}catch{throw this.protocolError(`the response was not JSON (HTTP ${a.status})`)}if(!s||typeof s!="object")throw this.protocolError(`the response was not an object (HTTP ${a.status})`);let u=s;if(typeof u.error=="string")throw this.traceFailure(a.status,u),this.oauthError(u.error);if(!a.ok)throw this.traceFailure(a.status,u),this.protocolError(`HTTP ${a.status} without an error code`);let{access_token:c,issued_token_type:f,token_type:v,expires_in:d,scope:m}=u;if(typeof c!="string"||!c)throw this.protocolError("no access token");if(f!==ZD)throw this.protocolError("unexpected issued token type");if(typeof v!="string"||v.toLowerCase()!=="bearer")throw this.protocolError("unexpected token type");if(typeof d!="number"||!isFinite(d)||d<=0)throw this.protocolError("missing or invalid expiry");if(m!==void 0&&typeof m!="string")throw this.protocolError("invalid granted scopes");this._logger.info(`The GitHub token exchange granted the scopes: ${m??"unreported"}`);let _=m?.split(/[\s,]+/).filter(Boolean),N=i?.filter(h=>_&&!_.includes(h));return N?.length&&this._logger.warn(`The GitHub token exchange did not grant every requested scope. Missing: ${N.join(" ")}`),{token:c,expiresAfter:d*1e3,grantedScopes:_}}oauthError(e){switch(this._logger.error(`The GitHub token exchange failed with the error code '${e}'.`),e){case"invalid_request":case"invalid_client":case"invalid_scope":case"unsupported_grant_type":return new gt("configuration",dt.l10n.t("GitHub is not configured to accept Microsoft sign in from this application ({0}).",e));case"invalid_grant":return new gt("identity",dt.l10n.t("GitHub did not accept your Microsoft account for sign in."));default:return new gt("protocol",dt.l10n.t("GitHub rejected the Microsoft sign in ({0}).",e))}}protocolError(e){return this._logger.error(`The GitHub token exchange returned an unexpected response: ${e}.`),new gt("protocol",dt.l10n.t("GitHub returned an unexpected response while signing in with Microsoft."))}traceFailure(e,t){let n=["error_description","error_uri"].filter(i=>typeof t[i]=="string").map(i=>`${i}=${t[i]}`);this._logger.trace(`The GitHub token exchange answered HTTP ${e} ${n.length?n.join(" "):"with no further explanation"}.`)}},rA=["iss","aud","appid","azp","tid"];function tA(r){let e=r.split(".");if(e.length!==3)return"not a JWT";let t;try{let o=e[1].replace(/-/g,"+").replace(/_/g,"/");t=JSON.parse(atob(o+"=".repeat((4-o.length%4)%4)))}catch{return"a JWT whose claims could not be read"}if(!t||typeof t!="object")return"a JWT whose claims are not an object";let n=t,i=rA.filter(o=>n[o]!==void 0).map(o=>`${o}=${String(n[o])}`);return i.length?i.join(" "):"a JWT carrying none of the expected claims"}function nA(r){if(r===cn)return!0;let e=r?.message;return e===cn||e==="User did not consent to login."}var iA="https://vscode.dev/redirect",oA="https://insiders.vscode.dev/redirect",Mv=class{constructor(e,t,n,i,o,a,s){this._logger=e;this._telemetryReporter=t;this._uriHandler=n;this._extensionKind=i;this._ghesUri=s;this._type=s?"github-enterprise":"github",this.friendlyName=this._type==="github"?"GitHub":s?.authority,this._http=new Lv(e);let u=os(this._type,s)?this.baseUri.with({path:"/login/oauth/access_token"}).toString(!0):void 0,c=os(this._type,s)?this.getServerUri(`/applications/${Vr.gitHubClientId}/token`).toString(!0):void 0;this._entraTokenExchange=new Fv(e,{tokenExchange:u,tokenRevocation:c,userInfo:this.getServerUri("/user").toString()},o,a,this._http,new Uv)}_logger;_telemetryReporter;_uriHandler;_extensionKind;_ghesUri;friendlyName;_type;_entraTokenExchange;_http;_redirectEndpoint;get baseUri(){return this._type==="github"?Le.Uri.parse("https://github.com/"):this._ghesUri}getFallbackBaseUri(){return this.baseUri}async loginWithMicrosoft(e,t){let n=Le.Uri.joinPath(this.baseUri,"/login/oauth");return{...await this._entraTokenExchange.login(e,t),authorizationServer:n}}async renewWithMicrosoft(e){let t=Le.Uri.joinPath(this.baseUri,"/login/oauth");return{...await this._entraTokenExchange.renew(e),authorizationServer:t}}probeMicrosoftLink(e){return this._entraTokenExchange.probe(e)}async getRedirectEndpoint(){if(this._redirectEndpoint)return this._redirectEndpoint;if(this._type==="github"){let e=await Le.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints");this._redirectEndpoint=iA,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=oA)}else this._redirectEndpoint="https://vscode.dev/redirect";return this._redirectEndpoint}_isNoCorsEnvironment;async isNoCorsEnvironment(){if(this._isNoCorsEnvironment!==void 0)return this._isNoCorsEnvironment;let e=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/dummy`));return this._isNoCorsEnvironment=e.scheme==="https"&&/^((insiders\.)?vscode|github)\./.test(e.authority)||e.scheme==="http"&&/^localhost/.test(e.authority),this._isNoCorsEnvironment}async login(e,t,n,i){this._logger.info(`Logging in for the following scopes: ${e}`);let o=this.baseUri,a,s=Le.l10n.t("Yes"),u=Le.l10n.t("No"),c=async h=>{if(a===void 0)return;let b=a?Le.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",h):Le.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",h);if(await Le.window.showWarningMessage(b,{notificationId:a?"githubAuthentication.signIn.retryAfterCancel":"githubAuthentication.signIn.retryAfterFailure"},s,u)!==s)throw new Error(cn)},f=as.getRandomValues(new Uint32Array(2)).reduce((h,b)=>h+=b.toString(16),""),v=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(f)}`)),d=YD(v),m=os(this._type,this._ghesUri),_=typeof process<"u"&&typeof process?.versions?.node=="string",N=XD({target:this._type==="github"?0:m?2:1,extensionHost:_?this._extensionKind===Le.ExtensionKind.UI?2:1:0,isSupportedClient:d});for(let h of N)try{return h!==N[0]&&await c(h.label),{token:await h.trigger({scopes:e,callbackUri:v,nonce:f,signInProvider:t,extraAuthorizeParameters:n,baseUri:o,logger:this._logger,uriHandler:this._uriHandler,enterpriseUri:this._ghesUri,redirectUri:Le.Uri.parse(await this.getRedirectEndpoint()),existingLogin:i}),authorizationServer:Le.Uri.joinPath(o,"/login/oauth")}}catch(b){a=this.processLoginError(b)}throw new Error(a?cn:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!Vr.gitHubClientSecret){this._logger.warn("No client secret configured for GitHub authentication. The token has been deleted with best effort on this system, but we are unable to delete the token on server without the client secret.");return}if(!e.accessToken.startsWith("gho_")){this._logger.warn("The token being deleted is not an OAuth token. It has been deleted locally, but we cannot delete it on server.");return}if(!os(this._type,this._ghesUri)){this._logger.trace("GitHub.com and GitHub hosted GitHub Enterprise are the only options that support deleting tokens on the server. Skipping.");return}let t="Basic "+QD(`${Vr.gitHubClientId}:${Vr.gitHubClientSecret}`),n=this.getServerUri(`/applications/${Vr.gitHubClientId}/token`);try{let i=await An(n.toString(!0),{logger:this._logger,retryFallbacks:!0,expectJSON:!1,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:t,"X-GitHub-Api-Version":"2022-11-28","User-Agent":`${Le.env.appName} (${Le.env.appHost})`},body:JSON.stringify({access_token:e.accessToken})});if(i.status===204){this._logger.trace(`Successfully deleted token from session (${e.id}) from server.`);return}try{let o=await i.text();throw new Error(o)}catch{throw new Error(`${i.status} ${i.statusText}`)}}catch(i){this._logger.warn("Failed to delete token from server."+(i.message??i))}}getServerUri(e=""){let t=this.baseUri;return os(this._type,this._ghesUri)?Le.Uri.parse(`${t.scheme}://api.${t.authority}`).with({path:e}):Le.Uri.parse(`${t.scheme}://${t.authority}/api/v3${e}`)}async getUserInfo(e){return await Ov(this._http,this.getServerUri("/user").toString(),e,this._logger)}async sendAdditionalTelemetryInfo(e){if(!(!Le.env.isTelemetryEnabled||await this.isNoCorsEnvironment())){if(this._type==="github")return await this.checkUserDetails(e);await this.checkEnterpriseVersion(e.accessToken)}}async checkUserDetails(e){let t,n=e.account.label.includes("_");if(n)this._logger.info("Skipping optional EDU details check for a managed account."),t="none";else try{let i=await An("https://education.github.com/api/user",{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e.accessToken}`,"faculty-check-preview":"true","User-Agent":`${Le.env.appName} (${Le.env.appHost})`}});if(i.ok){let o=await i.json();t=o.student?"student":o.faculty?"faculty":"none"}else this._logger.info(`Unable to resolve optional EDU details. Status: ${i.status} ${i.statusText}`),t="unknown"}catch(i){this._logger.info(`Unable to resolve optional EDU details. Error: ${i}`),t="unknown"}this._telemetryReporter.sendTelemetryEvent("session",{isEdu:t,isManaged:n?"true":"false"})}async checkEnterpriseVersion(e){try{let t;if(os(this._type,this._ghesUri))t="hosted";else{let n=await An(this.getServerUri("/meta").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${Le.env.appName} (${Le.env.appHost})`}});if(!n.ok)return;t=(await n.json()).installed_version}this._telemetryReporter.sendTelemetryEvent("ghe-session",{version:t})}catch{}}processLoginError(e){if(e.message===cn)throw e;return this._logger.error(e.message??e),e.message===ci}};var gy=Pr(require("vscode")),qo=Pr(hy()),Xv=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(gy.env.uriScheme){case"vscode":e=qo.TargetPopulation.Public;break;case"vscode-insiders":e=qo.TargetPopulation.Insiders;break;case"vscode-exploration":e=qo.TargetPopulation.Internal;break;case"code-oss":e=qo.TargetPopulation.Team;break;default:e=qo.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,qo.getExperimentationService)(t,n,e,this,this.context.globalState);return await i.initialFetch,i}async sendTelemetryEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryEvent(e,{...this.sharedProperties,...t},n)}async sendTelemetryErrorEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryErrorEvent(e,{...this.sharedProperties,...t})}setSharedProperty(e,t){this.sharedProperties[e]=t}postEvent(e,t){let n={};for(let[i,o]of t)n[i]=o;this.sendTelemetryEvent(e,n)}dispose(){return this.baseReporter.dispose()}};var Ey=Pr(require("vscode"));var Jv=class{constructor(e,t){this.type=e;let n=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=Ey.window.createOutputChannel(`${n} Authentication${t?` (${t.toString(!0)})`:""}`,{log:!0})}type;output;trace(e){this.output?.trace(e)}debug(e){this.output?.debug(e)}info(e){this.output?.info(e)}error(e){this.output?.error(e)}warn(e){this.output?.warn(e)}dispose(){this.output?.dispose(),this.output=void 0}};var Qv=class{constructor(e,t,n){this.memento=e;this.storageKey=t;this.logger=n}memento;storageKey;logger;_unlinkedButStillStored=new Set;get links(){let e=this.memento.get(this.storageKey,[]);return this._unlinkedButStillStored.size?e.filter(t=>!this._unlinkedButStillStored.has(t.gitHubAccountLabel)):e}linkedAccounts(){return this.links}microsoftAccountFor(e){return this.links.find(t=>t.gitHubAccountLabel===e)?.microsoftAccountLabel}async link(e,t){let n=this.links.filter(i=>i.gitHubAccountLabel!==t.label&&i.microsoftAccountLabel!==e);this._unlinkedButStillStored.delete(t.label),await this.write([...n,{microsoftAccountLabel:e,gitHubAccountLabel:t.label,gitHubAccountId:t.id}])}async unlinkGitHubAccount(e){let t=this.links.filter(n=>n.gitHubAccountLabel!==e);t.length!==this.links.length&&(this._unlinkedButStillStored.add(e),await this.write(t)&&this._unlinkedButStillStored.delete(e))}async write(e){try{return await this.memento.update(this.storageKey,e),!0}catch(t){return this.logger.error(`Could not update the Microsoft account links: ${t}`),!1}}};var Tg=Pr(require("vscode")),Zv="microsoft",xA="12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default",e_=class{async getToken(e){let t=await Tg.authentication.getSession(Zv,[xA],bA(e));return t&&{token:t.accessToken,account:t.account}}async getAccounts(){return await Tg.authentication.getAccounts(Zv)}};function bA(r){return r.silent?{silent:!0,account:r.account}:r.forceNewSession?{forceNewSession:!0,clearSessionPreference:!0}:{createIfNone:!0,account:r.account}}var Df=Pr(require("vscode")),ss="github-enterprise.uri",r_=".ghes.auth";function Kr(r){return r.with({scheme:r.scheme.toLowerCase(),path:r.path.replace(/\/+$/,"")}).toString()}function Dg(r){return`${Kr(r)}${r_}`}var Tf=".microsoftAccountLinks";function AA(r,e){if(!r.endsWith(r_)||r.includes("://"))return;let t=r.slice(0,-r_.length),n=t.indexOf("/");return Df.Uri.from({scheme:e,authority:n<0?t:t.slice(0,n),path:n<0?"":t.slice(n)})}async function Sy(r,e){return{key:e,tokens:await r.secrets.get(e),links:r.globalState.get(`${e}${Tf}`)}}function Ny(r,e,t){if(r.length<2)return r[0];let n=r.find(i=>i.key===e);if(!n)throw new Error(Df.l10n.t("Multiple saved authentication stores match {0}. Set {1} to the previously used URI before migrating its saved sign-in.",t.toString(!0),ss));return n}async function PA(r,e,t,n,i){let o=t.tokens===void 0?Ny(e.filter(s=>s.tokens!==void 0),n,i):void 0,a=t.links===void 0?Ny(e.filter(s=>s.links!==void 0),n,i):void 0;a?.links!==void 0&&await r.globalState.update(`${t.key}${Tf}`,a.links),o?.tokens!==void 0&&await r.secrets.get(t.key)===void 0&&await r.secrets.store(t.key,o.tokens);for(let s of e)s.tokens!==void 0&&(t.tokens!==void 0||s===o)&&await r.secrets.delete(s.key),s.links!==void 0&&(t.links!==void 0||s===a)&&await r.globalState.update(`${s.key}${Tf}`,void 0)}async function Ty(r,e,t=[e],n){let i=Kr(e),o=new Set([...await r.secrets.keys(),...r.globalState.keys().filter(d=>d.endsWith(Tf)).map(d=>d.slice(0,-Tf.length))]),a=[];for(let d of o){let m=AA(d,e.scheme);if(m&&Kr(m)===i){let _=await Sy(r,d);(_.tokens!==void 0||_.links!==void 0)&&a.push(_)}}let s=await Sy(r,Dg(e));if(!a.length)return;let u=n??(t.length===1?t[0]:void 0),c=u&&Kr(u.with({scheme:e.scheme}))===i;if(c&&Kr(u)!==i)return;let f=new Set(t.filter(d=>Kr(d.with({scheme:e.scheme}))===i).map(Kr));if(!c&&f.size>1){let d=s.tokens===void 0&&a.some(_=>_.tokens!==void 0),m=s.links===void 0&&a.some(_=>_.links!==void 0);if(!d&&!m)return;throw new Error(Df.l10n.t("Saved authentication for {0} does not identify its URL scheme. Set {1} to the original instance before migrating its saved sign-in.",e.authority,ss))}let v=c?`${u.authority}${u.path}${r_}`:void 0;await PA(r,a,s,v,e)}var CA=3600*1e3,RA="_workbenchEntraExchangeProbe";function wA(r){if(!r||typeof r!="object")throw new Error("Options are not an object");let{provider:e,extraAuthorizeParameters:t}=r;if(e!==void 0&&!JD(e))throw new Error(`Provider is invalid: ${e}`);if(t!==void 0){if(!t||typeof t!="object")throw new Error("Extra parameters must be a record of string keys and string values.");for(let[n,i]of Object.entries(t))if(typeof n!="string"||typeof i!="string")throw new Error("Extra parameters must be a record of string keys and string values.")}return!0}var t_=class extends br.EventEmitter{_pendingNonces=new Map;_codeExchangePromises=new Map;handleUri(e){this.fire(e)}async waitForCode(e,t,n,i,o){let a=`${o.toString()} ${t}`,s=this._pendingNonces.get(a)||[];this._pendingNonces.set(a,[...s,n]);let u=this._codeExchangePromises.get(a);u||(u=Sf(this.event,this.handleEvent(e,a)),this._codeExchangePromises.set(a,u));try{return await Promise.race([u.promise,new Promise((c,f)=>setTimeout(()=>f(hf),3e5)),Sf(i.onCancellationRequested,(c,f,v)=>{v(ci)}).promise])}finally{this._pendingNonces.delete(a),u?.cancel.fire(),this._codeExchangePromises.delete(a)}}handleEvent=(e,t)=>(n,i,o)=>{let a=new URLSearchParams(n.query),s=a.get("code"),u=a.get("nonce");if(!s){o(new Error("No code"));return}if(!u){o(new Error("No nonce"));return}if(!(this._pendingNonces.get(t)||[]).includes(u)){e.info("Nonce not found in accepted nonces. Skipping this execution...");return}i(s)}};function OA(){return as.getRandomValues(new Uint32Array(2)).reduce((r,e)=>r+=e.toString(16),"")}var Ru=class{constructor(e,t,n,i){this.context=e;let{aiKey:o}=e.extension.packageJSON;this._telemetryReporter=new Xv(e,new Dy.default(o));let a=n?"github-enterprise":"github";this._accountLabelSuffix=n?` - ${n.authority}${n.path.replace(/\/+$/,"")}`:void 0,this._logger=new Jv(a,n);let s=i??(a==="github"?`${a}.auth`:`${n?.authority}${n?.path}.ghes.auth`);this._keychain=new Rv(this.context,s,this._logger),this._accountLinks=new Qv(this.context.globalState,`${s}.microsoftAccountLinks`,this._logger),this._microsoft=new e_,this._githubServer=new Mv(this._logger,this._telemetryReporter,t,e.extension.extensionKind,this._microsoft,this._accountLinks,n),this._persistedSessionsPromise=this.readSessions().then(u=>(setTimeout(()=>u.forEach(c=>this.afterSessionLoad(c)),1e3),u)),this._disposable=br.Disposable.from(this._telemetryReporter,this._sessionChangeEmitter,this._logger,this.context.secrets.onDidChange(()=>this.checkForUpdates()),br.authentication.onDidChangeSessions(async u=>{u.provider.id===Zv&&(this._microsoftGeneration++,this._restoresTried.clear(),await this.evictUnreachable())}))}context;_sessionChangeEmitter=new br.EventEmitter;_logger;_githubServer;_microsoft;_telemetryReporter;_keychain;_accountLinks;_accountLabelSuffix;_accountsSeen=new Set;_disposable;_persistedSessionsPromise;_transientSessions=new Map;_renewals=new Map;_restores=new Map;_restoresTried=new Set;_microsoftGeneration=0;dispose(){this._transientSessions.clear(),this._disposable?.dispose()}get transientSessions(){let e=Date.now();return[...this._transientSessions.values()].map(t=>({...t.session,expiresAfter:t.expiresAt>e?t.expiresAt-e:void 0}))}get onDidChangeSessions(){return this._sessionChangeEmitter.event}async getCachedSessions(){return[...await this._persistedSessionsPromise,...this.transientSessions]}accountName(e){let t=this._accountLabelSuffix;return t&&e.endsWith(t)?e.slice(0,-t.length):e}accountLabel(e){return`${e}${this._accountLabelSuffix??""}`}async getSessions(e,t){let n=t?.[RA];if(n!==void 0)return await this.probeMicrosoftLink(n);let i=e?.sort()||[],o=i.length?i.join(","):"all scopes";this._logger.info(`Getting sessions for ${o}...`);let a=[...await this._persistedSessionsPromise,...this.transientSessions],s=v=>!t?.authorizationServer||!!v.authorizationServer&&Kr(v.authorizationServer)===Kr(t.authorizationServer),u=a.filter(v=>s(v)&&(!t?.account||this.accountName(v.account.label)===this.accountName(t.account.label))&&(!i.length||ng([...v.scopes].sort(),i))),c=await this.stillGood(u),f=await this.restore(i,t?.account,c);return this._logger.info(`Got ${c.length+f.length} sessions for ${o}...`),[...c,...f.filter(s)]}async probeMicrosoftLink(e){let t=e?.subjectTokens;if(!Array.isArray(t)||!t.every(n=>typeof n=="string"&&n))throw new Error("The Microsoft link probe requires a list of subject tokens.");this._logger.info(`Checking whether any of ${t.length} Microsoft identities is linked to a GitHub account...`);for(let n of t){let i=await this._githubServer.probeMicrosoftLink(n);if(i)return[{id:i.id,accessToken:"",account:{id:i.id,label:i.accountName},scopes:[]}]}return[]}async restore(e,t,n){let i=this._accountLinks.linkedAccounts().filter(a=>(!t||a.gitHubAccountLabel===this.accountName(t.label))&&!n.some(s=>this.accountName(s.account.label)===a.gitHubAccountLabel)&&!this._restoresTried.has(this.restoreKey(a,e)));if(!i.length)return[];let o=(await Promise.all(i.map(a=>this.restoreOne(a,e)))).filter(a=>!!a);return o.length&&(this._logger.info(`Restored ${o.length} session(s) from a remembered Microsoft account.`),this._sessionChangeEmitter.fire({added:o,removed:[],changed:[]})),o}restoreKey(e,t){return`${e.gitHubAccountLabel}
${t.join(" ")}`}restoreOne(e,t){let n=this.restoreKey(e,t),i=this._restores.get(n);return i||(i=this.restoreNow(e,t,n).finally(()=>this._restores.delete(n)),this._restores.set(n,i)),i}async restoreNow(e,t,n){let i=this._microsoftGeneration,o=(await this._microsoft.getAccounts()).find(u=>u.label===e.microsoftAccountLabel);if(!o){this._logger.info(`Not restoring the session for ${e.gitHubAccountLabel}: its Microsoft account is not signed in.`),this._restoresTried.add(n);return}let a;try{a=await this._githubServer.renewWithMicrosoft({scopes:t.length?t:void 0,gitHubAccountId:e.gitHubAccountId,microsoftAccount:o})}catch(u){this._logger.error(`Could not restore the session for ${e.gitHubAccountLabel}: ${u?.message??u}`),this._restoresTried.add(n),u instanceof gt&&u.failure==="accountMismatch"&&await this._accountLinks.unlinkGitHubAccount(e.gitHubAccountLabel);return}if(!a.scopes.length){this._logger.error(`Could not restore the session for ${e.gitHubAccountLabel}: GitHub did not say what the token can do.`),this._restoresTried.add(n);return}if(!await this.microsoftAccountStillSignedIn(i,o.label,`the restored session for ${e.gitHubAccountLabel}`))return;let s=this.storeTransientSession(this.sessionFor(a.account,a,[...a.scopes]),a.expiresAfter);return this.afterSessionLoad(s),s}async stillGood(e){let t=Date.now(),n=[],i=[];for(let u of e){let c=this._transientSessions.get(u.id);!c||c.expiresAt>t+CA?n.push(u):i.push(u)}if(!i.length)return n;let o=await Promise.all(i.map(u=>this.renew(u))),a=[],s=[];for(let u=0;u<i.length;u++){if(o[u])continue;let c=this._transientSessions.get(i[u].id),f=c?c.expiresAt-Date.now():0;c&&f>0?s.push({...c.session,expiresAfter:f}):a.push(i[u])}return this.evict(a,"their token ran out and could not be renewed"),[...n,...s,...o.filter(u=>!!u)]}evict(e,t){let n=[];for(let i of e)this._transientSessions.delete(i.id)&&n.push(i);n.length&&(this._logger.info(`Dropped ${n.length} session(s): ${t}.`),this._sessionChangeEmitter.fire({added:[],removed:n,changed:[]}))}async evictUnreachable(){let e=new Set((await this._microsoft.getAccounts()).map(n=>n.label)),t=new Map(this._accountLinks.linkedAccounts().map(n=>[n.gitHubAccountLabel,n]));this.evict(this.transientSessions.filter(n=>{let i=t.get(this.accountName(n.account.label))?.microsoftAccountLabel;return!i||!e.has(i)}),"their Microsoft account is no longer signed in")}renew(e){let t=this._renewals.get(e.id);return t||(t=this.renewNow(e).finally(()=>this._renewals.delete(e.id)),this._renewals.set(e.id,t)),t}async renewNow(e){let t=this._microsoftGeneration,n=await this.rememberedMicrosoftAccount(e.account.label);if(!n){this._logger.info(`Session ${e.id} cannot renew: there is no Microsoft account signed in for it.`);return}let i;try{i=await this._githubServer.renewWithMicrosoft({scopes:e.scopes,gitHubAccountId:e.account.id,microsoftAccount:n})}catch(a){this._logger.error(`Could not renew session ${e.id}: ${a?.message??a}`);return}if(!await this.microsoftAccountStillSignedIn(t,n.label,`the renewal of session ${e.id}`))return;let o=this.storeTransientSession({...e,accessToken:i.token,authorizationServer:i.authorizationServer},i.expiresAfter);return this._logger.info(`Renewed session ${e.id}.`),this._sessionChangeEmitter.fire({added:[],removed:[],changed:[o]}),o}async microsoftAccountStillSignedIn(e,t,n){return this._microsoftGeneration===e||(await this._microsoft.getAccounts()).some(i=>i.label===t)?!0:(this._logger.info(`Discarding ${n}: its Microsoft account was signed out of while it was in flight.`),!1)}async afterSessionLoad(e){this._accountsSeen.has(e.account.id)||(this._accountsSeen.add(e.account.id),this._githubServer.sendAdditionalTelemetryInfo(e))}logSessionChange(e,t,n,i){let o=t>0&&n>0?"replacement":t>0?"addition":n>0?"removal":"change",a=`Session change: source=${e}, kind=${o}, added=${t}, removed=${n}, changed=${i}.`;o==="replacement"?this._logger.info(a):this._logger.trace(a)}async checkForUpdates(){let e=await this._persistedSessionsPromise;this._persistedSessionsPromise=this.readSessions();let t=await this._persistedSessionsPromise,n=[],i=[];t.forEach(o=>{e.some(s=>s.id===o.id)||(this._logger.info("Adding session found in keychain"),n.push(o))}),e.forEach(o=>{t.some(s=>s.id===o.id)||(this._logger.info("Removing session no longer found in keychain"),i.push(o))}),(n.length||i.length)&&(this.logSessionChange("secret-storage",n.length,i.length,0),this._sessionChangeEmitter.fire({added:n,removed:i,changed:[]}))}async readSessions(){let e;try{this._logger.info("Reading sessions from keychain...");let a=await this._keychain.getToken();if(!a)return[];this._logger.info("Got stored sessions!");try{e=JSON.parse(a)}catch(s){throw await this._keychain.deleteToken(),s}}catch(a){return this._logger.error(`Error reading token: ${a}`),[]}let t=!1,n=new Set,i=e.map(async a=>{let s=[...a.scopes].sort().join(" "),u;if(!a.account)try{u=await this._githubServer.getUserInfo(a.accessToken),this._logger.info(`Verified session with the following scopes: ${s}`)}catch(v){if(v.message==="Unauthorized")return}this._logger.trace(`Read the following session from the keychain with the following scopes: ${s}`),n.add(s);let c;a.account?.id?(typeof a.account.id=="number"&&(t=!0),c=`${a.account.id}`):c=u?.id??"<unknown>";let f=a.account?.icon?br.Uri.from(a.account.icon):u?.avatarUrl?br.Uri.parse(u.avatarUrl):void 0;return{id:a.id,account:{label:this.accountLabel(a.account?a.account.label??a.account.displayName??"<unknown>":u?.accountName??"<unknown>"),id:c,icon:f},scopes:a.scopes,accessToken:a.accessToken,authorizationServer:a.authorizationServer?br.Uri.from(a.authorizationServer):br.Uri.joinPath(this._githubServer.getFallbackBaseUri(),"/login/oauth")}}),o=(await Promise.allSettled(i)).filter(a=>a.status==="fulfilled").map(a=>a.value).filter(a=>!!a);return this._logger.info(`Got ${o.length} verified sessions.`),(t||o.length!==e.length)&&await this.storeSessions(o),o}async storeSessions(e){this._logger.info(`Storing ${e.length} sessions...`),this._persistedSessionsPromise=Promise.resolve(e),await this._keychain.setToken(JSON.stringify(e.map(t=>({...t,account:{...t.account,label:this.accountName(t.account.label)}})))),this._logger.info(`Stored ${e.length} sessions!`)}async createSession(e,t){try{let n=[...e].sort();if(this._telemetryReporter?.sendTelemetryEvent("login",{scopes:JSON.stringify(e)}),t&&!wA(t))throw new Error("Invalid options");let i=t?.account&&this.accountName(t.account.label),o=t?.provider;if(this._logger.info(`Logging in with${o?` ${o}, `:""} '${i||"any"}' account...`),o==="microsoft"){let d=await this.createMicrosoftSession(e,i,t?.authorizationServer);return this._logger.info("Login success!"),d}let a=await this._persistedSessionsPromise,s=n.join(" "),u=await this._githubServer.login(s,o,t?.extraAuthorizeParameters,i),c=await this.tokenToSession(u,e,t?.authorizationServer);this.afterSessionLoad(c);let f=a.findIndex(d=>d.account.id===c.account.id&&ng([...d.scopes].sort(),n)),v=new Array;return f>-1?v.push(...a.splice(f,1,c)):a.push(c),await this.storeSessions(a),this.logSessionChange("interactive-login",1,v.length,0),this._sessionChangeEmitter.fire({added:[c],removed:v,changed:[]}),this._logger.info("Login success!"),c}catch(n){throw n==="Cancelled"||n.message==="Cancelled"?(this._telemetryReporter?.sendTelemetryEvent("loginCancelled"),n):(this._telemetryReporter?.sendTelemetryEvent("loginFailed"),br.window.showErrorMessage(br.l10n.t("Sign in failed: {0}",`${n}`),{notificationId:"githubAuthentication.signIn.failed"}),this._logger.error(n),n)}}async createMicrosoftSession(e,t,n){let i=await this._githubServer.loginWithMicrosoft(e,{microsoftAccount:await this.rememberedMicrosoftAccount(t)});this.checkAuthorizationServer(i,n);let o=this.storeTransientSession(this.sessionFor(i.account,i,e),i.expiresAfter);return this.afterSessionLoad(o),this._sessionChangeEmitter.fire({added:[o],removed:[],changed:[]}),o}storeTransientSession(e,t){let n={...e,expiresAfter:t};return this._transientSessions.set(n.id,{session:n,expiresAt:Date.now()+t}),n}sessionFor(e,t,n){return{id:OA(),accessToken:t.token,account:{label:this.accountLabel(e.accountName),id:e.id,icon:e.avatarUrl?br.Uri.parse(e.avatarUrl):void 0},scopes:n,authorizationServer:t.authorizationServer}}async rememberedMicrosoftAccount(e){if(!e)return;let t=this._accountLinks.microsoftAccountFor(this.accountName(e));return t?(await this._microsoft.getAccounts()).find(i=>i.label===t):void 0}async forgetAccountLinkIfSignedOut(e){let t=[...await this._persistedSessionsPromise,...this.transientSessions],n=this.accountName(e.label);t.some(i=>this.accountName(i.account.label)===n)||await this._accountLinks.unlinkGitHubAccount(n)}checkAuthorizationServer(e,t){if(t&&Kr(e.authorizationServer)!==Kr(t))throw new Error(br.l10n.t("The GitHub session does not belong to the requested authorization server."))}async tokenToSession(e,t,n){this.checkAuthorizationServer(e,n);let i=await this._githubServer.getUserInfo(e.token);return this.sessionFor(i,e,t)}async removeSession(e){try{this._telemetryReporter?.sendTelemetryEvent("logout"),this._logger.info(`Logging out of ${e}`);let t=this._transientSessions.get(e);if(t){this._transientSessions.delete(e),await this.forgetAccountLinkIfSignedOut(t.session.account),this._sessionChangeEmitter.fire({added:[],removed:[t.session],changed:[]});return}let n=await this._persistedSessionsPromise,i=n.findIndex(o=>o.id===e);if(i>-1){let o=n[i];n.splice(i,1),await this.storeSessions(n),await this._githubServer.logout(o),await this.forgetAccountLinkIfSignedOut(o.account),this._sessionChangeEmitter.fire({added:[],removed:[o],changed:[]})}else this._logger.error("Session not found")}catch(t){throw this._telemetryReporter?.sendTelemetryEvent("logoutFailed"),br.window.showErrorMessage(br.l10n.t("Sign out failed: {0}",`${t}`),{notificationId:"githubAuthentication.signOut.failed"}),this._logger.error(t),t}}};var er=Pr(require("vscode"));var yf=Pr(require("vscode"));var us="github-enterprise.uris";function yy(r,e){let t=r.inspect(us),n=t&&(t.globalValue!==void 0||e&&(t.workspaceValue!==void 0||t.workspaceFolderValue!==void 0)),i=r.get(ss),o=n?r.get(us):i?[i]:[];if(!Array.isArray(o))throw new Error(yf.l10n.t("GitHub Enterprise URIs must be an array of instance URLs."));return o.map(LA)}function LA(r){try{if(typeof r!="string"||!r)throw new Error("Expected a non-empty URI");let e=yf.Uri.parse(r,!0),t=new URL(e.toString()),n=t.hostname.replace(/\.$/,""),i=e.path.replace(/\/+$/,"");if(!["http:","https:"].includes(t.protocol)||!e.authority||t.username||t.password||e.query||e.fragment||["github.com","www.github.com","api.github.com"].includes(n)||i.includes("//")||i.split("/").some(o=>o==="."||o===".."))throw new Error("Expected a GitHub Enterprise instance URL");return e}catch{throw new Error(yf.l10n.t("Invalid GitHub Enterprise instance URI: {0}",String(r)))}}function If(r){r.listener.dispose(),r.engine.dispose(),r.initialChanges.clear()}function YA(r,e){let t=new Map(e.map(n=>[n.id,n]));for(let[n,i]of r.initialChanges)i?t.set(n,i):t.delete(n);return r.initialChanges.clear(),[...t.values()]}var n_=class{constructor(e,t){this._context=e;this._uriHandler=t}_context;_uriHandler;_onDidChangeSessions=new er.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_hosts=new Map;_disposeCancellation=new er.CancellationTokenSource;_pendingUpdate=Promise.resolve();_registration;_configurationError=er.l10n.t("Configure {0} before signing in to GitHub Enterprise.",us);update(e,t){let n=async()=>{try{await this.applyConfiguration(e,t)}catch(i){throw this.handleUpdateError(i),i}};return this._pendingUpdate=this._pendingUpdate.then(n,n)}handleUpdateError(e){this.throwIfDisposed(),!this._hosts.size&&(this._configurationError=e instanceof Error?e.message:String(e),this._registration||this.registerProvider())}async applyConfiguration(e,t){this.throwIfDisposed();let n=[...new Set(e.map(Kr))].sort(),i=n.filter(u=>!this._hosts.has(u)),o=[...this._hosts.values()].filter(u=>!n.includes(u.key));if(this._configurationError=t?.error??er.l10n.t("Configure {0} before signing in to GitHub Enterprise.",us),this._registration&&!i.length&&!o.length)return;for(let u of i)await Ty(this._context,er.Uri.parse(u),e,t?.legacyUri),this.throwIfDisposed();let a=this.createHosts(i),s=this._disposeCancellation.token.onCancellationRequested(()=>a.forEach(If));try{let u=await Promise.all(a.map(v=>v.engine.getSessions(void 0,{authorizationServer:v.authorizationServer})));this.throwIfDisposed();let c=(await Promise.all(o.map(v=>v.engine.getCachedSessions()))).flat();this.throwIfDisposed();let f=a.flatMap((v,d)=>YA(v,u[d]));this.commitHosts(n,a,o,{added:f,removed:c,changed:[]})}catch(u){throw a.forEach(If),u}finally{s.dispose()}}createHosts(e){let t=[];try{for(let n of e)t.push(this.createHost(n));return t}catch(n){throw t.forEach(If),n}}createHost(e){let t=er.Uri.parse(e),n=new Ru(this._context,this._uriHandler,t,Dg(t)),i=new Map,o={key:e,uri:t,authorizationServer:er.Uri.joinPath(t,"/login/oauth"),engine:n,initialChanges:i,listener:n.onDidChangeSessions(a=>{if(this._hosts.get(o.key)===o)this._onDidChangeSessions.fire(a);else{a.removed?.forEach(s=>i.set(s.id,void 0));for(let s of[...a.added??[],...a.changed??[]])i.set(s.id,s)}})};return o}commitHosts(e,t,n,i){let o=new Map(t.map(a=>[a.key,a]));this._hosts=new Map(e.map(a=>[a,o.get(a)??this._hosts.get(a)])),this.registerProvider(),n.forEach(If),(i.added?.length||i.removed?.length)&&this._onDidChangeSessions.fire(i)}registerProvider(){this._registration?.dispose(),this._registration=er.authentication.registerAuthenticationProvider("github-enterprise","GitHub Enterprise",this,{supportsMultipleAccounts:!0,supportedAuthorizationServers:[...this._hosts.values()].map(e=>e.authorizationServer)})}throwIfDisposed(){if(this._disposeCancellation.token.isCancellationRequested)throw new er.CancellationError}async getSessions(e,t={}){let n=await this.resolveHost(t),i=n?[n]:[...this._hosts.values()];return(await Promise.all(i.map(async a=>{let s=await a.engine.getSessions(e&&[...e],{...t,authorizationServer:t.authorizationServer??a.authorizationServer});return this._hosts.get(Kr(a.uri))!==a?[]:s}))).flat()}async createSession(e,t={}){let n=await this.resolveHost(t);if(!n){let o=[...this._hosts.values()];if(!o.length)throw new Error(this._configurationError);if(o.length===1)n=o[0];else{let a=await er.window.showQuickPick(o.map(s=>({label:s.uri.toString(!0),host:s})),{title:er.l10n.t("Sign in to GitHub Enterprise"),placeHolder:er.l10n.t("Select the GitHub Enterprise instance to sign in to"),ignoreFocusOut:!0});if(!a)throw new Error(cn);n=a.host}}this.requireConfiguredHost(n);let i=await n.engine.createSession([...e],{...t,authorizationServer:t.authorizationServer??n.authorizationServer});return this.requireConfiguredHost(n),i}async removeSession(e){let t=[];for(let n of this._hosts.values())(await n.engine.getCachedSessions()).some(i=>i.id===e)&&t.push(n);if(!t.length)throw new Error(er.l10n.t("The GitHub Enterprise session does not belong to a configured instance."));if(t.length>1)throw new Error(er.l10n.t("The GitHub Enterprise session ID matches more than one configured instance."));this.requireConfiguredHost(t[0]),await t[0].engine.removeSession(e)}async resolveHost(e){let t;if(e.authorizationServer){let o=Kr(e.authorizationServer);if(t=[...this._hosts.values()].find(a=>Kr(a.authorizationServer)===o),!t)throw new Error(er.l10n.t("The requested GitHub Enterprise authorization server is not configured."))}let n=[],i=e.account;if(i)for(let o of this._hosts.values())(await o.engine.getCachedSessions()).some(s=>s.account.id===i.id&&s.account.label===i.label)&&n.push(o);if(t&&n.length&&!n.includes(t))throw new Error(er.l10n.t("The GitHub Enterprise account and authorization server belong to different instances."));return t??(n.length===1?n[0]:void 0)}requireConfiguredHost(e){if(this._hosts.get(Kr(e.uri))!==e)throw new Error(er.l10n.t("The selected GitHub Enterprise instance is no longer configured."))}dispose(){this._disposeCancellation.cancel(),this._disposeCancellation.dispose(),this._registration?.dispose(),this._hosts.forEach(If),this._hosts.clear(),this._onDidChangeSessions.dispose()}};function i_(r,e){return/\]\(|command:/i.test(r)?e:r}async function UA(r){let e=new t_;r.subscriptions.push(e),r.subscriptions.push(He.window.registerUriHandler(e));let t=new Ru(r,e);r.subscriptions.push(t),r.subscriptions.push(He.authentication.registerAuthenticationProvider("github","GitHub",t,{supportsMultipleAccounts:!0,supportedAuthorizationServers:[He.Uri.parse("https://github.com/login/oauth")]}));let n=new n_(r,e);r.subscriptions.push(n);let i=async()=>{let s=He.workspace.getConfiguration(),u;try{u=yy(s,He.workspace.isTrusted)}catch(v){let d=i_(v.message,He.l10n.t("Invalid GitHub Enterprise instance URI."));await n.update([],{error:d}),He.window.showErrorMessage(d,{notificationId:"githubAuthentication.enterprise.invalidUri"});return}let c=s.get(ss),f=typeof c=="string"&&/^https?:\/\//i.test(c)?He.Uri.parse(c):void 0;await n.update(u,{legacyUri:f})},o=async()=>{try{await i()}catch(s){He.window.showErrorMessage(i_(He.l10n.t("Could not update GitHub Enterprise authentication: {0}",s instanceof Error?s.message:String(s)),He.l10n.t("Could not update GitHub Enterprise authentication.")),{notificationId:"githubAuthentication.enterprise.updateFailed"})}};r.subscriptions.push(He.workspace.onDidChangeConfiguration(s=>{(s.affectsConfiguration(us)||s.affectsConfiguration(ss))&&o()})),r.subscriptions.push(He.workspace.onDidGrantWorkspaceTrust(o));try{await i()}catch(s){He.window.showErrorMessage(i_(He.l10n.t("Could not initialize GitHub Enterprise authentication: {0}",s instanceof Error?s.message:String(s)),He.l10n.t("Could not initialize GitHub Enterprise authentication.")),{notificationId:"githubAuthentication.enterprise.initializationFailed"})}let a=He.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);r.subscriptions.push(He.workspace.onDidChangeConfiguration(async s=>{if(s.affectsConfiguration("github-authentication.useElectronFetch")){let u=He.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);a!==u&&await He.window.showInformationMessage(He.l10n.t("GitHub Authentication - Reload required"),{modal:!0,detail:He.l10n.t("A reload is required for the fetch setting change to take effect.")},He.l10n.t("Reload Window"))&&await He.commands.executeCommand("workbench.action.reloadWindow")}}))}0&&(module.exports={activate});
/*! Bundled license information:
@nevware21/ts-utils/dist/es5/mod/ts-utils.js:
(*! https://github.com/nevware21/ts-utils v0.14.0 *)
@nevware21/ts-async/dist/es5/mod/ts-async.js:
(*!
* NevWare21 Solutions LLC - ts-async, 0.5.4
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*)
*/
//# sourceMappingURL=extension.js.map