@codingame/monaco-vscode-github-authentication-default-extension 38.1.2 → 39.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- "use strict";var iD=Object.create;var lf=Object.defineProperty;var oD=Object.getOwnPropertyDescriptor;var aD=Object.getOwnPropertyNames;var sD=Object.getPrototypeOf,uD=Object.prototype.hasOwnProperty;var Y=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var nt=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},df=(r,e)=>{for(var t in e)lf(r,t,{get:e[t],enumerable:!0})},Lg=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of aD(e))!uD.call(r,i)&&i!==t&&lf(r,i,{get:()=>e[i],enumerable:!(n=oD(e,i))||n.enumerable});return r};var Tt=(r,e,t)=>(t=r!=null?iD(sD(r)):{},Lg(e||!r||!r.__esModule?lf(t,"default",{value:r,enumerable:!0}):t,r)),cD=r=>Lg(lf({},"__esModule",{value:!0}),r);var d=Y(()=>{});var es,oi,bn,sn,rs,Eu,Av=Y(()=>{"use strict";d();es="function",oi="object",bn="undefined",sn="prototype",rs=Object,Eu=rs[sn]});function ur(r,e){return r||e}function je(r,e){return r?.[e]}function ge(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function DD(r,e,t){var n=ge(r,t);return n.e?e:n.v}function Sf(r){return function(e){return typeof e===r}}function Kg(r){var e="[object "+r+"]";return function(t){return!!(t&&Nf(t)===e)}}function Nf(r){return yu[Du].call(r)}function Vv(r,e){return typeof r===e}function Te(r){return typeof r===Lo||r===Lo}function yD(r){return r===Vr}function B(r){return r===tr||Te(r)}function un(r){return r===tr||r===Vr}function Wg(r){return!!r||r!==Vr}function ID(r){return!bv&&(bv=["string","number","boolean",Lo,"symbol","bigint"]),r!==Tu&&bv.indexOf(r)!==-1}function nr(r){return!r&&B(r)?!1:!!r&&typeof r===Tu}function vt(r){return!!(r&&r.then&&se(r.then))}function Kv(r){return!r||!cn(r)}function cn(r){return!(!r||DD(function(){return!(r&&0+r)},!r))}function Wv(){}function xD(){return[]}function AD(){return!1}function te(r,e){var t=Bv,n=yu[Du][pr](r);n===bD&&(r={stack:_r(r.stack),message:_r(r.message),name:_r(r.name)});try{t=JSON.stringify(r,tr,e?typeof e=="number"?e:4:Vr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):tr)||_r(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function hr(r){throw new Error(r)}function it(r){throw new TypeError(r)}function Df(r){un(r)&&it("Cannot convert undefined or null to object")}function $g(r){Ne(r)||it("'"+te(r)+"' is not a string")}function br(r,e){return!!r&&yu.hasOwnProperty[pr](r,e)}function PD(r,e){return Df(r),br(r,e)||!!CD(r,e)}function RD(r){return r===Su||r===Nu||r===Kr}function ae(r,e,t){if(r&&(nr(r)||se(r))){for(var n in r)if($t(r,n)&&e[pr](un(t)?r:t,n,r[n])===-1)break}}function R(r,e,t){if(r)for(var n=r[Mo]>>>0,i=0;i<n&&!(i in r&&e[pr](un(t)?r:t,r[i],i,r)===-1);i++);}function is(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?Cn[pr](a,1):a)}it('"'+_r(r)+'" not defined for '+te(i))}}function wD(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?Cn[pr](a,1):a)}it('"'+_r(r)+'" not defined for '+te(i))}}function OD(r){return function(e){return e[r]}}function YD(r,e){var t,n=Lr.getOwnPropertyDescriptor;return!un(r)&&n&&(t=ge(n,[r,e]).v||tr),!t&&!un(r)&&(t=ge(function(){for(var i in r)if(i==e)return{enumerable:br(r,i)}}).v),t&&t.enumerable||!1}function qg(r){var e={};if(e[vf.c]=!0,e[vf.e]=!0,r.l){e.get=function(){return r.l.v};var t=UD(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return ae(r,function(n,i){e[vf[n]]=yD(i)?e[vf[n]]:i}),e}function qv(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Dt(r,e,qg(a))}function Ye(r,e,t){return Dt(r,e,qg(t))}function Xg(r,e,t,n,i){var o={};return ae(r,function(a,s){gf(o,a,e?s:a),gf(o,s,t?s:a)}),n?n(o):o}function gf(r,e,t,n){Dt(r,e,{value:t,enumerable:!0,writable:!1})}function Qg(r){return r}function FD(r){return Df(r),r[Su]||tr}function Zg(r,e){if((Q(r)||nr(r)||se(r))&&!MD(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),ae(r,function(n,i){Zg(i,e)}),qt(r)}return r}function Rn(r){return Jg?Zg(r,[]):r}function eE(r){return Xg(r,1,0,qt)}function kD(r){return Xg(r,0,0,qt)}function HD(r){var e={};return ae(r,function(t,n){gf(e,t,n[1]),gf(e,n[0],n[1])}),qt(e)}function rE(r){return HD(r)}function nE(){var r;return typeof globalThis!==Lo&&(r=globalThis),!r&&typeof self!==Lo&&(r=self),!r&&typeof window!==Lo&&(r=window),!r&&typeof global!==Lo&&(r=global),r}function yf(){if(!Cv){var r=ge(nE).v||{};Cv=r[Fg]=r[Fg]||{}}return Cv}function BD(r,e,t){return Df(r),t<0?Bv:(e=e||0,e<0&&(e=GD(e+r[Mo],0)),Te(t)?kg(r,e):kg(r,e,e+t))}function Ho(r,e){return Cr(r,0,e)}function jD(r,e){return r&&(ge(function(){r[Ug]=!0,r[Mg]=e}),ge(Ye,[r,Ug,{v:!0,w:!1,e:!1}]),ge(Ye,[r,Mg,{v:e,w:!1,e:!1}])),r}function zD(r,e){var t=null;function n(){}if(un(r))t={};else{var i=typeof r;i!==Tu&&i!==hf&&it("Prototype must be an Object or function: "+te(r)),n[Kr]=r,ge(function(){n[Su]=r}),t=new n}return e&&ge($v,[t,e]),t}function cr(){return(Date.now||VD)()}function VD(){return new Date().getTime()}function Uo(r,e,t){return r.apply(e,t)}function Bi(){Er=yf()}function Jv(r,e){var t={};return!Er&&Bi(),t.b=Er.lzy,Dt(t,"v",{configurable:!0,get:function(){var n=Uo(r,null,e);return Er.lzy||Dt(t,"v",{value:n}),t.b=Er.lzy,n}}),t}function XD(){if(!Pv){var r=yf();Pv=r.gblSym=r.gblSym||{k:{},s:{}}}return Pv}function Qv(r){var e="_"+qD+++"_"+WD.v,t=jv+"("+r+")";function n(o,a){Ye(i,o,{v:a,e:!1,w:!1})}var i=fn(null);return n("description",_r(r)),n(Du,function(){return t+$D+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),jD(i,"symbol")}function JD(r){var e=XD();if(!$t(e.k,r)){var t=Qv(r),n=$r(e.s).length;t[Hg]=function(){return n+"_"+t[Du]()},e.k[r]=t,e.s[t[Hg]()]=_r(r)}return e.k[r]}function QD(r){!_f&&(_f={});var e,t=tE[r];return t&&(e=_f[t]=_f[t]||Qv(jv+"."+t)),e}function yt(r){return Dt({toJSON:function(){return r}},"v",{value:r})}function Iu(r,e){var t;return function(){return!Er&&Bi(),(!t||Er.lzy)&&(t=yt(ge(r,e).v)),t.v}}function _t(r){return!Er&&Bi(),(!hu||r===!1||Er.lzy)&&(hu=yt(ge(nE).v||tr)),hu.v}function le(r,e){var t;if(!hu||e===!1?t=_t(e):t=hu.v,t&&t[r])return t[r];if(r===iE)try{return window}catch{}return tr}function Go(){return!!Sr()}function as(){return!!Nr()}function xu(){return!!Pr()}function Zv(){return!!If()}function xf(){return ts=yt(ge(le,[jv]).v),ts}function ZD(r){var e=(Er.lzy?0:ts)||xf();return e.v?e.v[r]:Vr}function aE(){return!!ey()}function ey(){return!Er&&Bi(),((Er.lzy?0:ts)||xf()).v}function Au(r,e){var t=tE[r];!Er&&Bi();var n=(Er.lzy?0:ts)||xf();return n.v?n.v[t||r]:e?Vr:QD(r)}function ss(r,e){!Er&&Bi();var t=(Er.lzy?0:ts)||xf();return t.v?t.v(r):e?tr:Qv(r)}function Af(r){return!Er&&Bi(),Rv=(Er.lzy?0:Rv)||yt(ge(ZD,["for"]).v),(Rv.v||JD)(r)}function Ef(r){return!!r&&se(r.next)}function e_(r){return!un(r)&&se(r[Au(3)])}function bf(r,e,t){if(r&&(Ef(r)||(!pf&&(pf=yt(Au(3))),r=r[pf.v]?r[pf.v]():tr),Ef(r))){var n=Vr,i=Vr;try{for(var o=0;!(i=r.next()).done&&e[pr](un(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 ln(r,e){return!Te(e)&&r&&(Q(e)?Uo(r.push,r,e):Ef(e)||e_(e)?bf(e,function(t){r.push(t)}):r.push(e)),r}function us(r,e,t){return((r?r.slice:tr)||Cn).apply(r,Cn[pr](arguments,1))}function ry(r,e,t){return Me(r,e,t)!==-1}function ty(r,e){var t;return!wv&&(wv=yt((t={},t[Su]=[],t instanceof Array))),wv.v?r[Su]=e:ae(e,function(n,i){return r[n]=i}),r}function ny(r,e,t){ge(Ye,[e,mf,{v:r,c:!0,e:!1}]),e=sE(e,t);function n(){this[Nu]=e,ge(Ye,[this,mf,{v:r,c:!0,e:!1}])}return e[Kr]=t===tr?fn(t):(n[Kr]=t[Kr],new n),e}function Gg(r,e){e&&(r[mf]=e)}function t_(r,e,t,n){var i=t||Error,o=i[Kr][mf],a=Error.captureStackTrace;return ny(r,function(){var s=this,u=arguments;try{ge(Gg,[i,r]);var c=Uo(i,s,n?n(u):Cn[pr](u))||s;if(c!==s){var l=Gv(s);l!==Gv(c)&&sE(c,l)}return a&&a(c,s[Nu]),e&&e(c,u),c}finally{ge(Gg,[i,o])}},i)}function oy(r){return function(t){return Df(t),t=_r(t),t&&(t=iy(t,r,Bv)),t}}function uy(r,e,t){if(r!==tr&&r!==Vr){for(var n in r)if($t(r,n)&&e[pr](un(t)?r:t,n,r[n])===-1)return;R(sy(r),function(i){if(LD(r,i)&&e[pr](un(t)?r:t,i,r[i])===-1)return-1})}}function cy(r,e,t){uy(r,function(n,i){if(!RD(n))return e[pr](un(t)?r:t,n,i)},t)}function qr(r){if(!r||typeof r!==Tu)return!1;Lv||(Lv=as()?Nr():!0);var e=!1;if(r!==Lv){Yv||(Ov=Function[Kr][Du],Yv=Ov[pr](Lr));try{var t=Gv(r);e=!t,e||(br(t,Nu)&&(t=t[Nu]),e=!!(t&&typeof t===hf&&Ov[pr](t)===Yv))}catch{}}return e}function fy(r,e){e&&r.push(e)}function sr(r,e){e&&e[Kr]}function ly(){var r=[yu,ai,ns,dD,_D,mD,ED,SD,TD];return ge(le,["Map"]).v,ge(le,["Set"]).v,ge(le,["WeakMap"]).v,ge(le,["WeakSet"]).v,ge(le,["Promise"]).v,ge(le,["Symbol"]).v,ge(le,["ArrayBuffer"]).v,ge(le,["SharedArrayBuffer"]).v,ge(le,["DataView"]).v,ge(le,["Int8Array"]).v,ge(le,["Uint8Array"]).v,ge(le,["Uint8ClampedArray"]).v,ge(le,["Int16Array"]).v,ge(le,["Uint16Array"]).v,ge(le,["Int32Array"]).v,ge(le,["Uint32Array"]).v,ge(le,["Float32Array"]).v,ge(le,["Float64Array"]).v,ge(le,["BigInt64Array"]).v,ge(le,["BigUint64Array"]).v,ge(le,["WeakRef"]).v,ge(le,["FinalizationRegistry"]).v,r}function dy(r){return Uv||(Uv=yt(ly())),Me(Uv.v,r)>=0}function vy(r){return r.value&&fE(r),!0}function _y(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 n_(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===Tu?u=qr(e):c=ID(s));var l={type:s,isPrim:c,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(v,_){return n_(r,v,_?a:t,_)},copyTo:function(v,_){return cE(r,v,_,a)}};return l.isPrim?i&&i[pr](t,l)?l.result:e:_y(r,e,o,function(v){Ye(l,"result",{g:function(){return v.v},s:function(p){v.v=p}});for(var _=0,g=i;!(g||(_<Bg.length?Bg[_++]:vy))[pr](t,l);)g=tr})}function cE(r,e,t,n){return dy(t)||cy(t,function(i,o){e[i]=n_(r,o,n,i)}),e}function py(r,e,t){var n={handler:t,src:e,path:[]};return cE([],r,e,n)}function my(r,e){var t={handler:e,src:r};return n_([],r,t)}function gy(r){var e=r.value;if(Q(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function Ey(r){var e=r.value;return Tf(e)?(r.result=new Date(e.getTime()),!0):!1}function hy(r){return r.type===hf}function fE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function Sy(r,e){return R(e,function(t){py(r,t)}),r}function i_(r,e,t,n,i,o,a){return Sy(my(r)||{},Cn[pr](arguments))}function Bo(){return!Er&&Bi(),(!Mv||Er.lzy)&&(Mv=yt(ge(le,["performance"]).v)),Mv.v}function Cu(){var r=Bo();return r&&r.now?r.now():cr()}function Ny(r,e,t){$g(r);var n=Ne(e)?e:_r(e),i=!Te(t)&&t<r[Mo]?t:r[Mo];return Cr(r,i-n[Mo],i)===n}function Ty(r,e,t){$g(r);var n=Ne(e)?e:_r(e),i=t>0?t:0;return Cr(r,i,i+n[Mo])===n}function yy(r,e,t){var n=!0,i=r?e(tr):tr,o;function a(){return n=!1,i&&i[kv]&&i[kv](),o}function s(){i&&t(i),i=tr}function u(){return i=e(i),n||a(),o}function c(l){!l&&i&&s(),l&&!i&&u()}return o={cancel:s,refresh:u},o[Hv]=function(){return i&&i[Hv]?i[Hv]():n},o[Fv]=function(){return n=!0,i&&i[Fv]&&i[Fv](),o},o[kv]=a,o=Dt(o,Dy,{get:function(){return!!i},set:c}),{h:o,dn:function(){i=tr}}}function Ay(r){var e=se(r)?r:Iy;if(!e){var t=yf().tmOut||[];Q(t)&&t.length>0&&se(t[0])&&(e=t[0])}return e||setTimeout}function by(r){var e=se(r)?r:xy;if(!e){var t=yf().tmOut||[];Q(t)&&t.length>1&&se(t[1])&&(e=t[1])}return e||clearTimeout}function o_(r,e,t){var n=Q(e),i=n?e.length:0,o=Ay(i>0?e[0]:n?Vr:e),a=by(i>1?e[1]:Vr),s=t[0];t[0]=function(){u.dn(),Uo(s,Vr,Cn[pr](arguments))};var u=yy(r,function(c){if(c){if(c.refresh)return c.refresh(),c;Uo(a,Vr,[c])}return Uo(o,Vr,t)},function(c){Uo(a,Vr,[c])});return u.h}function Mt(r,e){return o_(!0,Vr,Cn[pr](arguments))}function lE(r,e,t){return o_(!0,r,Cn[pr](arguments,1))}function dE(r,e){return o_(!1,Vr,Cn[pr](arguments))}var Vr,tr,Bv,hf,Tu,Kr,Su,Lo,Nu,jv,Mo,mf,pr,Du,zv,fD,Lr,yu,jg,ai,zg,Vg,ns,Cn,lD,dD,vD,_D,pD,mD,gD,ED,hD,SD,ND,TD,Ug,Mg,bv,Ne,se,Q,Tf,Wr,Pn,Fo,_r,bD,CD,$t,ko,LD,UD,vf,Dt,$v,MD,Jg,os,$r,qt,Xv,Gv,tE,Fg,Cv,GD,kg,Cr,wn,fn,Er,KD,WD,Hg,$D,Pv,qD,_f,iE,hu,Sr,Nr,Pr,If,oE,ts,Rv,pf,Me,si,r_,cs,bu,wv,sE,iy,ay,ke,uE,sy,Ov,Yv,Lv,Uv,Bg,Mv,dn,jo,fs,Fv,kv,Hv,Dy,Iy,xy,he=Y(()=>{"use strict";d();Vr=void 0,tr=null,Bv="",hf="function",Tu="object",Kr="prototype",Su="__proto__",Lo="undefined",Nu="constructor",jv="Symbol",Mo="length",mf="name",pr="call",Du="toString",zv="getOwnPropertyDescriptor",fD="getOwnPropertySymbols",Lr=ur(Object),yu=je(Lr,Kr),jg=ur(String),ai=je(jg,Kr),zg=ur(Math),Vg=ur(Array),ns=je(Vg,Kr),Cn=je(ns,"slice"),lD=ur(Number),dD=je(lD,Kr),vD=ur(Function),_D=je(vD,Kr),pD=ur(Date),mD=je(pD,Kr),gD=ur(RegExp),ED=je(gD,Kr),hD=ur(Boolean),SD=je(hD,Kr),ND=ur(Error),TD=je(ND,Kr),Ug="_polyfill",Mg="__nw21$polytype__";Ne=Sf("string"),se=Sf(hf);Q=je(Vg,"isArray"),Tf=Kg("Date"),Wr=Sf("number"),Pn=Sf("boolean"),Fo=Kg("Error");_r=ur(jg),bD="[object Error]";CD=ur(je(Lr,zv),Wv),$t=ur(je(Lr,"hasOwn"),PD);ko=is;LD=wD("propertyIsEnumerable",yu,YD),UD=ur(je(Lr,zv),Wv),vf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Dt=je(Lr,"defineProperty"),$v=je(Lr,"defineProperties");MD=ur(je(Lr,"isFrozen"),AD),Jg=je(Lr,"freeze");os=je(Lr,"assign"),$r=je(Lr,"keys");qt=ur(Jg,Qg),Xv=ur(je(Lr,"seal"),Qg),Gv=ur(je(Lr,"getPrototypeOf"),FD);tE=kD({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}),Fg="__tsUtils$gblCfg";GD=je(zg,"max"),kg=ko("slice",ai),Cr=ko("substring",ai),wn=is("substr",ai,BD);fn=ur(je(Lr,"create"),zD);KD=je(zg,"random"),WD=Jv(function(){for(var r=cr().toString(36).slice(2);r.length<16;)r+=KD().toString(36).slice(2);return r=r.substring(0,16),r}),Hg="_urid",$D="$nw21sym",qD=0;iE="window";Sr=Iu(le,["document"]);Nr=Iu(le,[iE]);Pr=Iu(le,["navigator"]);If=Iu(le,["history"]),oE=Iu(function(){return!!ge(function(){return process&&(process.versions||{}).node}).v});Me=ko("indexOf",ns),si=ko("map",ns);r_=is("includes",ns,ry),cs=OD(Mo),bu=ko("reduce",ns),sE=ur(je(Lr,"setPrototypeOf"),ty);iy=ko("replace",ai);ay=oy(/^\s+|(?=\s)\s+$/g),ke=is("trim",ai,ay),uE=ur(je(Lr,zv),Wv),sy=ur(je(Lr,fD),xD);Bg=[gy,fE,hy,Ey];dn=ko("indexOf",ai),jo=is("endsWith",ai,Ny);fs=is("startsWith",ai,Ty);Fv="ref",kv="unref",Hv="hasRef",Dy="enabled"});function It(r,e){typeof e!==es&&e!==null&&it("Class extends value "+String(e)+" is not a constructor or null"),a_(r,e);function t(){this.constructor=r}r[sn]=e===null?fn(e):(t[sn]=e[sn],new t)}function Cf(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var tb,nb,vE,Py,Xt,a_,_E=Y(()=>{"use strict";d();he();Av();tb=(_t()||{}).Symbol,nb=(_t()||{}).Reflect,vE="hasOwnProperty",Py=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Eu[vE].call(e,i)&&(r[i]=e[i])}return r},Xt=os||Py,a_=function(r,e){return a_=rs.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[vE](i)&&(t[i]=n[i])},a_(r,e)}});var pE=Y(()=>{"use strict";d()});var xt=Y(()=>{"use strict";d();Av();_E();pE();he()});function Of(r){return r&&(r===__[ui]||r===Array[ui])}function p_(r){return Of(r)||r===Function[ui]}function zo(r){var e;if(r){if(Ru)return Ru(r);var t=r[v_]||r[ui]||(r[Yf]?r[Yf][ui]:null);e=r[Rf]||t,br(r,Rf)||(delete r[s_],e=r[Rf]=r[s_]||r[Rf],r[s_]=t)}return e}function Mf(r,e){var t=[];if(EE)t=EE(r);else for(var n in r)typeof n=="string"&&br(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function m_(r,e,t){return e!==Yf&&typeof r[e]===Lf&&(t||br(r,e))&&e!==v_&&e!==ui}function Ff(r){it("DynamicProto: "+r)}function wy(r){var e=fn(null);return Mf(r,function(t){!e[t]&&m_(r,t,!1)&&(e[t]=r[t])}),e}function g_(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function Oy(r,e,t,n){function i(u,c,l){var v=c[l];if(v[c_]&&n){var _=u[Uf]||{};_[Pu]!==!1&&(v=(_[c[ls]]||{})[l]||v)}return function(){return v.apply(u,arguments)}}var o=fn(null);Mf(t,function(u){o[u]=i(e,t,u)});for(var a=zo(r),s=[];a&&!p_(a)&&!g_(s,a);)Mf(a,function(u){!o[u]&&m_(a,u,!Ru)&&(o[u]=i(e,a,u))}),s.push(a),a=zo(a);return o}function Yy(r,e,t,n){var i=null;if(r&&br(t,ls)){var o=r[Uf]||fn(null);if(i=(o[t[ls]]||fn(null))[e],i||Ff("Missing ["+e+"] "+Lf),!i[f_]&&o[Pu]!==!1){for(var a=!br(r,e),s=zo(r),u=[];a&&s&&!p_(s)&&!g_(u,s);){var c=s[e];if(c){a=c===n;break}u.push(s),s=zo(s)}try{a&&(r[e]=i),i[f_]=1}catch{o[Pu]=!1}}}return i}function Ly(r,e,t){var n=e[r];return n===t&&(n=zo(e)[r]),typeof n!==Lf&&Ff("["+r+"] is not a "+Lf),n}function Uy(r,e,t,n,i){function o(u,c){var l=function(){var v=Yy(this,c,u,l)||Ly(c,u,l);return v.apply(this,arguments)};return l[c_]=1,l}if(!Of(r)){var a=t[Uf]=t[Uf]||fn(null);if(!Of(a)){var s=a[e]=a[e]||fn(null);a[Pu]!==!1&&(a[Pu]=!!i),Of(s)||Mf(t,function(u){m_(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!br(r,u)||r[u]&&!r[u][c_])&&(r[u]=o(r,u)))})}}}function My(r,e){if(Ru){for(var t=[],n=zo(e);n&&!p_(n)&&!g_(t,n);){if(n===r)return!0;t.push(n),n=zo(n)}return!1}return!0}function u_(r,e){return br(r,ui)?r.name||e||mE:((r||{})[Yf]||{}).name||e||mE}function Ce(r,e,t,n){br(r,ui)||Ff("theClass is an invalid class definition.");var i=r[ui];My(i,e)||Ff("["+u_(r)+"] not in hierarchy of ["+u_(e)+"]");var o=null;br(i,ls)?o=i[ls]:(o=Ry+u_(r,"_")+"$"+d_.n,d_.n++,i[ls]=o);var a=Ce[SE],s=!!a[wf];s&&n&&n[wf]!==void 0&&(s=!!n[wf]);var u=wy(e),c=Oy(i,e,u,s);t(e,c);var l=!!Ru&&!!a[l_];l&&n&&(l=!!n[l_]),Uy(i,o,e,u,l!==!1)}var Pf,Yf,ui,Lf,Uf,c_,ls,Ry,f_,Pu,SE,mE,v_,Rf,gE,s_,wf,l_,__,Ru,EE,hE,d_,Ur=Y(()=>{"use strict";d();he();Yf="constructor",ui="prototype",Lf="function",Uf="_dynInstFuncs",c_="_isDynProxy",ls="_dynClass",Ry="_dynCls$",f_="_dynInstChk",Pu=f_,SE="_dfOpts",mE="_unknown_",v_="__proto__",Rf="_dyn"+v_,gE="__dynProto$Gbl",s_="_dynInstProto",wf="useBaseInst",l_="setInstFuncs",__=Object,Ru=__.getPrototypeOf,EE=__.getOwnPropertyNames,hE=_t(),d_=hE[gE]||(hE[gE]={o:(Pf={},Pf[l_]=!0,Pf[wf]=!0,Pf),n:1e3});Ce[SE]=d_.o});var E_,NE=Y(()=>{"use strict";d();E_=100});var fr,h_,wu=Y(()=>{"use strict";d();he();fr=eE,h_=rE});var vn,Fy,TE=Y(()=>{"use strict";d();wu();vn=fr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),Fy=fr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ft,S_=Y(()=>{"use strict";d();wu();Ft=fr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var At,ji,q,Vo,Ko,ds,ci,_n,pn,ze,zi,xe,On,kf,fi,li,Yn,vs,_s,bt,N_,Hf,Wo,Ou,Vi,Mr,ps,Ki,Rr,Gf,T_,Wi,D_,Ct,Yu,$o,Bf,Ln,kt,ms,Un,mn,Pt,$i,qo,Ht,qi,jf,Lu,Jt,zf,gn,y_,Rt,Uu,Xo,I_,x_,Mu,Xi,Jo,En,Vf,A_,gs,b_,Kf,Qo,C_,Es,hs,Ji,Ge=Y(()=>{"use strict";d();At="toLowerCase",ji="blkVal",q="length",Vo="rdOnly",Ko="notify",ds="warnToConsole",ci="throwInternal",_n="setDf",pn="watch",ze="logger",zi="apply",xe="push",On="splice",kf="hdlr",fi="cancel",li="initialize",Yn="identifier",vs="removeNotificationListener",_s="addNotificationListener",bt="isInitialized",N_="instrumentationKey",Hf="INACTIVE",Wo="value",Ou="getNotifyMgr",Vi="getPlugin",Mr="name",ps="iKey",Ki="time",Rr="processNext",Gf="getProcessTelContext",T_="pollInternalLogs",Wi="enabled",D_="stopPollingInternalLogs",Ct="unload",Yu="onComplete",$o="version",Bf="loggingLevelConsole",Ln="createNew",kt="teardown",ms="messageId",Un="message",mn="isAsync",Pt="diagLog",$i="_doTeardown",qo="update",Ht="getNext",qi="setNextPlugin",jf="protocol",Lu="userAgent",Jt="split",zf="nodeType",gn="replace",y_="logInternalMessage",Rt="type",Uu="handler",Xo="status",I_="getResponseHeader",x_="getAllResponseHeaders",Mu="isChildEvt",Xi="data",Jo="getCtx",En="setCtx",Vf="complete",A_="itemsReceived",gs="urlString",b_="sendPOST",Kf="headers",Qo="timeout",C_="setRequestHeader",Es="traceId",hs="spanId",Ji="traceFlags"});function DE(r,e){P_||(P_=t_("AggregationError",function(n,i){i[q]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw R(e,function(n,i){t+=`
2
- `.concat(i," > ").concat(te(n))}),new P_(t,e||[])}var P_,yE=Y(()=>{"use strict";d();he();Ge()});function Gt(r,e){return bE(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:F_,rejected:!0,reason:t}):t})}function bE(r,e,t,n){var i=r;try{if(vt(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&&ky(i,n)}return i}function ky(r,e){var t=r;return e&&(vt(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function Hy(r,e,t,n){R_=R_||{toString:function(){return"[[PromiseState]]"}},w_=w_||{toString:function(){return"[[PromiseResult]]"}},O_=O_||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[R_]={get:e},i[w_]={get:t},i[O_]={get:n},$v(r,i)}function Gy(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function By(r,e,t,n){var i=Sr();!Wf&&(Wf=yt(!!ge(Gy,[i]).v));var o=Wf.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),Wf.v&&o.initEvent(e,!1,!0),o&&r[xE])r[xE](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 AE(r){return se(r)?r.toString():te(r)}function RE(r,e,t){var n=us(arguments,3),i=0,o=!1,a,s=[],u=zy++,c=Fu.length>0?Fu[Fu.length-1]:void 0,l=!1,v=null,_;function g(U,j){try{Fu.push(u),l=!0,v&&v.cancel(),v=null;var W=r(function(ne,V){s.push(function(){try{var G=i===2?U:j,Z=Te(G)?a:se(G)?G(a):G;vt(Z)?Z.then(ne,V):G?ne(Z):i===3?V(Z):ne(Z)}catch(fe){V(fe)}}),o&&x()},n);return W}finally{Fu.pop()}}function p(U){return g(void 0,U)}function N(U){var j=U,W=U;return se(U)&&(j=function(ne){return U&&U(),ne},W=function(ne){throw U&&U(),ne}),g(j,W)}function E(){return CE[i]}function x(){if(s.length>0){var U=s.slice();s=[],l=!0,v&&v.cancel(),v=null,e(U)}}function T(U,j){return function(W){if(i===j){if(U===2&&vt(W)){i=1,W.then(T(2,1),T(3,1));return}i=U,o=!0,a=W,x(),!l&&U===3&&!v&&(v=Mt(I,Vy))}}}function I(){if(!l)if(l=!0,oE())process.emit(PE,a,_);else{var U=Nr()||_t();!Y_&&(Y_=yt(ge(le,[$f+"RejectionEvent"]).v)),By(U,jy,function(j){return Ye(j,"promise",{g:function(){return _}}),j.reason=a,j},!!Y_.v)}}_={then:g,catch:p,finally:N},Dt(_,"state",{get:E}),IE&&Hy(_,E,function(){return Nf(a)},function(){return l}),aE()&&(_[Au(11)]="IPromise");function w(){return"IPromise"+(IE?"["+u+(Te(c)?"":":"+c)+"]":"")+" "+E()+(o?" - "+AE(a):"")}return _.toString=w,(function(){se(t)||it($f+": executor is not a function - "+AE(t));var j=T(3,0);try{t.call(_,T(2,0),j)}catch(W){j(W)}})(),_}function Ky(r){return function(e){var t=us(arguments,1);return r(function(n,i){try{var o=[],a=1;bf(e,function(s,u){s&&(a++,bE(s,function(c){o[u]=c,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function Wy(r){return yt(function(e){var t=us(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,c){a++,Gt(u,function(l){l.rejected?o[c]={status:F_,reason:l.reason}:o[c]={status:"fulfilled",value:l.value},--a===0&&n(o)})}try{Q(e)?R(e,s):e_(e)?bf(e,s):it("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function wE(r){R(r,function(e){try{e()}catch{}})}function $y(r){var e=Wr(r)?r:0;return function(t){Mt(function(){wE(t)},e)}}function OE(r,e){return RE(OE,$y(e),r,e)}function qy(r,e){!L_&&(L_=yt(ge(le,[$f]).v||null));var t=L_.v;if(!t)return OE(r);se(r)||it($f+": executor is not a function - "+te(r));var n=0;function i(){return CE[n]}var o=new t(function(a,s){function u(l){n=2,a(l)}function c(l){n=3,s(l)}r(u,c)});return Dt(o,"state",{get:i}),o}function ku(r){return RE(ku,wE,r)}function YE(r,e){return!U_&&(U_=Wy(ku)),U_.v(r,e)}function Qt(r,e){return!M_&&(M_=yt(qy)),M_.v.call(this,r,e)}var $f,F_,R_,w_,O_,IE,CE,xE,Wf,PE,jy,Fu,zy,Vy,Y_,L_,U_,M_,LE,Xb,Zo=Y(()=>{"use strict";d();he();$f="Promise",F_="rejected";IE=!1;CE=["pending","resolving","resolved",F_],xE="dispatchEvent";PE="unhandledRejection",jy=PE.toLowerCase(),Fu=[],zy=0,Vy=10;LE=Ky(Qt),Xb=Au(11)});var Bt,me,Qi,ir,qf,Hu,di,ea,wt,ra,Ss,Zi,Ns,Mn,Xf,Jf,Qf,Ts,Zf,el,UE,Tr=Y(()=>{"use strict";d();Bt=void 0,me="",Qi="channels",ir="core",qf="createPerfMgr",Hu="disabled",di="extensionConfig",ea="extensions",wt="processTelemetry",ra="priority",Ss="eventsSent",Zi="eventsDiscarded",Ns="eventsSendRequest",Mn="perfEvent",Xf="offlineEventsStored",Jf="offlineBatchSent",Qf="offlineBatchDrop",Ts="getPerfMgr",Zf="domain",el="path",UE="Not dynamic - "});function eo(r){return!B(r)}function ta(r){var e=r;return e&&Ne(e)&&(e=e[gn](Jy,function(t,n){return n.toUpperCase()}),e=e[gn](Qy,"_"),e=e[gn](Zy,function(t,n){return"_"+n})),e}function mr(r,e){return r&&e?dn(r,e)!==-1:!1}function hn(r){return r&&r.toISOString()||""}function or(r){return Fo(r)?r[Mr]:me}function Zt(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 Gu(r,e,t){var n;return r?(n=r[e],!n&&B(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function FE(r,e){var t=null,n=null;return se(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][zi](n,i)}}function k_(r,e,t){if(r&&e&&nr(r)&&nr(e)){var n=function(o){if(Ne(o)){var a=e[o];se(a)?(!t||t(o,!0,e,r))&&(r[o]=FE(e,o)):(!t||t(o,!1,e,r))&&($t(r,o)&&delete r[o],Ye(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function vi(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=FE(t,n))}function jt(r,e,t,n){return r&&e&&nr(r)&&Q(t)&&R(t,function(i){Ne(i)&&vi(r,i,e,i,n)}),r}function H_(r){return(function(){function e(){var t=this;r&&ae(r,function(n,i){t[n]=i})}return e})()}function Ot(r){return r&&os&&(r=rs(os({},r))),r}function rl(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[q],c=!1,l=1;for(u>0&&Pn(s)&&(c=s,s=a[l]||{},l++),nr(s)||(s={});l<u;l++){var v=a[l],_=Q(v),g=nr(v);for(var p in v){var N=_&&p in v||g&&$t(v,p);if(N){var E=v[p],x=void 0;if(c&&E&&((x=Q(E))||qr(E))){var T=s[p];x?Q(T)||(T=[]):qr(T)||(T={}),E=rl(c,T,E)}E!==void 0&&(s[p]=E)}}}return s}function Sn(r){try{return r.responseText}catch{}return null}function na(r,e){return r?"XDomainRequest,Response:"+Sn(r)||"":e}function _i(r,e){return r?"XMLHttpRequest,Status:"+r[Xo]+",Response:"+Sn(r)||r.response||"":e}function pi(r,e){return e&&(Wr(e)?r=[e].concat(r):Q(e)&&(r=e.concat(r))),r}function G_(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,eI,n),t&&a(s,ME,t),s.open(r,e,!i),t&&a(s,ME,t),!i&&o&&a(s,rI,o),s}function tl(r){var e={};if(Ne(r)){var t=ke(r)[Jt](/[\r\n]+/);R(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=ke(n.substring(0,i))[At](),a=ke(n.substring(i+1));e[o]=a}else e[ke(n)]=1}})}return e}function Ds(r,e,t){if(!r[t]&&e&&e[I_]){var n=e[I_](t);n&&(r[t]=ke(n))}return r}function mi(r,e){var t={};return r[x_]?t=tl(r[x_]()):e&&(t=Ds(t,r,iI),t=Ds(t,r,tI),t=Ds(t,r,nI)),t}var Xy,Jy,Qy,Zy,o0,eI,ME,rI,tI,nI,iI,Fn=Y(()=>{"use strict";d();xt();he();Ge();Tr();Xy="getPrototypeOf",Jy=/-([a-z])/g,Qy=/([^\w\d_$])/g,Zy=/^(\d+[\w\d_$])/,o0=Object[Xy];eI="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ME="withCredentials",rI="timeout";tI="kill-duration",nI="kill-duration-seconds",iI="time-delta-millis"});function BE(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[sn];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function W_(r){GE=r}function ia(r){if(r&&GE){var e=le("__mockLocation");if(e)return e}return typeof location===oi&&location?location:le(aI)}function Bu(){return typeof console!==bn?console:le(sI)}function kn(){return!!(typeof JSON===oi&&JSON||le(kE)!==null)}function Xr(){return kn()?JSON||le(kE):null}function ju(){return le(uI)}function zu(){return le(cI)}function ro(){var r=Pr();return r&&r.product?r.product===fI:!1}function to(){var r=Pr();if(r&&(r[Lu]!==j_||B_===null)){j_=r[Lu];var e=(j_||me)[At]();B_=mr(e,V_)||mr(e,K_)}return B_}function Vu(r){if(r===void 0&&(r=null),!r){var e=Pr()||{};r=e?(e.userAgent||me)[At]():me}var t=(r||me)[At]();if(mr(t,V_)){var n=Sr()||{};return Math.max(parseInt(t[Jt](V_)[1]),n[oI]||0)}else if(mr(t,K_)){var i=parseInt(t[Jt](K_)[1]);if(i)return i+4}return null}function en(r){return(z_===null||r===!1)&&(z_=xu()&&!!Pr().sendBeacon),z_}function gi(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=BE(t,"keepalive"))}catch{}return e}function Ku(){return ys===null&&(ys=typeof XDomainRequest!==bn,ys&&Is()&&(ys=ys&&!BE(le(HE),"withCredentials"))),ys}function Is(){var r=!1;try{var e=le(HE);r=!!e}catch{}return r}function jE(r,e){if(r)for(var t=0;t<r[q];t++){var n=r[t];if(n[Mr]&&n[Mr]===e)return n}return{}}function $_(r){var e=Sr();return e&&r?jE(e.querySelectorAll("meta"),r).content:null}function q_(r){var e,t=Bo();if(t){var n=t.getEntriesByType("navigation")||[];e=jE((n[q]>0?n[0]:{}).serverTiming,r).description}return e}var oI,aI,sI,kE,uI,cI,fI,V_,K_,HE,B_,j_,GE,ys,z_,no=Y(()=>{"use strict";d();xt();he();Ge();Fn();Tr();oI="documentMode",aI="location",sI="console",kE="JSON",uI="crypto",cI="msCrypto",fI="ReactNative",V_="msie",K_="trident/",HE="XMLHttpRequest",B_=null,j_=null,GE=!1,ys=null,z_=null});function lI(r){r<0&&(r>>>=0),Wu=VE+r&io,$u=KE-r&io,WE=!0}function dI(){try{var r=cr()&2147483647;lI((Math.random()*zE^r)+r)}catch{}}function X_(r){return r>0?Math.floor(Ei()/io*(r+1))>>>0:0}function Ei(r){var e=0,t=ju()||zu();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&io),e===0&&to()&&(WE||dI(),e=$E()&io),e===0&&(e=Math.floor(zE*Math.random()|0)),r||(e>>>=0),e}function $E(r){$u=36969*($u&65535)+($u>>16)&io,Wu=18e3*(Wu&65535)+(Wu>>16)&io;var e=($u<<16)+(Wu&65535)>>>0&io|0;return r||(e>>>=0),e}function qu(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=Ei()>>>0,n=0,i=me;i[q]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(Ei()<<2&4294967295|t&3)>>>0,n=0);return i}var zE,io,VE,KE,WE,Wu,$u,nl=Y(()=>{"use strict";d();he();Ge();no();Tr();zE=4294967296,io=4294967295,VE=123456789,KE=987654321,WE=!1,Wu=VE,$u=KE});function XE(r){return r[zf]===1||r[zf]===9||!+r[zf]}function pI(r,e){var t=e[r.id];if(!t){t={};try{XE(e)&&Ye(e,r.id,{e:!1,v:t})}catch{}}return t}function Jr(r,e){return e===void 0&&(e=!1),ta(r+_I+++(e?"."+qE:me)+vI)}function il(r){var e={id:Jr("_aiData-"+(r||me)+"."+qE),accept:function(t){return XE(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[ta(n)]:(o&&(a=pI(e,t),a[ta(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var qE,vI,_I,xs=Y(()=>{"use strict";d();he();Ge();Fn();Tr();nl();qE="3.3.4",vI="."+qu(6),_I=0});function ol(r){return r&&nr(r)&&(r.isVal||r.fb||$t(r,"v")||$t(r,"mrg")||$t(r,"ref")||r.set)}function JE(r,e,t){var n,i=t.dfVal||Wg;if(e&&t.fb){var o=t.fb;Q(o)||(o=[o]);for(var a=0;a<o[q];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,_r(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function J_(r,e,t){var n=t;if(t&&ol(t)&&(n=JE(r,e,t)),n){ol(n)&&(n=J_(r,e,n));var i;Q(n)?(i=[],i[q]=n[q]):qr(n)&&(i={}),i&&(ae(n,function(o,a){a&&ol(a)&&(a=J_(r,e,a)),i[o]=a}),n=i)}return n}function Xu(r,e,t,n){var i,o,a,s=n,u,c,l,v;ol(s)?(i=s.isVal,o=s.set,l=s[Vo],v=s[ji],u=s.mrg,c=s.ref,!c&&Te(c)&&(c=!!u),a=JE(r,e,s)):a=n,v&&r[ji](e,t);var _,g=!0,p=e[t];(p||!B(p))&&(_=p,g=!1,i&&_!==a&&!i(_)&&(_=a,g=!0),o&&(_=o(_,a,e),g=_===a)),g?a?_=J_(r,e,a):_=a:(qr(_)||Q(a))&&u&&a&&(qr(a)||Q(a))&&ae(a,function(N,E){Xu(r,_,N,E)}),r.set(e,t,_),c&&r.ref(e,t),l&&r[Vo](e,t)}var Q_=Y(()=>{"use strict";d();he();Ge()});function Z_(r){if(r){var e;if(Q(r)?(e=[],e[q]=r[q]):qr(r)&&(e={}),e)return ae(r,function(t,n){e[t]=Z_(n)}),e}return r}function Ju(r){if(r){var e=r[Hn]||r;if(e.cfg&&(e.cfg===r||e.cfg[Hn]===e))return e}return null}function Qu(r){if(r&&(qr(r)||Q(r)))try{r[QE]=!0}catch{}return r}function ep(r){if(r)try{r[ZE]=!0}catch{}return r}function al(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[ZE],!n&&!t[QE]&&(n=qr(t)||Q(t))),n}function sl(r){it("InvalidAccess:"+r)}var Hn,QE,ZE,ul=Y(()=>{"use strict";d();he();Ge();Hn=Af("[[ai_dynCfg_1]]"),QE=Af("[[ai_blkDynCfg_1]]"),ZE=Af("[[ai_frcDynCfg_1]]")});function gI(r,e,t){Q(e)&&R(mI,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[zi](this,o);return Zu(r,e,t,"Patching"),s}})}function cl(r,e){var t=uE(r,e);return t&&t.get}function EI(r,e,t,n){var i={n:t,h:[],trk:function(c){c&&c.fn&&(Me(i.h,c)===-1&&i.h[xe](c),r.trk(c,i))},clr:function(c){var l=Me(i.h,c);l!==-1&&i.h[On](l,1)}},o=!0,a=!1;function s(){o&&(a=a||al(s,r,n),n&&!n[Hn]&&a&&(n=Zu(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&&sl("["+t+"] is read-only:"+te(e)),o&&(a=a||al(s,r,n),o=!1);var l=a&&s[r.rf];if(a)if(l){ae(n,function(_){n[_]=c?c[_]:Bt});try{ae(c,function(_,g){ec(r,n,_,g)}),c=n}catch(_){As((r.hdlr||{})[ze],t,"Assigning",_),a=!1}}else n&&n[Hn]&&ae(n,function(_){var g=cl(n,_);if(g){var p=g[r.prop];p&&p.chng()}});if(c!==n){var v=c&&al(s,r,c);!l&&v&&(c=Zu(r,c,t,"Converting")),n=c,a=v}r.add(i)}}Ye(e,i.n,{g:s,s:u})}function ec(r,e,t,n){if(e){var i=cl(e,t),o=i&&!!i[r.prop];o?e[t]=n:EI(r,e,t,n)}return e}function fl(r,e,t,n){if(e){var i=cl(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{Qu(e)}catch(c){As((r.hdlr||{})[ze],t,"Blocking",c)}try{ec(r,e,t,e[t]),i=cl(e,t)}catch(c){As((r.hdlr||{})[ze],t,"State",c)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function Zu(r,e,t,n){try{ae(e,function(i,o){ec(r,e,i,o)}),e[Hn]||(Dt(e,Hn,{get:function(){return r[kf]}}),gI(r,e,t))}catch(i){As((r.hdlr||{})[ze],t,n,i)}return e}var mI,As,eh=Y(()=>{"use strict";d();he();Tr();Ge();ul();mI=["push","pop","shift","unshift","splice"],As=function(r,e,t,n){r&&r[ci](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function rh(r){var e,t=ss(rc+"get"+r.uid+tc),n=ss(rc+"ro"+r.uid+tc),i=ss(rc+"rf"+r.uid+tc),o=ss(rc+"blkVal"+r.uid+tc),a=ss(rc+"dtl"+r.uid+tc),s=null,u=null,c;function l(p,N){var E=c.act;try{c.act=p,p&&p[a]&&(R(p[a],function(T){T.clr(p)}),p[a]=[]),N({cfg:r.cfg,set:r.set.bind(r),setDf:r[_n].bind(r),ref:r.ref.bind(r),rdOnly:r[Vo].bind(r)})}catch(T){var x=r[ze];throw x&&x[ci](1,107,te(T)),T}finally{c.act=E||null}}function v(){if(s){var p=s;s=null,u&&u[fi](),u=null;var N=[];if(R(p,function(E){if(E&&(E[a]&&(R(E[a],function(x){x.clr(E)}),E[a]=null),E.fn))try{l(E,E.fn)}catch(x){N[xe](x)}}),s)try{v()}catch(E){N[xe](E)}N[q]>0&&DE("Watcher error(s): ",N)}}function _(p){if(p&&p.h[q]>0){s||(s=[]),u||(u=Mt(function(){u=null,v()},0));for(var N=0;N<p.h[q];N++){var E=p.h[N];E&&Me(s,E)===-1&&s[xe](E)}}}function g(p,N){if(p){var E=p[a]=p[a]||[];Me(E,N)===-1&&E[xe](N)}}return c=(e={prop:t,ro:n,rf:i},e[ji]=o,e[kf]=r,e.add=_,e[Ko]=v,e.use=l,e.trk=g,e),c}var rc,tc,th=Y(()=>{"use strict";d();he();yE();Ge();rc="[[ai_",tc="]]"});function hI(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return Ye(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function SI(r,e,t){var n,i=Ju(e);if(i)return i;var o=Jr("dyncfg",!0),a=e&&t!==!1?e:Z_(e),s;function u(){s[Ko]()}function c(x,T,I){try{x=ec(s,x,T,I)}catch(w){As(r,T,"Setting value",w)}return x[T]}function l(x){return hI(s,x)}function v(x,T){s.use(null,function(I){var w=s.upd;try{Te(T)||(s.upd=T),x(I)}finally{s.upd=w}})}function _(x,T){var I;return fl(s,x,T,(I={},I[0]=!0,I))[T]}function g(x,T){var I;return fl(s,x,T,(I={},I[1]=!0,I))[T]}function p(x,T){var I;return fl(s,x,T,(I={},I[2]=!0,I))[T]}function N(x,T){return T&&ae(T,function(I,w){Xu(E,x,I,w)}),x}var E=(n={uid:null,cfg:a},n[ze]=r,n[Ko]=u,n.set=c,n[_n]=N,n[pn]=l,n.ref=_,n[Vo]=g,n[ji]=p,n._block=v,n);return Ye(E,"uid",{c:!1,e:!1,w:!1,v:o}),s=rh(E),Zu(s,a,"config","Creating"),E}function NI(r,e){r?(r[ds](e),r[ci](2,108,e)):sl(e)}function Qe(r,e,t,n){var i=SI(t,r||{},n);return e&&i[_n](i.cfg,e),i}function Fr(r,e,t){var n=r[Hn]||r;return n.cfg&&(n.cfg===r||n.cfg[Hn]===n)?n[pn](e):(NI(t,UE+te(r)),Qe(r,null,t)[pn](e))}var oo=Y(()=>{"use strict";d();he();xs();Tr();Ge();Q_();eh();th();ul()});function hi(r,e){if(r&&r[Ct])return r[Ct](e)}function ll(r,e,t){var n;return t||(n=Qt(function(i){t=i})),r&&cs(r)>0?Gt(hi(r[0],e),function(){ll(us(r,1),e,t)}):t(),n}var rp=Y(()=>{"use strict";d();Zo();he();Ge()});var nh,tp,np=Y(()=>{"use strict";d();nh=500,tp="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function TI(r,e,t){return!r&&B(r)?e:Pn(r)?r:_r(r)[At]()==="true"}function ip(r){return{mrg:!0,v:r}}function bs(r,e,t){return{fb:t,isVal:r,v:e}}function rn(r,e){return{fb:e,set:TI,v:!!r}}var op=Y(()=>{"use strict";d();he();Ge()});function DI(r,e){return function(){var t=arguments,n=sp(e);if(n){var i=n.listener;i&&i[r]&&i[r][zi](i,t)}}}function yI(){var r=le("Microsoft");return r&&(vl=r.ApplicationInsights),vl}function sp(r){var e=vl;return!e&&r.disableDbgExt!==!0&&(e=vl||yI()),e?e.ChromeDbgExt:null}function ih(r){if(!dl){dl={};for(var e=0;e<ap[q];e++)dl[ap[e]]=DI(ap[e],r)}return dl}var ap,vl,dl,up=Y(()=>{"use strict";d();he();Ge();Tr();ap=[Ss,Zi,Ns,Mn],vl=null});function oh(r){return r?'"'+r[gn](/\"/g,me)+'"':me}function cp(r,e){var t=Bu();if(t){var n="log";t[r]&&(n=r),se(t[n])&&t[n](e)}}function Si(r,e){return(r||{})[ze]||new ao(e)}function fp(r){return r||new ao}function H(r,e,t,n,i,o){o===void 0&&(o=!1),fp(r)[ci](e,t,n,i,o)}function pt(r,e){fp(r)[ds](e)}function lp(r,e,t){fp(r)[y_](e,t)}var Cs,ah,II,xI,AI,bI,CI,oa,ao,Nn=Y(()=>{"use strict";d();Ur();he();oo();Ge();up();no();Tr();ah="warnToConsole",II="AI (Internal): ",xI="AI: ",AI="AITR_",bI={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},CI=(Cs={},Cs[0]=null,Cs[1]="errorToConsole",Cs[2]=ah,Cs[3]="debugToConsole",Cs);oa=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[ms]=e,o[Un]=(n?xI:II)+e;var a=me;kn()&&(a=Xr().stringify(i));var s=(t?" message:"+oh(t):me)+(i?" props:"+oh(a):me);o[Un]+=s}return r.dataType="MessageData",r})();ao=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;Ce(r,this,function(c){u=v(e||{}),c.consoleLoggingLevel=function(){return i},c[ci]=function(p,N,E,x,T){T===void 0&&(T=!1);var I=new oa(N,E,T,x);if(s)throw te(I);var w=CI[p]||ah;if(Te(I[Un]))g("throw"+(p===1?"Critical":"Warning"),I);else{if(T){var U=+I[ms];!n[U]&&i>=p&&(c[w](I[Un]),n[U]=!0)}else i>=p&&c[w](I[Un]);l(p,I)}},c.debugToConsole=function(p){cp("debug",p),g("warning",p)},c[ds]=function(p){cp("warn",p),g("warning",p)},c.errorToConsole=function(p){cp("error",p),g("error",p)},c.resetInternalMessageCount=function(){t=0,n={}},c[y_]=l,c[Ct]=function(p){u&&u.rm(),u=null};function l(p,N){if(!_()){var E=!0,x=AI+N[ms];if(n[x]?E=!1:n[x]=!0,E&&(p<=o&&(c.queue[xe](N),t++,g(p===1?"error":"warn",N)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",I=new oa(23,T,!1);c.queue[xe](I),p===1?c.errorToConsole(T):c[ds](T)}}}function v(p){return Fr(Qe(p,bI,c).cfg,function(N){var E=N.cfg;i=E[Bf],o=E.loggingLevelTelemetry,a=E.maxMessageLimit,s=E.enableDebug})}function _(){return t>=a}function g(p,N){var E=sp(e||{});E&&E[Pt]&&E[Pt](p,N)}})}return r.__ieDyn=1,r})()});function gp(){!Gn&&(Gn=Jv(function(){return Sr()}))}function RI(r,e){var t=Ni[so]||ml[so];return t||(t=Ni[so]=Ni(r,e),ml[so]=t),t}function pl(r){return r?r.isEnabled():!0}function mh(r,e){return e&&r&&Q(r.ignoreCookies)?Me(r.ignoreCookies,e)!==-1:!1}function wI(r,e){return e&&r&&Q(r.blockedCookies)&&Me(r.blockedCookies,e)!==-1?!0:mh(r,e)}function dh(r,e){var t=e[Wi];if(B(t)){var n=void 0;Te(r[ch])||(n=!r[ch]),Te(r[pp])||(n=!r[pp]),t=n}return t}function Ep(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[so]?t=n[so]:t=Ni(e)}return t||(t=RI(e,(r||{})[ze])),t}function Ni(r,e){var t,n,i,o,a,s,u,c,l;r=Qe(r||ml,null,e).cfg,a=Fr(r,function(_){_[_n](_.cfg,PI),n=_.ref(_.cfg,"cookieCfg"),i=n[el]||"/",o=n[Zf],s=dh(r,n)!==!1,u=n.getCookie||OI,c=n.setCookie||ph,l=n.delCookie||ph},e);var v=(t={isEnabled:function(){var _=dh(r,n)!==!1&&s&&Ps(e),g=ml[so];return _&&g&&v!==g&&(_=pl(g)),_},setEnabled:function(_){s=_!==!1,n[Wi]=_},set:function(_,g,p,N,E){var x=!1;if(pl(v)&&!wI(n,_)){var T={},I=ke(g||me),w=dn(I,";");if(w!==-1&&(I=ke(Ho(g,w)),T=gh(Cr(g,w+1))),Zt(T,Zf,N||o,cn,Te),!B(p)){var U=to();if(Te(T[vp])){var j=cr(),W=j+p*1e3;if(W>0){var ne=new Date;ne.setTime(W),Zt(T,vp,vh(ne,U?sh:uh)||vh(ne,U?sh:uh)||me,cn)}}U||Zt(T,"max-age",me+p,null,Te)}var V=ia();V&&V[jf]==="https:"&&(Zt(T,"secure",null,null,Te),_p===null&&(_p=!gl((Pr()||{})[Lu])),_p&&Zt(T,"SameSite","None",null,Te)),Zt(T,el,E||i,null,Te),c(_,_h(I,T)),x=!0}return x},get:function(_){var g=me;return pl(v)&&!mh(n,_)&&(g=u(_)),g},del:function(_,g){var p=!1;return pl(v)&&(p=v.purge(_,g)),p},purge:function(_,g){var p,N=!1;if(Ps(e)){var E=(p={},p[el]=g||"/",p[vp]="Thu, 01 Jan 1970 00:00:01 GMT",p);to()||(E["max-age"]="0"),l(_,_h(me,E)),N=!0}return N}},t[Ct]=function(_){a&&a.rm(),a=null},t);return v[so]=v,v}function Ps(r){if(_l===null){_l=!1,!Gn&&gp();try{var e=Gn.v||{};_l=e[mp]!==void 0}catch(t){H(r,2,68,"Cannot access document.cookie - "+or(t),{exception:te(t)})}}return _l}function gh(r){var e={};if(r&&r[q]){var t=ke(r)[Jt](";");R(t,function(n){if(n=ke(n||me),n){var i=dn(n,"=");i===-1?e[n]=null:e[ke(Ho(n,i))]=ke(Cr(n,i+1))}})}return e}function vh(r,e){return se(r[e])?r[e]():null}function _h(r,e){var t=r||me;return ae(e,function(n,i){t+="; "+n+(B(i)?me:"="+i)}),t}function OI(r){var e=me;if(!Gn&&gp(),Gn.v){var t=Gn.v[mp]||me;fh!==t&&(lh=gh(t),fh=t),e=ke(lh[r]||me)}return e}function ph(r,e){!Gn&&gp(),Gn.v&&(Gn.v[mp]=r+"="+e)}function gl(r){return Ne(r)?!!(mr(r,"CPU iPhone OS 12")||mr(r,"iPad; CPU OS 12")||mr(r,"Macintosh; Intel Mac OS X 10_14")&&mr(r,"Version/")&&mr(r,"Safari")||mr(r,"Macintosh; Intel Mac OS X 10_14")&&jo(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||mr(r,"Chrome/5")||mr(r,"Chrome/6")||mr(r,"UnrealEngine")&&!mr(r,"Chrome")||mr(r,"UCBrowser/12")||mr(r,"UCBrowser/11")):!1}var dp,aa,sh,uh,mp,vp,ch,pp,so,_l,_p,fh,Gn,lh,ml,PI,hp=Y(()=>{"use strict";d();he();op();oo();Ge();Nn();no();Fn();Tr();sh="toGMTString",uh="toUTCString",mp="cookie",vp="expires",ch="isCookieUseDisabled",pp="disableCookiesUsage",so="_ckMgr",_l=null,_p=null,fh=null,lh={},ml={},PI=(dp={cookieCfg:ip((aa={},aa[Zf]={fb:"cookieDomain",dfVal:eo},aa.path={fb:"cookiePath",dfVal:eo},aa.enabled=Bt,aa.ignoreCookies=Bt,aa.blockedCookies=Bt,aa)),cookieDomain:Bt,cookiePath:Bt},dp[pp]=Bt,dp)});function LI(r){r.h=null;var e=r.cb;r.cb=[],R(e,function(t){ge(t.fn,[t.arg])})}function uo(r,e,t,n){R(r,function(i){i&&i[e]&&(t?(t.cb[xe]({fn:n,arg:i}),t.h=t.h||Mt(LI,0,t)):ge(n,[i]))})}var YI,nc,Sp=Y(()=>{"use strict";d();Ur();Zo();he();oo();Ge();Tr();YI={perfEvtsSendAll:!1};nc=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Qe(e,YI);n=a[pn](function(s){t=!!s.cfg.perfEvtsSendAll}),Ce(r,this,function(s){Ye(s,"listeners",{g:function(){return i}}),s[_s]=function(u){i[xe](u)},s[vs]=function(u){for(var c=Me(i,u);c>-1;)i[On](c,1),c=Me(i,u)},s[Ss]=function(u){uo(i,Ss,o,function(c){c[Ss](u)})},s[Zi]=function(u,c){uo(i,Zi,o,function(l){l[Zi](u,c)})},s[Ns]=function(u,c){uo(i,Ns,c?o:null,function(l){l[Ns](u,c)})},s[Mn]=function(u){u&&(t||!u[Mu]())&&uo(i,Mn,null,function(c){u[mn]?Mt(function(){return c[Mn](u)},0):c[Mn](u)})},s[Xf]=function(u){u&&u[q]&&uo(i,Xf,o,function(c){c[Xf](u)})},s[Jf]=function(u){u&&u[Xi]&&uo(i,Jf,o,function(c){c[Jf](u)})},s[Qf]=function(u,c){if(u>0){var l=c||0;uo(i,Qf,o,function(v){v[Qf](u,l)})}},s[Ct]=function(u){var c=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[fi](),o.h=null,o.cb=[]},l;if(uo(i,"unload",null,function(v){var _=v[Ct](u);_&&(l||(l=[]),l[xe](_))}),l)return Qt(function(v){return Gt(LE(l),function(){c(),v()})});c()}})}return r.__ieDyn=1,r})()});function lr(r,e,t,n,i){if(r){var o=r;if(o[Ts]&&(o=o[Ts]()),o){var a=void 0,s=o[Jo](Np);try{if(a=o.create(e(),n,i),a){if(s&&a[En]&&(a[En](sa[Tp],s),s[Jo]&&s[En])){var u=s[Jo](sa[ic]);u||(u=[],s[En](sa[ic],u)),u[xe](a)}return o[En](Np,a),t(a)}}catch(c){a&&a[En]&&a[En]("exception",c)}finally{a&&o.fire(a),o[En](Np,s)}}}return t()}function Dp(){return UI}var Rs,Tp,ic,UI,sa,oc,Np,El=Y(()=>{"use strict";d();Ur();he();Ge();Tr();Rs="ctx",Tp="ParentContextKey",ic="ChildrenContextKey",UI=null,sa=(function(){function r(e,t,n){var i=this;if(i.start=cr(),i[Mr]=e,i[mn]=n,i[Mu]=function(){return!1},se(t)){var o;Ye(i,"payload",{g:function(){return!o&&se(t)&&(o=t(),t=null),o}})}i[Jo]=function(a){return a?a===r[Tp]||a===r[ic]?i[a]:(i[Rs]||{})[a]:null},i[En]=function(a,s){if(a)if(a===r[Tp])i[a]||(i[Mu]=function(){return!0}),i[a]=s;else if(a===r[ic])i[a]=s;else{var u=i[Rs]=i[Rs]||{};u[a]=s}},i[Vf]=function(){var a=0,s=i[Jo](r[ic]);if(Q(s))for(var u=0;u<s[q];u++){var c=s[u];c&&(a+=c[Ki])}i[Ki]=cr()-i.start,i.exTime=i[Ki]-a,i[Vf]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),oc=(function(){function r(e){this.ctx={},Ce(r,this,function(t){t.create=function(n,i,o){return new sa(n,i,o)},t.fire=function(n){n&&(n[Vf](),e&&se(e[Mn])&&e[Mn](n))},t[En]=function(n,i){if(n){var o=t[Rs]=t[Rs]||{};o[n]=i}},t[Jo]=function(n){return(t[Rs]||{})[n]}})}return r.__ieDyn=1,r})(),Np="CoreUtils.doPerf"});function ac(){var r=ua();return Cr(r,0,8)+"-"+Cr(r,8,12)+"-"+Cr(r,12,16)+"-"+Cr(r,16,20)+"-"+Cr(r,20)}function ua(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=me,t,n=0;n<4;n++)t=Ei(),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+(Ei()&3)|0];return wn(e,0,8)+wn(e,9,4)+"4"+wn(e,13,3)+i+wn(e,16,3)+wn(e,19,12)}var yp=Y(()=>{"use strict";d();he();Tr();nl()});function Ti(r,e,t){return r&&r[q]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function hh(r,e,t){return Ti(r,e)?r:t}function Sh(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[q]<2;)e="0"+e;return e}function Ap(r,e,t,n){var i;return i={},i[$o]=Ti(n,2,xp)?n:Ip,i[Es]=ca(r)?r:ua(),i[hs]=fa(e)?e:Ho(ua(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function sc(r,e){var t;if(!r||(Q(r)&&(r=r[0]||""),!r||!Ne(r)||r[q]>8192))return null;if(r.indexOf(",")!==-1){var n=r[Jt](",");r=n[e>0&&n[q]>e?e:0]}var i=MI.exec(ke(r));return!i||i[1]===xp||i[2]===hl||i[3]===Sl?null:(t={version:(i[1]||me)[At](),traceId:(i[2]||me)[At](),spanId:(i[3]||me)[At]()},t[Ji]=parseInt(i[4],16),t)}function ca(r){return Ti(r,32,hl)}function fa(r){return Ti(r,16,Sl)}function Nl(r){return!(!r||!Ti(r[$o],2,xp)||!Ti(r[Es],32,hl)||!Ti(r[hs],16,Sl)||!Ti(Sh(r[Ji]),2))}function bp(r){return Nl(r)?(r[Ji]&Eh)===Eh:!1}function Cp(r){if(r){var e=Sh(r[Ji]);Ti(e,2)||(e="01");var t=r[$o]||Ip;return t!=="00"&&t!=="ff"&&(t=Ip),"".concat(t.toLowerCase(),"-").concat(hh(r.traceId,32,hl).toLowerCase(),"-").concat(hh(r.spanId,16,Sl).toLowerCase(),"-").concat(e.toLowerCase())}return""}function Pp(r){var e="traceparent",t=sc($_(e),r);return t||(t=sc(q_(e),r)),t}var MI,Ip,xp,hl,Sl,Eh,Rp=Y(()=>{"use strict";d();he();Ge();yp();no();Tr();MI=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,Ip="00",xp="ff",hl="00000000000000000000000000000000",Sl="0000000000000000",Eh=1});function Di(r){return FI.get(r,"state",{},!0)}function wp(r,e){for(var t=[],n=null,i=r[Ht](),o;i;){var a=i[Vi]();if(a){n&&n[qi]&&a[wt]&&n[qi](a),o=Di(a);var s=!!o[bt];a[bt]&&(s=a[bt]()),s||t[xe](a),n=a,i=i[Ht]()}}R(t,function(u){var c=r[ir]();u[li](r.getCfg(),c,e,r[Ht]()),o=Di(u),!u[ir]&&!o[ir]&&(o[ir]=c),o[bt]=!0,delete o[kt]})}function Tl(r){return r.sort(function(e,t){var n=0;if(t){var i=t[wt];e[wt]?n=i?e[ra]-t[ra]:1:i&&(n=-1)}else n=e?1:-1;return n})}function Nh(r){var e={};return{getName:function(){return e[Mr]},setName:function(t){r&&r.setName(t),e[Mr]=t},getTraceId:function(){return e[Es]},setTraceId:function(t){r&&r.setTraceId(t),ca(t)&&(e[Es]=t)},getSpanId:function(){return e[hs]},setSpanId:function(t){r&&r.setSpanId(t),fa(t)&&(e[hs]=t)},getTraceFlags:function(){return e[Ji]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[Ji]=t}}}var FI,Op=Y(()=>{"use strict";d();he();Ge();xs();Tr();Rp();FI=il("plugin")});function HI(r,e,t){for(;r;){if(r[Vi]()===t)return r;r=r[Ht]()}return co([t],e.config||{},e)}function Yp(r,e,t,n){var i=null,o=[];e||(e=Qe({},null,t[ze])),n!==null&&(i=n?HI(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return Si(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:l,getConfig:v,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(g){i=g},iterate:_,onComplete:s}};function s(g,p){for(var N=[],E=2;E<arguments.length;E++)N[E-2]=arguments[E];g&&o[xe]({func:g,self:Te(p)?a.ctx:p,args:N})}function u(){var g=i;if(i=g?g[Ht]():null,!g){var p=o;p&&p[q]>0&&(R(p,function(N){try{N.func.call(N.self,N.args)}catch(E){H(t[ze],2,73,"Unexpected Exception during onComplete - "+te(E))}}),o=[])}return g}function c(g,p){var N=null,E=e.cfg;if(E&&g){var x=E[di];!x&&p&&(x={}),E[di]=x,x=e.ref(E,di),x&&(N=x[g],!N&&p&&(N={}),x[g]=N,N=e.ref(x,g))}return N}function l(g,p){var N=c(g,!0);return p&&ae(p,function(E,x){if(B(N[E])){var T=e.cfg[E];(T||!B(T))&&(N[E]=T)}Xu(e,N,E,x)}),e[_n](N,p)}function v(g,p,N){N===void 0&&(N=!1);var E,x=c(g,!1),T=e.cfg;return x&&(x[p]||!B(x[p]))?E=x[p]:(T[p]||!B(T[p]))&&(E=T[p]),E||!B(E)?E:N}function _(g){for(var p;p=a._next();){var N=p[Vi]();N&&g(N)}}return a}function mt(r,e,t,n){var i=Qe(e),o=Yp(r,i,t,n),a=o.ctx;function s(c){var l=o._next();return l&&l[wt](c,a),!l}function u(c,l){return c===void 0&&(c=null),Q(c)&&(c=co(c,i.cfg,t,l)),mt(c||a[Ht](),i.cfg,t,l)}return a[Rr]=s,a[Ln]=u,a}function ws(r,e,t){var n=Qe(e.config),i=Yp(r,n,e,t),o=i.ctx;function a(u){var c=i._next();return c&&c[Ct](o,u),!c}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=co(u,n.cfg,e,c)),ws(u||o[Ht](),e,c)}return o[Rr]=a,o[Ln]=s,o}function uc(r,e,t){var n=Qe(e.config),i=Yp(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(c){se(c[qo])&&c[qo](o,u)})}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=co(u,n.cfg,e,c)),uc(u||o[Ht](),e,c)}return o[Rr]=a,o[Ln]=s,o}function co(r,e,t,n){var i=null,o=!n;if(Q(r)&&r[q]>0){var a=null;R(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&se(s[wt])){var u=GI(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?co([n],e,t):i}function GI(r,e,t){var n=null,i=se(r[wt]),o=se(r[qi]),a;r?a=r[Yn]+"-"+r[ra]+"-"+yh++:a="Unknown-0-"+yh++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:l,unload:v,update:_,_id:a,_setNext:function(g){n=g}};function u(){var g;return r&&se(r[Dh])&&(g=r[Dh]()),g||(g=mt(s,e,t)),g}function c(g,p,N,E,x){var T=!1,I=r?r[Yn]:kI,w=g[Th];return w||(w=g[Th]={}),g.setNext(n),r&&lr(g[ir](),function(){return I+":"+N},function(){w[a]=!0;try{var U=n?n._id:me;U&&(w[U]=!1),T=p(g)}catch(W){var j=n?w[n._id]:!0;j&&(T=!0),(!n||!j)&&H(g[Pt](),1,73,"Plugin ["+I+"] failed during "+N+" - "+te(W)+", run flags: "+te(w))}},E,x),T}function l(g,p){p=p||u();function N(E){if(!r||!i)return!1;var x=Di(r);return x[kt]||x[Hu]?!1:(o&&r[qi](n),r[wt](g,E),!0)}c(p,N,"processTelemetry",function(){return{item:g}},!g.sync)||p[Rr](g)}function v(g,p){function N(){var E=!1;if(r){var x=Di(r),T=r[ir]||x[ir];r&&(!T||T===g.core())&&!x[kt]&&(x[ir]=null,x[kt]=!0,x[bt]=!1,r[kt]&&r[kt](g,p)===!0&&(E=!0))}return E}c(g,N,"unload",function(){},p[mn])||g[Rr](p)}function _(g,p){function N(){var E=!1;if(r){var x=Di(r),T=r[ir]||x[ir];r&&(!T||T===g.core())&&!x[kt]&&r[qo]&&r[qo](g,p)===!0&&(E=!0)}return E}c(g,N,"update",function(){},!1)||g[Rr](p)}return qt(s)}var kI,Th,Dh,yh,Lp,Dl=Y(()=>{"use strict";d();he();Q_();oo();Ge();Nn();Fn();Tr();El();Op();kI="TelemetryPluginChain",Th="_hasRun",Dh="_getTelCtx",yh=0;Lp=(function(){function r(e,t,n,i){var o=this,a=mt(e,t,n,i);jt(o,a,$r(a))}return r})()});function la(){var r=[];function e(n){n&&r[xe](n)}function t(n,i){R(r,function(o){try{o(n,i)}catch(a){H(n[Pt](),2,73,"Unexpected error calling unload handler - "+te(a))}}),r=[]}return{add:e,run:t}}var yl=Y(()=>{"use strict";d();he();Ge();Nn()});function Up(r,e){cc=r,fc=e}function lc(){var r=[];function e(n){var i=r;r=[],R(i,function(o){try{(o.rm||o.remove).call(o)}catch(a){H(n,2,73,"Unloading:"+te(a))}}),cc&&i[q]>cc&&(fc?fc("doUnload",i):H(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(ln(r,n),cc&&r[q]>cc&&(fc?fc("Add",r):H(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var cc,fc,Il=Y(()=>{"use strict";d();he();Ge();Nn()});var Mp,fo,BI,yi,Fp=Y(()=>{"use strict";d();Ur();he();oo();Ge();Nn();Fn();Tr();Dl();yl();Il();fo="getPlugin",BI=(Mp={},Mp[di]={isVal:eo,v:{}},Mp),yi=(function(){function r(){var e=this,t,n,i,o,a;c(),Ce(r,e,function(l){l[li]=function(v,_,g,p){u(v,_,p),t=!0},l[kt]=function(v,_){var g,p=l[ir];if(!p||v&&p!==v[ir]())return;var N,E=!1,x=v||ws(null,p,i&&i[fo]?i[fo]():i),T=_||(g={reason:0},g[mn]=!1,g);function I(){E||(E=!0,o.run(x,_),a.run(x[Pt]()),N===!0&&x[Rr](T),c())}return!l[$i]||l[$i](x,T,I)!==!0?I():N=!0,N},l[qo]=function(v,_){var g=l[ir];if(!g||v&&g!==v[ir]())return;var p,N=!1,E=v||uc(null,g,i&&i[fo]?i[fo]():i),x=_||{reason:0};function T(){N||(N=!0,u(E.getCfg(),E.core(),E[Ht]()))}return!l._doUpdate||l._doUpdate(E,x,T)!==!0?T():p=!0,p},vi(l,"_addUnloadCb",function(){return o},"add"),vi(l,"_addHook",function(){return a},"add"),Ye(l,"_unloadHooks",{g:function(){return a}})}),e[Pt]=function(l){return s(l)[Pt]()},e[bt]=function(){return t},e.setInitialized=function(l){t=l},e[qi]=function(l){i=l},e[Rr]=function(l,v){v?v[Rr](l):i&&se(i[wt])&&i[wt](l,null)},e._getTelCtx=s;function s(l){l===void 0&&(l=null);var v=l;if(!v){var _=n||mt(null,{},e[ir]);i&&i[fo]?v=_[Ln](null,i[fo]):v=_[Ln](null,i)}return v}function u(l,v,_){Qe(l,BI,Si(v)),!_&&v&&(_=v[Gf]()[Ht]());var g=i;i&&i[fo]&&(g=i[fo]()),e[ir]=v,n=mt(_,l,v,g)}function c(){t=!1,e[ir]=null,n=null,i=null,a=lc(),o=la()}}return r.__ieDyn=1,r})()});function jI(r,e,t){var n={id:e,fn:t};ln(r,n);var i={remove:function(){R(r,function(o,a){if(o.id===n.id)return r[On](a,1),-1})}};return i}function zI(r,e,t){for(var n=!1,i=r[q],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[zi](null,[e])===!1){n=!0;break}}catch(s){H(t,2,64,"Telemetry initializer failed: "+or(s),{exception:te(s)},!0)}}return!n}var Ih,xh=Y(()=>{"use strict";d();xt();Ur();he();Ge();Fp();Nn();Fn();Tr();Ih=(function(r){It(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),Ce(e,t,function(a,s){a.addTelemetryInitializer=function(u){return jI(i,n++,u)},a[wt]=function(u,c){zI(i,u,c?c[Pt]():a[Pt]())&&a[Rr](u,c)},a[$i]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(yi)});function qI(r,e){return new oc(e)}function XI(r,e,t){var n,i=[],o=[],a={};return R(t,function(s){(B(s)||B(s[li]))&&hr(Ph);var u=s[ra],c=s[Yn];s&&u&&(B(a[u])?a[u]=c:pt(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+c)),!u||u<e?i[xe](s):o[xe](s)}),n={},n[ir]=i,n[Qi]=o,n}function bh(r,e){var t=!1;return R(e,function(n){if(n===r)return t=!0,-1}),t}function Hp(r,e,t,n){t&&ae(t,function(i,o){n&&qr(o)&&qr(e[i])&&Hp(r,e[i],o,n),n&&qr(o)&&qr(e[i])?Hp(r,e[i],o,n):r.set(e,i,o)})}function Ch(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 JI(r,e){var t=Ch(r,e).l;return t||(t={w:e,rm:function(){var n=Ch(r,e);n.i!==-1&&r[On](n.i,1)}},r[xe](t)),t}function QI(r,e,t){R(e,function(n){var i=Fr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function ZI(r,e,t,n){return e.add(r[pn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[vs](n),n=null),t&&!n&&o!==!0&&(n=ih(i.cfg),t[_s](n))})),n}function ex(r){return Ye({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var lo,Ph,VI,Ah,KI,WI,$I,kp,Ii,Rh=Y(()=>{"use strict";d();xt();Ur();Zo();he();oo();S_();Ge();rp();np();hp();xs();up();Nn();Fn();Tr();Sp();El();Dl();Op();xh();yl();Il();Ph="Plugins must provide initialize method",VI="_notificationManager",Ah="SDK is still unloading...",KI="SDK is not initialized",WI=100,$I=5e4,kp=Rn((lo={cookieCfg:{}},lo[ea]={rdOnly:!0,ref:!0,v:[]},lo[Qi]={rdOnly:!0,ref:!0,v:[]},lo[di]={ref:!0,v:{}},lo[qf]=Bt,lo.loggingLevelConsole=0,lo.diagnosticLogInterval=Bt,lo));Ii=(function(){function r(){var e,t,n,i,o,a,s,u,c,l,v,_,g,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue;Ce(r,this,function(A){C(),A._getDbgPlgTargets=function(){return[W,i]},A[bt]=function(){return t},A.activeStatus=function(){return G},A._setPendingStatus=function(){G=3},A[li]=function(b,K,ie,X){g&&hr(Ah),A[bt]()&&hr("Core cannot be initialized more than once"),e=Qe(b,kp,ie||A[ze],!1),b=e.cfg,Ve(e[pn](function(Pe){var Fe=Pe.cfg,Je=G===3;if(!Je){fe=Fe.initInMemoMaxSize||WI;var ar=Fe[N_],rt=Fe.endpointUrl;if(B(ar)){U=null,G=Ft[Hf];var tt="Please provide instrumentation key";t?(H(n,1,100,tt),re()):hr(tt);return}var Wt=[];if(vt(ar)?(Wt[xe](ar),U=null):U=ar,vt(rt)?(Wt[xe](rt),Z=null):Z=rt,Wt[q]){Se=!1,G=3;var Yr=eo(Fe.initTimeOut)?Fe.initTimeOut:$I,ni=YE(Wt);F=Mt(function(){F=null,Se||_e()},Yr),Gt(ni,function(O){try{if(Se)return;if(!O.rejected){var M=O[Wo];if(M&&M[q]){var J=M[0];if(U=J&&J[Wo],M[q]>1){var de=M[1];Z=de&&de[Wo]}}U&&(b[N_]=U,b.endpointUrl=Z)}_e()}catch{Se||_e()}})}else _e();var h=Pe.ref(Pe.cfg,di);ae(h,function(O){Pe.ref(h,O)})}})),o=X,I=ZI(e,T,o&&A[Ou](),I),dt(),A[ze]=ie;var oe=b[ea];if(l=[],l[xe].apply(l,Cf(Cf([],K,!1),oe,!1)),v=b[Qi],We(null),(!_||_[q]===0)&&hr("No "+Qi+" available"),v&&v[q]>1){var we=A[Vi]("TeeChannelController");(!we||!we.plugin)&&H(n,1,28,"TeeChannel required")}QI(b,j,n),j=null,t=!0,G===Ft.ACTIVE&&re()},A.getChannels=function(){var b=[];return _&&R(_,function(K){b[xe](K)}),qt(b)},A.track=function(b){lr(A[Ts](),function(){return"AppInsightsCore:track"},function(){b===null&&(Xe(b),hr("Invalid telemetry item")),!b[Mr]&&B(b[Mr])&&(Xe(b),hr("telemetry name required")),b[ps]=b[ps]||U,b[Ki]=b[Ki]||hn(new Date),b.ver=b.ver||"4.0",!g&&A[bt]()&&G===Ft.ACTIVE?Oe()[Rr](b):G!==Ft[Hf]&&i[q]<=fe&&i[xe](b)},function(){return{item:b}},!b.sync)},A[Gf]=Oe,A[Ou]=function(){return o||(o=new nc(e.cfg),A[VI]=o),o},A[_s]=function(b){A.getNotifyMgr()[_s](b)},A[vs]=function(b){o&&o[vs](b)},A.getCookieMgr=function(){return u||(u=Ni(e.cfg,A[ze])),u},A.setCookieMgr=function(b){u!==b&&(hi(u,!1),u=b)},A[Ts]=function(){return a||s||Dp()},A.setPerfMgr=function(b){a=b},A.eventCnt=function(){return i[q]},A.releaseQueue=function(){if(t&&i[q]>0){var b=i;i=[],G===2?R(b,function(K){K[ps]=K[ps]||U,Oe()[Rr](K)}):H(n,2,20,"core init status is not active")}},A[T_]=function(b){return N=b||null,ue=!1,k&&k[fi](),ye(!0)};function _e(){Se=!0,B(U)?(G=Ft[Hf],H(n,1,112,"ikey can't be resolved from promises")):G=Ft.ACTIVE,re()}function re(){t&&(A.releaseQueue(),A[T_]())}function ye(b){if((!k||!k[Wi])&&!ue){var K=b||n&&n.queue[q]>0;K&&(ve||(ve=!0,Ve(e[pn](function(ie){var X=ie.cfg.diagnosticLogInterval;(!X||!(X>0))&&(X=1e4);var oe=!1;k&&(oe=k[Wi],k[fi]()),k=dE(jr,X),k.unref(),k[Wi]=oe}))),k[Wi]=!0)}return k}A[D_]=function(){ue=!0,k&&k[fi](),jr()},jt(A,function(){return p},["addTelemetryInitializer"]),A[Ct]=function(b,K,ie){var X;b===void 0&&(b=!0),t||hr(KI),g&&hr(Ah);var oe=(X={reason:50},X[mn]=b,X.flushComplete=!1,X),we;b&&!K&&(we=Qt(function(Je){K=Je}));var Pe=ws(vr(),A);Pe[Yu](function(){T.run(A[ze]),ll([u,o,n],b,function(){C(),K&&K(oe)})},A);function Fe(Je){oe.flushComplete=Je,g=!0,x.run(Pe,oe),A[D_](),Pe[Rr](oe)}return jr(),Ar(b,Fe,6,ie)||Fe(!1),we},A[Vi]=lt,A.addPlugin=function(b,K,ie,X){if(!b){X&&X(!1),Ue(Ph);return}var oe=lt(b[Yn]);if(oe&&!K){X&&X(!1),Ue("Plugin ["+b[Yn]+"] is already loaded!");return}var we={reason:16};function Pe(ar){l[xe](b),we.added=[b],We(we),X&&X(!0)}if(oe){var Fe=[oe.plugin],Je={reason:2,isAsync:!!ie};Kt(Fe,Je,function(ar){ar?(we.removed=Fe,we.reason|=32,Pe(!0)):X&&X(!1)})}else Pe(!1)},A.updateCfg=function(b,K){K===void 0&&(K=!0);var ie;if(A[bt]()){ie={reason:1,cfg:e.cfg,oldCfg:i_({},e.cfg),newConfig:i_({},b),merge:K},b=ie.newConfig;var X=e.cfg;b[ea]=X[ea],b[Qi]=X[Qi]}e._block(function(oe){var we=oe.cfg;Hp(oe,we,b,K),K||ae(we,function(Pe){$t(b,Pe)||oe.set(we,Pe,Bt)}),oe[_n](we,kp)},!0),e[Ko](),ie&&Be(ie)},A.evtNamespace=function(){return E},A.flush=Ar,A.getTraceCtx=function(b){return w||(w=Nh()),w},A.setTraceCtx=function(b){w=b||null},A.addUnloadHook=Ve,vi(A,"addUnloadCb",function(){return x},"add"),A.onCfgChange=function(b){var K;return t?K=Fr(e.cfg,b,A[ze]):K=JI(j,b),ex(K)},A.getWParam=function(){return Go()||e.cfg.enableWParam?0:-1};function $(){var b={};ne=[];var K=function(ie){ie&&R(ie,function(X){if(X[Yn]&&X[$o]&&!b[X.identifier]){var oe=X[Yn]+"="+X[$o];ne[xe](oe),b[X.identifier]=X}})};K(_),v&&R(v,function(ie){K(ie)}),K(l)}function C(){t=!1,e=Qe({},kp,A[ze]),e.cfg[Bf]=1,Ye(A,"config",{g:function(){return e.cfg},s:function(K){A.updateCfg(K,!1)}}),Ye(A,"pluginVersionStringArr",{g:function(){return ne||$(),ne}}),Ye(A,"pluginVersionString",{g:function(){return V||(ne||$(),V=ne.join(";")),V||me}}),Ye(A,"logger",{g:function(){return n||(n=new ao(e.cfg),e[ze]=n),n},s:function(K){e[ze]=K,n!==K&&(hi(n,!1),n=K)}}),A[ze]=new ao(e.cfg),W=[];var b=A.config[ea]||[];b.splice(0,b[q]),ln(b,W),p=new Ih,i=[],hi(o,!1),o=null,a=null,s=null,hi(u,!1),u=null,c=null,l=[],v=null,_=null,g=!1,N=null,E=Jr("AIBaseCore",!0),x=la(),w=null,U=null,T=lc(),j=[],V=null,ne=null,ue=!1,k=null,ve=!1,G=0,Z=null,fe=null,Se=!1,F=null}function Oe(){var b=mt(vr(),e.cfg,A);return b[Yu](ye),b}function We(b){var K=XI(A[ze],nh,l);c=null,V=null,ne=null,_=(v||[])[0]||[],_=Tl(ln(_,K[Qi]));var ie=ln(Tl(K[ir]),_);W=qt(ie);var X=A.config[ea]||[];X.splice(0,X[q]),ln(X,W);var oe=Oe();_&&_[q]>0&&wp(oe[Ln](_),ie),wp(oe,ie),b&&Be(b)}function lt(b){var K=null,ie=null,X=[];return R(W,function(oe){if(oe[Yn]===b&&oe!==p)return ie=oe,-1;oe.getChannel&&X[xe](oe)}),!ie&&X[q]>0&&R(X,function(oe){if(ie=oe.getChannel(b),!ie)return-1}),ie&&(K={plugin:ie,setEnabled:function(oe){Di(ie)[Hu]=!oe},isEnabled:function(){var oe=Di(ie);return!oe[kt]&&!oe[Hu]},remove:function(oe,we){var Pe;oe===void 0&&(oe=!0);var Fe=[ie],Je=(Pe={reason:1},Pe[mn]=oe,Pe);Kt(Fe,Je,function(ar){ar&&We({reason:32,removed:Fe}),we&&we(ar)})}}),K}function vr(){if(!c){var b=(W||[]).slice();Me(b,p)===-1&&b[xe](p),c=co(Tl(b),e.cfg,A)}return c}function Kt(b,K,ie){if(b&&b[q]>0){var X=co(b,e.cfg,A),oe=ws(X,A);oe[Yu](function(){var we=!1,Pe=[];R(l,function(Je,ar){bh(Je,b)?we=!0:Pe[xe](Je)}),l=Pe,V=null,ne=null;var Fe=[];v&&(R(v,function(Je,ar){var rt=[];R(Je,function(tt){bh(tt,b)?we=!0:rt[xe](tt)}),Fe[xe](rt)}),v=Fe),ie&&ie(we),ye()}),oe[Rr](K)}else ie(!1)}function jr(){if(n&&n.queue){var b=n.queue.slice(0);n.queue[q]=0,R(b,function(K){var ie,X=(ie={},ie[Mr]=N||"InternalMessageId: "+K[ms],ie[ps]=U,ie[Ki]=hn(new Date),ie.baseType=oa.dataType,ie.baseData={message:K[Un]},ie);A.track(X)})}}function Ar(b,K,ie,X){var oe=1,we=!1,Pe=null;X=X||5e3;function Fe(){oe--,we&&oe===0&&(Pe&&Pe[fi](),Pe=null,K&&K(we),K=null)}if(_&&_[q]>0){var Je=Oe()[Ln](_);Je.iterate(function(ar){if(ar.flush){oe++;var rt=!1;ar.flush(b,function(){rt=!0,Fe()},ie)||rt||(b&&Pe==null?Pe=Mt(function(){Pe=null,Fe()},X):Fe())}})}return we=!0,Fe(),!0}function dt(){var b;Ve(e[pn](function(K){var ie=K.cfg.enablePerfMgr;if(ie){var X=K.cfg[qf];(b!==X||!b)&&(X||(X=qI),Gu(K.cfg,qf,X),b=X,s=null),!a&&!s&&se(X)&&(s=X(A,A[Ou]()))}else s=null,b=null}))}function Be(b){var K=uc(vr(),A);K[Yu](ye),(!A._updateHook||A._updateHook(K,b)!==!0)&&K[Rr](b)}function Ue(b){var K=A[ze];K?(H(K,2,73,b),ye()):hr(b)}function Xe(b){var K=A[Ou]();K&&K[Zi]([b],2)}function Ve(b){T.add(b)}})}return r.__ieDyn=1,r})()});function da(r,e){try{if(r&&r!==""){var t=Xr().parse(r);if(t&&t[A_]&&t[A_]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[q])return t}}catch(n){H(e,1,43,"Cannot parse the response. "+(n[Mr]||te(n)),{response:r})}return null}var wh=Y(()=>{"use strict";d();he();Ge();Nn();no()});var Bn,rx,Oh,Gp,va,Yh=Y(()=>{"use strict";d();Ur();Zo();he();Ge();np();Nn();no();Fn();Bn="",rx="NoResponseBody",Oh="&"+rx+"=true",Gp="POST",va=(function(){function r(){var e=0,t,n,i,o,a,s,u,c,l,v,_,g,p,N;Ce(r,this,function(E,x){var T=!0;Se(),E[li]=function(F,k){i=k,n&&H(i,1,28,"Sender is already initialized"),E.SetConfig(F),n=!0},E._getDbgPlgTargets=function(){return[n,o,s,t]},E.SetConfig=function(F){try{if(a=F.senderOnCompleteCallBack||{},s=!!F.disableCredentials,u=F.fetchCredentials,o=!!F.isOneDs,t=!!F.enableSendPromise,l=!!F.disableXhr,v=!!F.disableBeacon,_=!!F.disableBeaconSync,N=F.timeWrapper,p=!!F.addNoResponse,g=!!F.disableFetchKeepAlive,c={sendPOST:G},o||(T=!1),s){var k=ia();k&&k.protocol&&k.protocol[At]()==="file:"&&(T=!1)}return!0}catch{}return!1},E.getSyncFetchPayload=function(){return e},E.getSenderInst=function(F,k){return F&&F[q]?j(F,k):null},E.getFallbackInst=function(){return c},E[$i]=function(F,k){Se()};function I(F,k){W(k,200,{},F)}function w(F,k){H(i,2,26,"Failed to send telemetry.",{message:F}),W(k,400,{})}function U(F){w("No endpoint url is provided for the batch",F)}function j(F,k){for(var ve,ue=0,A=null,_e=0;A==null&&_e<F[q];)ue=F[_e],!l&&ue===1?Ku()?A=fe:Is()&&(A=G):ue===2&&gi(k)&&(!k||!g)?A=Z:ue===3&&en()&&(k?!_:!v)&&(A=V),_e++;return A?(ve={_transport:ue,_isSync:k},ve[b_]=A,ve):null}function W(F,k,ve,ue){try{F&&F(k,ve,ue)}catch{}}function ne(F,k){var ve=Pr(),ue=F[gs];if(!ue)return U(k),!0;ue=F[gs]+(p?Oh:Bn);var A=F[Xi],_e=o?A:new Blob([A],{type:"text/plain;charset=UTF-8"}),re=ve.sendBeacon(ue,_e);return re}function V(F,k,ve){var ue=F[Xi];try{if(ue)if(ne(F,k))I(Bn,k);else{var A=a&&a.beaconOnRetry;A&&se(A)?A(F,k,ne):(c&&c[b_](F,k,!0),H(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(_e){o&&pt(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(_e)),W(k,o?0:400,{},Bn)}}function G(F,k,ve){var ue,A,_e,re=F[Kf]||{};!ve&&t&&(ue=Qt(function(Oe,We){A=Oe,_e=We})),o&&ve&&F.disableXhrSync&&(ve=!1);var ye=F[gs];if(!ye){U(k),A&&A(!1);return}var $=G_(Gp,ye,T,!0,ve,F[Qo]);o||$[C_]("Content-type","application/json"),R($r(re),function(Oe){$[C_](Oe,re[Oe])}),$.onreadystatechange=function(){o||(C($),$.readyState===4&&A&&A(!0))},$.onload=function(){o&&C($)};function C(Oe){var We=a&&a.xhrOnComplete,lt=We&&se(We);if(lt)We(Oe,k,F);else{var vr=Sn(Oe);W(k,Oe[Xo],mi(Oe,o),vr)}}return $.onerror=function(Oe){W(k,o?$[Xo]:400,mi($,o),o?Bn:_i($)),_e&&_e(Oe)},$.ontimeout=function(){W(k,o?$[Xo]:500,mi($,o),o?Bn:_i($)),A&&A(!1)},$.send(F[Xi]),ue}function Z(F,k,ve){var ue,A=F[gs],_e=F[Xi],re=o?_e:new Blob([_e],{type:"application/json"}),ye,$,C,Oe=new Headers,We=_e[q],lt=!1,vr=!1,Kt=F[Kf]||{},jr=(ue={method:Gp,body:re},ue[tp]=!0,ue);F.headers&&$r(F.headers)[q]>0&&(R($r(Kt),function(Ue){Oe.append(Ue,Kt[Ue])}),jr[Kf]=Oe),u?jr.credentials=u:T&&o&&(jr.credentials="include"),ve&&(jr.keepalive=!0,e+=We,o?F._sendReason===2&&(lt=!0,p&&(A+=Oh)):lt=!0);var Ar=new Request(A,jr);try{Ar[tp]=!0}catch{}if(!ve&&t&&(ye=Qt(function(Ue,Xe){$=Ue,C=Xe})),!A){U(k),$&&$(!1);return}function dt(Ue){W(k,o?0:400,{},o?Bn:Ue)}function Be(Ue,Xe,Ve){var b=Ue[Xo],K=a.fetchOnComplete;K&&se(K)?K(Ue,k,Ve||Bn,Xe):W(k,b,{},Ve||Bn)}try{Gt(fetch(o?A:Ar,o?jr:null),function(Ue){if(ve&&(e-=We,We=0),!vr)if(vr=!0,Ue.rejected)dt(Ue.reason&&Ue.reason[Un]),C&&C(Ue.reason);else{var Xe=Ue[Wo];try{!o&&!Xe.ok?(dt(Xe.statusText),$&&$(!1)):o&&!Xe.body?(Be(Xe,null,Bn),$&&$(!0)):Gt(Xe.text(),function(Ve){Be(Xe,F,Ve[Wo]),$&&$(!0)})}catch(Ve){dt(te(Ve)),C&&C(Ve)}}})}catch(Ue){vr||(dt(te(Ue)),C&&C(Ue))}return lt&&!vr&&(vr=!0,W(k,200,{}),$&&$(!0)),o&&!vr&&F[Qo]>0&&N&&N.set(function(){vr||(vr=!0,W(k,500,{}),$&&$(!0))},F[Qo]),ye}function fe(F,k,ve){var ue=Nr(),A=new XDomainRequest,_e=F[Xi];A.onload=function(){var Oe=Sn(A),We=a&&a.xdrOnComplete;We&&se(We)?We(A,k,F):W(k,200,{},Oe)},A.onerror=function(){W(k,400,{},o?Bn:na(A))},A.ontimeout=function(){W(k,500,{})},A.onprogress=function(){};var re=ue&&ue.location&&ue.location[jf]||"",ye=F[gs];if(!ye){U(k);return}if(!o&&ye.lastIndexOf(re,0)!==0){var $="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";H(i,2,40,". "+$),w($,k);return}var C=o?ye:ye[gn](/^(https?:)/,"");A.open(Gp,C),F[Qo]&&(A[Qo]=F[Qo]),A.send(_e),o&&ve?N&&N.set(function(){A.send(_e)},0):A.send(_e)}function Se(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,c=null,l=!1,v=!1,_=!1,g=!1,p=!1,N=null}})}return r.__ieDyn=1,r})()});function kh(r){return r&&r[gn]?r[gn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,me):r}function bl(r,e){var t;if(e){var n=me;Q(e)?(n=me,R(e,function(o){o=kh(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=kh(e),n&&(n[0]!=="."&&(n="."+n),r=(r||me)+n)}var i=ox.exec(r||me)||[];return t={},t[Rt]=i[1],t.ns=(i[2]||me).replace(tx,".").replace(nx,me)[Jt](".").sort().join("."),t}function Bp(r,e,t){var n=[],i=vc.get(r,xl,{},!1),o=bl(e,t);return ae(i,function(a,s){R(s,function(u){var c;(!o[Rt]||o[Rt]===u.evtName[Rt])&&(!o.ns||o.ns===o.ns)&&n[xe]((c={},c[Mr]=u.evtName[Rt]+(u.evtName.ns?"."+u.evtName.ns:me),c.handler=u[Uu],c))})}),n}function Wh(r,e,t){t===void 0&&(t=!0);var n=vc.get(r,xl,{},t),i=n[e];return i||(i=n[e]=[]),i}function $h(r,e,t,n){r&&e&&e[Rt]&&(r[Fh]?r[Fh](e[Rt],t,n):r[Mh]&&r[Mh](Gh+e[Rt],t))}function ax(r,e,t,n){var i=!1;return r&&e&&e[Rt]&&t&&(r[Uh]?(r[Uh](e[Rt],t,n),i=!0):r[Lh]&&(r[Lh](Gh+e[Rt],t),i=!0)),i}function Hh(r,e,t,n){for(var i=e[q];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&($h(r,o.evtName,o[Uu],o.capture),e[On](i,1))}}function sx(r,e,t){if(e[Rt])Hh(r,Wh(r,e[Rt]),e,t);else{var n=vc.get(r,xl,{});ae(n,function(i,o){Hh(r,o,e,t)}),$r(n)[q]===0&&vc.kill(r,xl)}}function zt(r,e){var t;return e?(Q(e)?t=[r].concat(e):t=[r,e],t=bl("xx",t).ns[Jt](".")):t=r,t}function jn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=bl(e,n);if(a=ax(r,s,t,i),a&&vc.accept(r)){var u=(o={guid:ix++,evtName:s},o[Uu]=t,o.capture=i,o);Wh(r,s.type)[xe](u)}}catch{}return a}function xi(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=bl(e,n),a=!1;sx(r,o,function(s){return o.ns&&!t||s[Uu]===t?(a=!0,!0):!1}),a||$h(r,o,t,i)}catch{}}function jp(r,e,t,n){return n===void 0&&(n=!1),jn(r,e,t,null,n)}function zp(r,e,t,n){n===void 0&&(n=!1),xi(r,e,t,null,n)}function Cl(r,e,t){var n=!1,i=Nr();i&&(n=jn(i,r,e,t),n=jn(i.body,r,e,t)||n);var o=Sr();return o&&(n=jn(o,r,e,t)||n),n}function Pl(r,e,t){var n=Nr();n&&(xi(n,r,e,t),xi(n.body,r,e,t));var i=Sr();i&&xi(i,r,e,t)}function Os(r,e,t,n){var i=!1;return e&&r&&r[q]>0&&R(r,function(o){o&&(!t||Me(t,o)===-1)&&(i=Cl(o,e,n)||i)}),i}function Rl(r,e,t,n){var i=!1;return e&&r&&Q(r)&&(i=Os(r,e,t,n),!i&&t&&t[q]>0&&(i=Os(r,e,null,n))),i}function vo(r,e,t){r&&Q(r)&&R(r,function(n){n&&Pl(n,e,t)})}function _c(r,e,t){return Rl([zh,jh,Al],r,e,t)}function pc(r,e){vo([zh,jh,Al],r,e)}function Ys(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=zt(Vh,t),o=Os([Al],r,e,i);return(!e||Me(e,dc)===-1)&&(o=Os([dc],n,e,i)||o),!o&&e&&(o=Ys(r,null,t)),o}function mc(r,e){var t=zt(Vh,e);vo([Al],r,t),vo([dc],null,t)}function Ls(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=zt(Kh,t),o=Os([Bh],r,e,i);return o=Os([dc],n,e,i)||o,!o&&e&&(o=Ls(r,null,t)),o}function gc(r,e){var t=zt(Kh,e);vo([Bh],r,t),vo([dc],null,t)}var Gh,Lh,Uh,Mh,Fh,xl,dc,Al,Bh,jh,zh,Vh,Kh,tx,nx,ix,vc,ox,qh=Y(()=>{"use strict";d();he();Ge();xs();Tr();Gh="on",Lh="attachEvent",Uh="addEventListener",Mh="detachEvent",Fh="removeEventListener",xl="events",dc="visibilitychange",Al="pagehide",Bh="pageshow",jh="unload",zh="beforeunload",Vh=Jr("aiEvtPageHide"),Kh=Jr("aiEvtPageShow"),tx=/\.[\.]+/g,nx=/[\.]+$/,ix=1,vc=il("events"),ox=/^([^.]*)(?:\.(.+)|)/});var Vp,Xh=Y(()=>{"use strict";d();wu();Vp=fr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var $e=Y(()=>{"use strict";d();NE();TE();S_();Rh();Fp();nl();yp();rp();Fn();wh();Yh();he();wu();qh();no();xt();Sp();El();Nn();Dl();Xh();hp();xs();yl();Il();Rp();oo();ul();op()});var zn,Jh,Kp,wl,Ol=Y(()=>{"use strict";d();zn="",Jh="https://browser.events.data.microsoft.com/OneCollector/1.0/",Kp="version",wl="properties"});var Wp,$p,Us,Vn,qp,Ze,_a,Ai,Yl,Ll,Ul,Ml,Ec,Fl=Y(()=>{"use strict";d();Wp="initialize",$p="logger",Us="indexOf",Vn="timings",qp="pollInternalLogs",Ze="value",_a="kind",Ai="length",Yl="processTelemetryStart",Ll="handleField",Ul="rmSanitizer",Ml="rmFieldSanitizer",Ec="canHandle"});function kr(r){return!(r===zn||B(r))}function kl(r){if(r){var e=dn(r,"-");if(e>-1)return Ho(r,e)}return zn}function tS(){return Xp===null&&(Xp=!Te(Uint8Array)&&!dx()&&!ro()),Xp}function Hl(r){return!!(r&&Wr(r)&&r>=1&&r<=4)}function Gl(r,e,t){if(!e&&!kr(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||Q(e))e={value:e};else if(n==="object"&&!Zh.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(B(e[Ze])||e[Ze]===zn||!Ne(e[Ze])&&!Wr(e[Ze])&&!Pn(e[Ze])&&!Q(e[Ze]))return null;if(Q(e[Ze])&&!Qp(e[Ze]))return null;if(!B(e[_a])){if(Q(e[Ze])||!hc(e[_a]))return null;e[Ze]=e[Ze].toString()}return e}function Fs(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),lx(t))n===-1&&(n=0),n|=t;else{var i=fx[Kn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function nS(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||zn}function iS(r){r===void 0&&(r="D");var e=ac();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,zn)),e}function pa(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[Ai],c=arguments;for(Pn(c[0])&&(a=c[0],s++);s<u;s++){var r=c[s];ae(r,function(v,_){a&&_&&nr(_)?Q(_)?(o[v]=o[v]||[],R(_,function(g,p){g&&nr(g)?o[v][p]=pa(!0,o[v][p],g):o[v][p]=g})):o[v]=pa(!0,o[v],_):o[v]=_})}return o}function hc(r){return r===0||r>0&&r<=13||r===32}function lx(r){return r>=0&&r<=9}function dx(){var r=Pr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Us]("safari")>=0||e[Us]("firefox")>=0)&&e[Us]("chrome")<0)return!0}return!1}function Qp(r){return r[Ai]>0}function Sc(r,e){var t=r;t[Vn]=t[Vn]||{},t[Vn][Yl]=t[Vn][Yl]||{},t[Vn][Yl][e]=Yt()}function Kn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===oi&&(e=4,Q(r)?(e=4096,r[Ai]>0&&(e|=Kn(r[0]))):Zh.call(r,"value")&&(e=8192|Kn(r[Ze])))}return e}function Bl(){return!!le("chrome")}function oS(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,ux,n),t&&a(s,Qh,t),s.open(r,e,!i),t&&a(s,Qh,t),!i&&o&&a(s,cx,o),s}function _o(r){return r>0}var bi,Jp,Ms,Zh,ux,Qh,cx,fx,Xp,eS,rS,Yt,jl=Y(()=>{"use strict";d();$e();xt();he();Ol();Fl();Jp="4.3.4",Ms="1DS-Web-JS-"+Jp,Zh=Eu.hasOwnProperty,ux="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Qh="withCredentials",cx="timeout",fx=(bi={},bi[0]=0,bi[2]=6,bi[1]=1,bi[3]=7,bi[4098]=6,bi[4097]=1,bi[4099]=7,bi),Xp=null,eS=Go(),rS=as();Yt=Cu});function _x(r){return r&&(!r.getProperty||!r.setProperty)&&hr("Invalid property storage override passed."),!0}var vx,aS,sS=Y(()=>{"use strict";d();xt();Ur();$e();he();Ol();jl();Fl();vx=Rn({endpointUrl:Jh,propertyStorageOverride:{isVal:_x}});aS=(function(r){It(e,r);function e(){var t=r.call(this)||this;return Ce(e,t,function(n,i){n[Wp]=function(o,a,s,u){lr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Wp](Qe(o,vx,s||n[$p],!1).cfg,a,s,u)}catch(v){var c=n[$p],l=te(v);l[Us]("channels")!==-1&&(l+=`
3
- - Channels must be provided through config.channels only!`),H(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){lr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[Vn]=a[Vn]||{},a[Vn].trackStart=Yt(),Hl(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=Ms;var u=a.baseData=a.baseData||{};u[wl]=u[wl]||{};var c=u[wl];c[Kp]=c[Kp]||n.pluginVersionString||zn}i.track(a)},function(){return{item:o}},!o.sync)},n[qp]=function(o){return i[qp](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(Ii)});var uS,cS,fS,lS,dS,vS=Y(()=>{"use strict";d();$e();uS=fr({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}),cS=fr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),fS=fr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),lS=fr({Normal:1,Critical:2}),dS=fr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var _S,pS=Y(()=>{"use strict";d();$e();he();Ol();jl();Fl();_S=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(l,v){var _,g=n[l];if(g&&(_=g[v]),!_&&_!==null){if(Ne(l)&&Ne(v))if(o[Ai]>0){for(var p=0;p<o[Ai];p++)if(o[p][Ll](l,v)){_={canHandle:!0,fieldHandler:o[p]};break}}else i[Ai]===0&&(_={canHandle:!0});if(!_&&_!==null){_=null;for(var p=0;p<i[Ai];p++)if(i[p][Ll](l,v)){_={canHandle:!0,handler:i[p],fieldHandler:null};break}}g||(g=n[l]={}),g[v]=_}return _}t.clearCache=function(){n={}},t.addSanitizer=function(l){l&&(r_(i,l)||i.push(l),n={})},t.addFieldSanitizer=function(l){l&&(r_(o,l)||o.push(l),n={})},t[Ul]=function(l){if(l){var v=Me(i,l);v!==-1&&(i.splice(v,1),n={}),R(i,function(_){_&&_[Ul]&&_[Ul](l)})}},t[Ml]=function(l){if(l){var v=Me(o,l);v!==-1&&(o.splice(v,1),n={}),R(i,function(_){_&&_[Ml]&&_[Ml](l)})}},t.isEmpty=function(){return cs(i)+cs(o)===0},t[Ll]=function(l,v){var _=a(l,v);return _?_[Ec]:!1},t[Ze]=function(l,v,_,g){var p=a(l,v);if(p&&p[Ec]){if(!p||!p[Ec])return null;if(p.handler)return p.handler[Ze](l,v,_,g);if(!Ne(v)||B(_)||_===zn)return null;var N=null,E=Kn(_);if((E&8192)===8192){var x=E&-8193;if(N=_,!kr(N[Ze])||x!==1&&x!==2&&x!==3&&(x&4096)!==4096)return null}else E===1||E===2||E===3||(E&4096)===4096?N=u(l,v,_):E===4&&(N=u(l,v,g?JSON.stringify(_):_));if(N)return s(p,l,v,E,N,g)}return null},t.property=function(l,v,_,g){var p=a(l,v);if(!p||!p[Ec]||!Ne(v)||B(_)||!kr(_[Ze]))return null;var N=Kn(_[Ze]);return N===0?null:s(p,l,v,N,_,g)};function s(l,v,_,g,p,N){if(l.handler)return l.handler.property(v,_,p,N);if(!B(p[_a])){if((g&4096)===4096||!hc(p[_a]))return null;p[Ze]=p[Ze].toString()}return c(l.fieldHandler,v,_,g,p)}function u(l,v,_){return kr(_)?{value:_}:null}function c(l,v,_,g,p){if(p&&l){var N=l.getSanitizer(v,_,g,p[_a],p.propertyType);if(N)if(g===4){var E={},x=p[Ze];ae(x,function(I,w){var U=v+"."+_;if(kr(w)){var j=u(U,I,w);j=c(l,U,I,Kn(w),j),j&&(E[I]=j[Ze])}}),p[Ze]=E}else{var T={path:v,name:_,type:g,prop:p,sanitizer:t};p=N.call(t,T)}}return p}}return r.getFieldType=Kn,r})()});var mS={};df(mS,{ActiveStatus:()=>Ft,AppInsightsCore:()=>aS,BaseTelemetryPlugin:()=>yi,DiagnosticLogger:()=>ao,EventLatency:()=>cS,EventPersistence:()=>lS,EventPropertyType:()=>fS,EventsDiscardedReason:()=>vn,FullVersionString:()=>Ms,InternalAppInsightsCore:()=>Ii,LoggingSeverity:()=>Vp,MinChannelPriorty:()=>E_,NotificationManager:()=>nc,PerfEvent:()=>sa,PerfManager:()=>oc,ProcessTelemetryContext:()=>Lp,SenderPostManager:()=>va,TraceLevel:()=>dS,Undefined:()=>bn,ValueKind:()=>uS,ValueSanitizer:()=>_S,Version:()=>Jp,_InternalLogMessage:()=>oa,__getRegisteredEvents:()=>Bp,_appendHeader:()=>Ds,_getAllResponseHeaders:()=>mi,_logInternalMessage:()=>lp,_testHookMaxUnloadHooksCb:()=>Up,_throwInternal:()=>H,_warnToConsole:()=>pt,addEventHandler:()=>Cl,addEventListeners:()=>Rl,addPageHideEventListener:()=>Ys,addPageShowEventListener:()=>Ls,addPageUnloadEventListener:()=>_c,areCookiesSupported:()=>Ps,arrForEach:()=>R,arrIndexOf:()=>Me,arrMap:()=>si,arrReduce:()=>bu,attachEvent:()=>jp,blockDynamicConversion:()=>Qu,convertAllHeadersToMap:()=>tl,cookieAvailable:()=>Ps,createCookieMgr:()=>Ni,createDynamicConfig:()=>Qe,createEnumStyle:()=>fr,createGuid:()=>iS,createProcessTelemetryContext:()=>mt,createTraceParent:()=>Ap,createUniqueNamespace:()=>Jr,createUnloadHandlerContainer:()=>la,dateNow:()=>cr,detachEvent:()=>zp,disallowsSameSiteNone:()=>gl,doPerf:()=>lr,dumpObj:()=>te,eventOff:()=>xi,eventOn:()=>jn,extend:()=>pa,findW3cTraceParent:()=>Pp,forceDynamicConversion:()=>ep,formatErrorMessageXdr:()=>na,formatErrorMessageXhr:()=>_i,formatTraceParent:()=>Cp,generateW3CId:()=>ua,getCommonSchemaMetaData:()=>Fs,getConsole:()=>Bu,getCookieValue:()=>nS,getCrypto:()=>ju,getDocument:()=>Sr,getDynamicConfigHandler:()=>Ju,getExceptionName:()=>or,getFieldValueType:()=>Kn,getGlobal:()=>_t,getGlobalInst:()=>le,getHistory:()=>If,getIEVersion:()=>Vu,getISOString:()=>hn,getJSON:()=>Xr,getLocation:()=>ia,getMsCrypto:()=>zu,getNavigator:()=>Pr,getPerformance:()=>Bo,getResponseText:()=>Sn,getSetValue:()=>Gu,getTenantId:()=>kl,getTime:()=>Yt,getWindow:()=>Nr,hasDocument:()=>Go,hasHistory:()=>Zv,hasJSON:()=>kn,hasNavigator:()=>xu,hasOwnProperty:()=>br,hasWindow:()=>as,isArray:()=>Q,isArrayValid:()=>Qp,isBeaconsSupported:()=>en,isBoolean:()=>Pn,isChromium:()=>Bl,isDate:()=>Tf,isDocumentObjectAvailable:()=>eS,isError:()=>Fo,isFetchSupported:()=>gi,isFunction:()=>se,isGreaterThanZero:()=>_o,isIE:()=>to,isLatency:()=>Hl,isNotTruthy:()=>Kv,isNullOrUndefined:()=>B,isNumber:()=>Wr,isObject:()=>nr,isReactNative:()=>ro,isSampledFlag:()=>bp,isString:()=>Ne,isTruthy:()=>cn,isTypeof:()=>Vv,isUint8ArrayAvailable:()=>tS,isUndefined:()=>Te,isValidSpanId:()=>fa,isValidTraceId:()=>ca,isValidTraceParent:()=>Nl,isValueAssigned:()=>kr,isValueKind:()=>hc,isWindowObjectAvailable:()=>rS,isXhrSupported:()=>Is,mergeEvtNamespace:()=>zt,newGuid:()=>ac,newId:()=>qu,normalizeJsName:()=>ta,objDefineAccessors:()=>qv,objForEachKey:()=>ae,objFreeze:()=>qt,objKeys:()=>$r,objSeal:()=>Xv,onConfigChange:()=>Fr,openXhr:()=>oS,optimizeObject:()=>Ot,parseResponse:()=>da,parseTraceParent:()=>sc,perfNow:()=>Cu,prependTransports:()=>pi,proxyAssign:()=>k_,proxyFunctionAs:()=>vi,proxyFunctions:()=>jt,random32:()=>Ei,randomValue:()=>X_,removeEventHandler:()=>Pl,removeEventListeners:()=>vo,removePageHideEventListener:()=>mc,removePageShowEventListener:()=>gc,removePageUnloadEventListener:()=>pc,safeGetCookieMgr:()=>Ep,safeGetLogger:()=>Si,sanitizeProperty:()=>Gl,setEnableEnvMocks:()=>W_,setProcessTelemetryTimings:()=>Sc,setValue:()=>Zt,strContains:()=>mr,strEndsWith:()=>jo,strFunction:()=>es,strObject:()=>oi,strPrototype:()=>sn,strStartsWith:()=>fs,strTrim:()=>ke,strUndefined:()=>bn,throwError:()=>hr,toISOString:()=>hn,useXDomainRequest:()=>Ku});var ma=Y(()=>{"use strict";d();sS();vS();pS();$e();jl()});var ga,zl,Vl,Zp=Y(()=>{"use strict";d();ga="REAL_TIME",zl="NEAR_REAL_TIME",Vl="BEST_EFFORT"});var Tn,Kl,gS,em,ES,hS,rm,Wl,Nc,ks,SS,NS,TS,$l,tm,ql,Xl,Jl,Tc,nm,im,DS,Hs,om,Ql,Dc=Y(()=>{"use strict";d();Tn="",Kl="drop",gS="send",em="requeue",ES="rspFail",hS="oth",rm="no-cache, no-store",Wl="application/x-json-stream",Nc="cache-control",ks="content-type",SS="kill-tokens",NS="kill-duration",TS="time-delta-millis",$l="client-version",tm="client-id",ql="time-delta-to-apply-millis",Xl="upload-time",Jl="apikey",Tc="AuthMsaDeviceTicket",nm="WebAuthToken",im="AuthXToken",DS="NoResponseBody",Hs="msfpc",om="trace",Ql="user"});var yc,Zl,ed,rd,Ic,Ae,Wn,Vt,dr,$n,wr,qn,Ea,td,ha,nd,Sa,id,od,yS,am,sm,IS,xS,ad,um,cm,AS,bS,fm,lm,dm,CS,sd,ud,cd,xc,vm,Dn,Gs,_m,ot,Lt,Ac,bc,Bs,fd,Cc,PS,js,ld,dd,zs,pm,Pc,vd,_d,Vs,RS,pd,md,gd,Rc,wS,OS,mm,gm,YS,LS,US,Ed,wc,po,Na,Ks=Y(()=>{"use strict";d();yc="allowRequestSending",Zl="firstRequestSent",ed="shouldAddClockSkewHeaders",rd="getClockSkewHeaderValue",Ic="setClockSkew",Ae="length",Wn="concat",Vt="iKey",dr="count",$n="events",wr="push",qn="split",Ea="splice",td="toLowerCase",ha="hdrs",nd="useHdrs",Sa="initialize",id="setTimeoutOverride",od="clearTimeoutOverride",yS="payloadPreprocessor",am="overrideEndpointUrl",sm="avoidOptions",IS="disableEventTimings",xS="stringifyObjects",ad="enableCompoundKey",um="disableXhrSync",cm="disableFetchKeepAlive",AS="addNoResponse",bS="excludeCsMetaData",fm="useSendBeacon",lm="fetchCredentials",dm="alwaysUseXhrOverride",CS="unloadTransports",sd="serializeOfflineEvt",ud="getOfflineRequestDetails",cd="createPayload",xc="createOneDSPayload",vm="payloadBlob",Dn="headers",Gs="_thePayload",_m="urlString",ot="batches",Lt="sendType",Ac="addHeader",bc="canSendRequest",Bs="sendQueuedRequests",fd="isCompletelyIdle",Cc="setUnloading",PS="isTenantKilled",js="resume",ld="sendSynchronousBatch",dd="_transport",zs="getWParam",pm="isBeacon",Pc="timings",vd="isTeardown",_d="isSync",Vs="data",RS="timeout",pd="_sendReason",md="setKillSwitchTenants",gd="_backOffTransmission",Rc="identifier",wS="disableOptimizeObj",OS="ignoreMc1Ms0CookieProcessing",mm="eventsLimitInMem",gm="autoFlushEventsLimit",YS="disableAutoBatchFlushLimit",LS="overrideInstrumentationKey",US="disableTelemetry",Ed="baseData",wc="sendAttempt",po="latency",Na="sync"});function FS(r){var e=(r.ext||{}).intweb;return e&&kr(e[Hs])?e[Hs]:null}function MS(r){for(var e=null,t=0;e===null&&t<r[Ae];t++)e=FS(r[t]);return e}var mo,hd=Y(()=>{"use strict";d();ma();Dc();Ks();mo=(function(){function r(e,t){var n=t?[][Wn](t):[],i=this,o=MS(n);i[Vt]=function(){return e},i.Msfpc=function(){return o||Tn},i[dr]=function(){return n[Ae]},i[$n]=function(){return n},i.addEvent=function(a){return a?(n[wr](a),o||(o=FS(a)),!0):!1},i[qn]=function(a,s){var u;if(a<n[Ae]){var c=n[Ae]-a;B(s)||(c=s<c?s:c),u=n[Ea](a,c),o=MS(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var kS,HS=Y(()=>{"use strict";d();Ur();Ks();kS=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;Ce(r,this,function(a){a[yc]=function(){return e},a[Zl]=function(){n&&(n=!1,o||(e=!1))},a[ed]=function(){return t},a[rd]=function(){return i},a[Ic]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var px,GS,BS=Y(()=>{"use strict";d();Ur();ma();Ks();px=1e3,GS=(function(){function r(){var e={};function t(n){var i=[];return n&&R(n,function(o){i[wr](ke(o))}),i}Ce(r,this,function(n){n[md]=function(i,o){if(i&&o)try{var a=t(i[qn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*px,u=0;u<a[Ae];++u)e[a[u]]=cr()+s}catch{return[]}return[]},n[PS]=function(i){var o=e,a=ke(i);return o[a]!==void 0&&o[a]>cr()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function zS(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function Sd(r){var e=0,t=jS*mx,n=jS*gx,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,Ex)}var mx,gx,jS,Ex,Em=Y(()=>{"use strict";d();mx=.8,gx=1.2,jS=3e3,Ex=6e5});function Dx(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[VS];a||(a=e[VS]={f:{}});var s=a[Nd];if(s||(s=a[Nd]={}),t)for(var u=0;u<t.length;u++){var c=t[u];s[c]||(s[c]={f:{}});var l=s[c][Nd];l||(l=s[c][Nd]={}),s=l}s=s[n]={},Q(i.value)?s.a={t:o}:s.t=o}}}var hx,Sx,KS,WS,Nx,VS,Nd,Tx,$S,qS=Y(()=>{"use strict";d();Ur();ma();hd();Dc();he();hx=20,Sx=3984588,KS=65e3,WS=2e6,Nx=Math.min(WS,KS),VS="metadata",Nd="f",Tx=/\./,$S=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",c="ext",l=!!i,v=!0,_=t,g={},p=!!a,N=o||Fs;Ce(r,this,function(E){E.createPayload=function(I,w,U,j,W,ne){return{apiKeys:[],payloadBlob:Tn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:I,isTeardown:w,isSync:U,isBeacon:j,sendType:ne,sendReason:W}},E.appendPayload=function(I,w,U){var j=I&&w&&!I.overflow;return j&&lr(e,function(){return"Serializer:appendPayload"},function(){for(var W=w.events(),ne=I.payloadBlob,V=I.numEvents,G=!1,Z=[],fe=[],Se=I.isBeacon,F=Se?KS:Sx,k=Se?Nx:WS,ve=0,ue=0;ve<W.length;){var A=W[ve];if(A){if(V>=U){I.overflow=w.split(ve);break}var _e=E.getEventBlob(A);if(_e&&_e.length<=k){var re=_e.length,ye=ne.length;if(ye+re>F){I.overflow=w.split(ve);break}ne&&(ne+=`
4
- `),ne+=_e,ue++,ue>hx&&(wn(ne,0,1),ue=0),G=!0,V++}else _e?Z.push(A):fe.push(A),W.splice(ve,1),ve--}ve++}if(Z.length>0&&I.sizeExceed.push(mo.create(w.iKey(),Z)),fe.length>0&&I.failedEvts.push(mo.create(w.iKey(),fe)),G){I.batches.push(w),I.payloadBlob=ne,I.numEvents=V;var $=w.iKey();Me(I.apiKeys,$)===-1&&I.apiKeys.push($)}},function(){return{payload:I,theBatch:{iKey:w.iKey(),evts:w.events()},max:U}}),j},E.getEventBlob=function(I){try{return lr(e,function(){return"Serializer.getEventBlob"},function(){var w={};w.name=I.name,w.time=I.time,w.ver=I.ver,w.iKey="o:"+kl(I.iKey);var U={},j;p||(j=function(G,Z,fe){Dx(N,U,G,Z,fe)});var W=I[c];W&&(w[c]=U,ae(W,function(G,Z){var fe=U[G]={};T(Z,fe,"ext."+G,!0,null,null,!0)}));var ne=w[s]={};ne.baseType=I.baseType;var V=ne[u]={};return T(I.baseData,V,u,!1,[u],j,v),T(I.data,ne,s,!1,[],j,v),JSON.stringify(w)},function(){return{item:I}})}catch{return null}};function x(I,w){var U=g[I];return U===void 0&&(I.length>=7&&(U=fs(I,"ext.metadata")||fs(I,"ext.web")),g[I]=U),U}function T(I,w,U,j,W,ne,V){ae(I,function(G,Z){var fe=null;if(Z||kr(Z)){var Se=U,F=G,k=W,ve=w;if(l&&!j&&Tx.test(G)){var ue=G.split("."),A=ue.length;if(A>1){k&&(k=k.slice());for(var _e=0;_e<A-1;_e++){var re=ue[_e];ve=ve[re]=ve[re]||{},Se+="."+re,k&&k.push(re)}F=ue[A-1]}}var ye=j&&x(Se,F);if(!ye&&_&&_.handleField(Se,F)?fe=_.value(Se,F,Z,n):fe=Gl(F,Z,n),fe){var $=fe.value;if(ve[F]=$,ne&&ne(k,F,fe),V&&typeof $=="object"&&!Q($)){var C=k;C&&(C=C.slice(),C.push(F)),T(Z,$,Se+"."+F,j,C,ne,V)}}}})}})}return r.__ieDyn=1,r})()});function Ws(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return lE([r,e],t,n,i)}}}var hm=Y(()=>{"use strict";d();he()});function Da(r,e,t){Nm[r]=e,t!==!1&&(Tm[e]=r)}function Td(r,e){var t=!1;if(r&&e){var n=$r(r);if(n&&n[Ae]>0)for(var i=e[td](),o=0;o<n[Ae];o++){var a=n[o];if(a&&br(e,a)&&a[td]()===i){t=!0;break}}}return t}function $s(r,e,t,n){e&&t&&t[Ae]>0&&(n&&Nm[e]?(r[ha][Nm[e]]=t,r[nd]=!0):r.url+="&"+e+"="+t)}function Ax(r,e,t){for(var n=0;n<r[Ae];n++)if(r[n].name===e){r[n].value=t;return}r[wr]({name:e,value:t})}function bx(r,e){for(var t=0;t<r[Ae];t++)if(r[t].name===e){r[Ea](t,1);return}}var Ta,Sm,yx,Ix,xx,Nm,Tm,XS,JS=Y(()=>{"use strict";d();Ur();ma();he();HS();hd();Dc();BS();Em();qS();hm();Ks();Sm="sendAttempt",yx="&"+DS+"=true",Ix="?cors=true&"+ks[td]()+"="+Wl,xx=(Ta={},Ta[1]=em,Ta[100]=em,Ta[200]="sent",Ta[8004]=Kl,Ta[8003]=Kl,Ta),Nm={},Tm={};Da(Tc,Tc,!1);Da($l,$l);Da(tm,"Client-Id");Da(Jl,Jl);Da(ql,ql);Da(Xl,Xl);Da(im,im);XS=(function(){function r(e,t,n,i){var o,a,s,u,c=!1,l,v,_,g,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e,re,ye;Ce(r,this,function($){vr();var C=!0;$[Sa]=function(h,O,M){ue||(p=O,U=O.getCookieMgr(),v=M,_=v.diagLog(),ln(Se,Fr(h,function(J){var de,Ie=J.cfg,ee=J.cfg.extensionConfig[M.identifier];A=Ws(ee[id],ee[od]),kr(Ie.anonCookieName)?Ax(E,"anoncknm",Ie.anonCookieName):bx(E,"anoncknm"),F=ee[yS],k=ee.payloadListener;var f=ee.httpXHROverride,m=ee[am]?ee[am]:Ie.endpointUrl;o=m+Ix,W=Te(ee[sm])?!0:!ee[sm],w=!ee[IS];var S=ee.valueSanitizer,y=ee[xS],P=!!Ie[ad];Te(ee[ad])||(P=!!ee[ad]),ne=ee.xhrTimeout,V=!!ee[um],G=!!ee[cm],fe=ee[AS]!==!1,_e=!!ee[bS],O.getPlugin("LocalStorage")&&(G=!0),c=!ro(),I=new $S(p,S,y,P,Fs,_e),B(ee[fm])||(c=!!ee[fm]),ee[lm]&&(ye=ee[lm]);var L=We();re?re.SetConfig(L):(re=new va,re[Sa](L,_));var z=f,pe=ee[dm]?f:null,Re=ee[dm]?f:null,ce=[3,2];if(!f){N=!1;var St=[];ro()?(St=[2,1],ce=[2,1,3]):St=[1,2,3],St=pi(St,ee.transports),f=Oe(St,!1),f||pt(_,"No available transport to send events"),z=Oe(St,!0)}pe||(ce=pi(ce,ee[CS]),pe=Oe(ce,!0)),Z=!N&&(c&&en()||!G&&gi(!0)),g=(de={},de[0]=f,de[1]=z||Oe([1,2,3],!0),de[2]=pe||z||Oe([1],!0),de[3]=Re||Oe([2,3],!0)||z||Oe([1],!0),de)})),ue=!0)},$.addResponseHandler=function(h){return ve[wr](h),{rm:function(){var O=ve.indexOf(h);O>=0&&ve[Ea](O,1)}}},$[sd]=function(h){try{if(I)return I.getEventBlob(h)}catch{}return Tn},$[ud]=function(){try{var h=I&&I[cd](0,!1,!1,!1,1,0);return X(h,W)}catch{}return null},$[xc]=function(h,O){try{var M=[];R(h,function(f){O&&(f=Ot(f));var m=mo.create(f[Vt],[f]);M[wr](m)});for(var J=null;M[Ae]>0&&I;){var de=M.shift();de&&de[dr]()>0&&(J=J||I[cd](0,!1,!1,!1,1,0),I.appendPayload(J,de,e))}var Ie=X(J,W),ee={data:J[vm],urlString:Ie.url,headers:Ie[ha],timeout:ne,disableXhrSync:V,disableFetchKeepAlive:G};return W&&(Td(ee[Dn],Nc)||(ee[Dn][Nc]=rm),Td(ee[Dn],ks)||(ee[Dn][ks]=Wl)),ee}catch{}return null};function Oe(h,O){try{return re&&re.getSenderInst(h,O)}catch{}return null}$._getDbgPlgTargets=function(){return[g[0],a,I,g,We(),o]};function We(){try{var h={xdrOnComplete:lt,fetchOnComplete:Kt,xhrOnComplete:jr,beaconOnRetry:dt},O={enableSendPromise:!1,isOneDs:!0,disableCredentials:!C,fetchCredentials:ye,disableXhr:!1,disableBeacon:!c,disableBeaconSync:!c,disableFetchKeepAlive:G,timeWrapper:A,addNoResponse:fe,senderOnCompleteCallBack:h};return O}catch{}return null}function lt(h,O,M){var J=Sn(h);Ar(O,200,{},J),Wt(J)}function vr(){var h;o=null,a=new GS,s=!1,u=new kS,c=!1,l=0,v=null,_=null,g=null,p=null,N=!0,E=[],x={},T=[],I=null,w=!1,U=null,j=!1,W=!1,ne=h,V=h,G=h,Z=h,fe=h,Se=[],F=h,k=h,ve=[],ue=!1,A=Ws(),_e=!1,re=null}function Kt(h,O,M,J){var de=function(f,m,S){Ar(O,f,m,S),Wt(S)},Ie={},ee=h[Dn];ee&&ee.forEach(function(f,m){Ie[m]=f}),de(h.status,Ie,M||Tn)}function jr(h,O,M){var J=Sn(h);Ar(O,h.status,mi(h,!0),J),Wt(J)}function Ar(h,O,M,J){try{h(O,M,J)}catch(de){H(_,2,518,te(de))}}function dt(h,O,M){var J=h,de=200,Ie=J[Gs],ee=h[_m]+(fe?yx:Tn);try{var f=Pr();if(Ie){var m=!!p.getPlugin("LocalStorage"),S=[],y=[];R(Ie[ot],function(P){if(S&&P&&P[dr]()>0)for(var L=P[$n](),z=0;z<L[Ae];z++)if(f.sendBeacon(ee,I.getEventBlob(L[z])))y[wr](P[z]);else{S[wr](P[qn](z));break}else S[wr](P[qn](0))}),y[Ae]>0&&(Ie.sentEvts=y),m||Yr(S,8003,Ie[Lt],!0)}else de=0}catch(P){pt(_,"Failed to send telemetry using sendBeacon API. Ex:"+te(P)),de=0}finally{Ar(O,de,{},Tn)}}function Be(h){return h===2||h===3}function Ue(h){return j&&Be(h)&&(h=2),h}$[Ac]=function(h,O){x[h]=O},$.removeHeader=function(h){delete x[h]},$[bc]=function(){return Xe()&&u[yc]()},$[Bs]=function(h,O){Te(h)&&(h=0),j&&(h=Ue(h),O=2),b(T,h,0)&&ie(Ve(),0,!1,h,O||0)},$[fd]=function(){return!s&&l===0&&T[Ae]===0},$[Cc]=function(h){j=h},$.addBatch=function(h){if(h&&h[dr]()>0){if(a.isTenantKilled(h[Vt]()))return!1;T[wr](h)}return!0},$.teardown=function(){T[Ae]>0&&ie(Ve(),0,!0,2,2),R(Se,function(h){h&&h.rm&&h.rm()}),Se=[]},$.pause=function(){s=!0},$[js]=function(){s=!1,$[Bs](0,4)},$[ld]=function(h,O,M){h&&h[dr]()>0&&(B(O)&&(O=1),j&&(O=Ue(O),M=2),ie([h],0,!1,O,M||0))};function Xe(){return!s&&l<t}function Ve(){var h=T;return T=[],h}function b(h,O,M){var J=!1;return h&&h[Ae]>0&&!s&&g[O]&&I&&(J=O!==0||Xe()&&(M>0||u[yc]())),J}function K(h){var O={};return h&&R(h,function(M,J){O[J]={iKey:M[Vt](),evts:M[$n]()}}),O}function ie(h,O,M,J,de){if(!(!h||h[Ae]===0)){if(s){Yr(h,1,J);return}J=Ue(J);try{var Ie=h,ee=J!==0;lr(p,function(){return"HttpManager:_sendBatches"},function(f){f&&(h=h.slice(0));for(var m=[],S=null,y=Yt(),P=g[J]||(ee?g[1]:g[0]),L=P&&P[dd],z=Z&&(j||Be(J)||L===3||P._isSync&&L===2);b(h,J,O);){var pe=h.shift();pe&&pe[dr]()>0&&(a.isTenantKilled(pe[Vt]())?m[wr](pe):(S=S||I[cd](O,M,ee,z,de,J),I.appendPayload(S,pe,e)?S.overflow!==null&&(h=[S.overflow][Wn](h),S.overflow=null,we(S,y,Yt(),de),y=Yt(),S=null):(we(S,y,Yt(),de),y=Yt(),h=[pe][Wn](h),S=null)))}S&&we(S,y,Yt(),de),h[Ae]>0&&(T=h[Wn](T)),Yr(m,8004,J)},function(){return{batches:K(Ie),retryCount:O,isTeardown:M,isSynchronous:ee,sendReason:de,useSendBeacon:Be(J),sendType:J}},!ee)}catch(f){H(_,2,48,"Unexpected Exception sending batch: "+te(f))}}}function X(h,O){var M={url:o,hdrs:{},useHdrs:!1};O?(M[ha]=pa(M[ha],x),M.useHdrs=$r(M.hdrs)[Ae]>0):ae(x,function(f,m){Tm[f]?$s(M,Tm[f],m,!1):(M[ha][f]=m,M[nd]=!0)}),$s(M,tm,"NO_AUTH",O),$s(M,$l,Ms,O);var J=Tn;R(h.apiKeys,function(f){J[Ae]>0&&(J+=","),J+=f}),$s(M,Jl,J,O),$s(M,Xl,cr().toString(),O);var de=tt(h);if(kr(de)&&(M.url+="&ext.intweb.msfpc="+de),u[ed]()&&$s(M,ql,u[rd](),O),p[zs]){var Ie=p[zs]();Ie>=0&&(M.url+="&w="+Ie)}for(var ee=0;ee<E[Ae];ee++)M.url+="&"+E[ee].name+"="+E[ee].value;return M}function oe(h,O,M){h[O]=h[O]||{},h[O][v.identifier]=M}function we(h,O,M,J){if(h&&h.payloadBlob&&h.payloadBlob[Ae]>0){var de=!!F,Ie=g[h.sendType];!Be(h[Lt])&&h[pm]&&h.sendReason===2&&(Ie=g[2]||g[3]||Ie);var ee=W;(h.isBeacon||Ie[dd]===3)&&(ee=!1);var f=X(h,ee);ee=ee||f[nd];var m=Yt();lr(p,function(){return"HttpManager:_doPayloadSend"},function(){for(var S=0;S<h.batches[Ae];S++)for(var y=h[ot][S],P=y[$n](),L=0;L<P[Ae];L++){var z=P[L];if(w){var pe=z[Pc]=z[Pc]||{};oe(pe,"sendEventStart",m),oe(pe,"serializationStart",O),oe(pe,"serializationCompleted",M)}z[Sm]>0?z[Sm]++:z[Sm]=1}Yr(h[ot],1e3+(J||0),h[Lt],!0);var Re={data:h[vm],urlString:f.url,headers:f[ha],_thePayload:h,_sendReason:J,timeout:ne,disableXhrSync:V,disableFetchKeepAlive:G};ee&&(Td(Re[Dn],Nc)||(Re[Dn][Nc]=rm),Td(Re[Dn],ks)||(Re[Dn][ks]=Wl));var ce=null;Ie&&(ce=function(St){u[Zl]();var ii=function(An,uf){Fe(An,uf,h,J)},Nt=h[vd]||h[_d];try{Ie.sendPOST(St,ii,Nt),k&&k(Re,St,Nt,h[pm])}catch(An){pt(_,"Unexpected exception sending payload. Ex:"+te(An)),Ar(ii,0,{})}}),lr(p,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(ce)if(h[Lt]===0&&l++,de&&!h.isBeacon&&Ie[dd]!==3){var St={data:Re[Vs],urlString:Re[_m],headers:pa({},Re[Dn]),timeout:Re[RS],disableXhrSync:Re[um],disableFetchKeepAlive:Re[cm]},ii=!1;lr(p,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{F(St,function(Nt){ii=!0,!N&&!Nt[Gs]&&(Nt[Gs]=Nt[Gs]||Re[Gs],Nt[pd]=Nt[pd]||Re[pd]),ce(Nt)},h.isSync||h[vd])}catch{ii||ce(Re)}})}else ce(Re)})},function(){return{thePayload:h,serializationStart:O,serializationCompleted:M,sendReason:J}},h[_d])}h.sizeExceed&&h.sizeExceed[Ae]>0&&Yr(h.sizeExceed,8003,h[Lt]),h.failedEvts&&h.failedEvts[Ae]>0&&Yr(h.failedEvts,8002,h[Lt])}function Pe(h,O){w&&R(h,function(M){var J=M[Pc]=M[Pc]||{};oe(J,"sendEventCompleted",O)})}function Fe(h,O,M,J){var de=9e3,Ie=null,ee=!1,f=!1;try{var m=!0;if(typeof h!==bn){if(O){u[Ic](O[TS]);var S=O[NS]||O["kill-duration-seconds"];R(a[md](O[SS],S),function(P){R(M[ot],function(L){if(L[Vt]()===P){Ie=Ie||[];var z=L[qn](0);M.numEvents-=z[dr](),Ie[wr](z)}})})}if(h==200||h==204){de=200;return}(!zS(h)||M.numEvents<=0)&&(m=!1),de=9e3+h%1e3}if(m){de=100;var y=M.retryCnt;M[Lt]===0&&(y<n?(ee=!0,rt(function(){M[Lt]===0&&l--,ie(M[ot],y+1,M[vd],j?2:M[Lt],5)},j,Sd(y))):(f=!0,j&&(de=8001)))}}finally{ee||(u[Ic](),Je(M,de,J,f)),Yr(Ie,8004,M[Lt])}}function Je(h,O,M,J){try{J&&v[gd]();var de=h[ot];O===200&&(de=h.sentEvts||h[ot],!J&&!h[_d]&&v._clearBackOff(),ar(de)),Yr(de,O,h[Lt],!0)}finally{h[Lt]===0&&(l--,M!==5&&$.sendQueuedRequests(h[Lt],M))}}function ar(h){if(w){var O=Yt();R(h,function(M){M&&M[dr]()>0&&Pe(M[$n](),O)})}}function rt(h,O,M){O?h():A.set(h,M)}function tt(h){for(var O=0;O<h.batches[Ae];O++){var M=h[ot][O].Msfpc();if(M)return encodeURIComponent(M)}return Tn}function Wt(h){var O=ve;try{for(var M=0;M<O[Ae];M++)try{O[M](h)}catch(de){H(_,1,519,"Response handler failed: "+de)}if(h){var J=JSON.parse(h);kr(J.webResult)&&kr(J.webResult[Hs])&&U.set("MSFPC",J.webResult[Hs],365*86400)}}catch{}}function Yr(h,O,M,J){if(h&&h[Ae]>0&&i){var de=i[ni(O)];if(de){var Ie=M!==0;lr(p,function(){return"HttpManager:_sendBatchesNotification"},function(){rt(function(){try{de.call(i,h,O,Ie,M)}catch(ee){H(_,1,74,"send request notification failed: "+ee)}},J||Ie,0)},function(){return{batches:K(h),reason:O,isSync:Ie,sendSync:J,sendType:M}},!Ie)}}}function ni(h){var O=xx[h];return kr(O)||(O=hS,h>=9e3&&h<=9999?O=ES:h>=8e3&&h<=8999?O=Kl:h>=1e3&&h<=1999&&(O=gS)),O}})}return r.__ieDyn=1,r})()});function Yx(r){return r&&r.sendPOST}var Cx,QS,Px,rN,tN,Rx,ZS,wx,Dm,ya,eN,Dr,Ox,nN,iN=Y(()=>{"use strict";d();xt();Ur();ma();Zo();he();Zp();hd();JS();Dc();Em();hm();Ks();Cx=.25,QS=500,Px=20,rN=6,tN=2,Rx=4,ZS=2,wx=1,Dm=1e4,ya="eventsDiscarded",eN="",Dr=void 0,Ox=Rn({eventsLimitInMem:{isVal:_o,v:Dm},immediateEventLimit:{isVal:_o,v:500},autoFlushEventsLimit:{isVal:_o,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:Yx,v:Dr},overrideInstrumentationKey:Dr,overrideEndpointUrl:Dr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Dr,clearTimeoutOverride:Dr,payloadPreprocessor:Dr,payloadListener:Dr,disableEventTimings:Dr,valueSanitizer:Dr,stringifyObjects:Dr,enableCompoundKey:Dr,disableOptimizeObj:!1,fetchCredentials:Dr,transports:Dr,unloadTransports:Dr,useSendBeacon:Dr,disableFetchKeepAlive:Dr,avoidOptions:!1,xhrTimeout:Dr,disableXhrSync:Dr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:Wr,v:rN},maxUnloadEventRetryAttempts:{isVal:Wr,v:tN},addNoResponse:Dr,excludeCsMetaData:Dr});nN=(function(r){It(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,l=0,v,_={},g=ga,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e;return Ce(e,t,function(re,ye){Ue(),re._getDbgPlgTargets=function(){return[T,n]},re[Sa]=function(f,m,S){lr(m,function(){return"PostChannel:initialize"},function(){ye[Sa](f,m,S),ve=m.getNotifyMgr();try{fe=zt(Jr(re[Rc]),m.evtNamespace&&m.evtNamespace()),re._addHook(Fr(f,function(y){var P=y.cfg,L=mt(null,P,m);n=L.getExtCfg(re[Rc],Ox),Se=Ws(n[id],n[od]),ne=!n[wS]&&Bl(),F=n[OS],C(m),v=n[mm],c=n.immediateEventLimit,w=n[gm],G=n.maxEventRetryAttempts,Z=n.maxUnloadEventRetryAttempts,k=n[YS],vt(P.endpointUrl)?re.pause():s&&re[js](),ee(),A=n[LS],_e=!!n[US],ue&&$();var z=P.disablePageUnloadEvents||[];ue=_c(lt,z,fe),ue=Ys(lt,z,fe)||ue,ue=Ls(vr,P.disablePageShowEvents,fe)||ue})),T[Sa](f,re.core,re)}catch(y){throw re.setInitialized(!1),y}},function(){return{theConfig:f,core:m,extensions:S}})},re.processTelemetry=function(f,m){Sc(f,re[Rc]),m=m||re._getTelCtx(m);var S=f;!_e&&!i&&(A&&(S[Vt]=A),jr(S,!0),V?b(2,2):Be()),re.processNext(S,m)},re.getOfflineSupport=function(){try{var f=T&&T[ud]();if(T)return{getUrl:function(){return f?f.url:null},serialize:We,batch:Oe,shouldProcess:function(m){return!_e},createPayload:function(m){return null},createOneDSPayload:function(m){if(T[xc])return T[xc](m,ne)}}}catch{}return null},re._doTeardown=function(f,m){b(2,2),i=!0,T.teardown(),$(),Ue()};function $(){pc(null,fe),mc(null,fe),gc(null,fe)}function C(f){var m=f[zs];f[zs]=function(){var S=0;return F&&(S=S|2),S|m.call(f)}}function Oe(f){var m=eN;return f&&f[Ae]&&R(f,function(S){m&&(m+=`
5
- `),m+=S}),m}function We(f){var m=eN;try{Kt(f),m=T[sd](f)}catch{}return m}function lt(f){var m=f||Nr().event;m.type!=="beforeunload"&&(V=!0,T[Cc](V)),b(2,2)}function vr(f){V=!1,T[Cc](V)}function Kt(f){f.ext&&f.ext[om]&&delete f.ext[om],f.ext&&f.ext[Ql]&&f.ext[Ql].id&&delete f.ext[Ql].id,ne&&(f.ext=Ot(f.ext),f[Ed]&&(f[Ed]=Ot(f[Ed])),f[Vs]&&(f[Vs]=Ot(f[Vs])))}function jr(f,m){if(f[wc]||(f[wc]=0),f[po]||(f[po]=1),Kt(f),f[Na]){if(E||s)f[po]=3,f[Na]=!1;else if(T){ne&&(f=Ot(f)),T[ld](mo.create(f[Vt],[f]),f[Na]===!0?1:f[Na],3);return}}var S=f[po],y=l,P=v;S===4&&(y=u,P=c);var L=!1;if(y<P)L=!oe(f,m);else{var z=1,pe=Px;S===4&&(z=4,pe=1),L=!0,we(f[Vt],f[po],z,pe)&&(L=!oe(f,m))}L&&ni(ya,[f],vn.QueueFull)}re.setEventQueueLimits=function(f,m){n[mm]=v=_o(f)?f:Dm,n[gm]=w=_o(m)?m:0,ee();var S=l>f;if(!S&&U>0)for(var y=1;!S&&y<=3;y++){var P=I[y];P&&P[ot]&&R(P[ot],function(L){L&&L[dr]()>=U&&(S=!0)})}X(!0,S)},re.pause=function(){Ve(),s=!0,T&&T.pause()},re[js]=function(){s=!1,T&&T[js](),Be()},re._loadTransmitProfiles=function(f){rt(),ae(f,function(m,S){var y=S[Ae];if(y>=2){var P=y>2?S[2]:0;if(S[Ea](0,y-2),S[1]<0&&(S[0]=-1),S[1]>0&&S[0]>0){var L=S[0]/S[1];S[0]=Math.ceil(L)*S[1]}P>=0&&S[1]>=0&&P>S[1]&&(P=S[1]),S[wr](P),_[m]=S}})},re.flush=function(f,m,S){f===void 0&&(f=!0);var y;if(!s)if(S=S||1,f)m||(y=Qt(function(L){m=L})),a==null?(Ve(),Fe(1,0,S),a=Xe(function(){a=null,Je(m,S)},0)):o[wr](m);else{var P=Ve();Ar(1,1,S),m&&m(),P&&Be()}return y},re.setMsaAuthTicket=function(f){T[Ac](Tc,f)},re.setAuthPluginHeader=function(f){T[Ac](nm,f)},re.removeAuthPluginHeader=function(){T.removeHeader(nm)},re.hasEvents=dt,re._setTransmitProfile=function(f){g!==f&&_[f]!==void 0&&(Ve(),g=f,Be())},jt(re,function(){return T},["addResponseHandler"]);function Ar(f,m,S){var y=Fe(f,m,S);return T[Bs](m,S),y}function dt(){return l>0}function Be(){if(j>=0&&Fe(j,0,W)&&T[Bs](0,W),u>0&&!N&&!s){var f=_[g][2];f>=0&&(N=Xe(function(){N=null,Ar(4,0,1),Be()},f))}var m=_[g][1];!p&&!a&&m>=0&&!s&&(dt()?p=Xe(function(){p=null,Ar(x===0?3:1,0,1),x++,x%=2,Be()},m):x=0)}re[gd]=function(){E<Rx&&(E++,Ve(),Be())},re._clearBackOff=function(){E&&(E=0,Ve(),Be())};function Ue(){n=null,i=!1,o=[],a=null,s=!1,u=0,c=500,l=0,v=Dm,_={},g=ga,p=null,N=null,E=0,x=0,I={},w=0,ue=!1,U=0,j=-1,W=null,ne=!0,V=!1,G=rN,Z=tN,fe=null,A=null,_e=!1,Se=Ws(),T=new XS(QS,ZS,wx,{requeue:Wt,send:O,sent:M,drop:J,rspFail:de,oth:Ie}),tt(),K(),ee()}function Xe(f,m){m===0&&E&&(m=1);var S=1e3;return E&&(S=Sd(E-1)),Se.set(f,m*S)}function Ve(){return p!==null?(p.cancel(),p=null,x=0,!0):!1}function b(f,m){Ve(),a&&(a.cancel(),a=null),s||Ar(1,f,m)}function K(){I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}}}function ie(f,m,S){var y=I[m];y||(m=1,y=I[m]);var P=y.iKeyMap[f];return!P&&S&&(P=mo.create(f),y.batches[wr](P),y.iKeyMap[f]=P),P}function X(f,m){T[bc]()&&!E&&(w>0&&l>w&&(m=!0),m&&a==null&&re.flush(f,function(){},20))}function oe(f,m){ne&&(f=Ot(f));var S=f[po],y=ie(f[Vt],S,!0);return y.addEvent(f)?(S!==4?(l++,m&&f[wc]===0&&X(!f.sync,U>0&&y[dr]()>=U)):u++,!0):!1}function we(f,m,S,y){for(;S<=m;){var P=ie(f,m,!0);if(P&&P[dr]()>0){var L=P[qn](0,y),z=L[dr]();if(z>0)return S===4?u-=z:l-=z,h(ya,[L],vn.QueueFull),!0}S++}return Pe(),!1}function Pe(){for(var f=0,m=0,S=function(P){var L=I[P];L&&L[ot]&&R(L[ot],function(z){P===4?f+=z[dr]():m+=z[dr]()})},y=1;y<=4;y++)S(y);l=m,u=f}function Fe(f,m,S){var y=!1,P=m===0;return!P||T[bc]()?lr(re.core,function(){return"PostChannel._queueBatches"},function(){for(var L=[],z=4;z>=f;){var pe=I[z];pe&&pe.batches&&pe.batches[Ae]>0&&(R(pe[ot],function(Re){T.addBatch(Re)?y=y||Re&&Re[dr]()>0:L=L[Wn](Re[$n]()),z===4?u-=Re[dr]():l-=Re[dr]()}),pe[ot]=[],pe.iKeyMap={}),z--}L[Ae]>0&&ni(ya,L,vn.KillSwitch),y&&j>=f&&(j=-1,W=0)},function(){return{latency:f,sendType:m,sendReason:S}},!P):(j=j>=0?Math.min(j,f):f,W=Math.max(W,S)),y}function Je(f,m){Ar(1,0,m),Pe(),ar(function(){f&&f(),o[Ae]>0?a=Xe(function(){a=null,Je(o.shift(),m)},0):(a=null,Be())})}function ar(f){T[fd]()?f():a=Xe(function(){a=null,ar(f)},Cx)}function rt(){Ve(),tt(),g=ga,Be()}function tt(){_={},_[ga]=[2,1,0],_[zl]=[6,3,0],_[Vl]=[18,9,0]}function Wt(f,m){var S=[],y=G;V&&(y=Z),R(f,function(P){P&&P[dr]()>0&&R(P[$n](),function(L){L&&(L[Na]&&(L[po]=4,L[Na]=!1),L[wc]<y?(Sc(L,re[Rc]),jr(L,!1)):S[wr](L))})}),S[Ae]>0&&ni(ya,S,vn.NonRetryableStatus),V&&b(2,2)}function Yr(f,m){var S=ve||{},y=S[f];if(y)try{y.apply(S,m)}catch(P){H(re.diagLog(),1,74,f+" notification failed: "+P)}}function ni(f,m){for(var S=[],y=2;y<arguments.length;y++)S[y-2]=arguments[y];m&&m[Ae]>0&&Yr(f,[m][Wn](S))}function h(f,m){for(var S=[],y=2;y<arguments.length;y++)S[y-2]=arguments[y];m&&m[Ae]>0&&R(m,function(P){P&&P[dr]()>0&&Yr(f,[P.events()][Wn](S))})}function O(f,m,S){f&&f[Ae]>0&&Yr("eventsSendRequest",[m>=1e3&&m<=1999?m-1e3:0,S!==!0])}function M(f,m){h("eventsSent",f,m),Be()}function J(f,m){h(ya,f,m>=8e3&&m<=8999?m-8e3:vn.Unknown)}function de(f){h(ya,f,vn.NonRetryableStatus),Be()}function Ie(f,m){h(ya,f,vn.Unknown),Be()}function ee(){k?U=0:U=Math.max(QS*(ZS+1),v/6)}}),t}return e.__ieDyn=1,e})(yi)});var oN={};df(oN,{BE_PROFILE:()=>Vl,NRT_PROFILE:()=>zl,PostChannel:()=>nN,RT_PROFILE:()=>ga});var aN=Y(()=>{"use strict";d();Zp();iN()});var Oc,Yc,Dd,Ia,Xn,at,yn=Y(()=>{"use strict";d();Oc="sampleRate",Yc="ProcessLegacy",Dd="http.method",Ia="https://dc.services.visualstudio.com",Xn="/v2/track",at="not_specified"});var yd,uN=Y(()=>{"use strict";d();$e();yd=h_({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 xa,be,Aa,go,Ci,qs,ym,st,Pi,cN,Lc,Uc,ba,tn,Qr,ut,Ca,Jn,Pa,Id,xd,Im,Ra,Eo,Mc,Fc,wa,Xs,Oa,xm,ct=Y(()=>{"use strict";d();xa="split",be="length",Aa="toLowerCase",go="ingestionendpoint",Ci="toString",qs="push",ym="removeItem",st="name",Pi="message",cN="count",Lc="stringify",Uc="pathname",ba="exceptions",tn="parsedStack",Qr="properties",ut="measurements",Ca="sizeInBytes",Jn="typeName",Pa="severityLevel",Id="problemGroup",xd="isManual",Im="CreateFromInterface",Ra="assembly",Eo="fileName",Mc="hasFullStack",Fc="level",wa="method",Xs="line",Oa="duration",xm="receivedResponse"});function Am(r,e,t){var n=e[be],i=fN(r,e);if(i[be]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Cr(i,0,147)+lN(o);i=a}return i}function fN(r,e){var t;return e&&(e=ke(_r(e)),e[be]>150&&(t=Cr(e,0,150),H(r,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),t||e}function Ke(r,e,t){t===void 0&&(t=1024);var n;return e&&(t=t||1024,e=ke(_r(e)),e[be]>t&&(n=Cr(e,0,t),H(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),n||e}function Ya(r,e){return Pm(r,e,2048,66)}function kc(r,e){var t;return e&&e[be]>32768&&(t=Cr(e,0,32768),H(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function bm(r,e){var t;if(e){var n=""+e;n[be]>32768&&(t=Cr(n,0,32768),H(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function gt(r,e){if(e){var t={};ae(e,function(n,i){if(nr(i)&&kn())try{i=Xr()[Lc](i)}catch(o){H(r,2,49,"custom property is not valid",{exception:o},!0)}i=Ke(r,i,8192),n=Am(r,n,t),t[n]=i}),e=t}return e}function Et(r,e){if(e){var t={};ae(e,function(n,i){n=Am(r,n,t),t[n]=i}),e=t}return e}function Cm(r,e){return e&&Pm(r,e,128,69)[Ci]()}function Pm(r,e,t,n){var i;return e&&(e=ke(_r(e)),e[be]>t&&(i=Cr(e,0,t),H(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function lN(r){var e="00"+r;return wn(e,e[be]-3)}var In=Y(()=>{"use strict";d();$e();he();ct()});function _N(r){var e=vN,t=Ux,n=t[e];return dN.createElement?t[e]||(n=t[e]=dN.createElement("a")):n={host:Mx(r,!0)},n.href=r,e++,e>=t[be]&&(e=0),vN=e,n}function Mx(r,e){var t=pN(r,e)||"";if(t){var n=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[be]>3&&Ne(n[2])&&n[2][be]>0)return n[2]+(n[3]||"")}return t}function pN(r,e){var t=null;if(r){var n=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[be]>2&&Ne(n[2])&&n[2][be]>0&&(t=n[2]||"",e&&n[be]>2)){var i=(n[1]||"")[Aa](),o=n[3]||"";(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=""),t+=o}}return t}var dN,vN,Ux,mN=Y(()=>{"use strict";d();$e();ct();dN=Sr()||{},vN=0,Ux=[null,null,null,null,null]});function Ad(r){return Me(Fx,r[Aa]())!==-1}function gN(r,e,t,n){var i,o=n,a=n;if(e&&e[be]>0){var s=_N(e);if(i=s.host,!o)if(s[Uc]!=null){var u=s.pathname[be]===0?"/":s[Uc];u.charAt(0)!=="/"&&(u="/"+u),a=s[Uc],o=Ke(r,t?t+" "+u:u)}else o=Ke(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}var Fx,Rm=Y(()=>{"use strict";d();$e();yn();In();mN();ct();Fx=[Ia+Xn,"https://breeze.aimon.applicationinsights.io"+Xn,"https://dc-int.services.visualstudio.com"+Xn]});var bd,lL,dL,EN=Y(()=>{"use strict";d();$e();bd=fr({LocalStorage:0,SessionStorage:1}),lL=fr({AI:0,AI_AND_W3C:1,W3C:2}),dL=fr({Normal:1,Critical:2})});function SN(r){try{if(B(_t()))return null;var e=new Date()[Ci](),t=le(r===bd.LocalStorage?"localStorage":"sessionStorage"),n=hN+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[ym](n),!i)return t}catch{}return null}function wm(){return Cd()?SN(bd.SessionStorage):null}function Om(r){hN=r||""}function Cd(r){return(r||Js===void 0)&&(Js=!!SN(bd.SessionStorage)),Js}function Ym(r,e){var t=wm();if(t!==null)try{return t.getItem(e)}catch(n){Js=!1,H(r,2,2,"Browser failed read of session storage. "+or(n),{exception:te(n)})}return null}function Lm(r,e,t){var n=wm();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Js=!1,H(r,2,4,"Browser failed write to session storage. "+or(i),{exception:te(i)})}return!1}function Um(r,e){var t=wm();if(t!==null)try{return t[ym](e),!0}catch(n){Js=!1,H(r,2,6,"Browser failed removal of session storage item. "+or(n),{exception:te(n)})}return!1}var Js,hN,NN=Y(()=>{"use strict";d();$e();EN();ct();Js=void 0,hN=""});function Hc(r){if(!r)return{};var e=r[xa](kx),t=bu(e,function(i,o){var a=o[xa](Hx);if(a[be]===2){var s=a[0][Aa](),u=a[1];i[s]=u}return i},{});if($r(t)[be]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[go]=t[go]||"https://"+n+"dc."+t.endpointsuffix}t[go]=t[go]||Ia,jo(t[go],"/")&&(t[go]=t[go].slice(0,-1))}return t}var kx,Hx,TN=Y(()=>{"use strict";d();$e();yn();ct();kx=";",Hx="="});var Mm,DN=Y(()=>{"use strict";d();$e();yn();ct();In();Mm=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[st]=Ke(e,n)||at,o.data=t,o.time=hn(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 Ri,yN=Y(()=>{"use strict";d();yn();ct();In();Ri=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[st]=Ke(e,t)||at,o[Qr]=gt(e,n),o[ut]=Et(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})()});function Gm(r,e){var t=r;return t&&!Ne(t)&&(JSON&&JSON[Lc]?(t=JSON[Lc](r),e&&(!t||t==="{}")&&(se(r[Ci])?t=r[Ci]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function CN(r,e){var t=r;return r&&(t&&!Ne(t)&&(t=r[Hm]||r[bN]||t),t&&!Ne(t)&&(t=Gm(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&dn(t||"",e)===-1&&(t=e+": "+t),t||""}function Bx(r){try{if(nr(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function jx(r){try{if(nr(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function xN(r){return r&&r.src&&Ne(r.src)&&r.obj&&Q(r.obj)}function La(r){var e=r||"";Ne(e)||(Ne(e[Ut])?e=e[Ut]:e=""+e);var t=e[xa](`
1
+ "use strict";var iD=Object.create;var lf=Object.defineProperty;var oD=Object.getOwnPropertyDescriptor;var aD=Object.getOwnPropertyNames;var sD=Object.getPrototypeOf,uD=Object.prototype.hasOwnProperty;var Y=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var nt=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},df=(r,e)=>{for(var t in e)lf(r,t,{get:e[t],enumerable:!0})},Lg=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of aD(e))!uD.call(r,i)&&i!==t&&lf(r,i,{get:()=>e[i],enumerable:!(n=oD(e,i))||n.enumerable});return r};var Tt=(r,e,t)=>(t=r!=null?iD(sD(r)):{},Lg(e||!r||!r.__esModule?lf(t,"default",{value:r,enumerable:!0}):t,r)),cD=r=>Lg(lf({},"__esModule",{value:!0}),r);var d=Y(()=>{});var es,oi,bn,sn,rs,Eu,Av=Y(()=>{"use strict";d();es="function",oi="object",bn="undefined",sn="prototype",rs=Object,Eu=rs[sn]});function ur(r,e){return r||e}function je(r,e){return r?.[e]}function ge(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function DD(r,e,t){var n=ge(r,t);return n.e?e:n.v}function Sf(r){return function(e){return typeof e===r}}function Kg(r){var e="[object "+r+"]";return function(t){return!!(t&&Nf(t)===e)}}function Nf(r){return Iu[Du].call(r)}function Vv(r,e){return typeof r===e}function Te(r){return typeof r===Lo||r===Lo}function ID(r){return r===Vr}function B(r){return r===tr||Te(r)}function un(r){return r===tr||r===Vr}function Wg(r){return!!r||r!==Vr}function yD(r){return!bv&&(bv=["string","number","boolean",Lo,"symbol","bigint"]),r!==Tu&&bv.indexOf(r)!==-1}function nr(r){return!r&&B(r)?!1:!!r&&typeof r===Tu}function vt(r){return!!(r&&r.then&&se(r.then))}function Kv(r){return!r||!cn(r)}function cn(r){return!(!r||DD(function(){return!(r&&0+r)},!r))}function Wv(){}function xD(){return[]}function AD(){return!1}function te(r,e){var t=Bv,n=Iu[Du][pr](r);n===bD&&(r={stack:_r(r.stack),message:_r(r.message),name:_r(r.name)});try{t=JSON.stringify(r,tr,e?typeof e=="number"?e:4:Vr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):tr)||_r(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function hr(r){throw new Error(r)}function it(r){throw new TypeError(r)}function Df(r){un(r)&&it("Cannot convert undefined or null to object")}function $g(r){Ne(r)||it("'"+te(r)+"' is not a string")}function br(r,e){return!!r&&Iu.hasOwnProperty[pr](r,e)}function PD(r,e){return Df(r),br(r,e)||!!CD(r,e)}function RD(r){return r===Su||r===Nu||r===Kr}function ae(r,e,t){if(r&&(nr(r)||se(r))){for(var n in r)if($t(r,n)&&e[pr](un(t)?r:t,n,r[n])===-1)break}}function R(r,e,t){if(r)for(var n=r[Mo]>>>0,i=0;i<n&&!(i in r&&e[pr](un(t)?r:t,r[i],i,r)===-1);i++);}function is(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?Cn[pr](a,1):a)}it('"'+_r(r)+'" not defined for '+te(i))}}function wD(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?Cn[pr](a,1):a)}it('"'+_r(r)+'" not defined for '+te(i))}}function OD(r){return function(e){return e[r]}}function YD(r,e){var t,n=Lr.getOwnPropertyDescriptor;return!un(r)&&n&&(t=ge(n,[r,e]).v||tr),!t&&!un(r)&&(t=ge(function(){for(var i in r)if(i==e)return{enumerable:br(r,i)}}).v),t&&t.enumerable||!1}function qg(r){var e={};if(e[vf.c]=!0,e[vf.e]=!0,r.l){e.get=function(){return r.l.v};var t=UD(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return ae(r,function(n,i){e[vf[n]]=ID(i)?e[vf[n]]:i}),e}function qv(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Dt(r,e,qg(a))}function Ye(r,e,t){return Dt(r,e,qg(t))}function Xg(r,e,t,n,i){var o={};return ae(r,function(a,s){gf(o,a,e?s:a),gf(o,s,t?s:a)}),n?n(o):o}function gf(r,e,t,n){Dt(r,e,{value:t,enumerable:!0,writable:!1})}function Qg(r){return r}function FD(r){return Df(r),r[Su]||tr}function Zg(r,e){if((Q(r)||nr(r)||se(r))&&!MD(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),ae(r,function(n,i){Zg(i,e)}),qt(r)}return r}function Rn(r){return Jg?Zg(r,[]):r}function eE(r){return Xg(r,1,0,qt)}function kD(r){return Xg(r,0,0,qt)}function HD(r){var e={};return ae(r,function(t,n){gf(e,t,n[1]),gf(e,n[0],n[1])}),qt(e)}function rE(r){return HD(r)}function nE(){var r;return typeof globalThis!==Lo&&(r=globalThis),!r&&typeof self!==Lo&&(r=self),!r&&typeof window!==Lo&&(r=window),!r&&typeof global!==Lo&&(r=global),r}function If(){if(!Cv){var r=ge(nE).v||{};Cv=r[Fg]=r[Fg]||{}}return Cv}function BD(r,e,t){return Df(r),t<0?Bv:(e=e||0,e<0&&(e=GD(e+r[Mo],0)),Te(t)?kg(r,e):kg(r,e,e+t))}function Ho(r,e){return Cr(r,0,e)}function jD(r,e){return r&&(ge(function(){r[Ug]=!0,r[Mg]=e}),ge(Ye,[r,Ug,{v:!0,w:!1,e:!1}]),ge(Ye,[r,Mg,{v:e,w:!1,e:!1}])),r}function zD(r,e){var t=null;function n(){}if(un(r))t={};else{var i=typeof r;i!==Tu&&i!==hf&&it("Prototype must be an Object or function: "+te(r)),n[Kr]=r,ge(function(){n[Su]=r}),t=new n}return e&&ge($v,[t,e]),t}function cr(){return(Date.now||VD)()}function VD(){return new Date().getTime()}function Uo(r,e,t){return r.apply(e,t)}function Bi(){Er=If()}function Jv(r,e){var t={};return!Er&&Bi(),t.b=Er.lzy,Dt(t,"v",{configurable:!0,get:function(){var n=Uo(r,null,e);return Er.lzy||Dt(t,"v",{value:n}),t.b=Er.lzy,n}}),t}function XD(){if(!Pv){var r=If();Pv=r.gblSym=r.gblSym||{k:{},s:{}}}return Pv}function Qv(r){var e="_"+qD+++"_"+WD.v,t=jv+"("+r+")";function n(o,a){Ye(i,o,{v:a,e:!1,w:!1})}var i=fn(null);return n("description",_r(r)),n(Du,function(){return t+$D+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),jD(i,"symbol")}function JD(r){var e=XD();if(!$t(e.k,r)){var t=Qv(r),n=$r(e.s).length;t[Hg]=function(){return n+"_"+t[Du]()},e.k[r]=t,e.s[t[Hg]()]=_r(r)}return e.k[r]}function QD(r){!_f&&(_f={});var e,t=tE[r];return t&&(e=_f[t]=_f[t]||Qv(jv+"."+t)),e}function It(r){return Dt({toJSON:function(){return r}},"v",{value:r})}function yu(r,e){var t;return function(){return!Er&&Bi(),(!t||Er.lzy)&&(t=It(ge(r,e).v)),t.v}}function _t(r){return!Er&&Bi(),(!hu||r===!1||Er.lzy)&&(hu=It(ge(nE).v||tr)),hu.v}function le(r,e){var t;if(!hu||e===!1?t=_t(e):t=hu.v,t&&t[r])return t[r];if(r===iE)try{return window}catch{}return tr}function Go(){return!!Sr()}function as(){return!!Nr()}function xu(){return!!Pr()}function Zv(){return!!yf()}function xf(){return ts=It(ge(le,[jv]).v),ts}function ZD(r){var e=(Er.lzy?0:ts)||xf();return e.v?e.v[r]:Vr}function aE(){return!!eI()}function eI(){return!Er&&Bi(),((Er.lzy?0:ts)||xf()).v}function Au(r,e){var t=tE[r];!Er&&Bi();var n=(Er.lzy?0:ts)||xf();return n.v?n.v[t||r]:e?Vr:QD(r)}function ss(r,e){!Er&&Bi();var t=(Er.lzy?0:ts)||xf();return t.v?t.v(r):e?tr:Qv(r)}function Af(r){return!Er&&Bi(),Rv=(Er.lzy?0:Rv)||It(ge(ZD,["for"]).v),(Rv.v||JD)(r)}function Ef(r){return!!r&&se(r.next)}function e_(r){return!un(r)&&se(r[Au(3)])}function bf(r,e,t){if(r&&(Ef(r)||(!pf&&(pf=It(Au(3))),r=r[pf.v]?r[pf.v]():tr),Ef(r))){var n=Vr,i=Vr;try{for(var o=0;!(i=r.next()).done&&e[pr](un(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 ln(r,e){return!Te(e)&&r&&(Q(e)?Uo(r.push,r,e):Ef(e)||e_(e)?bf(e,function(t){r.push(t)}):r.push(e)),r}function us(r,e,t){return((r?r.slice:tr)||Cn).apply(r,Cn[pr](arguments,1))}function rI(r,e,t){return Me(r,e,t)!==-1}function tI(r,e){var t;return!wv&&(wv=It((t={},t[Su]=[],t instanceof Array))),wv.v?r[Su]=e:ae(e,function(n,i){return r[n]=i}),r}function nI(r,e,t){ge(Ye,[e,mf,{v:r,c:!0,e:!1}]),e=sE(e,t);function n(){this[Nu]=e,ge(Ye,[this,mf,{v:r,c:!0,e:!1}])}return e[Kr]=t===tr?fn(t):(n[Kr]=t[Kr],new n),e}function Gg(r,e){e&&(r[mf]=e)}function t_(r,e,t,n){var i=t||Error,o=i[Kr][mf],a=Error.captureStackTrace;return nI(r,function(){var s=this,u=arguments;try{ge(Gg,[i,r]);var c=Uo(i,s,n?n(u):Cn[pr](u))||s;if(c!==s){var l=Gv(s);l!==Gv(c)&&sE(c,l)}return a&&a(c,s[Nu]),e&&e(c,u),c}finally{ge(Gg,[i,o])}},i)}function oI(r){return function(t){return Df(t),t=_r(t),t&&(t=iI(t,r,Bv)),t}}function uI(r,e,t){if(r!==tr&&r!==Vr){for(var n in r)if($t(r,n)&&e[pr](un(t)?r:t,n,r[n])===-1)return;R(sI(r),function(i){if(LD(r,i)&&e[pr](un(t)?r:t,i,r[i])===-1)return-1})}}function cI(r,e,t){uI(r,function(n,i){if(!RD(n))return e[pr](un(t)?r:t,n,i)},t)}function qr(r){if(!r||typeof r!==Tu)return!1;Lv||(Lv=as()?Nr():!0);var e=!1;if(r!==Lv){Yv||(Ov=Function[Kr][Du],Yv=Ov[pr](Lr));try{var t=Gv(r);e=!t,e||(br(t,Nu)&&(t=t[Nu]),e=!!(t&&typeof t===hf&&Ov[pr](t)===Yv))}catch{}}return e}function fI(r,e){e&&r.push(e)}function sr(r,e){e&&e[Kr]}function lI(){var r=[Iu,ai,ns,dD,_D,mD,ED,SD,TD];return ge(le,["Map"]).v,ge(le,["Set"]).v,ge(le,["WeakMap"]).v,ge(le,["WeakSet"]).v,ge(le,["Promise"]).v,ge(le,["Symbol"]).v,ge(le,["ArrayBuffer"]).v,ge(le,["SharedArrayBuffer"]).v,ge(le,["DataView"]).v,ge(le,["Int8Array"]).v,ge(le,["Uint8Array"]).v,ge(le,["Uint8ClampedArray"]).v,ge(le,["Int16Array"]).v,ge(le,["Uint16Array"]).v,ge(le,["Int32Array"]).v,ge(le,["Uint32Array"]).v,ge(le,["Float32Array"]).v,ge(le,["Float64Array"]).v,ge(le,["BigInt64Array"]).v,ge(le,["BigUint64Array"]).v,ge(le,["WeakRef"]).v,ge(le,["FinalizationRegistry"]).v,r}function dI(r){return Uv||(Uv=It(lI())),Me(Uv.v,r)>=0}function vI(r){return r.value&&fE(r),!0}function _I(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 n_(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===Tu?u=qr(e):c=yD(s));var l={type:s,isPrim:c,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(v,_){return n_(r,v,_?a:t,_)},copyTo:function(v,_){return cE(r,v,_,a)}};return l.isPrim?i&&i[pr](t,l)?l.result:e:_I(r,e,o,function(v){Ye(l,"result",{g:function(){return v.v},s:function(p){v.v=p}});for(var _=0,g=i;!(g||(_<Bg.length?Bg[_++]:vI))[pr](t,l);)g=tr})}function cE(r,e,t,n){return dI(t)||cI(t,function(i,o){e[i]=n_(r,o,n,i)}),e}function pI(r,e,t){var n={handler:t,src:e,path:[]};return cE([],r,e,n)}function mI(r,e){var t={handler:e,src:r};return n_([],r,t)}function gI(r){var e=r.value;if(Q(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function EI(r){var e=r.value;return Tf(e)?(r.result=new Date(e.getTime()),!0):!1}function hI(r){return r.type===hf}function fE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function SI(r,e){return R(e,function(t){pI(r,t)}),r}function i_(r,e,t,n,i,o,a){return SI(mI(r)||{},Cn[pr](arguments))}function Bo(){return!Er&&Bi(),(!Mv||Er.lzy)&&(Mv=It(ge(le,["performance"]).v)),Mv.v}function Cu(){var r=Bo();return r&&r.now?r.now():cr()}function NI(r,e,t){$g(r);var n=Ne(e)?e:_r(e),i=!Te(t)&&t<r[Mo]?t:r[Mo];return Cr(r,i-n[Mo],i)===n}function TI(r,e,t){$g(r);var n=Ne(e)?e:_r(e),i=t>0?t:0;return Cr(r,i,i+n[Mo])===n}function II(r,e,t){var n=!0,i=r?e(tr):tr,o;function a(){return n=!1,i&&i[kv]&&i[kv](),o}function s(){i&&t(i),i=tr}function u(){return i=e(i),n||a(),o}function c(l){!l&&i&&s(),l&&!i&&u()}return o={cancel:s,refresh:u},o[Hv]=function(){return i&&i[Hv]?i[Hv]():n},o[Fv]=function(){return n=!0,i&&i[Fv]&&i[Fv](),o},o[kv]=a,o=Dt(o,DI,{get:function(){return!!i},set:c}),{h:o,dn:function(){i=tr}}}function AI(r){var e=se(r)?r:yI;if(!e){var t=If().tmOut||[];Q(t)&&t.length>0&&se(t[0])&&(e=t[0])}return e||setTimeout}function bI(r){var e=se(r)?r:xI;if(!e){var t=If().tmOut||[];Q(t)&&t.length>1&&se(t[1])&&(e=t[1])}return e||clearTimeout}function o_(r,e,t){var n=Q(e),i=n?e.length:0,o=AI(i>0?e[0]:n?Vr:e),a=bI(i>1?e[1]:Vr),s=t[0];t[0]=function(){u.dn(),Uo(s,Vr,Cn[pr](arguments))};var u=II(r,function(c){if(c){if(c.refresh)return c.refresh(),c;Uo(a,Vr,[c])}return Uo(o,Vr,t)},function(c){Uo(a,Vr,[c])});return u.h}function Mt(r,e){return o_(!0,Vr,Cn[pr](arguments))}function lE(r,e,t){return o_(!0,r,Cn[pr](arguments,1))}function dE(r,e){return o_(!1,Vr,Cn[pr](arguments))}var Vr,tr,Bv,hf,Tu,Kr,Su,Lo,Nu,jv,Mo,mf,pr,Du,zv,fD,Lr,Iu,jg,ai,zg,Vg,ns,Cn,lD,dD,vD,_D,pD,mD,gD,ED,hD,SD,ND,TD,Ug,Mg,bv,Ne,se,Q,Tf,Wr,Pn,Fo,_r,bD,CD,$t,ko,LD,UD,vf,Dt,$v,MD,Jg,os,$r,qt,Xv,Gv,tE,Fg,Cv,GD,kg,Cr,wn,fn,Er,KD,WD,Hg,$D,Pv,qD,_f,iE,hu,Sr,Nr,Pr,yf,oE,ts,Rv,pf,Me,si,r_,cs,bu,wv,sE,iI,aI,ke,uE,sI,Ov,Yv,Lv,Uv,Bg,Mv,dn,jo,fs,Fv,kv,Hv,DI,yI,xI,he=Y(()=>{"use strict";d();Vr=void 0,tr=null,Bv="",hf="function",Tu="object",Kr="prototype",Su="__proto__",Lo="undefined",Nu="constructor",jv="Symbol",Mo="length",mf="name",pr="call",Du="toString",zv="getOwnPropertyDescriptor",fD="getOwnPropertySymbols",Lr=ur(Object),Iu=je(Lr,Kr),jg=ur(String),ai=je(jg,Kr),zg=ur(Math),Vg=ur(Array),ns=je(Vg,Kr),Cn=je(ns,"slice"),lD=ur(Number),dD=je(lD,Kr),vD=ur(Function),_D=je(vD,Kr),pD=ur(Date),mD=je(pD,Kr),gD=ur(RegExp),ED=je(gD,Kr),hD=ur(Boolean),SD=je(hD,Kr),ND=ur(Error),TD=je(ND,Kr),Ug="_polyfill",Mg="__nw21$polytype__";Ne=Sf("string"),se=Sf(hf);Q=je(Vg,"isArray"),Tf=Kg("Date"),Wr=Sf("number"),Pn=Sf("boolean"),Fo=Kg("Error");_r=ur(jg),bD="[object Error]";CD=ur(je(Lr,zv),Wv),$t=ur(je(Lr,"hasOwn"),PD);ko=is;LD=wD("propertyIsEnumerable",Iu,YD),UD=ur(je(Lr,zv),Wv),vf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Dt=je(Lr,"defineProperty"),$v=je(Lr,"defineProperties");MD=ur(je(Lr,"isFrozen"),AD),Jg=je(Lr,"freeze");os=je(Lr,"assign"),$r=je(Lr,"keys");qt=ur(Jg,Qg),Xv=ur(je(Lr,"seal"),Qg),Gv=ur(je(Lr,"getPrototypeOf"),FD);tE=kD({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}),Fg="__tsUtils$gblCfg";GD=je(zg,"max"),kg=ko("slice",ai),Cr=ko("substring",ai),wn=is("substr",ai,BD);fn=ur(je(Lr,"create"),zD);KD=je(zg,"random"),WD=Jv(function(){for(var r=cr().toString(36).slice(2);r.length<16;)r+=KD().toString(36).slice(2);return r=r.substring(0,16),r}),Hg="_urid",$D="$nw21sym",qD=0;iE="window";Sr=yu(le,["document"]);Nr=yu(le,[iE]);Pr=yu(le,["navigator"]);yf=yu(le,["history"]),oE=yu(function(){return!!ge(function(){return process&&(process.versions||{}).node}).v});Me=ko("indexOf",ns),si=ko("map",ns);r_=is("includes",ns,rI),cs=OD(Mo),bu=ko("reduce",ns),sE=ur(je(Lr,"setPrototypeOf"),tI);iI=ko("replace",ai);aI=oI(/^\s+|(?=\s)\s+$/g),ke=is("trim",ai,aI),uE=ur(je(Lr,zv),Wv),sI=ur(je(Lr,fD),xD);Bg=[gI,fE,hI,EI];dn=ko("indexOf",ai),jo=is("endsWith",ai,NI);fs=is("startsWith",ai,TI);Fv="ref",kv="unref",Hv="hasRef",DI="enabled"});function yt(r,e){typeof e!==es&&e!==null&&it("Class extends value "+String(e)+" is not a constructor or null"),a_(r,e);function t(){this.constructor=r}r[sn]=e===null?fn(e):(t[sn]=e[sn],new t)}function Cf(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var tb,nb,vE,PI,Xt,a_,_E=Y(()=>{"use strict";d();he();Av();tb=(_t()||{}).Symbol,nb=(_t()||{}).Reflect,vE="hasOwnProperty",PI=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Eu[vE].call(e,i)&&(r[i]=e[i])}return r},Xt=os||PI,a_=function(r,e){return a_=rs.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[vE](i)&&(t[i]=n[i])},a_(r,e)}});var pE=Y(()=>{"use strict";d()});var xt=Y(()=>{"use strict";d();Av();_E();pE();he()});function Of(r){return r&&(r===__[ui]||r===Array[ui])}function p_(r){return Of(r)||r===Function[ui]}function zo(r){var e;if(r){if(Ru)return Ru(r);var t=r[v_]||r[ui]||(r[Yf]?r[Yf][ui]:null);e=r[Rf]||t,br(r,Rf)||(delete r[s_],e=r[Rf]=r[s_]||r[Rf],r[s_]=t)}return e}function Mf(r,e){var t=[];if(EE)t=EE(r);else for(var n in r)typeof n=="string"&&br(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function m_(r,e,t){return e!==Yf&&typeof r[e]===Lf&&(t||br(r,e))&&e!==v_&&e!==ui}function Ff(r){it("DynamicProto: "+r)}function wI(r){var e=fn(null);return Mf(r,function(t){!e[t]&&m_(r,t,!1)&&(e[t]=r[t])}),e}function g_(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function OI(r,e,t,n){function i(u,c,l){var v=c[l];if(v[c_]&&n){var _=u[Uf]||{};_[Pu]!==!1&&(v=(_[c[ls]]||{})[l]||v)}return function(){return v.apply(u,arguments)}}var o=fn(null);Mf(t,function(u){o[u]=i(e,t,u)});for(var a=zo(r),s=[];a&&!p_(a)&&!g_(s,a);)Mf(a,function(u){!o[u]&&m_(a,u,!Ru)&&(o[u]=i(e,a,u))}),s.push(a),a=zo(a);return o}function YI(r,e,t,n){var i=null;if(r&&br(t,ls)){var o=r[Uf]||fn(null);if(i=(o[t[ls]]||fn(null))[e],i||Ff("Missing ["+e+"] "+Lf),!i[f_]&&o[Pu]!==!1){for(var a=!br(r,e),s=zo(r),u=[];a&&s&&!p_(s)&&!g_(u,s);){var c=s[e];if(c){a=c===n;break}u.push(s),s=zo(s)}try{a&&(r[e]=i),i[f_]=1}catch{o[Pu]=!1}}}return i}function LI(r,e,t){var n=e[r];return n===t&&(n=zo(e)[r]),typeof n!==Lf&&Ff("["+r+"] is not a "+Lf),n}function UI(r,e,t,n,i){function o(u,c){var l=function(){var v=YI(this,c,u,l)||LI(c,u,l);return v.apply(this,arguments)};return l[c_]=1,l}if(!Of(r)){var a=t[Uf]=t[Uf]||fn(null);if(!Of(a)){var s=a[e]=a[e]||fn(null);a[Pu]!==!1&&(a[Pu]=!!i),Of(s)||Mf(t,function(u){m_(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!br(r,u)||r[u]&&!r[u][c_])&&(r[u]=o(r,u)))})}}}function MI(r,e){if(Ru){for(var t=[],n=zo(e);n&&!p_(n)&&!g_(t,n);){if(n===r)return!0;t.push(n),n=zo(n)}return!1}return!0}function u_(r,e){return br(r,ui)?r.name||e||mE:((r||{})[Yf]||{}).name||e||mE}function Ce(r,e,t,n){br(r,ui)||Ff("theClass is an invalid class definition.");var i=r[ui];MI(i,e)||Ff("["+u_(r)+"] not in hierarchy of ["+u_(e)+"]");var o=null;br(i,ls)?o=i[ls]:(o=RI+u_(r,"_")+"$"+d_.n,d_.n++,i[ls]=o);var a=Ce[SE],s=!!a[wf];s&&n&&n[wf]!==void 0&&(s=!!n[wf]);var u=wI(e),c=OI(i,e,u,s);t(e,c);var l=!!Ru&&!!a[l_];l&&n&&(l=!!n[l_]),UI(i,o,e,u,l!==!1)}var Pf,Yf,ui,Lf,Uf,c_,ls,RI,f_,Pu,SE,mE,v_,Rf,gE,s_,wf,l_,__,Ru,EE,hE,d_,Ur=Y(()=>{"use strict";d();he();Yf="constructor",ui="prototype",Lf="function",Uf="_dynInstFuncs",c_="_isDynProxy",ls="_dynClass",RI="_dynCls$",f_="_dynInstChk",Pu=f_,SE="_dfOpts",mE="_unknown_",v_="__proto__",Rf="_dyn"+v_,gE="__dynProto$Gbl",s_="_dynInstProto",wf="useBaseInst",l_="setInstFuncs",__=Object,Ru=__.getPrototypeOf,EE=__.getOwnPropertyNames,hE=_t(),d_=hE[gE]||(hE[gE]={o:(Pf={},Pf[l_]=!0,Pf[wf]=!0,Pf),n:1e3});Ce[SE]=d_.o});var E_,NE=Y(()=>{"use strict";d();E_=100});var fr,h_,wu=Y(()=>{"use strict";d();he();fr=eE,h_=rE});var vn,FI,TE=Y(()=>{"use strict";d();wu();vn=fr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),FI=fr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ft,S_=Y(()=>{"use strict";d();wu();Ft=fr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var At,ji,q,Vo,Ko,ds,ci,_n,pn,ze,zi,xe,On,kf,fi,li,Yn,vs,_s,bt,N_,Hf,Wo,Ou,Vi,Mr,ps,Ki,Rr,Gf,T_,Wi,D_,Ct,Yu,$o,Bf,Ln,kt,ms,Un,mn,Pt,$i,qo,Ht,qi,jf,Lu,Jt,zf,gn,I_,Rt,Uu,Xo,y_,x_,Mu,Xi,Jo,En,Vf,A_,gs,b_,Kf,Qo,C_,Es,hs,Ji,Ge=Y(()=>{"use strict";d();At="toLowerCase",ji="blkVal",q="length",Vo="rdOnly",Ko="notify",ds="warnToConsole",ci="throwInternal",_n="setDf",pn="watch",ze="logger",zi="apply",xe="push",On="splice",kf="hdlr",fi="cancel",li="initialize",Yn="identifier",vs="removeNotificationListener",_s="addNotificationListener",bt="isInitialized",N_="instrumentationKey",Hf="INACTIVE",Wo="value",Ou="getNotifyMgr",Vi="getPlugin",Mr="name",ps="iKey",Ki="time",Rr="processNext",Gf="getProcessTelContext",T_="pollInternalLogs",Wi="enabled",D_="stopPollingInternalLogs",Ct="unload",Yu="onComplete",$o="version",Bf="loggingLevelConsole",Ln="createNew",kt="teardown",ms="messageId",Un="message",mn="isAsync",Pt="diagLog",$i="_doTeardown",qo="update",Ht="getNext",qi="setNextPlugin",jf="protocol",Lu="userAgent",Jt="split",zf="nodeType",gn="replace",I_="logInternalMessage",Rt="type",Uu="handler",Xo="status",y_="getResponseHeader",x_="getAllResponseHeaders",Mu="isChildEvt",Xi="data",Jo="getCtx",En="setCtx",Vf="complete",A_="itemsReceived",gs="urlString",b_="sendPOST",Kf="headers",Qo="timeout",C_="setRequestHeader",Es="traceId",hs="spanId",Ji="traceFlags"});function DE(r,e){P_||(P_=t_("AggregationError",function(n,i){i[q]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw R(e,function(n,i){t+=`
2
+ `.concat(i," > ").concat(te(n))}),new P_(t,e||[])}var P_,IE=Y(()=>{"use strict";d();he();Ge()});function Gt(r,e){return bE(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:F_,rejected:!0,reason:t}):t})}function bE(r,e,t,n){var i=r;try{if(vt(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&&kI(i,n)}return i}function kI(r,e){var t=r;return e&&(vt(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function HI(r,e,t,n){R_=R_||{toString:function(){return"[[PromiseState]]"}},w_=w_||{toString:function(){return"[[PromiseResult]]"}},O_=O_||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[R_]={get:e},i[w_]={get:t},i[O_]={get:n},$v(r,i)}function GI(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function BI(r,e,t,n){var i=Sr();!Wf&&(Wf=It(!!ge(GI,[i]).v));var o=Wf.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),Wf.v&&o.initEvent(e,!1,!0),o&&r[xE])r[xE](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 AE(r){return se(r)?r.toString():te(r)}function RE(r,e,t){var n=us(arguments,3),i=0,o=!1,a,s=[],u=zI++,c=Fu.length>0?Fu[Fu.length-1]:void 0,l=!1,v=null,_;function g(U,j){try{Fu.push(u),l=!0,v&&v.cancel(),v=null;var W=r(function(ne,V){s.push(function(){try{var G=i===2?U:j,Z=Te(G)?a:se(G)?G(a):G;vt(Z)?Z.then(ne,V):G?ne(Z):i===3?V(Z):ne(Z)}catch(fe){V(fe)}}),o&&x()},n);return W}finally{Fu.pop()}}function p(U){return g(void 0,U)}function N(U){var j=U,W=U;return se(U)&&(j=function(ne){return U&&U(),ne},W=function(ne){throw U&&U(),ne}),g(j,W)}function E(){return CE[i]}function x(){if(s.length>0){var U=s.slice();s=[],l=!0,v&&v.cancel(),v=null,e(U)}}function T(U,j){return function(W){if(i===j){if(U===2&&vt(W)){i=1,W.then(T(2,1),T(3,1));return}i=U,o=!0,a=W,x(),!l&&U===3&&!v&&(v=Mt(y,VI))}}}function y(){if(!l)if(l=!0,oE())process.emit(PE,a,_);else{var U=Nr()||_t();!Y_&&(Y_=It(ge(le,[$f+"RejectionEvent"]).v)),BI(U,jI,function(j){return Ye(j,"promise",{g:function(){return _}}),j.reason=a,j},!!Y_.v)}}_={then:g,catch:p,finally:N},Dt(_,"state",{get:E}),yE&&HI(_,E,function(){return Nf(a)},function(){return l}),aE()&&(_[Au(11)]="IPromise");function w(){return"IPromise"+(yE?"["+u+(Te(c)?"":":"+c)+"]":"")+" "+E()+(o?" - "+AE(a):"")}return _.toString=w,(function(){se(t)||it($f+": executor is not a function - "+AE(t));var j=T(3,0);try{t.call(_,T(2,0),j)}catch(W){j(W)}})(),_}function KI(r){return function(e){var t=us(arguments,1);return r(function(n,i){try{var o=[],a=1;bf(e,function(s,u){s&&(a++,bE(s,function(c){o[u]=c,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function WI(r){return It(function(e){var t=us(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,c){a++,Gt(u,function(l){l.rejected?o[c]={status:F_,reason:l.reason}:o[c]={status:"fulfilled",value:l.value},--a===0&&n(o)})}try{Q(e)?R(e,s):e_(e)?bf(e,s):it("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function wE(r){R(r,function(e){try{e()}catch{}})}function $I(r){var e=Wr(r)?r:0;return function(t){Mt(function(){wE(t)},e)}}function OE(r,e){return RE(OE,$I(e),r,e)}function qI(r,e){!L_&&(L_=It(ge(le,[$f]).v||null));var t=L_.v;if(!t)return OE(r);se(r)||it($f+": executor is not a function - "+te(r));var n=0;function i(){return CE[n]}var o=new t(function(a,s){function u(l){n=2,a(l)}function c(l){n=3,s(l)}r(u,c)});return Dt(o,"state",{get:i}),o}function ku(r){return RE(ku,wE,r)}function YE(r,e){return!U_&&(U_=WI(ku)),U_.v(r,e)}function Qt(r,e){return!M_&&(M_=It(qI)),M_.v.call(this,r,e)}var $f,F_,R_,w_,O_,yE,CE,xE,Wf,PE,jI,Fu,zI,VI,Y_,L_,U_,M_,LE,Xb,Zo=Y(()=>{"use strict";d();he();$f="Promise",F_="rejected";yE=!1;CE=["pending","resolving","resolved",F_],xE="dispatchEvent";PE="unhandledRejection",jI=PE.toLowerCase(),Fu=[],zI=0,VI=10;LE=KI(Qt),Xb=Au(11)});var Bt,me,Qi,ir,qf,Hu,di,ea,wt,ra,Ss,Zi,Ns,Mn,Xf,Jf,Qf,Ts,Zf,el,UE,Tr=Y(()=>{"use strict";d();Bt=void 0,me="",Qi="channels",ir="core",qf="createPerfMgr",Hu="disabled",di="extensionConfig",ea="extensions",wt="processTelemetry",ra="priority",Ss="eventsSent",Zi="eventsDiscarded",Ns="eventsSendRequest",Mn="perfEvent",Xf="offlineEventsStored",Jf="offlineBatchSent",Qf="offlineBatchDrop",Ts="getPerfMgr",Zf="domain",el="path",UE="Not dynamic - "});function eo(r){return!B(r)}function ta(r){var e=r;return e&&Ne(e)&&(e=e[gn](JI,function(t,n){return n.toUpperCase()}),e=e[gn](QI,"_"),e=e[gn](ZI,function(t,n){return"_"+n})),e}function mr(r,e){return r&&e?dn(r,e)!==-1:!1}function hn(r){return r&&r.toISOString()||""}function or(r){return Fo(r)?r[Mr]:me}function Zt(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 Gu(r,e,t){var n;return r?(n=r[e],!n&&B(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function FE(r,e){var t=null,n=null;return se(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][zi](n,i)}}function k_(r,e,t){if(r&&e&&nr(r)&&nr(e)){var n=function(o){if(Ne(o)){var a=e[o];se(a)?(!t||t(o,!0,e,r))&&(r[o]=FE(e,o)):(!t||t(o,!1,e,r))&&($t(r,o)&&delete r[o],Ye(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function vi(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=FE(t,n))}function jt(r,e,t,n){return r&&e&&nr(r)&&Q(t)&&R(t,function(i){Ne(i)&&vi(r,i,e,i,n)}),r}function H_(r){return(function(){function e(){var t=this;r&&ae(r,function(n,i){t[n]=i})}return e})()}function Ot(r){return r&&os&&(r=rs(os({},r))),r}function rl(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[q],c=!1,l=1;for(u>0&&Pn(s)&&(c=s,s=a[l]||{},l++),nr(s)||(s={});l<u;l++){var v=a[l],_=Q(v),g=nr(v);for(var p in v){var N=_&&p in v||g&&$t(v,p);if(N){var E=v[p],x=void 0;if(c&&E&&((x=Q(E))||qr(E))){var T=s[p];x?Q(T)||(T=[]):qr(T)||(T={}),E=rl(c,T,E)}E!==void 0&&(s[p]=E)}}}return s}function Sn(r){try{return r.responseText}catch{}return null}function na(r,e){return r?"XDomainRequest,Response:"+Sn(r)||"":e}function _i(r,e){return r?"XMLHttpRequest,Status:"+r[Xo]+",Response:"+Sn(r)||r.response||"":e}function pi(r,e){return e&&(Wr(e)?r=[e].concat(r):Q(e)&&(r=e.concat(r))),r}function G_(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,ey,n),t&&a(s,ME,t),s.open(r,e,!i),t&&a(s,ME,t),!i&&o&&a(s,ry,o),s}function tl(r){var e={};if(Ne(r)){var t=ke(r)[Jt](/[\r\n]+/);R(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=ke(n.substring(0,i))[At](),a=ke(n.substring(i+1));e[o]=a}else e[ke(n)]=1}})}return e}function Ds(r,e,t){if(!r[t]&&e&&e[y_]){var n=e[y_](t);n&&(r[t]=ke(n))}return r}function mi(r,e){var t={};return r[x_]?t=tl(r[x_]()):e&&(t=Ds(t,r,iy),t=Ds(t,r,ty),t=Ds(t,r,ny)),t}var XI,JI,QI,ZI,o0,ey,ME,ry,ty,ny,iy,Fn=Y(()=>{"use strict";d();xt();he();Ge();Tr();XI="getPrototypeOf",JI=/-([a-z])/g,QI=/([^\w\d_$])/g,ZI=/^(\d+[\w\d_$])/,o0=Object[XI];ey="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ME="withCredentials",ry="timeout";ty="kill-duration",ny="kill-duration-seconds",iy="time-delta-millis"});function BE(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[sn];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function W_(r){GE=r}function ia(r){if(r&&GE){var e=le("__mockLocation");if(e)return e}return typeof location===oi&&location?location:le(ay)}function Bu(){return typeof console!==bn?console:le(sy)}function kn(){return!!(typeof JSON===oi&&JSON||le(kE)!==null)}function Xr(){return kn()?JSON||le(kE):null}function ju(){return le(uy)}function zu(){return le(cy)}function ro(){var r=Pr();return r&&r.product?r.product===fy:!1}function to(){var r=Pr();if(r&&(r[Lu]!==j_||B_===null)){j_=r[Lu];var e=(j_||me)[At]();B_=mr(e,V_)||mr(e,K_)}return B_}function Vu(r){if(r===void 0&&(r=null),!r){var e=Pr()||{};r=e?(e.userAgent||me)[At]():me}var t=(r||me)[At]();if(mr(t,V_)){var n=Sr()||{};return Math.max(parseInt(t[Jt](V_)[1]),n[oy]||0)}else if(mr(t,K_)){var i=parseInt(t[Jt](K_)[1]);if(i)return i+4}return null}function en(r){return(z_===null||r===!1)&&(z_=xu()&&!!Pr().sendBeacon),z_}function gi(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=BE(t,"keepalive"))}catch{}return e}function Ku(){return Is===null&&(Is=typeof XDomainRequest!==bn,Is&&ys()&&(Is=Is&&!BE(le(HE),"withCredentials"))),Is}function ys(){var r=!1;try{var e=le(HE);r=!!e}catch{}return r}function jE(r,e){if(r)for(var t=0;t<r[q];t++){var n=r[t];if(n[Mr]&&n[Mr]===e)return n}return{}}function $_(r){var e=Sr();return e&&r?jE(e.querySelectorAll("meta"),r).content:null}function q_(r){var e,t=Bo();if(t){var n=t.getEntriesByType("navigation")||[];e=jE((n[q]>0?n[0]:{}).serverTiming,r).description}return e}var oy,ay,sy,kE,uy,cy,fy,V_,K_,HE,B_,j_,GE,Is,z_,no=Y(()=>{"use strict";d();xt();he();Ge();Fn();Tr();oy="documentMode",ay="location",sy="console",kE="JSON",uy="crypto",cy="msCrypto",fy="ReactNative",V_="msie",K_="trident/",HE="XMLHttpRequest",B_=null,j_=null,GE=!1,Is=null,z_=null});function ly(r){r<0&&(r>>>=0),Wu=VE+r&io,$u=KE-r&io,WE=!0}function dy(){try{var r=cr()&2147483647;ly((Math.random()*zE^r)+r)}catch{}}function X_(r){return r>0?Math.floor(Ei()/io*(r+1))>>>0:0}function Ei(r){var e=0,t=ju()||zu();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&io),e===0&&to()&&(WE||dy(),e=$E()&io),e===0&&(e=Math.floor(zE*Math.random()|0)),r||(e>>>=0),e}function $E(r){$u=36969*($u&65535)+($u>>16)&io,Wu=18e3*(Wu&65535)+(Wu>>16)&io;var e=($u<<16)+(Wu&65535)>>>0&io|0;return r||(e>>>=0),e}function qu(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=Ei()>>>0,n=0,i=me;i[q]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(Ei()<<2&4294967295|t&3)>>>0,n=0);return i}var zE,io,VE,KE,WE,Wu,$u,nl=Y(()=>{"use strict";d();he();Ge();no();Tr();zE=4294967296,io=4294967295,VE=123456789,KE=987654321,WE=!1,Wu=VE,$u=KE});function XE(r){return r[zf]===1||r[zf]===9||!+r[zf]}function py(r,e){var t=e[r.id];if(!t){t={};try{XE(e)&&Ye(e,r.id,{e:!1,v:t})}catch{}}return t}function Jr(r,e){return e===void 0&&(e=!1),ta(r+_y+++(e?"."+qE:me)+vy)}function il(r){var e={id:Jr("_aiData-"+(r||me)+"."+qE),accept:function(t){return XE(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[ta(n)]:(o&&(a=py(e,t),a[ta(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var qE,vy,_y,xs=Y(()=>{"use strict";d();he();Ge();Fn();Tr();nl();qE="3.3.4",vy="."+qu(6),_y=0});function ol(r){return r&&nr(r)&&(r.isVal||r.fb||$t(r,"v")||$t(r,"mrg")||$t(r,"ref")||r.set)}function JE(r,e,t){var n,i=t.dfVal||Wg;if(e&&t.fb){var o=t.fb;Q(o)||(o=[o]);for(var a=0;a<o[q];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,_r(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function J_(r,e,t){var n=t;if(t&&ol(t)&&(n=JE(r,e,t)),n){ol(n)&&(n=J_(r,e,n));var i;Q(n)?(i=[],i[q]=n[q]):qr(n)&&(i={}),i&&(ae(n,function(o,a){a&&ol(a)&&(a=J_(r,e,a)),i[o]=a}),n=i)}return n}function Xu(r,e,t,n){var i,o,a,s=n,u,c,l,v;ol(s)?(i=s.isVal,o=s.set,l=s[Vo],v=s[ji],u=s.mrg,c=s.ref,!c&&Te(c)&&(c=!!u),a=JE(r,e,s)):a=n,v&&r[ji](e,t);var _,g=!0,p=e[t];(p||!B(p))&&(_=p,g=!1,i&&_!==a&&!i(_)&&(_=a,g=!0),o&&(_=o(_,a,e),g=_===a)),g?a?_=J_(r,e,a):_=a:(qr(_)||Q(a))&&u&&a&&(qr(a)||Q(a))&&ae(a,function(N,E){Xu(r,_,N,E)}),r.set(e,t,_),c&&r.ref(e,t),l&&r[Vo](e,t)}var Q_=Y(()=>{"use strict";d();he();Ge()});function Z_(r){if(r){var e;if(Q(r)?(e=[],e[q]=r[q]):qr(r)&&(e={}),e)return ae(r,function(t,n){e[t]=Z_(n)}),e}return r}function Ju(r){if(r){var e=r[Hn]||r;if(e.cfg&&(e.cfg===r||e.cfg[Hn]===e))return e}return null}function Qu(r){if(r&&(qr(r)||Q(r)))try{r[QE]=!0}catch{}return r}function ep(r){if(r)try{r[ZE]=!0}catch{}return r}function al(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[ZE],!n&&!t[QE]&&(n=qr(t)||Q(t))),n}function sl(r){it("InvalidAccess:"+r)}var Hn,QE,ZE,ul=Y(()=>{"use strict";d();he();Ge();Hn=Af("[[ai_dynCfg_1]]"),QE=Af("[[ai_blkDynCfg_1]]"),ZE=Af("[[ai_frcDynCfg_1]]")});function gy(r,e,t){Q(e)&&R(my,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[zi](this,o);return Zu(r,e,t,"Patching"),s}})}function cl(r,e){var t=uE(r,e);return t&&t.get}function Ey(r,e,t,n){var i={n:t,h:[],trk:function(c){c&&c.fn&&(Me(i.h,c)===-1&&i.h[xe](c),r.trk(c,i))},clr:function(c){var l=Me(i.h,c);l!==-1&&i.h[On](l,1)}},o=!0,a=!1;function s(){o&&(a=a||al(s,r,n),n&&!n[Hn]&&a&&(n=Zu(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&&sl("["+t+"] is read-only:"+te(e)),o&&(a=a||al(s,r,n),o=!1);var l=a&&s[r.rf];if(a)if(l){ae(n,function(_){n[_]=c?c[_]:Bt});try{ae(c,function(_,g){ec(r,n,_,g)}),c=n}catch(_){As((r.hdlr||{})[ze],t,"Assigning",_),a=!1}}else n&&n[Hn]&&ae(n,function(_){var g=cl(n,_);if(g){var p=g[r.prop];p&&p.chng()}});if(c!==n){var v=c&&al(s,r,c);!l&&v&&(c=Zu(r,c,t,"Converting")),n=c,a=v}r.add(i)}}Ye(e,i.n,{g:s,s:u})}function ec(r,e,t,n){if(e){var i=cl(e,t),o=i&&!!i[r.prop];o?e[t]=n:Ey(r,e,t,n)}return e}function fl(r,e,t,n){if(e){var i=cl(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{Qu(e)}catch(c){As((r.hdlr||{})[ze],t,"Blocking",c)}try{ec(r,e,t,e[t]),i=cl(e,t)}catch(c){As((r.hdlr||{})[ze],t,"State",c)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function Zu(r,e,t,n){try{ae(e,function(i,o){ec(r,e,i,o)}),e[Hn]||(Dt(e,Hn,{get:function(){return r[kf]}}),gy(r,e,t))}catch(i){As((r.hdlr||{})[ze],t,n,i)}return e}var my,As,eh=Y(()=>{"use strict";d();he();Tr();Ge();ul();my=["push","pop","shift","unshift","splice"],As=function(r,e,t,n){r&&r[ci](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function rh(r){var e,t=ss(rc+"get"+r.uid+tc),n=ss(rc+"ro"+r.uid+tc),i=ss(rc+"rf"+r.uid+tc),o=ss(rc+"blkVal"+r.uid+tc),a=ss(rc+"dtl"+r.uid+tc),s=null,u=null,c;function l(p,N){var E=c.act;try{c.act=p,p&&p[a]&&(R(p[a],function(T){T.clr(p)}),p[a]=[]),N({cfg:r.cfg,set:r.set.bind(r),setDf:r[_n].bind(r),ref:r.ref.bind(r),rdOnly:r[Vo].bind(r)})}catch(T){var x=r[ze];throw x&&x[ci](1,107,te(T)),T}finally{c.act=E||null}}function v(){if(s){var p=s;s=null,u&&u[fi](),u=null;var N=[];if(R(p,function(E){if(E&&(E[a]&&(R(E[a],function(x){x.clr(E)}),E[a]=null),E.fn))try{l(E,E.fn)}catch(x){N[xe](x)}}),s)try{v()}catch(E){N[xe](E)}N[q]>0&&DE("Watcher error(s): ",N)}}function _(p){if(p&&p.h[q]>0){s||(s=[]),u||(u=Mt(function(){u=null,v()},0));for(var N=0;N<p.h[q];N++){var E=p.h[N];E&&Me(s,E)===-1&&s[xe](E)}}}function g(p,N){if(p){var E=p[a]=p[a]||[];Me(E,N)===-1&&E[xe](N)}}return c=(e={prop:t,ro:n,rf:i},e[ji]=o,e[kf]=r,e.add=_,e[Ko]=v,e.use=l,e.trk=g,e),c}var rc,tc,th=Y(()=>{"use strict";d();he();IE();Ge();rc="[[ai_",tc="]]"});function hy(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return Ye(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function Sy(r,e,t){var n,i=Ju(e);if(i)return i;var o=Jr("dyncfg",!0),a=e&&t!==!1?e:Z_(e),s;function u(){s[Ko]()}function c(x,T,y){try{x=ec(s,x,T,y)}catch(w){As(r,T,"Setting value",w)}return x[T]}function l(x){return hy(s,x)}function v(x,T){s.use(null,function(y){var w=s.upd;try{Te(T)||(s.upd=T),x(y)}finally{s.upd=w}})}function _(x,T){var y;return fl(s,x,T,(y={},y[0]=!0,y))[T]}function g(x,T){var y;return fl(s,x,T,(y={},y[1]=!0,y))[T]}function p(x,T){var y;return fl(s,x,T,(y={},y[2]=!0,y))[T]}function N(x,T){return T&&ae(T,function(y,w){Xu(E,x,y,w)}),x}var E=(n={uid:null,cfg:a},n[ze]=r,n[Ko]=u,n.set=c,n[_n]=N,n[pn]=l,n.ref=_,n[Vo]=g,n[ji]=p,n._block=v,n);return Ye(E,"uid",{c:!1,e:!1,w:!1,v:o}),s=rh(E),Zu(s,a,"config","Creating"),E}function Ny(r,e){r?(r[ds](e),r[ci](2,108,e)):sl(e)}function Qe(r,e,t,n){var i=Sy(t,r||{},n);return e&&i[_n](i.cfg,e),i}function Fr(r,e,t){var n=r[Hn]||r;return n.cfg&&(n.cfg===r||n.cfg[Hn]===n)?n[pn](e):(Ny(t,UE+te(r)),Qe(r,null,t)[pn](e))}var oo=Y(()=>{"use strict";d();he();xs();Tr();Ge();Q_();eh();th();ul()});function hi(r,e){if(r&&r[Ct])return r[Ct](e)}function ll(r,e,t){var n;return t||(n=Qt(function(i){t=i})),r&&cs(r)>0?Gt(hi(r[0],e),function(){ll(us(r,1),e,t)}):t(),n}var rp=Y(()=>{"use strict";d();Zo();he();Ge()});var nh,tp,np=Y(()=>{"use strict";d();nh=500,tp="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function Ty(r,e,t){return!r&&B(r)?e:Pn(r)?r:_r(r)[At]()==="true"}function ip(r){return{mrg:!0,v:r}}function bs(r,e,t){return{fb:t,isVal:r,v:e}}function rn(r,e){return{fb:e,set:Ty,v:!!r}}var op=Y(()=>{"use strict";d();he();Ge()});function Dy(r,e){return function(){var t=arguments,n=sp(e);if(n){var i=n.listener;i&&i[r]&&i[r][zi](i,t)}}}function Iy(){var r=le("Microsoft");return r&&(vl=r.ApplicationInsights),vl}function sp(r){var e=vl;return!e&&r.disableDbgExt!==!0&&(e=vl||Iy()),e?e.ChromeDbgExt:null}function ih(r){if(!dl){dl={};for(var e=0;e<ap[q];e++)dl[ap[e]]=Dy(ap[e],r)}return dl}var ap,vl,dl,up=Y(()=>{"use strict";d();he();Ge();Tr();ap=[Ss,Zi,Ns,Mn],vl=null});function oh(r){return r?'"'+r[gn](/\"/g,me)+'"':me}function cp(r,e){var t=Bu();if(t){var n="log";t[r]&&(n=r),se(t[n])&&t[n](e)}}function Si(r,e){return(r||{})[ze]||new ao(e)}function fp(r){return r||new ao}function H(r,e,t,n,i,o){o===void 0&&(o=!1),fp(r)[ci](e,t,n,i,o)}function pt(r,e){fp(r)[ds](e)}function lp(r,e,t){fp(r)[I_](e,t)}var Cs,ah,yy,xy,Ay,by,Cy,oa,ao,Nn=Y(()=>{"use strict";d();Ur();he();oo();Ge();up();no();Tr();ah="warnToConsole",yy="AI (Internal): ",xy="AI: ",Ay="AITR_",by={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Cy=(Cs={},Cs[0]=null,Cs[1]="errorToConsole",Cs[2]=ah,Cs[3]="debugToConsole",Cs);oa=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[ms]=e,o[Un]=(n?xy:yy)+e;var a=me;kn()&&(a=Xr().stringify(i));var s=(t?" message:"+oh(t):me)+(i?" props:"+oh(a):me);o[Un]+=s}return r.dataType="MessageData",r})();ao=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;Ce(r,this,function(c){u=v(e||{}),c.consoleLoggingLevel=function(){return i},c[ci]=function(p,N,E,x,T){T===void 0&&(T=!1);var y=new oa(N,E,T,x);if(s)throw te(y);var w=Cy[p]||ah;if(Te(y[Un]))g("throw"+(p===1?"Critical":"Warning"),y);else{if(T){var U=+y[ms];!n[U]&&i>=p&&(c[w](y[Un]),n[U]=!0)}else i>=p&&c[w](y[Un]);l(p,y)}},c.debugToConsole=function(p){cp("debug",p),g("warning",p)},c[ds]=function(p){cp("warn",p),g("warning",p)},c.errorToConsole=function(p){cp("error",p),g("error",p)},c.resetInternalMessageCount=function(){t=0,n={}},c[I_]=l,c[Ct]=function(p){u&&u.rm(),u=null};function l(p,N){if(!_()){var E=!0,x=Ay+N[ms];if(n[x]?E=!1:n[x]=!0,E&&(p<=o&&(c.queue[xe](N),t++,g(p===1?"error":"warn",N)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",y=new oa(23,T,!1);c.queue[xe](y),p===1?c.errorToConsole(T):c[ds](T)}}}function v(p){return Fr(Qe(p,by,c).cfg,function(N){var E=N.cfg;i=E[Bf],o=E.loggingLevelTelemetry,a=E.maxMessageLimit,s=E.enableDebug})}function _(){return t>=a}function g(p,N){var E=sp(e||{});E&&E[Pt]&&E[Pt](p,N)}})}return r.__ieDyn=1,r})()});function gp(){!Gn&&(Gn=Jv(function(){return Sr()}))}function Ry(r,e){var t=Ni[so]||ml[so];return t||(t=Ni[so]=Ni(r,e),ml[so]=t),t}function pl(r){return r?r.isEnabled():!0}function mh(r,e){return e&&r&&Q(r.ignoreCookies)?Me(r.ignoreCookies,e)!==-1:!1}function wy(r,e){return e&&r&&Q(r.blockedCookies)&&Me(r.blockedCookies,e)!==-1?!0:mh(r,e)}function dh(r,e){var t=e[Wi];if(B(t)){var n=void 0;Te(r[ch])||(n=!r[ch]),Te(r[pp])||(n=!r[pp]),t=n}return t}function Ep(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[so]?t=n[so]:t=Ni(e)}return t||(t=Ry(e,(r||{})[ze])),t}function Ni(r,e){var t,n,i,o,a,s,u,c,l;r=Qe(r||ml,null,e).cfg,a=Fr(r,function(_){_[_n](_.cfg,Py),n=_.ref(_.cfg,"cookieCfg"),i=n[el]||"/",o=n[Zf],s=dh(r,n)!==!1,u=n.getCookie||Oy,c=n.setCookie||ph,l=n.delCookie||ph},e);var v=(t={isEnabled:function(){var _=dh(r,n)!==!1&&s&&Ps(e),g=ml[so];return _&&g&&v!==g&&(_=pl(g)),_},setEnabled:function(_){s=_!==!1,n[Wi]=_},set:function(_,g,p,N,E){var x=!1;if(pl(v)&&!wy(n,_)){var T={},y=ke(g||me),w=dn(y,";");if(w!==-1&&(y=ke(Ho(g,w)),T=gh(Cr(g,w+1))),Zt(T,Zf,N||o,cn,Te),!B(p)){var U=to();if(Te(T[vp])){var j=cr(),W=j+p*1e3;if(W>0){var ne=new Date;ne.setTime(W),Zt(T,vp,vh(ne,U?sh:uh)||vh(ne,U?sh:uh)||me,cn)}}U||Zt(T,"max-age",me+p,null,Te)}var V=ia();V&&V[jf]==="https:"&&(Zt(T,"secure",null,null,Te),_p===null&&(_p=!gl((Pr()||{})[Lu])),_p&&Zt(T,"SameSite","None",null,Te)),Zt(T,el,E||i,null,Te),c(_,_h(y,T)),x=!0}return x},get:function(_){var g=me;return pl(v)&&!mh(n,_)&&(g=u(_)),g},del:function(_,g){var p=!1;return pl(v)&&(p=v.purge(_,g)),p},purge:function(_,g){var p,N=!1;if(Ps(e)){var E=(p={},p[el]=g||"/",p[vp]="Thu, 01 Jan 1970 00:00:01 GMT",p);to()||(E["max-age"]="0"),l(_,_h(me,E)),N=!0}return N}},t[Ct]=function(_){a&&a.rm(),a=null},t);return v[so]=v,v}function Ps(r){if(_l===null){_l=!1,!Gn&&gp();try{var e=Gn.v||{};_l=e[mp]!==void 0}catch(t){H(r,2,68,"Cannot access document.cookie - "+or(t),{exception:te(t)})}}return _l}function gh(r){var e={};if(r&&r[q]){var t=ke(r)[Jt](";");R(t,function(n){if(n=ke(n||me),n){var i=dn(n,"=");i===-1?e[n]=null:e[ke(Ho(n,i))]=ke(Cr(n,i+1))}})}return e}function vh(r,e){return se(r[e])?r[e]():null}function _h(r,e){var t=r||me;return ae(e,function(n,i){t+="; "+n+(B(i)?me:"="+i)}),t}function Oy(r){var e=me;if(!Gn&&gp(),Gn.v){var t=Gn.v[mp]||me;fh!==t&&(lh=gh(t),fh=t),e=ke(lh[r]||me)}return e}function ph(r,e){!Gn&&gp(),Gn.v&&(Gn.v[mp]=r+"="+e)}function gl(r){return Ne(r)?!!(mr(r,"CPU iPhone OS 12")||mr(r,"iPad; CPU OS 12")||mr(r,"Macintosh; Intel Mac OS X 10_14")&&mr(r,"Version/")&&mr(r,"Safari")||mr(r,"Macintosh; Intel Mac OS X 10_14")&&jo(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||mr(r,"Chrome/5")||mr(r,"Chrome/6")||mr(r,"UnrealEngine")&&!mr(r,"Chrome")||mr(r,"UCBrowser/12")||mr(r,"UCBrowser/11")):!1}var dp,aa,sh,uh,mp,vp,ch,pp,so,_l,_p,fh,Gn,lh,ml,Py,hp=Y(()=>{"use strict";d();he();op();oo();Ge();Nn();no();Fn();Tr();sh="toGMTString",uh="toUTCString",mp="cookie",vp="expires",ch="isCookieUseDisabled",pp="disableCookiesUsage",so="_ckMgr",_l=null,_p=null,fh=null,lh={},ml={},Py=(dp={cookieCfg:ip((aa={},aa[Zf]={fb:"cookieDomain",dfVal:eo},aa.path={fb:"cookiePath",dfVal:eo},aa.enabled=Bt,aa.ignoreCookies=Bt,aa.blockedCookies=Bt,aa)),cookieDomain:Bt,cookiePath:Bt},dp[pp]=Bt,dp)});function Ly(r){r.h=null;var e=r.cb;r.cb=[],R(e,function(t){ge(t.fn,[t.arg])})}function uo(r,e,t,n){R(r,function(i){i&&i[e]&&(t?(t.cb[xe]({fn:n,arg:i}),t.h=t.h||Mt(Ly,0,t)):ge(n,[i]))})}var Yy,nc,Sp=Y(()=>{"use strict";d();Ur();Zo();he();oo();Ge();Tr();Yy={perfEvtsSendAll:!1};nc=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Qe(e,Yy);n=a[pn](function(s){t=!!s.cfg.perfEvtsSendAll}),Ce(r,this,function(s){Ye(s,"listeners",{g:function(){return i}}),s[_s]=function(u){i[xe](u)},s[vs]=function(u){for(var c=Me(i,u);c>-1;)i[On](c,1),c=Me(i,u)},s[Ss]=function(u){uo(i,Ss,o,function(c){c[Ss](u)})},s[Zi]=function(u,c){uo(i,Zi,o,function(l){l[Zi](u,c)})},s[Ns]=function(u,c){uo(i,Ns,c?o:null,function(l){l[Ns](u,c)})},s[Mn]=function(u){u&&(t||!u[Mu]())&&uo(i,Mn,null,function(c){u[mn]?Mt(function(){return c[Mn](u)},0):c[Mn](u)})},s[Xf]=function(u){u&&u[q]&&uo(i,Xf,o,function(c){c[Xf](u)})},s[Jf]=function(u){u&&u[Xi]&&uo(i,Jf,o,function(c){c[Jf](u)})},s[Qf]=function(u,c){if(u>0){var l=c||0;uo(i,Qf,o,function(v){v[Qf](u,l)})}},s[Ct]=function(u){var c=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[fi](),o.h=null,o.cb=[]},l;if(uo(i,"unload",null,function(v){var _=v[Ct](u);_&&(l||(l=[]),l[xe](_))}),l)return Qt(function(v){return Gt(LE(l),function(){c(),v()})});c()}})}return r.__ieDyn=1,r})()});function lr(r,e,t,n,i){if(r){var o=r;if(o[Ts]&&(o=o[Ts]()),o){var a=void 0,s=o[Jo](Np);try{if(a=o.create(e(),n,i),a){if(s&&a[En]&&(a[En](sa[Tp],s),s[Jo]&&s[En])){var u=s[Jo](sa[ic]);u||(u=[],s[En](sa[ic],u)),u[xe](a)}return o[En](Np,a),t(a)}}catch(c){a&&a[En]&&a[En]("exception",c)}finally{a&&o.fire(a),o[En](Np,s)}}}return t()}function Dp(){return Uy}var Rs,Tp,ic,Uy,sa,oc,Np,El=Y(()=>{"use strict";d();Ur();he();Ge();Tr();Rs="ctx",Tp="ParentContextKey",ic="ChildrenContextKey",Uy=null,sa=(function(){function r(e,t,n){var i=this;if(i.start=cr(),i[Mr]=e,i[mn]=n,i[Mu]=function(){return!1},se(t)){var o;Ye(i,"payload",{g:function(){return!o&&se(t)&&(o=t(),t=null),o}})}i[Jo]=function(a){return a?a===r[Tp]||a===r[ic]?i[a]:(i[Rs]||{})[a]:null},i[En]=function(a,s){if(a)if(a===r[Tp])i[a]||(i[Mu]=function(){return!0}),i[a]=s;else if(a===r[ic])i[a]=s;else{var u=i[Rs]=i[Rs]||{};u[a]=s}},i[Vf]=function(){var a=0,s=i[Jo](r[ic]);if(Q(s))for(var u=0;u<s[q];u++){var c=s[u];c&&(a+=c[Ki])}i[Ki]=cr()-i.start,i.exTime=i[Ki]-a,i[Vf]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),oc=(function(){function r(e){this.ctx={},Ce(r,this,function(t){t.create=function(n,i,o){return new sa(n,i,o)},t.fire=function(n){n&&(n[Vf](),e&&se(e[Mn])&&e[Mn](n))},t[En]=function(n,i){if(n){var o=t[Rs]=t[Rs]||{};o[n]=i}},t[Jo]=function(n){return(t[Rs]||{})[n]}})}return r.__ieDyn=1,r})(),Np="CoreUtils.doPerf"});function ac(){var r=ua();return Cr(r,0,8)+"-"+Cr(r,8,12)+"-"+Cr(r,12,16)+"-"+Cr(r,16,20)+"-"+Cr(r,20)}function ua(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=me,t,n=0;n<4;n++)t=Ei(),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+(Ei()&3)|0];return wn(e,0,8)+wn(e,9,4)+"4"+wn(e,13,3)+i+wn(e,16,3)+wn(e,19,12)}var Ip=Y(()=>{"use strict";d();he();Tr();nl()});function Ti(r,e,t){return r&&r[q]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function hh(r,e,t){return Ti(r,e)?r:t}function Sh(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[q]<2;)e="0"+e;return e}function Ap(r,e,t,n){var i;return i={},i[$o]=Ti(n,2,xp)?n:yp,i[Es]=ca(r)?r:ua(),i[hs]=fa(e)?e:Ho(ua(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function sc(r,e){var t;if(!r||(Q(r)&&(r=r[0]||""),!r||!Ne(r)||r[q]>8192))return null;if(r.indexOf(",")!==-1){var n=r[Jt](",");r=n[e>0&&n[q]>e?e:0]}var i=My.exec(ke(r));return!i||i[1]===xp||i[2]===hl||i[3]===Sl?null:(t={version:(i[1]||me)[At](),traceId:(i[2]||me)[At](),spanId:(i[3]||me)[At]()},t[Ji]=parseInt(i[4],16),t)}function ca(r){return Ti(r,32,hl)}function fa(r){return Ti(r,16,Sl)}function Nl(r){return!(!r||!Ti(r[$o],2,xp)||!Ti(r[Es],32,hl)||!Ti(r[hs],16,Sl)||!Ti(Sh(r[Ji]),2))}function bp(r){return Nl(r)?(r[Ji]&Eh)===Eh:!1}function Cp(r){if(r){var e=Sh(r[Ji]);Ti(e,2)||(e="01");var t=r[$o]||yp;return t!=="00"&&t!=="ff"&&(t=yp),"".concat(t.toLowerCase(),"-").concat(hh(r.traceId,32,hl).toLowerCase(),"-").concat(hh(r.spanId,16,Sl).toLowerCase(),"-").concat(e.toLowerCase())}return""}function Pp(r){var e="traceparent",t=sc($_(e),r);return t||(t=sc(q_(e),r)),t}var My,yp,xp,hl,Sl,Eh,Rp=Y(()=>{"use strict";d();he();Ge();Ip();no();Tr();My=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,yp="00",xp="ff",hl="00000000000000000000000000000000",Sl="0000000000000000",Eh=1});function Di(r){return Fy.get(r,"state",{},!0)}function wp(r,e){for(var t=[],n=null,i=r[Ht](),o;i;){var a=i[Vi]();if(a){n&&n[qi]&&a[wt]&&n[qi](a),o=Di(a);var s=!!o[bt];a[bt]&&(s=a[bt]()),s||t[xe](a),n=a,i=i[Ht]()}}R(t,function(u){var c=r[ir]();u[li](r.getCfg(),c,e,r[Ht]()),o=Di(u),!u[ir]&&!o[ir]&&(o[ir]=c),o[bt]=!0,delete o[kt]})}function Tl(r){return r.sort(function(e,t){var n=0;if(t){var i=t[wt];e[wt]?n=i?e[ra]-t[ra]:1:i&&(n=-1)}else n=e?1:-1;return n})}function Nh(r){var e={};return{getName:function(){return e[Mr]},setName:function(t){r&&r.setName(t),e[Mr]=t},getTraceId:function(){return e[Es]},setTraceId:function(t){r&&r.setTraceId(t),ca(t)&&(e[Es]=t)},getSpanId:function(){return e[hs]},setSpanId:function(t){r&&r.setSpanId(t),fa(t)&&(e[hs]=t)},getTraceFlags:function(){return e[Ji]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[Ji]=t}}}var Fy,Op=Y(()=>{"use strict";d();he();Ge();xs();Tr();Rp();Fy=il("plugin")});function Hy(r,e,t){for(;r;){if(r[Vi]()===t)return r;r=r[Ht]()}return co([t],e.config||{},e)}function Yp(r,e,t,n){var i=null,o=[];e||(e=Qe({},null,t[ze])),n!==null&&(i=n?Hy(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return Si(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:l,getConfig:v,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(g){i=g},iterate:_,onComplete:s}};function s(g,p){for(var N=[],E=2;E<arguments.length;E++)N[E-2]=arguments[E];g&&o[xe]({func:g,self:Te(p)?a.ctx:p,args:N})}function u(){var g=i;if(i=g?g[Ht]():null,!g){var p=o;p&&p[q]>0&&(R(p,function(N){try{N.func.call(N.self,N.args)}catch(E){H(t[ze],2,73,"Unexpected Exception during onComplete - "+te(E))}}),o=[])}return g}function c(g,p){var N=null,E=e.cfg;if(E&&g){var x=E[di];!x&&p&&(x={}),E[di]=x,x=e.ref(E,di),x&&(N=x[g],!N&&p&&(N={}),x[g]=N,N=e.ref(x,g))}return N}function l(g,p){var N=c(g,!0);return p&&ae(p,function(E,x){if(B(N[E])){var T=e.cfg[E];(T||!B(T))&&(N[E]=T)}Xu(e,N,E,x)}),e[_n](N,p)}function v(g,p,N){N===void 0&&(N=!1);var E,x=c(g,!1),T=e.cfg;return x&&(x[p]||!B(x[p]))?E=x[p]:(T[p]||!B(T[p]))&&(E=T[p]),E||!B(E)?E:N}function _(g){for(var p;p=a._next();){var N=p[Vi]();N&&g(N)}}return a}function mt(r,e,t,n){var i=Qe(e),o=Yp(r,i,t,n),a=o.ctx;function s(c){var l=o._next();return l&&l[wt](c,a),!l}function u(c,l){return c===void 0&&(c=null),Q(c)&&(c=co(c,i.cfg,t,l)),mt(c||a[Ht](),i.cfg,t,l)}return a[Rr]=s,a[Ln]=u,a}function ws(r,e,t){var n=Qe(e.config),i=Yp(r,n,e,t),o=i.ctx;function a(u){var c=i._next();return c&&c[Ct](o,u),!c}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=co(u,n.cfg,e,c)),ws(u||o[Ht](),e,c)}return o[Rr]=a,o[Ln]=s,o}function uc(r,e,t){var n=Qe(e.config),i=Yp(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(c){se(c[qo])&&c[qo](o,u)})}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=co(u,n.cfg,e,c)),uc(u||o[Ht](),e,c)}return o[Rr]=a,o[Ln]=s,o}function co(r,e,t,n){var i=null,o=!n;if(Q(r)&&r[q]>0){var a=null;R(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&se(s[wt])){var u=Gy(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?co([n],e,t):i}function Gy(r,e,t){var n=null,i=se(r[wt]),o=se(r[qi]),a;r?a=r[Yn]+"-"+r[ra]+"-"+Ih++:a="Unknown-0-"+Ih++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:l,unload:v,update:_,_id:a,_setNext:function(g){n=g}};function u(){var g;return r&&se(r[Dh])&&(g=r[Dh]()),g||(g=mt(s,e,t)),g}function c(g,p,N,E,x){var T=!1,y=r?r[Yn]:ky,w=g[Th];return w||(w=g[Th]={}),g.setNext(n),r&&lr(g[ir](),function(){return y+":"+N},function(){w[a]=!0;try{var U=n?n._id:me;U&&(w[U]=!1),T=p(g)}catch(W){var j=n?w[n._id]:!0;j&&(T=!0),(!n||!j)&&H(g[Pt](),1,73,"Plugin ["+y+"] failed during "+N+" - "+te(W)+", run flags: "+te(w))}},E,x),T}function l(g,p){p=p||u();function N(E){if(!r||!i)return!1;var x=Di(r);return x[kt]||x[Hu]?!1:(o&&r[qi](n),r[wt](g,E),!0)}c(p,N,"processTelemetry",function(){return{item:g}},!g.sync)||p[Rr](g)}function v(g,p){function N(){var E=!1;if(r){var x=Di(r),T=r[ir]||x[ir];r&&(!T||T===g.core())&&!x[kt]&&(x[ir]=null,x[kt]=!0,x[bt]=!1,r[kt]&&r[kt](g,p)===!0&&(E=!0))}return E}c(g,N,"unload",function(){},p[mn])||g[Rr](p)}function _(g,p){function N(){var E=!1;if(r){var x=Di(r),T=r[ir]||x[ir];r&&(!T||T===g.core())&&!x[kt]&&r[qo]&&r[qo](g,p)===!0&&(E=!0)}return E}c(g,N,"update",function(){},!1)||g[Rr](p)}return qt(s)}var ky,Th,Dh,Ih,Lp,Dl=Y(()=>{"use strict";d();he();Q_();oo();Ge();Nn();Fn();Tr();El();Op();ky="TelemetryPluginChain",Th="_hasRun",Dh="_getTelCtx",Ih=0;Lp=(function(){function r(e,t,n,i){var o=this,a=mt(e,t,n,i);jt(o,a,$r(a))}return r})()});function la(){var r=[];function e(n){n&&r[xe](n)}function t(n,i){R(r,function(o){try{o(n,i)}catch(a){H(n[Pt](),2,73,"Unexpected error calling unload handler - "+te(a))}}),r=[]}return{add:e,run:t}}var Il=Y(()=>{"use strict";d();he();Ge();Nn()});function Up(r,e){cc=r,fc=e}function lc(){var r=[];function e(n){var i=r;r=[],R(i,function(o){try{(o.rm||o.remove).call(o)}catch(a){H(n,2,73,"Unloading:"+te(a))}}),cc&&i[q]>cc&&(fc?fc("doUnload",i):H(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(ln(r,n),cc&&r[q]>cc&&(fc?fc("Add",r):H(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var cc,fc,yl=Y(()=>{"use strict";d();he();Ge();Nn()});var Mp,fo,By,Ii,Fp=Y(()=>{"use strict";d();Ur();he();oo();Ge();Nn();Fn();Tr();Dl();Il();yl();fo="getPlugin",By=(Mp={},Mp[di]={isVal:eo,v:{}},Mp),Ii=(function(){function r(){var e=this,t,n,i,o,a;c(),Ce(r,e,function(l){l[li]=function(v,_,g,p){u(v,_,p),t=!0},l[kt]=function(v,_){var g,p=l[ir];if(!p||v&&p!==v[ir]())return;var N,E=!1,x=v||ws(null,p,i&&i[fo]?i[fo]():i),T=_||(g={reason:0},g[mn]=!1,g);function y(){E||(E=!0,o.run(x,_),a.run(x[Pt]()),N===!0&&x[Rr](T),c())}return!l[$i]||l[$i](x,T,y)!==!0?y():N=!0,N},l[qo]=function(v,_){var g=l[ir];if(!g||v&&g!==v[ir]())return;var p,N=!1,E=v||uc(null,g,i&&i[fo]?i[fo]():i),x=_||{reason:0};function T(){N||(N=!0,u(E.getCfg(),E.core(),E[Ht]()))}return!l._doUpdate||l._doUpdate(E,x,T)!==!0?T():p=!0,p},vi(l,"_addUnloadCb",function(){return o},"add"),vi(l,"_addHook",function(){return a},"add"),Ye(l,"_unloadHooks",{g:function(){return a}})}),e[Pt]=function(l){return s(l)[Pt]()},e[bt]=function(){return t},e.setInitialized=function(l){t=l},e[qi]=function(l){i=l},e[Rr]=function(l,v){v?v[Rr](l):i&&se(i[wt])&&i[wt](l,null)},e._getTelCtx=s;function s(l){l===void 0&&(l=null);var v=l;if(!v){var _=n||mt(null,{},e[ir]);i&&i[fo]?v=_[Ln](null,i[fo]):v=_[Ln](null,i)}return v}function u(l,v,_){Qe(l,By,Si(v)),!_&&v&&(_=v[Gf]()[Ht]());var g=i;i&&i[fo]&&(g=i[fo]()),e[ir]=v,n=mt(_,l,v,g)}function c(){t=!1,e[ir]=null,n=null,i=null,a=lc(),o=la()}}return r.__ieDyn=1,r})()});function jy(r,e,t){var n={id:e,fn:t};ln(r,n);var i={remove:function(){R(r,function(o,a){if(o.id===n.id)return r[On](a,1),-1})}};return i}function zy(r,e,t){for(var n=!1,i=r[q],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[zi](null,[e])===!1){n=!0;break}}catch(s){H(t,2,64,"Telemetry initializer failed: "+or(s),{exception:te(s)},!0)}}return!n}var yh,xh=Y(()=>{"use strict";d();xt();Ur();he();Ge();Fp();Nn();Fn();Tr();yh=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),Ce(e,t,function(a,s){a.addTelemetryInitializer=function(u){return jy(i,n++,u)},a[wt]=function(u,c){zy(i,u,c?c[Pt]():a[Pt]())&&a[Rr](u,c)},a[$i]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(Ii)});function qy(r,e){return new oc(e)}function Xy(r,e,t){var n,i=[],o=[],a={};return R(t,function(s){(B(s)||B(s[li]))&&hr(Ph);var u=s[ra],c=s[Yn];s&&u&&(B(a[u])?a[u]=c:pt(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+c)),!u||u<e?i[xe](s):o[xe](s)}),n={},n[ir]=i,n[Qi]=o,n}function bh(r,e){var t=!1;return R(e,function(n){if(n===r)return t=!0,-1}),t}function Hp(r,e,t,n){t&&ae(t,function(i,o){n&&qr(o)&&qr(e[i])&&Hp(r,e[i],o,n),n&&qr(o)&&qr(e[i])?Hp(r,e[i],o,n):r.set(e,i,o)})}function Ch(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 Jy(r,e){var t=Ch(r,e).l;return t||(t={w:e,rm:function(){var n=Ch(r,e);n.i!==-1&&r[On](n.i,1)}},r[xe](t)),t}function Qy(r,e,t){R(e,function(n){var i=Fr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function Zy(r,e,t,n){return e.add(r[pn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[vs](n),n=null),t&&!n&&o!==!0&&(n=ih(i.cfg),t[_s](n))})),n}function ex(r){return Ye({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var lo,Ph,Vy,Ah,Ky,Wy,$y,kp,yi,Rh=Y(()=>{"use strict";d();xt();Ur();Zo();he();oo();S_();Ge();rp();np();hp();xs();up();Nn();Fn();Tr();Sp();El();Dl();Op();xh();Il();yl();Ph="Plugins must provide initialize method",Vy="_notificationManager",Ah="SDK is still unloading...",Ky="SDK is not initialized",Wy=100,$y=5e4,kp=Rn((lo={cookieCfg:{}},lo[ea]={rdOnly:!0,ref:!0,v:[]},lo[Qi]={rdOnly:!0,ref:!0,v:[]},lo[di]={ref:!0,v:{}},lo[qf]=Bt,lo.loggingLevelConsole=0,lo.diagnosticLogInterval=Bt,lo));yi=(function(){function r(){var e,t,n,i,o,a,s,u,c,l,v,_,g,p,N,E,x,T,y,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue;Ce(r,this,function(A){C(),A._getDbgPlgTargets=function(){return[W,i]},A[bt]=function(){return t},A.activeStatus=function(){return G},A._setPendingStatus=function(){G=3},A[li]=function(b,K,ie,X){g&&hr(Ah),A[bt]()&&hr("Core cannot be initialized more than once"),e=Qe(b,kp,ie||A[ze],!1),b=e.cfg,Ve(e[pn](function(Pe){var Fe=Pe.cfg,Je=G===3;if(!Je){fe=Fe.initInMemoMaxSize||Wy;var ar=Fe[N_],rt=Fe.endpointUrl;if(B(ar)){U=null,G=Ft[Hf];var tt="Please provide instrumentation key";t?(H(n,1,100,tt),re()):hr(tt);return}var Wt=[];if(vt(ar)?(Wt[xe](ar),U=null):U=ar,vt(rt)?(Wt[xe](rt),Z=null):Z=rt,Wt[q]){Se=!1,G=3;var Yr=eo(Fe.initTimeOut)?Fe.initTimeOut:$y,ni=YE(Wt);F=Mt(function(){F=null,Se||_e()},Yr),Gt(ni,function(O){try{if(Se)return;if(!O.rejected){var M=O[Wo];if(M&&M[q]){var J=M[0];if(U=J&&J[Wo],M[q]>1){var de=M[1];Z=de&&de[Wo]}}U&&(b[N_]=U,b.endpointUrl=Z)}_e()}catch{Se||_e()}})}else _e();var h=Pe.ref(Pe.cfg,di);ae(h,function(O){Pe.ref(h,O)})}})),o=X,y=Zy(e,T,o&&A[Ou](),y),dt(),A[ze]=ie;var oe=b[ea];if(l=[],l[xe].apply(l,Cf(Cf([],K,!1),oe,!1)),v=b[Qi],We(null),(!_||_[q]===0)&&hr("No "+Qi+" available"),v&&v[q]>1){var we=A[Vi]("TeeChannelController");(!we||!we.plugin)&&H(n,1,28,"TeeChannel required")}Qy(b,j,n),j=null,t=!0,G===Ft.ACTIVE&&re()},A.getChannels=function(){var b=[];return _&&R(_,function(K){b[xe](K)}),qt(b)},A.track=function(b){lr(A[Ts](),function(){return"AppInsightsCore:track"},function(){b===null&&(Xe(b),hr("Invalid telemetry item")),!b[Mr]&&B(b[Mr])&&(Xe(b),hr("telemetry name required")),b[ps]=b[ps]||U,b[Ki]=b[Ki]||hn(new Date),b.ver=b.ver||"4.0",!g&&A[bt]()&&G===Ft.ACTIVE?Oe()[Rr](b):G!==Ft[Hf]&&i[q]<=fe&&i[xe](b)},function(){return{item:b}},!b.sync)},A[Gf]=Oe,A[Ou]=function(){return o||(o=new nc(e.cfg),A[Vy]=o),o},A[_s]=function(b){A.getNotifyMgr()[_s](b)},A[vs]=function(b){o&&o[vs](b)},A.getCookieMgr=function(){return u||(u=Ni(e.cfg,A[ze])),u},A.setCookieMgr=function(b){u!==b&&(hi(u,!1),u=b)},A[Ts]=function(){return a||s||Dp()},A.setPerfMgr=function(b){a=b},A.eventCnt=function(){return i[q]},A.releaseQueue=function(){if(t&&i[q]>0){var b=i;i=[],G===2?R(b,function(K){K[ps]=K[ps]||U,Oe()[Rr](K)}):H(n,2,20,"core init status is not active")}},A[T_]=function(b){return N=b||null,ue=!1,k&&k[fi](),Ie(!0)};function _e(){Se=!0,B(U)?(G=Ft[Hf],H(n,1,112,"ikey can't be resolved from promises")):G=Ft.ACTIVE,re()}function re(){t&&(A.releaseQueue(),A[T_]())}function Ie(b){if((!k||!k[Wi])&&!ue){var K=b||n&&n.queue[q]>0;K&&(ve||(ve=!0,Ve(e[pn](function(ie){var X=ie.cfg.diagnosticLogInterval;(!X||!(X>0))&&(X=1e4);var oe=!1;k&&(oe=k[Wi],k[fi]()),k=dE(jr,X),k.unref(),k[Wi]=oe}))),k[Wi]=!0)}return k}A[D_]=function(){ue=!0,k&&k[fi](),jr()},jt(A,function(){return p},["addTelemetryInitializer"]),A[Ct]=function(b,K,ie){var X;b===void 0&&(b=!0),t||hr(Ky),g&&hr(Ah);var oe=(X={reason:50},X[mn]=b,X.flushComplete=!1,X),we;b&&!K&&(we=Qt(function(Je){K=Je}));var Pe=ws(vr(),A);Pe[Yu](function(){T.run(A[ze]),ll([u,o,n],b,function(){C(),K&&K(oe)})},A);function Fe(Je){oe.flushComplete=Je,g=!0,x.run(Pe,oe),A[D_](),Pe[Rr](oe)}return jr(),Ar(b,Fe,6,ie)||Fe(!1),we},A[Vi]=lt,A.addPlugin=function(b,K,ie,X){if(!b){X&&X(!1),Ue(Ph);return}var oe=lt(b[Yn]);if(oe&&!K){X&&X(!1),Ue("Plugin ["+b[Yn]+"] is already loaded!");return}var we={reason:16};function Pe(ar){l[xe](b),we.added=[b],We(we),X&&X(!0)}if(oe){var Fe=[oe.plugin],Je={reason:2,isAsync:!!ie};Kt(Fe,Je,function(ar){ar?(we.removed=Fe,we.reason|=32,Pe(!0)):X&&X(!1)})}else Pe(!1)},A.updateCfg=function(b,K){K===void 0&&(K=!0);var ie;if(A[bt]()){ie={reason:1,cfg:e.cfg,oldCfg:i_({},e.cfg),newConfig:i_({},b),merge:K},b=ie.newConfig;var X=e.cfg;b[ea]=X[ea],b[Qi]=X[Qi]}e._block(function(oe){var we=oe.cfg;Hp(oe,we,b,K),K||ae(we,function(Pe){$t(b,Pe)||oe.set(we,Pe,Bt)}),oe[_n](we,kp)},!0),e[Ko](),ie&&Be(ie)},A.evtNamespace=function(){return E},A.flush=Ar,A.getTraceCtx=function(b){return w||(w=Nh()),w},A.setTraceCtx=function(b){w=b||null},A.addUnloadHook=Ve,vi(A,"addUnloadCb",function(){return x},"add"),A.onCfgChange=function(b){var K;return t?K=Fr(e.cfg,b,A[ze]):K=Jy(j,b),ex(K)},A.getWParam=function(){return Go()||e.cfg.enableWParam?0:-1};function $(){var b={};ne=[];var K=function(ie){ie&&R(ie,function(X){if(X[Yn]&&X[$o]&&!b[X.identifier]){var oe=X[Yn]+"="+X[$o];ne[xe](oe),b[X.identifier]=X}})};K(_),v&&R(v,function(ie){K(ie)}),K(l)}function C(){t=!1,e=Qe({},kp,A[ze]),e.cfg[Bf]=1,Ye(A,"config",{g:function(){return e.cfg},s:function(K){A.updateCfg(K,!1)}}),Ye(A,"pluginVersionStringArr",{g:function(){return ne||$(),ne}}),Ye(A,"pluginVersionString",{g:function(){return V||(ne||$(),V=ne.join(";")),V||me}}),Ye(A,"logger",{g:function(){return n||(n=new ao(e.cfg),e[ze]=n),n},s:function(K){e[ze]=K,n!==K&&(hi(n,!1),n=K)}}),A[ze]=new ao(e.cfg),W=[];var b=A.config[ea]||[];b.splice(0,b[q]),ln(b,W),p=new yh,i=[],hi(o,!1),o=null,a=null,s=null,hi(u,!1),u=null,c=null,l=[],v=null,_=null,g=!1,N=null,E=Jr("AIBaseCore",!0),x=la(),w=null,U=null,T=lc(),j=[],V=null,ne=null,ue=!1,k=null,ve=!1,G=0,Z=null,fe=null,Se=!1,F=null}function Oe(){var b=mt(vr(),e.cfg,A);return b[Yu](Ie),b}function We(b){var K=Xy(A[ze],nh,l);c=null,V=null,ne=null,_=(v||[])[0]||[],_=Tl(ln(_,K[Qi]));var ie=ln(Tl(K[ir]),_);W=qt(ie);var X=A.config[ea]||[];X.splice(0,X[q]),ln(X,W);var oe=Oe();_&&_[q]>0&&wp(oe[Ln](_),ie),wp(oe,ie),b&&Be(b)}function lt(b){var K=null,ie=null,X=[];return R(W,function(oe){if(oe[Yn]===b&&oe!==p)return ie=oe,-1;oe.getChannel&&X[xe](oe)}),!ie&&X[q]>0&&R(X,function(oe){if(ie=oe.getChannel(b),!ie)return-1}),ie&&(K={plugin:ie,setEnabled:function(oe){Di(ie)[Hu]=!oe},isEnabled:function(){var oe=Di(ie);return!oe[kt]&&!oe[Hu]},remove:function(oe,we){var Pe;oe===void 0&&(oe=!0);var Fe=[ie],Je=(Pe={reason:1},Pe[mn]=oe,Pe);Kt(Fe,Je,function(ar){ar&&We({reason:32,removed:Fe}),we&&we(ar)})}}),K}function vr(){if(!c){var b=(W||[]).slice();Me(b,p)===-1&&b[xe](p),c=co(Tl(b),e.cfg,A)}return c}function Kt(b,K,ie){if(b&&b[q]>0){var X=co(b,e.cfg,A),oe=ws(X,A);oe[Yu](function(){var we=!1,Pe=[];R(l,function(Je,ar){bh(Je,b)?we=!0:Pe[xe](Je)}),l=Pe,V=null,ne=null;var Fe=[];v&&(R(v,function(Je,ar){var rt=[];R(Je,function(tt){bh(tt,b)?we=!0:rt[xe](tt)}),Fe[xe](rt)}),v=Fe),ie&&ie(we),Ie()}),oe[Rr](K)}else ie(!1)}function jr(){if(n&&n.queue){var b=n.queue.slice(0);n.queue[q]=0,R(b,function(K){var ie,X=(ie={},ie[Mr]=N||"InternalMessageId: "+K[ms],ie[ps]=U,ie[Ki]=hn(new Date),ie.baseType=oa.dataType,ie.baseData={message:K[Un]},ie);A.track(X)})}}function Ar(b,K,ie,X){var oe=1,we=!1,Pe=null;X=X||5e3;function Fe(){oe--,we&&oe===0&&(Pe&&Pe[fi](),Pe=null,K&&K(we),K=null)}if(_&&_[q]>0){var Je=Oe()[Ln](_);Je.iterate(function(ar){if(ar.flush){oe++;var rt=!1;ar.flush(b,function(){rt=!0,Fe()},ie)||rt||(b&&Pe==null?Pe=Mt(function(){Pe=null,Fe()},X):Fe())}})}return we=!0,Fe(),!0}function dt(){var b;Ve(e[pn](function(K){var ie=K.cfg.enablePerfMgr;if(ie){var X=K.cfg[qf];(b!==X||!b)&&(X||(X=qy),Gu(K.cfg,qf,X),b=X,s=null),!a&&!s&&se(X)&&(s=X(A,A[Ou]()))}else s=null,b=null}))}function Be(b){var K=uc(vr(),A);K[Yu](Ie),(!A._updateHook||A._updateHook(K,b)!==!0)&&K[Rr](b)}function Ue(b){var K=A[ze];K?(H(K,2,73,b),Ie()):hr(b)}function Xe(b){var K=A[Ou]();K&&K[Zi]([b],2)}function Ve(b){T.add(b)}})}return r.__ieDyn=1,r})()});function da(r,e){try{if(r&&r!==""){var t=Xr().parse(r);if(t&&t[A_]&&t[A_]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[q])return t}}catch(n){H(e,1,43,"Cannot parse the response. "+(n[Mr]||te(n)),{response:r})}return null}var wh=Y(()=>{"use strict";d();he();Ge();Nn();no()});var Bn,rx,Oh,Gp,va,Yh=Y(()=>{"use strict";d();Ur();Zo();he();Ge();np();Nn();no();Fn();Bn="",rx="NoResponseBody",Oh="&"+rx+"=true",Gp="POST",va=(function(){function r(){var e=0,t,n,i,o,a,s,u,c,l,v,_,g,p,N;Ce(r,this,function(E,x){var T=!0;Se(),E[li]=function(F,k){i=k,n&&H(i,1,28,"Sender is already initialized"),E.SetConfig(F),n=!0},E._getDbgPlgTargets=function(){return[n,o,s,t]},E.SetConfig=function(F){try{if(a=F.senderOnCompleteCallBack||{},s=!!F.disableCredentials,u=F.fetchCredentials,o=!!F.isOneDs,t=!!F.enableSendPromise,l=!!F.disableXhr,v=!!F.disableBeacon,_=!!F.disableBeaconSync,N=F.timeWrapper,p=!!F.addNoResponse,g=!!F.disableFetchKeepAlive,c={sendPOST:G},o||(T=!1),s){var k=ia();k&&k.protocol&&k.protocol[At]()==="file:"&&(T=!1)}return!0}catch{}return!1},E.getSyncFetchPayload=function(){return e},E.getSenderInst=function(F,k){return F&&F[q]?j(F,k):null},E.getFallbackInst=function(){return c},E[$i]=function(F,k){Se()};function y(F,k){W(k,200,{},F)}function w(F,k){H(i,2,26,"Failed to send telemetry.",{message:F}),W(k,400,{})}function U(F){w("No endpoint url is provided for the batch",F)}function j(F,k){for(var ve,ue=0,A=null,_e=0;A==null&&_e<F[q];)ue=F[_e],!l&&ue===1?Ku()?A=fe:ys()&&(A=G):ue===2&&gi(k)&&(!k||!g)?A=Z:ue===3&&en()&&(k?!_:!v)&&(A=V),_e++;return A?(ve={_transport:ue,_isSync:k},ve[b_]=A,ve):null}function W(F,k,ve,ue){try{F&&F(k,ve,ue)}catch{}}function ne(F,k){var ve=Pr(),ue=F[gs];if(!ue)return U(k),!0;ue=F[gs]+(p?Oh:Bn);var A=F[Xi],_e=o?A:new Blob([A],{type:"text/plain;charset=UTF-8"}),re=ve.sendBeacon(ue,_e);return re}function V(F,k,ve){var ue=F[Xi];try{if(ue)if(ne(F,k))y(Bn,k);else{var A=a&&a.beaconOnRetry;A&&se(A)?A(F,k,ne):(c&&c[b_](F,k,!0),H(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(_e){o&&pt(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(_e)),W(k,o?0:400,{},Bn)}}function G(F,k,ve){var ue,A,_e,re=F[Kf]||{};!ve&&t&&(ue=Qt(function(Oe,We){A=Oe,_e=We})),o&&ve&&F.disableXhrSync&&(ve=!1);var Ie=F[gs];if(!Ie){U(k),A&&A(!1);return}var $=G_(Gp,Ie,T,!0,ve,F[Qo]);o||$[C_]("Content-type","application/json"),R($r(re),function(Oe){$[C_](Oe,re[Oe])}),$.onreadystatechange=function(){o||(C($),$.readyState===4&&A&&A(!0))},$.onload=function(){o&&C($)};function C(Oe){var We=a&&a.xhrOnComplete,lt=We&&se(We);if(lt)We(Oe,k,F);else{var vr=Sn(Oe);W(k,Oe[Xo],mi(Oe,o),vr)}}return $.onerror=function(Oe){W(k,o?$[Xo]:400,mi($,o),o?Bn:_i($)),_e&&_e(Oe)},$.ontimeout=function(){W(k,o?$[Xo]:500,mi($,o),o?Bn:_i($)),A&&A(!1)},$.send(F[Xi]),ue}function Z(F,k,ve){var ue,A=F[gs],_e=F[Xi],re=o?_e:new Blob([_e],{type:"application/json"}),Ie,$,C,Oe=new Headers,We=_e[q],lt=!1,vr=!1,Kt=F[Kf]||{},jr=(ue={method:Gp,body:re},ue[tp]=!0,ue);F.headers&&$r(F.headers)[q]>0&&(R($r(Kt),function(Ue){Oe.append(Ue,Kt[Ue])}),jr[Kf]=Oe),u?jr.credentials=u:T&&o&&(jr.credentials="include"),ve&&(jr.keepalive=!0,e+=We,o?F._sendReason===2&&(lt=!0,p&&(A+=Oh)):lt=!0);var Ar=new Request(A,jr);try{Ar[tp]=!0}catch{}if(!ve&&t&&(Ie=Qt(function(Ue,Xe){$=Ue,C=Xe})),!A){U(k),$&&$(!1);return}function dt(Ue){W(k,o?0:400,{},o?Bn:Ue)}function Be(Ue,Xe,Ve){var b=Ue[Xo],K=a.fetchOnComplete;K&&se(K)?K(Ue,k,Ve||Bn,Xe):W(k,b,{},Ve||Bn)}try{Gt(fetch(o?A:Ar,o?jr:null),function(Ue){if(ve&&(e-=We,We=0),!vr)if(vr=!0,Ue.rejected)dt(Ue.reason&&Ue.reason[Un]),C&&C(Ue.reason);else{var Xe=Ue[Wo];try{!o&&!Xe.ok?(dt(Xe.statusText),$&&$(!1)):o&&!Xe.body?(Be(Xe,null,Bn),$&&$(!0)):Gt(Xe.text(),function(Ve){Be(Xe,F,Ve[Wo]),$&&$(!0)})}catch(Ve){dt(te(Ve)),C&&C(Ve)}}})}catch(Ue){vr||(dt(te(Ue)),C&&C(Ue))}return lt&&!vr&&(vr=!0,W(k,200,{}),$&&$(!0)),o&&!vr&&F[Qo]>0&&N&&N.set(function(){vr||(vr=!0,W(k,500,{}),$&&$(!0))},F[Qo]),Ie}function fe(F,k,ve){var ue=Nr(),A=new XDomainRequest,_e=F[Xi];A.onload=function(){var Oe=Sn(A),We=a&&a.xdrOnComplete;We&&se(We)?We(A,k,F):W(k,200,{},Oe)},A.onerror=function(){W(k,400,{},o?Bn:na(A))},A.ontimeout=function(){W(k,500,{})},A.onprogress=function(){};var re=ue&&ue.location&&ue.location[jf]||"",Ie=F[gs];if(!Ie){U(k);return}if(!o&&Ie.lastIndexOf(re,0)!==0){var $="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";H(i,2,40,". "+$),w($,k);return}var C=o?Ie:Ie[gn](/^(https?:)/,"");A.open(Gp,C),F[Qo]&&(A[Qo]=F[Qo]),A.send(_e),o&&ve?N&&N.set(function(){A.send(_e)},0):A.send(_e)}function Se(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,c=null,l=!1,v=!1,_=!1,g=!1,p=!1,N=null}})}return r.__ieDyn=1,r})()});function kh(r){return r&&r[gn]?r[gn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,me):r}function bl(r,e){var t;if(e){var n=me;Q(e)?(n=me,R(e,function(o){o=kh(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=kh(e),n&&(n[0]!=="."&&(n="."+n),r=(r||me)+n)}var i=ox.exec(r||me)||[];return t={},t[Rt]=i[1],t.ns=(i[2]||me).replace(tx,".").replace(nx,me)[Jt](".").sort().join("."),t}function Bp(r,e,t){var n=[],i=vc.get(r,xl,{},!1),o=bl(e,t);return ae(i,function(a,s){R(s,function(u){var c;(!o[Rt]||o[Rt]===u.evtName[Rt])&&(!o.ns||o.ns===o.ns)&&n[xe]((c={},c[Mr]=u.evtName[Rt]+(u.evtName.ns?"."+u.evtName.ns:me),c.handler=u[Uu],c))})}),n}function Wh(r,e,t){t===void 0&&(t=!0);var n=vc.get(r,xl,{},t),i=n[e];return i||(i=n[e]=[]),i}function $h(r,e,t,n){r&&e&&e[Rt]&&(r[Fh]?r[Fh](e[Rt],t,n):r[Mh]&&r[Mh](Gh+e[Rt],t))}function ax(r,e,t,n){var i=!1;return r&&e&&e[Rt]&&t&&(r[Uh]?(r[Uh](e[Rt],t,n),i=!0):r[Lh]&&(r[Lh](Gh+e[Rt],t),i=!0)),i}function Hh(r,e,t,n){for(var i=e[q];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&($h(r,o.evtName,o[Uu],o.capture),e[On](i,1))}}function sx(r,e,t){if(e[Rt])Hh(r,Wh(r,e[Rt]),e,t);else{var n=vc.get(r,xl,{});ae(n,function(i,o){Hh(r,o,e,t)}),$r(n)[q]===0&&vc.kill(r,xl)}}function zt(r,e){var t;return e?(Q(e)?t=[r].concat(e):t=[r,e],t=bl("xx",t).ns[Jt](".")):t=r,t}function jn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=bl(e,n);if(a=ax(r,s,t,i),a&&vc.accept(r)){var u=(o={guid:ix++,evtName:s},o[Uu]=t,o.capture=i,o);Wh(r,s.type)[xe](u)}}catch{}return a}function xi(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=bl(e,n),a=!1;sx(r,o,function(s){return o.ns&&!t||s[Uu]===t?(a=!0,!0):!1}),a||$h(r,o,t,i)}catch{}}function jp(r,e,t,n){return n===void 0&&(n=!1),jn(r,e,t,null,n)}function zp(r,e,t,n){n===void 0&&(n=!1),xi(r,e,t,null,n)}function Cl(r,e,t){var n=!1,i=Nr();i&&(n=jn(i,r,e,t),n=jn(i.body,r,e,t)||n);var o=Sr();return o&&(n=jn(o,r,e,t)||n),n}function Pl(r,e,t){var n=Nr();n&&(xi(n,r,e,t),xi(n.body,r,e,t));var i=Sr();i&&xi(i,r,e,t)}function Os(r,e,t,n){var i=!1;return e&&r&&r[q]>0&&R(r,function(o){o&&(!t||Me(t,o)===-1)&&(i=Cl(o,e,n)||i)}),i}function Rl(r,e,t,n){var i=!1;return e&&r&&Q(r)&&(i=Os(r,e,t,n),!i&&t&&t[q]>0&&(i=Os(r,e,null,n))),i}function vo(r,e,t){r&&Q(r)&&R(r,function(n){n&&Pl(n,e,t)})}function _c(r,e,t){return Rl([zh,jh,Al],r,e,t)}function pc(r,e){vo([zh,jh,Al],r,e)}function Ys(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=zt(Vh,t),o=Os([Al],r,e,i);return(!e||Me(e,dc)===-1)&&(o=Os([dc],n,e,i)||o),!o&&e&&(o=Ys(r,null,t)),o}function mc(r,e){var t=zt(Vh,e);vo([Al],r,t),vo([dc],null,t)}function Ls(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=zt(Kh,t),o=Os([Bh],r,e,i);return o=Os([dc],n,e,i)||o,!o&&e&&(o=Ls(r,null,t)),o}function gc(r,e){var t=zt(Kh,e);vo([Bh],r,t),vo([dc],null,t)}var Gh,Lh,Uh,Mh,Fh,xl,dc,Al,Bh,jh,zh,Vh,Kh,tx,nx,ix,vc,ox,qh=Y(()=>{"use strict";d();he();Ge();xs();Tr();Gh="on",Lh="attachEvent",Uh="addEventListener",Mh="detachEvent",Fh="removeEventListener",xl="events",dc="visibilitychange",Al="pagehide",Bh="pageshow",jh="unload",zh="beforeunload",Vh=Jr("aiEvtPageHide"),Kh=Jr("aiEvtPageShow"),tx=/\.[\.]+/g,nx=/[\.]+$/,ix=1,vc=il("events"),ox=/^([^.]*)(?:\.(.+)|)/});var Vp,Xh=Y(()=>{"use strict";d();wu();Vp=fr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var $e=Y(()=>{"use strict";d();NE();TE();S_();Rh();Fp();nl();Ip();rp();Fn();wh();Yh();he();wu();qh();no();xt();Sp();El();Nn();Dl();Xh();hp();xs();Il();yl();Rp();oo();ul();op()});var zn,Jh,Kp,wl,Ol=Y(()=>{"use strict";d();zn="",Jh="https://browser.events.data.microsoft.com/OneCollector/1.0/",Kp="version",wl="properties"});var Wp,$p,Us,Vn,qp,Ze,_a,Ai,Yl,Ll,Ul,Ml,Ec,Fl=Y(()=>{"use strict";d();Wp="initialize",$p="logger",Us="indexOf",Vn="timings",qp="pollInternalLogs",Ze="value",_a="kind",Ai="length",Yl="processTelemetryStart",Ll="handleField",Ul="rmSanitizer",Ml="rmFieldSanitizer",Ec="canHandle"});function kr(r){return!(r===zn||B(r))}function kl(r){if(r){var e=dn(r,"-");if(e>-1)return Ho(r,e)}return zn}function tS(){return Xp===null&&(Xp=!Te(Uint8Array)&&!dx()&&!ro()),Xp}function Hl(r){return!!(r&&Wr(r)&&r>=1&&r<=4)}function Gl(r,e,t){if(!e&&!kr(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||Q(e))e={value:e};else if(n==="object"&&!Zh.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(B(e[Ze])||e[Ze]===zn||!Ne(e[Ze])&&!Wr(e[Ze])&&!Pn(e[Ze])&&!Q(e[Ze]))return null;if(Q(e[Ze])&&!Qp(e[Ze]))return null;if(!B(e[_a])){if(Q(e[Ze])||!hc(e[_a]))return null;e[Ze]=e[Ze].toString()}return e}function Fs(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),lx(t))n===-1&&(n=0),n|=t;else{var i=fx[Kn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function nS(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||zn}function iS(r){r===void 0&&(r="D");var e=ac();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,zn)),e}function pa(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[Ai],c=arguments;for(Pn(c[0])&&(a=c[0],s++);s<u;s++){var r=c[s];ae(r,function(v,_){a&&_&&nr(_)?Q(_)?(o[v]=o[v]||[],R(_,function(g,p){g&&nr(g)?o[v][p]=pa(!0,o[v][p],g):o[v][p]=g})):o[v]=pa(!0,o[v],_):o[v]=_})}return o}function hc(r){return r===0||r>0&&r<=13||r===32}function lx(r){return r>=0&&r<=9}function dx(){var r=Pr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Us]("safari")>=0||e[Us]("firefox")>=0)&&e[Us]("chrome")<0)return!0}return!1}function Qp(r){return r[Ai]>0}function Sc(r,e){var t=r;t[Vn]=t[Vn]||{},t[Vn][Yl]=t[Vn][Yl]||{},t[Vn][Yl][e]=Yt()}function Kn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===oi&&(e=4,Q(r)?(e=4096,r[Ai]>0&&(e|=Kn(r[0]))):Zh.call(r,"value")&&(e=8192|Kn(r[Ze])))}return e}function Bl(){return!!le("chrome")}function oS(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,ux,n),t&&a(s,Qh,t),s.open(r,e,!i),t&&a(s,Qh,t),!i&&o&&a(s,cx,o),s}function _o(r){return r>0}var bi,Jp,Ms,Zh,ux,Qh,cx,fx,Xp,eS,rS,Yt,jl=Y(()=>{"use strict";d();$e();xt();he();Ol();Fl();Jp="4.3.4",Ms="1DS-Web-JS-"+Jp,Zh=Eu.hasOwnProperty,ux="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Qh="withCredentials",cx="timeout",fx=(bi={},bi[0]=0,bi[2]=6,bi[1]=1,bi[3]=7,bi[4098]=6,bi[4097]=1,bi[4099]=7,bi),Xp=null,eS=Go(),rS=as();Yt=Cu});function _x(r){return r&&(!r.getProperty||!r.setProperty)&&hr("Invalid property storage override passed."),!0}var vx,aS,sS=Y(()=>{"use strict";d();xt();Ur();$e();he();Ol();jl();Fl();vx=Rn({endpointUrl:Jh,propertyStorageOverride:{isVal:_x}});aS=(function(r){yt(e,r);function e(){var t=r.call(this)||this;return Ce(e,t,function(n,i){n[Wp]=function(o,a,s,u){lr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Wp](Qe(o,vx,s||n[$p],!1).cfg,a,s,u)}catch(v){var c=n[$p],l=te(v);l[Us]("channels")!==-1&&(l+=`
3
+ - Channels must be provided through config.channels only!`),H(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){lr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[Vn]=a[Vn]||{},a[Vn].trackStart=Yt(),Hl(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=Ms;var u=a.baseData=a.baseData||{};u[wl]=u[wl]||{};var c=u[wl];c[Kp]=c[Kp]||n.pluginVersionString||zn}i.track(a)},function(){return{item:o}},!o.sync)},n[qp]=function(o){return i[qp](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(yi)});var uS,cS,fS,lS,dS,vS=Y(()=>{"use strict";d();$e();uS=fr({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}),cS=fr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),fS=fr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),lS=fr({Normal:1,Critical:2}),dS=fr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var _S,pS=Y(()=>{"use strict";d();$e();he();Ol();jl();Fl();_S=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(l,v){var _,g=n[l];if(g&&(_=g[v]),!_&&_!==null){if(Ne(l)&&Ne(v))if(o[Ai]>0){for(var p=0;p<o[Ai];p++)if(o[p][Ll](l,v)){_={canHandle:!0,fieldHandler:o[p]};break}}else i[Ai]===0&&(_={canHandle:!0});if(!_&&_!==null){_=null;for(var p=0;p<i[Ai];p++)if(i[p][Ll](l,v)){_={canHandle:!0,handler:i[p],fieldHandler:null};break}}g||(g=n[l]={}),g[v]=_}return _}t.clearCache=function(){n={}},t.addSanitizer=function(l){l&&(r_(i,l)||i.push(l),n={})},t.addFieldSanitizer=function(l){l&&(r_(o,l)||o.push(l),n={})},t[Ul]=function(l){if(l){var v=Me(i,l);v!==-1&&(i.splice(v,1),n={}),R(i,function(_){_&&_[Ul]&&_[Ul](l)})}},t[Ml]=function(l){if(l){var v=Me(o,l);v!==-1&&(o.splice(v,1),n={}),R(i,function(_){_&&_[Ml]&&_[Ml](l)})}},t.isEmpty=function(){return cs(i)+cs(o)===0},t[Ll]=function(l,v){var _=a(l,v);return _?_[Ec]:!1},t[Ze]=function(l,v,_,g){var p=a(l,v);if(p&&p[Ec]){if(!p||!p[Ec])return null;if(p.handler)return p.handler[Ze](l,v,_,g);if(!Ne(v)||B(_)||_===zn)return null;var N=null,E=Kn(_);if((E&8192)===8192){var x=E&-8193;if(N=_,!kr(N[Ze])||x!==1&&x!==2&&x!==3&&(x&4096)!==4096)return null}else E===1||E===2||E===3||(E&4096)===4096?N=u(l,v,_):E===4&&(N=u(l,v,g?JSON.stringify(_):_));if(N)return s(p,l,v,E,N,g)}return null},t.property=function(l,v,_,g){var p=a(l,v);if(!p||!p[Ec]||!Ne(v)||B(_)||!kr(_[Ze]))return null;var N=Kn(_[Ze]);return N===0?null:s(p,l,v,N,_,g)};function s(l,v,_,g,p,N){if(l.handler)return l.handler.property(v,_,p,N);if(!B(p[_a])){if((g&4096)===4096||!hc(p[_a]))return null;p[Ze]=p[Ze].toString()}return c(l.fieldHandler,v,_,g,p)}function u(l,v,_){return kr(_)?{value:_}:null}function c(l,v,_,g,p){if(p&&l){var N=l.getSanitizer(v,_,g,p[_a],p.propertyType);if(N)if(g===4){var E={},x=p[Ze];ae(x,function(y,w){var U=v+"."+_;if(kr(w)){var j=u(U,y,w);j=c(l,U,y,Kn(w),j),j&&(E[y]=j[Ze])}}),p[Ze]=E}else{var T={path:v,name:_,type:g,prop:p,sanitizer:t};p=N.call(t,T)}}return p}}return r.getFieldType=Kn,r})()});var mS={};df(mS,{ActiveStatus:()=>Ft,AppInsightsCore:()=>aS,BaseTelemetryPlugin:()=>Ii,DiagnosticLogger:()=>ao,EventLatency:()=>cS,EventPersistence:()=>lS,EventPropertyType:()=>fS,EventsDiscardedReason:()=>vn,FullVersionString:()=>Ms,InternalAppInsightsCore:()=>yi,LoggingSeverity:()=>Vp,MinChannelPriorty:()=>E_,NotificationManager:()=>nc,PerfEvent:()=>sa,PerfManager:()=>oc,ProcessTelemetryContext:()=>Lp,SenderPostManager:()=>va,TraceLevel:()=>dS,Undefined:()=>bn,ValueKind:()=>uS,ValueSanitizer:()=>_S,Version:()=>Jp,_InternalLogMessage:()=>oa,__getRegisteredEvents:()=>Bp,_appendHeader:()=>Ds,_getAllResponseHeaders:()=>mi,_logInternalMessage:()=>lp,_testHookMaxUnloadHooksCb:()=>Up,_throwInternal:()=>H,_warnToConsole:()=>pt,addEventHandler:()=>Cl,addEventListeners:()=>Rl,addPageHideEventListener:()=>Ys,addPageShowEventListener:()=>Ls,addPageUnloadEventListener:()=>_c,areCookiesSupported:()=>Ps,arrForEach:()=>R,arrIndexOf:()=>Me,arrMap:()=>si,arrReduce:()=>bu,attachEvent:()=>jp,blockDynamicConversion:()=>Qu,convertAllHeadersToMap:()=>tl,cookieAvailable:()=>Ps,createCookieMgr:()=>Ni,createDynamicConfig:()=>Qe,createEnumStyle:()=>fr,createGuid:()=>iS,createProcessTelemetryContext:()=>mt,createTraceParent:()=>Ap,createUniqueNamespace:()=>Jr,createUnloadHandlerContainer:()=>la,dateNow:()=>cr,detachEvent:()=>zp,disallowsSameSiteNone:()=>gl,doPerf:()=>lr,dumpObj:()=>te,eventOff:()=>xi,eventOn:()=>jn,extend:()=>pa,findW3cTraceParent:()=>Pp,forceDynamicConversion:()=>ep,formatErrorMessageXdr:()=>na,formatErrorMessageXhr:()=>_i,formatTraceParent:()=>Cp,generateW3CId:()=>ua,getCommonSchemaMetaData:()=>Fs,getConsole:()=>Bu,getCookieValue:()=>nS,getCrypto:()=>ju,getDocument:()=>Sr,getDynamicConfigHandler:()=>Ju,getExceptionName:()=>or,getFieldValueType:()=>Kn,getGlobal:()=>_t,getGlobalInst:()=>le,getHistory:()=>yf,getIEVersion:()=>Vu,getISOString:()=>hn,getJSON:()=>Xr,getLocation:()=>ia,getMsCrypto:()=>zu,getNavigator:()=>Pr,getPerformance:()=>Bo,getResponseText:()=>Sn,getSetValue:()=>Gu,getTenantId:()=>kl,getTime:()=>Yt,getWindow:()=>Nr,hasDocument:()=>Go,hasHistory:()=>Zv,hasJSON:()=>kn,hasNavigator:()=>xu,hasOwnProperty:()=>br,hasWindow:()=>as,isArray:()=>Q,isArrayValid:()=>Qp,isBeaconsSupported:()=>en,isBoolean:()=>Pn,isChromium:()=>Bl,isDate:()=>Tf,isDocumentObjectAvailable:()=>eS,isError:()=>Fo,isFetchSupported:()=>gi,isFunction:()=>se,isGreaterThanZero:()=>_o,isIE:()=>to,isLatency:()=>Hl,isNotTruthy:()=>Kv,isNullOrUndefined:()=>B,isNumber:()=>Wr,isObject:()=>nr,isReactNative:()=>ro,isSampledFlag:()=>bp,isString:()=>Ne,isTruthy:()=>cn,isTypeof:()=>Vv,isUint8ArrayAvailable:()=>tS,isUndefined:()=>Te,isValidSpanId:()=>fa,isValidTraceId:()=>ca,isValidTraceParent:()=>Nl,isValueAssigned:()=>kr,isValueKind:()=>hc,isWindowObjectAvailable:()=>rS,isXhrSupported:()=>ys,mergeEvtNamespace:()=>zt,newGuid:()=>ac,newId:()=>qu,normalizeJsName:()=>ta,objDefineAccessors:()=>qv,objForEachKey:()=>ae,objFreeze:()=>qt,objKeys:()=>$r,objSeal:()=>Xv,onConfigChange:()=>Fr,openXhr:()=>oS,optimizeObject:()=>Ot,parseResponse:()=>da,parseTraceParent:()=>sc,perfNow:()=>Cu,prependTransports:()=>pi,proxyAssign:()=>k_,proxyFunctionAs:()=>vi,proxyFunctions:()=>jt,random32:()=>Ei,randomValue:()=>X_,removeEventHandler:()=>Pl,removeEventListeners:()=>vo,removePageHideEventListener:()=>mc,removePageShowEventListener:()=>gc,removePageUnloadEventListener:()=>pc,safeGetCookieMgr:()=>Ep,safeGetLogger:()=>Si,sanitizeProperty:()=>Gl,setEnableEnvMocks:()=>W_,setProcessTelemetryTimings:()=>Sc,setValue:()=>Zt,strContains:()=>mr,strEndsWith:()=>jo,strFunction:()=>es,strObject:()=>oi,strPrototype:()=>sn,strStartsWith:()=>fs,strTrim:()=>ke,strUndefined:()=>bn,throwError:()=>hr,toISOString:()=>hn,useXDomainRequest:()=>Ku});var ma=Y(()=>{"use strict";d();sS();vS();pS();$e();jl()});var ga,zl,Vl,Zp=Y(()=>{"use strict";d();ga="REAL_TIME",zl="NEAR_REAL_TIME",Vl="BEST_EFFORT"});var Tn,Kl,gS,em,ES,hS,rm,Wl,Nc,ks,SS,NS,TS,$l,tm,ql,Xl,Jl,Tc,nm,im,DS,Hs,om,Ql,Dc=Y(()=>{"use strict";d();Tn="",Kl="drop",gS="send",em="requeue",ES="rspFail",hS="oth",rm="no-cache, no-store",Wl="application/x-json-stream",Nc="cache-control",ks="content-type",SS="kill-tokens",NS="kill-duration",TS="time-delta-millis",$l="client-version",tm="client-id",ql="time-delta-to-apply-millis",Xl="upload-time",Jl="apikey",Tc="AuthMsaDeviceTicket",nm="WebAuthToken",im="AuthXToken",DS="NoResponseBody",Hs="msfpc",om="trace",Ql="user"});var Ic,Zl,ed,rd,yc,Ae,Wn,Vt,dr,$n,wr,qn,Ea,td,ha,nd,Sa,id,od,IS,am,sm,yS,xS,ad,um,cm,AS,bS,fm,lm,dm,CS,sd,ud,cd,xc,vm,Dn,Gs,_m,ot,Lt,Ac,bc,Bs,fd,Cc,PS,js,ld,dd,zs,pm,Pc,vd,_d,Vs,RS,pd,md,gd,Rc,wS,OS,mm,gm,YS,LS,US,Ed,wc,po,Na,Ks=Y(()=>{"use strict";d();Ic="allowRequestSending",Zl="firstRequestSent",ed="shouldAddClockSkewHeaders",rd="getClockSkewHeaderValue",yc="setClockSkew",Ae="length",Wn="concat",Vt="iKey",dr="count",$n="events",wr="push",qn="split",Ea="splice",td="toLowerCase",ha="hdrs",nd="useHdrs",Sa="initialize",id="setTimeoutOverride",od="clearTimeoutOverride",IS="payloadPreprocessor",am="overrideEndpointUrl",sm="avoidOptions",yS="disableEventTimings",xS="stringifyObjects",ad="enableCompoundKey",um="disableXhrSync",cm="disableFetchKeepAlive",AS="addNoResponse",bS="excludeCsMetaData",fm="useSendBeacon",lm="fetchCredentials",dm="alwaysUseXhrOverride",CS="unloadTransports",sd="serializeOfflineEvt",ud="getOfflineRequestDetails",cd="createPayload",xc="createOneDSPayload",vm="payloadBlob",Dn="headers",Gs="_thePayload",_m="urlString",ot="batches",Lt="sendType",Ac="addHeader",bc="canSendRequest",Bs="sendQueuedRequests",fd="isCompletelyIdle",Cc="setUnloading",PS="isTenantKilled",js="resume",ld="sendSynchronousBatch",dd="_transport",zs="getWParam",pm="isBeacon",Pc="timings",vd="isTeardown",_d="isSync",Vs="data",RS="timeout",pd="_sendReason",md="setKillSwitchTenants",gd="_backOffTransmission",Rc="identifier",wS="disableOptimizeObj",OS="ignoreMc1Ms0CookieProcessing",mm="eventsLimitInMem",gm="autoFlushEventsLimit",YS="disableAutoBatchFlushLimit",LS="overrideInstrumentationKey",US="disableTelemetry",Ed="baseData",wc="sendAttempt",po="latency",Na="sync"});function FS(r){var e=(r.ext||{}).intweb;return e&&kr(e[Hs])?e[Hs]:null}function MS(r){for(var e=null,t=0;e===null&&t<r[Ae];t++)e=FS(r[t]);return e}var mo,hd=Y(()=>{"use strict";d();ma();Dc();Ks();mo=(function(){function r(e,t){var n=t?[][Wn](t):[],i=this,o=MS(n);i[Vt]=function(){return e},i.Msfpc=function(){return o||Tn},i[dr]=function(){return n[Ae]},i[$n]=function(){return n},i.addEvent=function(a){return a?(n[wr](a),o||(o=FS(a)),!0):!1},i[qn]=function(a,s){var u;if(a<n[Ae]){var c=n[Ae]-a;B(s)||(c=s<c?s:c),u=n[Ea](a,c),o=MS(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var kS,HS=Y(()=>{"use strict";d();Ur();Ks();kS=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;Ce(r,this,function(a){a[Ic]=function(){return e},a[Zl]=function(){n&&(n=!1,o||(e=!1))},a[ed]=function(){return t},a[rd]=function(){return i},a[yc]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var px,GS,BS=Y(()=>{"use strict";d();Ur();ma();Ks();px=1e3,GS=(function(){function r(){var e={};function t(n){var i=[];return n&&R(n,function(o){i[wr](ke(o))}),i}Ce(r,this,function(n){n[md]=function(i,o){if(i&&o)try{var a=t(i[qn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*px,u=0;u<a[Ae];++u)e[a[u]]=cr()+s}catch{return[]}return[]},n[PS]=function(i){var o=e,a=ke(i);return o[a]!==void 0&&o[a]>cr()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function zS(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function Sd(r){var e=0,t=jS*mx,n=jS*gx,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,Ex)}var mx,gx,jS,Ex,Em=Y(()=>{"use strict";d();mx=.8,gx=1.2,jS=3e3,Ex=6e5});function Dx(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[VS];a||(a=e[VS]={f:{}});var s=a[Nd];if(s||(s=a[Nd]={}),t)for(var u=0;u<t.length;u++){var c=t[u];s[c]||(s[c]={f:{}});var l=s[c][Nd];l||(l=s[c][Nd]={}),s=l}s=s[n]={},Q(i.value)?s.a={t:o}:s.t=o}}}var hx,Sx,KS,WS,Nx,VS,Nd,Tx,$S,qS=Y(()=>{"use strict";d();Ur();ma();hd();Dc();he();hx=20,Sx=3984588,KS=65e3,WS=2e6,Nx=Math.min(WS,KS),VS="metadata",Nd="f",Tx=/\./,$S=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",c="ext",l=!!i,v=!0,_=t,g={},p=!!a,N=o||Fs;Ce(r,this,function(E){E.createPayload=function(y,w,U,j,W,ne){return{apiKeys:[],payloadBlob:Tn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:y,isTeardown:w,isSync:U,isBeacon:j,sendType:ne,sendReason:W}},E.appendPayload=function(y,w,U){var j=y&&w&&!y.overflow;return j&&lr(e,function(){return"Serializer:appendPayload"},function(){for(var W=w.events(),ne=y.payloadBlob,V=y.numEvents,G=!1,Z=[],fe=[],Se=y.isBeacon,F=Se?KS:Sx,k=Se?Nx:WS,ve=0,ue=0;ve<W.length;){var A=W[ve];if(A){if(V>=U){y.overflow=w.split(ve);break}var _e=E.getEventBlob(A);if(_e&&_e.length<=k){var re=_e.length,Ie=ne.length;if(Ie+re>F){y.overflow=w.split(ve);break}ne&&(ne+=`
4
+ `),ne+=_e,ue++,ue>hx&&(wn(ne,0,1),ue=0),G=!0,V++}else _e?Z.push(A):fe.push(A),W.splice(ve,1),ve--}ve++}if(Z.length>0&&y.sizeExceed.push(mo.create(w.iKey(),Z)),fe.length>0&&y.failedEvts.push(mo.create(w.iKey(),fe)),G){y.batches.push(w),y.payloadBlob=ne,y.numEvents=V;var $=w.iKey();Me(y.apiKeys,$)===-1&&y.apiKeys.push($)}},function(){return{payload:y,theBatch:{iKey:w.iKey(),evts:w.events()},max:U}}),j},E.getEventBlob=function(y){try{return lr(e,function(){return"Serializer.getEventBlob"},function(){var w={};w.name=y.name,w.time=y.time,w.ver=y.ver,w.iKey="o:"+kl(y.iKey);var U={},j;p||(j=function(G,Z,fe){Dx(N,U,G,Z,fe)});var W=y[c];W&&(w[c]=U,ae(W,function(G,Z){var fe=U[G]={};T(Z,fe,"ext."+G,!0,null,null,!0)}));var ne=w[s]={};ne.baseType=y.baseType;var V=ne[u]={};return T(y.baseData,V,u,!1,[u],j,v),T(y.data,ne,s,!1,[],j,v),JSON.stringify(w)},function(){return{item:y}})}catch{return null}};function x(y,w){var U=g[y];return U===void 0&&(y.length>=7&&(U=fs(y,"ext.metadata")||fs(y,"ext.web")),g[y]=U),U}function T(y,w,U,j,W,ne,V){ae(y,function(G,Z){var fe=null;if(Z||kr(Z)){var Se=U,F=G,k=W,ve=w;if(l&&!j&&Tx.test(G)){var ue=G.split("."),A=ue.length;if(A>1){k&&(k=k.slice());for(var _e=0;_e<A-1;_e++){var re=ue[_e];ve=ve[re]=ve[re]||{},Se+="."+re,k&&k.push(re)}F=ue[A-1]}}var Ie=j&&x(Se,F);if(!Ie&&_&&_.handleField(Se,F)?fe=_.value(Se,F,Z,n):fe=Gl(F,Z,n),fe){var $=fe.value;if(ve[F]=$,ne&&ne(k,F,fe),V&&typeof $=="object"&&!Q($)){var C=k;C&&(C=C.slice(),C.push(F)),T(Z,$,Se+"."+F,j,C,ne,V)}}}})}})}return r.__ieDyn=1,r})()});function Ws(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return lE([r,e],t,n,i)}}}var hm=Y(()=>{"use strict";d();he()});function Da(r,e,t){Nm[r]=e,t!==!1&&(Tm[e]=r)}function Td(r,e){var t=!1;if(r&&e){var n=$r(r);if(n&&n[Ae]>0)for(var i=e[td](),o=0;o<n[Ae];o++){var a=n[o];if(a&&br(e,a)&&a[td]()===i){t=!0;break}}}return t}function $s(r,e,t,n){e&&t&&t[Ae]>0&&(n&&Nm[e]?(r[ha][Nm[e]]=t,r[nd]=!0):r.url+="&"+e+"="+t)}function Ax(r,e,t){for(var n=0;n<r[Ae];n++)if(r[n].name===e){r[n].value=t;return}r[wr]({name:e,value:t})}function bx(r,e){for(var t=0;t<r[Ae];t++)if(r[t].name===e){r[Ea](t,1);return}}var Ta,Sm,Ix,yx,xx,Nm,Tm,XS,JS=Y(()=>{"use strict";d();Ur();ma();he();HS();hd();Dc();BS();Em();qS();hm();Ks();Sm="sendAttempt",Ix="&"+DS+"=true",yx="?cors=true&"+ks[td]()+"="+Wl,xx=(Ta={},Ta[1]=em,Ta[100]=em,Ta[200]="sent",Ta[8004]=Kl,Ta[8003]=Kl,Ta),Nm={},Tm={};Da(Tc,Tc,!1);Da($l,$l);Da(tm,"Client-Id");Da(Jl,Jl);Da(ql,ql);Da(Xl,Xl);Da(im,im);XS=(function(){function r(e,t,n,i){var o,a,s,u,c=!1,l,v,_,g,p,N,E,x,T,y,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e,re,Ie;Ce(r,this,function($){vr();var C=!0;$[Sa]=function(h,O,M){ue||(p=O,U=O.getCookieMgr(),v=M,_=v.diagLog(),ln(Se,Fr(h,function(J){var de,ye=J.cfg,ee=J.cfg.extensionConfig[M.identifier];A=Ws(ee[id],ee[od]),kr(ye.anonCookieName)?Ax(E,"anoncknm",ye.anonCookieName):bx(E,"anoncknm"),F=ee[IS],k=ee.payloadListener;var f=ee.httpXHROverride,m=ee[am]?ee[am]:ye.endpointUrl;o=m+yx,W=Te(ee[sm])?!0:!ee[sm],w=!ee[yS];var S=ee.valueSanitizer,I=ee[xS],P=!!ye[ad];Te(ee[ad])||(P=!!ee[ad]),ne=ee.xhrTimeout,V=!!ee[um],G=!!ee[cm],fe=ee[AS]!==!1,_e=!!ee[bS],O.getPlugin("LocalStorage")&&(G=!0),c=!ro(),y=new $S(p,S,I,P,Fs,_e),B(ee[fm])||(c=!!ee[fm]),ee[lm]&&(Ie=ee[lm]);var L=We();re?re.SetConfig(L):(re=new va,re[Sa](L,_));var z=f,pe=ee[dm]?f:null,Re=ee[dm]?f:null,ce=[3,2];if(!f){N=!1;var St=[];ro()?(St=[2,1],ce=[2,1,3]):St=[1,2,3],St=pi(St,ee.transports),f=Oe(St,!1),f||pt(_,"No available transport to send events"),z=Oe(St,!0)}pe||(ce=pi(ce,ee[CS]),pe=Oe(ce,!0)),Z=!N&&(c&&en()||!G&&gi(!0)),g=(de={},de[0]=f,de[1]=z||Oe([1,2,3],!0),de[2]=pe||z||Oe([1],!0),de[3]=Re||Oe([2,3],!0)||z||Oe([1],!0),de)})),ue=!0)},$.addResponseHandler=function(h){return ve[wr](h),{rm:function(){var O=ve.indexOf(h);O>=0&&ve[Ea](O,1)}}},$[sd]=function(h){try{if(y)return y.getEventBlob(h)}catch{}return Tn},$[ud]=function(){try{var h=y&&y[cd](0,!1,!1,!1,1,0);return X(h,W)}catch{}return null},$[xc]=function(h,O){try{var M=[];R(h,function(f){O&&(f=Ot(f));var m=mo.create(f[Vt],[f]);M[wr](m)});for(var J=null;M[Ae]>0&&y;){var de=M.shift();de&&de[dr]()>0&&(J=J||y[cd](0,!1,!1,!1,1,0),y.appendPayload(J,de,e))}var ye=X(J,W),ee={data:J[vm],urlString:ye.url,headers:ye[ha],timeout:ne,disableXhrSync:V,disableFetchKeepAlive:G};return W&&(Td(ee[Dn],Nc)||(ee[Dn][Nc]=rm),Td(ee[Dn],ks)||(ee[Dn][ks]=Wl)),ee}catch{}return null};function Oe(h,O){try{return re&&re.getSenderInst(h,O)}catch{}return null}$._getDbgPlgTargets=function(){return[g[0],a,y,g,We(),o]};function We(){try{var h={xdrOnComplete:lt,fetchOnComplete:Kt,xhrOnComplete:jr,beaconOnRetry:dt},O={enableSendPromise:!1,isOneDs:!0,disableCredentials:!C,fetchCredentials:Ie,disableXhr:!1,disableBeacon:!c,disableBeaconSync:!c,disableFetchKeepAlive:G,timeWrapper:A,addNoResponse:fe,senderOnCompleteCallBack:h};return O}catch{}return null}function lt(h,O,M){var J=Sn(h);Ar(O,200,{},J),Wt(J)}function vr(){var h;o=null,a=new GS,s=!1,u=new kS,c=!1,l=0,v=null,_=null,g=null,p=null,N=!0,E=[],x={},T=[],y=null,w=!1,U=null,j=!1,W=!1,ne=h,V=h,G=h,Z=h,fe=h,Se=[],F=h,k=h,ve=[],ue=!1,A=Ws(),_e=!1,re=null}function Kt(h,O,M,J){var de=function(f,m,S){Ar(O,f,m,S),Wt(S)},ye={},ee=h[Dn];ee&&ee.forEach(function(f,m){ye[m]=f}),de(h.status,ye,M||Tn)}function jr(h,O,M){var J=Sn(h);Ar(O,h.status,mi(h,!0),J),Wt(J)}function Ar(h,O,M,J){try{h(O,M,J)}catch(de){H(_,2,518,te(de))}}function dt(h,O,M){var J=h,de=200,ye=J[Gs],ee=h[_m]+(fe?Ix:Tn);try{var f=Pr();if(ye){var m=!!p.getPlugin("LocalStorage"),S=[],I=[];R(ye[ot],function(P){if(S&&P&&P[dr]()>0)for(var L=P[$n](),z=0;z<L[Ae];z++)if(f.sendBeacon(ee,y.getEventBlob(L[z])))I[wr](P[z]);else{S[wr](P[qn](z));break}else S[wr](P[qn](0))}),I[Ae]>0&&(ye.sentEvts=I),m||Yr(S,8003,ye[Lt],!0)}else de=0}catch(P){pt(_,"Failed to send telemetry using sendBeacon API. Ex:"+te(P)),de=0}finally{Ar(O,de,{},Tn)}}function Be(h){return h===2||h===3}function Ue(h){return j&&Be(h)&&(h=2),h}$[Ac]=function(h,O){x[h]=O},$.removeHeader=function(h){delete x[h]},$[bc]=function(){return Xe()&&u[Ic]()},$[Bs]=function(h,O){Te(h)&&(h=0),j&&(h=Ue(h),O=2),b(T,h,0)&&ie(Ve(),0,!1,h,O||0)},$[fd]=function(){return!s&&l===0&&T[Ae]===0},$[Cc]=function(h){j=h},$.addBatch=function(h){if(h&&h[dr]()>0){if(a.isTenantKilled(h[Vt]()))return!1;T[wr](h)}return!0},$.teardown=function(){T[Ae]>0&&ie(Ve(),0,!0,2,2),R(Se,function(h){h&&h.rm&&h.rm()}),Se=[]},$.pause=function(){s=!0},$[js]=function(){s=!1,$[Bs](0,4)},$[ld]=function(h,O,M){h&&h[dr]()>0&&(B(O)&&(O=1),j&&(O=Ue(O),M=2),ie([h],0,!1,O,M||0))};function Xe(){return!s&&l<t}function Ve(){var h=T;return T=[],h}function b(h,O,M){var J=!1;return h&&h[Ae]>0&&!s&&g[O]&&y&&(J=O!==0||Xe()&&(M>0||u[Ic]())),J}function K(h){var O={};return h&&R(h,function(M,J){O[J]={iKey:M[Vt](),evts:M[$n]()}}),O}function ie(h,O,M,J,de){if(!(!h||h[Ae]===0)){if(s){Yr(h,1,J);return}J=Ue(J);try{var ye=h,ee=J!==0;lr(p,function(){return"HttpManager:_sendBatches"},function(f){f&&(h=h.slice(0));for(var m=[],S=null,I=Yt(),P=g[J]||(ee?g[1]:g[0]),L=P&&P[dd],z=Z&&(j||Be(J)||L===3||P._isSync&&L===2);b(h,J,O);){var pe=h.shift();pe&&pe[dr]()>0&&(a.isTenantKilled(pe[Vt]())?m[wr](pe):(S=S||y[cd](O,M,ee,z,de,J),y.appendPayload(S,pe,e)?S.overflow!==null&&(h=[S.overflow][Wn](h),S.overflow=null,we(S,I,Yt(),de),I=Yt(),S=null):(we(S,I,Yt(),de),I=Yt(),h=[pe][Wn](h),S=null)))}S&&we(S,I,Yt(),de),h[Ae]>0&&(T=h[Wn](T)),Yr(m,8004,J)},function(){return{batches:K(ye),retryCount:O,isTeardown:M,isSynchronous:ee,sendReason:de,useSendBeacon:Be(J),sendType:J}},!ee)}catch(f){H(_,2,48,"Unexpected Exception sending batch: "+te(f))}}}function X(h,O){var M={url:o,hdrs:{},useHdrs:!1};O?(M[ha]=pa(M[ha],x),M.useHdrs=$r(M.hdrs)[Ae]>0):ae(x,function(f,m){Tm[f]?$s(M,Tm[f],m,!1):(M[ha][f]=m,M[nd]=!0)}),$s(M,tm,"NO_AUTH",O),$s(M,$l,Ms,O);var J=Tn;R(h.apiKeys,function(f){J[Ae]>0&&(J+=","),J+=f}),$s(M,Jl,J,O),$s(M,Xl,cr().toString(),O);var de=tt(h);if(kr(de)&&(M.url+="&ext.intweb.msfpc="+de),u[ed]()&&$s(M,ql,u[rd](),O),p[zs]){var ye=p[zs]();ye>=0&&(M.url+="&w="+ye)}for(var ee=0;ee<E[Ae];ee++)M.url+="&"+E[ee].name+"="+E[ee].value;return M}function oe(h,O,M){h[O]=h[O]||{},h[O][v.identifier]=M}function we(h,O,M,J){if(h&&h.payloadBlob&&h.payloadBlob[Ae]>0){var de=!!F,ye=g[h.sendType];!Be(h[Lt])&&h[pm]&&h.sendReason===2&&(ye=g[2]||g[3]||ye);var ee=W;(h.isBeacon||ye[dd]===3)&&(ee=!1);var f=X(h,ee);ee=ee||f[nd];var m=Yt();lr(p,function(){return"HttpManager:_doPayloadSend"},function(){for(var S=0;S<h.batches[Ae];S++)for(var I=h[ot][S],P=I[$n](),L=0;L<P[Ae];L++){var z=P[L];if(w){var pe=z[Pc]=z[Pc]||{};oe(pe,"sendEventStart",m),oe(pe,"serializationStart",O),oe(pe,"serializationCompleted",M)}z[Sm]>0?z[Sm]++:z[Sm]=1}Yr(h[ot],1e3+(J||0),h[Lt],!0);var Re={data:h[vm],urlString:f.url,headers:f[ha],_thePayload:h,_sendReason:J,timeout:ne,disableXhrSync:V,disableFetchKeepAlive:G};ee&&(Td(Re[Dn],Nc)||(Re[Dn][Nc]=rm),Td(Re[Dn],ks)||(Re[Dn][ks]=Wl));var ce=null;ye&&(ce=function(St){u[Zl]();var ii=function(An,uf){Fe(An,uf,h,J)},Nt=h[vd]||h[_d];try{ye.sendPOST(St,ii,Nt),k&&k(Re,St,Nt,h[pm])}catch(An){pt(_,"Unexpected exception sending payload. Ex:"+te(An)),Ar(ii,0,{})}}),lr(p,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(ce)if(h[Lt]===0&&l++,de&&!h.isBeacon&&ye[dd]!==3){var St={data:Re[Vs],urlString:Re[_m],headers:pa({},Re[Dn]),timeout:Re[RS],disableXhrSync:Re[um],disableFetchKeepAlive:Re[cm]},ii=!1;lr(p,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{F(St,function(Nt){ii=!0,!N&&!Nt[Gs]&&(Nt[Gs]=Nt[Gs]||Re[Gs],Nt[pd]=Nt[pd]||Re[pd]),ce(Nt)},h.isSync||h[vd])}catch{ii||ce(Re)}})}else ce(Re)})},function(){return{thePayload:h,serializationStart:O,serializationCompleted:M,sendReason:J}},h[_d])}h.sizeExceed&&h.sizeExceed[Ae]>0&&Yr(h.sizeExceed,8003,h[Lt]),h.failedEvts&&h.failedEvts[Ae]>0&&Yr(h.failedEvts,8002,h[Lt])}function Pe(h,O){w&&R(h,function(M){var J=M[Pc]=M[Pc]||{};oe(J,"sendEventCompleted",O)})}function Fe(h,O,M,J){var de=9e3,ye=null,ee=!1,f=!1;try{var m=!0;if(typeof h!==bn){if(O){u[yc](O[TS]);var S=O[NS]||O["kill-duration-seconds"];R(a[md](O[SS],S),function(P){R(M[ot],function(L){if(L[Vt]()===P){ye=ye||[];var z=L[qn](0);M.numEvents-=z[dr](),ye[wr](z)}})})}if(h==200||h==204){de=200;return}(!zS(h)||M.numEvents<=0)&&(m=!1),de=9e3+h%1e3}if(m){de=100;var I=M.retryCnt;M[Lt]===0&&(I<n?(ee=!0,rt(function(){M[Lt]===0&&l--,ie(M[ot],I+1,M[vd],j?2:M[Lt],5)},j,Sd(I))):(f=!0,j&&(de=8001)))}}finally{ee||(u[yc](),Je(M,de,J,f)),Yr(ye,8004,M[Lt])}}function Je(h,O,M,J){try{J&&v[gd]();var de=h[ot];O===200&&(de=h.sentEvts||h[ot],!J&&!h[_d]&&v._clearBackOff(),ar(de)),Yr(de,O,h[Lt],!0)}finally{h[Lt]===0&&(l--,M!==5&&$.sendQueuedRequests(h[Lt],M))}}function ar(h){if(w){var O=Yt();R(h,function(M){M&&M[dr]()>0&&Pe(M[$n](),O)})}}function rt(h,O,M){O?h():A.set(h,M)}function tt(h){for(var O=0;O<h.batches[Ae];O++){var M=h[ot][O].Msfpc();if(M)return encodeURIComponent(M)}return Tn}function Wt(h){var O=ve;try{for(var M=0;M<O[Ae];M++)try{O[M](h)}catch(de){H(_,1,519,"Response handler failed: "+de)}if(h){var J=JSON.parse(h);kr(J.webResult)&&kr(J.webResult[Hs])&&U.set("MSFPC",J.webResult[Hs],365*86400)}}catch{}}function Yr(h,O,M,J){if(h&&h[Ae]>0&&i){var de=i[ni(O)];if(de){var ye=M!==0;lr(p,function(){return"HttpManager:_sendBatchesNotification"},function(){rt(function(){try{de.call(i,h,O,ye,M)}catch(ee){H(_,1,74,"send request notification failed: "+ee)}},J||ye,0)},function(){return{batches:K(h),reason:O,isSync:ye,sendSync:J,sendType:M}},!ye)}}}function ni(h){var O=xx[h];return kr(O)||(O=hS,h>=9e3&&h<=9999?O=ES:h>=8e3&&h<=8999?O=Kl:h>=1e3&&h<=1999&&(O=gS)),O}})}return r.__ieDyn=1,r})()});function Yx(r){return r&&r.sendPOST}var Cx,QS,Px,rN,tN,Rx,ZS,wx,Dm,Ia,eN,Dr,Ox,nN,iN=Y(()=>{"use strict";d();xt();Ur();ma();Zo();he();Zp();hd();JS();Dc();Em();hm();Ks();Cx=.25,QS=500,Px=20,rN=6,tN=2,Rx=4,ZS=2,wx=1,Dm=1e4,Ia="eventsDiscarded",eN="",Dr=void 0,Ox=Rn({eventsLimitInMem:{isVal:_o,v:Dm},immediateEventLimit:{isVal:_o,v:500},autoFlushEventsLimit:{isVal:_o,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:Yx,v:Dr},overrideInstrumentationKey:Dr,overrideEndpointUrl:Dr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Dr,clearTimeoutOverride:Dr,payloadPreprocessor:Dr,payloadListener:Dr,disableEventTimings:Dr,valueSanitizer:Dr,stringifyObjects:Dr,enableCompoundKey:Dr,disableOptimizeObj:!1,fetchCredentials:Dr,transports:Dr,unloadTransports:Dr,useSendBeacon:Dr,disableFetchKeepAlive:Dr,avoidOptions:!1,xhrTimeout:Dr,disableXhrSync:Dr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:Wr,v:rN},maxUnloadEventRetryAttempts:{isVal:Wr,v:tN},addNoResponse:Dr,excludeCsMetaData:Dr});nN=(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,l=0,v,_={},g=ga,p,N,E,x,T,y,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e;return Ce(e,t,function(re,Ie){Ue(),re._getDbgPlgTargets=function(){return[T,n]},re[Sa]=function(f,m,S){lr(m,function(){return"PostChannel:initialize"},function(){Ie[Sa](f,m,S),ve=m.getNotifyMgr();try{fe=zt(Jr(re[Rc]),m.evtNamespace&&m.evtNamespace()),re._addHook(Fr(f,function(I){var P=I.cfg,L=mt(null,P,m);n=L.getExtCfg(re[Rc],Ox),Se=Ws(n[id],n[od]),ne=!n[wS]&&Bl(),F=n[OS],C(m),v=n[mm],c=n.immediateEventLimit,w=n[gm],G=n.maxEventRetryAttempts,Z=n.maxUnloadEventRetryAttempts,k=n[YS],vt(P.endpointUrl)?re.pause():s&&re[js](),ee(),A=n[LS],_e=!!n[US],ue&&$();var z=P.disablePageUnloadEvents||[];ue=_c(lt,z,fe),ue=Ys(lt,z,fe)||ue,ue=Ls(vr,P.disablePageShowEvents,fe)||ue})),T[Sa](f,re.core,re)}catch(I){throw re.setInitialized(!1),I}},function(){return{theConfig:f,core:m,extensions:S}})},re.processTelemetry=function(f,m){Sc(f,re[Rc]),m=m||re._getTelCtx(m);var S=f;!_e&&!i&&(A&&(S[Vt]=A),jr(S,!0),V?b(2,2):Be()),re.processNext(S,m)},re.getOfflineSupport=function(){try{var f=T&&T[ud]();if(T)return{getUrl:function(){return f?f.url:null},serialize:We,batch:Oe,shouldProcess:function(m){return!_e},createPayload:function(m){return null},createOneDSPayload:function(m){if(T[xc])return T[xc](m,ne)}}}catch{}return null},re._doTeardown=function(f,m){b(2,2),i=!0,T.teardown(),$(),Ue()};function $(){pc(null,fe),mc(null,fe),gc(null,fe)}function C(f){var m=f[zs];f[zs]=function(){var S=0;return F&&(S=S|2),S|m.call(f)}}function Oe(f){var m=eN;return f&&f[Ae]&&R(f,function(S){m&&(m+=`
5
+ `),m+=S}),m}function We(f){var m=eN;try{Kt(f),m=T[sd](f)}catch{}return m}function lt(f){var m=f||Nr().event;m.type!=="beforeunload"&&(V=!0,T[Cc](V)),b(2,2)}function vr(f){V=!1,T[Cc](V)}function Kt(f){f.ext&&f.ext[om]&&delete f.ext[om],f.ext&&f.ext[Ql]&&f.ext[Ql].id&&delete f.ext[Ql].id,ne&&(f.ext=Ot(f.ext),f[Ed]&&(f[Ed]=Ot(f[Ed])),f[Vs]&&(f[Vs]=Ot(f[Vs])))}function jr(f,m){if(f[wc]||(f[wc]=0),f[po]||(f[po]=1),Kt(f),f[Na]){if(E||s)f[po]=3,f[Na]=!1;else if(T){ne&&(f=Ot(f)),T[ld](mo.create(f[Vt],[f]),f[Na]===!0?1:f[Na],3);return}}var S=f[po],I=l,P=v;S===4&&(I=u,P=c);var L=!1;if(I<P)L=!oe(f,m);else{var z=1,pe=Px;S===4&&(z=4,pe=1),L=!0,we(f[Vt],f[po],z,pe)&&(L=!oe(f,m))}L&&ni(Ia,[f],vn.QueueFull)}re.setEventQueueLimits=function(f,m){n[mm]=v=_o(f)?f:Dm,n[gm]=w=_o(m)?m:0,ee();var S=l>f;if(!S&&U>0)for(var I=1;!S&&I<=3;I++){var P=y[I];P&&P[ot]&&R(P[ot],function(L){L&&L[dr]()>=U&&(S=!0)})}X(!0,S)},re.pause=function(){Ve(),s=!0,T&&T.pause()},re[js]=function(){s=!1,T&&T[js](),Be()},re._loadTransmitProfiles=function(f){rt(),ae(f,function(m,S){var I=S[Ae];if(I>=2){var P=I>2?S[2]:0;if(S[Ea](0,I-2),S[1]<0&&(S[0]=-1),S[1]>0&&S[0]>0){var L=S[0]/S[1];S[0]=Math.ceil(L)*S[1]}P>=0&&S[1]>=0&&P>S[1]&&(P=S[1]),S[wr](P),_[m]=S}})},re.flush=function(f,m,S){f===void 0&&(f=!0);var I;if(!s)if(S=S||1,f)m||(I=Qt(function(L){m=L})),a==null?(Ve(),Fe(1,0,S),a=Xe(function(){a=null,Je(m,S)},0)):o[wr](m);else{var P=Ve();Ar(1,1,S),m&&m(),P&&Be()}return I},re.setMsaAuthTicket=function(f){T[Ac](Tc,f)},re.setAuthPluginHeader=function(f){T[Ac](nm,f)},re.removeAuthPluginHeader=function(){T.removeHeader(nm)},re.hasEvents=dt,re._setTransmitProfile=function(f){g!==f&&_[f]!==void 0&&(Ve(),g=f,Be())},jt(re,function(){return T},["addResponseHandler"]);function Ar(f,m,S){var I=Fe(f,m,S);return T[Bs](m,S),I}function dt(){return l>0}function Be(){if(j>=0&&Fe(j,0,W)&&T[Bs](0,W),u>0&&!N&&!s){var f=_[g][2];f>=0&&(N=Xe(function(){N=null,Ar(4,0,1),Be()},f))}var m=_[g][1];!p&&!a&&m>=0&&!s&&(dt()?p=Xe(function(){p=null,Ar(x===0?3:1,0,1),x++,x%=2,Be()},m):x=0)}re[gd]=function(){E<Rx&&(E++,Ve(),Be())},re._clearBackOff=function(){E&&(E=0,Ve(),Be())};function Ue(){n=null,i=!1,o=[],a=null,s=!1,u=0,c=500,l=0,v=Dm,_={},g=ga,p=null,N=null,E=0,x=0,y={},w=0,ue=!1,U=0,j=-1,W=null,ne=!0,V=!1,G=rN,Z=tN,fe=null,A=null,_e=!1,Se=Ws(),T=new XS(QS,ZS,wx,{requeue:Wt,send:O,sent:M,drop:J,rspFail:de,oth:ye}),tt(),K(),ee()}function Xe(f,m){m===0&&E&&(m=1);var S=1e3;return E&&(S=Sd(E-1)),Se.set(f,m*S)}function Ve(){return p!==null?(p.cancel(),p=null,x=0,!0):!1}function b(f,m){Ve(),a&&(a.cancel(),a=null),s||Ar(1,f,m)}function K(){y[4]={batches:[],iKeyMap:{}},y[3]={batches:[],iKeyMap:{}},y[2]={batches:[],iKeyMap:{}},y[1]={batches:[],iKeyMap:{}}}function ie(f,m,S){var I=y[m];I||(m=1,I=y[m]);var P=I.iKeyMap[f];return!P&&S&&(P=mo.create(f),I.batches[wr](P),I.iKeyMap[f]=P),P}function X(f,m){T[bc]()&&!E&&(w>0&&l>w&&(m=!0),m&&a==null&&re.flush(f,function(){},20))}function oe(f,m){ne&&(f=Ot(f));var S=f[po],I=ie(f[Vt],S,!0);return I.addEvent(f)?(S!==4?(l++,m&&f[wc]===0&&X(!f.sync,U>0&&I[dr]()>=U)):u++,!0):!1}function we(f,m,S,I){for(;S<=m;){var P=ie(f,m,!0);if(P&&P[dr]()>0){var L=P[qn](0,I),z=L[dr]();if(z>0)return S===4?u-=z:l-=z,h(Ia,[L],vn.QueueFull),!0}S++}return Pe(),!1}function Pe(){for(var f=0,m=0,S=function(P){var L=y[P];L&&L[ot]&&R(L[ot],function(z){P===4?f+=z[dr]():m+=z[dr]()})},I=1;I<=4;I++)S(I);l=m,u=f}function Fe(f,m,S){var I=!1,P=m===0;return!P||T[bc]()?lr(re.core,function(){return"PostChannel._queueBatches"},function(){for(var L=[],z=4;z>=f;){var pe=y[z];pe&&pe.batches&&pe.batches[Ae]>0&&(R(pe[ot],function(Re){T.addBatch(Re)?I=I||Re&&Re[dr]()>0:L=L[Wn](Re[$n]()),z===4?u-=Re[dr]():l-=Re[dr]()}),pe[ot]=[],pe.iKeyMap={}),z--}L[Ae]>0&&ni(Ia,L,vn.KillSwitch),I&&j>=f&&(j=-1,W=0)},function(){return{latency:f,sendType:m,sendReason:S}},!P):(j=j>=0?Math.min(j,f):f,W=Math.max(W,S)),I}function Je(f,m){Ar(1,0,m),Pe(),ar(function(){f&&f(),o[Ae]>0?a=Xe(function(){a=null,Je(o.shift(),m)},0):(a=null,Be())})}function ar(f){T[fd]()?f():a=Xe(function(){a=null,ar(f)},Cx)}function rt(){Ve(),tt(),g=ga,Be()}function tt(){_={},_[ga]=[2,1,0],_[zl]=[6,3,0],_[Vl]=[18,9,0]}function Wt(f,m){var S=[],I=G;V&&(I=Z),R(f,function(P){P&&P[dr]()>0&&R(P[$n](),function(L){L&&(L[Na]&&(L[po]=4,L[Na]=!1),L[wc]<I?(Sc(L,re[Rc]),jr(L,!1)):S[wr](L))})}),S[Ae]>0&&ni(Ia,S,vn.NonRetryableStatus),V&&b(2,2)}function Yr(f,m){var S=ve||{},I=S[f];if(I)try{I.apply(S,m)}catch(P){H(re.diagLog(),1,74,f+" notification failed: "+P)}}function ni(f,m){for(var S=[],I=2;I<arguments.length;I++)S[I-2]=arguments[I];m&&m[Ae]>0&&Yr(f,[m][Wn](S))}function h(f,m){for(var S=[],I=2;I<arguments.length;I++)S[I-2]=arguments[I];m&&m[Ae]>0&&R(m,function(P){P&&P[dr]()>0&&Yr(f,[P.events()][Wn](S))})}function O(f,m,S){f&&f[Ae]>0&&Yr("eventsSendRequest",[m>=1e3&&m<=1999?m-1e3:0,S!==!0])}function M(f,m){h("eventsSent",f,m),Be()}function J(f,m){h(Ia,f,m>=8e3&&m<=8999?m-8e3:vn.Unknown)}function de(f){h(Ia,f,vn.NonRetryableStatus),Be()}function ye(f,m){h(Ia,f,vn.Unknown),Be()}function ee(){k?U=0:U=Math.max(QS*(ZS+1),v/6)}}),t}return e.__ieDyn=1,e})(Ii)});var oN={};df(oN,{BE_PROFILE:()=>Vl,NRT_PROFILE:()=>zl,PostChannel:()=>nN,RT_PROFILE:()=>ga});var aN=Y(()=>{"use strict";d();Zp();iN()});var Oc,Yc,Dd,ya,Xn,at,In=Y(()=>{"use strict";d();Oc="sampleRate",Yc="ProcessLegacy",Dd="http.method",ya="https://dc.services.visualstudio.com",Xn="/v2/track",at="not_specified"});var Id,uN=Y(()=>{"use strict";d();$e();Id=h_({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 xa,be,Aa,go,Ci,qs,Im,st,Pi,cN,Lc,Uc,ba,tn,Qr,ut,Ca,Jn,Pa,yd,xd,ym,Ra,Eo,Mc,Fc,wa,Xs,Oa,xm,ct=Y(()=>{"use strict";d();xa="split",be="length",Aa="toLowerCase",go="ingestionendpoint",Ci="toString",qs="push",Im="removeItem",st="name",Pi="message",cN="count",Lc="stringify",Uc="pathname",ba="exceptions",tn="parsedStack",Qr="properties",ut="measurements",Ca="sizeInBytes",Jn="typeName",Pa="severityLevel",yd="problemGroup",xd="isManual",ym="CreateFromInterface",Ra="assembly",Eo="fileName",Mc="hasFullStack",Fc="level",wa="method",Xs="line",Oa="duration",xm="receivedResponse"});function Am(r,e,t){var n=e[be],i=fN(r,e);if(i[be]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Cr(i,0,147)+lN(o);i=a}return i}function fN(r,e){var t;return e&&(e=ke(_r(e)),e[be]>150&&(t=Cr(e,0,150),H(r,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),t||e}function Ke(r,e,t){t===void 0&&(t=1024);var n;return e&&(t=t||1024,e=ke(_r(e)),e[be]>t&&(n=Cr(e,0,t),H(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),n||e}function Ya(r,e){return Pm(r,e,2048,66)}function kc(r,e){var t;return e&&e[be]>32768&&(t=Cr(e,0,32768),H(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function bm(r,e){var t;if(e){var n=""+e;n[be]>32768&&(t=Cr(n,0,32768),H(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function gt(r,e){if(e){var t={};ae(e,function(n,i){if(nr(i)&&kn())try{i=Xr()[Lc](i)}catch(o){H(r,2,49,"custom property is not valid",{exception:o},!0)}i=Ke(r,i,8192),n=Am(r,n,t),t[n]=i}),e=t}return e}function Et(r,e){if(e){var t={};ae(e,function(n,i){n=Am(r,n,t),t[n]=i}),e=t}return e}function Cm(r,e){return e&&Pm(r,e,128,69)[Ci]()}function Pm(r,e,t,n){var i;return e&&(e=ke(_r(e)),e[be]>t&&(i=Cr(e,0,t),H(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function lN(r){var e="00"+r;return wn(e,e[be]-3)}var yn=Y(()=>{"use strict";d();$e();he();ct()});function _N(r){var e=vN,t=Ux,n=t[e];return dN.createElement?t[e]||(n=t[e]=dN.createElement("a")):n={host:Mx(r,!0)},n.href=r,e++,e>=t[be]&&(e=0),vN=e,n}function Mx(r,e){var t=pN(r,e)||"";if(t){var n=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[be]>3&&Ne(n[2])&&n[2][be]>0)return n[2]+(n[3]||"")}return t}function pN(r,e){var t=null;if(r){var n=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[be]>2&&Ne(n[2])&&n[2][be]>0&&(t=n[2]||"",e&&n[be]>2)){var i=(n[1]||"")[Aa](),o=n[3]||"";(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=""),t+=o}}return t}var dN,vN,Ux,mN=Y(()=>{"use strict";d();$e();ct();dN=Sr()||{},vN=0,Ux=[null,null,null,null,null]});function Ad(r){return Me(Fx,r[Aa]())!==-1}function gN(r,e,t,n){var i,o=n,a=n;if(e&&e[be]>0){var s=_N(e);if(i=s.host,!o)if(s[Uc]!=null){var u=s.pathname[be]===0?"/":s[Uc];u.charAt(0)!=="/"&&(u="/"+u),a=s[Uc],o=Ke(r,t?t+" "+u:u)}else o=Ke(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}var Fx,Rm=Y(()=>{"use strict";d();$e();In();yn();mN();ct();Fx=[ya+Xn,"https://breeze.aimon.applicationinsights.io"+Xn,"https://dc-int.services.visualstudio.com"+Xn]});var bd,lL,dL,EN=Y(()=>{"use strict";d();$e();bd=fr({LocalStorage:0,SessionStorage:1}),lL=fr({AI:0,AI_AND_W3C:1,W3C:2}),dL=fr({Normal:1,Critical:2})});function SN(r){try{if(B(_t()))return null;var e=new Date()[Ci](),t=le(r===bd.LocalStorage?"localStorage":"sessionStorage"),n=hN+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[Im](n),!i)return t}catch{}return null}function wm(){return Cd()?SN(bd.SessionStorage):null}function Om(r){hN=r||""}function Cd(r){return(r||Js===void 0)&&(Js=!!SN(bd.SessionStorage)),Js}function Ym(r,e){var t=wm();if(t!==null)try{return t.getItem(e)}catch(n){Js=!1,H(r,2,2,"Browser failed read of session storage. "+or(n),{exception:te(n)})}return null}function Lm(r,e,t){var n=wm();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Js=!1,H(r,2,4,"Browser failed write to session storage. "+or(i),{exception:te(i)})}return!1}function Um(r,e){var t=wm();if(t!==null)try{return t[Im](e),!0}catch(n){Js=!1,H(r,2,6,"Browser failed removal of session storage item. "+or(n),{exception:te(n)})}return!1}var Js,hN,NN=Y(()=>{"use strict";d();$e();EN();ct();Js=void 0,hN=""});function Hc(r){if(!r)return{};var e=r[xa](kx),t=bu(e,function(i,o){var a=o[xa](Hx);if(a[be]===2){var s=a[0][Aa](),u=a[1];i[s]=u}return i},{});if($r(t)[be]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[go]=t[go]||"https://"+n+"dc."+t.endpointsuffix}t[go]=t[go]||ya,jo(t[go],"/")&&(t[go]=t[go].slice(0,-1))}return t}var kx,Hx,TN=Y(()=>{"use strict";d();$e();In();ct();kx=";",Hx="="});var Mm,DN=Y(()=>{"use strict";d();$e();In();ct();yn();Mm=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[st]=Ke(e,n)||at,o.data=t,o.time=hn(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 Ri,IN=Y(()=>{"use strict";d();In();ct();yn();Ri=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[st]=Ke(e,t)||at,o[Qr]=gt(e,n),o[ut]=Et(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})()});function Gm(r,e){var t=r;return t&&!Ne(t)&&(JSON&&JSON[Lc]?(t=JSON[Lc](r),e&&(!t||t==="{}")&&(se(r[Ci])?t=r[Ci]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function CN(r,e){var t=r;return r&&(t&&!Ne(t)&&(t=r[Hm]||r[bN]||t),t&&!Ne(t)&&(t=Gm(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&dn(t||"",e)===-1&&(t=e+": "+t),t||""}function Bx(r){try{if(nr(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function jx(r){try{if(nr(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function xN(r){return r&&r.src&&Ne(r.src)&&r.obj&&Q(r.obj)}function La(r){var e=r||"";Ne(e)||(Ne(e[Ut])?e=e[Ut]:e=""+e);var t=e[xa](`
6
6
  `);return{src:e,obj:t}}function zx(r){for(var e=[],t=r[xa](`
7
- `),n=0;n<t[be];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[qs](i)}return{src:r,obj:e}}function PN(r){var e=null;if(r)try{if(r[Ut])e=La(r[Ut]);else if(r[Qs]&&r[Qs][Ut])e=La(r[Qs][Ut]);else if(r.exception&&r.exception[Ut])e=La(r.exception[Ut]);else if(xN(r))e=r;else if(xN(r[km]))e=r[km];else if(Nr()&&Nr().opera&&r[Hm])e=zx(r[Pi]);else if(r.reason&&r.reason[Ut])e=La(r.reason[Ut]);else if(Ne(r))e=La(r);else{var t=r[Hm]||r[bN]||"";Ne(r[IN])&&(t&&(t+=`
8
- `),t+=" from "+r[IN]),t&&(e=La(t))}}catch(n){e=La(n)}return e||{src:"",obj:null}}function Vx(r){var e="";return r&&(r.obj?R(r.obj,function(t){e+=t+`
9
- `}):e=r.src||""),e}function Kx(r){var e,t=r.obj;if(t&&t[be]>0){e=[];var n=0,i=0;R(t,function(p){var N=p[Ci]();if(Bm.regex.test(N)){var E=new Bm(N,n++);i+=E[Ca],e[qs](E)}});var o=32*1024;if(i>o)for(var a=0,s=e[be]-1,u=0,c=a,l=s;a<s;){var v=e[a][Ca],_=e[s][Ca];if(u+=v+_,u>o){var g=l-c+1;e.splice(c,g);break}c=a,l=s,a++,s--}}return e}function Pd(r){var e="";if(r&&(e=r.typeName||r[st]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[Ci]());e=n&&n[be]>1?n[1]:""}catch{}return e}function Fm(r){if(r)try{if(!Ne(r)){var e=Pd(r),t=Gm(r,!1);return(!t||t==="{}")&&(r[Qs]&&(r=r[Qs],e=Pd(r)),t=Gm(r,!0)),dn(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var Gx,Qs,Ut,km,IN,Hm,bN,Ua,AN,Bm,RN=Y(()=>{"use strict";d();xt();$e();he();yn();ct();In();Gx="<no_method>",Qs="error",Ut="stack",km="stackDetails",IN="errorSrc",Hm="message",bN="description";Ua=(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,jx(t)?(s[ba]=t[ba]||[],s[Qr]=t[Qr],s[ut]=t[ut],t[Pa]&&(s[Pa]=t[Pa]),t.id&&(s.id=t.id,t[Qr].id=t.id),t[Id]&&(s[Id]=t[Id]),B(t[xd])||(s[xd]=t[xd])):(n||(n={}),a&&(n.id=a),s[ba]=[new AN(e,t,n)],s[Qr]=gt(e,n),s[ut]=Et(e,i),o&&(s[Pa]=o),a&&(s.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,s,u){var c,l=Pd(o||a||e);return c={},c[Pi]=CN(e,l),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=Fm(o||a||e),c.evt=Fm(a||e),c[Jn]=l,c.stackDetails=PN(s||o||a),c.errorSrc=u,c},r.CreateFromInterface=function(e,t,n,i){var o=t[ba]&&si(t[ba],function(s){return AN[Im](e,s)}),a=new r(e,Xt(Xt({},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,l=n instanceof Array&&si(n,function(v){return v.toInterface()})||void 0;return e={ver:"4.0"},e[ba]=l,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[Mc]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=Fm,r})(),AN=(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(Bx(t))i[Jn]=t[Jn],i[Pi]=t[Pi],i[Ut]=t[Ut],i[tn]=t[tn]||[],i[Mc]=t[Mc];else{var o=t,a=o&&o.evt;Fo(o)||(o=o[Qs]||a||o),i[Jn]=Ke(e,Pd(o))||at,i[Pi]=kc(e,CN(t||o,i[Jn]))||at;var s=t[km]||PN(t);i[tn]=Kx(s),Q(i[tn])&&si(i[tn],function(u){u[Ra]=Ke(e,u[Ra]),u[Eo]=Ke(e,u[Eo])}),i[Ut]=bm(e,Vx(s)),i.hasFullStack=Q(i.parsedStack)&&i.parsedStack[be]>0,n&&(n[Jn]=n[Jn]||i[Jn])}}return r.prototype.toInterface=function(){var e,t=this,n=t[tn]instanceof Array&&si(t[tn],function(o){return o.toInterface()}),i=(e={id:t.id,outerId:t.outerId,typeName:t[Jn],message:t[Pi],hasFullStack:t[Mc],stack:t[Ut]},e[tn]=n||void 0,e);return i},r.CreateFromInterface=function(e,t){var n=t[tn]instanceof Array&&si(t[tn],function(o){return Bm[Im](o)})||t[tn],i=new r(e,Xt(Xt({},t),{parsedStack:n}));return i},r})(),Bm=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n=this;if(n[Ca]=0,typeof e=="string"){var i=e;n[Fc]=t,n[wa]=Gx,n[Ra]=ke(i),n[Eo]="",n[Xs]=0;var o=i.match(r.regex);o&&o[be]>=5&&(n[wa]=ke(o[2])||n[wa],n[Eo]=ke(o[4]),n[Xs]=parseInt(o[5])||0)}else n[Fc]=e[Fc],n[wa]=e[wa],n[Ra]=e[Ra],n[Eo]=e[Eo],n[Xs]=e[Xs],n[Ca]=0;n.sizeInBytes+=n.method[be],n.sizeInBytes+=n.fileName[be],n.sizeInBytes+=n.assembly[be],n[Ca]+=r.baseSize,n.sizeInBytes+=n.level.toString()[be],n.sizeInBytes+=n.line.toString()[be]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){var e=this;return{level:e[Fc],method:e[wa],assembly:e[Ra],fileName:e[Eo],line:e[Xs]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})()});var wN,ON=Y(()=>{"use strict";d();wN=(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 wi,YN=Y(()=>{"use strict";d();yn();ct();ON();In();wi=(function(){function r(e,t,n,i,o,a,s,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var v=new wN;v[cN]=i>0?i:void 0,v.max=isNaN(a)||a===null?void 0:a,v.min=isNaN(o)||o===null?void 0:o,v[st]=Ke(e,t)||at,v.value=n,v.stdDev=isNaN(s)||s===null?void 0:s,l.metrics=[v],l[Qr]=gt(e,u),l[ut]=Et(e,c)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})()});function Rd(r){(isNaN(r)||r<0)&&(r=0),r=Math.round(r);var e=Gc+r%1e3,t=Gc+Math.floor(r/1e3)%60,n=Gc+Math.floor(r/(1e3*60))%60,i=Gc+Math.floor(r/(1e3*60*60))%24,o=Math.floor(r/(1e3*60*60*24));return e=e[be]===1?"00"+e:e[be]===2?"0"+e:e,t=t[be]<2?"0"+t:t,n=n[be]<2?"0"+n:n,i=i[be]<2?"0"+i:i,(o>0?o+".":Gc)+i+":"+n+":"+t+"."+e}var Gc,jm=Y(()=>{"use strict";d();ct();Gc=""});var Ma,LN=Y(()=>{"use strict";d();yn();jm();ct();In();Ma=(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=Cm(e,s),u.url=Ya(e,n),u[st]=Ke(e,t)||at,isNaN(i)||(u[Oa]=Rd(i)),u[Qr]=gt(e,o),u[ut]=Et(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})()});var Fa,UN=Y(()=>{"use strict";d();jm();Rm();ct();In();Fa=(function(){function r(e,t,n,i,o,a,s,u,c,l,v,_){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 g=this;g.ver=2,g.id=t,g[Oa]=Rd(o),g.success=a,g.resultCode=s+"",g.type=Ke(e,c);var p=gN(e,n,u,i);g.data=Ya(e,i)||p.data,g.target=Ke(e,p.target),l&&(g.target="".concat(g.target," | ").concat(l)),g[st]=Ke(e,p[st]),g[Qr]=gt(e,v),g[ut]=Et(e,_)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})()});var ka,MN=Y(()=>{"use strict";d();yn();ct();In();ka=(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||at,a[Pi]=kc(e,t),a[Qr]=gt(e,i),a[ut]=Et(e,o),n&&(a[Pa]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})()});var Ha,FN=Y(()=>{"use strict";d();yn();ct();In();Ha=(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=Ya(e,n),u[st]=Ke(e,t)||at,u[Qr]=gt(e,o),u[ut]=Et(e,a),s&&(u.domProcessing=s.domProcessing,u[Oa]=s[Oa],u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u[xm]=s[xm],u.sentRequest=s.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})()});var Oi,kN=Y(()=>{"use strict";d();Oi=(function(){function r(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return r})()});var zm,HN=Y(()=>{"use strict";d();$e();zm=fr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})});function So(r){var e="ai."+r+".";return function(t){return e+t}}var Bc,Or,wd,Zs,Vm,ho,Ga,jc,zc,Km=Y(()=>{"use strict";d();xt();$e();Bc=So("application"),Or=So("device"),wd=So("location"),Zs=So("operation"),Vm=So("session"),ho=So("user"),Ga=So("cloud"),jc=So("internal"),zc=(function(r){It(e,r);function e(){return r.call(this)||this}return e})(H_({applicationVersion:Bc("ver"),applicationBuild:Bc("build"),applicationTypeId:Bc("typeId"),applicationId:Bc("applicationId"),applicationLayer:Bc("layer"),deviceId:Or("id"),deviceIp:Or("ip"),deviceLanguage:Or("language"),deviceLocale:Or("locale"),deviceModel:Or("model"),deviceFriendlyName:Or("friendlyName"),deviceNetwork:Or("network"),deviceNetworkName:Or("networkName"),deviceOEMName:Or("oemName"),deviceOS:Or("os"),deviceOSVersion:Or("osVersion"),deviceRoleInstance:Or("roleInstance"),deviceRoleName:Or("roleName"),deviceScreenResolution:Or("screenResolution"),deviceType:Or("type"),deviceMachineName:Or("machineName"),deviceVMName:Or("vmName"),deviceBrowser:Or("browser"),deviceBrowserVersion:Or("browserVersion"),locationIp:wd("ip"),locationCountry:wd("country"),locationProvince:wd("province"),locationCity:wd("city"),operationId:Zs("id"),operationName:Zs("name"),operationParentId:Zs("parentId"),operationRootId:Zs("rootId"),operationSyntheticSource:Zs("syntheticSource"),operationCorrelationVector:Zs("correlationVector"),sessionId:Vm("id"),sessionIsFirst:Vm("isFirst"),sessionIsNew:Vm("isNew"),userAccountAcquisitionDate:ho("accountAcquisitionDate"),userAccountId:ho("accountId"),userAgent:ho("userAgent"),userId:ho("id"),userStoreRegion:ho("storeRegion"),userAuthUserId:ho("authUserId"),userAnonymousUserAcquisitionDate:ho("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ho("authUserAcquisitionDate"),cloudName:Ga("name"),cloudRole:Ga("role"),cloudRoleVer:Ga("roleVer"),cloudRoleInstance:Ga("roleInstance"),cloudEnvironment:Ga("environment"),cloudLocation:Ga("location"),cloudDeploymentUnit:Ga("deploymentUnit"),internalNodeName:jc("nodeName"),internalSdkVersion:jc("sdkVersion"),internalAgentVersion:jc("agentVersion"),internalSnippet:jc("snippet"),internalSdkSrc:jc("sdkSrc")}))});var yr,GN=Y(()=>{"use strict";d();Km();yr=new zc});function BN(r,e){xi(r,null,null,e)}function Wm(r){var e=Sr(),t=Pr(),n=!1,i=[],o=1;t&&!B(t.onLine)&&!t.onLine&&(o=2);var a=0,s=_(),u=zt(Jr("OfflineListener"),r);try{if(l(Nr())&&(n=!0),e){var c=e.body||e;c.ononline&&l(c)&&(n=!0)}}catch{n=!1}function l(I){var w=!1;return I&&(w=jn(I,"online",N,u),w&&jn(I,"offline",E,u)),w}function v(){return s}function _(){return!(a===2||o===2)}function g(){var I=_();s!==I&&(s=I,R(i,function(w){var U={isOnline:s,rState:o,uState:a};try{w(U)}catch{}}))}function p(I){a=I,g()}function N(){o=1,g()}function E(){o=2,g()}function x(){var I=Nr();if(I&&n){if(BN(I,u),e){var w=e.body||e;Te(w.ononline)||BN(w,u)}n=!1}}function T(I){return i[qs](I),{rm:function(){var w=i.indexOf(I);if(w>-1)return i.splice(w,1)}}}return{isOnline:v,isListening:function(){return n},unload:x,addListener:T,setOnlineState:p}}var jN=Y(()=>{"use strict";d();$e();ct()});var Od,Yi=Y(()=>{"use strict";d();Rm();TN();uN();yn();DN();yN();RN();YN();LN();UN();MN();FN();kN();HN();Km();In();GN();NN();jN();Od="AppInsightsChannelPlugin"});var No,zN=Y(()=>{"use strict";d();No="duration"});var Ir,Yd,Zr,Qn,ja,De,To,Do,nn,yo,Li,eu,Ui,Mi,Ld,on,ru,Vc,Io,Kc,tu,za,Wc,Ud,Fi,xo,nu,iu,et,Md,ou,au,su,Fd,$m,kd,Hd,qm,Gd,Xm,ki,Jm,Qm,Zm,$c,eg,rg,tg,uu,Ao,Bd,qc,jd,zd,Vd,Kd,cu,ng,Wd,VN,bo=Y(()=>{"use strict";d();Ir="tags",Yd="deviceType",Zr="data",Qn="name",ja="traceID",De="length",To="stringify",Do="measurements",nn="dataType",yo="envelopeType",Li="toString",eu="_get",Ui="enqueue",Mi="count",Ld="eventsLimitInMem",on="push",ru="item",Vc="emitLineDelimitedJson",Io="clear",Kc="createNew",tu="markAsSent",za="clearSent",Wc="bufferOverride",Ud="BUFFER_KEY",Fi="SENT_BUFFER_KEY",xo="concat",nu="MAX_BUFFER_SIZE",iu="triggerSend",et="diagLog",Md="initialize",ou="_sender",au="endpointUrl",su="instrumentationKey",Fd="customHeaders",$m="maxBatchSizeInBytes",kd="onunloadDisableBeacon",Hd="isBeaconApiDisabled",qm="alwaysUseXhrOverride",Gd="disableXhr",Xm="enableSessionStorageBuffer",ki="_buffer",Jm="onunloadDisableFetch",Qm="disableSendBeaconSplit",Zm="enableSendPromise",$c="getSenderInst",eg="unloadTransports",rg="convertUndefined",tg="maxBatchInterval",uu="serialize",Ao="_onError",Bd="_onPartialSuccess",qc="_onSuccess",jd="itemsReceived",zd="itemsAccepted",Vd="oriPayload",Kd="baseType",cu="sampleRate",ng="eventsSendRequest",Wd="getSamplingScore",VN="getHashCodeScore"});function gr(r,e,t){return Zt(r,e,t,cn)}function Wx(r,e,t){var n=t[Ir]=t[Ir]||{},i=e.ext=e.ext||{},o=e[Ir]=e[Ir]||[],a=i.user;a&&(gr(n,yr.userAuthUserId,a.authId),gr(n,yr.userId,a.id||a.localId));var s=i.app;s&&gr(n,yr.sessionId,s.sesId);var u=i.device;u&&(gr(n,yr.deviceId,u.id||u.localId),gr(n,yr[Yd],u.deviceClass),gr(n,yr.deviceIp,u.ip),gr(n,yr.deviceModel,u.model),gr(n,yr[Yd],u[Yd]));var c=e.ext.web;if(c){gr(n,yr.deviceLanguage,c.browserLang),gr(n,yr.deviceBrowserVersion,c.browserVer),gr(n,yr.deviceBrowser,c.browser);var l=t[Zr]=t[Zr]||{},v=l[er]=l[er]||{},_=v[Hr]=v[Hr]||{};gr(_,"domain",c.domain),gr(_,"isManual",c.isManual?KN:null),gr(_,"screenRes",c.screenRes),gr(_,"userConsent",c.userConsent?KN:null)}var g=i.os;g&&(gr(n,yr.deviceOS,g[Qn]),gr(n,yr.deviceOSVersion,g.osVer));var p=i.trace;p&&(gr(n,yr.operationParentId,p.parentID),gr(n,yr.operationName,Ke(r,p[Qn])),gr(n,yr.operationId,p[ja]));for(var N={},E=o[De]-1;E>=0;E--){var x=o[E];ae(x,function(I,w){N[I]=w}),o.splice(E,1)}ae(o,function(I,w){N[I]=w});var T=Xt(Xt({},n),N);T[yr.internalSdkVersion]||(T[yr.internalSdkVersion]=Ke(r,"javascript:".concat($x.Version),64)),t[Ir]=Ot(T)}function Co(r,e,t){B(r)||ae(r,function(n,i){Wr(i)?t[n]=i:Ne(i)?e[n]=i:kn()&&(e[n]=Xr()[To](i))})}function Va(r,e){B(r)||ae(r,function(t,n){r[t]=n||e})}function Ka(r,e,t,n){var i=new Mm(r,n,e);gr(i,"sampleRate",t[Oc]),(t[er]||{}).startTime&&(i.time=hn(t[er].startTime)),i.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return i[Qn]=i[Qn].replace("{0}",o),Wx(r,t,i),t[Ir]=t[Ir]||[],Ot(i)}function Wa(r,e){B(e[er])&&H(r,1,46,"telemetryItem.baseData cannot be null.")}function WN(r,e,t){Wa(r,e);var n=e[er][Do]||{},i=e[er][Hr]||{};Co(e[Zr],i,n),B(t)||Va(i,t);var o=e[er];if(B(o))return pt(r,"Invalid input for dependency data"),null;var a=o[Hr]&&o[Hr][Dd]?o[Hr][Dd]:"GET",s=new Fa(r,o.id,o.target,o[Qn],o[No],o.success,o.responseCode,a,o.type,o.correlationContext,i,n),u=new Oi(Fa[nn],s);return Ka(r,Fa[yo],e,u)}function og(r,e,t){Wa(r,e);var n={},i={};e[ig]!==Ri[nn]&&(n.baseTypeSource=e[ig]),e[ig]===Ri[nn]?(n=e[er][Hr]||{},i=e[er][Do]||{}):e[er]&&Co(e[er],n,i),Co(e[Zr],n,i),B(t)||Va(n,t);var o=e[er][Qn],a=new Ri(r,o,n,i),s=new Oi(Ri[nn],a);return Ka(r,Ri[yo],e,s)}function $N(r,e,t){Wa(r,e);var n=e[er][Do]||{},i=e[er][Hr]||{};Co(e[Zr],i,n),B(t)||Va(i,t);var o=e[er],a=Ua.CreateFromInterface(r,o,i,n),s=new Oi(Ua[nn],a);return Ka(r,Ua[yo],e,s)}function qN(r,e,t){Wa(r,e);var n=e[er],i=n[Hr]||{},o=n[Do]||{};Co(e[Zr],i,o),B(t)||Va(i,t);var a=new wi(r,n[Qn],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),s=new Oi(wi[nn],a);return Ka(r,wi[yo],e,s)}function XN(r,e,t){Wa(r,e);var n,i=e[er];!B(i)&&!B(i[Hr])&&!B(i[Hr][No])?(n=i[Hr][No],delete i[Hr][No]):!B(e[Zr])&&!B(e[Zr][No])&&(n=e[Zr][No],delete e[Zr][No]);var o=e[er],a;((e.ext||{}).trace||{})[ja]&&(a=e.ext.trace[ja]);var s=o.id||a,u=o[Qn],c=o.uri,l=o[Hr]||{},v=o[Do]||{};if(B(o.refUri)||(l.refUri=o.refUri),B(o.pageType)||(l.pageType=o.pageType),B(o.isLoggedIn)||(l.isLoggedIn=o.isLoggedIn[Li]()),!B(o[Hr])){var _=o[Hr];ae(_,function(N,E){l[N]=E})}Co(e[Zr],l,v),B(t)||Va(l,t);var g=new Ma(r,u,c,n,l,v,s),p=new Oi(Ma[nn],g);return Ka(r,Ma[yo],e,p)}function JN(r,e,t){Wa(r,e);var n=e[er],i=n[Qn],o=n.uri||n.url,a=n[Hr]||{},s=n[Do]||{};Co(e[Zr],a,s),B(t)||Va(a,t);var u=new Ha(r,i,o,void 0,a,s,n),c=new Oi(Ha[nn],u);return Ka(r,Ha[yo],e,c)}function QN(r,e,t){Wa(r,e);var n=e[er].message,i=e[er].severityLevel,o=e[er][Hr]||{},a=e[er][Do]||{};Co(e[Zr],o,a),B(t)||Va(o,t);var s=new ka(r,n,i,o,a),u=new Oi(ka[nn],s);return Ka(r,ka[yo],e,u)}var ig,er,Hr,KN,$x,ZN=Y(()=>{"use strict";d();xt();Yi();$e();zN();bo();ig="baseType",er="baseData",Hr="properties",KN="true";$x={Version:"3.3.4"}});var eT,$d,qx,ag,rT=Y(()=>{"use strict";d();xt();Ur();Yi();$e();bo();eT=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[eu]=function(){return n},this._set=function(a){return n=a,n},Ce(r,this,function(a){a[Ui]=function(s){if(a[Mi]()>=t[Ld]){i||(H(e,2,105,"Maximum in-memory buffer size reached: "+a[Mi](),!0),i=!0);return}s.cnt=s.cnt||0,!(!B(o)&&s.cnt>o)&&n[on](s)},a[Mi]=function(){return n[De]},a.size=function(){for(var s=n[De],u=0;u<n[De];u++)s+=n[u].item[De];return t[Vc]||(s+=2),s},a[Io]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(s){if(s&&s[De]>0){var u=[];R(s,function(l){u[on](l[ru])});var c=t[Vc]?u.join(`
10
- `):"["+u.join(",")+"]";return c}return null},a[Kc]=function(s,u,c){var l=n.slice(0);s=s||e,u=u||{};var v=c?new ag(s,u):new $d(s,u);return R(l,function(_){v[Ui](_)}),v}})}return r.__ieDyn=1,r})(),$d=(function(r){It(e,r);function e(t,n){var i=r.call(this,t,n)||this;return Ce(e,i,function(o,a){o[tu]=function(s){a[Io]()},o[za]=function(s){}}),i}return e.__ieDyn=1,e})(eT),qx=["AI_buffer","AI_sentBuffer"],ag=(function(r){It(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[Wc]||{getItem:Ym,setItem:Lm},c=u.getItem,l=u.setItem,v=i.maxRetryCnt;return Ce(e,o,function(_,g){var p=w(e[Ud]),N=w(e[Fi]),E=W(),x=N[xo](E),T=_._set(p[xo](x));T[De]>e[nu]&&(T[De]=e[nu]),j(e[Fi],[]),j(e[Ud],T),_[Ui]=function(V){if(_[Mi]()>=e[nu]){a||(H(n,2,67,"Maximum buffer size reached: "+_[Mi](),!0),a=!0);return}V.cnt=V.cnt||0,!(!B(v)&&V.cnt>v)&&(g[Ui](V),j(e.BUFFER_KEY,_[eu]()))},_[Io]=function(){g[Io](),j(e.BUFFER_KEY,_[eu]()),j(e[Fi],[]),a=!1},_[tu]=function(V){j(e[Ud],_._set(I(V,_[eu]())));var G=w(e[Fi]);G instanceof Array&&V instanceof Array&&(G=G[xo](V),G[De]>e[nu]&&(H(n,1,67,"Sent buffer reached its maximum size: "+G[De],!0),G[De]=e[nu]),j(e[Fi],G))},_[za]=function(V){var G=w(e[Fi]);G=I(V,G),j(e[Fi],G)},_[Kc]=function(V,G,Z){Z=!!Z;var fe=_[eu]().slice(0),Se=w(e[Fi]).slice(0);V=V||n,G=G||{},_[Io]();var F=Z?new e(V,G):new $d(V,G);return R(fe,function(k){F[Ui](k)}),Z&&F[tu](Se),F};function I(V,G){var Z=[],fe=[];return R(V,function(Se){fe[on](Se[ru])}),R(G,function(Se){!se(Se)&&Me(fe,Se[ru])===-1&&Z[on](Se)}),Z}function w(V){var G=V;return G=s?s+"_"+G:G,U(G)}function U(V){try{var G=c(n,V);if(G){var Z=Xr().parse(G);if(Ne(Z)&&(Z=Xr().parse(Z)),Z&&Q(Z))return Z}}catch(fe){H(n,1,42," storage key: "+V+", "+or(fe),{exception:te(fe)})}return[]}function j(V,G){var Z=V;try{Z=s?s+"_"+Z:Z;var fe=JSON[To](G);l(n,Z,fe)}catch(Se){l(n,Z,JSON[To]([])),H(n,2,41," storage key: "+Z+", "+or(Se)+". Buffer cleared",{exception:te(Se)})}}function W(){var V=[];try{return R(qx,function(G){var Z=ne(G);if(V=V[xo](Z),s){var fe=s+"_"+G,Se=ne(fe);V=V[xo](Se)}}),V}catch(G){H(n,2,41,"Transfer events from previous buffers: "+or(G)+". previous Buffer items can not be removed",{exception:te(G)})}return[]}function ne(V){try{var G=U(V),Z=[];return R(G,function(fe){var Se={item:fe,cnt:0};Z[on](Se)}),Um(n,V),Z}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})(eT)});var tT,nT=Y(()=>{"use strict";d();Ur();$e();bo();tT=(function(){function r(e){Ce(r,this,function(t){t[uu]=function(a){var s=n(a,"root");try{return Xr()[To](s)}catch(u){H(e,1,48,u&&se(u[Li])?u[Li]():"Error serializing object",null,!0)}};function n(a,s){var u="__aiCircularRefCheck",c={};if(!a)return H(e,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),c;if(a[u])return H(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(Q(a))c=i(a,s);else{H(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Xr()[To](a),c=a}catch(l){H(e,1,48,l&&se(l[Li])?l[Li]():"Error serializing object",null,!0)}}return c}return a[u]=!0,ae(a.aiDataContract,function(l,v){var _=se(v)?v()&1:v&1,g=se(v)?v()&4:v&4,p=v&2,N=a[l]!==void 0,E=nr(a[l])&&a[l]!==null;if(_&&!N&&!p)H(e,1,24,"Missing required field specification. The field is required but not present on source",{field:l,name:s});else if(!g){var x=void 0;E?p?x=i(a[l],l):x=n(a[l],l):x=a[l],x!==void 0&&(c[l]=x)}}),delete a[u],c}function i(a,s){var u;if(a)if(!Q(a))H(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
11
- `,{name:s},!0);else{u=[];for(var c=0;c<a[De];c++){var l=a[c],v=n(l,s+"["+c+"]");u[on](v)}}return u}function o(a,s,u){var c;return a&&(c={},ae(a,function(l,v){if(s==="string")v===void 0?c[l]="undefined":v===null?c[l]="null":v[Li]?c[l]=v[Li]():c[l]="invalid field: toString() is not defined.";else if(s==="number")if(v===void 0)c[l]="undefined";else if(v===null)c[l]="null";else{var _=parseFloat(v);c[l]=_}else c[l]="invalid field: "+u+" is of unknown type.",H(e,1,c[l],null,!0)})),c}})}return r.__ieDyn=1,r})()});var Xx,iT,oT=Y(()=>{"use strict";d();bo();Xx=8,iT=(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[De]<Xx;)e=e[xo](e);for(var t=5381,n=0;n<e[De];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var aT,sT=Y(()=>{"use strict";d();Yi();bo();oT();aT=(function(){function r(){var e=this,t=new iT,n=new zc;e[Wd]=function(i){var o=0;return i[Ir]&&i[Ir][n.userId]?o=t.getHashCodeScore(i[Ir][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[VN](i.ext.user.id):i[Ir]&&i[Ir][n.operationId]?o=t.getHashCodeScore(i[Ir][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[ja]?o=t.getHashCodeScore(i.ext.telemetryTrace[ja]):o=Math.random()*100,o}}return r})()});var uT,cT=Y(()=>{"use strict";d();Yi();$e();bo();sT();uT=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Si(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[cu]=e,this.samplingScoreGenerator=new aT}return r.prototype.isSampledIn=function(e){var t=this[cu],n=!1;return t==null||t>=100||e.baseType===wi[nn]?!0:(n=this.samplingScoreGenerator[Wd](e)<t,n)},r})()});function lT(r){try{return r.responseText}catch{}return null}function Qx(r){return r&&r.sendPOST}function Zx(r){return!isNaN(r)&&r>0&&r<=100}var qe,Hi,Zn,fT,Jx,dT,eA,Xc,vT=Y(()=>{"use strict";d();xt();Ur();Yi();$e();he();ZN();rT();nT();cT();bo();Zn=void 0,fT="",Jx=65e3;dT=Rn((qe={endpointUrl:bs(cn,Ia+Xn)},qe[Vc]=rn(),qe[tg]=15e3,qe[$m]=102400,qe.disableTelemetry=rn(),qe[Xm]=rn(!0),qe.isRetryDisabled=rn(),qe[Hd]=rn(!0),qe[Qm]=rn(!0),qe[Gd]=rn(),qe[Jm]=rn(),qe[kd]=rn(),qe[su]=Zn,qe.namePrefix=Zn,qe.samplingPercentage=bs(Zx,100),qe[Fd]=Zn,qe[rg]=Zn,qe[Ld]=1e4,qe[Wc]=!1,qe.httpXHROverride={isVal:Qx,v:Zn},qe[qm]=rn(),qe.transports=Zn,qe.retryCodes=Zn,qe.maxRetryCnt={isVal:Wr,v:10},qe));eA=(Hi={},Hi[Ri.dataType]=og,Hi[ka.dataType]=QN,Hi[Ma.dataType]=XN,Hi[Ha.dataType]=JN,Hi[Ua.dataType]=$N,Hi[wi.dataType]=qN,Hi[Fa.dataType]=WN,Hi),Xc=(function(r){It(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=Od;var n,i,o,a,s,u,c,l,v=0,_,g,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e,re,ye,$;return Ce(e,t,function(C,Oe){ee(),C.pause=function(){O(),a=!0},C.resume=function(){a&&(a=!1,i=null,Pe(),h())},C.flush=function(f,m,S){if(f===void 0&&(f=!0),!a){O();try{return C[iu](f,null,S||1)}catch(y){H(C[et](),1,22,"flush failed, telemetry will not be collected: "+or(y),{exception:te(y)})}}},C.onunloadFlush=function(){if(!a)if(T||k)try{return C[iu](!0,ar,2)}catch(f){H(C[et](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+or(f),{exception:te(f)})}else C.flush(!1)},C.addHeader=function(f,m){l[f]=m},C[Md]=function(f,m,S,y){C.isInitialized()&&H(C[et](),1,28,"Sender is already initialized"),Oe[Md](f,m,S,y);var P=C.identifier;u=new tT(m.logger),n=0,i=null,o=0,C[ou]=null,c=0;var L=C[et]();p=zt(Jr("Sender"),m.evtNamespace&&m.evtNamespace()),g=Wm(p),C._addHook(Fr(f,function(z){var pe=z.cfg;pe.storagePrefix&&Om(pe.storagePrefix);var Re=mt(null,pe,m),ce=Re.getExtCfg(P,dT),St=ce[au];if(N&&St===N){var ii=pe[au];ii&&ii!==St&&(ce[au]=ii)}vt(ce[su])&&(ce[su]=pe[su]),Ye(C,"_senderConfig",{g:function(){return ce}}),E!==ce[au]&&(N=E=ce[au]),m.activeStatus()===Ft.PENDING?C.pause():m.activeStatus()===Ft.ACTIVE&&C.resume(),U&&U!==ce[Fd]&&R(U,function(zr){delete l[zr.header]}),x=ce[$m],T=(ce[kd]===!1||ce[Hd]===!1)&&en(),I=ce[kd]===!1&&en(),w=ce[Hd]===!1&&en(),k=ce[qm],ve=!!ce[Gd],$=ce.retryCodes;var Nt=ce[Wc],An=!!ce[Xm]&&(!!Nt||Cd()),uf=ce.namePrefix,tD=An!==Z||An&&Se!==uf||An&&fe!==Nt;if(C[ki]){if(tD)try{C._buffer=C._buffer[Kc](L,ce,An)}catch(zr){H(C[et](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+or(zr),{exception:te(zr)})}Pe()}else C[ki]=An?new ag(L,ce):new $d(L,ce);Se=uf,Z=An,fe=Nt,ue=!ce[Jm]&&gi(!0),re=!!ce[Qm],C._sample=new uT(ce.samplingPercentage,L),W=ce[su],!vt(W)&&!Ie(W,pe)&&H(L,1,100,"Invalid Instrumentation key "+W),U=ce[Fd],Ne(N)&&!Ad(N)&&U&&U[De]>0?R(U,function(zr){t.addHeader(zr.header,zr.value)}):U=null,F=ce[Zm];var Yg=lt();ye?ye.SetConfig(Yg):(ye=new va,ye[Md](Yg,L));var cf=ce.httpXHROverride,ff=null,gu=null,nD=pi([3,1,2],ce.transports);ff=ye&&ye[$c](nD,!1);var Iv=ye&&ye.getFallbackInst();A=function(zr,Yo){return X(Iv,zr,Yo)},_e=function(zr,Yo){return X(Iv,zr,Yo,!1)},ff=k?cf:ff||cf||Iv,C[ou]=function(zr,Yo){return X(ff,zr,Yo)},ue&&(_=Wt);var xv=pi([3,1],ce[eg]);ue||(xv=xv.filter(function(zr){return zr!==2})),gu=ye&&ye[$c](xv,!0),gu=k?cf:gu||cf,(k||ce[eg]||!_)&&gu&&(_=function(zr,Yo){return X(gu,zr,Yo)}),_||(_=A),j=ce.disableTelemetry,ne=ce[rg]||Zn,V=ce.isRetryDisabled,G=ce[tg]}))},C.processTelemetry=function(f,m){var S;m=C._getTelCtx(m);var y=m[et]();try{var P=Be(f,y);if(!P)return;var L=Ue(f,y);if(!L)return;var z=u[uu](L),pe=C[ki];Pe(z);var Re=(S={},S[ru]=z,S.cnt=0,S);pe[Ui](Re),h()}catch(ce){H(y,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+or(ce),{exception:te(ce)})}C.processNext(f,m)},C.isCompletelyIdle=function(){return!a&&v===0&&C._buffer[Mi]()===0},C.getOfflineListener=function(){return g},C._xhrReadyStateChange=function(f,m,S){if(!tt(m))return vr(f,m,S)},C[iu]=function(f,m,S){f===void 0&&(f=!0);var y;if(!a)try{var P=C[ki];if(j)P[Io]();else{if(P[Mi]()>0){var L=P.getItems();de(S||0,f),m?y=m.call(C,L,f):y=C[ou](L,f)}o=+new Date}O()}catch(pe){var z=Vu();(!z||z>9)&&H(C[et](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+or(pe),{exception:te(pe)})}return y},C.getOfflineSupport=function(){var f;return f={getUrl:function(){return N},createPayload:b},f[uu]=Xe,f.batch=Ve,f.shouldProcess=function(m){return!!Be(m)},f},C._doTeardown=function(f,m){C.onunloadFlush(),hi(g,!1),ee()},C[Ao]=function(f,m,S){if(!tt(f))return Kt(f,m,S)},C[Bd]=function(f,m){if(!tt(f))return jr(f,m)},C[qc]=function(f,m){if(!tt(f))return Ar(f,m)},C._xdrOnLoad=function(f,m){if(!tt(m))return We(f,m)};function We(f,m){var S=lT(f);if(f&&(S+""=="200"||S===""))n=0,C[qc](m,0);else{var y=da(S);y&&y[jd]&&y[jd]>y[zd]&&!V?C[Bd](m,y):C[Ao](m,na(f))}}function lt(){var f;try{var m={xdrOnComplete:function(y,P,L){var z=dt(L);if(z)return We(y,z)},fetchOnComplete:function(y,P,L,z){var pe=dt(z);if(pe)return Fe(y.status,pe,y.url,pe[De],y.statusText,L||"")},xhrOnComplete:function(y,P,L){var z=dt(L);if(z)return vr(y,z,z[De])},beaconOnRetry:function(y,P,L){return rt(y,P,L)}},S=(f={},f[Zm]=F,f.isOneDs=!1,f.disableCredentials=!1,f[Gd]=ve,f.disableBeacon=!w,f.disableBeaconSync=!I,f.senderOnCompleteCallBack=m,f);return S}catch{}return null}function vr(f,m,S){f.readyState===4&&Fe(f.status,m,f.responseURL,S,_i(f),lT(f)||f.response)}function Kt(f,m,S){H(C[et](),2,26,"Failed to send telemetry.",{message:m}),C._buffer&&C._buffer[za](f)}function jr(f,m){for(var S=[],y=[],P=m.errors.reverse(),L=0,z=P;L<z.length;L++){var pe=z[L],Re=f.splice(pe.index,1)[0];M(pe.statusCode)?y[on](Re):S[on](Re)}f[De]>0&&C[qc](f,m[zd]),S[De]>0&&C[Ao](S,_i(null,["partial success",m[zd],"of",m.itemsReceived].join(" "))),y[De]>0&&(Yr(y),H(C[et](),2,40,"Partial success. Delivered: "+f[De]+", Failed: "+S[De]+". Will retry to send "+y[De]+" our of "+m[jd]+" items"))}function Ar(f,m){C._buffer&&C._buffer[za](f)}function dt(f){try{if(f){var m=f,S=m[Vd];return S&&S[De]?S:null}}catch{}return null}function Be(f,m){if(j)return!1;if(!f)return m&&H(m,1,7,"Cannot send empty telemetry"),!1;if(f.baseData&&!f[Kd])return m&&H(m,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(f[Kd]||(f[Kd]="EventData"),!C[ou])return m&&H(m,1,28,"Sender was not initialized"),!1;if(K(f))f[Oc]=C._sample[cu];else return m&&H(m,2,33,"Telemetry item was sampled out and not sent",{SampleRate:C._sample[cu]}),!1;return!0}function Ue(f,m){var S=f.iKey||W,y=e.constructEnvelope(f,S,m,ne);if(!y){H(m,1,47,"Unable to create an AppInsights envelope");return}var P=!1;if(f[Ir]&&f[Ir][Yc]&&(R(f[Ir][Yc],function(L){try{L&&L(y)===!1&&(P=!0,pt(m,"Telemetry processor check returns false"))}catch(z){H(m,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+or(z),{exception:te(z)},!0)}}),delete f[Ir][Yc]),!P)return y}function Xe(f){var m=fT,S=C[et]();try{var y=Be(f,S),P=null;y&&(P=Ue(f,S)),P&&(m=u[uu](P))}catch{}return m}function Ve(f){var m=fT;return f&&f[De]&&(m="["+f.join(",")+"]"),m}function b(f){var m,S=we();return m={urlString:N},m[Zr]=f,m.headers=S,m}function K(f){return C._sample.isSampledIn(f)}function ie(f,m,S,y){m===200&&f?C._onSuccess(f,f[De]):y&&C[Ao](f,y)}function X(f,m,S,y){y===void 0&&(y=!0);var P=function(pe,Re,ce){return ie(m,pe,Re,ce)},L=oe(m),z=f&&f.sendPOST;return z&&L?(y&&C._buffer[tu](m),z(L,P,!S)):null}function oe(f){var m;if(Q(f)&&f[De]>0){var S=C[ki].batchPayloads(f),y=we(),P=(m={},m[Zr]=S,m.urlString=N,m.headers=y,m.disableXhrSync=ve,m.disableFetchKeepAlive=!ue,m[Vd]=f,m);return P}return null}function we(){try{var f=l||{};return Ad(N)&&(f[yd[6]]=yd[7]),f}catch{}return null}function Pe(f){var m=f?f[De]:0;return C[ki].size()+m>x?((!g||g.isOnline())&&C[iu](!0,null,10),!0):!1}function Fe(f,m,S,y,P,L){var z=null;if(C._appId||(z=da(L),z&&z.appId&&(C._appId=z.appId)),(f<200||f>=300)&&f!==0){if((f===301||f===307||f===308)&&!Je(S)){C[Ao](m,P);return}if(g&&!g.isOnline()){if(!V){var pe=10;Yr(m,pe),H(C[et](),2,40,". Offline - Response Code: ".concat(f,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(m.length," items."))}return}!V&&M(f)?(Yr(m),H(C[et](),2,40,". Response code "+f+". Will retry to send "+m[De]+" items.")):C[Ao](m,P)}else Je(S),f===206?(z||(z=da(L)),z&&!V?C[Bd](m,z):C[Ao](m,P)):(n=0,C[qc](m,y))}function Je(f){return c>=10?!1:!B(f)&&f!==""&&f!==N?(N=f,++c,!0):!1}function ar(f,m){if(_)_(f,!1);else{var S=ye&&ye[$c]([3],!0);return X(S,f,m)}}function rt(f,m,S){var y=f,P=y&&y[Vd];if(re)_e&&_e(P,!0),H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var L=[],z=0;z<P[De];z++){var pe=P[z],Re=[pe],ce=oe(Re);S(ce,m)?C._onSuccess(Re,Re[De]):L[on](pe)}L[De]>0&&(_e&&_e(L,!0),H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function tt(f){try{if(f&&f[De])return Ne(f[0])}catch{}return null}function Wt(f,m){var S=null;if(Q(f)){for(var y=f[De],P=0;P<f[De];P++)y+=f[P].item[De];var L=ye.getSyncFetchPayload();L+y<=Jx?S=2:en()?S=3:(S=1,H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var z=ye&&ye[$c]([S],!0);return X(z,f,m)}return null}function Yr(f,m){if(m===void 0&&(m=1),!(!f||f[De]===0)){var S=C[ki];S[za](f),n++;for(var y=0,P=f;y<P.length;y++){var L=P[y];L.cnt=L.cnt||0,L.cnt++,S[Ui](L)}ni(m),h()}}function ni(f){var m=10,S;if(n<=1)S=m;else{var y=(Math.pow(2,n)-1)/2,P=Math.floor(Math.random()*y*m)+1;P=f*P,S=Math.max(Math.min(P,3600),m)}var L=cr()+S*1e3;i=L}function h(){if(!s&&!a){var f=i?Math.max(0,i-cr()):0,m=Math.max(G,f);s=Mt(function(){s=null,C[iu](!0,null,1)},m)}}function O(){s&&s.cancel(),s=null,i=null}function M(f){return B($)?f===401||f===408||f===429||f===500||f===502||f===503||f===504:$[De]&&$.indexOf(f)>-1}function J(){var f="getNotifyMgr";return C.core[f]?C.core[f]():C.core._notificationManager}function de(f,m){var S=J();if(S&&S[ng])try{S[ng](f,m)}catch(y){H(C[et](),1,74,"send request notification failed: "+or(y),{exception:te(y)})}}function Ie(f,m){var S=m.disableInstrumentationKeyValidation,y=B(S)?!1:S;if(y)return!0;var P="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",L=new RegExp(P);return L.test(f)}function ee(){C[ou]=null,C[ki]=null,C._appId=null,C._sample=null,l={},g=null,n=0,i=null,o=null,a=!1,s=null,u=null,c=0,v=0,_=null,p=null,N=null,E=null,x=0,T=!1,U=null,j=!1,W=null,ne=Zn,V=!1,Z=null,Se=Zn,ve=!1,ue=!1,re=!1,A=null,_e=null,ye=null,Ye(C,"_senderConfig",{g:function(){return rl({},dT)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!B(n)?a=Xt(Xt({},t),{iKey:n}):a=t;var s=eA[a.baseType]||og;return s(i,a,o)},e})(yi)});var sg=Y(()=>{"use strict";d();vT()});var $a,Jc,ug,qa,cg,fu,_T=Y(()=>{"use strict";d();$a="instrumentationKey",Jc="connectionString",ug="instrumentationkey",qa="endpointUrl",cg="ingestionendpoint",fu="userOverrideEndpointUrl"});var pT={};df(pT,{AppInsightsCore:()=>Ii,ApplicationInsights:()=>nA,Sender:()=>Xc,SeverityLevel:()=>zm,arrForEach:()=>R,isNullOrUndefined:()=>B,proxyFunctions:()=>jt,throwError:()=>hr});function tA(r){return r&&r>0}var lu,fg,rA,nA,mT=Y(()=>{"use strict";d();Ur();sg();Yi();$e();Zo();he();_T();$e();Yi();sg();fg=void 0,rA=(lu={diagnosticLogInterval:bs(tA,1e4)},lu[Jc]=fg,lu[qa]=fg,lu[$a]=fg,lu.extensionConfig={},lu);nA=(function(){function r(e){var t=new Ii,n;(B(e)||B(e[$a])&&B(e[Jc]))&&hr("Invalid input configuration"),Ce(r,this,function(o){Ye(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,jt(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Qe(e||{},rA);n=s.cfg,t.addUnloadHook(Fr(s,function(){var u=n[Jc];if(vt(u)){var c=ku(function(g,p){Gt(u,function(N){var E=N.value,x=n[$a];if(!N.rejected&&E){n[Jc]=E;var T=Hc(E);x=T[ug]||x}g(x)})}),l=ku(function(g,p){Gt(u,function(N){var E=N.value,x=n[qa];if(!N.rejected&&E){var T=Hc(E),I=T[cg];x=I?I+Xn:x}g(x)})});n[$a]=c,n[qa]=n[fu]||l}if(Ne(u)){var v=Hc(u),_=v[cg];n[qa]=n[fu]?n[fu]:_+Xn,n[$a]=v[ug]||n[$a]}n[qa]=n[fu]?n[fu]:n[qa]})),t.initialize(n,[new Xc])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var TT=nt((pk,NT)=>{"use strict";d();function ri(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function ST(r,e){for(var t="",n=0,i=-1,o=0,a,s=0;s<=r.length;++s){if(s<r.length)a=r.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var u=t.lastIndexOf("/");if(u!==t.length-1){u===-1?(t="",n=0):(t=t.slice(0,u),n=t.length-1-t.lastIndexOf("/")),i=s,o=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=s,o=0;continue}}e&&(t.length>0?t+="/..":t="..",n=2)}else t.length>0?t+="/"+r.slice(i+1,s):t=r.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return t}function aA(r,e){var t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+n:t+r+n:n}var du={resolve:function(){for(var e="",t=!1,n,i=arguments.length-1;i>=-1&&!t;i--){var o;i>=0?o=arguments[i]:(n===void 0&&(n=process.cwd()),o=n),ri(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=ST(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ri(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=ST(e,!t),e.length===0&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return ri(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];ri(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":du.normalize(e)},relative:function(e,t){if(ri(e),ri(t),e===t||(e=du.resolve(e),t=du.resolve(t),e===t))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,o=i-n,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var s=t.length,u=s-a,c=o<u?o:u,l=-1,v=0;v<=c;++v){if(v===c){if(u>c){if(t.charCodeAt(a+v)===47)return t.slice(a+v+1);if(v===0)return t.slice(a+v)}else o>c&&(e.charCodeAt(n+v)===47?l=v:v===0&&(l=0));break}var _=e.charCodeAt(n+v),g=t.charCodeAt(a+v);if(_!==g)break;_===47&&(l=v)}var p="";for(v=n+l+1;v<=i;++v)(v===i||e.charCodeAt(v)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+t.slice(a+l):(a+=l,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(ri(e),e.length===0)return".";for(var t=e.charCodeAt(0),n=t===47,i=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){i=a;break}}else o=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ri(e);var n=0,i=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!o){n=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=e.length),e.slice(n,i)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){n=a+1;break}}else i===-1&&(o=!1,i=a+1);return i===-1?"":e.slice(n,i)}},extname:function(e){ri(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(u===47){if(!o){n=s+1;break}continue}i===-1&&(o=!1,i=s+1),u===46?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return aA("/",e)},parse:function(e){ri(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),i=n===47,o;i?(t.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,v=0;l>=o;--l){if(n=e.charCodeAt(l),n===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),n===46?a===-1?a=l:v!==1&&(v=1):a!==-1&&(v=-1)}return a===-1||u===-1||v===0||v===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&i?t.base=t.name=e.slice(1,u):t.base=t.name=e.slice(s,u)):(s===0&&i?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};du.posix=du;NT.exports=du});var Eg=nt(Po=>{"use strict";d();Object.defineProperty(Po,"__esModule",{value:!0});Po.TargetPopulation=Po.Filters=Po.VSCodeFilterProvider=void 0;var ov=require("vscode"),gg=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 ti.ApplicationVersion:return r.trimVersionSuffix(ov.version);case ti.Build:return ov.env.appName;case ti.ClientId:return ov.env.machineId;case ti.ExtensionName:return this.extensionName;case ti.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case ti.Language:return ov.env.language;case ti.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(ti);for(let n of t)e.set(n,this.getFilterValue(n));return e}};Po.VSCodeFilterProvider=gg;var ti;(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"})(ti||(Po.Filters=ti={}));var OT;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(OT||(Po.TargetPopulation=OT={}))});var YT=nt(av=>{"use strict";d();Object.defineProperty(av,"__esModule",{value:!0});av.BaseFeatureProvider=void 0;var hg=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}};av.BaseFeatureProvider=hg});var LT=nt(sv=>{"use strict";d();Object.defineProperty(sv,"__esModule",{value:!0});sv.FilteredFeatureProvider=void 0;var pA=YT(),Sg=class extends pA.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)}};sv.FilteredFeatureProvider=Sg});var UT=nt(Ro=>{"use strict";d();Object.defineProperty(Ro,"__esModule",{value:!0});Ro.TasApiFeatureProvider=Ro.TASAPI_FETCHERROR_EVENTNAME=void 0;var mA=LT();Ro.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var Ng="ErrorType",Tg=class extends mA.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(Ng,"ServerError"):u.responseReceived===!1?c.set(Ng,"NoResponse"):c.set(Ng,"GenericError"),this.telemetry.postEvent(Ro.TASAPI_FETCHERROR_EVENTNAME,c)}if(!n)throw Error(Ro.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}}};Ro.TasApiFeatureProvider=Tg});var MT=nt(_u=>{"use strict";d();Object.defineProperty(_u,"__esModule",{value:!0});_u.HttpClient=_u.FetchError=void 0;var vu=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};_u.FetchError=vu;var Dg=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new vu("No response received",!1);if(!t.ok)throw new vu("Response not ok",!0,!1);let n=await t.json();if(!n)throw new vu("No data received",!1);return{data:n}}};_u.HttpClient=Dg});var FT=nt(uv=>{"use strict";d();Object.defineProperty(uv,"__esModule",{value:!0});uv.MemoryKeyValueStorage=void 0;var yg=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)}};uv.MemoryKeyValueStorage=yg});var kT=nt(cv=>{"use strict";d();Object.defineProperty(cv,"__esModule",{value:!0});cv.ExperimentationServiceBase=void 0;var gA=FT(),Ig=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 gA.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)}};cv.ExperimentationServiceBase=Ig});var HT=nt(fv=>{"use strict";d();Object.defineProperty(fv,"__esModule",{value:!0});fv.PollingService=void 0;var xg=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())}};fv.PollingService=xg});var GT=nt(lv=>{"use strict";d();Object.defineProperty(lv,"__esModule",{value:!0});lv.ExperimentationServiceAutoPolling=void 0;var EA=kT(),hA=HT(),Ag=class extends EA.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 hA.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)}};lv.ExperimentationServiceAutoPolling=Ag});var BT=nt(vv=>{"use strict";d();Object.defineProperty(vv,"__esModule",{value:!0});vv.ExperimentationService=void 0;var SA=UT(),NA=MT(),TA=GT(),dv=class extends TA.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 SA.TasApiFeatureProvider(new NA.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};vv.ExperimentationService=dv;dv.REFRESH_RATE_IN_MINUTES=30});var jT=nt(_v=>{"use strict";d();Object.defineProperty(_v,"__esModule",{value:!0});_v.ExperimentationService=void 0;var DA=BT();Object.defineProperty(_v,"ExperimentationService",{enumerable:!0,get:function(){return DA.ExperimentationService}})});var zT=nt(pv=>{"use strict";d();Object.defineProperty(pv,"__esModule",{value:!0});pv.MementoKeyValueStorage=void 0;var bg=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)}};pv.MementoKeyValueStorage=bg});var VT=nt(Pg=>{"use strict";d();Object.defineProperty(Pg,"__esModule",{value:!0});var Cg=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)}};Pg.default=Cg});var WT=nt(pu=>{"use strict";d();Object.defineProperty(pu,"__esModule",{value:!0});pu.getExperimentationServiceAsync=pu.getExperimentationService=void 0;var yA=Eg(),IA=jT(),Rg=require("vscode"),xA=zT(),AA=VT(),bA="https://default.exp-tas.com/vscode/ab",CA="query-expfeature",PA="abexp.assignmentcontext",RA="VSCode.ABExp.FeatureData",wA=1e3*60*30;function KT(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=Rg.workspace.getConfiguration("telemetry");if(!(Rg.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):Rg.env.isTelemetryEnabled))return new AA.default;let c=[new yA.VSCodeFilterProvider(r,e,t),...o],l=new xA.MementoKeyValueStorage(i);return new IA.ExperimentationService({filterProviders:c,telemetry:n,storageKey:RA,keyValueStorage:l,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:PA,telemetryEventName:CA,endpoint:bA,refetchInterval:wA})}pu.getExperimentationService=KT;async function OA(r,e,t,n,i,...o){let a=KT(r,e,t,n,i,...o);return await a.initializePromise,a}pu.getExperimentationServiceAsync=OA});var qT=nt(wo=>{"use strict";d();Object.defineProperty(wo,"__esModule",{value:!0});wo.TargetPopulation=wo.getExperimentationServiceAsync=wo.getExperimentationService=void 0;var $T=WT();Object.defineProperty(wo,"getExperimentationService",{enumerable:!0,get:function(){return $T.getExperimentationService}});Object.defineProperty(wo,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return $T.getExperimentationServiceAsync}});var YA=Eg();Object.defineProperty(wo,"TargetPopulation",{enumerable:!0,get:function(){return YA.TargetPopulation}})});var KA={};df(KA,{activate:()=>VA});module.exports=cD(KA);d();var He=Tt(require("vscode"));d();var xr=Tt(require("vscode"));d();var Qc=Tt(require("vscode"));d();var Lx=async(r,e,t)=>{let n=await Promise.resolve().then(()=>(ma(),mS)),i=await Promise.resolve().then(()=>(aN(),oN)),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 l={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=l}let c=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(l=>{l.ext=l.ext??{},l.ext.web=l.ext.web??{},l.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',c&&(l.ext.utc=l.ext.utc??{},l.ext.utc.flags=8462029)}),o},sN=async(r,e,t)=>{let n=await Lx(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!
7
+ `),n=0;n<t[be];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[qs](i)}return{src:r,obj:e}}function PN(r){var e=null;if(r)try{if(r[Ut])e=La(r[Ut]);else if(r[Qs]&&r[Qs][Ut])e=La(r[Qs][Ut]);else if(r.exception&&r.exception[Ut])e=La(r.exception[Ut]);else if(xN(r))e=r;else if(xN(r[km]))e=r[km];else if(Nr()&&Nr().opera&&r[Hm])e=zx(r[Pi]);else if(r.reason&&r.reason[Ut])e=La(r.reason[Ut]);else if(Ne(r))e=La(r);else{var t=r[Hm]||r[bN]||"";Ne(r[yN])&&(t&&(t+=`
8
+ `),t+=" from "+r[yN]),t&&(e=La(t))}}catch(n){e=La(n)}return e||{src:"",obj:null}}function Vx(r){var e="";return r&&(r.obj?R(r.obj,function(t){e+=t+`
9
+ `}):e=r.src||""),e}function Kx(r){var e,t=r.obj;if(t&&t[be]>0){e=[];var n=0,i=0;R(t,function(p){var N=p[Ci]();if(Bm.regex.test(N)){var E=new Bm(N,n++);i+=E[Ca],e[qs](E)}});var o=32*1024;if(i>o)for(var a=0,s=e[be]-1,u=0,c=a,l=s;a<s;){var v=e[a][Ca],_=e[s][Ca];if(u+=v+_,u>o){var g=l-c+1;e.splice(c,g);break}c=a,l=s,a++,s--}}return e}function Pd(r){var e="";if(r&&(e=r.typeName||r[st]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[Ci]());e=n&&n[be]>1?n[1]:""}catch{}return e}function Fm(r){if(r)try{if(!Ne(r)){var e=Pd(r),t=Gm(r,!1);return(!t||t==="{}")&&(r[Qs]&&(r=r[Qs],e=Pd(r)),t=Gm(r,!0)),dn(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var Gx,Qs,Ut,km,yN,Hm,bN,Ua,AN,Bm,RN=Y(()=>{"use strict";d();xt();$e();he();In();ct();yn();Gx="<no_method>",Qs="error",Ut="stack",km="stackDetails",yN="errorSrc",Hm="message",bN="description";Ua=(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,jx(t)?(s[ba]=t[ba]||[],s[Qr]=t[Qr],s[ut]=t[ut],t[Pa]&&(s[Pa]=t[Pa]),t.id&&(s.id=t.id,t[Qr].id=t.id),t[yd]&&(s[yd]=t[yd]),B(t[xd])||(s[xd]=t[xd])):(n||(n={}),a&&(n.id=a),s[ba]=[new AN(e,t,n)],s[Qr]=gt(e,n),s[ut]=Et(e,i),o&&(s[Pa]=o),a&&(s.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,s,u){var c,l=Pd(o||a||e);return c={},c[Pi]=CN(e,l),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=Fm(o||a||e),c.evt=Fm(a||e),c[Jn]=l,c.stackDetails=PN(s||o||a),c.errorSrc=u,c},r.CreateFromInterface=function(e,t,n,i){var o=t[ba]&&si(t[ba],function(s){return AN[ym](e,s)}),a=new r(e,Xt(Xt({},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,l=n instanceof Array&&si(n,function(v){return v.toInterface()})||void 0;return e={ver:"4.0"},e[ba]=l,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[Mc]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=Fm,r})(),AN=(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(Bx(t))i[Jn]=t[Jn],i[Pi]=t[Pi],i[Ut]=t[Ut],i[tn]=t[tn]||[],i[Mc]=t[Mc];else{var o=t,a=o&&o.evt;Fo(o)||(o=o[Qs]||a||o),i[Jn]=Ke(e,Pd(o))||at,i[Pi]=kc(e,CN(t||o,i[Jn]))||at;var s=t[km]||PN(t);i[tn]=Kx(s),Q(i[tn])&&si(i[tn],function(u){u[Ra]=Ke(e,u[Ra]),u[Eo]=Ke(e,u[Eo])}),i[Ut]=bm(e,Vx(s)),i.hasFullStack=Q(i.parsedStack)&&i.parsedStack[be]>0,n&&(n[Jn]=n[Jn]||i[Jn])}}return r.prototype.toInterface=function(){var e,t=this,n=t[tn]instanceof Array&&si(t[tn],function(o){return o.toInterface()}),i=(e={id:t.id,outerId:t.outerId,typeName:t[Jn],message:t[Pi],hasFullStack:t[Mc],stack:t[Ut]},e[tn]=n||void 0,e);return i},r.CreateFromInterface=function(e,t){var n=t[tn]instanceof Array&&si(t[tn],function(o){return Bm[ym](o)})||t[tn],i=new r(e,Xt(Xt({},t),{parsedStack:n}));return i},r})(),Bm=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n=this;if(n[Ca]=0,typeof e=="string"){var i=e;n[Fc]=t,n[wa]=Gx,n[Ra]=ke(i),n[Eo]="",n[Xs]=0;var o=i.match(r.regex);o&&o[be]>=5&&(n[wa]=ke(o[2])||n[wa],n[Eo]=ke(o[4]),n[Xs]=parseInt(o[5])||0)}else n[Fc]=e[Fc],n[wa]=e[wa],n[Ra]=e[Ra],n[Eo]=e[Eo],n[Xs]=e[Xs],n[Ca]=0;n.sizeInBytes+=n.method[be],n.sizeInBytes+=n.fileName[be],n.sizeInBytes+=n.assembly[be],n[Ca]+=r.baseSize,n.sizeInBytes+=n.level.toString()[be],n.sizeInBytes+=n.line.toString()[be]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){var e=this;return{level:e[Fc],method:e[wa],assembly:e[Ra],fileName:e[Eo],line:e[Xs]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})()});var wN,ON=Y(()=>{"use strict";d();wN=(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 wi,YN=Y(()=>{"use strict";d();In();ct();ON();yn();wi=(function(){function r(e,t,n,i,o,a,s,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var v=new wN;v[cN]=i>0?i:void 0,v.max=isNaN(a)||a===null?void 0:a,v.min=isNaN(o)||o===null?void 0:o,v[st]=Ke(e,t)||at,v.value=n,v.stdDev=isNaN(s)||s===null?void 0:s,l.metrics=[v],l[Qr]=gt(e,u),l[ut]=Et(e,c)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})()});function Rd(r){(isNaN(r)||r<0)&&(r=0),r=Math.round(r);var e=Gc+r%1e3,t=Gc+Math.floor(r/1e3)%60,n=Gc+Math.floor(r/(1e3*60))%60,i=Gc+Math.floor(r/(1e3*60*60))%24,o=Math.floor(r/(1e3*60*60*24));return e=e[be]===1?"00"+e:e[be]===2?"0"+e:e,t=t[be]<2?"0"+t:t,n=n[be]<2?"0"+n:n,i=i[be]<2?"0"+i:i,(o>0?o+".":Gc)+i+":"+n+":"+t+"."+e}var Gc,jm=Y(()=>{"use strict";d();ct();Gc=""});var Ma,LN=Y(()=>{"use strict";d();In();jm();ct();yn();Ma=(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=Cm(e,s),u.url=Ya(e,n),u[st]=Ke(e,t)||at,isNaN(i)||(u[Oa]=Rd(i)),u[Qr]=gt(e,o),u[ut]=Et(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})()});var Fa,UN=Y(()=>{"use strict";d();jm();Rm();ct();yn();Fa=(function(){function r(e,t,n,i,o,a,s,u,c,l,v,_){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 g=this;g.ver=2,g.id=t,g[Oa]=Rd(o),g.success=a,g.resultCode=s+"",g.type=Ke(e,c);var p=gN(e,n,u,i);g.data=Ya(e,i)||p.data,g.target=Ke(e,p.target),l&&(g.target="".concat(g.target," | ").concat(l)),g[st]=Ke(e,p[st]),g[Qr]=gt(e,v),g[ut]=Et(e,_)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})()});var ka,MN=Y(()=>{"use strict";d();In();ct();yn();ka=(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||at,a[Pi]=kc(e,t),a[Qr]=gt(e,i),a[ut]=Et(e,o),n&&(a[Pa]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})()});var Ha,FN=Y(()=>{"use strict";d();In();ct();yn();Ha=(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=Ya(e,n),u[st]=Ke(e,t)||at,u[Qr]=gt(e,o),u[ut]=Et(e,a),s&&(u.domProcessing=s.domProcessing,u[Oa]=s[Oa],u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u[xm]=s[xm],u.sentRequest=s.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})()});var Oi,kN=Y(()=>{"use strict";d();Oi=(function(){function r(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return r})()});var zm,HN=Y(()=>{"use strict";d();$e();zm=fr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})});function So(r){var e="ai."+r+".";return function(t){return e+t}}var Bc,Or,wd,Zs,Vm,ho,Ga,jc,zc,Km=Y(()=>{"use strict";d();xt();$e();Bc=So("application"),Or=So("device"),wd=So("location"),Zs=So("operation"),Vm=So("session"),ho=So("user"),Ga=So("cloud"),jc=So("internal"),zc=(function(r){yt(e,r);function e(){return r.call(this)||this}return e})(H_({applicationVersion:Bc("ver"),applicationBuild:Bc("build"),applicationTypeId:Bc("typeId"),applicationId:Bc("applicationId"),applicationLayer:Bc("layer"),deviceId:Or("id"),deviceIp:Or("ip"),deviceLanguage:Or("language"),deviceLocale:Or("locale"),deviceModel:Or("model"),deviceFriendlyName:Or("friendlyName"),deviceNetwork:Or("network"),deviceNetworkName:Or("networkName"),deviceOEMName:Or("oemName"),deviceOS:Or("os"),deviceOSVersion:Or("osVersion"),deviceRoleInstance:Or("roleInstance"),deviceRoleName:Or("roleName"),deviceScreenResolution:Or("screenResolution"),deviceType:Or("type"),deviceMachineName:Or("machineName"),deviceVMName:Or("vmName"),deviceBrowser:Or("browser"),deviceBrowserVersion:Or("browserVersion"),locationIp:wd("ip"),locationCountry:wd("country"),locationProvince:wd("province"),locationCity:wd("city"),operationId:Zs("id"),operationName:Zs("name"),operationParentId:Zs("parentId"),operationRootId:Zs("rootId"),operationSyntheticSource:Zs("syntheticSource"),operationCorrelationVector:Zs("correlationVector"),sessionId:Vm("id"),sessionIsFirst:Vm("isFirst"),sessionIsNew:Vm("isNew"),userAccountAcquisitionDate:ho("accountAcquisitionDate"),userAccountId:ho("accountId"),userAgent:ho("userAgent"),userId:ho("id"),userStoreRegion:ho("storeRegion"),userAuthUserId:ho("authUserId"),userAnonymousUserAcquisitionDate:ho("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ho("authUserAcquisitionDate"),cloudName:Ga("name"),cloudRole:Ga("role"),cloudRoleVer:Ga("roleVer"),cloudRoleInstance:Ga("roleInstance"),cloudEnvironment:Ga("environment"),cloudLocation:Ga("location"),cloudDeploymentUnit:Ga("deploymentUnit"),internalNodeName:jc("nodeName"),internalSdkVersion:jc("sdkVersion"),internalAgentVersion:jc("agentVersion"),internalSnippet:jc("snippet"),internalSdkSrc:jc("sdkSrc")}))});var Ir,GN=Y(()=>{"use strict";d();Km();Ir=new zc});function BN(r,e){xi(r,null,null,e)}function Wm(r){var e=Sr(),t=Pr(),n=!1,i=[],o=1;t&&!B(t.onLine)&&!t.onLine&&(o=2);var a=0,s=_(),u=zt(Jr("OfflineListener"),r);try{if(l(Nr())&&(n=!0),e){var c=e.body||e;c.ononline&&l(c)&&(n=!0)}}catch{n=!1}function l(y){var w=!1;return y&&(w=jn(y,"online",N,u),w&&jn(y,"offline",E,u)),w}function v(){return s}function _(){return!(a===2||o===2)}function g(){var y=_();s!==y&&(s=y,R(i,function(w){var U={isOnline:s,rState:o,uState:a};try{w(U)}catch{}}))}function p(y){a=y,g()}function N(){o=1,g()}function E(){o=2,g()}function x(){var y=Nr();if(y&&n){if(BN(y,u),e){var w=e.body||e;Te(w.ononline)||BN(w,u)}n=!1}}function T(y){return i[qs](y),{rm:function(){var w=i.indexOf(y);if(w>-1)return i.splice(w,1)}}}return{isOnline:v,isListening:function(){return n},unload:x,addListener:T,setOnlineState:p}}var jN=Y(()=>{"use strict";d();$e();ct()});var Od,Yi=Y(()=>{"use strict";d();Rm();TN();uN();In();DN();IN();RN();YN();LN();UN();MN();FN();kN();HN();Km();yn();GN();NN();jN();Od="AppInsightsChannelPlugin"});var No,zN=Y(()=>{"use strict";d();No="duration"});var yr,Yd,Zr,Qn,ja,De,To,Do,nn,Io,Li,eu,Ui,Mi,Ld,on,ru,Vc,yo,Kc,tu,za,Wc,Ud,Fi,xo,nu,iu,et,Md,ou,au,su,Fd,$m,kd,Hd,qm,Gd,Xm,ki,Jm,Qm,Zm,$c,eg,rg,tg,uu,Ao,Bd,qc,jd,zd,Vd,Kd,cu,ng,Wd,VN,bo=Y(()=>{"use strict";d();yr="tags",Yd="deviceType",Zr="data",Qn="name",ja="traceID",De="length",To="stringify",Do="measurements",nn="dataType",Io="envelopeType",Li="toString",eu="_get",Ui="enqueue",Mi="count",Ld="eventsLimitInMem",on="push",ru="item",Vc="emitLineDelimitedJson",yo="clear",Kc="createNew",tu="markAsSent",za="clearSent",Wc="bufferOverride",Ud="BUFFER_KEY",Fi="SENT_BUFFER_KEY",xo="concat",nu="MAX_BUFFER_SIZE",iu="triggerSend",et="diagLog",Md="initialize",ou="_sender",au="endpointUrl",su="instrumentationKey",Fd="customHeaders",$m="maxBatchSizeInBytes",kd="onunloadDisableBeacon",Hd="isBeaconApiDisabled",qm="alwaysUseXhrOverride",Gd="disableXhr",Xm="enableSessionStorageBuffer",ki="_buffer",Jm="onunloadDisableFetch",Qm="disableSendBeaconSplit",Zm="enableSendPromise",$c="getSenderInst",eg="unloadTransports",rg="convertUndefined",tg="maxBatchInterval",uu="serialize",Ao="_onError",Bd="_onPartialSuccess",qc="_onSuccess",jd="itemsReceived",zd="itemsAccepted",Vd="oriPayload",Kd="baseType",cu="sampleRate",ng="eventsSendRequest",Wd="getSamplingScore",VN="getHashCodeScore"});function gr(r,e,t){return Zt(r,e,t,cn)}function Wx(r,e,t){var n=t[yr]=t[yr]||{},i=e.ext=e.ext||{},o=e[yr]=e[yr]||[],a=i.user;a&&(gr(n,Ir.userAuthUserId,a.authId),gr(n,Ir.userId,a.id||a.localId));var s=i.app;s&&gr(n,Ir.sessionId,s.sesId);var u=i.device;u&&(gr(n,Ir.deviceId,u.id||u.localId),gr(n,Ir[Yd],u.deviceClass),gr(n,Ir.deviceIp,u.ip),gr(n,Ir.deviceModel,u.model),gr(n,Ir[Yd],u[Yd]));var c=e.ext.web;if(c){gr(n,Ir.deviceLanguage,c.browserLang),gr(n,Ir.deviceBrowserVersion,c.browserVer),gr(n,Ir.deviceBrowser,c.browser);var l=t[Zr]=t[Zr]||{},v=l[er]=l[er]||{},_=v[Hr]=v[Hr]||{};gr(_,"domain",c.domain),gr(_,"isManual",c.isManual?KN:null),gr(_,"screenRes",c.screenRes),gr(_,"userConsent",c.userConsent?KN:null)}var g=i.os;g&&(gr(n,Ir.deviceOS,g[Qn]),gr(n,Ir.deviceOSVersion,g.osVer));var p=i.trace;p&&(gr(n,Ir.operationParentId,p.parentID),gr(n,Ir.operationName,Ke(r,p[Qn])),gr(n,Ir.operationId,p[ja]));for(var N={},E=o[De]-1;E>=0;E--){var x=o[E];ae(x,function(y,w){N[y]=w}),o.splice(E,1)}ae(o,function(y,w){N[y]=w});var T=Xt(Xt({},n),N);T[Ir.internalSdkVersion]||(T[Ir.internalSdkVersion]=Ke(r,"javascript:".concat($x.Version),64)),t[yr]=Ot(T)}function Co(r,e,t){B(r)||ae(r,function(n,i){Wr(i)?t[n]=i:Ne(i)?e[n]=i:kn()&&(e[n]=Xr()[To](i))})}function Va(r,e){B(r)||ae(r,function(t,n){r[t]=n||e})}function Ka(r,e,t,n){var i=new Mm(r,n,e);gr(i,"sampleRate",t[Oc]),(t[er]||{}).startTime&&(i.time=hn(t[er].startTime)),i.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return i[Qn]=i[Qn].replace("{0}",o),Wx(r,t,i),t[yr]=t[yr]||[],Ot(i)}function Wa(r,e){B(e[er])&&H(r,1,46,"telemetryItem.baseData cannot be null.")}function WN(r,e,t){Wa(r,e);var n=e[er][Do]||{},i=e[er][Hr]||{};Co(e[Zr],i,n),B(t)||Va(i,t);var o=e[er];if(B(o))return pt(r,"Invalid input for dependency data"),null;var a=o[Hr]&&o[Hr][Dd]?o[Hr][Dd]:"GET",s=new Fa(r,o.id,o.target,o[Qn],o[No],o.success,o.responseCode,a,o.type,o.correlationContext,i,n),u=new Oi(Fa[nn],s);return Ka(r,Fa[Io],e,u)}function og(r,e,t){Wa(r,e);var n={},i={};e[ig]!==Ri[nn]&&(n.baseTypeSource=e[ig]),e[ig]===Ri[nn]?(n=e[er][Hr]||{},i=e[er][Do]||{}):e[er]&&Co(e[er],n,i),Co(e[Zr],n,i),B(t)||Va(n,t);var o=e[er][Qn],a=new Ri(r,o,n,i),s=new Oi(Ri[nn],a);return Ka(r,Ri[Io],e,s)}function $N(r,e,t){Wa(r,e);var n=e[er][Do]||{},i=e[er][Hr]||{};Co(e[Zr],i,n),B(t)||Va(i,t);var o=e[er],a=Ua.CreateFromInterface(r,o,i,n),s=new Oi(Ua[nn],a);return Ka(r,Ua[Io],e,s)}function qN(r,e,t){Wa(r,e);var n=e[er],i=n[Hr]||{},o=n[Do]||{};Co(e[Zr],i,o),B(t)||Va(i,t);var a=new wi(r,n[Qn],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),s=new Oi(wi[nn],a);return Ka(r,wi[Io],e,s)}function XN(r,e,t){Wa(r,e);var n,i=e[er];!B(i)&&!B(i[Hr])&&!B(i[Hr][No])?(n=i[Hr][No],delete i[Hr][No]):!B(e[Zr])&&!B(e[Zr][No])&&(n=e[Zr][No],delete e[Zr][No]);var o=e[er],a;((e.ext||{}).trace||{})[ja]&&(a=e.ext.trace[ja]);var s=o.id||a,u=o[Qn],c=o.uri,l=o[Hr]||{},v=o[Do]||{};if(B(o.refUri)||(l.refUri=o.refUri),B(o.pageType)||(l.pageType=o.pageType),B(o.isLoggedIn)||(l.isLoggedIn=o.isLoggedIn[Li]()),!B(o[Hr])){var _=o[Hr];ae(_,function(N,E){l[N]=E})}Co(e[Zr],l,v),B(t)||Va(l,t);var g=new Ma(r,u,c,n,l,v,s),p=new Oi(Ma[nn],g);return Ka(r,Ma[Io],e,p)}function JN(r,e,t){Wa(r,e);var n=e[er],i=n[Qn],o=n.uri||n.url,a=n[Hr]||{},s=n[Do]||{};Co(e[Zr],a,s),B(t)||Va(a,t);var u=new Ha(r,i,o,void 0,a,s,n),c=new Oi(Ha[nn],u);return Ka(r,Ha[Io],e,c)}function QN(r,e,t){Wa(r,e);var n=e[er].message,i=e[er].severityLevel,o=e[er][Hr]||{},a=e[er][Do]||{};Co(e[Zr],o,a),B(t)||Va(o,t);var s=new ka(r,n,i,o,a),u=new Oi(ka[nn],s);return Ka(r,ka[Io],e,u)}var ig,er,Hr,KN,$x,ZN=Y(()=>{"use strict";d();xt();Yi();$e();zN();bo();ig="baseType",er="baseData",Hr="properties",KN="true";$x={Version:"3.3.4"}});var eT,$d,qx,ag,rT=Y(()=>{"use strict";d();xt();Ur();Yi();$e();bo();eT=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[eu]=function(){return n},this._set=function(a){return n=a,n},Ce(r,this,function(a){a[Ui]=function(s){if(a[Mi]()>=t[Ld]){i||(H(e,2,105,"Maximum in-memory buffer size reached: "+a[Mi](),!0),i=!0);return}s.cnt=s.cnt||0,!(!B(o)&&s.cnt>o)&&n[on](s)},a[Mi]=function(){return n[De]},a.size=function(){for(var s=n[De],u=0;u<n[De];u++)s+=n[u].item[De];return t[Vc]||(s+=2),s},a[yo]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(s){if(s&&s[De]>0){var u=[];R(s,function(l){u[on](l[ru])});var c=t[Vc]?u.join(`
10
+ `):"["+u.join(",")+"]";return c}return null},a[Kc]=function(s,u,c){var l=n.slice(0);s=s||e,u=u||{};var v=c?new ag(s,u):new $d(s,u);return R(l,function(_){v[Ui](_)}),v}})}return r.__ieDyn=1,r})(),$d=(function(r){yt(e,r);function e(t,n){var i=r.call(this,t,n)||this;return Ce(e,i,function(o,a){o[tu]=function(s){a[yo]()},o[za]=function(s){}}),i}return e.__ieDyn=1,e})(eT),qx=["AI_buffer","AI_sentBuffer"],ag=(function(r){yt(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[Wc]||{getItem:Ym,setItem:Lm},c=u.getItem,l=u.setItem,v=i.maxRetryCnt;return Ce(e,o,function(_,g){var p=w(e[Ud]),N=w(e[Fi]),E=W(),x=N[xo](E),T=_._set(p[xo](x));T[De]>e[nu]&&(T[De]=e[nu]),j(e[Fi],[]),j(e[Ud],T),_[Ui]=function(V){if(_[Mi]()>=e[nu]){a||(H(n,2,67,"Maximum buffer size reached: "+_[Mi](),!0),a=!0);return}V.cnt=V.cnt||0,!(!B(v)&&V.cnt>v)&&(g[Ui](V),j(e.BUFFER_KEY,_[eu]()))},_[yo]=function(){g[yo](),j(e.BUFFER_KEY,_[eu]()),j(e[Fi],[]),a=!1},_[tu]=function(V){j(e[Ud],_._set(y(V,_[eu]())));var G=w(e[Fi]);G instanceof Array&&V instanceof Array&&(G=G[xo](V),G[De]>e[nu]&&(H(n,1,67,"Sent buffer reached its maximum size: "+G[De],!0),G[De]=e[nu]),j(e[Fi],G))},_[za]=function(V){var G=w(e[Fi]);G=y(V,G),j(e[Fi],G)},_[Kc]=function(V,G,Z){Z=!!Z;var fe=_[eu]().slice(0),Se=w(e[Fi]).slice(0);V=V||n,G=G||{},_[yo]();var F=Z?new e(V,G):new $d(V,G);return R(fe,function(k){F[Ui](k)}),Z&&F[tu](Se),F};function y(V,G){var Z=[],fe=[];return R(V,function(Se){fe[on](Se[ru])}),R(G,function(Se){!se(Se)&&Me(fe,Se[ru])===-1&&Z[on](Se)}),Z}function w(V){var G=V;return G=s?s+"_"+G:G,U(G)}function U(V){try{var G=c(n,V);if(G){var Z=Xr().parse(G);if(Ne(Z)&&(Z=Xr().parse(Z)),Z&&Q(Z))return Z}}catch(fe){H(n,1,42," storage key: "+V+", "+or(fe),{exception:te(fe)})}return[]}function j(V,G){var Z=V;try{Z=s?s+"_"+Z:Z;var fe=JSON[To](G);l(n,Z,fe)}catch(Se){l(n,Z,JSON[To]([])),H(n,2,41," storage key: "+Z+", "+or(Se)+". Buffer cleared",{exception:te(Se)})}}function W(){var V=[];try{return R(qx,function(G){var Z=ne(G);if(V=V[xo](Z),s){var fe=s+"_"+G,Se=ne(fe);V=V[xo](Se)}}),V}catch(G){H(n,2,41,"Transfer events from previous buffers: "+or(G)+". previous Buffer items can not be removed",{exception:te(G)})}return[]}function ne(V){try{var G=U(V),Z=[];return R(G,function(fe){var Se={item:fe,cnt:0};Z[on](Se)}),Um(n,V),Z}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})(eT)});var tT,nT=Y(()=>{"use strict";d();Ur();$e();bo();tT=(function(){function r(e){Ce(r,this,function(t){t[uu]=function(a){var s=n(a,"root");try{return Xr()[To](s)}catch(u){H(e,1,48,u&&se(u[Li])?u[Li]():"Error serializing object",null,!0)}};function n(a,s){var u="__aiCircularRefCheck",c={};if(!a)return H(e,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),c;if(a[u])return H(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(Q(a))c=i(a,s);else{H(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Xr()[To](a),c=a}catch(l){H(e,1,48,l&&se(l[Li])?l[Li]():"Error serializing object",null,!0)}}return c}return a[u]=!0,ae(a.aiDataContract,function(l,v){var _=se(v)?v()&1:v&1,g=se(v)?v()&4:v&4,p=v&2,N=a[l]!==void 0,E=nr(a[l])&&a[l]!==null;if(_&&!N&&!p)H(e,1,24,"Missing required field specification. The field is required but not present on source",{field:l,name:s});else if(!g){var x=void 0;E?p?x=i(a[l],l):x=n(a[l],l):x=a[l],x!==void 0&&(c[l]=x)}}),delete a[u],c}function i(a,s){var u;if(a)if(!Q(a))H(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
11
+ `,{name:s},!0);else{u=[];for(var c=0;c<a[De];c++){var l=a[c],v=n(l,s+"["+c+"]");u[on](v)}}return u}function o(a,s,u){var c;return a&&(c={},ae(a,function(l,v){if(s==="string")v===void 0?c[l]="undefined":v===null?c[l]="null":v[Li]?c[l]=v[Li]():c[l]="invalid field: toString() is not defined.";else if(s==="number")if(v===void 0)c[l]="undefined";else if(v===null)c[l]="null";else{var _=parseFloat(v);c[l]=_}else c[l]="invalid field: "+u+" is of unknown type.",H(e,1,c[l],null,!0)})),c}})}return r.__ieDyn=1,r})()});var Xx,iT,oT=Y(()=>{"use strict";d();bo();Xx=8,iT=(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[De]<Xx;)e=e[xo](e);for(var t=5381,n=0;n<e[De];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var aT,sT=Y(()=>{"use strict";d();Yi();bo();oT();aT=(function(){function r(){var e=this,t=new iT,n=new zc;e[Wd]=function(i){var o=0;return i[yr]&&i[yr][n.userId]?o=t.getHashCodeScore(i[yr][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[VN](i.ext.user.id):i[yr]&&i[yr][n.operationId]?o=t.getHashCodeScore(i[yr][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[ja]?o=t.getHashCodeScore(i.ext.telemetryTrace[ja]):o=Math.random()*100,o}}return r})()});var uT,cT=Y(()=>{"use strict";d();Yi();$e();bo();sT();uT=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Si(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[cu]=e,this.samplingScoreGenerator=new aT}return r.prototype.isSampledIn=function(e){var t=this[cu],n=!1;return t==null||t>=100||e.baseType===wi[nn]?!0:(n=this.samplingScoreGenerator[Wd](e)<t,n)},r})()});function lT(r){try{return r.responseText}catch{}return null}function Qx(r){return r&&r.sendPOST}function Zx(r){return!isNaN(r)&&r>0&&r<=100}var qe,Hi,Zn,fT,Jx,dT,eA,Xc,vT=Y(()=>{"use strict";d();xt();Ur();Yi();$e();he();ZN();rT();nT();cT();bo();Zn=void 0,fT="",Jx=65e3;dT=Rn((qe={endpointUrl:bs(cn,ya+Xn)},qe[Vc]=rn(),qe[tg]=15e3,qe[$m]=102400,qe.disableTelemetry=rn(),qe[Xm]=rn(!0),qe.isRetryDisabled=rn(),qe[Hd]=rn(!0),qe[Qm]=rn(!0),qe[Gd]=rn(),qe[Jm]=rn(),qe[kd]=rn(),qe[su]=Zn,qe.namePrefix=Zn,qe.samplingPercentage=bs(Zx,100),qe[Fd]=Zn,qe[rg]=Zn,qe[Ld]=1e4,qe[Wc]=!1,qe.httpXHROverride={isVal:Qx,v:Zn},qe[qm]=rn(),qe.transports=Zn,qe.retryCodes=Zn,qe.maxRetryCnt={isVal:Wr,v:10},qe));eA=(Hi={},Hi[Ri.dataType]=og,Hi[ka.dataType]=QN,Hi[Ma.dataType]=XN,Hi[Ha.dataType]=JN,Hi[Ua.dataType]=$N,Hi[wi.dataType]=qN,Hi[Fa.dataType]=WN,Hi),Xc=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=Od;var n,i,o,a,s,u,c,l,v=0,_,g,p,N,E,x,T,y,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e,re,Ie,$;return Ce(e,t,function(C,Oe){ee(),C.pause=function(){O(),a=!0},C.resume=function(){a&&(a=!1,i=null,Pe(),h())},C.flush=function(f,m,S){if(f===void 0&&(f=!0),!a){O();try{return C[iu](f,null,S||1)}catch(I){H(C[et](),1,22,"flush failed, telemetry will not be collected: "+or(I),{exception:te(I)})}}},C.onunloadFlush=function(){if(!a)if(T||k)try{return C[iu](!0,ar,2)}catch(f){H(C[et](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+or(f),{exception:te(f)})}else C.flush(!1)},C.addHeader=function(f,m){l[f]=m},C[Md]=function(f,m,S,I){C.isInitialized()&&H(C[et](),1,28,"Sender is already initialized"),Oe[Md](f,m,S,I);var P=C.identifier;u=new tT(m.logger),n=0,i=null,o=0,C[ou]=null,c=0;var L=C[et]();p=zt(Jr("Sender"),m.evtNamespace&&m.evtNamespace()),g=Wm(p),C._addHook(Fr(f,function(z){var pe=z.cfg;pe.storagePrefix&&Om(pe.storagePrefix);var Re=mt(null,pe,m),ce=Re.getExtCfg(P,dT),St=ce[au];if(N&&St===N){var ii=pe[au];ii&&ii!==St&&(ce[au]=ii)}vt(ce[su])&&(ce[su]=pe[su]),Ye(C,"_senderConfig",{g:function(){return ce}}),E!==ce[au]&&(N=E=ce[au]),m.activeStatus()===Ft.PENDING?C.pause():m.activeStatus()===Ft.ACTIVE&&C.resume(),U&&U!==ce[Fd]&&R(U,function(zr){delete l[zr.header]}),x=ce[$m],T=(ce[kd]===!1||ce[Hd]===!1)&&en(),y=ce[kd]===!1&&en(),w=ce[Hd]===!1&&en(),k=ce[qm],ve=!!ce[Gd],$=ce.retryCodes;var Nt=ce[Wc],An=!!ce[Xm]&&(!!Nt||Cd()),uf=ce.namePrefix,tD=An!==Z||An&&Se!==uf||An&&fe!==Nt;if(C[ki]){if(tD)try{C._buffer=C._buffer[Kc](L,ce,An)}catch(zr){H(C[et](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+or(zr),{exception:te(zr)})}Pe()}else C[ki]=An?new ag(L,ce):new $d(L,ce);Se=uf,Z=An,fe=Nt,ue=!ce[Jm]&&gi(!0),re=!!ce[Qm],C._sample=new uT(ce.samplingPercentage,L),W=ce[su],!vt(W)&&!ye(W,pe)&&H(L,1,100,"Invalid Instrumentation key "+W),U=ce[Fd],Ne(N)&&!Ad(N)&&U&&U[De]>0?R(U,function(zr){t.addHeader(zr.header,zr.value)}):U=null,F=ce[Zm];var Yg=lt();Ie?Ie.SetConfig(Yg):(Ie=new va,Ie[Md](Yg,L));var cf=ce.httpXHROverride,ff=null,gu=null,nD=pi([3,1,2],ce.transports);ff=Ie&&Ie[$c](nD,!1);var yv=Ie&&Ie.getFallbackInst();A=function(zr,Yo){return X(yv,zr,Yo)},_e=function(zr,Yo){return X(yv,zr,Yo,!1)},ff=k?cf:ff||cf||yv,C[ou]=function(zr,Yo){return X(ff,zr,Yo)},ue&&(_=Wt);var xv=pi([3,1],ce[eg]);ue||(xv=xv.filter(function(zr){return zr!==2})),gu=Ie&&Ie[$c](xv,!0),gu=k?cf:gu||cf,(k||ce[eg]||!_)&&gu&&(_=function(zr,Yo){return X(gu,zr,Yo)}),_||(_=A),j=ce.disableTelemetry,ne=ce[rg]||Zn,V=ce.isRetryDisabled,G=ce[tg]}))},C.processTelemetry=function(f,m){var S;m=C._getTelCtx(m);var I=m[et]();try{var P=Be(f,I);if(!P)return;var L=Ue(f,I);if(!L)return;var z=u[uu](L),pe=C[ki];Pe(z);var Re=(S={},S[ru]=z,S.cnt=0,S);pe[Ui](Re),h()}catch(ce){H(I,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+or(ce),{exception:te(ce)})}C.processNext(f,m)},C.isCompletelyIdle=function(){return!a&&v===0&&C._buffer[Mi]()===0},C.getOfflineListener=function(){return g},C._xhrReadyStateChange=function(f,m,S){if(!tt(m))return vr(f,m,S)},C[iu]=function(f,m,S){f===void 0&&(f=!0);var I;if(!a)try{var P=C[ki];if(j)P[yo]();else{if(P[Mi]()>0){var L=P.getItems();de(S||0,f),m?I=m.call(C,L,f):I=C[ou](L,f)}o=+new Date}O()}catch(pe){var z=Vu();(!z||z>9)&&H(C[et](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+or(pe),{exception:te(pe)})}return I},C.getOfflineSupport=function(){var f;return f={getUrl:function(){return N},createPayload:b},f[uu]=Xe,f.batch=Ve,f.shouldProcess=function(m){return!!Be(m)},f},C._doTeardown=function(f,m){C.onunloadFlush(),hi(g,!1),ee()},C[Ao]=function(f,m,S){if(!tt(f))return Kt(f,m,S)},C[Bd]=function(f,m){if(!tt(f))return jr(f,m)},C[qc]=function(f,m){if(!tt(f))return Ar(f,m)},C._xdrOnLoad=function(f,m){if(!tt(m))return We(f,m)};function We(f,m){var S=lT(f);if(f&&(S+""=="200"||S===""))n=0,C[qc](m,0);else{var I=da(S);I&&I[jd]&&I[jd]>I[zd]&&!V?C[Bd](m,I):C[Ao](m,na(f))}}function lt(){var f;try{var m={xdrOnComplete:function(I,P,L){var z=dt(L);if(z)return We(I,z)},fetchOnComplete:function(I,P,L,z){var pe=dt(z);if(pe)return Fe(I.status,pe,I.url,pe[De],I.statusText,L||"")},xhrOnComplete:function(I,P,L){var z=dt(L);if(z)return vr(I,z,z[De])},beaconOnRetry:function(I,P,L){return rt(I,P,L)}},S=(f={},f[Zm]=F,f.isOneDs=!1,f.disableCredentials=!1,f[Gd]=ve,f.disableBeacon=!w,f.disableBeaconSync=!y,f.senderOnCompleteCallBack=m,f);return S}catch{}return null}function vr(f,m,S){f.readyState===4&&Fe(f.status,m,f.responseURL,S,_i(f),lT(f)||f.response)}function Kt(f,m,S){H(C[et](),2,26,"Failed to send telemetry.",{message:m}),C._buffer&&C._buffer[za](f)}function jr(f,m){for(var S=[],I=[],P=m.errors.reverse(),L=0,z=P;L<z.length;L++){var pe=z[L],Re=f.splice(pe.index,1)[0];M(pe.statusCode)?I[on](Re):S[on](Re)}f[De]>0&&C[qc](f,m[zd]),S[De]>0&&C[Ao](S,_i(null,["partial success",m[zd],"of",m.itemsReceived].join(" "))),I[De]>0&&(Yr(I),H(C[et](),2,40,"Partial success. Delivered: "+f[De]+", Failed: "+S[De]+". Will retry to send "+I[De]+" our of "+m[jd]+" items"))}function Ar(f,m){C._buffer&&C._buffer[za](f)}function dt(f){try{if(f){var m=f,S=m[Vd];return S&&S[De]?S:null}}catch{}return null}function Be(f,m){if(j)return!1;if(!f)return m&&H(m,1,7,"Cannot send empty telemetry"),!1;if(f.baseData&&!f[Kd])return m&&H(m,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(f[Kd]||(f[Kd]="EventData"),!C[ou])return m&&H(m,1,28,"Sender was not initialized"),!1;if(K(f))f[Oc]=C._sample[cu];else return m&&H(m,2,33,"Telemetry item was sampled out and not sent",{SampleRate:C._sample[cu]}),!1;return!0}function Ue(f,m){var S=f.iKey||W,I=e.constructEnvelope(f,S,m,ne);if(!I){H(m,1,47,"Unable to create an AppInsights envelope");return}var P=!1;if(f[yr]&&f[yr][Yc]&&(R(f[yr][Yc],function(L){try{L&&L(I)===!1&&(P=!0,pt(m,"Telemetry processor check returns false"))}catch(z){H(m,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+or(z),{exception:te(z)},!0)}}),delete f[yr][Yc]),!P)return I}function Xe(f){var m=fT,S=C[et]();try{var I=Be(f,S),P=null;I&&(P=Ue(f,S)),P&&(m=u[uu](P))}catch{}return m}function Ve(f){var m=fT;return f&&f[De]&&(m="["+f.join(",")+"]"),m}function b(f){var m,S=we();return m={urlString:N},m[Zr]=f,m.headers=S,m}function K(f){return C._sample.isSampledIn(f)}function ie(f,m,S,I){m===200&&f?C._onSuccess(f,f[De]):I&&C[Ao](f,I)}function X(f,m,S,I){I===void 0&&(I=!0);var P=function(pe,Re,ce){return ie(m,pe,Re,ce)},L=oe(m),z=f&&f.sendPOST;return z&&L?(I&&C._buffer[tu](m),z(L,P,!S)):null}function oe(f){var m;if(Q(f)&&f[De]>0){var S=C[ki].batchPayloads(f),I=we(),P=(m={},m[Zr]=S,m.urlString=N,m.headers=I,m.disableXhrSync=ve,m.disableFetchKeepAlive=!ue,m[Vd]=f,m);return P}return null}function we(){try{var f=l||{};return Ad(N)&&(f[Id[6]]=Id[7]),f}catch{}return null}function Pe(f){var m=f?f[De]:0;return C[ki].size()+m>x?((!g||g.isOnline())&&C[iu](!0,null,10),!0):!1}function Fe(f,m,S,I,P,L){var z=null;if(C._appId||(z=da(L),z&&z.appId&&(C._appId=z.appId)),(f<200||f>=300)&&f!==0){if((f===301||f===307||f===308)&&!Je(S)){C[Ao](m,P);return}if(g&&!g.isOnline()){if(!V){var pe=10;Yr(m,pe),H(C[et](),2,40,". Offline - Response Code: ".concat(f,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(m.length," items."))}return}!V&&M(f)?(Yr(m),H(C[et](),2,40,". Response code "+f+". Will retry to send "+m[De]+" items.")):C[Ao](m,P)}else Je(S),f===206?(z||(z=da(L)),z&&!V?C[Bd](m,z):C[Ao](m,P)):(n=0,C[qc](m,I))}function Je(f){return c>=10?!1:!B(f)&&f!==""&&f!==N?(N=f,++c,!0):!1}function ar(f,m){if(_)_(f,!1);else{var S=Ie&&Ie[$c]([3],!0);return X(S,f,m)}}function rt(f,m,S){var I=f,P=I&&I[Vd];if(re)_e&&_e(P,!0),H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var L=[],z=0;z<P[De];z++){var pe=P[z],Re=[pe],ce=oe(Re);S(ce,m)?C._onSuccess(Re,Re[De]):L[on](pe)}L[De]>0&&(_e&&_e(L,!0),H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function tt(f){try{if(f&&f[De])return Ne(f[0])}catch{}return null}function Wt(f,m){var S=null;if(Q(f)){for(var I=f[De],P=0;P<f[De];P++)I+=f[P].item[De];var L=Ie.getSyncFetchPayload();L+I<=Jx?S=2:en()?S=3:(S=1,H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var z=Ie&&Ie[$c]([S],!0);return X(z,f,m)}return null}function Yr(f,m){if(m===void 0&&(m=1),!(!f||f[De]===0)){var S=C[ki];S[za](f),n++;for(var I=0,P=f;I<P.length;I++){var L=P[I];L.cnt=L.cnt||0,L.cnt++,S[Ui](L)}ni(m),h()}}function ni(f){var m=10,S;if(n<=1)S=m;else{var I=(Math.pow(2,n)-1)/2,P=Math.floor(Math.random()*I*m)+1;P=f*P,S=Math.max(Math.min(P,3600),m)}var L=cr()+S*1e3;i=L}function h(){if(!s&&!a){var f=i?Math.max(0,i-cr()):0,m=Math.max(G,f);s=Mt(function(){s=null,C[iu](!0,null,1)},m)}}function O(){s&&s.cancel(),s=null,i=null}function M(f){return B($)?f===401||f===408||f===429||f===500||f===502||f===503||f===504:$[De]&&$.indexOf(f)>-1}function J(){var f="getNotifyMgr";return C.core[f]?C.core[f]():C.core._notificationManager}function de(f,m){var S=J();if(S&&S[ng])try{S[ng](f,m)}catch(I){H(C[et](),1,74,"send request notification failed: "+or(I),{exception:te(I)})}}function ye(f,m){var S=m.disableInstrumentationKeyValidation,I=B(S)?!1:S;if(I)return!0;var P="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",L=new RegExp(P);return L.test(f)}function ee(){C[ou]=null,C[ki]=null,C._appId=null,C._sample=null,l={},g=null,n=0,i=null,o=null,a=!1,s=null,u=null,c=0,v=0,_=null,p=null,N=null,E=null,x=0,T=!1,U=null,j=!1,W=null,ne=Zn,V=!1,Z=null,Se=Zn,ve=!1,ue=!1,re=!1,A=null,_e=null,Ie=null,Ye(C,"_senderConfig",{g:function(){return rl({},dT)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!B(n)?a=Xt(Xt({},t),{iKey:n}):a=t;var s=eA[a.baseType]||og;return s(i,a,o)},e})(Ii)});var sg=Y(()=>{"use strict";d();vT()});var $a,Jc,ug,qa,cg,fu,_T=Y(()=>{"use strict";d();$a="instrumentationKey",Jc="connectionString",ug="instrumentationkey",qa="endpointUrl",cg="ingestionendpoint",fu="userOverrideEndpointUrl"});var pT={};df(pT,{AppInsightsCore:()=>yi,ApplicationInsights:()=>nA,Sender:()=>Xc,SeverityLevel:()=>zm,arrForEach:()=>R,isNullOrUndefined:()=>B,proxyFunctions:()=>jt,throwError:()=>hr});function tA(r){return r&&r>0}var lu,fg,rA,nA,mT=Y(()=>{"use strict";d();Ur();sg();Yi();$e();Zo();he();_T();$e();Yi();sg();fg=void 0,rA=(lu={diagnosticLogInterval:bs(tA,1e4)},lu[Jc]=fg,lu[qa]=fg,lu[$a]=fg,lu.extensionConfig={},lu);nA=(function(){function r(e){var t=new yi,n;(B(e)||B(e[$a])&&B(e[Jc]))&&hr("Invalid input configuration"),Ce(r,this,function(o){Ye(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,jt(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Qe(e||{},rA);n=s.cfg,t.addUnloadHook(Fr(s,function(){var u=n[Jc];if(vt(u)){var c=ku(function(g,p){Gt(u,function(N){var E=N.value,x=n[$a];if(!N.rejected&&E){n[Jc]=E;var T=Hc(E);x=T[ug]||x}g(x)})}),l=ku(function(g,p){Gt(u,function(N){var E=N.value,x=n[qa];if(!N.rejected&&E){var T=Hc(E),y=T[cg];x=y?y+Xn:x}g(x)})});n[$a]=c,n[qa]=n[fu]||l}if(Ne(u)){var v=Hc(u),_=v[cg];n[qa]=n[fu]?n[fu]:_+Xn,n[$a]=v[ug]||n[$a]}n[qa]=n[fu]?n[fu]:n[qa]})),t.initialize(n,[new Xc])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var TT=nt((pk,NT)=>{"use strict";d();function ri(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function ST(r,e){for(var t="",n=0,i=-1,o=0,a,s=0;s<=r.length;++s){if(s<r.length)a=r.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var u=t.lastIndexOf("/");if(u!==t.length-1){u===-1?(t="",n=0):(t=t.slice(0,u),n=t.length-1-t.lastIndexOf("/")),i=s,o=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=s,o=0;continue}}e&&(t.length>0?t+="/..":t="..",n=2)}else t.length>0?t+="/"+r.slice(i+1,s):t=r.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return t}function aA(r,e){var t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+n:t+r+n:n}var du={resolve:function(){for(var e="",t=!1,n,i=arguments.length-1;i>=-1&&!t;i--){var o;i>=0?o=arguments[i]:(n===void 0&&(n=process.cwd()),o=n),ri(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=ST(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ri(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=ST(e,!t),e.length===0&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return ri(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];ri(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":du.normalize(e)},relative:function(e,t){if(ri(e),ri(t),e===t||(e=du.resolve(e),t=du.resolve(t),e===t))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,o=i-n,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var s=t.length,u=s-a,c=o<u?o:u,l=-1,v=0;v<=c;++v){if(v===c){if(u>c){if(t.charCodeAt(a+v)===47)return t.slice(a+v+1);if(v===0)return t.slice(a+v)}else o>c&&(e.charCodeAt(n+v)===47?l=v:v===0&&(l=0));break}var _=e.charCodeAt(n+v),g=t.charCodeAt(a+v);if(_!==g)break;_===47&&(l=v)}var p="";for(v=n+l+1;v<=i;++v)(v===i||e.charCodeAt(v)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+t.slice(a+l):(a+=l,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(ri(e),e.length===0)return".";for(var t=e.charCodeAt(0),n=t===47,i=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){i=a;break}}else o=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ri(e);var n=0,i=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!o){n=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=e.length),e.slice(n,i)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){n=a+1;break}}else i===-1&&(o=!1,i=a+1);return i===-1?"":e.slice(n,i)}},extname:function(e){ri(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(u===47){if(!o){n=s+1;break}continue}i===-1&&(o=!1,i=s+1),u===46?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return aA("/",e)},parse:function(e){ri(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),i=n===47,o;i?(t.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,v=0;l>=o;--l){if(n=e.charCodeAt(l),n===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),n===46?a===-1?a=l:v!==1&&(v=1):a!==-1&&(v=-1)}return a===-1||u===-1||v===0||v===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&i?t.base=t.name=e.slice(1,u):t.base=t.name=e.slice(s,u)):(s===0&&i?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};du.posix=du;NT.exports=du});var Eg=nt(Po=>{"use strict";d();Object.defineProperty(Po,"__esModule",{value:!0});Po.TargetPopulation=Po.Filters=Po.VSCodeFilterProvider=void 0;var ov=require("vscode"),gg=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 ti.ApplicationVersion:return r.trimVersionSuffix(ov.version);case ti.Build:return ov.env.appName;case ti.ClientId:return ov.env.machineId;case ti.ExtensionName:return this.extensionName;case ti.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case ti.Language:return ov.env.language;case ti.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(ti);for(let n of t)e.set(n,this.getFilterValue(n));return e}};Po.VSCodeFilterProvider=gg;var ti;(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"})(ti||(Po.Filters=ti={}));var OT;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(OT||(Po.TargetPopulation=OT={}))});var YT=nt(av=>{"use strict";d();Object.defineProperty(av,"__esModule",{value:!0});av.BaseFeatureProvider=void 0;var hg=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}};av.BaseFeatureProvider=hg});var LT=nt(sv=>{"use strict";d();Object.defineProperty(sv,"__esModule",{value:!0});sv.FilteredFeatureProvider=void 0;var pA=YT(),Sg=class extends pA.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)}};sv.FilteredFeatureProvider=Sg});var UT=nt(Ro=>{"use strict";d();Object.defineProperty(Ro,"__esModule",{value:!0});Ro.TasApiFeatureProvider=Ro.TASAPI_FETCHERROR_EVENTNAME=void 0;var mA=LT();Ro.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var Ng="ErrorType",Tg=class extends mA.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(Ng,"ServerError"):u.responseReceived===!1?c.set(Ng,"NoResponse"):c.set(Ng,"GenericError"),this.telemetry.postEvent(Ro.TASAPI_FETCHERROR_EVENTNAME,c)}if(!n)throw Error(Ro.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}}};Ro.TasApiFeatureProvider=Tg});var MT=nt(_u=>{"use strict";d();Object.defineProperty(_u,"__esModule",{value:!0});_u.HttpClient=_u.FetchError=void 0;var vu=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};_u.FetchError=vu;var Dg=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new vu("No response received",!1);if(!t.ok)throw new vu("Response not ok",!0,!1);let n=await t.json();if(!n)throw new vu("No data received",!1);return{data:n}}};_u.HttpClient=Dg});var FT=nt(uv=>{"use strict";d();Object.defineProperty(uv,"__esModule",{value:!0});uv.MemoryKeyValueStorage=void 0;var Ig=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)}};uv.MemoryKeyValueStorage=Ig});var kT=nt(cv=>{"use strict";d();Object.defineProperty(cv,"__esModule",{value:!0});cv.ExperimentationServiceBase=void 0;var gA=FT(),yg=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 gA.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)}};cv.ExperimentationServiceBase=yg});var HT=nt(fv=>{"use strict";d();Object.defineProperty(fv,"__esModule",{value:!0});fv.PollingService=void 0;var xg=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())}};fv.PollingService=xg});var GT=nt(lv=>{"use strict";d();Object.defineProperty(lv,"__esModule",{value:!0});lv.ExperimentationServiceAutoPolling=void 0;var EA=kT(),hA=HT(),Ag=class extends EA.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 hA.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)}};lv.ExperimentationServiceAutoPolling=Ag});var BT=nt(vv=>{"use strict";d();Object.defineProperty(vv,"__esModule",{value:!0});vv.ExperimentationService=void 0;var SA=UT(),NA=MT(),TA=GT(),dv=class extends TA.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 SA.TasApiFeatureProvider(new NA.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};vv.ExperimentationService=dv;dv.REFRESH_RATE_IN_MINUTES=30});var jT=nt(_v=>{"use strict";d();Object.defineProperty(_v,"__esModule",{value:!0});_v.ExperimentationService=void 0;var DA=BT();Object.defineProperty(_v,"ExperimentationService",{enumerable:!0,get:function(){return DA.ExperimentationService}})});var zT=nt(pv=>{"use strict";d();Object.defineProperty(pv,"__esModule",{value:!0});pv.MementoKeyValueStorage=void 0;var bg=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)}};pv.MementoKeyValueStorage=bg});var VT=nt(Pg=>{"use strict";d();Object.defineProperty(Pg,"__esModule",{value:!0});var Cg=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)}};Pg.default=Cg});var WT=nt(pu=>{"use strict";d();Object.defineProperty(pu,"__esModule",{value:!0});pu.getExperimentationServiceAsync=pu.getExperimentationService=void 0;var IA=Eg(),yA=jT(),Rg=require("vscode"),xA=zT(),AA=VT(),bA="https://default.exp-tas.com/vscode/ab",CA="query-expfeature",PA="abexp.assignmentcontext",RA="VSCode.ABExp.FeatureData",wA=1e3*60*30;function KT(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=Rg.workspace.getConfiguration("telemetry");if(!(Rg.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):Rg.env.isTelemetryEnabled))return new AA.default;let c=[new IA.VSCodeFilterProvider(r,e,t),...o],l=new xA.MementoKeyValueStorage(i);return new yA.ExperimentationService({filterProviders:c,telemetry:n,storageKey:RA,keyValueStorage:l,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:PA,telemetryEventName:CA,endpoint:bA,refetchInterval:wA})}pu.getExperimentationService=KT;async function OA(r,e,t,n,i,...o){let a=KT(r,e,t,n,i,...o);return await a.initializePromise,a}pu.getExperimentationServiceAsync=OA});var qT=nt(wo=>{"use strict";d();Object.defineProperty(wo,"__esModule",{value:!0});wo.TargetPopulation=wo.getExperimentationServiceAsync=wo.getExperimentationService=void 0;var $T=WT();Object.defineProperty(wo,"getExperimentationService",{enumerable:!0,get:function(){return $T.getExperimentationService}});Object.defineProperty(wo,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return $T.getExperimentationServiceAsync}});var YA=Eg();Object.defineProperty(wo,"TargetPopulation",{enumerable:!0,get:function(){return YA.TargetPopulation}})});var KA={};df(KA,{activate:()=>VA});module.exports=cD(KA);d();var He=Tt(require("vscode"));d();var xr=Tt(require("vscode"));d();var Qc=Tt(require("vscode"));d();var Lx=async(r,e,t)=>{let n=await Promise.resolve().then(()=>(ma(),mS)),i=await Promise.resolve().then(()=>(aN(),oN)),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 l={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=l}let c=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(l=>{l.ext=l.ext??{},l.ext.web=l.ext.web??{},l.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',c&&(l.ext.utc=l.ext.utc??{},l.ext.utc.flags=8462029)}),o},sN=async(r,e,t)=>{let n=await Lx(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!
12
12
  `+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!
13
- `+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};d();Yi();d();var Ba=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}};var gT=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>(mT(),pT)),u={};if(n){let v={alwaysUseXhrOverride:!0,httpXHROverride:n};u[Od]=v}let c;r.startsWith("InstrumentationKey=")||(c=r);let l=c?{instrumentationKey:c}:{connectionString:r};o=new s.ApplicationInsights({...l,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&&Ba.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)})}};d();var qd=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()))}};d();var Gi;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Gi||(Gi={}));var Xd=class{constructor(e,t){this._instantiationStatus=Gi.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Gi.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Gi.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===Gi.NOT_INSTANTIATED&&(this._instantiationStatus=Gi.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Gi.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Gi.INSTANTIATED}))}};function iA(r){if(r.userAgentData){let e=r.userAgentData.brands[r.userAgentData.brands.length-1];return`${r.userAgentData.platform} - ${e?.brand} v${e?.version}}`}else return r.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g,"$1")}var Zc=class extends qd{constructor(e,t){let n=a=>gT(a,Qc.env.machineId,Qc.env.sessionId,void 0,t);Ba.shouldUseOneDataSystemSDK(e)&&(n=a=>sN(a,Qc));let i={release:iA(navigator),platform:"web",architecture:"web"},o=new Xd(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,Qc,{additionalCommonProperties:Ba.getAdditionalCommonProperties(i)})}};d();var Jd=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)}}};d();var Le=Tt(require("vscode"));d();var oA=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function ET(r){return oA.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function Xa(r,e){return r==="github"||lg(e)}function lg(r){return/\.ghe\.com$/.test(r.authority)}d();var dg=Tt(require("vscode"));d();var ef="Timed out",ei="User Cancelled",Qd="network error",an="Cancelled";async function Zd(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":`${dg.env.appName} (${dg.env.appHost})`}})}catch(a){throw n.error(a.message),new Error(Qd)}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)}d();d();var xn=fetch;var ev=class{constructor(e){this._logger=e}_logger;async send({url:e,method:t,headers:n,body:i,retryFallbacks:o}){let a=await xn(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()}}};d();var Ja=globalThis.crypto;d();var yT=Tt(TT()),Ee=require("vscode");d();var Gr={gitHubClientId:"01ab8ac9400c4e429b23"};d();var rv=class{constructor(...e){throw new Error("Not implemented")}};d();var DT=require("vscode");var sA=(r,e)=>e(r);function rf(r,e=sA){let t,n=new DT.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 vg(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 IT(r){let e=new Uint8Array(r);return Ja.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function xT(r){let t=new TextEncoder().encode(r),n=await Ja.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function AT(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=Gr.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",Gr.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await xn(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(),l=new Error(c);throw l.name="GitHubTokenExchangeError",l}}var _g=class{label=Ee.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:l,logger:v}){return v.info(`Trying without local server... (${e})`),await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,title:Ee.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(_,g)=>{let p=IT(64),N=await xT(p),E=c.waitForCode(v,e,a,g,t),x=new URLSearchParams([["client_id",Gr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",N],["code_challenge_method","S256"]]);if(l?x.append("login",l):x.append("prompt","select_account"),s&&x.append("provider",s),u)for(let[W,ne]of Object.entries(u))x.append(W,ne);let T=Ee.Uri.parse(t.with({path:"/login/oauth/authorize",query:x.toString()}).toString(!0));await Ee.env.openExternal(T);let I=await E,w=await Ee.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),U=w?.github?Ee.Uri.parse(`${w.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await AT(v,U,n,I,p,o)})}},pg=class{label=Ee.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 Ee.window.withProgress({location:Ee.ProgressLocation.Notification,title:Ee.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(l,v)=>{let _=IT(64),g=await xT(_),p=new URLSearchParams([["client_id",Gr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",g],["code_challenge_method","S256"]]);if(u?p.append("login",u):p.append("prompt","select_account"),a&&p.append("provider",a),s)for(let[w,U]of Object.entries(s))p.append(w,U);let N=t.with({path:"/login/oauth/authorize",query:p.toString()}),E=new rv(yT.join(__dirname,"../media"),N.toString(!0),i.toString(!0),Ee.env.isAppPortable),x=await E.start(),T;try{Ee.env.openExternal(Ee.Uri.parse(`http://127.0.0.1:${x}/signin?nonce=${encodeURIComponent(E.nonce)}`));let{code:w}=await Promise.race([E.waitForOAuthResponse(),new Promise((U,j)=>setTimeout(()=>j(ef),3e5)),rf(v.onCancellationRequested,(U,j,W)=>{W(ei)}).promise]);T=w}finally{setTimeout(()=>{E.stop()},5e3)}return await AT(c,t.with({path:"/login/oauth/access_token"}),n,T,_,o)})}},tf=class{label=Ee.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=${Gr.gitHubClientId}&scope=${e}`}),s=await xn(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=Ee.l10n.t("Copy & Continue to Browser");if(await Ee.window.showInformationMessage(Ee.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Ee.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},c)!==c)throw new Error(ei);await Ee.env.clipboard.writeText(u.user_code);let v=Ee.Uri.parse(u.verification_uri),_=new URLSearchParams(v.query);if(n&&_.set("provider",n),i)for(let[p,N]of Object.entries(i))_.set(p,N);(n||i)&&(v=v.with({query:_.toString()}));let g=await Ee.env.asExternalUri(v);return await Ee.env.openExternal(g),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,cancellable:!0,title:Ee.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=${Gr.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(ei);let c;try{c=await xn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!c.ok)continue;let l=await c.json();if(l.error!=="authorization_pending"){if(l.error)throw new Error(l.error_description);return l.access_token}}throw new Error(ef)})}},mg=class{label=Ee.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=Ee.l10n.t("Continue to GitHub");if(await Ee.window.showInformationMessage(Ee.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Ee.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(ei);let s=`${Ee.env.appName} (${e})`,u=await Ee.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Ee.env.openExternal(u);let c=await Ee.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!c)throw new Error(ei);let l=!i||lg(i)?Ee.Uri.parse(`${t.scheme}://api.${t.authority}`):Ee.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),v=await this.getScopes(c,l,n);if(!e.split(" ").every(g=>{let p=v.includes(g);return p||!g.includes(":")?p:g.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 xn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Ee.env.appName} (${Ee.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(Qd)}}},uA=[new pg,new _g,new tf,new mg];function bT(r){let e=uA.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 Gr.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Ee.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof tf),...e.filter(n=>!(n instanceof tf))]:e}function CT(r){return r==="google"||r==="apple"||r==="microsoft"}d();function PT(r){return btoa(r)}d();var ft=Tt(require("vscode"));var cA="urn:ietf:params:oauth:grant-type:token-exchange",RT="urn:ietf:params:oauth:token-type:access_token",wT=["read:user"];var ht=class extends Error{constructor(t,n){super(n);this.failure=t}failure},tv=class{async show(e,...t){return await ft.window.showInformationMessage(e,{modal:!0},...t)}},nv=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,wT),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(an);let l=await this.exchange(n,a.token,e),v=await this.verifyAccount(l.token,u.id);return await this.linkAccounts(a.account.label,v),{token:l.token,expiresAfter:l.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 ht("microsoftSignIn",ft.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,wT)).token,await this.discoverAccount(t)}catch(n){let i=n instanceof ht?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=Gr.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(`${Gr.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 ht("accountMismatch",ft.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 ht("configuration",ft.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 dA(i)?new Error(an):(this._logger.error(`Could not acquire a Microsoft access token: ${i?.message??i}`),new ht("microsoftSignIn",ft.l10n.t("Could not sign in to Microsoft. Try again or choose a different way to sign in.")))}if(!n)throw new Error(an);return n}async linkAccounts(e,t){await this._accountLinks.link(e,{id:t.id,label:t.accountName})}async discoverAccount(e){try{return await Zd(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 ht("identity",ft.l10n.t("Could not read the GitHub account linked to your Microsoft account."))}}async confirmAccount(e){let t=`@${e.accountName}`,n=ft.l10n.t("Sign in with SSO"),i=ft.l10n.t("Use a Different Microsoft Account");switch(await this._confirmation.show(ft.l10n.t(`Your organization's Microsoft sign-in is linked to this GitHub account:
13
+ `+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};d();Yi();d();var Ba=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}};var gT=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>(mT(),pT)),u={};if(n){let v={alwaysUseXhrOverride:!0,httpXHROverride:n};u[Od]=v}let c;r.startsWith("InstrumentationKey=")||(c=r);let l=c?{instrumentationKey:c}:{connectionString:r};o=new s.ApplicationInsights({...l,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&&Ba.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)})}};d();var qd=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()))}};d();var Gi;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Gi||(Gi={}));var Xd=class{constructor(e,t){this._instantiationStatus=Gi.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Gi.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Gi.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===Gi.NOT_INSTANTIATED&&(this._instantiationStatus=Gi.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Gi.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Gi.INSTANTIATED}))}};function iA(r){if(r.userAgentData){let e=r.userAgentData.brands[r.userAgentData.brands.length-1];return`${r.userAgentData.platform} - ${e?.brand} v${e?.version}}`}else return r.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g,"$1")}var Zc=class extends qd{constructor(e,t){let n=a=>gT(a,Qc.env.machineId,Qc.env.sessionId,void 0,t);Ba.shouldUseOneDataSystemSDK(e)&&(n=a=>sN(a,Qc));let i={release:iA(navigator),platform:"web",architecture:"web"},o=new Xd(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,Qc,{additionalCommonProperties:Ba.getAdditionalCommonProperties(i)})}};d();var Jd=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)}}};d();var Le=Tt(require("vscode"));d();var oA=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function ET(r){return oA.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function Xa(r,e){return r==="github"||lg(e)}function lg(r){return/\.ghe\.com$/.test(r.authority)}d();var dg=Tt(require("vscode"));d();var ef="Timed out",ei="User Cancelled",Qd="network error",an="Cancelled";async function Zd(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":`${dg.env.appName} (${dg.env.appHost})`}})}catch(a){throw n.error(a.message),new Error(Qd)}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)}d();d();var xn=fetch;var ev=class{constructor(e){this._logger=e}_logger;async send({url:e,method:t,headers:n,body:i,retryFallbacks:o}){let a=await xn(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()}}};d();var Ja=globalThis.crypto;d();var IT=Tt(TT()),Ee=require("vscode");d();var Gr={gitHubClientId:"01ab8ac9400c4e429b23"};d();var rv=class{constructor(...e){throw new Error("Not implemented")}};d();var DT=require("vscode"),sA=(r,e)=>e(r);function rf(r,e=sA){let t,n=new DT.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 vg(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 yT(r){let e=new Uint8Array(r);return Ja.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function xT(r){let t=new TextEncoder().encode(r),n=await Ja.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function AT(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=Gr.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",Gr.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await xn(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(),l=new Error(c);throw l.name="GitHubTokenExchangeError",l}}var _g=class{label=Ee.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:l,logger:v}){return v.info(`Trying without local server... (${e})`),await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,notificationId:"githubAuthentication.signIn.browser",title:Ee.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(_,g)=>{let p=yT(64),N=await xT(p),E=c.waitForCode(v,e,a,g,t),x=new URLSearchParams([["client_id",Gr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",N],["code_challenge_method","S256"]]);if(l?x.append("login",l):x.append("prompt","select_account"),s&&x.append("provider",s),u)for(let[W,ne]of Object.entries(u))x.append(W,ne);let T=Ee.Uri.parse(t.with({path:"/login/oauth/authorize",query:x.toString()}).toString(!0));await Ee.env.openExternal(T);let y=await E,w=await Ee.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),U=w?.github?Ee.Uri.parse(`${w.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await AT(v,U,n,y,p,o)})}},pg=class{label=Ee.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 Ee.window.withProgress({location:Ee.ProgressLocation.Notification,notificationId:"githubAuthentication.signIn.browser",title:Ee.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(l,v)=>{let _=yT(64),g=await xT(_),p=new URLSearchParams([["client_id",Gr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",g],["code_challenge_method","S256"]]);if(u?p.append("login",u):p.append("prompt","select_account"),a&&p.append("provider",a),s)for(let[w,U]of Object.entries(s))p.append(w,U);let N=t.with({path:"/login/oauth/authorize",query:p.toString()}),E=new rv(IT.join(__dirname,"../media"),N.toString(!0),i.toString(!0),Ee.env.isAppPortable),x=await E.start(),T;try{Ee.env.openExternal(Ee.Uri.parse(`http://127.0.0.1:${x}/signin?nonce=${encodeURIComponent(E.nonce)}`));let{code:w}=await Promise.race([E.waitForOAuthResponse(),new Promise((U,j)=>setTimeout(()=>j(ef),3e5)),rf(v.onCancellationRequested,(U,j,W)=>{W(ei)}).promise]);T=w}finally{setTimeout(()=>{E.stop()},5e3)}return await AT(c,t.with({path:"/login/oauth/access_token"}),n,T,_,o)})}},tf=class{label=Ee.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=${Gr.gitHubClientId}&scope=${e}`}),s=await xn(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=Ee.l10n.t("Copy & Continue to Browser");if(await Ee.window.showInformationMessage(Ee.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Ee.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},c)!==c)throw new Error(ei);await Ee.env.clipboard.writeText(u.user_code);let v=Ee.Uri.parse(u.verification_uri),_=new URLSearchParams(v.query);if(n&&_.set("provider",n),i)for(let[p,N]of Object.entries(i))_.set(p,N);(n||i)&&(v=v.with({query:_.toString()}));let g=await Ee.env.asExternalUri(v);return await Ee.env.openExternal(g),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,notificationId:"githubAuthentication.signIn.deviceCode",cancellable:!0,title:Ee.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=${Gr.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(ei);let c;try{c=await xn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!c.ok)continue;let l=await c.json();if(l.error!=="authorization_pending"){if(l.error)throw new Error(l.error_description);return l.access_token}}throw new Error(ef)})}},mg=class{label=Ee.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=Ee.l10n.t("Continue to GitHub");if(await Ee.window.showInformationMessage(Ee.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Ee.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(ei);let s=`${Ee.env.appName} (${e})`,u=await Ee.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Ee.env.openExternal(u);let c=await Ee.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!c)throw new Error(ei);let l=!i||lg(i)?Ee.Uri.parse(`${t.scheme}://api.${t.authority}`):Ee.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),v=await this.getScopes(c,l,n);if(!e.split(" ").every(g=>{let p=v.includes(g);return p||!g.includes(":")?p:g.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 xn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Ee.env.appName} (${Ee.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(Qd)}}},uA=[new pg,new _g,new tf,new mg];function bT(r){let e=uA.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 Gr.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Ee.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof tf),...e.filter(n=>!(n instanceof tf))]:e}function CT(r){return r==="google"||r==="apple"||r==="microsoft"}d();function PT(r){return btoa(r)}d();var ft=Tt(require("vscode"));var cA="urn:ietf:params:oauth:grant-type:token-exchange",RT="urn:ietf:params:oauth:token-type:access_token",wT=["read:user"];var ht=class extends Error{constructor(t,n){super(n);this.failure=t}failure},tv=class{async show(e,...t){return await ft.window.showInformationMessage(e,{modal:!0},...t)}},nv=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,wT),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(an);let l=await this.exchange(n,a.token,e),v=await this.verifyAccount(l.token,u.id);return await this.linkAccounts(a.account.label,v),{token:l.token,expiresAfter:l.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 ht("microsoftSignIn",ft.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,wT)).token,await this.discoverAccount(t)}catch(n){let i=n instanceof ht?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=Gr.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(`${Gr.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 ht("accountMismatch",ft.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 ht("configuration",ft.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 dA(i)?new Error(an):(this._logger.error(`Could not acquire a Microsoft access token: ${i?.message??i}`),new ht("microsoftSignIn",ft.l10n.t("Could not sign in to Microsoft. Try again or choose a different way to sign in.")))}if(!n)throw new Error(an);return n}async linkAccounts(e,t){await this._accountLinks.link(e,{id:t.id,label:t.accountName})}async discoverAccount(e){try{return await Zd(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 ht("identity",ft.l10n.t("Could not read the GitHub account linked to your Microsoft account."))}}async confirmAccount(e){let t=`@${e.accountName}`,n=ft.l10n.t("Sign in with SSO"),i=ft.l10n.t("Use a Different Microsoft Account");switch(await this._confirmation.show(ft.l10n.t(`Your organization's Microsoft sign-in is linked to this GitHub account:
14
14
 
15
15
  {0}
16
16
 
17
- 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:Gr.gitHubClientId,grant_type:cA,subject_token:t,subject_token_type:RT,...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: ${lA(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(E){throw this._logger.error(`Could not reach GitHub to exchange the Microsoft token: ${E?.message??E}`),new ht("network",ft.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:l,token_type:v,expires_in:_,scope:g}=u;if(typeof c!="string"||!c)throw this.protocolError("no access token");if(l!==RT)throw this.protocolError("unexpected issued token type");if(typeof v!="string"||v.toLowerCase()!=="bearer")throw this.protocolError("unexpected token type");if(typeof _!="number"||!isFinite(_)||_<=0)throw this.protocolError("missing or invalid expiry");if(g!==void 0&&typeof g!="string")throw this.protocolError("invalid granted scopes");this._logger.info(`The GitHub token exchange granted the scopes: ${g??"unreported"}`);let p=g?.split(/[\s,]+/).filter(Boolean),N=i?.filter(E=>p&&!p.includes(E));return N?.length&&this._logger.warn(`The GitHub token exchange did not grant every requested scope. Missing: ${N.join(" ")}`),{token:c,expiresAfter:_*1e3,grantedScopes:p}}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 ht("configuration",ft.l10n.t("GitHub is not configured to accept Microsoft sign in from this application ({0}).",e));case"invalid_grant":return new ht("identity",ft.l10n.t("GitHub did not accept your Microsoft account for sign in."));default:return new ht("protocol",ft.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 ht("protocol",ft.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"}.`)}},fA=["iss","aud","appid","azp","tid"];function lA(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=fA.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 dA(r){if(r===an)return!0;let e=r?.message;return e===an||e==="User did not consent to login."}var vA="https://vscode.dev/redirect",_A="https://insiders.vscode.dev/redirect",iv=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 ev(e);let u=Xa(this._type,s)?this.baseUri.with({path:"/login/oauth/access_token"}).toString(!0):void 0,c=Xa(this._type,s)?this.getServerUri(`/applications/${Gr.gitHubClientId}/token`).toString(!0):void 0;this._entraTokenExchange=new nv(e,{tokenExchange:u,tokenRevocation:c,userInfo:this.getServerUri("/user").toString()},o,a,this._http,new tv)}_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=vA,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=_A)}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 E=>{if(a===void 0)return;let x=a?Le.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",E):Le.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",E);if(await Le.window.showWarningMessage(x,s,u)!==s)throw new Error(an)},l=Ja.getRandomValues(new Uint32Array(2)).reduce((E,x)=>E+=x.toString(16),""),v=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(l)}`)),_=ET(v),g=Xa(this._type,this._ghesUri),p=typeof process<"u"&&typeof process?.versions?.node=="string",N=bT({target:this._type==="github"?0:g?2:1,extensionHost:p?this._extensionKind===Le.ExtensionKind.UI?2:1:0,isSupportedClient:_});for(let E of N)try{return E!==N[0]&&await c(E.label),{token:await E.trigger({scopes:e,callbackUri:v,nonce:l,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(x){a=this.processLoginError(x)}throw new Error(a?an:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!Gr.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(!Xa(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 "+PT(`${Gr.gitHubClientId}:${Gr.gitHubClientSecret}`),n=this.getServerUri(`/applications/${Gr.gitHubClientId}/token`);try{let i=await xn(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 Xa(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 Zd(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 xn("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(Xa(this._type,this._ghesUri))t="hosted";else{let n=await xn(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===an)throw e;return this._logger.error(e.message??e),e.message===ei}};d();var XT=Tt(require("vscode")),Oo=Tt(qT()),mv=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(XT.env.uriScheme){case"vscode":e=Oo.TargetPopulation.Public;break;case"vscode-insiders":e=Oo.TargetPopulation.Insiders;break;case"vscode-exploration":e=Oo.TargetPopulation.Internal;break;case"code-oss":e=Oo.TargetPopulation.Team;break;default:e=Oo.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,Oo.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()}};d();var JT=Tt(require("vscode"));var gv=class{constructor(e,t){this.type=e;let n=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=JT.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}};d();var Ev=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}}};d();var wg=Tt(require("vscode")),hv="microsoft",LA="12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default",Sv=class{async getToken(e){let t=await wg.authentication.getSession(hv,[LA],UA(e));return t&&{token:t.accessToken,account:t.account}}async getAccounts(){return await wg.authentication.getAccounts(hv)}};function UA(r){return r.silent?{silent:!0,account:r.account}:r.forceNewSession?{forceNewSession:!0,clearSessionPreference:!0}:{createIfNone:!0,account:r.account}}d();var of=Tt(require("vscode")),Qa="github-enterprise.uri",Nv=".ghes.auth";function Br(r){return r.with({scheme:r.scheme.toLowerCase(),path:r.path.replace(/\/+$/,"")}).toString()}function Og(r){return`${Br(r)}${Nv}`}var nf=".microsoftAccountLinks";function MA(r,e){if(!r.endsWith(Nv)||r.includes("://"))return;let t=r.slice(0,-Nv.length),n=t.indexOf("/");return of.Uri.from({scheme:e,authority:n<0?t:t.slice(0,n),path:n<0?"":t.slice(n)})}async function QT(r,e){return{key:e,tokens:await r.secrets.get(e),links:r.globalState.get(`${e}${nf}`)}}function ZT(r,e,t){if(r.length<2)return r[0];let n=r.find(i=>i.key===e);if(!n)throw new Error(of.l10n.t("Multiple saved authentication stores match {0}. Set {1} to the previously used URI before migrating its saved sign-in.",t.toString(!0),Qa));return n}async function FA(r,e,t,n,i){let o=t.tokens===void 0?ZT(e.filter(s=>s.tokens!==void 0),n,i):void 0,a=t.links===void 0?ZT(e.filter(s=>s.links!==void 0),n,i):void 0;a?.links!==void 0&&await r.globalState.update(`${t.key}${nf}`,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}${nf}`,void 0)}async function eD(r,e,t=[e],n){let i=Br(e),o=new Set([...await r.secrets.keys(),...r.globalState.keys().filter(_=>_.endsWith(nf)).map(_=>_.slice(0,-nf.length))]),a=[];for(let _ of o){let g=MA(_,e.scheme);if(g&&Br(g)===i){let p=await QT(r,_);(p.tokens!==void 0||p.links!==void 0)&&a.push(p)}}let s=await QT(r,Og(e));if(!a.length)return;let u=n??(t.length===1?t[0]:void 0),c=u&&Br(u.with({scheme:e.scheme}))===i;if(c&&Br(u)!==i)return;let l=new Set(t.filter(_=>Br(_.with({scheme:e.scheme}))===i).map(Br));if(!c&&l.size>1){let _=s.tokens===void 0&&a.some(p=>p.tokens!==void 0),g=s.links===void 0&&a.some(p=>p.links!==void 0);if(!_&&!g)return;throw new Error(of.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,Qa))}let v=c?`${u.authority}${u.path}${Nv}`:void 0;await FA(r,a,s,v,e)}var kA=3600*1e3,HA="_workbenchEntraExchangeProbe";function GA(r){if(!r||typeof r!="object")throw new Error("Options are not an object");let{provider:e,extraAuthorizeParameters:t}=r;if(e!==void 0&&!CT(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 Tv=class extends xr.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=rf(this.event,this.handleEvent(e,a)),this._codeExchangePromises.set(a,u));try{return await Promise.race([u.promise,new Promise((c,l)=>setTimeout(()=>l(ef),3e5)),rf(i.onCancellationRequested,(c,l,v)=>{v(ei)}).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 BA(){return Ja.getRandomValues(new Uint32Array(2)).reduce((r,e)=>r+=e.toString(16),"")}var mu=class{constructor(e,t,n,i){this.context=e;let{aiKey:o}=e.extension.packageJSON;this._telemetryReporter=new mv(e,new Zc(o));let a=n?"github-enterprise":"github";this._accountLabelSuffix=n?` - ${n.authority}${n.path.replace(/\/+$/,"")}`:void 0,this._logger=new gv(a,n);let s=i??(a==="github"?`${a}.auth`:`${n?.authority}${n?.path}.ghes.auth`);this._keychain=new Jd(this.context,s,this._logger),this._accountLinks=new Ev(this.context.globalState,`${s}.microsoftAccountLinks`,this._logger),this._microsoft=new Sv,this._githubServer=new iv(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=xr.Disposable.from(this._telemetryReporter,this._sessionChangeEmitter,this._logger,this.context.secrets.onDidChange(()=>this.checkForUpdates()),xr.authentication.onDidChangeSessions(async u=>{u.provider.id===hv&&(this._microsoftGeneration++,this._restoresTried.clear(),await this.evictUnreachable())}))}context;_sessionChangeEmitter=new xr.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?.[HA];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&&Br(v.authorizationServer)===Br(t.authorizationServer),u=a.filter(v=>s(v)&&(!t?.account||this.accountName(v.account.label)===this.accountName(t.account.label))&&(!i.length||vg([...v.scopes].sort(),i))),c=await this.stillGood(u),l=await this.restore(i,t?.account,c);return this._logger.info(`Got ${c.length+l.length} sessions for ${o}...`),[...c,...l.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}
18
- ${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 ht&&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+kA?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),l=c?c.expiresAt-Date.now():0;c&&l>0?s.push({...c.session,expiresAfter:l}):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 l=a.account?.icon?xr.Uri.from(a.account.icon):u?.avatarUrl?xr.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:l},scopes:a.scopes,accessToken:a.accessToken,authorizationServer:a.authorizationServer?xr.Uri.from(a.authorizationServer):xr.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&&!GA(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 _=await this.createMicrosoftSession(e,i,t?.authorizationServer);return this._logger.info("Login success!"),_}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 l=a.findIndex(_=>_.account.id===c.account.id&&vg([..._.scopes].sort(),n)),v=new Array;return l>-1?v.push(...a.splice(l,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"),xr.window.showErrorMessage(xr.l10n.t("Sign in failed: {0}",`${n}`)),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:BA(),accessToken:t.token,account:{label:this.accountLabel(e.accountName),id:e.id,icon:e.avatarUrl?xr.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&&Br(e.authorizationServer)!==Br(t))throw new Error(xr.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"),xr.window.showErrorMessage(xr.l10n.t("Sign out failed: {0}",`${t}`)),this._logger.error(t),t}}};d();var rr=Tt(require("vscode"));d();var af=Tt(require("vscode"));var Za="github-enterprise.uris";function rD(r,e){let t=r.inspect(Za),n=t&&(t.globalValue!==void 0||e&&(t.workspaceValue!==void 0||t.workspaceFolderValue!==void 0)),i=r.get(Qa),o=n?r.get(Za):i?[i]:[];if(!Array.isArray(o))throw new Error(af.l10n.t("GitHub Enterprise URIs must be an array of instance URLs."));return o.map(jA)}function jA(r){try{if(typeof r!="string"||!r)throw new Error("Expected a non-empty URI");let e=af.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(af.l10n.t("Invalid GitHub Enterprise instance URI: {0}",String(r)))}}function sf(r){r.listener.dispose(),r.engine.dispose(),r.initialChanges.clear()}function zA(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 Dv=class{constructor(e,t){this._context=e;this._uriHandler=t}_context;_uriHandler;_onDidChangeSessions=new rr.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_hosts=new Map;_disposeCancellation=new rr.CancellationTokenSource;_pendingUpdate=Promise.resolve();_registration;_configurationError=rr.l10n.t("Configure {0} before signing in to GitHub Enterprise.",Za);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(Br))].sort(),i=n.filter(u=>!this._hosts.has(u)),o=[...this._hosts.values()].filter(u=>!n.includes(u.key));if(this._configurationError=t?.error??rr.l10n.t("Configure {0} before signing in to GitHub Enterprise.",Za),this._registration&&!i.length&&!o.length)return;for(let u of i)await eD(this._context,rr.Uri.parse(u),e,t?.legacyUri),this.throwIfDisposed();let a=this.createHosts(i),s=this._disposeCancellation.token.onCancellationRequested(()=>a.forEach(sf));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 l=a.flatMap((v,_)=>zA(v,u[_]));this.commitHosts(n,a,o,{added:l,removed:c,changed:[]})}catch(u){throw a.forEach(sf),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(sf),n}}createHost(e){let t=rr.Uri.parse(e),n=new mu(this._context,this._uriHandler,t,Og(t)),i=new Map,o={key:e,uri:t,authorizationServer:rr.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(sf),(i.added?.length||i.removed?.length)&&this._onDidChangeSessions.fire(i)}registerProvider(){this._registration?.dispose(),this._registration=rr.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 rr.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(Br(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 rr.window.showQuickPick(o.map(s=>({label:s.uri.toString(!0),host:s})),{title:rr.l10n.t("Sign in to GitHub Enterprise"),placeHolder:rr.l10n.t("Select the GitHub Enterprise instance to sign in to"),ignoreFocusOut:!0});if(!a)throw new Error(an);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(rr.l10n.t("The GitHub Enterprise session does not belong to a configured instance."));if(t.length>1)throw new Error(rr.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=Br(e.authorizationServer);if(t=[...this._hosts.values()].find(a=>Br(a.authorizationServer)===o),!t)throw new Error(rr.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(rr.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(Br(e.uri))!==e)throw new Error(rr.l10n.t("The selected GitHub Enterprise instance is no longer configured."))}dispose(){this._disposeCancellation.cancel(),this._disposeCancellation.dispose(),this._registration?.dispose(),this._hosts.forEach(sf),this._hosts.clear(),this._onDidChangeSessions.dispose()}};d();function yv(r,e){return/\]\(|command:/i.test(r)?e:r}async function VA(r){let e=new Tv;r.subscriptions.push(e),r.subscriptions.push(He.window.registerUriHandler(e));let t=new mu(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 Dv(r,e);r.subscriptions.push(n);let i=async()=>{let s=He.workspace.getConfiguration(),u;try{u=rD(s,He.workspace.isTrusted)}catch(v){let _=yv(v.message,He.l10n.t("Invalid GitHub Enterprise instance URI."));await n.update([],{error:_}),He.window.showErrorMessage(_);return}let c=s.get(Qa),l=typeof c=="string"&&/^https?:\/\//i.test(c)?He.Uri.parse(c):void 0;await n.update(u,{legacyUri:l})},o=async()=>{try{await i()}catch(s){He.window.showErrorMessage(yv(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.")))}};r.subscriptions.push(He.workspace.onDidChangeConfiguration(s=>{(s.affectsConfiguration(Za)||s.affectsConfiguration(Qa))&&o()})),r.subscriptions.push(He.workspace.onDidGrantWorkspaceTrust(o));try{await i()}catch(s){He.window.showErrorMessage(yv(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.")))}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")}}))}
17
+ 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:Gr.gitHubClientId,grant_type:cA,subject_token:t,subject_token_type:RT,...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: ${lA(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(E){throw this._logger.error(`Could not reach GitHub to exchange the Microsoft token: ${E?.message??E}`),new ht("network",ft.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:l,token_type:v,expires_in:_,scope:g}=u;if(typeof c!="string"||!c)throw this.protocolError("no access token");if(l!==RT)throw this.protocolError("unexpected issued token type");if(typeof v!="string"||v.toLowerCase()!=="bearer")throw this.protocolError("unexpected token type");if(typeof _!="number"||!isFinite(_)||_<=0)throw this.protocolError("missing or invalid expiry");if(g!==void 0&&typeof g!="string")throw this.protocolError("invalid granted scopes");this._logger.info(`The GitHub token exchange granted the scopes: ${g??"unreported"}`);let p=g?.split(/[\s,]+/).filter(Boolean),N=i?.filter(E=>p&&!p.includes(E));return N?.length&&this._logger.warn(`The GitHub token exchange did not grant every requested scope. Missing: ${N.join(" ")}`),{token:c,expiresAfter:_*1e3,grantedScopes:p}}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 ht("configuration",ft.l10n.t("GitHub is not configured to accept Microsoft sign in from this application ({0}).",e));case"invalid_grant":return new ht("identity",ft.l10n.t("GitHub did not accept your Microsoft account for sign in."));default:return new ht("protocol",ft.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 ht("protocol",ft.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"}.`)}},fA=["iss","aud","appid","azp","tid"];function lA(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=fA.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 dA(r){if(r===an)return!0;let e=r?.message;return e===an||e==="User did not consent to login."}var vA="https://vscode.dev/redirect",_A="https://insiders.vscode.dev/redirect",iv=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 ev(e);let u=Xa(this._type,s)?this.baseUri.with({path:"/login/oauth/access_token"}).toString(!0):void 0,c=Xa(this._type,s)?this.getServerUri(`/applications/${Gr.gitHubClientId}/token`).toString(!0):void 0;this._entraTokenExchange=new nv(e,{tokenExchange:u,tokenRevocation:c,userInfo:this.getServerUri("/user").toString()},o,a,this._http,new tv)}_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=vA,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=_A)}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 E=>{if(a===void 0)return;let x=a?Le.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",E):Le.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",E);if(await Le.window.showWarningMessage(x,{notificationId:a?"githubAuthentication.signIn.retryAfterCancel":"githubAuthentication.signIn.retryAfterFailure"},s,u)!==s)throw new Error(an)},l=Ja.getRandomValues(new Uint32Array(2)).reduce((E,x)=>E+=x.toString(16),""),v=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(l)}`)),_=ET(v),g=Xa(this._type,this._ghesUri),p=typeof process<"u"&&typeof process?.versions?.node=="string",N=bT({target:this._type==="github"?0:g?2:1,extensionHost:p?this._extensionKind===Le.ExtensionKind.UI?2:1:0,isSupportedClient:_});for(let E of N)try{return E!==N[0]&&await c(E.label),{token:await E.trigger({scopes:e,callbackUri:v,nonce:l,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(x){a=this.processLoginError(x)}throw new Error(a?an:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!Gr.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(!Xa(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 "+PT(`${Gr.gitHubClientId}:${Gr.gitHubClientSecret}`),n=this.getServerUri(`/applications/${Gr.gitHubClientId}/token`);try{let i=await xn(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 Xa(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 Zd(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 xn("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(Xa(this._type,this._ghesUri))t="hosted";else{let n=await xn(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===an)throw e;return this._logger.error(e.message??e),e.message===ei}};d();var XT=Tt(require("vscode")),Oo=Tt(qT()),mv=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(XT.env.uriScheme){case"vscode":e=Oo.TargetPopulation.Public;break;case"vscode-insiders":e=Oo.TargetPopulation.Insiders;break;case"vscode-exploration":e=Oo.TargetPopulation.Internal;break;case"code-oss":e=Oo.TargetPopulation.Team;break;default:e=Oo.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,Oo.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()}};d();var JT=Tt(require("vscode"));var gv=class{constructor(e,t){this.type=e;let n=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=JT.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}};d();var Ev=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}}};d();var wg=Tt(require("vscode")),hv="microsoft",LA="12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default",Sv=class{async getToken(e){let t=await wg.authentication.getSession(hv,[LA],UA(e));return t&&{token:t.accessToken,account:t.account}}async getAccounts(){return await wg.authentication.getAccounts(hv)}};function UA(r){return r.silent?{silent:!0,account:r.account}:r.forceNewSession?{forceNewSession:!0,clearSessionPreference:!0}:{createIfNone:!0,account:r.account}}d();var of=Tt(require("vscode")),Qa="github-enterprise.uri",Nv=".ghes.auth";function Br(r){return r.with({scheme:r.scheme.toLowerCase(),path:r.path.replace(/\/+$/,"")}).toString()}function Og(r){return`${Br(r)}${Nv}`}var nf=".microsoftAccountLinks";function MA(r,e){if(!r.endsWith(Nv)||r.includes("://"))return;let t=r.slice(0,-Nv.length),n=t.indexOf("/");return of.Uri.from({scheme:e,authority:n<0?t:t.slice(0,n),path:n<0?"":t.slice(n)})}async function QT(r,e){return{key:e,tokens:await r.secrets.get(e),links:r.globalState.get(`${e}${nf}`)}}function ZT(r,e,t){if(r.length<2)return r[0];let n=r.find(i=>i.key===e);if(!n)throw new Error(of.l10n.t("Multiple saved authentication stores match {0}. Set {1} to the previously used URI before migrating its saved sign-in.",t.toString(!0),Qa));return n}async function FA(r,e,t,n,i){let o=t.tokens===void 0?ZT(e.filter(s=>s.tokens!==void 0),n,i):void 0,a=t.links===void 0?ZT(e.filter(s=>s.links!==void 0),n,i):void 0;a?.links!==void 0&&await r.globalState.update(`${t.key}${nf}`,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}${nf}`,void 0)}async function eD(r,e,t=[e],n){let i=Br(e),o=new Set([...await r.secrets.keys(),...r.globalState.keys().filter(_=>_.endsWith(nf)).map(_=>_.slice(0,-nf.length))]),a=[];for(let _ of o){let g=MA(_,e.scheme);if(g&&Br(g)===i){let p=await QT(r,_);(p.tokens!==void 0||p.links!==void 0)&&a.push(p)}}let s=await QT(r,Og(e));if(!a.length)return;let u=n??(t.length===1?t[0]:void 0),c=u&&Br(u.with({scheme:e.scheme}))===i;if(c&&Br(u)!==i)return;let l=new Set(t.filter(_=>Br(_.with({scheme:e.scheme}))===i).map(Br));if(!c&&l.size>1){let _=s.tokens===void 0&&a.some(p=>p.tokens!==void 0),g=s.links===void 0&&a.some(p=>p.links!==void 0);if(!_&&!g)return;throw new Error(of.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,Qa))}let v=c?`${u.authority}${u.path}${Nv}`:void 0;await FA(r,a,s,v,e)}var kA=3600*1e3,HA="_workbenchEntraExchangeProbe";function GA(r){if(!r||typeof r!="object")throw new Error("Options are not an object");let{provider:e,extraAuthorizeParameters:t}=r;if(e!==void 0&&!CT(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 Tv=class extends xr.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=rf(this.event,this.handleEvent(e,a)),this._codeExchangePromises.set(a,u));try{return await Promise.race([u.promise,new Promise((c,l)=>setTimeout(()=>l(ef),3e5)),rf(i.onCancellationRequested,(c,l,v)=>{v(ei)}).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 BA(){return Ja.getRandomValues(new Uint32Array(2)).reduce((r,e)=>r+=e.toString(16),"")}var mu=class{constructor(e,t,n,i){this.context=e;let{aiKey:o}=e.extension.packageJSON;this._telemetryReporter=new mv(e,new Zc(o));let a=n?"github-enterprise":"github";this._accountLabelSuffix=n?` - ${n.authority}${n.path.replace(/\/+$/,"")}`:void 0,this._logger=new gv(a,n);let s=i??(a==="github"?`${a}.auth`:`${n?.authority}${n?.path}.ghes.auth`);this._keychain=new Jd(this.context,s,this._logger),this._accountLinks=new Ev(this.context.globalState,`${s}.microsoftAccountLinks`,this._logger),this._microsoft=new Sv,this._githubServer=new iv(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=xr.Disposable.from(this._telemetryReporter,this._sessionChangeEmitter,this._logger,this.context.secrets.onDidChange(()=>this.checkForUpdates()),xr.authentication.onDidChangeSessions(async u=>{u.provider.id===hv&&(this._microsoftGeneration++,this._restoresTried.clear(),await this.evictUnreachable())}))}context;_sessionChangeEmitter=new xr.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?.[HA];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&&Br(v.authorizationServer)===Br(t.authorizationServer),u=a.filter(v=>s(v)&&(!t?.account||this.accountName(v.account.label)===this.accountName(t.account.label))&&(!i.length||vg([...v.scopes].sort(),i))),c=await this.stillGood(u),l=await this.restore(i,t?.account,c);return this._logger.info(`Got ${c.length+l.length} sessions for ${o}...`),[...c,...l.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}
18
+ ${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 ht&&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+kA?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),l=c?c.expiresAt-Date.now():0;c&&l>0?s.push({...c.session,expiresAfter:l}):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 l=a.account?.icon?xr.Uri.from(a.account.icon):u?.avatarUrl?xr.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:l},scopes:a.scopes,accessToken:a.accessToken,authorizationServer:a.authorizationServer?xr.Uri.from(a.authorizationServer):xr.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&&!GA(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 _=await this.createMicrosoftSession(e,i,t?.authorizationServer);return this._logger.info("Login success!"),_}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 l=a.findIndex(_=>_.account.id===c.account.id&&vg([..._.scopes].sort(),n)),v=new Array;return l>-1?v.push(...a.splice(l,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"),xr.window.showErrorMessage(xr.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:BA(),accessToken:t.token,account:{label:this.accountLabel(e.accountName),id:e.id,icon:e.avatarUrl?xr.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&&Br(e.authorizationServer)!==Br(t))throw new Error(xr.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"),xr.window.showErrorMessage(xr.l10n.t("Sign out failed: {0}",`${t}`),{notificationId:"githubAuthentication.signOut.failed"}),this._logger.error(t),t}}};d();var rr=Tt(require("vscode"));d();var af=Tt(require("vscode"));var Za="github-enterprise.uris";function rD(r,e){let t=r.inspect(Za),n=t&&(t.globalValue!==void 0||e&&(t.workspaceValue!==void 0||t.workspaceFolderValue!==void 0)),i=r.get(Qa),o=n?r.get(Za):i?[i]:[];if(!Array.isArray(o))throw new Error(af.l10n.t("GitHub Enterprise URIs must be an array of instance URLs."));return o.map(jA)}function jA(r){try{if(typeof r!="string"||!r)throw new Error("Expected a non-empty URI");let e=af.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(af.l10n.t("Invalid GitHub Enterprise instance URI: {0}",String(r)))}}function sf(r){r.listener.dispose(),r.engine.dispose(),r.initialChanges.clear()}function zA(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 Dv=class{constructor(e,t){this._context=e;this._uriHandler=t}_context;_uriHandler;_onDidChangeSessions=new rr.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_hosts=new Map;_disposeCancellation=new rr.CancellationTokenSource;_pendingUpdate=Promise.resolve();_registration;_configurationError=rr.l10n.t("Configure {0} before signing in to GitHub Enterprise.",Za);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(Br))].sort(),i=n.filter(u=>!this._hosts.has(u)),o=[...this._hosts.values()].filter(u=>!n.includes(u.key));if(this._configurationError=t?.error??rr.l10n.t("Configure {0} before signing in to GitHub Enterprise.",Za),this._registration&&!i.length&&!o.length)return;for(let u of i)await eD(this._context,rr.Uri.parse(u),e,t?.legacyUri),this.throwIfDisposed();let a=this.createHosts(i),s=this._disposeCancellation.token.onCancellationRequested(()=>a.forEach(sf));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 l=a.flatMap((v,_)=>zA(v,u[_]));this.commitHosts(n,a,o,{added:l,removed:c,changed:[]})}catch(u){throw a.forEach(sf),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(sf),n}}createHost(e){let t=rr.Uri.parse(e),n=new mu(this._context,this._uriHandler,t,Og(t)),i=new Map,o={key:e,uri:t,authorizationServer:rr.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(sf),(i.added?.length||i.removed?.length)&&this._onDidChangeSessions.fire(i)}registerProvider(){this._registration?.dispose(),this._registration=rr.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 rr.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(Br(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 rr.window.showQuickPick(o.map(s=>({label:s.uri.toString(!0),host:s})),{title:rr.l10n.t("Sign in to GitHub Enterprise"),placeHolder:rr.l10n.t("Select the GitHub Enterprise instance to sign in to"),ignoreFocusOut:!0});if(!a)throw new Error(an);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(rr.l10n.t("The GitHub Enterprise session does not belong to a configured instance."));if(t.length>1)throw new Error(rr.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=Br(e.authorizationServer);if(t=[...this._hosts.values()].find(a=>Br(a.authorizationServer)===o),!t)throw new Error(rr.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(rr.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(Br(e.uri))!==e)throw new Error(rr.l10n.t("The selected GitHub Enterprise instance is no longer configured."))}dispose(){this._disposeCancellation.cancel(),this._disposeCancellation.dispose(),this._registration?.dispose(),this._hosts.forEach(sf),this._hosts.clear(),this._onDidChangeSessions.dispose()}};d();function Iv(r,e){return/\]\(|command:/i.test(r)?e:r}async function VA(r){let e=new Tv;r.subscriptions.push(e),r.subscriptions.push(He.window.registerUriHandler(e));let t=new mu(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 Dv(r,e);r.subscriptions.push(n);let i=async()=>{let s=He.workspace.getConfiguration(),u;try{u=rD(s,He.workspace.isTrusted)}catch(v){let _=Iv(v.message,He.l10n.t("Invalid GitHub Enterprise instance URI."));await n.update([],{error:_}),He.window.showErrorMessage(_,{notificationId:"githubAuthentication.enterprise.invalidUri"});return}let c=s.get(Qa),l=typeof c=="string"&&/^https?:\/\//i.test(c)?He.Uri.parse(c):void 0;await n.update(u,{legacyUri:l})},o=async()=>{try{await i()}catch(s){He.window.showErrorMessage(Iv(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(Za)||s.affectsConfiguration(Qa))&&o()})),r.subscriptions.push(He.workspace.onDidGrantWorkspaceTrust(o));try{await i()}catch(s){He.window.showErrorMessage(Iv(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")}}))}
19
19
  /*! Bundled license information:
20
20
 
21
21
  @nevware21/ts-utils/dist/es5/mod/ts-utils.js: